@builder.io/sdk-react 0.11.3 → 0.11.4
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/index.cjs +24 -24
- package/lib/browser/index.mjs +539 -520
- package/lib/edge/index.cjs +20 -20
- package/lib/edge/index.mjs +1036 -1017
- package/lib/node/index.cjs +12 -12
- package/lib/node/index.mjs +265 -246
- package/package.json +1 -1
- package/types/components/content/components/enable-editor.d.ts +1 -1
- package/types/components/content/content.helpers.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
package/lib/edge/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { createContext as lr, useState as
|
|
4
|
-
import { i as
|
|
2
|
+
import { jsxs as te, Fragment as N, jsx as p } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as lr, useState as V, useContext as $n, createElement as cr, useRef as Zt, useEffect as Z } from "react";
|
|
4
|
+
import { i as Te, j as je, k as Lr, l as Ue, m as Qt, n as Gt, T as rt, r as $r, o as pt, p as Hn, a as Hr, c as Kr, b as ur, q as Gr, u as Kn, v as Gn, w as zr } from "./server-entry-f978b3a5.js";
|
|
5
5
|
import { _ as Fo, h as Uo, f as _o, g as Do, e as Wo, d as Vo, s as Lo, t as $o } from "./server-entry-f978b3a5.js";
|
|
6
6
|
function Xr(e) {
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ te(N, { children: [
|
|
8
8
|
e.link ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
9
9
|
"a",
|
|
10
10
|
{
|
|
@@ -28,7 +28,7 @@ function Xr(e) {
|
|
|
28
28
|
}` })
|
|
29
29
|
] });
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const en = lr({
|
|
32
32
|
content: null,
|
|
33
33
|
context: {},
|
|
34
34
|
localState: void 0,
|
|
@@ -66,9 +66,9 @@ const fr = ({
|
|
|
66
66
|
context: t,
|
|
67
67
|
event: r
|
|
68
68
|
}), Jr = () => ({
|
|
69
|
-
isEditing:
|
|
70
|
-
isBrowser:
|
|
71
|
-
isServer: !
|
|
69
|
+
isEditing: Te(),
|
|
70
|
+
isBrowser: je(),
|
|
71
|
+
isServer: !je(),
|
|
72
72
|
getUserAttributes: () => Lr()
|
|
73
73
|
}), qr = (e, {
|
|
74
74
|
isExpression: t = !0
|
|
@@ -107,7 +107,7 @@ const hr = (e, t, r) => {
|
|
|
107
107
|
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
108
108
|
return n.slice(0, -1).reduce((i, a, s) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(n[s + 1])) >> 0 === +n[s + 1] ? [] : {}, e)[n[n.length - 1]] = r, e;
|
|
109
109
|
};
|
|
110
|
-
var
|
|
110
|
+
var D, ei = function(e) {
|
|
111
111
|
function t(o) {
|
|
112
112
|
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Wr.test(String.fromCharCode(o));
|
|
113
113
|
}
|
|
@@ -115,17 +115,17 @@ var U, ei = function(e) {
|
|
|
115
115
|
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Ln.test(String.fromCharCode(o));
|
|
116
116
|
}
|
|
117
117
|
function n(o, l) {
|
|
118
|
-
for (var c =
|
|
119
|
-
|
|
120
|
-
var
|
|
121
|
-
if (
|
|
122
|
-
++h,
|
|
118
|
+
for (var c = x, h = 1, A = 0; ; ) {
|
|
119
|
+
ft.lastIndex = A;
|
|
120
|
+
var J = ft.exec(c);
|
|
121
|
+
if (J && J.index < o)
|
|
122
|
+
++h, A = J.index + J[0].length;
|
|
123
123
|
else
|
|
124
124
|
break;
|
|
125
125
|
}
|
|
126
126
|
throw c = {
|
|
127
127
|
line: h,
|
|
128
|
-
ab: o -
|
|
128
|
+
ab: o - A
|
|
129
129
|
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = o, l.X = c, l.o = d, l;
|
|
130
130
|
}
|
|
131
131
|
function i(o) {
|
|
@@ -137,35 +137,35 @@ var U, ei = function(e) {
|
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
function a() {
|
|
140
|
-
this.line =
|
|
140
|
+
this.line = Ee, this.ab = d - he;
|
|
141
141
|
}
|
|
142
142
|
function s(o, l) {
|
|
143
|
-
|
|
143
|
+
Oe = d, R.C && (jt = new a()), j = o, f(), ce = l, Le = o.m;
|
|
144
144
|
}
|
|
145
145
|
function u() {
|
|
146
|
-
for (var o = d, l =
|
|
147
|
-
++d, c =
|
|
148
|
-
|
|
146
|
+
for (var o = d, l = R.va && R.C && new a(), c = x.charCodeAt(d += 2); d < Re && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
147
|
+
++d, c = x.charCodeAt(d);
|
|
148
|
+
R.va && R.va(!1, x.slice(o + 2, d), o, d, l, R.C && new a());
|
|
149
149
|
}
|
|
150
150
|
function f() {
|
|
151
|
-
for (; d <
|
|
152
|
-
var o =
|
|
151
|
+
for (; d < Re; ) {
|
|
152
|
+
var o = x.charCodeAt(d);
|
|
153
153
|
if (o === 32)
|
|
154
154
|
++d;
|
|
155
155
|
else if (o === 13)
|
|
156
|
-
++d, o =
|
|
156
|
+
++d, o = x.charCodeAt(d), o === 10 && ++d, R.C && (++Ee, he = d);
|
|
157
157
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
158
|
-
++d,
|
|
158
|
+
++d, R.C && (++Ee, he = d);
|
|
159
159
|
else if (8 < o && 14 > o)
|
|
160
160
|
++d;
|
|
161
161
|
else if (o === 47)
|
|
162
|
-
if (o =
|
|
162
|
+
if (o = x.charCodeAt(d + 1), o === 42) {
|
|
163
163
|
o = void 0;
|
|
164
|
-
var l =
|
|
165
|
-
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2,
|
|
166
|
-
for (
|
|
167
|
-
++
|
|
168
|
-
|
|
164
|
+
var l = R.va && R.C && new a(), c = d, h = x.indexOf("*/", d += 2);
|
|
165
|
+
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2, R.C)
|
|
166
|
+
for (ft.lastIndex = c; (o = ft.exec(x)) && o.index < d; )
|
|
167
|
+
++Ee, he = o.index + o[0].length;
|
|
168
|
+
R.va && R.va(!0, x.slice(c + 2, h), c, d, l, R.C && new a());
|
|
169
169
|
} else if (o === 47)
|
|
170
170
|
u();
|
|
171
171
|
else
|
|
@@ -181,31 +181,31 @@ var U, ei = function(e) {
|
|
|
181
181
|
function g(o) {
|
|
182
182
|
switch (o) {
|
|
183
183
|
case 46:
|
|
184
|
-
o =
|
|
184
|
+
o = x.charCodeAt(d + 1), 48 <= o && 57 >= o ? O(!0) : (++d, s(Mn));
|
|
185
185
|
return;
|
|
186
186
|
case 40:
|
|
187
|
-
return ++d, s(
|
|
187
|
+
return ++d, s(pe);
|
|
188
188
|
case 41:
|
|
189
|
-
return ++d, s(
|
|
189
|
+
return ++d, s(de);
|
|
190
190
|
case 59:
|
|
191
|
-
return ++d, s(
|
|
191
|
+
return ++d, s(me);
|
|
192
192
|
case 44:
|
|
193
193
|
return ++d, s(Se);
|
|
194
194
|
case 91:
|
|
195
|
-
return ++d, s(Ut);
|
|
196
|
-
case 93:
|
|
197
195
|
return ++d, s(_t);
|
|
196
|
+
case 93:
|
|
197
|
+
return ++d, s(Dt);
|
|
198
198
|
case 123:
|
|
199
|
-
return ++d, s(
|
|
199
|
+
return ++d, s(Ke);
|
|
200
200
|
case 125:
|
|
201
|
-
return ++d, s(
|
|
201
|
+
return ++d, s(Ne);
|
|
202
202
|
case 58:
|
|
203
|
-
return ++d, s(
|
|
203
|
+
return ++d, s(Ge);
|
|
204
204
|
case 63:
|
|
205
205
|
return ++d, s(Bn);
|
|
206
206
|
case 48:
|
|
207
|
-
if (o =
|
|
208
|
-
d += 2, o =
|
|
207
|
+
if (o = x.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
208
|
+
d += 2, o = F(16), o === null && n(X + 2, "Expected hexadecimal number"), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), s(He, o);
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
211
|
case 49:
|
|
@@ -222,19 +222,19 @@ var U, ei = function(e) {
|
|
|
222
222
|
case 39:
|
|
223
223
|
d++;
|
|
224
224
|
for (var l = ""; ; ) {
|
|
225
|
-
d >=
|
|
226
|
-
var c =
|
|
225
|
+
d >= Re && n(X, "Unterminated string constant");
|
|
226
|
+
var c = x.charCodeAt(d);
|
|
227
227
|
if (c === o) {
|
|
228
|
-
++d, s(
|
|
228
|
+
++d, s(lt, l);
|
|
229
229
|
break;
|
|
230
230
|
}
|
|
231
231
|
if (c === 92) {
|
|
232
|
-
c =
|
|
233
|
-
var h = /^[0-7]+/.exec(
|
|
232
|
+
c = x.charCodeAt(++d);
|
|
233
|
+
var h = /^[0-7]+/.exec(x.slice(d, d + 3));
|
|
234
234
|
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
235
235
|
h = h.slice(0, -1);
|
|
236
236
|
if (h === "0" && (h = null), ++d, h)
|
|
237
|
-
|
|
237
|
+
se && n(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), d += h.length - 1;
|
|
238
238
|
else
|
|
239
239
|
switch (c) {
|
|
240
240
|
case 110:
|
|
@@ -269,70 +269,70 @@ var U, ei = function(e) {
|
|
|
269
269
|
l += "\0";
|
|
270
270
|
break;
|
|
271
271
|
case 13:
|
|
272
|
-
|
|
272
|
+
x.charCodeAt(d) === 10 && ++d;
|
|
273
273
|
case 10:
|
|
274
|
-
|
|
274
|
+
R.C && (he = d, ++Ee);
|
|
275
275
|
break;
|
|
276
276
|
default:
|
|
277
277
|
l += String.fromCharCode(c);
|
|
278
278
|
}
|
|
279
279
|
} else
|
|
280
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || n(
|
|
280
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || n(X, "Unterminated string constant"), l += String.fromCharCode(c), ++d;
|
|
281
281
|
}
|
|
282
282
|
return;
|
|
283
283
|
case 47:
|
|
284
|
-
o =
|
|
284
|
+
o = x.charCodeAt(d + 1), Le ? (++d, U()) : o === 61 ? b(Ie, 2) : b(Fn, 1);
|
|
285
285
|
return;
|
|
286
286
|
case 37:
|
|
287
287
|
case 42:
|
|
288
|
-
|
|
288
|
+
x.charCodeAt(d + 1) === 61 ? b(Ie, 2) : b(Fr, 1);
|
|
289
289
|
return;
|
|
290
290
|
case 124:
|
|
291
291
|
case 38:
|
|
292
|
-
l =
|
|
292
|
+
l = x.charCodeAt(d + 1), l === o ? b(o === 124 ? Dn : Wn, 2) : l === 61 ? b(Ie, 2) : b(o === 124 ? Ar : Or, 1);
|
|
293
293
|
return;
|
|
294
294
|
case 94:
|
|
295
|
-
|
|
295
|
+
x.charCodeAt(d + 1) === 61 ? b(Ie, 2) : b(Rr, 1);
|
|
296
296
|
return;
|
|
297
297
|
case 43:
|
|
298
298
|
case 45:
|
|
299
|
-
l =
|
|
299
|
+
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && dt.test(x.slice(be, d)) ? (d += 3, u(), f(), v()) : b(jr, 2) : l === 61 ? b(Ie, 2) : b(Br, 1);
|
|
300
300
|
return;
|
|
301
301
|
case 60:
|
|
302
302
|
case 62:
|
|
303
|
-
l =
|
|
303
|
+
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? b(Ie, c + 1) : b(Mr, c)) : l === 33 && o === 60 && x.charCodeAt(d + 2) === 45 && x.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), v()) : (l === 61 && (c = x.charCodeAt(d + 2) === 61 ? 3 : 2), b(Nr, c));
|
|
304
304
|
return;
|
|
305
305
|
case 61:
|
|
306
306
|
case 33:
|
|
307
|
-
|
|
307
|
+
x.charCodeAt(d + 1) === 61 ? b(Pr, x.charCodeAt(d + 2) === 61 ? 3 : 2) : b(o === 61 ? Un : _n, 1);
|
|
308
308
|
return;
|
|
309
309
|
case 126:
|
|
310
|
-
return
|
|
310
|
+
return b(_n, 1);
|
|
311
311
|
}
|
|
312
312
|
return !1;
|
|
313
313
|
}
|
|
314
314
|
function v(o) {
|
|
315
|
-
if (o ? d =
|
|
316
|
-
return
|
|
317
|
-
if (d >=
|
|
318
|
-
return s(
|
|
319
|
-
if (o =
|
|
320
|
-
return
|
|
315
|
+
if (o ? d = X + 1 : X = d, R.C && (Tt = new a()), o)
|
|
316
|
+
return U();
|
|
317
|
+
if (d >= Re)
|
|
318
|
+
return s(Ot);
|
|
319
|
+
if (o = x.charCodeAt(d), r(o) || o === 92)
|
|
320
|
+
return Y();
|
|
321
321
|
if (g(o) === !1) {
|
|
322
322
|
if (o = String.fromCharCode(o), o === "\\" || Ln.test(o))
|
|
323
|
-
return
|
|
323
|
+
return Y();
|
|
324
324
|
n(d, "Unexpected character '" + o + "'");
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
var c =
|
|
327
|
+
function b(o, l) {
|
|
328
|
+
var c = x.slice(d, d + l);
|
|
329
329
|
d += l, s(o, c);
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function U() {
|
|
332
332
|
for (var o, l, c = d; ; ) {
|
|
333
|
-
d >=
|
|
334
|
-
var h =
|
|
335
|
-
if (
|
|
333
|
+
d >= Re && n(c, "Unterminated regexp");
|
|
334
|
+
var h = x.charAt(d);
|
|
335
|
+
if (dt.test(h) && n(c, "Unterminated regexp"), o)
|
|
336
336
|
o = !1;
|
|
337
337
|
else {
|
|
338
338
|
if (h === "[")
|
|
@@ -345,321 +345,321 @@ var U, ei = function(e) {
|
|
|
345
345
|
}
|
|
346
346
|
++d;
|
|
347
347
|
}
|
|
348
|
-
o =
|
|
348
|
+
o = x.slice(c, d), ++d, (l = L()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
349
349
|
try {
|
|
350
|
-
var
|
|
351
|
-
} catch (
|
|
352
|
-
throw
|
|
350
|
+
var A = new RegExp(o, l);
|
|
351
|
+
} catch (J) {
|
|
352
|
+
throw J instanceof SyntaxError && n(c, J.message), J;
|
|
353
353
|
}
|
|
354
|
-
s(mn,
|
|
354
|
+
s(mn, A);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
for (var c = d, h = 0,
|
|
358
|
-
var
|
|
359
|
-
if (
|
|
356
|
+
function F(o, l) {
|
|
357
|
+
for (var c = d, h = 0, A = l === void 0 ? 1 / 0 : l, J = 0; J < A; ++J) {
|
|
358
|
+
var ie = x.charCodeAt(d);
|
|
359
|
+
if (ie = 97 <= ie ? ie - 97 + 10 : 65 <= ie ? ie - 65 + 10 : 48 <= ie && 57 >= ie ? ie - 48 : 1 / 0, ie >= o)
|
|
360
360
|
break;
|
|
361
|
-
++d, h = h * o +
|
|
361
|
+
++d, h = h * o + ie;
|
|
362
362
|
}
|
|
363
363
|
return d === c || l !== void 0 && d - c !== l ? null : h;
|
|
364
364
|
}
|
|
365
365
|
function O(o) {
|
|
366
|
-
var l = d, c = !1, h =
|
|
367
|
-
o ||
|
|
368
|
-
var
|
|
369
|
-
c ?
|
|
366
|
+
var l = d, c = !1, h = x.charCodeAt(d) === 48;
|
|
367
|
+
o || F(10) !== null || n(l, "Invalid number"), x.charCodeAt(d) === 46 && (++d, F(10), c = !0), o = x.charCodeAt(d), (o === 69 || o === 101) && (o = x.charCodeAt(++d), o !== 43 && o !== 45 || ++d, F(10) === null && n(l, "Invalid number"), c = !0), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), o = x.slice(l, d);
|
|
368
|
+
var A;
|
|
369
|
+
c ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || se ? n(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s(He, A);
|
|
370
370
|
}
|
|
371
371
|
function P(o) {
|
|
372
|
-
return o =
|
|
372
|
+
return o = F(16, o), o === null && n(X, "Bad character escape sequence"), o;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
|
|
374
|
+
function L() {
|
|
375
|
+
Me = !1;
|
|
376
376
|
for (var o, l = !0, c = d; ; ) {
|
|
377
|
-
var h =
|
|
377
|
+
var h = x.charCodeAt(d);
|
|
378
378
|
if (t(h))
|
|
379
|
-
|
|
379
|
+
Me && (o += x.charAt(d)), ++d;
|
|
380
380
|
else if (h === 92) {
|
|
381
|
-
|
|
382
|
-
var
|
|
383
|
-
|
|
381
|
+
Me || (o = x.slice(c, d)), Me = !0, x.charCodeAt(++d) !== 117 && n(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = P(4);
|
|
382
|
+
var A = String.fromCharCode(h);
|
|
383
|
+
A || n(d - 1, "Invalid Unicode escape"), (l ? r(h) : t(h)) || n(d - 4, "Invalid Unicode escape"), o += A;
|
|
384
384
|
} else
|
|
385
385
|
break;
|
|
386
386
|
l = !1;
|
|
387
387
|
}
|
|
388
|
-
return
|
|
388
|
+
return Me ? o : x.slice(c, d);
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
var o =
|
|
392
|
-
!
|
|
390
|
+
function Y() {
|
|
391
|
+
var o = L(), l = Pe;
|
|
392
|
+
!Me && _r(o) && (l = Tr[o]), s(l, o);
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
|
|
394
|
+
function y() {
|
|
395
|
+
At = X, be = Oe, Rt = jt, v();
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
if (
|
|
399
|
-
for (; d <
|
|
400
|
-
|
|
401
|
-
`,
|
|
397
|
+
function K(o) {
|
|
398
|
+
if (se = o, d = X, R.C)
|
|
399
|
+
for (; d < he; )
|
|
400
|
+
he = x.lastIndexOf(`
|
|
401
|
+
`, he - 2) + 1, --Ee;
|
|
402
402
|
f(), v();
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
this.type = null, this.start =
|
|
404
|
+
function ne() {
|
|
405
|
+
this.type = null, this.start = X, this.end = null;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
this.start =
|
|
407
|
+
function le() {
|
|
408
|
+
this.start = Tt, this.end = null, It && (this.source = It);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
var o = new
|
|
412
|
-
return
|
|
410
|
+
function $() {
|
|
411
|
+
var o = new ne();
|
|
412
|
+
return R.C && (o.X = new le()), R.vb && (o.sourceFile = R.vb), R.Xa && (o.j = [X, 0]), o;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
var l = new
|
|
416
|
-
return l.start = o.start,
|
|
414
|
+
function re(o) {
|
|
415
|
+
var l = new ne();
|
|
416
|
+
return l.start = o.start, R.C && (l.X = new le(), l.X.start = o.X.start), R.Xa && (l.j = [o.j[0], 0]), l;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
return o.type = l, o.end = be,
|
|
418
|
+
function E(o, l) {
|
|
419
|
+
return o.type = l, o.end = be, R.C && (o.X.end = Rt), R.Xa && (o.j[1] = be), o;
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Ae(o) {
|
|
422
422
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
423
423
|
}
|
|
424
424
|
function W(o) {
|
|
425
|
-
return
|
|
425
|
+
return j === o ? (y(), !0) : !1;
|
|
426
426
|
}
|
|
427
427
|
function ke() {
|
|
428
|
-
return !
|
|
428
|
+
return !R.fc && (j === Ot || j === Ne || dt.test(x.slice(be, X)));
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
W(
|
|
430
|
+
function ue() {
|
|
431
|
+
W(me) || ke() || C();
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
|
|
433
|
+
function H(o) {
|
|
434
|
+
j === o ? y() : C();
|
|
435
435
|
}
|
|
436
|
-
function
|
|
437
|
-
n(
|
|
436
|
+
function C() {
|
|
437
|
+
n(X, "Unexpected token");
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"),
|
|
439
|
+
function I(o) {
|
|
440
|
+
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), se && o.type === "Identifier" && ut(o.name) && n(o.start, "Assigning to " + o.name + " in strict mode");
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
(
|
|
444
|
-
var o =
|
|
442
|
+
function T() {
|
|
443
|
+
(j === Fn || j === Ie && ce === "/=") && v(!0);
|
|
444
|
+
var o = j, l = $();
|
|
445
445
|
switch (o) {
|
|
446
|
-
case
|
|
446
|
+
case Pt:
|
|
447
447
|
case vn:
|
|
448
|
-
|
|
449
|
-
var c = o ===
|
|
450
|
-
W(
|
|
451
|
-
for (var h = 0; h <
|
|
452
|
-
var
|
|
453
|
-
if ((l.label === null ||
|
|
448
|
+
y();
|
|
449
|
+
var c = o === Pt;
|
|
450
|
+
W(me) || ke() ? l.label = null : j !== Pe ? C() : (l.label = fe(), ue());
|
|
451
|
+
for (var h = 0; h < z.length; ++h) {
|
|
452
|
+
var A = z[h];
|
|
453
|
+
if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (c || A.kind === "loop") || l.label && c))
|
|
454
454
|
break;
|
|
455
455
|
}
|
|
456
|
-
return h ===
|
|
456
|
+
return h === z.length && n(l.start, "Unsyntactic " + o.l), E(l, c ? "BreakStatement" : "ContinueStatement");
|
|
457
457
|
case yn:
|
|
458
|
-
return
|
|
458
|
+
return y(), ue(), E(l, "DebuggerStatement");
|
|
459
459
|
case bn:
|
|
460
|
-
return
|
|
460
|
+
return y(), z.push(Wt), l.body = T(), z.pop(), H(Ut), l.test = M(), ue(), E(l, "DoWhileStatement");
|
|
461
461
|
case kn:
|
|
462
|
-
return
|
|
463
|
-
case
|
|
464
|
-
return
|
|
462
|
+
return y(), z.push(Wt), H(pe), j === me ? G(l, null) : j === Ft ? (o = $(), y(), at(o, !0), E(o, "VariableDeclaration"), o.fa.length === 1 && W(ct) ? Ce(l, o) : G(l, o)) : (o = ee(!1, !0), W(ct) ? (I(o), Ce(l, o)) : G(l, o));
|
|
463
|
+
case Mt:
|
|
464
|
+
return y(), Ct(l, !0);
|
|
465
465
|
case Cn:
|
|
466
|
-
return
|
|
466
|
+
return y(), l.test = M(), l.da = T(), l.alternate = W(Sn) ? T() : null, E(l, "IfStatement");
|
|
467
467
|
case En:
|
|
468
|
-
return
|
|
469
|
-
case
|
|
470
|
-
for (
|
|
471
|
-
|
|
472
|
-
return h &&
|
|
468
|
+
return $e || R.Ib || n(X, "'return' outside of function"), y(), W(me) || ke() ? l.K = null : (l.K = ee(), ue()), E(l, "ReturnStatement");
|
|
469
|
+
case Bt:
|
|
470
|
+
for (y(), l.Qb = M(), l.tb = [], H(Ke), z.push(Vr); j !== Ne; )
|
|
471
|
+
j === Nt || j === xn ? (o = j === Nt, h && E(h, "SwitchCase"), l.tb.push(h = $()), h.da = [], y(), o ? h.test = ee() : (c && n(At, "Multiple default clauses"), c = !0, h.test = null), H(Ge)) : (h || C(), h.da.push(T()));
|
|
472
|
+
return h && E(h, "SwitchCase"), y(), z.pop(), E(l, "SwitchStatement");
|
|
473
473
|
case In:
|
|
474
|
-
return
|
|
474
|
+
return y(), dt.test(x.slice(be, X)) && n(be, "Illegal newline after throw"), l.K = ee(), ue(), E(l, "ThrowStatement");
|
|
475
475
|
case Tn:
|
|
476
|
-
return
|
|
477
|
-
case Bt:
|
|
478
|
-
return x(), hn(l), ce(), I(l, "VariableDeclaration");
|
|
476
|
+
return y(), l.block = _(), l.Ea = null, j === gn && (o = $(), y(), H(pe), o.Ua = fe(), se && ut(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), H(de), o.body = _(), l.Ea = E(o, "CatchClause")), l.fb = W(wn) ? _() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
479
477
|
case Ft:
|
|
480
|
-
return
|
|
478
|
+
return y(), at(l), ue(), E(l, "VariableDeclaration");
|
|
479
|
+
case Ut:
|
|
480
|
+
return y(), l.test = M(), z.push(Wt), l.body = T(), z.pop(), E(l, "WhileStatement");
|
|
481
481
|
case jn:
|
|
482
|
-
return
|
|
483
|
-
case
|
|
484
|
-
return
|
|
485
|
-
case
|
|
486
|
-
return
|
|
482
|
+
return se && n(X, "'with' in strict mode"), y(), l.object = M(), l.body = T(), E(l, "WithStatement");
|
|
483
|
+
case Ke:
|
|
484
|
+
return _();
|
|
485
|
+
case me:
|
|
486
|
+
return y(), E(l, "EmptyStatement");
|
|
487
487
|
default:
|
|
488
|
-
if (c =
|
|
489
|
-
for (h = 0; h <
|
|
490
|
-
|
|
491
|
-
return
|
|
488
|
+
if (c = ce, A = ee(), o === Pe && A.type === "Identifier" && W(Ge)) {
|
|
489
|
+
for (h = 0; h < z.length; ++h)
|
|
490
|
+
z[h].name === c && n(A.start, "Label '" + c + "' is already declared");
|
|
491
|
+
return z.push({
|
|
492
492
|
name: c,
|
|
493
|
-
kind:
|
|
494
|
-
}), l.body =
|
|
493
|
+
kind: j.W ? "loop" : j === Bt ? "switch" : null
|
|
494
|
+
}), l.body = T(), z.pop(), l.label = A, E(l, "LabeledStatement");
|
|
495
495
|
}
|
|
496
|
-
return l.la =
|
|
496
|
+
return l.la = A, ue(), E(l, "ExpressionStatement");
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
function
|
|
500
|
-
|
|
501
|
-
var o =
|
|
502
|
-
return
|
|
503
|
-
}
|
|
504
|
-
function
|
|
505
|
-
var l =
|
|
506
|
-
for (l.body = [],
|
|
507
|
-
var
|
|
508
|
-
if (l.body.push(
|
|
509
|
-
var
|
|
510
|
-
|
|
499
|
+
function M() {
|
|
500
|
+
H(pe);
|
|
501
|
+
var o = ee();
|
|
502
|
+
return H(de), o;
|
|
503
|
+
}
|
|
504
|
+
function _(o) {
|
|
505
|
+
var l = $(), c = !0, h = !1;
|
|
506
|
+
for (l.body = [], H(Ke); !W(Ne); ) {
|
|
507
|
+
var A = T();
|
|
508
|
+
if (l.body.push(A), c && o && Ae(A)) {
|
|
509
|
+
var J = h;
|
|
510
|
+
K(h = !0);
|
|
511
511
|
}
|
|
512
512
|
c = !1;
|
|
513
513
|
}
|
|
514
|
-
return h && !
|
|
514
|
+
return h && !J && K(!1), E(l, "BlockStatement");
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
return o.ua = l,
|
|
516
|
+
function G(o, l) {
|
|
517
|
+
return o.ua = l, H(me), o.test = j === me ? null : ee(), H(me), o.update = j === de ? null : ee(), H(de), o.body = T(), z.pop(), E(o, "ForStatement");
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
return o.left = l, o.right =
|
|
519
|
+
function Ce(o, l) {
|
|
520
|
+
return o.left = l, o.right = ee(), H(de), o.body = T(), z.pop(), E(o, "ForInStatement");
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function at(o, l) {
|
|
523
523
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
524
|
-
var c =
|
|
525
|
-
if (c.id =
|
|
524
|
+
var c = $();
|
|
525
|
+
if (c.id = fe(), se && ut(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = W(Un) ? ee(!0, l) : null, o.fa.push(E(c, "VariableDeclarator")), !W(Se))
|
|
526
526
|
break;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
function
|
|
530
|
-
var c =
|
|
531
|
-
if (!o &&
|
|
532
|
-
for (o =
|
|
533
|
-
o.xb.push(
|
|
534
|
-
return
|
|
529
|
+
function ee(o, l) {
|
|
530
|
+
var c = St(l);
|
|
531
|
+
if (!o && j === Se) {
|
|
532
|
+
for (o = re(c), o.xb = [c]; W(Se); )
|
|
533
|
+
o.xb.push(St(l));
|
|
534
|
+
return E(o, "SequenceExpression");
|
|
535
535
|
}
|
|
536
536
|
return c;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
var l =
|
|
538
|
+
function St(o) {
|
|
539
|
+
var l = wt(kt(), -1, o);
|
|
540
540
|
if (W(Bn)) {
|
|
541
|
-
var c =
|
|
542
|
-
c.test = l, c.da =
|
|
541
|
+
var c = re(l);
|
|
542
|
+
c.test = l, c.da = ee(!0), H(Ge), c.alternate = ee(!0, o), l = E(c, "ConditionalExpression");
|
|
543
543
|
}
|
|
544
|
-
return
|
|
544
|
+
return j.Cb ? (c = re(l), c.operator = ce, c.left = l, y(), c.right = St(o), I(l), E(c, "AssignmentExpression")) : l;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
547
|
-
var h =
|
|
548
|
-
if (h !== null && (!c ||
|
|
549
|
-
var
|
|
550
|
-
return
|
|
546
|
+
function wt(o, l, c) {
|
|
547
|
+
var h = j.L;
|
|
548
|
+
if (h !== null && (!c || j !== ct) && h > l) {
|
|
549
|
+
var A = re(o);
|
|
550
|
+
return A.left = o, A.operator = ce, o = j, y(), A.right = wt(kt(), h, c), h = E(A, o === Dn || o === Wn ? "LogicalExpression" : "BinaryExpression"), wt(h, l, c);
|
|
551
551
|
}
|
|
552
552
|
return o;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
if (
|
|
556
|
-
var o =
|
|
557
|
-
return o.operator =
|
|
554
|
+
function kt() {
|
|
555
|
+
if (j.prefix) {
|
|
556
|
+
var o = $(), l = j.$b;
|
|
557
|
+
return o.operator = ce, Le = o.prefix = !0, y(), o.K = kt(), l ? I(o.K) : se && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), E(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
558
558
|
}
|
|
559
|
-
for (l =
|
|
560
|
-
o =
|
|
559
|
+
for (l = Ve(st()); j.cc && !ke(); )
|
|
560
|
+
o = re(l), o.operator = ce, o.prefix = !1, o.K = l, I(l), y(), l = E(o, "UpdateExpression");
|
|
561
561
|
return l;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Ve(o, l) {
|
|
564
564
|
if (W(Mn)) {
|
|
565
|
-
var c =
|
|
566
|
-
return c.object = o, c.Wa =
|
|
565
|
+
var c = re(o);
|
|
566
|
+
return c.object = o, c.Wa = fe(!0), c.bb = !1, Ve(E(c, "MemberExpression"), l);
|
|
567
567
|
}
|
|
568
|
-
return W(
|
|
568
|
+
return W(_t) ? (c = re(o), c.object = o, c.Wa = ee(), c.bb = !0, H(Dt), Ve(E(c, "MemberExpression"), l)) : !l && W(pe) ? (c = re(o), c.callee = o, c.arguments = Et(de, !1), Ve(E(c, "CallExpression"), l)) : o;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
switch (
|
|
570
|
+
function st() {
|
|
571
|
+
switch (j) {
|
|
572
572
|
case Rn:
|
|
573
|
-
var o =
|
|
574
|
-
return
|
|
575
|
-
case
|
|
576
|
-
return
|
|
577
|
-
case
|
|
578
|
-
case
|
|
573
|
+
var o = $();
|
|
574
|
+
return y(), E(o, "ThisExpression");
|
|
575
|
+
case Pe:
|
|
576
|
+
return fe();
|
|
577
|
+
case He:
|
|
578
|
+
case lt:
|
|
579
579
|
case mn:
|
|
580
|
-
return o =
|
|
580
|
+
return o = $(), o.value = ce, o.raw = x.slice(X, Oe), y(), E(o, "Literal");
|
|
581
581
|
case On:
|
|
582
582
|
case Pn:
|
|
583
583
|
case Nn:
|
|
584
|
-
return o =
|
|
585
|
-
case
|
|
586
|
-
o =
|
|
587
|
-
var l =
|
|
588
|
-
|
|
589
|
-
var c =
|
|
590
|
-
return c.start = l, c.end =
|
|
591
|
-
case
|
|
592
|
-
return o =
|
|
593
|
-
case
|
|
594
|
-
for (o =
|
|
584
|
+
return o = $(), o.value = j.$a, o.raw = j.l, y(), E(o, "Literal");
|
|
585
|
+
case pe:
|
|
586
|
+
o = Tt;
|
|
587
|
+
var l = X;
|
|
588
|
+
y();
|
|
589
|
+
var c = ee();
|
|
590
|
+
return c.start = l, c.end = Oe, R.C && (c.X.start = o, c.X.end = jt), R.Xa && (c.j = [l, Oe]), H(de), c;
|
|
591
|
+
case _t:
|
|
592
|
+
return o = $(), y(), o.elements = Et(Dt, !0, !0), E(o, "ArrayExpression");
|
|
593
|
+
case Ke:
|
|
594
|
+
for (o = $(), l = !0, c = !1, o.h = [], y(); !W(Ne); ) {
|
|
595
595
|
if (l)
|
|
596
596
|
l = !1;
|
|
597
|
-
else if (
|
|
597
|
+
else if (H(Se), R.sb && W(Ne))
|
|
598
598
|
break;
|
|
599
599
|
var h = {
|
|
600
|
-
key:
|
|
601
|
-
},
|
|
602
|
-
if (W(
|
|
603
|
-
h.value =
|
|
604
|
-
var
|
|
600
|
+
key: j === He || j === lt ? st() : fe(!0)
|
|
601
|
+
}, A = !1;
|
|
602
|
+
if (W(Ge)) {
|
|
603
|
+
h.value = ee(!0);
|
|
604
|
+
var J = h.kind = "init";
|
|
605
605
|
} else
|
|
606
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ?
|
|
607
|
-
if (h.key.type === "Identifier" && (
|
|
608
|
-
for (var
|
|
609
|
-
var
|
|
610
|
-
if (
|
|
611
|
-
var
|
|
612
|
-
|
|
606
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? C() : (A = c = !0, J = h.kind = h.key.name, h.key = j === He || j === lt ? st() : fe(!0), j !== pe && C(), h.value = Ct($(), !1));
|
|
607
|
+
if (h.key.type === "Identifier" && (se || c))
|
|
608
|
+
for (var ie = 0; ie < o.h.length; ++ie) {
|
|
609
|
+
var Be = o.h[ie];
|
|
610
|
+
if (Be.key.name === h.key.name) {
|
|
611
|
+
var Vt = J === Be.kind || A && Be.kind === "init" || J === "init" && (Be.kind === "get" || Be.kind === "set");
|
|
612
|
+
Vt && !se && J === "init" && Be.kind === "init" && (Vt = !1), Vt && n(h.key.start, "Redefinition of property");
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
o.h.push(h);
|
|
616
616
|
}
|
|
617
|
-
return
|
|
618
|
-
case
|
|
619
|
-
return o =
|
|
617
|
+
return E(o, "ObjectExpression");
|
|
618
|
+
case Mt:
|
|
619
|
+
return o = $(), y(), Ct(o, !1);
|
|
620
620
|
case An:
|
|
621
|
-
return o =
|
|
621
|
+
return o = $(), y(), o.callee = Ve(st(), !0), o.arguments = W(pe) ? Et(de, !1) : Ir, E(o, "NewExpression");
|
|
622
622
|
}
|
|
623
|
-
|
|
623
|
+
C();
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
|
|
625
|
+
function Ct(o, l) {
|
|
626
|
+
j === Pe ? o.id = fe() : l ? C() : o.id = null, o.oa = [];
|
|
627
627
|
var c = !0;
|
|
628
|
-
for (
|
|
629
|
-
c ? c = !1 :
|
|
630
|
-
c =
|
|
631
|
-
var h =
|
|
632
|
-
if (
|
|
628
|
+
for (H(pe); !W(de); )
|
|
629
|
+
c ? c = !1 : H(Se), o.oa.push(fe());
|
|
630
|
+
c = $e;
|
|
631
|
+
var h = z;
|
|
632
|
+
if ($e = !0, z = [], o.body = _(!0), $e = c, z = h, se || o.body.body.length && Ae(o.body.body[0])) {
|
|
633
633
|
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
634
|
-
if (h = 0 > c ? o.id : o.oa[c], (Vn(h.name) ||
|
|
635
|
-
for (var
|
|
636
|
-
h.name === o.oa[
|
|
634
|
+
if (h = 0 > c ? o.id : o.oa[c], (Vn(h.name) || ut(h.name)) && n(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
635
|
+
for (var A = 0; A < c; ++A)
|
|
636
|
+
h.name === o.oa[A].name && n(h.start, "Argument name clash in strict mode");
|
|
637
637
|
}
|
|
638
|
-
return
|
|
638
|
+
return E(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
639
639
|
}
|
|
640
|
-
function
|
|
641
|
-
for (var h = [],
|
|
642
|
-
if (
|
|
643
|
-
|
|
644
|
-
else if (
|
|
640
|
+
function Et(o, l, c) {
|
|
641
|
+
for (var h = [], A = !0; !W(o); ) {
|
|
642
|
+
if (A)
|
|
643
|
+
A = !1;
|
|
644
|
+
else if (H(Se), l && R.sb && W(o))
|
|
645
645
|
break;
|
|
646
|
-
h.push(c &&
|
|
646
|
+
h.push(c && j === Se ? null : ee(!0));
|
|
647
647
|
}
|
|
648
648
|
return h;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
var l =
|
|
652
|
-
return o &&
|
|
650
|
+
function fe(o) {
|
|
651
|
+
var l = $();
|
|
652
|
+
return o && R.yb === "everywhere" && (o = !1), j === Pe ? (!o && (R.yb && Ur(ce) || se && Vn(ce)) && x.slice(X, Oe).indexOf("\\") === -1 && n(X, "The keyword '" + ce + "' is reserved"), l.name = ce) : o && j.l ? l.name = j.l : C(), Le = !1, y(), E(l, "Identifier");
|
|
653
653
|
}
|
|
654
654
|
e.version = "0.5.0";
|
|
655
|
-
var
|
|
655
|
+
var R, x = "", Re, It;
|
|
656
656
|
e.parse = function(o, l) {
|
|
657
|
-
|
|
657
|
+
x = String(o), Re = x.length, R = l || {};
|
|
658
658
|
for (var c in pn)
|
|
659
|
-
Object.prototype.hasOwnProperty.call(
|
|
660
|
-
for (
|
|
661
|
-
c =
|
|
662
|
-
return
|
|
659
|
+
Object.prototype.hasOwnProperty.call(R, c) || (R[c] = pn[c]);
|
|
660
|
+
for (It = R.sourceFile, Ee = 1, d = he = 0, Le = !0, f(), c = R.dc, At = be = d, R.C && (Rt = new a()), $e = se = !1, z = [], v(), o = c || $(), l = !0, c || (o.body = []); j !== Ot; )
|
|
661
|
+
c = T(), o.body.push(c), l && Ae(c) && K(!0), l = !1;
|
|
662
|
+
return E(o, "Program");
|
|
663
663
|
};
|
|
664
664
|
var pn = {
|
|
665
665
|
fc: !1,
|
|
@@ -672,19 +672,19 @@ var U, ei = function(e) {
|
|
|
672
672
|
dc: null,
|
|
673
673
|
sourceFile: null,
|
|
674
674
|
vb: null
|
|
675
|
-
}, d = 0,
|
|
675
|
+
}, d = 0, X = 0, Oe = 0, Tt, jt, j, ce, Le, Ee, he, At = 0, be = 0, Rt, $e, z, se, Ir = [], He = {
|
|
676
676
|
type: "num"
|
|
677
677
|
}, mn = {
|
|
678
678
|
type: "regexp"
|
|
679
|
-
},
|
|
679
|
+
}, lt = {
|
|
680
680
|
type: "string"
|
|
681
|
-
},
|
|
681
|
+
}, Pe = {
|
|
682
682
|
type: "name"
|
|
683
|
-
}, Rt = {
|
|
684
|
-
type: "eof"
|
|
685
683
|
}, Ot = {
|
|
686
|
-
|
|
684
|
+
type: "eof"
|
|
687
685
|
}, Pt = {
|
|
686
|
+
l: "break"
|
|
687
|
+
}, Nt = {
|
|
688
688
|
l: "case",
|
|
689
689
|
m: !0
|
|
690
690
|
}, gn = {
|
|
@@ -706,23 +706,23 @@ var U, ei = function(e) {
|
|
|
706
706
|
}, kn = {
|
|
707
707
|
l: "for",
|
|
708
708
|
W: !0
|
|
709
|
-
},
|
|
709
|
+
}, Mt = {
|
|
710
710
|
l: "function"
|
|
711
711
|
}, Cn = {
|
|
712
712
|
l: "if"
|
|
713
713
|
}, En = {
|
|
714
714
|
l: "return",
|
|
715
715
|
m: !0
|
|
716
|
-
},
|
|
716
|
+
}, Bt = {
|
|
717
717
|
l: "switch"
|
|
718
718
|
}, In = {
|
|
719
719
|
l: "throw",
|
|
720
720
|
m: !0
|
|
721
721
|
}, Tn = {
|
|
722
722
|
l: "try"
|
|
723
|
-
}, Bt = {
|
|
724
|
-
l: "var"
|
|
725
723
|
}, Ft = {
|
|
724
|
+
l: "var"
|
|
725
|
+
}, Ut = {
|
|
726
726
|
l: "while",
|
|
727
727
|
W: !0
|
|
728
728
|
}, jn = {
|
|
@@ -741,13 +741,13 @@ var U, ei = function(e) {
|
|
|
741
741
|
}, Nn = {
|
|
742
742
|
l: "false",
|
|
743
743
|
$a: !1
|
|
744
|
-
},
|
|
744
|
+
}, ct = {
|
|
745
745
|
l: "in",
|
|
746
746
|
L: 7,
|
|
747
747
|
m: !0
|
|
748
748
|
}, Tr = {
|
|
749
|
-
break:
|
|
750
|
-
case:
|
|
749
|
+
break: Pt,
|
|
750
|
+
case: Nt,
|
|
751
751
|
catch: gn,
|
|
752
752
|
continue: vn,
|
|
753
753
|
debugger: yn,
|
|
@@ -756,20 +756,20 @@ var U, ei = function(e) {
|
|
|
756
756
|
else: Sn,
|
|
757
757
|
finally: wn,
|
|
758
758
|
for: kn,
|
|
759
|
-
function:
|
|
759
|
+
function: Mt,
|
|
760
760
|
if: Cn,
|
|
761
761
|
return: En,
|
|
762
|
-
switch:
|
|
762
|
+
switch: Bt,
|
|
763
763
|
throw: In,
|
|
764
764
|
try: Tn,
|
|
765
|
-
var:
|
|
766
|
-
while:
|
|
765
|
+
var: Ft,
|
|
766
|
+
while: Ut,
|
|
767
767
|
with: jn,
|
|
768
768
|
null: On,
|
|
769
769
|
true: Pn,
|
|
770
770
|
false: Nn,
|
|
771
771
|
new: An,
|
|
772
|
-
in:
|
|
772
|
+
in: ct,
|
|
773
773
|
instanceof: {
|
|
774
774
|
l: "instanceof",
|
|
775
775
|
L: 7,
|
|
@@ -791,28 +791,28 @@ var U, ei = function(e) {
|
|
|
791
791
|
prefix: !0,
|
|
792
792
|
m: !0
|
|
793
793
|
}
|
|
794
|
-
},
|
|
794
|
+
}, _t = {
|
|
795
795
|
type: "[",
|
|
796
796
|
m: !0
|
|
797
|
-
},
|
|
797
|
+
}, Dt = {
|
|
798
798
|
type: "]"
|
|
799
|
-
},
|
|
799
|
+
}, Ke = {
|
|
800
800
|
type: "{",
|
|
801
801
|
m: !0
|
|
802
|
-
},
|
|
802
|
+
}, Ne = {
|
|
803
803
|
type: "}"
|
|
804
|
-
},
|
|
804
|
+
}, pe = {
|
|
805
805
|
type: "(",
|
|
806
806
|
m: !0
|
|
807
|
-
},
|
|
807
|
+
}, de = {
|
|
808
808
|
type: ")"
|
|
809
809
|
}, Se = {
|
|
810
810
|
type: ",",
|
|
811
811
|
m: !0
|
|
812
|
-
},
|
|
812
|
+
}, me = {
|
|
813
813
|
type: ";",
|
|
814
814
|
m: !0
|
|
815
|
-
},
|
|
815
|
+
}, Ge = {
|
|
816
816
|
type: ":",
|
|
817
817
|
m: !0
|
|
818
818
|
}, Mn = {
|
|
@@ -826,7 +826,7 @@ var U, ei = function(e) {
|
|
|
826
826
|
}, Un = {
|
|
827
827
|
Cb: !0,
|
|
828
828
|
m: !0
|
|
829
|
-
},
|
|
829
|
+
}, Ie = {
|
|
830
830
|
Cb: !0,
|
|
831
831
|
m: !0
|
|
832
832
|
}, jr = {
|
|
@@ -867,15 +867,15 @@ var U, ei = function(e) {
|
|
|
867
867
|
}, Fr = {
|
|
868
868
|
L: 10,
|
|
869
869
|
m: !0
|
|
870
|
-
}, Ur = i("class enum extends super const export import"), Vn = i("implements interface let package private protected public static yield"),
|
|
870
|
+
}, Ur = i("class enum extends super const export import"), Vn = i("implements interface let package private protected public static yield"), ut = i("eval arguments"), _r = i("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"), Dr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ln = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Wr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), dt = /[\n\r\u2028\u2029]/, ft = /\r\n|[\n\r\u2028\u2029]/g, Me, Wt = {
|
|
871
871
|
kind: "loop"
|
|
872
872
|
}, Vr = {
|
|
873
873
|
kind: "switch"
|
|
874
874
|
};
|
|
875
|
-
},
|
|
876
|
-
ei(
|
|
875
|
+
}, zt = zt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
876
|
+
ei(zt.j || (zt.j = {}));
|
|
877
877
|
function m(e, t) {
|
|
878
|
-
typeof e == "string" && (e =
|
|
878
|
+
typeof e == "string" && (e = _e(e, "code"));
|
|
879
879
|
var r = e.constructor;
|
|
880
880
|
this.ya = function() {
|
|
881
881
|
return new r({
|
|
@@ -889,25 +889,25 @@ function m(e, t) {
|
|
|
889
889
|
var a, s;
|
|
890
890
|
for (s in this)
|
|
891
891
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
892
|
-
this.N =
|
|
893
|
-
`), "polyfills"), this.ba = void 0,
|
|
892
|
+
this.N = Yt(this, this.ra, null), this.Na = this.N.object, this.ra = _e(this.ba.join(`
|
|
893
|
+
`), "polyfills"), this.ba = void 0, vt(this.ra), a = new w(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = n, a = new w(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
894
894
|
}
|
|
895
895
|
var zn = {
|
|
896
896
|
C: !0,
|
|
897
897
|
kc: 5
|
|
898
|
-
},
|
|
898
|
+
}, tn = {
|
|
899
899
|
configurable: !0,
|
|
900
900
|
enumerable: !0,
|
|
901
901
|
writable: !1
|
|
902
|
-
},
|
|
902
|
+
}, S = {
|
|
903
903
|
configurable: !0,
|
|
904
904
|
enumerable: !1,
|
|
905
905
|
writable: !0
|
|
906
|
-
},
|
|
906
|
+
}, ae = {
|
|
907
907
|
configurable: !0,
|
|
908
908
|
enumerable: !1,
|
|
909
909
|
writable: !1
|
|
910
|
-
},
|
|
910
|
+
}, ze = {
|
|
911
911
|
configurable: !1,
|
|
912
912
|
enumerable: !1,
|
|
913
913
|
writable: !1
|
|
@@ -917,52 +917,52 @@ var zn = {
|
|
|
917
917
|
writable: !0
|
|
918
918
|
}, pr = {
|
|
919
919
|
STEP_ERROR: !0
|
|
920
|
-
},
|
|
920
|
+
}, We = {
|
|
921
921
|
SCOPE_REFERENCE: !0
|
|
922
|
-
},
|
|
922
|
+
}, et = {
|
|
923
923
|
VALUE_IN_DESCRIPTOR: !0
|
|
924
|
-
},
|
|
924
|
+
}, Fe = {
|
|
925
925
|
REGEXP_TIMEOUT: !0
|
|
926
|
-
}, Yn = [],
|
|
927
|
-
function
|
|
926
|
+
}, Yn = [], ve = null, Ze = null, we = typeof globalThis == "undefined" ? void 0 : globalThis, ti = ["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();", "};"];
|
|
927
|
+
function nn(e) {
|
|
928
928
|
var t = e >>> 0;
|
|
929
929
|
return t === Number(e) ? t : NaN;
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function Qe(e) {
|
|
932
932
|
var t = e >>> 0;
|
|
933
933
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function vt(e, t, r) {
|
|
936
936
|
t ? e.start = t : delete e.start, r ? e.end = r : delete e.end;
|
|
937
937
|
for (var n in e)
|
|
938
938
|
if (n !== "loc" && e.hasOwnProperty(n)) {
|
|
939
939
|
var i = e[n];
|
|
940
|
-
i && typeof i == "object" &&
|
|
940
|
+
i && typeof i == "object" && vt(i, t, r);
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
943
|
m.prototype.REGEXP_MODE = 2;
|
|
944
944
|
m.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
945
945
|
m.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
function
|
|
946
|
+
D = m.prototype;
|
|
947
|
+
D.P = !1;
|
|
948
|
+
D.Ka = !1;
|
|
949
|
+
D.Kb = 0;
|
|
950
|
+
D.ic = 0;
|
|
951
|
+
function _e(e, t) {
|
|
952
952
|
var r = {}, n;
|
|
953
953
|
for (n in zn)
|
|
954
954
|
r[n] = zn[n];
|
|
955
955
|
return r.sourceFile = t, we.j.parse(e, r);
|
|
956
956
|
}
|
|
957
|
-
|
|
957
|
+
D.Jb = function(e) {
|
|
958
958
|
var t = this.o[0];
|
|
959
959
|
if (!t || t.node.type !== "Program")
|
|
960
960
|
throw Error("Expecting original AST to start with a Program node");
|
|
961
|
-
if (typeof e == "string" && (e =
|
|
961
|
+
if (typeof e == "string" && (e = _e(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
962
962
|
throw Error("Expecting new AST to start with a Program node");
|
|
963
|
-
|
|
963
|
+
tt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
964
964
|
};
|
|
965
|
-
|
|
965
|
+
D.lb = function() {
|
|
966
966
|
var e = this.o, t;
|
|
967
967
|
do {
|
|
968
968
|
var r = e[e.length - 1];
|
|
@@ -975,22 +975,22 @@ U.lb = function() {
|
|
|
975
975
|
r = null;
|
|
976
976
|
else {
|
|
977
977
|
this.ca.shift(), 0 <= r.interval && vr(this, r, r.interval);
|
|
978
|
-
var n = new
|
|
978
|
+
var n = new w(r.node, r.scope);
|
|
979
979
|
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
980
980
|
}
|
|
981
981
|
if (!r)
|
|
982
982
|
break;
|
|
983
983
|
}
|
|
984
984
|
n = r.node;
|
|
985
|
-
var i =
|
|
986
|
-
|
|
985
|
+
var i = Ze;
|
|
986
|
+
Ze = this;
|
|
987
987
|
try {
|
|
988
988
|
var a = this.rb[n.type](e, r, n);
|
|
989
989
|
} catch (s) {
|
|
990
990
|
if (s !== pr)
|
|
991
991
|
throw this.value !== s && (this.value = void 0), s;
|
|
992
992
|
} finally {
|
|
993
|
-
|
|
993
|
+
Ze = i;
|
|
994
994
|
}
|
|
995
995
|
if (a && e.push(a), this.P)
|
|
996
996
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -1000,38 +1000,38 @@ U.lb = function() {
|
|
|
1000
1000
|
} while (!n.end && t > Date.now());
|
|
1001
1001
|
return !0;
|
|
1002
1002
|
};
|
|
1003
|
-
|
|
1003
|
+
D.Eb = function() {
|
|
1004
1004
|
for (; !this.za && this.lb(); )
|
|
1005
1005
|
;
|
|
1006
1006
|
return this.za;
|
|
1007
1007
|
};
|
|
1008
1008
|
function ni(e, t) {
|
|
1009
|
-
e.g(t, "NaN", NaN,
|
|
1009
|
+
e.g(t, "NaN", NaN, ze), e.g(t, "Infinity", 1 / 0, ze), e.g(t, "undefined", void 0, ze), e.g(t, "window", t, tn), e.g(t, "this", t, ze), e.g(t, "self", t), e.M = new B(null), e.Z = new B(e.M), ri(e, t), ii(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), oi(e, t), ai(e, t), si(e, t), li(e, t), ci(e, t), ui(e, t), di(e, t), fi(e, t), hi(e, t);
|
|
1010
1010
|
var r = e.i(function() {
|
|
1011
1011
|
throw EvalError("Can't happen");
|
|
1012
1012
|
}, !1);
|
|
1013
|
-
r.eval = !0, e.g(t, "eval", r,
|
|
1013
|
+
r.eval = !0, e.g(t, "eval", r, S), e.g(t, "parseInt", e.i(parseInt, !1), S), e.g(t, "parseFloat", e.i(parseFloat, !1), S), e.g(t, "isNaN", e.i(isNaN, !1), S), e.g(t, "isFinite", e.i(isFinite, !1), S);
|
|
1014
1014
|
for (var n = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], i = 0; i < n.length; i++)
|
|
1015
1015
|
r = function(a) {
|
|
1016
1016
|
return function(s) {
|
|
1017
1017
|
try {
|
|
1018
1018
|
return a(s);
|
|
1019
1019
|
} catch (u) {
|
|
1020
|
-
|
|
1020
|
+
k(e, e.Gb, u.message);
|
|
1021
1021
|
}
|
|
1022
1022
|
};
|
|
1023
|
-
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1),
|
|
1023
|
+
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1), S);
|
|
1024
1024
|
r = function(a) {
|
|
1025
1025
|
return Jn(e, !1, arguments);
|
|
1026
|
-
}, e.g(t, "setTimeout", e.i(r, !1),
|
|
1026
|
+
}, e.g(t, "setTimeout", e.i(r, !1), S), r = function(a) {
|
|
1027
1027
|
return Jn(e, !0, arguments);
|
|
1028
|
-
}, e.g(t, "setInterval", e.i(r, !1),
|
|
1028
|
+
}, e.g(t, "setInterval", e.i(r, !1), S), r = function(a) {
|
|
1029
1029
|
qn(e, a);
|
|
1030
|
-
}, e.g(t, "clearTimeout", e.i(r, !1),
|
|
1030
|
+
}, e.g(t, "clearTimeout", e.i(r, !1), S), r = function(a) {
|
|
1031
1031
|
qn(e, a);
|
|
1032
|
-
}, e.g(t, "clearInterval", e.i(r, !1),
|
|
1032
|
+
}, e.g(t, "clearInterval", e.i(r, !1), S), 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);
|
|
1033
1033
|
}
|
|
1034
|
-
|
|
1034
|
+
D.Wb = 0;
|
|
1035
1035
|
function ri(e, t) {
|
|
1036
1036
|
var r = /^[A-Za-z_$][\w$]*$/, n = function(i) {
|
|
1037
1037
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1039,83 +1039,83 @@ function ri(e, t) {
|
|
|
1039
1039
|
s = s.split(/\s*,\s*/);
|
|
1040
1040
|
for (var u = 0; u < s.length; u++) {
|
|
1041
1041
|
var f = s[u];
|
|
1042
|
-
r.test(f) ||
|
|
1042
|
+
r.test(f) || k(e, e.T, "Invalid function argument: " + f);
|
|
1043
1043
|
}
|
|
1044
1044
|
s = s.join(", ");
|
|
1045
1045
|
}
|
|
1046
1046
|
try {
|
|
1047
|
-
var g =
|
|
1047
|
+
var g = _e("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1048
1048
|
} catch (v) {
|
|
1049
|
-
|
|
1049
|
+
k(e, e.T, "Invalid code: " + v.message);
|
|
1050
1050
|
}
|
|
1051
|
-
return g.body.length !== 1 &&
|
|
1051
|
+
return g.body.length !== 1 && k(e, e.T, "Invalid code in function body"), an(e, g.body[0].la, e.N, "anonymous");
|
|
1052
1052
|
};
|
|
1053
|
-
e.O = e.i(n, !0), e.g(t, "Function", e.O,
|
|
1054
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1053
|
+
e.O = e.i(n, !0), e.g(t, "Function", e.O, S), e.g(e.O, "prototype", e.Z, S), e.g(e.Z, "constructor", e.O, S), e.Z.Ta = function() {
|
|
1054
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ae), e.Z.H = "Function", n = function(i, a) {
|
|
1055
1055
|
var s = e.o[e.o.length - 1];
|
|
1056
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof B ? s.F = mr(e, a) :
|
|
1057
|
-
},
|
|
1056
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof B ? s.F = mr(e, a) : k(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1057
|
+
}, q(e, e.O, "apply", n), n = function(i) {
|
|
1058
1058
|
var a = e.o[e.o.length - 1];
|
|
1059
1059
|
a.U = this, a.B = i, a.F = [];
|
|
1060
1060
|
for (var s = 1; s < arguments.length; s++)
|
|
1061
1061
|
a.F.push(arguments[s]);
|
|
1062
1062
|
a.eb = !1;
|
|
1063
|
-
},
|
|
1063
|
+
}, q(e, e.O, "call", n), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), n = function() {
|
|
1064
1064
|
return String(this);
|
|
1065
|
-
},
|
|
1065
|
+
}, q(e, e.O, "toString", n), e.g(e.O, "toString", e.i(n, !1), S), n = function() {
|
|
1066
1066
|
return this.valueOf();
|
|
1067
|
-
},
|
|
1067
|
+
}, q(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), S);
|
|
1068
1068
|
}
|
|
1069
1069
|
function ii(e, t) {
|
|
1070
1070
|
function r(i) {
|
|
1071
|
-
i != null ||
|
|
1071
|
+
i != null || k(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1072
1072
|
}
|
|
1073
1073
|
var n = function(i) {
|
|
1074
1074
|
if (i == null)
|
|
1075
|
-
return
|
|
1075
|
+
return xe(e) ? this : e.s(e.M);
|
|
1076
1076
|
if (!(i instanceof B)) {
|
|
1077
|
-
var a = e.s(
|
|
1077
|
+
var a = e.s(ye(e, i));
|
|
1078
1078
|
return a.data = i, a;
|
|
1079
1079
|
}
|
|
1080
1080
|
return i;
|
|
1081
1081
|
};
|
|
1082
|
-
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M,
|
|
1083
|
-
return r(i),
|
|
1084
|
-
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1),
|
|
1085
|
-
return r(i), i instanceof B && (i = i.h),
|
|
1086
|
-
}, e.g(e.v, "keys", e.i(n, !1),
|
|
1087
|
-
return i === null ? e.s(null) : (i instanceof B ||
|
|
1088
|
-
}, e.g(e.v, "create", e.i(n, !1),
|
|
1089
|
-
return a = String(a), i instanceof B ||
|
|
1090
|
-
}, e.g(e.v, "defineProperty", e.i(n, !1),
|
|
1091
|
-
if (i instanceof B ||
|
|
1082
|
+
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M, S), e.g(e.M, "constructor", e.v, S), e.g(t, "Object", e.v, S), n = function(i) {
|
|
1083
|
+
return r(i), ge(e, Object.getOwnPropertyNames(i instanceof B ? i.h : i));
|
|
1084
|
+
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1), S), n = function(i) {
|
|
1085
|
+
return r(i), i instanceof B && (i = i.h), ge(e, Object.keys(i));
|
|
1086
|
+
}, e.g(e.v, "keys", e.i(n, !1), S), n = function(i) {
|
|
1087
|
+
return i === null ? e.s(null) : (i instanceof B || k(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1088
|
+
}, e.g(e.v, "create", e.i(n, !1), S), 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;", "};", "})();", ""), n = function(i, a, s) {
|
|
1089
|
+
return a = String(a), i instanceof B || k(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof B || k(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || k(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, et, s.h), i;
|
|
1090
|
+
}, e.g(e.v, "defineProperty", e.i(n, !1), S), 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;", "}", "});", ""), n = function(i, a) {
|
|
1091
|
+
if (i instanceof B || k(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1092
1092
|
var s = Object.getOwnPropertyDescriptor(i.h, a), u = i.V[a];
|
|
1093
1093
|
return i = i.Y[a], a = e.s(e.M), u || i ? (e.g(a, "get", u), e.g(a, "set", i)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1094
1094
|
}
|
|
1095
|
-
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1),
|
|
1096
|
-
return r(i),
|
|
1097
|
-
}, e.g(e.v, "getPrototypeOf", e.i(n, !1),
|
|
1095
|
+
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1), S), n = function(i) {
|
|
1096
|
+
return r(i), ye(e, i);
|
|
1097
|
+
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), S), n = function(i) {
|
|
1098
1098
|
return !!i && !i.preventExtensions;
|
|
1099
|
-
}, e.g(e.v, "isExtensible", e.i(n, !1),
|
|
1099
|
+
}, e.g(e.v, "isExtensible", e.i(n, !1), S), n = function(i) {
|
|
1100
1100
|
return i instanceof B && (i.preventExtensions = !0), i;
|
|
1101
|
-
}, e.g(e.v, "preventExtensions", e.i(n, !1),
|
|
1101
|
+
}, e.g(e.v, "preventExtensions", e.i(n, !1), S), q(e, e.v, "toString", B.prototype.toString), q(e, e.v, "toLocaleString", B.prototype.toString), q(e, e.v, "valueOf", B.prototype.valueOf), n = function(i) {
|
|
1102
1102
|
return r(this), this instanceof B ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1103
|
-
},
|
|
1103
|
+
}, q(e, e.v, "hasOwnProperty", n), n = function(i) {
|
|
1104
1104
|
return r(this), this instanceof B ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1105
|
-
},
|
|
1105
|
+
}, q(e, e.v, "propertyIsEnumerable", n), n = function(i) {
|
|
1106
1106
|
for (; ; ) {
|
|
1107
|
-
if (i =
|
|
1107
|
+
if (i = ye(e, i), !i)
|
|
1108
1108
|
return !1;
|
|
1109
1109
|
if (i === this)
|
|
1110
1110
|
return !0;
|
|
1111
1111
|
}
|
|
1112
|
-
},
|
|
1112
|
+
}, q(e, e.v, "isPrototypeOf", n);
|
|
1113
1113
|
}
|
|
1114
1114
|
function oi(e, t) {
|
|
1115
1115
|
var r = function(n) {
|
|
1116
|
-
var i =
|
|
1116
|
+
var i = xe(e) ? this : De(e), a = arguments[0];
|
|
1117
1117
|
if (arguments.length === 1 && typeof a == "number")
|
|
1118
|
-
isNaN(
|
|
1118
|
+
isNaN(nn(a)) && k(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1119
1119
|
else {
|
|
1120
1120
|
for (a = 0; a < arguments.length; a++)
|
|
1121
1121
|
i.h[a] = arguments[a];
|
|
@@ -1123,9 +1123,9 @@ function oi(e, t) {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
return i;
|
|
1125
1125
|
};
|
|
1126
|
-
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa,
|
|
1126
|
+
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, S), r = function(n) {
|
|
1127
1127
|
return n && n.H === "Array";
|
|
1128
|
-
}, e.g(e.qa, "isArray", e.i(r, !1),
|
|
1128
|
+
}, e.g(e.qa, "isArray", e.i(r, !1), S), e.g(e.La, "length", 0, {
|
|
1129
1129
|
configurable: !1,
|
|
1130
1130
|
enumerable: !1,
|
|
1131
1131
|
writable: !0
|
|
@@ -1133,78 +1133,78 @@ function oi(e, t) {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
function ai(e, t) {
|
|
1135
1135
|
var r = function(n) {
|
|
1136
|
-
return n = arguments.length ? we.String(n) : "",
|
|
1136
|
+
return n = arguments.length ? we.String(n) : "", xe(e) ? (this.data = n, this) : n;
|
|
1137
1137
|
};
|
|
1138
|
-
for (e.J = e.i(r, !0), e.g(t, "String", e.J,
|
|
1139
|
-
|
|
1138
|
+
for (e.J = e.i(r, !0), e.g(t, "String", e.J, S), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), S), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), r = 0; r < t.length; r++)
|
|
1139
|
+
q(e, e.J, t[r], String.prototype[t[r]]);
|
|
1140
1140
|
r = function(n, i, a) {
|
|
1141
1141
|
i = e.R(i), a = e.R(a);
|
|
1142
1142
|
try {
|
|
1143
1143
|
return String(this).localeCompare(n, i, a);
|
|
1144
1144
|
} catch (s) {
|
|
1145
|
-
|
|
1145
|
+
k(e, e.D, "localeCompare: " + s.message);
|
|
1146
1146
|
}
|
|
1147
|
-
},
|
|
1147
|
+
}, q(e, e.J, "localeCompare", r), r = function(n, i, a) {
|
|
1148
1148
|
var s = String(this);
|
|
1149
|
-
if (i = i ? Number(i) : void 0,
|
|
1150
|
-
if (
|
|
1151
|
-
n =
|
|
1149
|
+
if (i = i ? Number(i) : void 0, Q(e, n, e.I) && (n = n.data, Ye(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1150
|
+
if (ve)
|
|
1151
|
+
n = Xe(e, "string.split(separator, limit)", {
|
|
1152
1152
|
string: s,
|
|
1153
1153
|
separator: n,
|
|
1154
1154
|
limit: i
|
|
1155
|
-
}, n, a), n !==
|
|
1155
|
+
}, n, a), n !== Fe && a(ge(e, n));
|
|
1156
1156
|
else {
|
|
1157
|
-
var u = e.ha(), f =
|
|
1157
|
+
var u = e.ha(), f = Je(e, n, u, a);
|
|
1158
1158
|
u.onmessage = function(g) {
|
|
1159
|
-
clearTimeout(f), a(
|
|
1159
|
+
clearTimeout(f), a(ge(e, g.data));
|
|
1160
1160
|
}, u.postMessage(["split", s, n, i]);
|
|
1161
1161
|
}
|
|
1162
1162
|
return;
|
|
1163
1163
|
}
|
|
1164
|
-
n = s.split(n, i), a(
|
|
1165
|
-
},
|
|
1164
|
+
n = s.split(n, i), a(ge(e, n));
|
|
1165
|
+
}, qe(e, e.J, "split", r), r = function(n, i) {
|
|
1166
1166
|
var a = String(this);
|
|
1167
|
-
if (n =
|
|
1168
|
-
if (
|
|
1169
|
-
n =
|
|
1167
|
+
if (n = Q(e, n, e.I) ? n.data : new RegExp(n), Ye(e, n, i), e.REGEXP_MODE === 2)
|
|
1168
|
+
if (ve)
|
|
1169
|
+
n = Xe(e, "string.match(regexp)", {
|
|
1170
1170
|
string: a,
|
|
1171
1171
|
regexp: n
|
|
1172
|
-
}, n, i), n !==
|
|
1172
|
+
}, n, i), n !== Fe && i(n && ge(e, n));
|
|
1173
1173
|
else {
|
|
1174
|
-
var s = e.ha(), u =
|
|
1174
|
+
var s = e.ha(), u = Je(e, n, s, i);
|
|
1175
1175
|
s.onmessage = function(f) {
|
|
1176
|
-
clearTimeout(u), i(f.data &&
|
|
1176
|
+
clearTimeout(u), i(f.data && ge(e, f.data));
|
|
1177
1177
|
}, s.postMessage(["match", a, n]);
|
|
1178
1178
|
}
|
|
1179
1179
|
else
|
|
1180
|
-
n = a.match(n), i(n &&
|
|
1181
|
-
},
|
|
1180
|
+
n = a.match(n), i(n && ge(e, n));
|
|
1181
|
+
}, qe(e, e.J, "match", r), r = function(n, i) {
|
|
1182
1182
|
var a = String(this);
|
|
1183
|
-
if (
|
|
1184
|
-
if (
|
|
1185
|
-
n =
|
|
1183
|
+
if (Q(e, n, e.I) ? n = n.data : n = new RegExp(n), Ye(e, n, i), e.REGEXP_MODE === 2)
|
|
1184
|
+
if (ve)
|
|
1185
|
+
n = Xe(e, "string.search(regexp)", {
|
|
1186
1186
|
string: a,
|
|
1187
1187
|
regexp: n
|
|
1188
|
-
}, n, i), n !==
|
|
1188
|
+
}, n, i), n !== Fe && i(n);
|
|
1189
1189
|
else {
|
|
1190
|
-
var s = e.ha(), u =
|
|
1190
|
+
var s = e.ha(), u = Je(e, n, s, i);
|
|
1191
1191
|
s.onmessage = function(f) {
|
|
1192
1192
|
clearTimeout(u), i(f.data);
|
|
1193
1193
|
}, s.postMessage(["search", a, n]);
|
|
1194
1194
|
}
|
|
1195
1195
|
else
|
|
1196
1196
|
i(a.search(n));
|
|
1197
|
-
},
|
|
1197
|
+
}, qe(e, e.J, "search", r), r = function(n, i, a) {
|
|
1198
1198
|
var s = String(this);
|
|
1199
|
-
if (i = String(i),
|
|
1200
|
-
if (
|
|
1201
|
-
n =
|
|
1199
|
+
if (i = String(i), Q(e, n, e.I) && (n = n.data, Ye(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1200
|
+
if (ve)
|
|
1201
|
+
n = Xe(e, "string.replace(substr, newSubstr)", {
|
|
1202
1202
|
string: s,
|
|
1203
1203
|
substr: n,
|
|
1204
1204
|
newSubstr: i
|
|
1205
|
-
}, n, a), n !==
|
|
1205
|
+
}, n, a), n !== Fe && a(n);
|
|
1206
1206
|
else {
|
|
1207
|
-
var u = e.ha(), f =
|
|
1207
|
+
var u = e.ha(), f = Je(e, n, u, a);
|
|
1208
1208
|
u.onmessage = function(g) {
|
|
1209
1209
|
clearTimeout(f), a(g.data);
|
|
1210
1210
|
}, u.postMessage(["replace", s, n, i]);
|
|
@@ -1212,173 +1212,173 @@ function ai(e, t) {
|
|
|
1212
1212
|
return;
|
|
1213
1213
|
}
|
|
1214
1214
|
a(s.replace(n, i));
|
|
1215
|
-
},
|
|
1215
|
+
}, qe(e, e.J, "replace", r), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1216
1216
|
}
|
|
1217
1217
|
function si(e, t) {
|
|
1218
1218
|
e.mb = e.i(function(r) {
|
|
1219
|
-
return r = we.Boolean(r),
|
|
1220
|
-
}, !0), e.g(t, "Boolean", e.mb,
|
|
1219
|
+
return r = we.Boolean(r), xe(e) ? (this.data = r, this) : r;
|
|
1220
|
+
}, !0), e.g(t, "Boolean", e.mb, S);
|
|
1221
1221
|
}
|
|
1222
1222
|
function li(e, t) {
|
|
1223
1223
|
var r = function(n) {
|
|
1224
|
-
return n = arguments.length ? we.Number(n) : 0,
|
|
1224
|
+
return n = arguments.length ? we.Number(n) : 0, xe(e) ? (this.data = n, this) : n;
|
|
1225
1225
|
};
|
|
1226
|
-
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa,
|
|
1227
|
-
e.g(e.aa, t[r], Number[t[r]],
|
|
1226
|
+
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa, S), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], r = 0; r < t.length; r++)
|
|
1227
|
+
e.g(e.aa, t[r], Number[t[r]], ze);
|
|
1228
1228
|
r = function(n) {
|
|
1229
1229
|
try {
|
|
1230
1230
|
return Number(this).toExponential(n);
|
|
1231
1231
|
} catch (i) {
|
|
1232
|
-
|
|
1232
|
+
k(e, e.D, i.message);
|
|
1233
1233
|
}
|
|
1234
|
-
},
|
|
1234
|
+
}, q(e, e.aa, "toExponential", r), r = function(n) {
|
|
1235
1235
|
try {
|
|
1236
1236
|
return Number(this).toFixed(n);
|
|
1237
1237
|
} catch (i) {
|
|
1238
|
-
|
|
1238
|
+
k(e, e.D, i.message);
|
|
1239
1239
|
}
|
|
1240
|
-
},
|
|
1240
|
+
}, q(e, e.aa, "toFixed", r), r = function(n) {
|
|
1241
1241
|
try {
|
|
1242
1242
|
return Number(this).toPrecision(n);
|
|
1243
1243
|
} catch (i) {
|
|
1244
|
-
|
|
1244
|
+
k(e, e.D, i.message);
|
|
1245
1245
|
}
|
|
1246
|
-
},
|
|
1246
|
+
}, q(e, e.aa, "toPrecision", r), r = function(n) {
|
|
1247
1247
|
try {
|
|
1248
1248
|
return Number(this).toString(n);
|
|
1249
1249
|
} catch (i) {
|
|
1250
|
-
|
|
1250
|
+
k(e, e.D, i.message);
|
|
1251
1251
|
}
|
|
1252
|
-
},
|
|
1252
|
+
}, q(e, e.aa, "toString", r), r = function(n, i) {
|
|
1253
1253
|
n = n ? e.R(n) : void 0, i = i ? e.R(i) : void 0;
|
|
1254
1254
|
try {
|
|
1255
1255
|
return Number(this).toLocaleString(n, i);
|
|
1256
1256
|
} catch (a) {
|
|
1257
|
-
|
|
1257
|
+
k(e, e.D, "toLocaleString: " + a.message);
|
|
1258
1258
|
}
|
|
1259
|
-
},
|
|
1259
|
+
}, q(e, e.aa, "toLocaleString", r);
|
|
1260
1260
|
}
|
|
1261
1261
|
function ci(e, t) {
|
|
1262
1262
|
var r = function(i, a) {
|
|
1263
|
-
if (!
|
|
1263
|
+
if (!xe(e))
|
|
1264
1264
|
return we.Date();
|
|
1265
1265
|
var s = [null].concat(Array.from(arguments));
|
|
1266
1266
|
return this.data = new (Function.prototype.bind.apply(we.Date, s))(), this;
|
|
1267
1267
|
};
|
|
1268
|
-
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$,
|
|
1268
|
+
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, S), e.g(e.$, "now", e.i(Date.now, !1), S), e.g(e.$, "parse", e.i(Date.parse, !1), S), e.g(e.$, "UTC", e.i(Date.UTC, !1), S), 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(" ");
|
|
1269
1269
|
for (var n = 0; n < t.length; n++)
|
|
1270
1270
|
r = function(i) {
|
|
1271
1271
|
return function(a) {
|
|
1272
1272
|
var s = this.data;
|
|
1273
|
-
s instanceof Date ||
|
|
1273
|
+
s instanceof Date || k(e, e.j, i + " not called on a Date");
|
|
1274
1274
|
for (var u = [], f = 0; f < arguments.length; f++)
|
|
1275
1275
|
u[f] = e.R(arguments[f]);
|
|
1276
1276
|
return s[i].apply(s, u);
|
|
1277
1277
|
};
|
|
1278
|
-
}(t[n]),
|
|
1278
|
+
}(t[n]), q(e, e.$, t[n], r);
|
|
1279
1279
|
}
|
|
1280
1280
|
function ui(e, t) {
|
|
1281
1281
|
var r = function(n, i) {
|
|
1282
|
-
if (
|
|
1282
|
+
if (xe(e))
|
|
1283
1283
|
var a = this;
|
|
1284
1284
|
else {
|
|
1285
|
-
if (i === void 0 &&
|
|
1285
|
+
if (i === void 0 && Q(e, n, e.I))
|
|
1286
1286
|
return n;
|
|
1287
1287
|
a = e.s(e.Ma);
|
|
1288
1288
|
}
|
|
1289
|
-
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) ||
|
|
1289
|
+
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) || k(e, e.T, "Invalid regexp flag: " + i);
|
|
1290
1290
|
try {
|
|
1291
1291
|
var s = new we.RegExp(n, i);
|
|
1292
1292
|
} catch (u) {
|
|
1293
|
-
|
|
1293
|
+
k(e, e.T, u.message);
|
|
1294
1294
|
}
|
|
1295
|
-
return
|
|
1295
|
+
return rn(e, a, s), a;
|
|
1296
1296
|
};
|
|
1297
|
-
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I,
|
|
1297
|
+
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, S), e.g(e.I.h.prototype, "global", void 0, ae), e.g(e.I.h.prototype, "ignoreCase", void 0, ae), e.g(e.I.h.prototype, "multiline", void 0, ae), e.g(e.I.h.prototype, "source", "(?:)", ae), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, i) {
|
|
1298
1298
|
function a(v) {
|
|
1299
1299
|
if (v) {
|
|
1300
|
-
var
|
|
1301
|
-
return e.g(
|
|
1300
|
+
var b = ge(e, v);
|
|
1301
|
+
return e.g(b, "index", v.index), e.g(b, "input", v.input), b;
|
|
1302
1302
|
}
|
|
1303
1303
|
return null;
|
|
1304
1304
|
}
|
|
1305
1305
|
var s = this.data;
|
|
1306
|
-
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1307
|
-
if (
|
|
1308
|
-
n =
|
|
1306
|
+
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")), Ye(e, s, i), e.REGEXP_MODE === 2)
|
|
1307
|
+
if (ve)
|
|
1308
|
+
n = Xe(e, "regexp.exec(string)", {
|
|
1309
1309
|
string: n,
|
|
1310
1310
|
regexp: s
|
|
1311
|
-
}, s, i), n !==
|
|
1311
|
+
}, s, i), n !== Fe && (e.g(this, "lastIndex", s.lastIndex), i(a(n)));
|
|
1312
1312
|
else {
|
|
1313
|
-
var u = e.ha(), f =
|
|
1313
|
+
var u = e.ha(), f = Je(e, s, u, i), g = this;
|
|
1314
1314
|
u.onmessage = function(v) {
|
|
1315
1315
|
clearTimeout(f), e.g(g, "lastIndex", v.data[1]), i(a(v.data[0]));
|
|
1316
1316
|
}, u.postMessage(["exec", s, s.lastIndex, n]);
|
|
1317
1317
|
}
|
|
1318
1318
|
else
|
|
1319
1319
|
n = s.exec(n), e.g(this, "lastIndex", s.lastIndex), i(a(n));
|
|
1320
|
-
},
|
|
1320
|
+
}, qe(e, e.I, "exec", r);
|
|
1321
1321
|
}
|
|
1322
1322
|
function di(e, t) {
|
|
1323
1323
|
function r(n) {
|
|
1324
1324
|
var i = e.i(function(a) {
|
|
1325
|
-
var s =
|
|
1326
|
-
return
|
|
1325
|
+
var s = xe(e) ? this : e.Aa(i);
|
|
1326
|
+
return Xt(e, s, a), s;
|
|
1327
1327
|
}, !0);
|
|
1328
|
-
return e.g(i, "prototype", e.Aa(e.D),
|
|
1328
|
+
return e.g(i, "prototype", e.Aa(e.D), S), e.g(i.h.prototype, "name", n, S), e.g(t, n, i, S), i;
|
|
1329
1329
|
}
|
|
1330
1330
|
e.D = e.i(function(n) {
|
|
1331
|
-
var i =
|
|
1332
|
-
return
|
|
1333
|
-
}, !0), e.g(t, "Error", e.D,
|
|
1331
|
+
var i = xe(e) ? this : e.Aa(e.D);
|
|
1332
|
+
return Xt(e, i, n), i;
|
|
1333
|
+
}, !0), e.g(t, "Error", e.D, S), e.g(e.D.h.prototype, "message", "", S), e.g(e.D.h.prototype, "name", "Error", S), r("EvalError"), e.ob = r("RangeError"), e.pb = r("ReferenceError"), e.T = r("SyntaxError"), e.j = r("TypeError"), e.Gb = r("URIError");
|
|
1334
1334
|
}
|
|
1335
1335
|
function fi(e, t) {
|
|
1336
1336
|
var r = e.s(e.M);
|
|
1337
|
-
e.g(t, "Math", r,
|
|
1337
|
+
e.g(t, "Math", r, S);
|
|
1338
1338
|
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1339
1339
|
for (t = 0; t < n.length; t++)
|
|
1340
|
-
e.g(r, n[t], Math[n[t]],
|
|
1340
|
+
e.g(r, n[t], Math[n[t]], ae);
|
|
1341
1341
|
for (n = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < n.length; t++)
|
|
1342
|
-
e.g(r, n[t], e.i(Math[n[t]], !1),
|
|
1342
|
+
e.g(r, n[t], e.i(Math[n[t]], !1), S);
|
|
1343
1343
|
}
|
|
1344
1344
|
function hi(e, t) {
|
|
1345
1345
|
var r = e.s(e.M);
|
|
1346
|
-
e.g(t, "JSON", r,
|
|
1346
|
+
e.g(t, "JSON", r, S), t = function(n) {
|
|
1347
1347
|
try {
|
|
1348
1348
|
var i = JSON.parse(String(n));
|
|
1349
1349
|
} catch (a) {
|
|
1350
|
-
|
|
1350
|
+
k(e, e.T, a.message);
|
|
1351
1351
|
}
|
|
1352
1352
|
return e.Ia(i);
|
|
1353
1353
|
}, e.g(r, "parse", e.i(t, !1)), t = function(n, i, a) {
|
|
1354
|
-
i && i.H === "Function" ?
|
|
1354
|
+
i && i.H === "Function" ? k(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = mr(e, i), i = i.filter(function(u) {
|
|
1355
1355
|
return typeof u == "string" || typeof u == "number";
|
|
1356
1356
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), n = e.R(n);
|
|
1357
1357
|
try {
|
|
1358
1358
|
var s = JSON.stringify(n, i, a);
|
|
1359
1359
|
} catch (u) {
|
|
1360
|
-
|
|
1360
|
+
k(e, e.j, u.message);
|
|
1361
1361
|
}
|
|
1362
1362
|
return s;
|
|
1363
1363
|
}, e.g(r, "stringify", e.i(t, !1));
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function Q(e, t, r) {
|
|
1366
1366
|
if (t == null || !r)
|
|
1367
1367
|
return !1;
|
|
1368
1368
|
if (r = r.h.prototype, t === r)
|
|
1369
1369
|
return !0;
|
|
1370
|
-
for (t =
|
|
1370
|
+
for (t = ye(e, t); t; ) {
|
|
1371
1371
|
if (t === r)
|
|
1372
1372
|
return !0;
|
|
1373
1373
|
t = t.xa;
|
|
1374
1374
|
}
|
|
1375
1375
|
return !1;
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1378
|
-
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex,
|
|
1377
|
+
function rn(e, t, r) {
|
|
1378
|
+
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, S), e.g(t, "source", r.source, ae), e.g(t, "global", r.global, ae), e.g(t, "ignoreCase", r.ignoreCase, ae), e.g(t, "multiline", r.multiline, ae);
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1381
|
-
r && e.g(t, "message", String(r),
|
|
1380
|
+
function Xt(e, t, r) {
|
|
1381
|
+
r && e.g(t, "message", String(r), S), r = [];
|
|
1382
1382
|
for (var n = e.o.length - 1; 0 <= n; n--) {
|
|
1383
1383
|
var i = e.o[n], a = i.node;
|
|
1384
1384
|
a.type === "CallExpression" && (i = i.U) && r.length && (r[r.length - 1].Ob = e.G(i, "name")), !a.X || r.length && a.type !== "CallExpression" || r.push({
|
|
@@ -1392,63 +1392,63 @@ function zt(e, t, r) {
|
|
|
1392
1392
|
`) : a + (" at " + s + `
|
|
1393
1393
|
`);
|
|
1394
1394
|
}
|
|
1395
|
-
e.g(t, "stack", a.trim(),
|
|
1395
|
+
e.g(t, "stack", a.trim(), S);
|
|
1396
1396
|
}
|
|
1397
|
-
|
|
1397
|
+
D.ha = function() {
|
|
1398
1398
|
var e = this.ha.Mb;
|
|
1399
1399
|
return e || (e = new Blob([ti.join(`
|
|
1400
1400
|
`)], {
|
|
1401
1401
|
type: "application/javascript"
|
|
1402
1402
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1403
1403
|
};
|
|
1404
|
-
function
|
|
1404
|
+
function Xe(e, t, r, n, i) {
|
|
1405
1405
|
var a = {
|
|
1406
1406
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1407
1407
|
};
|
|
1408
1408
|
try {
|
|
1409
|
-
return
|
|
1409
|
+
return ve.runInNewContext(t, r, a);
|
|
1410
1410
|
} catch {
|
|
1411
|
-
i(null),
|
|
1411
|
+
i(null), k(e, e.D, "RegExp Timeout: " + n);
|
|
1412
1412
|
}
|
|
1413
|
-
return
|
|
1413
|
+
return Fe;
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function Ye(e, t, r) {
|
|
1416
1416
|
if (e.REGEXP_MODE === 0)
|
|
1417
1417
|
var n = !1;
|
|
1418
1418
|
else if (e.REGEXP_MODE === 1)
|
|
1419
1419
|
n = !0;
|
|
1420
|
-
else if (
|
|
1420
|
+
else if (ve)
|
|
1421
1421
|
n = !0;
|
|
1422
1422
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1423
1423
|
n = !0;
|
|
1424
1424
|
else if (typeof require == "function") {
|
|
1425
1425
|
try {
|
|
1426
|
-
|
|
1426
|
+
ve = require("vm");
|
|
1427
1427
|
} catch {
|
|
1428
1428
|
}
|
|
1429
|
-
n = !!
|
|
1429
|
+
n = !!ve;
|
|
1430
1430
|
} else
|
|
1431
1431
|
n = !1;
|
|
1432
|
-
n || (r(null),
|
|
1432
|
+
n || (r(null), k(e, e.D, "Regular expressions not supported: " + t));
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function Je(e, t, r, n) {
|
|
1435
1435
|
return setTimeout(function() {
|
|
1436
1436
|
r.terminate(), n(null);
|
|
1437
1437
|
try {
|
|
1438
|
-
|
|
1438
|
+
k(e, e.D, "RegExp Timeout: " + t);
|
|
1439
1439
|
} catch {
|
|
1440
1440
|
}
|
|
1441
1441
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1442
1442
|
}
|
|
1443
|
-
|
|
1443
|
+
D.Aa = function(e) {
|
|
1444
1444
|
return this.s(e && e.h.prototype);
|
|
1445
1445
|
};
|
|
1446
|
-
|
|
1446
|
+
D.s = function(e) {
|
|
1447
1447
|
if (typeof e != "object")
|
|
1448
1448
|
throw Error("Non object prototype");
|
|
1449
|
-
return e = new B(e),
|
|
1449
|
+
return e = new B(e), Q(this, e, this.D) && (e.H = "Error"), e;
|
|
1450
1450
|
};
|
|
1451
|
-
function
|
|
1451
|
+
function De(e) {
|
|
1452
1452
|
var t = e.s(e.La);
|
|
1453
1453
|
return e.g(t, "length", 0, {
|
|
1454
1454
|
configurable: !1,
|
|
@@ -1456,29 +1456,29 @@ function _e(e) {
|
|
|
1456
1456
|
writable: !0
|
|
1457
1457
|
}), t.H = "Array", t;
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function on(e, t, r) {
|
|
1460
1460
|
var n = e.s(e.Z);
|
|
1461
|
-
return r ? (r = e.s(e.M), e.g(n, "prototype", r,
|
|
1461
|
+
return r ? (r = e.s(e.M), e.g(n, "prototype", r, S), e.g(r, "constructor", n, S)) : n.Ab = !0, e.g(n, "length", t, ae), n.H = "Function", n;
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1464
|
-
var i =
|
|
1465
|
-
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "",
|
|
1463
|
+
function an(e, t, r, n) {
|
|
1464
|
+
var i = on(e, t.oa.length, !0);
|
|
1465
|
+
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "", ae), i;
|
|
1466
1466
|
}
|
|
1467
|
-
|
|
1468
|
-
return t =
|
|
1467
|
+
D.i = function(e, t) {
|
|
1468
|
+
return t = on(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ae), t;
|
|
1469
1469
|
};
|
|
1470
|
-
|
|
1471
|
-
var t =
|
|
1472
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1470
|
+
D.ub = function(e) {
|
|
1471
|
+
var t = on(this, e.length, !0);
|
|
1472
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ae), t;
|
|
1473
1473
|
};
|
|
1474
|
-
|
|
1474
|
+
D.Ia = function(e) {
|
|
1475
1475
|
if (e instanceof B)
|
|
1476
1476
|
throw Error("Object is already pseudo");
|
|
1477
1477
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1478
1478
|
return e;
|
|
1479
1479
|
if (e instanceof RegExp) {
|
|
1480
1480
|
var t = this.s(this.Ma);
|
|
1481
|
-
return
|
|
1481
|
+
return rn(this, t, e), t;
|
|
1482
1482
|
}
|
|
1483
1483
|
if (e instanceof Date)
|
|
1484
1484
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1492,7 +1492,7 @@ U.Ia = function(e) {
|
|
|
1492
1492
|
}, !!t);
|
|
1493
1493
|
}
|
|
1494
1494
|
if (Array.isArray(e)) {
|
|
1495
|
-
t =
|
|
1495
|
+
t = De(this);
|
|
1496
1496
|
for (var n = 0; n < e.length; n++)
|
|
1497
1497
|
n in e && this.g(t, n, this.Ia(e[n]));
|
|
1498
1498
|
return t;
|
|
@@ -1502,14 +1502,14 @@ U.Ia = function(e) {
|
|
|
1502
1502
|
this.g(t, n, this.Ia(e[n]));
|
|
1503
1503
|
return t;
|
|
1504
1504
|
};
|
|
1505
|
-
|
|
1505
|
+
D.R = function(e, t) {
|
|
1506
1506
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1507
1507
|
return e;
|
|
1508
1508
|
if (!(e instanceof B))
|
|
1509
1509
|
throw Error("Object is not pseudo");
|
|
1510
|
-
if (
|
|
1510
|
+
if (Q(this, e, this.I))
|
|
1511
1511
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
1512
|
-
if (
|
|
1512
|
+
if (Q(this, e, this.$))
|
|
1513
1513
|
return new Date(e.data.valueOf());
|
|
1514
1514
|
t = t || {
|
|
1515
1515
|
hb: [],
|
|
@@ -1518,10 +1518,10 @@ U.R = function(e, t) {
|
|
|
1518
1518
|
var r = t.hb.indexOf(e);
|
|
1519
1519
|
if (r !== -1)
|
|
1520
1520
|
return t.Sa[r];
|
|
1521
|
-
if (t.hb.push(e),
|
|
1521
|
+
if (t.hb.push(e), Q(this, e, this.qa)) {
|
|
1522
1522
|
r = [], t.Sa.push(r);
|
|
1523
1523
|
for (var n = this.G(e, "length"), i = 0; i < n; i++)
|
|
1524
|
-
|
|
1524
|
+
yt(this, e, i) && (r[i] = this.R(this.G(e, i), t));
|
|
1525
1525
|
} else
|
|
1526
1526
|
for (n in r = {}, t.Sa.push(r), e.h)
|
|
1527
1527
|
i = this.R(e.h[n], t), Object.defineProperty(r, n, {
|
|
@@ -1532,8 +1532,8 @@ U.R = function(e, t) {
|
|
|
1532
1532
|
});
|
|
1533
1533
|
return t.hb.pop(), t.Sa.pop(), r;
|
|
1534
1534
|
};
|
|
1535
|
-
function
|
|
1536
|
-
for (var r =
|
|
1535
|
+
function ge(e, t) {
|
|
1536
|
+
for (var r = De(e), n = Object.getOwnPropertyNames(t), i = 0; i < n.length; i++)
|
|
1537
1537
|
e.g(r, n[i], t[n[i]]);
|
|
1538
1538
|
return r;
|
|
1539
1539
|
}
|
|
@@ -1541,9 +1541,9 @@ function mr(e, t) {
|
|
|
1541
1541
|
var r = [], n;
|
|
1542
1542
|
for (n in t.h)
|
|
1543
1543
|
r[n] = e.G(t, n);
|
|
1544
|
-
return r.length =
|
|
1544
|
+
return r.length = nn(e.G(t, "length")) || 0, r;
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function ye(e, t) {
|
|
1547
1547
|
switch (typeof t) {
|
|
1548
1548
|
case "number":
|
|
1549
1549
|
return e.aa.h.prototype;
|
|
@@ -1554,52 +1554,52 @@ function ve(e, t) {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
return t ? t.xa : null;
|
|
1556
1556
|
}
|
|
1557
|
-
|
|
1557
|
+
D.G = function(e, t) {
|
|
1558
1558
|
if (this.P)
|
|
1559
1559
|
throw Error("Getter not supported in that context");
|
|
1560
|
-
if (t = String(t), e != null ||
|
|
1560
|
+
if (t = String(t), e != null || k(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof B))
|
|
1561
1561
|
throw TypeError("Expecting native value or pseudo object");
|
|
1562
1562
|
if (t === "length") {
|
|
1563
|
-
if (
|
|
1563
|
+
if (Q(this, e, this.J))
|
|
1564
1564
|
return String(e).length;
|
|
1565
|
-
} else if (64 > t.charCodeAt(0) &&
|
|
1566
|
-
var r =
|
|
1565
|
+
} else if (64 > t.charCodeAt(0) && Q(this, e, this.J)) {
|
|
1566
|
+
var r = Qe(t);
|
|
1567
1567
|
if (!isNaN(r) && r < String(e).length)
|
|
1568
1568
|
return String(e)[r];
|
|
1569
1569
|
}
|
|
1570
1570
|
do
|
|
1571
1571
|
if (e.h && t in e.h)
|
|
1572
1572
|
return (r = e.V[t]) ? (this.P = !0, r) : e.h[t];
|
|
1573
|
-
while (e =
|
|
1573
|
+
while (e = ye(this, e));
|
|
1574
1574
|
};
|
|
1575
|
-
function
|
|
1575
|
+
function yt(e, t, r) {
|
|
1576
1576
|
if (!(t instanceof B))
|
|
1577
1577
|
throw TypeError("Primitive data type has no properties");
|
|
1578
|
-
if (r = String(r), r === "length" &&
|
|
1578
|
+
if (r = String(r), r === "length" && Q(e, t, e.J))
|
|
1579
1579
|
return !0;
|
|
1580
|
-
if (
|
|
1581
|
-
var n =
|
|
1580
|
+
if (Q(e, t, e.J)) {
|
|
1581
|
+
var n = Qe(r);
|
|
1582
1582
|
if (!isNaN(n) && n < String(t).length)
|
|
1583
1583
|
return !0;
|
|
1584
1584
|
}
|
|
1585
1585
|
do
|
|
1586
1586
|
if (t.h && r in t.h)
|
|
1587
1587
|
return !0;
|
|
1588
|
-
while (t =
|
|
1588
|
+
while (t = ye(e, t));
|
|
1589
1589
|
return !1;
|
|
1590
1590
|
}
|
|
1591
|
-
|
|
1591
|
+
D.g = function(e, t, r, n) {
|
|
1592
1592
|
if (this.Ka)
|
|
1593
1593
|
throw Error("Setter not supported in that context");
|
|
1594
|
-
if (t = String(t), e != null ||
|
|
1594
|
+
if (t = String(t), e != null || k(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof B))
|
|
1595
1595
|
throw TypeError("Expecting native value or pseudo object");
|
|
1596
|
-
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) &&
|
|
1597
|
-
var i = !this.o ||
|
|
1596
|
+
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && k(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1597
|
+
var i = !this.o || sn(this).S;
|
|
1598
1598
|
if (e instanceof B) {
|
|
1599
|
-
if (
|
|
1600
|
-
var a =
|
|
1599
|
+
if (Q(this, e, this.J)) {
|
|
1600
|
+
var a = Qe(t);
|
|
1601
1601
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1602
|
-
i &&
|
|
1602
|
+
i && k(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1603
1603
|
return;
|
|
1604
1604
|
}
|
|
1605
1605
|
}
|
|
@@ -1610,64 +1610,64 @@ U.g = function(e, t, r, n) {
|
|
|
1610
1610
|
return;
|
|
1611
1611
|
r = n.value;
|
|
1612
1612
|
}
|
|
1613
|
-
if (r =
|
|
1613
|
+
if (r = nn(r), isNaN(r) && k(this, this.ob, "Invalid array length"), r < a)
|
|
1614
1614
|
for (s in e.h) {
|
|
1615
|
-
var s =
|
|
1615
|
+
var s = Qe(s);
|
|
1616
1616
|
!isNaN(s) && r <= s && delete e.h[s];
|
|
1617
1617
|
}
|
|
1618
1618
|
} else
|
|
1619
|
-
isNaN(s =
|
|
1619
|
+
isNaN(s = Qe(t)) || (e.h.length = Math.max(a, s + 1));
|
|
1620
1620
|
if (!e.preventExtensions || t in e.h)
|
|
1621
1621
|
if (n) {
|
|
1622
|
-
i = {}, "get" in n && n.get && (e.V[t] = n.get, i.get = this.g.ac), "set" in n && n.set && (e.Y[t] = n.set, i.set = this.g.bc), "configurable" in n && (i.configurable = n.configurable), "enumerable" in n && (i.enumerable = n.enumerable), "writable" in n && (i.writable = n.writable, delete e.V[t], delete e.Y[t]), "value" in n ? (i.value = n.value, delete e.V[t], delete e.Y[t]) : r !==
|
|
1622
|
+
i = {}, "get" in n && n.get && (e.V[t] = n.get, i.get = this.g.ac), "set" in n && n.set && (e.Y[t] = n.set, i.set = this.g.bc), "configurable" in n && (i.configurable = n.configurable), "enumerable" in n && (i.enumerable = n.enumerable), "writable" in n && (i.writable = n.writable, delete e.V[t], delete e.Y[t]), "value" in n ? (i.value = n.value, delete e.V[t], delete e.Y[t]) : r !== et && (i.value = r, delete e.V[t], delete e.Y[t]);
|
|
1623
1623
|
try {
|
|
1624
1624
|
Object.defineProperty(e.h, t, i);
|
|
1625
1625
|
} catch {
|
|
1626
|
-
|
|
1626
|
+
k(this, this.j, "Cannot redefine property: " + t);
|
|
1627
1627
|
}
|
|
1628
1628
|
"get" in n && !n.get && delete e.V[t], "set" in n && !n.set && delete e.Y[t];
|
|
1629
1629
|
} else {
|
|
1630
|
-
if (r ===
|
|
1630
|
+
if (r === et)
|
|
1631
1631
|
throw ReferenceError("Value not specified");
|
|
1632
1632
|
for (n = e; !(t in n.h); )
|
|
1633
|
-
if (n =
|
|
1633
|
+
if (n = ye(this, n), !n) {
|
|
1634
1634
|
n = e;
|
|
1635
1635
|
break;
|
|
1636
1636
|
}
|
|
1637
1637
|
if (n.Y && n.Y[t])
|
|
1638
1638
|
return this.Ka = !0, n.Y[t];
|
|
1639
1639
|
if (n.V && n.V[t])
|
|
1640
|
-
i &&
|
|
1640
|
+
i && k(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1641
1641
|
else
|
|
1642
1642
|
try {
|
|
1643
1643
|
e.h[t] = r;
|
|
1644
1644
|
} catch {
|
|
1645
|
-
i &&
|
|
1645
|
+
i && k(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1646
1646
|
}
|
|
1647
1647
|
}
|
|
1648
1648
|
else
|
|
1649
|
-
i &&
|
|
1649
|
+
i && k(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1650
1650
|
} else
|
|
1651
|
-
i &&
|
|
1651
|
+
i && k(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1652
1652
|
};
|
|
1653
|
-
|
|
1653
|
+
D.g.ac = function() {
|
|
1654
1654
|
throw Error("Placeholder getter");
|
|
1655
1655
|
};
|
|
1656
|
-
|
|
1656
|
+
D.g.bc = function() {
|
|
1657
1657
|
throw Error("Placeholder setter");
|
|
1658
1658
|
};
|
|
1659
|
-
function
|
|
1660
|
-
e.g(t.h.prototype, r, e.i(n, !1),
|
|
1659
|
+
function q(e, t, r, n) {
|
|
1660
|
+
e.g(t.h.prototype, r, e.i(n, !1), S);
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1663
|
-
e.g(t.h.prototype, r, e.ub(n),
|
|
1662
|
+
function qe(e, t, r, n) {
|
|
1663
|
+
e.g(t.h.prototype, r, e.ub(n), S);
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function sn(e) {
|
|
1666
1666
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1667
1667
|
throw Error("No scope found");
|
|
1668
1668
|
return e;
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1670
|
+
function Yt(e, t, r) {
|
|
1671
1671
|
var n = !1;
|
|
1672
1672
|
if (r && r.S)
|
|
1673
1673
|
n = !0;
|
|
@@ -1675,40 +1675,40 @@ function Xt(e, t, r) {
|
|
|
1675
1675
|
var i = t.body && t.body[0];
|
|
1676
1676
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (n = !0);
|
|
1677
1677
|
}
|
|
1678
|
-
return i = e.s(null), n = new yr(r, n, i), r || ni(e, n.object),
|
|
1678
|
+
return i = e.s(null), n = new yr(r, n, i), r || ni(e, n.object), tt(e, t, n), n;
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function ln(e, t, r) {
|
|
1681
1681
|
if (!t)
|
|
1682
1682
|
throw Error("parentScope required");
|
|
1683
1683
|
return e = r || e.s(null), new yr(t, t.S, e);
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1686
|
-
for (var r =
|
|
1685
|
+
function cn(e, t) {
|
|
1686
|
+
for (var r = sn(e); r && r !== e.N; ) {
|
|
1687
1687
|
if (t in r.object.h)
|
|
1688
1688
|
return r.object.h[t];
|
|
1689
1689
|
r = r.Va;
|
|
1690
1690
|
}
|
|
1691
|
-
if (r === e.N &&
|
|
1691
|
+
if (r === e.N && yt(e, r.object, t))
|
|
1692
1692
|
return e.G(r.object, t);
|
|
1693
|
-
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" ||
|
|
1693
|
+
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || k(e, e.pb, t + " is not defined");
|
|
1694
1694
|
}
|
|
1695
1695
|
function gr(e, t, r) {
|
|
1696
|
-
for (var n =
|
|
1696
|
+
for (var n = sn(e), i = n.S; n && n !== e.N; ) {
|
|
1697
1697
|
if (t in n.object.h) {
|
|
1698
1698
|
try {
|
|
1699
1699
|
n.object.h[t] = r;
|
|
1700
1700
|
} catch {
|
|
1701
|
-
i &&
|
|
1701
|
+
i && k(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1702
1702
|
}
|
|
1703
1703
|
return;
|
|
1704
1704
|
}
|
|
1705
1705
|
n = n.Va;
|
|
1706
1706
|
}
|
|
1707
|
-
if (n === e.N && (!i ||
|
|
1707
|
+
if (n === e.N && (!i || yt(e, n.object, t)))
|
|
1708
1708
|
return e.g(n.object, t, r);
|
|
1709
|
-
|
|
1709
|
+
k(e, e.pb, t + " is not defined");
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function tt(e, t, r) {
|
|
1712
1712
|
if (t.jb)
|
|
1713
1713
|
var n = t.jb;
|
|
1714
1714
|
else {
|
|
@@ -1741,12 +1741,12 @@ function et(e, t, r) {
|
|
|
1741
1741
|
if (Array.isArray(u)) {
|
|
1742
1742
|
for (i = 0; i < u.length; i++)
|
|
1743
1743
|
if (u[i] && u[i].constructor === a) {
|
|
1744
|
-
var f =
|
|
1744
|
+
var f = tt(e, u[i], r);
|
|
1745
1745
|
for (s in f)
|
|
1746
1746
|
n[s] = f[s];
|
|
1747
1747
|
}
|
|
1748
1748
|
} else if (u.constructor === a)
|
|
1749
|
-
for (s in f =
|
|
1749
|
+
for (s in f = tt(e, u, r), f)
|
|
1750
1750
|
n[s] = f[s];
|
|
1751
1751
|
}
|
|
1752
1752
|
}
|
|
@@ -1754,22 +1754,22 @@ function et(e, t, r) {
|
|
|
1754
1754
|
t.jb = n;
|
|
1755
1755
|
}
|
|
1756
1756
|
for (s in n)
|
|
1757
|
-
n[s] === !0 ? e.g(r.object, s, void 0, Xn) : e.g(r.object, s,
|
|
1757
|
+
n[s] === !0 ? e.g(r.object, s, void 0, Xn) : e.g(r.object, s, an(e, n[s], r), Xn);
|
|
1758
1758
|
return n;
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1760
|
+
function xe(e) {
|
|
1761
1761
|
return e.o[e.o.length - 1].isConstructor;
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1764
|
-
return t[0] ===
|
|
1763
|
+
function un(e, t) {
|
|
1764
|
+
return t[0] === We ? cn(e, t[1]) : e.G(t[0], t[1]);
|
|
1765
1765
|
}
|
|
1766
|
-
function
|
|
1767
|
-
return t[0] ===
|
|
1766
|
+
function dn(e, t, r) {
|
|
1767
|
+
return t[0] === We ? gr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1770
|
-
throw e.N ? (r !== void 0 && t instanceof B && (t = e.Aa(t),
|
|
1769
|
+
function k(e, t, r) {
|
|
1770
|
+
throw e.N ? (r !== void 0 && t instanceof B && (t = e.Aa(t), Xt(e, t, r)), it(e, 4, t), pr) : r === void 0 ? t : r;
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function it(e, t, r, n) {
|
|
1773
1773
|
if (t === 0)
|
|
1774
1774
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1775
1775
|
var i = e.o;
|
|
@@ -1805,7 +1805,7 @@ function rt(e, t, r, n) {
|
|
|
1805
1805
|
} else if (t === 2 && (n ? a.labels && a.labels.indexOf(n) !== -1 : a.W))
|
|
1806
1806
|
return;
|
|
1807
1807
|
}
|
|
1808
|
-
throw
|
|
1808
|
+
throw Q(e, r, e.D) ? (t = {
|
|
1809
1809
|
EvalError,
|
|
1810
1810
|
RangeError,
|
|
1811
1811
|
ReferenceError,
|
|
@@ -1814,34 +1814,34 @@ function rt(e, t, r, n) {
|
|
|
1814
1814
|
URIError
|
|
1815
1815
|
}, n = String(e.G(r, "name")), i = e.G(r, "message").valueOf(), t = (t[n] || Error)(i), t.stack = String(e.G(r, "stack"))) : t = String(r), e.value = t, t;
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function oe(e, t) {
|
|
1818
1818
|
switch (t.type) {
|
|
1819
1819
|
case "ArrayExpression":
|
|
1820
1820
|
return "[...]";
|
|
1821
1821
|
case "BinaryExpression":
|
|
1822
1822
|
case "LogicalExpression":
|
|
1823
|
-
return
|
|
1823
|
+
return oe(e, t.left) + " " + t.operator + " " + oe(e, t.right);
|
|
1824
1824
|
case "CallExpression":
|
|
1825
|
-
return
|
|
1825
|
+
return oe(e, t.callee) + "(...)";
|
|
1826
1826
|
case "ConditionalExpression":
|
|
1827
|
-
return
|
|
1827
|
+
return oe(e, t.test) + " ? " + oe(e, t.da) + " : " + oe(e, t.alternate);
|
|
1828
1828
|
case "Identifier":
|
|
1829
1829
|
return t.name;
|
|
1830
1830
|
case "Literal":
|
|
1831
1831
|
return t.raw;
|
|
1832
1832
|
case "MemberExpression":
|
|
1833
|
-
var r =
|
|
1834
|
-
return e =
|
|
1833
|
+
var r = oe(e, t.object);
|
|
1834
|
+
return e = oe(e, t.Wa), t.bb ? r + "[" + e + "]" : r + "." + e;
|
|
1835
1835
|
case "NewExpression":
|
|
1836
|
-
return "new " +
|
|
1836
|
+
return "new " + oe(e, t.callee) + "(...)";
|
|
1837
1837
|
case "ObjectExpression":
|
|
1838
1838
|
return "{...}";
|
|
1839
1839
|
case "ThisExpression":
|
|
1840
1840
|
return "this";
|
|
1841
1841
|
case "UnaryExpression":
|
|
1842
|
-
return t.operator + " " +
|
|
1842
|
+
return t.operator + " " + oe(e, t.K);
|
|
1843
1843
|
case "UpdateExpression":
|
|
1844
|
-
return r =
|
|
1844
|
+
return r = oe(e, t.K), t.prefix ? t.operator + r : r + t.operator;
|
|
1845
1845
|
}
|
|
1846
1846
|
return "???";
|
|
1847
1847
|
}
|
|
@@ -1854,11 +1854,11 @@ function Jn(e, t, r) {
|
|
|
1854
1854
|
s.type = "CallExpression", n = n.scope;
|
|
1855
1855
|
} else {
|
|
1856
1856
|
try {
|
|
1857
|
-
var f =
|
|
1857
|
+
var f = _e(String(a), "taskCode" + e.ic++);
|
|
1858
1858
|
} catch (g) {
|
|
1859
|
-
|
|
1859
|
+
k(e, e.T, "Invalid code: " + g.message);
|
|
1860
1860
|
}
|
|
1861
|
-
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0],
|
|
1861
|
+
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0], vt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, i.length = 0;
|
|
1862
1862
|
}
|
|
1863
1863
|
return t = new pi(u, i, n, s, t ? r : -1), vr(e, t, r), t.Db;
|
|
1864
1864
|
}
|
|
@@ -1874,33 +1874,33 @@ function qn(e, t) {
|
|
|
1874
1874
|
break;
|
|
1875
1875
|
}
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function ot(e, t, r) {
|
|
1878
1878
|
if (!e.P)
|
|
1879
1879
|
throw Error("Unexpected call to createGetter");
|
|
1880
1880
|
e.P = !1, r = Array.isArray(r) ? r[0] : r;
|
|
1881
1881
|
var n = e.ya();
|
|
1882
|
-
return n.type = "CallExpression", e = new
|
|
1882
|
+
return n.type = "CallExpression", e = new w(n, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function fn(e, t, r, n) {
|
|
1885
1885
|
if (!e.Ka)
|
|
1886
1886
|
throw Error("Unexpected call to createSetter");
|
|
1887
1887
|
e.Ka = !1, r = Array.isArray(r) ? r[0] : e.Na;
|
|
1888
1888
|
var i = e.ya();
|
|
1889
|
-
return i.type = "CallExpression", e = new
|
|
1889
|
+
return i.type = "CallExpression", e = new w(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [n], e;
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1892
|
-
return t == null ? e.Na : t instanceof B ? t : (e = e.s(
|
|
1891
|
+
function Lt(e, t) {
|
|
1892
|
+
return t == null ? e.Na : t instanceof B ? t : (e = e.s(ye(e, t)), e.data = t, e);
|
|
1893
1893
|
}
|
|
1894
|
-
|
|
1894
|
+
D.Xb = function() {
|
|
1895
1895
|
return this.N;
|
|
1896
1896
|
};
|
|
1897
|
-
|
|
1897
|
+
D.Yb = function() {
|
|
1898
1898
|
return this.o;
|
|
1899
1899
|
};
|
|
1900
|
-
|
|
1900
|
+
D.ec = function(e) {
|
|
1901
1901
|
this.o = e;
|
|
1902
1902
|
};
|
|
1903
|
-
function
|
|
1903
|
+
function w(e, t) {
|
|
1904
1904
|
this.node = e, this.scope = t;
|
|
1905
1905
|
}
|
|
1906
1906
|
function yr(e, t, r) {
|
|
@@ -1909,12 +1909,12 @@ function yr(e, t, r) {
|
|
|
1909
1909
|
function B(e) {
|
|
1910
1910
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1911
1911
|
}
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
if (!
|
|
1912
|
+
D = B.prototype;
|
|
1913
|
+
D.xa = null;
|
|
1914
|
+
D.H = "Object";
|
|
1915
|
+
D.data = null;
|
|
1916
|
+
D.toString = function() {
|
|
1917
|
+
if (!Ze)
|
|
1918
1918
|
return "[object Interpreter.Object]";
|
|
1919
1919
|
if (!(this instanceof B))
|
|
1920
1920
|
return String(this);
|
|
@@ -1961,8 +1961,8 @@ U.toString = function() {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1963
1963
|
};
|
|
1964
|
-
|
|
1965
|
-
return !
|
|
1964
|
+
D.valueOf = function() {
|
|
1965
|
+
return !Ze || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1966
1966
|
};
|
|
1967
1967
|
function pi(e, t, r, n, i) {
|
|
1968
1968
|
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++mi, this.time = 0;
|
|
@@ -1971,18 +1971,18 @@ var mi = 0;
|
|
|
1971
1971
|
m.prototype.stepArrayExpression = function(e, t, r) {
|
|
1972
1972
|
r = r.elements;
|
|
1973
1973
|
var n = t.A || 0;
|
|
1974
|
-
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa =
|
|
1974
|
+
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa = De(this), t.Oa.h.length = r.length); n < r.length; ) {
|
|
1975
1975
|
if (r[n])
|
|
1976
|
-
return t.A = n, new
|
|
1976
|
+
return t.A = n, new w(r[n], t.scope);
|
|
1977
1977
|
n++;
|
|
1978
1978
|
}
|
|
1979
1979
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1980
1980
|
};
|
|
1981
1981
|
m.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
1982
1982
|
if (!t.ja)
|
|
1983
|
-
return t.ja = !0, t = new
|
|
1983
|
+
return t.ja = !0, t = new w(r.left, t.scope), t.sa = !0, t;
|
|
1984
1984
|
if (!t.Da)
|
|
1985
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e =
|
|
1985
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e = un(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, ot(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new w(r.right, t.scope));
|
|
1986
1986
|
if (t.ta)
|
|
1987
1987
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1988
1988
|
else {
|
|
@@ -2027,16 +2027,16 @@ m.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
2027
2027
|
default:
|
|
2028
2028
|
throw SyntaxError("Unknown assignment expression: " + r.operator);
|
|
2029
2029
|
}
|
|
2030
|
-
if (r =
|
|
2031
|
-
return t.ta = !0, t.ib = n,
|
|
2030
|
+
if (r = dn(this, t.Fa, n))
|
|
2031
|
+
return t.ta = !0, t.ib = n, fn(this, r, t.Fa, n);
|
|
2032
2032
|
e.pop(), e[e.length - 1].value = n;
|
|
2033
2033
|
}
|
|
2034
2034
|
};
|
|
2035
2035
|
m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
2036
2036
|
if (!t.ja)
|
|
2037
|
-
return t.ja = !0, new
|
|
2037
|
+
return t.ja = !0, new w(r.left, t.scope);
|
|
2038
2038
|
if (!t.Da)
|
|
2039
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2039
|
+
return t.Da = !0, t.ma = t.value, new w(r.right, t.scope);
|
|
2040
2040
|
e.pop();
|
|
2041
2041
|
var n = t.ma;
|
|
2042
2042
|
switch (t = t.value, r.operator) {
|
|
@@ -2098,10 +2098,10 @@ m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2098
2098
|
r = n >>> t;
|
|
2099
2099
|
break;
|
|
2100
2100
|
case "in":
|
|
2101
|
-
t instanceof B ||
|
|
2101
|
+
t instanceof B || k(this, this.j, "'in' expects an object, not '" + t + "'"), r = yt(this, t, n);
|
|
2102
2102
|
break;
|
|
2103
2103
|
case "instanceof":
|
|
2104
|
-
|
|
2104
|
+
Q(this, t, this.O) || k(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof B ? Q(this, n, t) : !1;
|
|
2105
2105
|
break;
|
|
2106
2106
|
default:
|
|
2107
2107
|
throw SyntaxError("Unknown binary operator: " + r.operator);
|
|
@@ -2111,35 +2111,35 @@ m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2111
2111
|
m.prototype.stepBlockStatement = function(e, t, r) {
|
|
2112
2112
|
var n = t.A || 0;
|
|
2113
2113
|
if (r = r.body[n])
|
|
2114
|
-
return t.A = n + 1, new
|
|
2114
|
+
return t.A = n + 1, new w(r, t.scope);
|
|
2115
2115
|
e.pop();
|
|
2116
2116
|
};
|
|
2117
2117
|
m.prototype.stepBreakStatement = function(e, t, r) {
|
|
2118
|
-
|
|
2118
|
+
it(this, 1, void 0, r.label && r.label.name);
|
|
2119
2119
|
};
|
|
2120
2120
|
m.prototype.Hb = 0;
|
|
2121
2121
|
m.prototype.stepCallExpression = function(e, t, r) {
|
|
2122
2122
|
if (!t.ia) {
|
|
2123
2123
|
t.ia = 1;
|
|
2124
|
-
var n = new
|
|
2124
|
+
var n = new w(r.callee, t.scope);
|
|
2125
2125
|
return n.sa = !0, n;
|
|
2126
2126
|
}
|
|
2127
2127
|
if (t.ia === 1) {
|
|
2128
2128
|
t.ia = 2;
|
|
2129
2129
|
var i = t.value;
|
|
2130
2130
|
if (Array.isArray(i)) {
|
|
2131
|
-
if (t.U =
|
|
2132
|
-
return t.ia = 1,
|
|
2131
|
+
if (t.U = un(this, i), i[0] === We ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2132
|
+
return t.ia = 1, ot(this, i, t.value);
|
|
2133
2133
|
} else
|
|
2134
2134
|
t.U = i;
|
|
2135
2135
|
t.F = [], t.A = 0;
|
|
2136
2136
|
}
|
|
2137
2137
|
if (i = t.U, !t.Qa) {
|
|
2138
2138
|
if (t.A !== 0 && t.F.push(t.value), r.arguments[t.A])
|
|
2139
|
-
return new
|
|
2139
|
+
return new w(r.arguments[t.A++], t.scope);
|
|
2140
2140
|
if (r.type === "NewExpression") {
|
|
2141
|
-
if (i instanceof B && !i.Ab ||
|
|
2142
|
-
t.B =
|
|
2141
|
+
if (i instanceof B && !i.Ab || k(this, this.j, oe(this, r.callee) + " is not a constructor"), i === this.qa)
|
|
2142
|
+
t.B = De(this);
|
|
2143
2143
|
else {
|
|
2144
2144
|
var a = i.h.prototype;
|
|
2145
2145
|
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
@@ -2151,61 +2151,61 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2151
2151
|
if (t.eb)
|
|
2152
2152
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2153
2153
|
else {
|
|
2154
|
-
if (t.eb = !0, i instanceof B ||
|
|
2155
|
-
for (r =
|
|
2154
|
+
if (t.eb = !0, i instanceof B || k(this, this.j, oe(this, r.callee) + " is not a function"), e = i.node) {
|
|
2155
|
+
for (r = Yt(this, e.body, i.Va), n = De(this), i = 0; i < t.F.length; i++)
|
|
2156
2156
|
this.g(n, i, t.F[i]);
|
|
2157
2157
|
for (this.g(r.object, "arguments", n), i = 0; i < e.oa.length; i++)
|
|
2158
2158
|
this.g(r.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2159
|
-
return r.S || (t.B =
|
|
2159
|
+
return r.S || (t.B = Lt(this, t.B)), this.g(r.object, "this", t.B, tn), t.value = void 0, new w(e.body, r);
|
|
2160
2160
|
}
|
|
2161
2161
|
if (i.eval)
|
|
2162
2162
|
if (i = t.F[0], typeof i != "string")
|
|
2163
2163
|
t.value = i;
|
|
2164
2164
|
else {
|
|
2165
2165
|
try {
|
|
2166
|
-
n =
|
|
2166
|
+
n = _e(String(i), "eval" + this.Hb++);
|
|
2167
2167
|
} catch (u) {
|
|
2168
|
-
|
|
2168
|
+
k(this, this.T, "Invalid code: " + u.message);
|
|
2169
2169
|
}
|
|
2170
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body,
|
|
2170
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, vt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = Yt(this, n, r) : tt(this, n, r), this.value = void 0, new w(i, r);
|
|
2171
2171
|
}
|
|
2172
2172
|
else if (i.Ta)
|
|
2173
|
-
t.scope.S || (t.B =
|
|
2173
|
+
t.scope.S || (t.B = Lt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2174
2174
|
else if (i.Za) {
|
|
2175
2175
|
var s = this;
|
|
2176
2176
|
n = i.Za.length - 1, n = t.F.concat(Array(n)).slice(0, n), n.push(function(u) {
|
|
2177
2177
|
t.value = u, s.za = !1;
|
|
2178
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2178
|
+
}), this.za = !0, t.scope.S || (t.B = Lt(this, t.B)), i.Za.apply(t.B, n);
|
|
2179
2179
|
} else
|
|
2180
|
-
|
|
2180
|
+
k(this, this.j, oe(this, r.callee) + " is not callable");
|
|
2181
2181
|
}
|
|
2182
2182
|
};
|
|
2183
2183
|
m.prototype.stepConditionalExpression = function(e, t, r) {
|
|
2184
2184
|
var n = t.na || 0;
|
|
2185
2185
|
if (n === 0)
|
|
2186
|
-
return t.na = 1, new
|
|
2186
|
+
return t.na = 1, new w(r.test, t.scope);
|
|
2187
2187
|
if (n === 1) {
|
|
2188
2188
|
if (t.na = 2, (n = !!t.value) && r.da)
|
|
2189
|
-
return new
|
|
2189
|
+
return new w(r.da, t.scope);
|
|
2190
2190
|
if (!n && r.alternate)
|
|
2191
|
-
return new
|
|
2191
|
+
return new w(r.alternate, t.scope);
|
|
2192
2192
|
this.value = void 0;
|
|
2193
2193
|
}
|
|
2194
2194
|
e.pop(), r.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2195
2195
|
};
|
|
2196
2196
|
m.prototype.stepContinueStatement = function(e, t, r) {
|
|
2197
|
-
|
|
2197
|
+
it(this, 2, void 0, r.label && r.label.name);
|
|
2198
2198
|
};
|
|
2199
2199
|
m.prototype.stepDebuggerStatement = function(e) {
|
|
2200
2200
|
e.pop();
|
|
2201
2201
|
};
|
|
2202
2202
|
m.prototype.stepDoWhileStatement = function(e, t, r) {
|
|
2203
2203
|
if (r.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2204
|
-
return t.ga = !0, new
|
|
2204
|
+
return t.ga = !0, new w(r.test, t.scope);
|
|
2205
2205
|
if (!t.value)
|
|
2206
2206
|
e.pop();
|
|
2207
2207
|
else if (r.body)
|
|
2208
|
-
return t.ga = !1, t.W = !0, new
|
|
2208
|
+
return t.ga = !1, t.W = !0, new w(r.body, t.scope);
|
|
2209
2209
|
};
|
|
2210
2210
|
m.prototype.stepEmptyStatement = function(e) {
|
|
2211
2211
|
e.pop();
|
|
@@ -2213,19 +2213,19 @@ m.prototype.stepEmptyStatement = function(e) {
|
|
|
2213
2213
|
m.prototype.stepEvalProgram_ = function(e, t, r) {
|
|
2214
2214
|
var n = t.A || 0;
|
|
2215
2215
|
if (r = r.body[n])
|
|
2216
|
-
return t.A = n + 1, new
|
|
2216
|
+
return t.A = n + 1, new w(r, t.scope);
|
|
2217
2217
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2218
2218
|
};
|
|
2219
2219
|
m.prototype.stepExpressionStatement = function(e, t, r) {
|
|
2220
2220
|
if (!t.ka)
|
|
2221
|
-
return this.value = void 0, t.ka = !0, new
|
|
2221
|
+
return this.value = void 0, t.ka = !0, new w(r.la, t.scope);
|
|
2222
2222
|
e.pop(), this.value = t.value;
|
|
2223
2223
|
};
|
|
2224
2224
|
m.prototype.stepForInStatement = function(e, t, r) {
|
|
2225
2225
|
if (!t.Ub && (t.Ub = !0, r.left.fa && r.left.fa[0].ua))
|
|
2226
|
-
return t.scope.S &&
|
|
2226
|
+
return t.scope.S && k(this, this.T, "for-in loop variable declaration may not have an initializer"), new w(r.left, t.scope);
|
|
2227
2227
|
if (!t.Ca)
|
|
2228
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2228
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new w(r.right, t.scope);
|
|
2229
2229
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2230
2230
|
e:
|
|
2231
2231
|
for (; ; ) {
|
|
@@ -2246,91 +2246,91 @@ m.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2246
2246
|
break e;
|
|
2247
2247
|
}
|
|
2248
2248
|
}
|
|
2249
|
-
if (t.u =
|
|
2249
|
+
if (t.u = ye(this, t.u), t.wa = null, t.u === null) {
|
|
2250
2250
|
e.pop();
|
|
2251
2251
|
return;
|
|
2252
2252
|
}
|
|
2253
2253
|
}
|
|
2254
2254
|
if (!t.wb)
|
|
2255
2255
|
if (t.wb = !0, e = r.left, e.type === "VariableDeclaration")
|
|
2256
|
-
t.pa = [
|
|
2256
|
+
t.pa = [We, e.fa[0].id.name];
|
|
2257
2257
|
else
|
|
2258
|
-
return t.pa = null, t = new
|
|
2259
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n =
|
|
2260
|
-
return
|
|
2258
|
+
return t.pa = null, t = new w(e, t.scope), t.sa = !0, t;
|
|
2259
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = dn(this, t.pa, e)))
|
|
2260
|
+
return fn(this, n, t.pa, e);
|
|
2261
2261
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, r.body)
|
|
2262
|
-
return new
|
|
2262
|
+
return new w(r.body, t.scope);
|
|
2263
2263
|
};
|
|
2264
2264
|
m.prototype.stepForStatement = function(e, t, r) {
|
|
2265
2265
|
switch (t.na) {
|
|
2266
2266
|
default:
|
|
2267
2267
|
if (t.na = 1, r.ua)
|
|
2268
|
-
return new
|
|
2268
|
+
return new w(r.ua, t.scope);
|
|
2269
2269
|
break;
|
|
2270
2270
|
case 1:
|
|
2271
2271
|
if (t.na = 2, r.test)
|
|
2272
|
-
return new
|
|
2272
|
+
return new w(r.test, t.scope);
|
|
2273
2273
|
break;
|
|
2274
2274
|
case 2:
|
|
2275
2275
|
if (t.na = 3, r.test && !t.value)
|
|
2276
2276
|
e.pop();
|
|
2277
2277
|
else
|
|
2278
|
-
return t.W = !0, new
|
|
2278
|
+
return t.W = !0, new w(r.body, t.scope);
|
|
2279
2279
|
break;
|
|
2280
2280
|
case 3:
|
|
2281
2281
|
if (t.na = 1, r.update)
|
|
2282
|
-
return new
|
|
2282
|
+
return new w(r.update, t.scope);
|
|
2283
2283
|
}
|
|
2284
2284
|
};
|
|
2285
2285
|
m.prototype.stepFunctionDeclaration = function(e) {
|
|
2286
2286
|
e.pop();
|
|
2287
2287
|
};
|
|
2288
2288
|
m.prototype.stepFunctionExpression = function(e, t, r) {
|
|
2289
|
-
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e =
|
|
2289
|
+
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e = ln(this, e)), t.value = an(this, r, e, t.Pa), r.id && this.g(e.object, r.id.name, t.value, tn);
|
|
2290
2290
|
};
|
|
2291
2291
|
m.prototype.stepIdentifier = function(e, t, r) {
|
|
2292
2292
|
if (e.pop(), t.sa)
|
|
2293
|
-
e[e.length - 1].value = [
|
|
2293
|
+
e[e.length - 1].value = [We, r.name];
|
|
2294
2294
|
else {
|
|
2295
|
-
if (t =
|
|
2296
|
-
return
|
|
2295
|
+
if (t = cn(this, r.name), this.P)
|
|
2296
|
+
return ot(this, t, this.Na);
|
|
2297
2297
|
e[e.length - 1].value = t;
|
|
2298
2298
|
}
|
|
2299
2299
|
};
|
|
2300
2300
|
m.prototype.stepIfStatement = m.prototype.stepConditionalExpression;
|
|
2301
2301
|
m.prototype.stepLabeledStatement = function(e, t, r) {
|
|
2302
|
-
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new
|
|
2302
|
+
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new w(r.body, t.scope), t.labels = e, t;
|
|
2303
2303
|
};
|
|
2304
2304
|
m.prototype.stepLiteral = function(e, t, r) {
|
|
2305
|
-
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma),
|
|
2305
|
+
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma), rn(this, r, t), t = r), e[e.length - 1].value = t;
|
|
2306
2306
|
};
|
|
2307
2307
|
m.prototype.stepLogicalExpression = function(e, t, r) {
|
|
2308
2308
|
if (r.operator !== "&&" && r.operator !== "||")
|
|
2309
2309
|
throw SyntaxError("Unknown logical operator: " + r.operator);
|
|
2310
2310
|
if (!t.ja)
|
|
2311
|
-
return t.ja = !0, new
|
|
2311
|
+
return t.ja = !0, new w(r.left, t.scope);
|
|
2312
2312
|
if (t.Da)
|
|
2313
2313
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2314
2314
|
else if (r.operator === "&&" && !t.value || r.operator === "||" && t.value)
|
|
2315
2315
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2316
2316
|
else
|
|
2317
|
-
return t.Da = !0, new
|
|
2317
|
+
return t.Da = !0, new w(r.right, t.scope);
|
|
2318
2318
|
};
|
|
2319
2319
|
m.prototype.stepMemberExpression = function(e, t, r) {
|
|
2320
2320
|
if (!t.Ca)
|
|
2321
|
-
return t.Ca = !0, new
|
|
2321
|
+
return t.Ca = !0, new w(r.object, t.scope);
|
|
2322
2322
|
if (r.bb)
|
|
2323
2323
|
if (t.Vb)
|
|
2324
2324
|
r = t.value;
|
|
2325
2325
|
else
|
|
2326
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2326
|
+
return t.u = t.value, t.Vb = !0, new w(r.Wa, t.scope);
|
|
2327
2327
|
else
|
|
2328
2328
|
t.u = t.value, r = r.Wa.name;
|
|
2329
2329
|
if (e.pop(), t.sa)
|
|
2330
2330
|
e[e.length - 1].value = [t.u, r];
|
|
2331
2331
|
else {
|
|
2332
2332
|
if (r = this.G(t.u, r), this.P)
|
|
2333
|
-
return
|
|
2333
|
+
return ot(this, r, t.u);
|
|
2334
2334
|
e[e.length - 1].value = r;
|
|
2335
2335
|
}
|
|
2336
2336
|
};
|
|
@@ -2350,10 +2350,10 @@ m.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2350
2350
|
a = s.value;
|
|
2351
2351
|
else
|
|
2352
2352
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2353
|
-
return t.Pa = a, new
|
|
2353
|
+
return t.Pa = a, new w(i.value, t.scope);
|
|
2354
2354
|
}
|
|
2355
2355
|
for (s in t.Ja)
|
|
2356
|
-
r = t.Ja[s], "get" in r || "set" in r ? this.g(t.u, s,
|
|
2356
|
+
r = t.Ja[s], "get" in r || "set" in r ? this.g(t.u, s, et, {
|
|
2357
2357
|
configurable: !0,
|
|
2358
2358
|
enumerable: !0,
|
|
2359
2359
|
get: r.get,
|
|
@@ -2363,35 +2363,35 @@ m.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2363
2363
|
};
|
|
2364
2364
|
m.prototype.stepProgram = function(e, t, r) {
|
|
2365
2365
|
if (e = r.body.shift())
|
|
2366
|
-
return t.done = !1, new
|
|
2366
|
+
return t.done = !1, new w(e, t.scope);
|
|
2367
2367
|
t.done = !0;
|
|
2368
2368
|
};
|
|
2369
2369
|
m.prototype.stepReturnStatement = function(e, t, r) {
|
|
2370
2370
|
if (r.K && !t.ka)
|
|
2371
|
-
return t.ka = !0, new
|
|
2372
|
-
|
|
2371
|
+
return t.ka = !0, new w(r.K, t.scope);
|
|
2372
|
+
it(this, 3, t.value);
|
|
2373
2373
|
};
|
|
2374
2374
|
m.prototype.stepSequenceExpression = function(e, t, r) {
|
|
2375
2375
|
var n = t.A || 0;
|
|
2376
2376
|
if (r = r.xb[n])
|
|
2377
|
-
return t.A = n + 1, new
|
|
2377
|
+
return t.A = n + 1, new w(r, t.scope);
|
|
2378
2378
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2379
2379
|
};
|
|
2380
2380
|
m.prototype.stepSwitchStatement = function(e, t, r) {
|
|
2381
2381
|
if (!t.ga)
|
|
2382
|
-
return t.ga = 1, new
|
|
2382
|
+
return t.ga = 1, new w(r.Qb, t.scope);
|
|
2383
2383
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2384
2384
|
var n = t.gb || 0, i = r.tb[n];
|
|
2385
2385
|
if (t.Ha || !i || i.test)
|
|
2386
2386
|
if (i || t.Ha || t.cb === -1)
|
|
2387
2387
|
if (i) {
|
|
2388
2388
|
if (!t.Ha && !t.Fb && i.test)
|
|
2389
|
-
return t.Fb = !0, new
|
|
2389
|
+
return t.Fb = !0, new w(i.test, t.scope);
|
|
2390
2390
|
if (t.Ha || t.value === t.hc) {
|
|
2391
2391
|
t.Ha = !0;
|
|
2392
2392
|
var a = t.A || 0;
|
|
2393
2393
|
if (i.da[a])
|
|
2394
|
-
return t.Zb = !0, t.A = a + 1, new
|
|
2394
|
+
return t.Zb = !0, t.A = a + 1, new w(i.da[a], t.scope);
|
|
2395
2395
|
}
|
|
2396
2396
|
t.Fb = !1, t.A = 0, t.gb = n + 1;
|
|
2397
2397
|
} else {
|
|
@@ -2405,26 +2405,26 @@ m.prototype.stepSwitchStatement = function(e, t, r) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
};
|
|
2407
2407
|
m.prototype.stepThisExpression = function(e) {
|
|
2408
|
-
e.pop(), e[e.length - 1].value =
|
|
2408
|
+
e.pop(), e[e.length - 1].value = cn(this, "this");
|
|
2409
2409
|
};
|
|
2410
2410
|
m.prototype.stepThrowStatement = function(e, t, r) {
|
|
2411
2411
|
if (t.ka)
|
|
2412
|
-
|
|
2412
|
+
k(this, t.value);
|
|
2413
2413
|
else
|
|
2414
|
-
return t.ka = !0, new
|
|
2414
|
+
return t.ka = !0, new w(r.K, t.scope);
|
|
2415
2415
|
};
|
|
2416
2416
|
m.prototype.stepTryStatement = function(e, t, r) {
|
|
2417
2417
|
if (!t.Rb)
|
|
2418
|
-
return t.Rb = !0, new
|
|
2418
|
+
return t.Rb = !0, new w(r.block, t.scope);
|
|
2419
2419
|
if (t.ea && t.ea.type === 4 && !t.Tb && r.Ea)
|
|
2420
|
-
return t.Tb = !0, e =
|
|
2420
|
+
return t.Tb = !0, e = ln(this, t.scope), this.g(e.object, r.Ea.Ua.name, t.ea.value), t.ea = void 0, new w(r.Ea.body, e);
|
|
2421
2421
|
if (!t.Sb && r.fb)
|
|
2422
|
-
return t.Sb = !0, new
|
|
2423
|
-
e.pop(), t.ea &&
|
|
2422
|
+
return t.Sb = !0, new w(r.fb, t.scope);
|
|
2423
|
+
e.pop(), t.ea && it(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2424
2424
|
};
|
|
2425
2425
|
m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
2426
2426
|
if (!t.ka)
|
|
2427
|
-
return t.ka = !0, e = new
|
|
2427
|
+
return t.ka = !0, e = new w(r.K, t.scope), e.sa = r.operator === "delete", e;
|
|
2428
2428
|
e.pop();
|
|
2429
2429
|
var n = t.value;
|
|
2430
2430
|
switch (r.operator) {
|
|
@@ -2443,11 +2443,11 @@ m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2443
2443
|
case "delete":
|
|
2444
2444
|
if (r = !0, Array.isArray(n)) {
|
|
2445
2445
|
var i = n[0];
|
|
2446
|
-
i ===
|
|
2446
|
+
i === We && (i = t.scope), n = String(n[1]);
|
|
2447
2447
|
try {
|
|
2448
2448
|
delete i.h[n];
|
|
2449
2449
|
} catch {
|
|
2450
|
-
t.scope.S ?
|
|
2450
|
+
t.scope.S ? k(this, this.j, "Cannot delete property '" + n + "' of '" + i + "'") : r = !1;
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
2453
|
n = r;
|
|
@@ -2465,11 +2465,11 @@ m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2465
2465
|
};
|
|
2466
2466
|
m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
2467
2467
|
if (!t.ja)
|
|
2468
|
-
return t.ja = !0, e = new
|
|
2468
|
+
return t.ja = !0, e = new w(r.K, t.scope), e.sa = !0, e;
|
|
2469
2469
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2470
|
-
var n =
|
|
2470
|
+
var n = un(this, t.Ga);
|
|
2471
2471
|
if (t.ma = n, this.P)
|
|
2472
|
-
return t.Ba = !0,
|
|
2472
|
+
return t.Ba = !0, ot(this, n, t.Ga);
|
|
2473
2473
|
}
|
|
2474
2474
|
if (t.ta)
|
|
2475
2475
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
@@ -2480,8 +2480,8 @@ m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2480
2480
|
i = n - 1;
|
|
2481
2481
|
else
|
|
2482
2482
|
throw SyntaxError("Unknown update expression: " + r.operator);
|
|
2483
|
-
if (r = r.prefix ? i : n, n =
|
|
2484
|
-
return t.ta = !0, t.ib = r,
|
|
2483
|
+
if (r = r.prefix ? i : n, n = dn(this, t.Ga, i))
|
|
2484
|
+
return t.ta = !0, t.ib = r, fn(this, n, t.Ga, i);
|
|
2485
2485
|
e.pop(), e[e.length - 1].value = r;
|
|
2486
2486
|
}
|
|
2487
2487
|
};
|
|
@@ -2490,13 +2490,13 @@ m.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
|
2490
2490
|
var n = t.A || 0, i = r[n];
|
|
2491
2491
|
for (t.Bb && i && (gr(this, i.id.name, t.value), t.Bb = !1, i = r[++n]); i; ) {
|
|
2492
2492
|
if (i.ua)
|
|
2493
|
-
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new
|
|
2493
|
+
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new w(i.ua, t.scope);
|
|
2494
2494
|
i = r[++n];
|
|
2495
2495
|
}
|
|
2496
2496
|
e.pop();
|
|
2497
2497
|
};
|
|
2498
2498
|
m.prototype.stepWithStatement = function(e, t, r) {
|
|
2499
|
-
return t.Ca ? (e.pop(), e =
|
|
2499
|
+
return t.Ca ? (e.pop(), e = ln(this, t.scope, t.value), new w(r.body, e)) : (t.Ca = !0, new w(r.object, t.scope));
|
|
2500
2500
|
};
|
|
2501
2501
|
m.prototype.stepWhileStatement = m.prototype.stepDoWhileStatement;
|
|
2502
2502
|
we.Interpreter = m;
|
|
@@ -2514,7 +2514,7 @@ m.prototype.pseudoToNative = m.prototype.R;
|
|
|
2514
2514
|
m.prototype.getGlobalScope = m.prototype.Xb;
|
|
2515
2515
|
m.prototype.getStateStack = m.prototype.Yb;
|
|
2516
2516
|
m.prototype.setStateStack = m.prototype.ec;
|
|
2517
|
-
m.VALUE_IN_DESCRIPTOR =
|
|
2517
|
+
m.VALUE_IN_DESCRIPTOR = et;
|
|
2518
2518
|
const gi = (e) => e.split(`
|
|
2519
2519
|
`).map((t) => {
|
|
2520
2520
|
const r = t.trim();
|
|
@@ -2551,36 +2551,36 @@ const gi = (e) => e.split(`
|
|
|
2551
2551
|
}).join(`
|
|
2552
2552
|
`), v = gi(s);
|
|
2553
2553
|
if (v === "") {
|
|
2554
|
-
|
|
2554
|
+
Ue.warn("Skipping evaluation of empty code block.");
|
|
2555
2555
|
return;
|
|
2556
2556
|
}
|
|
2557
|
-
const
|
|
2557
|
+
const b = `
|
|
2558
2558
|
function theFunction() {
|
|
2559
2559
|
${g}
|
|
2560
2560
|
|
|
2561
2561
|
${v}
|
|
2562
2562
|
}
|
|
2563
2563
|
theFunction();
|
|
2564
|
-
`,
|
|
2565
|
-
const
|
|
2566
|
-
a == null || a(
|
|
2567
|
-
},
|
|
2568
|
-
f.forEach(([
|
|
2569
|
-
const
|
|
2570
|
-
O.setProperty(P, Zn(
|
|
2571
|
-
}), O.setProperty(P, "setRootState", O.createNativeFunction(
|
|
2564
|
+
`, U = (O, P) => {
|
|
2565
|
+
const L = hr(u, O, P);
|
|
2566
|
+
a == null || a(L);
|
|
2567
|
+
}, F = function(O, P) {
|
|
2568
|
+
f.forEach(([L, Y]) => {
|
|
2569
|
+
const y = JSON.stringify(Y);
|
|
2570
|
+
O.setProperty(P, Zn(L), y);
|
|
2571
|
+
}), O.setProperty(P, "setRootState", O.createNativeFunction(U));
|
|
2572
2572
|
};
|
|
2573
2573
|
try {
|
|
2574
|
-
const O = new m(
|
|
2574
|
+
const O = new m(b, F);
|
|
2575
2575
|
return O.run(), O.pseudoToNative(O.value);
|
|
2576
2576
|
} catch (O) {
|
|
2577
|
-
|
|
2577
|
+
Ue.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2578
2578
|
e: O
|
|
2579
2579
|
});
|
|
2580
2580
|
return;
|
|
2581
2581
|
}
|
|
2582
|
-
}, yi = (e) =>
|
|
2583
|
-
function
|
|
2582
|
+
}, yi = (e) => je() ? Zr(e) : vi(e);
|
|
2583
|
+
function nt({
|
|
2584
2584
|
code: e,
|
|
2585
2585
|
context: t,
|
|
2586
2586
|
localState: r,
|
|
@@ -2590,7 +2590,7 @@ function tt({
|
|
|
2590
2590
|
isExpression: s = !0
|
|
2591
2591
|
}) {
|
|
2592
2592
|
if (e === "") {
|
|
2593
|
-
|
|
2593
|
+
Ue.warn("Skipping evaluation of empty code block.");
|
|
2594
2594
|
return;
|
|
2595
2595
|
}
|
|
2596
2596
|
const u = {
|
|
@@ -2607,7 +2607,7 @@ function tt({
|
|
|
2607
2607
|
try {
|
|
2608
2608
|
return yi(u);
|
|
2609
2609
|
} catch (f) {
|
|
2610
|
-
|
|
2610
|
+
Ue.error("Failed code evaluation: " + f.message, {
|
|
2611
2611
|
code: e
|
|
2612
2612
|
});
|
|
2613
2613
|
return;
|
|
@@ -2622,7 +2622,7 @@ const xi = ({
|
|
|
2622
2622
|
}) => {
|
|
2623
2623
|
if (!e.bindings)
|
|
2624
2624
|
return e;
|
|
2625
|
-
const a =
|
|
2625
|
+
const a = Qt(e), s = {
|
|
2626
2626
|
...a,
|
|
2627
2627
|
properties: {
|
|
2628
2628
|
...a.properties
|
|
@@ -2632,7 +2632,7 @@ const xi = ({
|
|
|
2632
2632
|
}
|
|
2633
2633
|
};
|
|
2634
2634
|
for (const u in e.bindings) {
|
|
2635
|
-
const f = e.bindings[u], g =
|
|
2635
|
+
const f = e.bindings[u], g = nt({
|
|
2636
2636
|
code: f,
|
|
2637
2637
|
localState: r,
|
|
2638
2638
|
rootState: n,
|
|
@@ -2643,7 +2643,7 @@ const xi = ({
|
|
|
2643
2643
|
}
|
|
2644
2644
|
return s;
|
|
2645
2645
|
};
|
|
2646
|
-
function
|
|
2646
|
+
function mt({
|
|
2647
2647
|
block: e,
|
|
2648
2648
|
context: t,
|
|
2649
2649
|
shouldEvaluateBindings: r,
|
|
@@ -2660,13 +2660,13 @@ function pt({
|
|
|
2660
2660
|
context: t
|
|
2661
2661
|
}) : s;
|
|
2662
2662
|
}
|
|
2663
|
-
const bi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"],
|
|
2663
|
+
const bi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], $t = (e) => typeof e == "string" && bi.includes(e.toLowerCase()), Si = ({
|
|
2664
2664
|
block: e,
|
|
2665
2665
|
context: t,
|
|
2666
2666
|
registeredComponents: r
|
|
2667
2667
|
}) => {
|
|
2668
2668
|
var a;
|
|
2669
|
-
const n = (a =
|
|
2669
|
+
const n = (a = mt({
|
|
2670
2670
|
block: e,
|
|
2671
2671
|
localState: t.localState,
|
|
2672
2672
|
rootState: t.rootState,
|
|
@@ -2692,7 +2692,7 @@ const bi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2692
2692
|
} = e;
|
|
2693
2693
|
if (!(r != null && r.collection))
|
|
2694
2694
|
return;
|
|
2695
|
-
const i =
|
|
2695
|
+
const i = nt({
|
|
2696
2696
|
code: r.collection,
|
|
2697
2697
|
localState: t.localState,
|
|
2698
2698
|
rootState: t.rootState,
|
|
@@ -2735,7 +2735,7 @@ const bi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2735
2735
|
small: e,
|
|
2736
2736
|
medium: t
|
|
2737
2737
|
}) => {
|
|
2738
|
-
const r =
|
|
2738
|
+
const r = Qt(xr);
|
|
2739
2739
|
if (!e || !t)
|
|
2740
2740
|
return r;
|
|
2741
2741
|
const n = Math.floor(e / 2);
|
|
@@ -2760,8 +2760,8 @@ const bi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2760
2760
|
}, ki = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Sr = (e) => Object.entries(e).map(([r, n]) => {
|
|
2761
2761
|
if (typeof n == "string")
|
|
2762
2762
|
return `${ki(r)}: ${n};`;
|
|
2763
|
-
}).filter(
|
|
2764
|
-
`),
|
|
2763
|
+
}).filter(Gt), Ci = (e) => Sr(e).join(`
|
|
2764
|
+
`), Ht = ({
|
|
2765
2765
|
mediaQuery: e,
|
|
2766
2766
|
className: t,
|
|
2767
2767
|
styles: r
|
|
@@ -2773,12 +2773,12 @@ const bi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2773
2773
|
${n}
|
|
2774
2774
|
}` : n;
|
|
2775
2775
|
};
|
|
2776
|
-
function
|
|
2776
|
+
function xt(e) {
|
|
2777
2777
|
return /* @__PURE__ */ p("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2778
2778
|
}
|
|
2779
2779
|
function Ei(e) {
|
|
2780
2780
|
function t() {
|
|
2781
|
-
const n =
|
|
2781
|
+
const n = mt({
|
|
2782
2782
|
block: e.block,
|
|
2783
2783
|
localState: e.context.localState,
|
|
2784
2784
|
rootState: e.context.rootState,
|
|
@@ -2786,11 +2786,11 @@ function Ei(e) {
|
|
|
2786
2786
|
context: e.context.context,
|
|
2787
2787
|
shouldEvaluateBindings: !0
|
|
2788
2788
|
});
|
|
2789
|
-
return
|
|
2789
|
+
return Gt(n.hide) ? !n.hide : Gt(n.show) ? n.show : !0;
|
|
2790
2790
|
}
|
|
2791
2791
|
function r() {
|
|
2792
2792
|
var O;
|
|
2793
|
-
const n =
|
|
2793
|
+
const n = mt({
|
|
2794
2794
|
block: e.block,
|
|
2795
2795
|
localState: e.context.localState,
|
|
2796
2796
|
rootState: e.context.rootState,
|
|
@@ -2802,17 +2802,17 @@ function Ei(e) {
|
|
|
2802
2802
|
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium, g = i == null ? void 0 : i.small, v = n.id;
|
|
2803
2803
|
if (!v)
|
|
2804
2804
|
return "";
|
|
2805
|
-
const
|
|
2805
|
+
const b = u ? Ht({
|
|
2806
2806
|
className: v,
|
|
2807
2807
|
styles: u
|
|
2808
|
-
}) : "",
|
|
2808
|
+
}) : "", U = f ? Ht({
|
|
2809
2809
|
className: v,
|
|
2810
2810
|
styles: f,
|
|
2811
2811
|
mediaQuery: Qn(
|
|
2812
2812
|
"medium",
|
|
2813
2813
|
s
|
|
2814
2814
|
)
|
|
2815
|
-
}) : "",
|
|
2815
|
+
}) : "", F = g ? Ht({
|
|
2816
2816
|
className: v,
|
|
2817
2817
|
styles: g,
|
|
2818
2818
|
mediaQuery: Qn(
|
|
@@ -2820,14 +2820,14 @@ function Ei(e) {
|
|
|
2820
2820
|
s
|
|
2821
2821
|
)
|
|
2822
2822
|
}) : "";
|
|
2823
|
-
return [
|
|
2823
|
+
return [b, U, F].join(" ");
|
|
2824
2824
|
}
|
|
2825
|
-
return /* @__PURE__ */ p(N, { children: r() && t() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
2825
|
+
return /* @__PURE__ */ p(N, { children: r() && t() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(xt, { styles: r() }) }) : null });
|
|
2826
2826
|
}
|
|
2827
2827
|
function Ii(e) {
|
|
2828
2828
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2829
2829
|
}
|
|
2830
|
-
const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) =>
|
|
2830
|
+
const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) => nt({
|
|
2831
2831
|
code: e,
|
|
2832
2832
|
context: t.context,
|
|
2833
2833
|
localState: t.localState,
|
|
@@ -2836,7 +2836,7 @@ const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) => tt({
|
|
|
2836
2836
|
event: r,
|
|
2837
2837
|
isExpression: !1
|
|
2838
2838
|
});
|
|
2839
|
-
function
|
|
2839
|
+
function Jt(e) {
|
|
2840
2840
|
var n;
|
|
2841
2841
|
const t = {}, r = (n = e.block.actions) != null ? n : {};
|
|
2842
2842
|
for (const i in r) {
|
|
@@ -2845,7 +2845,7 @@ function Yt(e) {
|
|
|
2845
2845
|
const a = r[i];
|
|
2846
2846
|
let s = Ti(i);
|
|
2847
2847
|
if (e.stripPrefix)
|
|
2848
|
-
switch (
|
|
2848
|
+
switch (rt) {
|
|
2849
2849
|
case "vue":
|
|
2850
2850
|
s = s.replace("v-on:", "");
|
|
2851
2851
|
break;
|
|
@@ -2865,7 +2865,7 @@ function Ai({
|
|
|
2865
2865
|
const Ri = (e) => ({
|
|
2866
2866
|
href: e.href
|
|
2867
2867
|
});
|
|
2868
|
-
function
|
|
2868
|
+
function gt({
|
|
2869
2869
|
block: e,
|
|
2870
2870
|
context: t
|
|
2871
2871
|
}) {
|
|
@@ -2884,7 +2884,7 @@ function mt({
|
|
|
2884
2884
|
});
|
|
2885
2885
|
}
|
|
2886
2886
|
function Oi(e) {
|
|
2887
|
-
switch (
|
|
2887
|
+
switch (rt) {
|
|
2888
2888
|
case "svelte":
|
|
2889
2889
|
case "vue":
|
|
2890
2890
|
case "solid":
|
|
@@ -2897,16 +2897,16 @@ function Oi(e) {
|
|
|
2897
2897
|
}
|
|
2898
2898
|
}
|
|
2899
2899
|
function er(e) {
|
|
2900
|
-
return /* @__PURE__ */
|
|
2900
|
+
return /* @__PURE__ */ te(N, { children: [
|
|
2901
2901
|
" ",
|
|
2902
|
-
e.hasChildren ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */
|
|
2902
|
+
e.hasChildren ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ te(
|
|
2903
2903
|
e.Wrapper,
|
|
2904
2904
|
{
|
|
2905
|
-
...
|
|
2905
|
+
...gt({
|
|
2906
2906
|
block: e.block,
|
|
2907
2907
|
context: e.context
|
|
2908
2908
|
}),
|
|
2909
|
-
...
|
|
2909
|
+
...Jt({
|
|
2910
2910
|
block: e.block,
|
|
2911
2911
|
rootState: e.context.rootState,
|
|
2912
2912
|
rootSetState: e.context.rootSetState,
|
|
@@ -2923,11 +2923,11 @@ function er(e) {
|
|
|
2923
2923
|
) }) : /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
2924
2924
|
e.Wrapper,
|
|
2925
2925
|
{
|
|
2926
|
-
...
|
|
2926
|
+
...gt({
|
|
2927
2927
|
block: e.block,
|
|
2928
2928
|
context: e.context
|
|
2929
2929
|
}),
|
|
2930
|
-
...
|
|
2930
|
+
...Jt({
|
|
2931
2931
|
block: e.block,
|
|
2932
2932
|
rootState: e.context.rootState,
|
|
2933
2933
|
rootSetState: e.context.rootSetState,
|
|
@@ -2946,11 +2946,11 @@ function Pi(e) {
|
|
|
2946
2946
|
{
|
|
2947
2947
|
...e.wrapperProps,
|
|
2948
2948
|
attributes: e.includeBlockProps ? {
|
|
2949
|
-
...
|
|
2949
|
+
...gt({
|
|
2950
2950
|
block: e.block,
|
|
2951
2951
|
context: e.context
|
|
2952
2952
|
}),
|
|
2953
|
-
...
|
|
2953
|
+
...Jt({
|
|
2954
2954
|
block: e.block,
|
|
2955
2955
|
rootState: e.context.rootState,
|
|
2956
2956
|
rootSetState: e.context.rootSetState,
|
|
@@ -2978,7 +2978,7 @@ const Ni = ({
|
|
|
2978
2978
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
2979
2979
|
*/
|
|
2980
2980
|
...i ? {
|
|
2981
|
-
attributes:
|
|
2981
|
+
attributes: gt({
|
|
2982
2982
|
block: t,
|
|
2983
2983
|
context: s
|
|
2984
2984
|
})
|
|
@@ -2994,7 +2994,7 @@ const Ni = ({
|
|
|
2994
2994
|
};
|
|
2995
2995
|
function tr(e) {
|
|
2996
2996
|
var n;
|
|
2997
|
-
const [t, r] =
|
|
2997
|
+
const [t, r] = V(
|
|
2998
2998
|
() => e.isInteractive ? Pi : e.componentRef
|
|
2999
2999
|
);
|
|
3000
3000
|
return /* @__PURE__ */ p(N, { children: e.componentRef ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
@@ -3010,7 +3010,7 @@ function tr(e) {
|
|
|
3010
3010
|
contextValue: e.context
|
|
3011
3011
|
}),
|
|
3012
3012
|
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ p(
|
|
3013
|
-
|
|
3013
|
+
bt,
|
|
3014
3014
|
{
|
|
3015
3015
|
block: i,
|
|
3016
3016
|
context: e.context,
|
|
@@ -3022,9 +3022,9 @@ function tr(e) {
|
|
|
3022
3022
|
) }) : null });
|
|
3023
3023
|
}
|
|
3024
3024
|
function Mi(e) {
|
|
3025
|
-
const [t, r] =
|
|
3026
|
-
return /* @__PURE__ */ p(
|
|
3027
|
-
|
|
3025
|
+
const [t, r] = V(() => e.repeatContext);
|
|
3026
|
+
return /* @__PURE__ */ p(en.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3027
|
+
bt,
|
|
3028
3028
|
{
|
|
3029
3029
|
block: e.block,
|
|
3030
3030
|
context: t,
|
|
@@ -3032,8 +3032,8 @@ function Mi(e) {
|
|
|
3032
3032
|
}
|
|
3033
3033
|
) });
|
|
3034
3034
|
}
|
|
3035
|
-
function
|
|
3036
|
-
var v,
|
|
3035
|
+
function bt(e) {
|
|
3036
|
+
var v, b, U;
|
|
3037
3037
|
function t() {
|
|
3038
3038
|
return Si({
|
|
3039
3039
|
block: e.block,
|
|
@@ -3048,8 +3048,8 @@ function xt(e) {
|
|
|
3048
3048
|
});
|
|
3049
3049
|
}
|
|
3050
3050
|
function n() {
|
|
3051
|
-
var
|
|
3052
|
-
return (
|
|
3051
|
+
var F;
|
|
3052
|
+
return (F = e.block.repeat) != null && F.collection ? e.block : mt({
|
|
3053
3053
|
block: e.block,
|
|
3054
3054
|
localState: e.context.localState,
|
|
3055
3055
|
rootState: e.context.rootState,
|
|
@@ -3062,37 +3062,37 @@ function xt(e) {
|
|
|
3062
3062
|
return e.block.tagName || "div";
|
|
3063
3063
|
}
|
|
3064
3064
|
function a() {
|
|
3065
|
-
var P,
|
|
3065
|
+
var P, L;
|
|
3066
3066
|
if ((P = e.block.repeat) != null && P.collection)
|
|
3067
|
-
return !!((
|
|
3068
|
-
const
|
|
3069
|
-
return ("show" in n() ? n().show : !0) && !
|
|
3067
|
+
return !!((L = r == null ? void 0 : r()) != null && L.length);
|
|
3068
|
+
const F = "hide" in n() ? n().hide : !1;
|
|
3069
|
+
return ("show" in n() ? n().show : !0) && !F;
|
|
3070
3070
|
}
|
|
3071
3071
|
function s() {
|
|
3072
3072
|
var O, P;
|
|
3073
3073
|
return !((O = t == null ? void 0 : t()) != null && O.component) && !r() ? (P = n().children) != null ? P : [] : [];
|
|
3074
3074
|
}
|
|
3075
3075
|
function u() {
|
|
3076
|
-
var
|
|
3076
|
+
var F, O, P, L, Y, y;
|
|
3077
3077
|
return {
|
|
3078
|
-
blockChildren: (
|
|
3078
|
+
blockChildren: (F = n().children) != null ? F : [],
|
|
3079
3079
|
componentRef: (O = t == null ? void 0 : t()) == null ? void 0 : O.component,
|
|
3080
3080
|
componentOptions: {
|
|
3081
3081
|
...Yr(n()),
|
|
3082
3082
|
builderContext: e.context,
|
|
3083
|
-
...((P = t == null ? void 0 : t()) == null ? void 0 : P.name) === "Symbol" || ((
|
|
3083
|
+
...((P = t == null ? void 0 : t()) == null ? void 0 : P.name) === "Symbol" || ((L = t == null ? void 0 : t()) == null ? void 0 : L.name) === "Columns" ? {
|
|
3084
3084
|
builderComponents: e.registeredComponents
|
|
3085
3085
|
} : {}
|
|
3086
3086
|
},
|
|
3087
3087
|
context: f,
|
|
3088
3088
|
registeredComponents: e.registeredComponents,
|
|
3089
3089
|
builderBlock: n(),
|
|
3090
|
-
includeBlockProps: ((
|
|
3091
|
-
isInteractive: !((
|
|
3090
|
+
includeBlockProps: ((Y = t == null ? void 0 : t()) == null ? void 0 : Y.noWrap) === !0,
|
|
3091
|
+
isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
|
|
3092
3092
|
};
|
|
3093
3093
|
}
|
|
3094
|
-
const [f, g] =
|
|
3095
|
-
return /* @__PURE__ */ p(N, { children: a() ? /* @__PURE__ */
|
|
3094
|
+
const [f, g] = V(() => e.context);
|
|
3095
|
+
return /* @__PURE__ */ p(N, { children: a() ? /* @__PURE__ */ te(N, { children: [
|
|
3096
3096
|
/* @__PURE__ */ p(Ei, { block: e.block, context: e.context }),
|
|
3097
3097
|
(v = t == null ? void 0 : t()) != null && v.noWrap ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
3098
3098
|
tr,
|
|
@@ -3106,8 +3106,8 @@ function xt(e) {
|
|
|
3106
3106
|
includeBlockProps: u().includeBlockProps,
|
|
3107
3107
|
isInteractive: u().isInteractive
|
|
3108
3108
|
}
|
|
3109
|
-
) }) : /* @__PURE__ */
|
|
3110
|
-
|
|
3109
|
+
) }) : /* @__PURE__ */ te(N, { children: [
|
|
3110
|
+
$t(i()) ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
3111
3111
|
er,
|
|
3112
3112
|
{
|
|
3113
3113
|
Wrapper: i(),
|
|
@@ -3116,16 +3116,16 @@ function xt(e) {
|
|
|
3116
3116
|
hasChildren: !1
|
|
3117
3117
|
}
|
|
3118
3118
|
) }) : null,
|
|
3119
|
-
|
|
3119
|
+
!$t(i()) && r() ? /* @__PURE__ */ p(N, { children: (b = r()) == null ? void 0 : b.map((F, O) => /* @__PURE__ */ p(
|
|
3120
3120
|
Mi,
|
|
3121
3121
|
{
|
|
3122
|
-
repeatContext:
|
|
3123
|
-
block:
|
|
3122
|
+
repeatContext: F.context,
|
|
3123
|
+
block: F.block,
|
|
3124
3124
|
registeredComponents: e.registeredComponents
|
|
3125
3125
|
},
|
|
3126
3126
|
O
|
|
3127
3127
|
)) }) : null,
|
|
3128
|
-
|
|
3128
|
+
!$t(i()) && !r() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ te(
|
|
3129
3129
|
er,
|
|
3130
3130
|
{
|
|
3131
3131
|
Wrapper: i(),
|
|
@@ -3146,14 +3146,14 @@ function xt(e) {
|
|
|
3146
3146
|
isInteractive: u().isInteractive
|
|
3147
3147
|
}
|
|
3148
3148
|
),
|
|
3149
|
-
(
|
|
3150
|
-
|
|
3149
|
+
(U = s()) == null ? void 0 : U.map((F) => /* @__PURE__ */ p(
|
|
3150
|
+
bt,
|
|
3151
3151
|
{
|
|
3152
|
-
block:
|
|
3152
|
+
block: F,
|
|
3153
3153
|
context: f,
|
|
3154
3154
|
registeredComponents: e.registeredComponents
|
|
3155
3155
|
},
|
|
3156
|
-
|
|
3156
|
+
F.id
|
|
3157
3157
|
))
|
|
3158
3158
|
]
|
|
3159
3159
|
}
|
|
@@ -3168,7 +3168,7 @@ function Bi(e) {
|
|
|
3168
3168
|
}
|
|
3169
3169
|
function r() {
|
|
3170
3170
|
var i, a;
|
|
3171
|
-
|
|
3171
|
+
Te() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3172
3172
|
{
|
|
3173
3173
|
type: "builder.clickEmptyBlocks",
|
|
3174
3174
|
data: {
|
|
@@ -3181,7 +3181,7 @@ function Bi(e) {
|
|
|
3181
3181
|
}
|
|
3182
3182
|
function n() {
|
|
3183
3183
|
var i, a;
|
|
3184
|
-
|
|
3184
|
+
Te() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3185
3185
|
{
|
|
3186
3186
|
type: "builder.hoverEmptyBlocks",
|
|
3187
3187
|
data: {
|
|
@@ -3192,7 +3192,7 @@ function Bi(e) {
|
|
|
3192
3192
|
"*"
|
|
3193
3193
|
));
|
|
3194
3194
|
}
|
|
3195
|
-
return /* @__PURE__ */
|
|
3195
|
+
return /* @__PURE__ */ te(N, { children: [
|
|
3196
3196
|
/* @__PURE__ */ p(
|
|
3197
3197
|
e.BlocksWrapper,
|
|
3198
3198
|
{
|
|
@@ -3214,9 +3214,9 @@ function Bi(e) {
|
|
|
3214
3214
|
}` })
|
|
3215
3215
|
] });
|
|
3216
3216
|
}
|
|
3217
|
-
function
|
|
3217
|
+
function hn(e) {
|
|
3218
3218
|
var n, i, a;
|
|
3219
|
-
const t = $n(
|
|
3219
|
+
const t = $n(en), r = $n(dr);
|
|
3220
3220
|
return /* @__PURE__ */ p(
|
|
3221
3221
|
Bi,
|
|
3222
3222
|
{
|
|
@@ -3227,7 +3227,7 @@ function fn(e) {
|
|
|
3227
3227
|
BlocksWrapper: (n = e.context) == null ? void 0 : n.BlocksWrapper,
|
|
3228
3228
|
BlocksWrapperProps: (i = e.context) == null ? void 0 : i.BlocksWrapperProps,
|
|
3229
3229
|
children: e.blocks ? /* @__PURE__ */ p(N, { children: (a = e.blocks) == null ? void 0 : a.map((s) => /* @__PURE__ */ p(
|
|
3230
|
-
|
|
3230
|
+
bt,
|
|
3231
3231
|
{
|
|
3232
3232
|
block: s,
|
|
3233
3233
|
context: e.context || t,
|
|
@@ -3239,74 +3239,74 @@ function fn(e) {
|
|
|
3239
3239
|
);
|
|
3240
3240
|
}
|
|
3241
3241
|
function Fi(e) {
|
|
3242
|
-
var
|
|
3243
|
-
const [t, r] =
|
|
3242
|
+
var Y;
|
|
3243
|
+
const [t, r] = V(
|
|
3244
3244
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3245
|
-
), [n, i] =
|
|
3245
|
+
), [n, i] = V(() => e.columns || []), [a, s] = V(
|
|
3246
3246
|
() => e.stackColumnsAt || "tablet"
|
|
3247
3247
|
);
|
|
3248
|
-
function u(
|
|
3249
|
-
var
|
|
3250
|
-
return ((
|
|
3248
|
+
function u(y) {
|
|
3249
|
+
var K;
|
|
3250
|
+
return ((K = n[y]) == null ? void 0 : K.width) || 100 / n.length;
|
|
3251
3251
|
}
|
|
3252
|
-
function f(
|
|
3253
|
-
const
|
|
3254
|
-
return `calc(${u(
|
|
3252
|
+
function f(y) {
|
|
3253
|
+
const K = t * (n.length - 1) / n.length;
|
|
3254
|
+
return `calc(${u(y)}% - ${K}px)`;
|
|
3255
3255
|
}
|
|
3256
3256
|
function g({
|
|
3257
|
-
stackedStyle:
|
|
3258
|
-
desktopStyle:
|
|
3257
|
+
stackedStyle: y,
|
|
3258
|
+
desktopStyle: K
|
|
3259
3259
|
}) {
|
|
3260
|
-
return a === "tablet" ?
|
|
3260
|
+
return a === "tablet" ? y : K;
|
|
3261
3261
|
}
|
|
3262
3262
|
function v({
|
|
3263
|
-
stackedStyle:
|
|
3264
|
-
desktopStyle:
|
|
3263
|
+
stackedStyle: y,
|
|
3264
|
+
desktopStyle: K
|
|
3265
3265
|
}) {
|
|
3266
|
-
return a === "never" ?
|
|
3266
|
+
return a === "never" ? K : y;
|
|
3267
3267
|
}
|
|
3268
|
-
const [
|
|
3268
|
+
const [b, U] = V(
|
|
3269
3269
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3270
3270
|
);
|
|
3271
|
-
function
|
|
3271
|
+
function F() {
|
|
3272
3272
|
return {
|
|
3273
|
-
"--flex-dir":
|
|
3273
|
+
"--flex-dir": b,
|
|
3274
3274
|
"--flex-dir-tablet": g({
|
|
3275
|
-
stackedStyle:
|
|
3275
|
+
stackedStyle: b,
|
|
3276
3276
|
desktopStyle: "row"
|
|
3277
3277
|
})
|
|
3278
3278
|
};
|
|
3279
3279
|
}
|
|
3280
|
-
function O(
|
|
3281
|
-
const
|
|
3280
|
+
function O(y) {
|
|
3281
|
+
const K = y === 0 ? 0 : t, ne = f(y), le = `${K}px`, $ = "100%", re = 0;
|
|
3282
3282
|
return {
|
|
3283
|
-
width:
|
|
3284
|
-
["marginLeft"]:
|
|
3283
|
+
width: ne,
|
|
3284
|
+
["marginLeft"]: le,
|
|
3285
3285
|
"--column-width-mobile": v({
|
|
3286
|
-
stackedStyle:
|
|
3287
|
-
desktopStyle:
|
|
3286
|
+
stackedStyle: $,
|
|
3287
|
+
desktopStyle: ne
|
|
3288
3288
|
}),
|
|
3289
3289
|
"--column-margin-left-mobile": v({
|
|
3290
|
-
stackedStyle:
|
|
3291
|
-
desktopStyle:
|
|
3290
|
+
stackedStyle: re,
|
|
3291
|
+
desktopStyle: le
|
|
3292
3292
|
}),
|
|
3293
3293
|
"--column-width-tablet": g({
|
|
3294
|
-
stackedStyle:
|
|
3295
|
-
desktopStyle:
|
|
3294
|
+
stackedStyle: $,
|
|
3295
|
+
desktopStyle: ne
|
|
3296
3296
|
}),
|
|
3297
3297
|
"--column-margin-left-tablet": g({
|
|
3298
|
-
stackedStyle:
|
|
3299
|
-
desktopStyle:
|
|
3298
|
+
stackedStyle: re,
|
|
3299
|
+
desktopStyle: le
|
|
3300
3300
|
})
|
|
3301
3301
|
};
|
|
3302
3302
|
}
|
|
3303
|
-
function P(
|
|
3304
|
-
var
|
|
3303
|
+
function P(y) {
|
|
3304
|
+
var ne, le;
|
|
3305
3305
|
return br(
|
|
3306
|
-
((
|
|
3307
|
-
)[
|
|
3306
|
+
((le = (ne = e.builderContext.content) == null ? void 0 : ne.meta) == null ? void 0 : le.breakpoints) || {}
|
|
3307
|
+
)[y].max;
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3309
|
+
function L() {
|
|
3310
3310
|
return `
|
|
3311
3311
|
@media (max-width: ${P("medium")}px) {
|
|
3312
3312
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3333,32 +3333,32 @@ function Fi(e) {
|
|
|
3333
3333
|
},
|
|
3334
3334
|
`;
|
|
3335
3335
|
}
|
|
3336
|
-
return /* @__PURE__ */
|
|
3337
|
-
/* @__PURE__ */
|
|
3336
|
+
return /* @__PURE__ */ te(N, { children: [
|
|
3337
|
+
/* @__PURE__ */ te(
|
|
3338
3338
|
"div",
|
|
3339
3339
|
{
|
|
3340
3340
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-3c01d6ec`,
|
|
3341
|
-
style:
|
|
3341
|
+
style: F(),
|
|
3342
3342
|
children: [
|
|
3343
|
-
/* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
3344
|
-
(
|
|
3343
|
+
/* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(xt, { styles: L() }) }),
|
|
3344
|
+
(Y = e.columns) == null ? void 0 : Y.map((y, K) => /* @__PURE__ */ cr(
|
|
3345
3345
|
"div",
|
|
3346
3346
|
{
|
|
3347
3347
|
className: "builder-column div-3c01d6ec-2",
|
|
3348
|
-
style: O(
|
|
3349
|
-
key:
|
|
3348
|
+
style: O(K),
|
|
3349
|
+
key: K
|
|
3350
3350
|
},
|
|
3351
3351
|
/* @__PURE__ */ p(
|
|
3352
|
-
|
|
3352
|
+
hn,
|
|
3353
3353
|
{
|
|
3354
|
-
path: `component.options.columns.${
|
|
3354
|
+
path: `component.options.columns.${K}.blocks`,
|
|
3355
3355
|
parent: e.builderBlock.id,
|
|
3356
3356
|
styleProp: {
|
|
3357
3357
|
flexGrow: "1"
|
|
3358
3358
|
},
|
|
3359
3359
|
context: e.builderContext,
|
|
3360
3360
|
registeredComponents: e.builderComponents,
|
|
3361
|
-
blocks:
|
|
3361
|
+
blocks: y.blocks
|
|
3362
3362
|
}
|
|
3363
3363
|
)
|
|
3364
3364
|
))
|
|
@@ -3397,7 +3397,7 @@ function Di(e, t) {
|
|
|
3397
3397
|
}
|
|
3398
3398
|
return null;
|
|
3399
3399
|
}
|
|
3400
|
-
function
|
|
3400
|
+
function Kt(e) {
|
|
3401
3401
|
if (!e)
|
|
3402
3402
|
return e;
|
|
3403
3403
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -3419,10 +3419,10 @@ function Wi(e) {
|
|
|
3419
3419
|
return e.srcset;
|
|
3420
3420
|
if (e.srcset && ((v = e.image) != null && v.includes("builder.io/api/v1/image"))) {
|
|
3421
3421
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3422
|
-
return console.debug("Removed given srcset"),
|
|
3422
|
+
return console.debug("Removed given srcset"), Kt(g);
|
|
3423
3423
|
} else if (e.image && !e.srcset)
|
|
3424
|
-
return
|
|
3425
|
-
return
|
|
3424
|
+
return Kt(g);
|
|
3425
|
+
return Kt(g);
|
|
3426
3426
|
}
|
|
3427
3427
|
function r() {
|
|
3428
3428
|
var f;
|
|
@@ -3438,9 +3438,9 @@ function Wi(e) {
|
|
|
3438
3438
|
};
|
|
3439
3439
|
return e.aspectRatio ? f : void 0;
|
|
3440
3440
|
}
|
|
3441
|
-
return /* @__PURE__ */
|
|
3442
|
-
/* @__PURE__ */
|
|
3443
|
-
/* @__PURE__ */
|
|
3441
|
+
return /* @__PURE__ */ te(N, { children: [
|
|
3442
|
+
/* @__PURE__ */ te(N, { children: [
|
|
3443
|
+
/* @__PURE__ */ te("picture", { children: [
|
|
3444
3444
|
r() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p("source", { type: "image/webp", srcSet: r() }) }) : null,
|
|
3445
3445
|
/* @__PURE__ */ p(
|
|
3446
3446
|
"img",
|
|
@@ -3770,8 +3770,8 @@ const Li = {
|
|
|
3770
3770
|
}]
|
|
3771
3771
|
};
|
|
3772
3772
|
function Ki(e) {
|
|
3773
|
-
const t =
|
|
3774
|
-
return
|
|
3773
|
+
const t = Zt(null), [r, n] = V(() => []), [i, a] = V(() => []);
|
|
3774
|
+
return Z(() => {
|
|
3775
3775
|
var u;
|
|
3776
3776
|
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window == "undefined")
|
|
3777
3777
|
return;
|
|
@@ -3834,26 +3834,26 @@ const Gi = {
|
|
|
3834
3834
|
}]
|
|
3835
3835
|
}, zi = ["text/javascript", "application/javascript", "application/ecmascript"], Xi = (e) => zi.includes(e.type);
|
|
3836
3836
|
function Yi(e) {
|
|
3837
|
-
const t =
|
|
3837
|
+
const t = Zt(null), [r, n] = V(() => []), [i, a] = V(() => []), [s, u] = V(() => !1);
|
|
3838
3838
|
function f() {
|
|
3839
3839
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3840
3840
|
return;
|
|
3841
3841
|
const g = t.current.getElementsByTagName("script");
|
|
3842
3842
|
for (let v = 0; v < g.length; v++) {
|
|
3843
|
-
const
|
|
3844
|
-
if (
|
|
3845
|
-
r.push(
|
|
3846
|
-
const
|
|
3847
|
-
|
|
3848
|
-
} else if (Xi(
|
|
3843
|
+
const b = g[v];
|
|
3844
|
+
if (b.src && !r.includes(b.src)) {
|
|
3845
|
+
r.push(b.src);
|
|
3846
|
+
const U = document.createElement("script");
|
|
3847
|
+
U.async = !0, U.src = b.src, document.head.appendChild(U);
|
|
3848
|
+
} else if (Xi(b) && !i.includes(b.innerText))
|
|
3849
3849
|
try {
|
|
3850
|
-
i.push(
|
|
3851
|
-
} catch (
|
|
3852
|
-
console.warn("`Embed`: Error running script:",
|
|
3850
|
+
i.push(b.innerText), new Function(b.innerText)();
|
|
3851
|
+
} catch (U) {
|
|
3852
|
+
console.warn("`Embed`: Error running script:", U);
|
|
3853
3853
|
}
|
|
3854
3854
|
}
|
|
3855
3855
|
}
|
|
3856
|
-
return
|
|
3856
|
+
return Z(() => {
|
|
3857
3857
|
t.current && !s && (u(!0), f());
|
|
3858
3858
|
}, [t.current, s]), /* @__PURE__ */ p(
|
|
3859
3859
|
"div",
|
|
@@ -3893,13 +3893,13 @@ const Ji = {
|
|
|
3893
3893
|
function r(s, u = 6e4) {
|
|
3894
3894
|
return new Promise((f, g) => {
|
|
3895
3895
|
const v = document.createElement("img");
|
|
3896
|
-
let
|
|
3896
|
+
let b = !1;
|
|
3897
3897
|
v.onload = () => {
|
|
3898
|
-
|
|
3899
|
-
}, v.addEventListener("error", (
|
|
3900
|
-
console.warn("Image load failed",
|
|
3898
|
+
b = !0, f(v);
|
|
3899
|
+
}, v.addEventListener("error", (U) => {
|
|
3900
|
+
console.warn("Image load failed", U.error), g(U.error);
|
|
3901
3901
|
}), v.src = s, setTimeout(() => {
|
|
3902
|
-
|
|
3902
|
+
b || g(new Error("Image load timed out"));
|
|
3903
3903
|
}, u);
|
|
3904
3904
|
});
|
|
3905
3905
|
}
|
|
@@ -3997,7 +3997,7 @@ function Qi(e) {
|
|
|
3997
3997
|
src: e.imgSrc || e.image,
|
|
3998
3998
|
...e.attributes
|
|
3999
3999
|
},
|
|
4000
|
-
|
|
4000
|
+
Te() && e.imgSrc || "default-key"
|
|
4001
4001
|
);
|
|
4002
4002
|
}
|
|
4003
4003
|
const eo = {
|
|
@@ -4212,7 +4212,7 @@ function oo(e) {
|
|
|
4212
4212
|
...t()
|
|
4213
4213
|
};
|
|
4214
4214
|
}
|
|
4215
|
-
return /* @__PURE__ */
|
|
4215
|
+
return /* @__PURE__ */ te(
|
|
4216
4216
|
"div",
|
|
4217
4217
|
{
|
|
4218
4218
|
style: {
|
|
@@ -4410,14 +4410,14 @@ const rr = () => [{
|
|
|
4410
4410
|
thisScriptEl?.remove();
|
|
4411
4411
|
}
|
|
4412
4412
|
return;
|
|
4413
|
-
}`, wr = "builderIoAbTest", kr = "builderIoRenderContent",
|
|
4413
|
+
}`, wr = "builderIoAbTest", kr = "builderIoRenderContent", ht = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4414
4414
|
...t,
|
|
4415
4415
|
testVariationId: t.id,
|
|
4416
4416
|
id: e == null ? void 0 : e.id
|
|
4417
4417
|
})), lo = ({
|
|
4418
4418
|
canTrack: e,
|
|
4419
4419
|
content: t
|
|
4420
|
-
}) => !(!(
|
|
4420
|
+
}) => !(!(ht(t).length > 0) || !e || je()), co = (e) => e === "react" || e === "reactNative", Cr = co(rt), uo = () => `
|
|
4421
4421
|
window.${wr} = ${ao}
|
|
4422
4422
|
window.${kr} = ${so}
|
|
4423
4423
|
`, fo = (e, t) => `
|
|
@@ -4429,7 +4429,7 @@ const rr = () => [{
|
|
|
4429
4429
|
}) => `window.${kr}(
|
|
4430
4430
|
"${t}", "${e}", ${Cr}
|
|
4431
4431
|
)`;
|
|
4432
|
-
function
|
|
4432
|
+
function qt(e) {
|
|
4433
4433
|
return /* @__PURE__ */ p(
|
|
4434
4434
|
"script",
|
|
4435
4435
|
{
|
|
@@ -4480,7 +4480,7 @@ const po = (e, t, r = !0) => {
|
|
|
4480
4480
|
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4481
4481
|
}
|
|
4482
4482
|
};
|
|
4483
|
-
}, vo = "0.11.
|
|
4483
|
+
}, vo = "0.11.4", yo = () => {
|
|
4484
4484
|
$r("insertMenu", {
|
|
4485
4485
|
name: "_default",
|
|
4486
4486
|
default: !0,
|
|
@@ -4506,10 +4506,10 @@ const po = (e, t, r = !0) => {
|
|
|
4506
4506
|
let ar = !1;
|
|
4507
4507
|
const xo = (e = {}) => {
|
|
4508
4508
|
var t, r;
|
|
4509
|
-
ar || (ar = !0,
|
|
4509
|
+
ar || (ar = !0, je() && ((t = window.parent) == null || t.postMessage({
|
|
4510
4510
|
type: "builder.sdkInfo",
|
|
4511
4511
|
data: {
|
|
4512
|
-
target:
|
|
4512
|
+
target: rt,
|
|
4513
4513
|
version: vo,
|
|
4514
4514
|
supportsPatchUpdates: !1,
|
|
4515
4515
|
// Supports builder-model="..." attribute which is needed to
|
|
@@ -4530,25 +4530,25 @@ const xo = (e = {}) => {
|
|
|
4530
4530
|
switch (n.type) {
|
|
4531
4531
|
case "builder.evaluate": {
|
|
4532
4532
|
const s = n.data.text, u = n.data.arguments || [], f = n.data.id, g = new Function(s);
|
|
4533
|
-
let v,
|
|
4533
|
+
let v, b = null;
|
|
4534
4534
|
try {
|
|
4535
4535
|
v = g.apply(null, u);
|
|
4536
|
-
} catch (
|
|
4537
|
-
|
|
4536
|
+
} catch (U) {
|
|
4537
|
+
b = U;
|
|
4538
4538
|
}
|
|
4539
|
-
|
|
4539
|
+
b ? (i = window.parent) == null || i.postMessage({
|
|
4540
4540
|
type: "builder.evaluateError",
|
|
4541
4541
|
data: {
|
|
4542
4542
|
id: f,
|
|
4543
|
-
error:
|
|
4543
|
+
error: b.message
|
|
4544
4544
|
}
|
|
4545
|
-
}, "*") : v && typeof v.then == "function" ? v.then((
|
|
4546
|
-
var
|
|
4547
|
-
(
|
|
4545
|
+
}, "*") : v && typeof v.then == "function" ? v.then((U) => {
|
|
4546
|
+
var F;
|
|
4547
|
+
(F = window.parent) == null || F.postMessage({
|
|
4548
4548
|
type: "builder.evaluateResult",
|
|
4549
4549
|
data: {
|
|
4550
4550
|
id: f,
|
|
4551
|
-
result:
|
|
4551
|
+
result: U
|
|
4552
4552
|
}
|
|
4553
4553
|
}, "*");
|
|
4554
4554
|
}).catch(console.error) : (a = window.parent) == null || a.postMessage({
|
|
@@ -4564,90 +4564,102 @@ const xo = (e = {}) => {
|
|
|
4564
4564
|
})));
|
|
4565
4565
|
};
|
|
4566
4566
|
function bo(e) {
|
|
4567
|
-
var
|
|
4568
|
-
const t =
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4567
|
+
var re, E, Ae, W, ke, ue, H;
|
|
4568
|
+
const t = Zt(null), [r, n] = V(() => 0);
|
|
4569
|
+
V(() => !0);
|
|
4570
|
+
function i(C) {
|
|
4571
|
+
var T, M;
|
|
4572
|
+
const I = {
|
|
4573
|
+
...e.builderContextSignal.rootState,
|
|
4574
|
+
...C
|
|
4575
|
+
};
|
|
4576
|
+
e.builderContextSignal.rootSetState ? (M = (T = e.builderContextSignal).rootSetState) == null || M.call(T, I) : e.setBuilderContextSignal((_) => ({
|
|
4577
|
+
..._,
|
|
4578
|
+
rootState: I
|
|
4579
|
+
}));
|
|
4580
|
+
}
|
|
4581
|
+
function a(C) {
|
|
4582
|
+
var T, M, _, G, Ce;
|
|
4583
|
+
const I = {
|
|
4572
4584
|
...e.builderContextSignal.content,
|
|
4573
|
-
...
|
|
4585
|
+
...C,
|
|
4574
4586
|
data: {
|
|
4575
|
-
...(
|
|
4576
|
-
...
|
|
4587
|
+
...(T = e.builderContextSignal.content) == null ? void 0 : T.data,
|
|
4588
|
+
...C == null ? void 0 : C.data
|
|
4577
4589
|
},
|
|
4578
4590
|
meta: {
|
|
4579
|
-
...(
|
|
4580
|
-
...
|
|
4581
|
-
breakpoints: ((
|
|
4591
|
+
...(M = e.builderContextSignal.content) == null ? void 0 : M.meta,
|
|
4592
|
+
...C == null ? void 0 : C.meta,
|
|
4593
|
+
breakpoints: ((_ = C == null ? void 0 : C.meta) == null ? void 0 : _.breakpoints) || ((Ce = (G = e.builderContextSignal.content) == null ? void 0 : G.meta) == null ? void 0 : Ce.breakpoints)
|
|
4582
4594
|
}
|
|
4583
4595
|
};
|
|
4584
|
-
e.setBuilderContextSignal((
|
|
4585
|
-
...
|
|
4586
|
-
content:
|
|
4596
|
+
e.setBuilderContextSignal((at) => ({
|
|
4597
|
+
...at,
|
|
4598
|
+
content: I
|
|
4587
4599
|
}));
|
|
4588
4600
|
}
|
|
4589
|
-
|
|
4590
|
-
const [
|
|
4601
|
+
V(() => 0);
|
|
4602
|
+
const [s, u] = V(
|
|
4591
4603
|
() => !1
|
|
4592
|
-
), [
|
|
4604
|
+
), [f, g] = V(
|
|
4593
4605
|
() => e.contentWrapper || "div"
|
|
4594
4606
|
);
|
|
4595
|
-
function
|
|
4596
|
-
var
|
|
4597
|
-
const { data:
|
|
4598
|
-
if (
|
|
4599
|
-
switch (
|
|
4607
|
+
function v(C) {
|
|
4608
|
+
var T;
|
|
4609
|
+
const { data: I } = C;
|
|
4610
|
+
if (I)
|
|
4611
|
+
switch (I.type) {
|
|
4600
4612
|
case "builder.configureSdk": {
|
|
4601
|
-
const
|
|
4602
|
-
if (
|
|
4613
|
+
const M = I.data, { breakpoints: _, contentId: G } = M;
|
|
4614
|
+
if (!G || G !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id))
|
|
4603
4615
|
return;
|
|
4604
|
-
|
|
4616
|
+
_ && a({
|
|
4605
4617
|
meta: {
|
|
4606
|
-
breakpoints:
|
|
4618
|
+
breakpoints: _
|
|
4607
4619
|
}
|
|
4608
4620
|
}), n(r + 1);
|
|
4609
4621
|
break;
|
|
4610
4622
|
}
|
|
4611
4623
|
case "builder.contentUpdate": {
|
|
4612
|
-
const
|
|
4613
|
-
|
|
4624
|
+
const M = I.data, _ = M.key || M.alias || M.entry || M.modelName, G = M.data;
|
|
4625
|
+
_ === e.model && (a(G), n(r + 1));
|
|
4614
4626
|
break;
|
|
4615
4627
|
}
|
|
4616
4628
|
}
|
|
4617
4629
|
}
|
|
4618
|
-
function
|
|
4619
|
-
var
|
|
4620
|
-
const
|
|
4621
|
-
|
|
4622
|
-
code:
|
|
4630
|
+
function b() {
|
|
4631
|
+
var I, T;
|
|
4632
|
+
const C = (T = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : T.jsCode;
|
|
4633
|
+
C && nt({
|
|
4634
|
+
code: C,
|
|
4623
4635
|
context: e.context || {},
|
|
4624
4636
|
localState: void 0,
|
|
4625
4637
|
rootState: e.builderContextSignal.rootState,
|
|
4626
4638
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4627
4639
|
});
|
|
4628
4640
|
}
|
|
4629
|
-
const [
|
|
4630
|
-
function
|
|
4631
|
-
var
|
|
4641
|
+
const [U, F] = V(() => ({})), [O, P] = V(() => !1);
|
|
4642
|
+
function L(C) {
|
|
4643
|
+
var I, T;
|
|
4632
4644
|
if (e.builderContextSignal.content) {
|
|
4633
|
-
const
|
|
4645
|
+
const M = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, _ = (T = e.builderContextSignal.content) == null ? void 0 : T.id;
|
|
4634
4646
|
Hn({
|
|
4635
4647
|
type: "click",
|
|
4636
|
-
canTrack:
|
|
4637
|
-
contentId:
|
|
4648
|
+
canTrack: pt(e.canTrack),
|
|
4649
|
+
contentId: _,
|
|
4638
4650
|
apiKey: e.apiKey,
|
|
4639
|
-
variationId:
|
|
4640
|
-
...go(
|
|
4641
|
-
unique: !
|
|
4651
|
+
variationId: M !== _ ? M : void 0,
|
|
4652
|
+
...go(C),
|
|
4653
|
+
unique: !O
|
|
4642
4654
|
});
|
|
4643
4655
|
}
|
|
4644
|
-
|
|
4656
|
+
O || P(!0);
|
|
4645
4657
|
}
|
|
4646
|
-
function
|
|
4647
|
-
return
|
|
4658
|
+
function Y(C) {
|
|
4659
|
+
return C.replace(
|
|
4648
4660
|
/{{([^}]+)}}/g,
|
|
4649
|
-
(
|
|
4650
|
-
code:
|
|
4661
|
+
(I, T) => nt({
|
|
4662
|
+
code: T,
|
|
4651
4663
|
context: e.context || {},
|
|
4652
4664
|
localState: void 0,
|
|
4653
4665
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4655,38 +4667,38 @@ function bo(e) {
|
|
|
4655
4667
|
})
|
|
4656
4668
|
);
|
|
4657
4669
|
}
|
|
4658
|
-
function
|
|
4659
|
-
Gr(
|
|
4660
|
-
var
|
|
4661
|
-
const
|
|
4670
|
+
function y({ url: C, key: I }) {
|
|
4671
|
+
Gr(C).then((T) => T.json()).then((T) => {
|
|
4672
|
+
var _, G;
|
|
4673
|
+
const M = {
|
|
4662
4674
|
...e.builderContextSignal.rootState,
|
|
4663
|
-
[
|
|
4675
|
+
[I]: T
|
|
4664
4676
|
};
|
|
4665
|
-
(
|
|
4666
|
-
}).catch((
|
|
4667
|
-
console.error("error fetching dynamic data",
|
|
4677
|
+
(G = (_ = e.builderContextSignal).rootSetState) == null || G.call(_, M), U[I] = !0;
|
|
4678
|
+
}).catch((T) => {
|
|
4679
|
+
console.error("error fetching dynamic data", C, T);
|
|
4668
4680
|
});
|
|
4669
4681
|
}
|
|
4670
|
-
function
|
|
4671
|
-
var
|
|
4672
|
-
const
|
|
4673
|
-
Object.entries(
|
|
4674
|
-
if (
|
|
4675
|
-
const
|
|
4676
|
-
|
|
4677
|
-
url:
|
|
4678
|
-
key:
|
|
4682
|
+
function K() {
|
|
4683
|
+
var I, T, M;
|
|
4684
|
+
const C = (M = (T = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : T.httpRequests) != null ? M : {};
|
|
4685
|
+
Object.entries(C).forEach(([_, G]) => {
|
|
4686
|
+
if (G && (!U[_] || Te())) {
|
|
4687
|
+
const Ce = Y(G);
|
|
4688
|
+
y({
|
|
4689
|
+
url: Ce,
|
|
4690
|
+
key: _
|
|
4679
4691
|
});
|
|
4680
4692
|
}
|
|
4681
4693
|
});
|
|
4682
4694
|
}
|
|
4683
|
-
function
|
|
4684
|
-
|
|
4695
|
+
function ne() {
|
|
4696
|
+
Te() && window.dispatchEvent(
|
|
4685
4697
|
new CustomEvent(
|
|
4686
4698
|
"builder:component:stateChange",
|
|
4687
4699
|
{
|
|
4688
4700
|
detail: {
|
|
4689
|
-
state:
|
|
4701
|
+
state: Qt(e.builderContextSignal.rootState),
|
|
4690
4702
|
ref: {
|
|
4691
4703
|
name: e.model
|
|
4692
4704
|
}
|
|
@@ -4695,8 +4707,8 @@ function bo(e) {
|
|
|
4695
4707
|
)
|
|
4696
4708
|
);
|
|
4697
4709
|
}
|
|
4698
|
-
function
|
|
4699
|
-
n(r + 1), window.addEventListener("message",
|
|
4710
|
+
function le(C) {
|
|
4711
|
+
n(r + 1), window.addEventListener("message", v), yo(), xo({
|
|
4700
4712
|
...e.locale ? {
|
|
4701
4713
|
locale: e.locale
|
|
4702
4714
|
} : {},
|
|
@@ -4708,101 +4720,107 @@ function bo(e) {
|
|
|
4708
4720
|
} : {}
|
|
4709
4721
|
}), Object.values(
|
|
4710
4722
|
e.builderContextSignal.componentInfos
|
|
4711
|
-
).forEach((
|
|
4712
|
-
var
|
|
4713
|
-
const
|
|
4714
|
-
(
|
|
4723
|
+
).forEach((I) => {
|
|
4724
|
+
var M;
|
|
4725
|
+
const T = Kr(I);
|
|
4726
|
+
(M = window.parent) == null || M.postMessage(T, "*");
|
|
4715
4727
|
}), window.addEventListener(
|
|
4716
4728
|
"builder:component:stateChangeListenerActivated",
|
|
4717
|
-
|
|
4729
|
+
ne
|
|
4718
4730
|
);
|
|
4719
4731
|
}
|
|
4720
|
-
function
|
|
4721
|
-
const
|
|
4722
|
-
`builder.preview.${
|
|
4723
|
-
),
|
|
4724
|
-
|
|
4732
|
+
function $(C) {
|
|
4733
|
+
const I = new URL(location.href).searchParams, T = I.get("builder.preview"), M = I.get(
|
|
4734
|
+
`builder.preview.${T}`
|
|
4735
|
+
), _ = I.get("apiKey") || I.get("builder.space");
|
|
4736
|
+
T === e.model && _ === e.apiKey && (!e.content || M === e.content.id) && ur({
|
|
4725
4737
|
model: e.model,
|
|
4726
4738
|
apiKey: e.apiKey,
|
|
4727
4739
|
apiVersion: e.builderContextSignal.apiVersion
|
|
4728
|
-
}).then((
|
|
4729
|
-
|
|
4740
|
+
}).then((G) => {
|
|
4741
|
+
G && a(G);
|
|
4730
4742
|
});
|
|
4731
4743
|
}
|
|
4732
|
-
return
|
|
4733
|
-
var
|
|
4734
|
-
return (
|
|
4744
|
+
return Z(() => {
|
|
4745
|
+
var C;
|
|
4746
|
+
return (C = t.current) == null || C.addEventListener(
|
|
4735
4747
|
"initeditingbldr",
|
|
4736
|
-
|
|
4748
|
+
le
|
|
4737
4749
|
), () => {
|
|
4738
|
-
var
|
|
4739
|
-
return (
|
|
4750
|
+
var I;
|
|
4751
|
+
return (I = t.current) == null ? void 0 : I.removeEventListener(
|
|
4740
4752
|
"initeditingbldr",
|
|
4741
|
-
|
|
4753
|
+
le
|
|
4742
4754
|
);
|
|
4743
4755
|
};
|
|
4744
|
-
}, []),
|
|
4745
|
-
var
|
|
4746
|
-
return (
|
|
4756
|
+
}, []), Z(() => {
|
|
4757
|
+
var C;
|
|
4758
|
+
return (C = t.current) == null || C.addEventListener(
|
|
4747
4759
|
"initpreviewingbldr",
|
|
4748
|
-
|
|
4760
|
+
$
|
|
4749
4761
|
), () => {
|
|
4750
|
-
var
|
|
4751
|
-
return (
|
|
4762
|
+
var I;
|
|
4763
|
+
return (I = t.current) == null ? void 0 : I.removeEventListener(
|
|
4752
4764
|
"initpreviewingbldr",
|
|
4753
|
-
|
|
4765
|
+
$
|
|
4754
4766
|
);
|
|
4755
4767
|
};
|
|
4756
|
-
}, []),
|
|
4757
|
-
var
|
|
4758
|
-
if (
|
|
4759
|
-
if (
|
|
4760
|
-
const
|
|
4768
|
+
}, []), Z(() => {
|
|
4769
|
+
var C, I;
|
|
4770
|
+
if (je()) {
|
|
4771
|
+
if (Te() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && pt(e.canTrack)) {
|
|
4772
|
+
const M = (C = e.builderContextSignal.content) == null ? void 0 : C.testVariationId, _ = (I = e.builderContextSignal.content) == null ? void 0 : I.id, G = e.apiKey;
|
|
4761
4773
|
Hn({
|
|
4762
4774
|
type: "impression",
|
|
4763
4775
|
canTrack: !0,
|
|
4764
|
-
contentId:
|
|
4765
|
-
apiKey:
|
|
4766
|
-
variationId:
|
|
4776
|
+
contentId: _,
|
|
4777
|
+
apiKey: G,
|
|
4778
|
+
variationId: M !== _ ? M : void 0
|
|
4767
4779
|
});
|
|
4768
4780
|
}
|
|
4769
4781
|
Hr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
4770
4782
|
}
|
|
4771
|
-
}, []),
|
|
4772
|
-
e.apiKey ||
|
|
4783
|
+
}, []), Z(() => {
|
|
4784
|
+
e.apiKey || Ue.error(
|
|
4773
4785
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4774
|
-
),
|
|
4775
|
-
}, []),
|
|
4776
|
-
e.content &&
|
|
4777
|
-
}, [e.content]),
|
|
4778
|
-
}, [
|
|
4779
|
-
|
|
4786
|
+
), b(), K(), ne();
|
|
4787
|
+
}, []), Z(() => {
|
|
4788
|
+
e.content && a(e.content);
|
|
4789
|
+
}, [e.content]), Z(() => {
|
|
4790
|
+
}, [s]), Z(() => {
|
|
4791
|
+
b();
|
|
4780
4792
|
}, [
|
|
4781
|
-
(
|
|
4793
|
+
(E = (re = e.builderContextSignal.content) == null ? void 0 : re.data) == null ? void 0 : E.jsCode,
|
|
4782
4794
|
e.builderContextSignal.rootState
|
|
4783
|
-
]),
|
|
4784
|
-
|
|
4785
|
-
}, [(
|
|
4786
|
-
|
|
4787
|
-
}, [e.builderContextSignal.rootState]),
|
|
4788
|
-
|
|
4795
|
+
]), Z(() => {
|
|
4796
|
+
K();
|
|
4797
|
+
}, [(W = (Ae = e.builderContextSignal.content) == null ? void 0 : Ae.data) == null ? void 0 : W.httpRequests]), Z(() => {
|
|
4798
|
+
ne();
|
|
4799
|
+
}, [e.builderContextSignal.rootState]), Z(() => {
|
|
4800
|
+
e.data && i(e.data);
|
|
4801
|
+
}, [e.data]), Z(() => {
|
|
4802
|
+
e.locale && i({
|
|
4803
|
+
locale: e.locale
|
|
4804
|
+
});
|
|
4805
|
+
}, [e.locale]), Z(() => () => {
|
|
4806
|
+
je() && (window.removeEventListener("message", v), window.removeEventListener(
|
|
4789
4807
|
"builder:component:stateChangeListenerActivated",
|
|
4790
|
-
|
|
4808
|
+
ne
|
|
4791
4809
|
));
|
|
4792
|
-
}, []), /* @__PURE__ */ p(
|
|
4793
|
-
|
|
4810
|
+
}, []), /* @__PURE__ */ p(en.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ cr(
|
|
4811
|
+
f,
|
|
4794
4812
|
{
|
|
4795
4813
|
key: r,
|
|
4796
4814
|
ref: t,
|
|
4797
|
-
onClick: (
|
|
4798
|
-
"builder-content-id": (
|
|
4815
|
+
onClick: (C) => L(C),
|
|
4816
|
+
"builder-content-id": (ke = e.builderContextSignal.content) == null ? void 0 : ke.id,
|
|
4799
4817
|
"builder-model": e.model,
|
|
4800
4818
|
...e.showContent ? {} : {
|
|
4801
4819
|
hidden: !0,
|
|
4802
4820
|
"aria-hidden": !0
|
|
4803
4821
|
},
|
|
4804
4822
|
...e.contentWrapperProps,
|
|
4805
|
-
className: `variant-${((
|
|
4823
|
+
className: `variant-${((ue = e.content) == null ? void 0 : ue.testVariationId) || ((H = e.content) == null ? void 0 : H.id)}`
|
|
4806
4824
|
},
|
|
4807
4825
|
e.children
|
|
4808
4826
|
) }) : null });
|
|
@@ -4843,7 +4861,7 @@ font-weight: ${u};
|
|
|
4843
4861
|
contentId: t
|
|
4844
4862
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4845
4863
|
function Co(e) {
|
|
4846
|
-
const [t, r] =
|
|
4864
|
+
const [t, r] = V(
|
|
4847
4865
|
() => `
|
|
4848
4866
|
${ko({
|
|
4849
4867
|
cssCode: e.cssCode,
|
|
@@ -4867,7 +4885,7 @@ ${wo({
|
|
|
4867
4885
|
}
|
|
4868
4886
|
`.trim()
|
|
4869
4887
|
);
|
|
4870
|
-
return /* @__PURE__ */ p(
|
|
4888
|
+
return /* @__PURE__ */ p(xt, { styles: t });
|
|
4871
4889
|
}
|
|
4872
4890
|
const Eo = ({
|
|
4873
4891
|
content: e,
|
|
@@ -4898,25 +4916,25 @@ const Eo = ({
|
|
|
4898
4916
|
meta: e == null ? void 0 : e.meta
|
|
4899
4917
|
} : void 0;
|
|
4900
4918
|
function sr(e) {
|
|
4901
|
-
var f, g, v,
|
|
4902
|
-
const [t, r] =
|
|
4919
|
+
var f, g, v, b, U, F, O;
|
|
4920
|
+
const [t, r] = V(
|
|
4903
4921
|
() => {
|
|
4904
|
-
var P,
|
|
4922
|
+
var P, L;
|
|
4905
4923
|
return ho({
|
|
4906
4924
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4907
4925
|
variationId: (P = e.content) == null ? void 0 : P.testVariationId,
|
|
4908
4926
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4909
|
-
contentId: (
|
|
4927
|
+
contentId: (L = e.content) == null ? void 0 : L.id
|
|
4910
4928
|
});
|
|
4911
4929
|
}
|
|
4912
4930
|
);
|
|
4913
4931
|
function n(P) {
|
|
4914
|
-
u((
|
|
4915
|
-
...
|
|
4932
|
+
u((L) => ({
|
|
4933
|
+
...L,
|
|
4916
4934
|
rootState: P
|
|
4917
4935
|
}));
|
|
4918
4936
|
}
|
|
4919
|
-
const [i, a] =
|
|
4937
|
+
const [i, a] = V(
|
|
4920
4938
|
() => [
|
|
4921
4939
|
...rr(),
|
|
4922
4940
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
@@ -4927,16 +4945,16 @@ function sr(e) {
|
|
|
4927
4945
|
...Kn,
|
|
4928
4946
|
...e.customComponents || []
|
|
4929
4947
|
].reduce(
|
|
4930
|
-
(P, { component:
|
|
4948
|
+
(P, { component: L, ...Y }) => ({
|
|
4931
4949
|
...P,
|
|
4932
|
-
[
|
|
4933
|
-
component:
|
|
4934
|
-
...Gn(
|
|
4950
|
+
[Y.name]: {
|
|
4951
|
+
component: L,
|
|
4952
|
+
...Gn(Y)
|
|
4935
4953
|
}
|
|
4936
4954
|
}),
|
|
4937
4955
|
{}
|
|
4938
4956
|
)
|
|
4939
|
-
), [s, u] =
|
|
4957
|
+
), [s, u] = V(() => ({
|
|
4940
4958
|
content: Io({
|
|
4941
4959
|
content: e.content,
|
|
4942
4960
|
data: e.data
|
|
@@ -4961,9 +4979,9 @@ function sr(e) {
|
|
|
4961
4979
|
...Kn,
|
|
4962
4980
|
...e.customComponents || []
|
|
4963
4981
|
].reduce(
|
|
4964
|
-
(P, { component:
|
|
4982
|
+
(P, { component: L, ...Y }) => ({
|
|
4965
4983
|
...P,
|
|
4966
|
-
[
|
|
4984
|
+
[Y.name]: Gn(Y)
|
|
4967
4985
|
}),
|
|
4968
4986
|
{}
|
|
4969
4987
|
),
|
|
@@ -4977,10 +4995,11 @@ function sr(e) {
|
|
|
4977
4995
|
value: {
|
|
4978
4996
|
registeredComponents: i
|
|
4979
4997
|
},
|
|
4980
|
-
children: /* @__PURE__ */
|
|
4998
|
+
children: /* @__PURE__ */ te(
|
|
4981
4999
|
bo,
|
|
4982
5000
|
{
|
|
4983
5001
|
content: e.content,
|
|
5002
|
+
data: e.data,
|
|
4984
5003
|
model: e.model,
|
|
4985
5004
|
context: e.context,
|
|
4986
5005
|
apiKey: e.apiKey,
|
|
@@ -4994,19 +5013,19 @@ function sr(e) {
|
|
|
4994
5013
|
contentWrapperProps: e.contentWrapperProps,
|
|
4995
5014
|
setBuilderContextSignal: u,
|
|
4996
5015
|
children: [
|
|
4997
|
-
e.isSsrAbTest ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
5016
|
+
e.isSsrAbTest ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(qt, { scriptStr: t }) }) : null,
|
|
4998
5017
|
/* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
4999
5018
|
Co,
|
|
5000
5019
|
{
|
|
5001
5020
|
contentId: (f = s.content) == null ? void 0 : f.id,
|
|
5002
5021
|
cssCode: (v = (g = s.content) == null ? void 0 : g.data) == null ? void 0 : v.cssCode,
|
|
5003
|
-
customFonts: (
|
|
5022
|
+
customFonts: (U = (b = s.content) == null ? void 0 : b.data) == null ? void 0 : U.customFonts
|
|
5004
5023
|
}
|
|
5005
5024
|
) }),
|
|
5006
5025
|
/* @__PURE__ */ p(
|
|
5007
|
-
|
|
5026
|
+
hn,
|
|
5008
5027
|
{
|
|
5009
|
-
blocks: (O = (
|
|
5028
|
+
blocks: (O = (F = s.content) == null ? void 0 : F.data) == null ? void 0 : O.blocks,
|
|
5010
5029
|
context: s,
|
|
5011
5030
|
registeredComponents: i
|
|
5012
5031
|
}
|
|
@@ -5019,16 +5038,16 @@ function sr(e) {
|
|
|
5019
5038
|
}
|
|
5020
5039
|
function Er(e) {
|
|
5021
5040
|
var s, u;
|
|
5022
|
-
const [t, r] =
|
|
5041
|
+
const [t, r] = V(
|
|
5023
5042
|
() => lo({
|
|
5024
|
-
canTrack:
|
|
5043
|
+
canTrack: pt(e.canTrack),
|
|
5025
5044
|
content: e.content
|
|
5026
5045
|
})
|
|
5027
5046
|
);
|
|
5028
5047
|
function n() {
|
|
5029
5048
|
var f;
|
|
5030
5049
|
return fo(
|
|
5031
|
-
|
|
5050
|
+
ht(e.content).map((g) => ({
|
|
5032
5051
|
id: g.testVariationId,
|
|
5033
5052
|
testRatio: g.testRatio
|
|
5034
5053
|
})),
|
|
@@ -5036,7 +5055,7 @@ function Er(e) {
|
|
|
5036
5055
|
);
|
|
5037
5056
|
}
|
|
5038
5057
|
function i() {
|
|
5039
|
-
return
|
|
5058
|
+
return ht(e.content).map((f) => `.variant-${f.testVariationId} { display: none; } `).join("");
|
|
5040
5059
|
}
|
|
5041
5060
|
function a() {
|
|
5042
5061
|
var f;
|
|
@@ -5045,22 +5064,22 @@ function Er(e) {
|
|
|
5045
5064
|
testVariationId: (f = e.content) == null ? void 0 : f.id
|
|
5046
5065
|
} : zr({
|
|
5047
5066
|
item: e.content,
|
|
5048
|
-
canTrack:
|
|
5067
|
+
canTrack: pt(e.canTrack)
|
|
5049
5068
|
});
|
|
5050
5069
|
}
|
|
5051
|
-
return
|
|
5052
|
-
}, []), /* @__PURE__ */
|
|
5053
|
-
!e.__isNestedRender &&
|
|
5054
|
-
t ? /* @__PURE__ */
|
|
5070
|
+
return Z(() => {
|
|
5071
|
+
}, []), /* @__PURE__ */ te(N, { children: [
|
|
5072
|
+
!e.__isNestedRender && rt !== "reactNative" ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(qt, { scriptStr: uo() }) }) : null,
|
|
5073
|
+
t ? /* @__PURE__ */ te(N, { children: [
|
|
5055
5074
|
/* @__PURE__ */ p(
|
|
5056
|
-
|
|
5075
|
+
xt,
|
|
5057
5076
|
{
|
|
5058
5077
|
id: `variants-styles-${(s = e.content) == null ? void 0 : s.id}`,
|
|
5059
5078
|
styles: i()
|
|
5060
5079
|
}
|
|
5061
5080
|
),
|
|
5062
|
-
/* @__PURE__ */ p(
|
|
5063
|
-
(u =
|
|
5081
|
+
/* @__PURE__ */ p(qt, { scriptStr: n() }),
|
|
5082
|
+
(u = ht(e.content)) == null ? void 0 : u.map((f) => /* @__PURE__ */ p(
|
|
5064
5083
|
sr,
|
|
5065
5084
|
{
|
|
5066
5085
|
content: f,
|
|
@@ -5124,7 +5143,7 @@ const To = async ({
|
|
|
5124
5143
|
}
|
|
5125
5144
|
}
|
|
5126
5145
|
}).catch((r) => {
|
|
5127
|
-
|
|
5146
|
+
Ue.error("Could not fetch symbol content: ", r);
|
|
5128
5147
|
});
|
|
5129
5148
|
};
|
|
5130
5149
|
function jo(e) {
|
|
@@ -5138,7 +5157,7 @@ function jo(e) {
|
|
|
5138
5157
|
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5139
5158
|
].filter(Boolean).join(" ");
|
|
5140
5159
|
}
|
|
5141
|
-
const [r, n] =
|
|
5160
|
+
const [r, n] = V(() => {
|
|
5142
5161
|
var f;
|
|
5143
5162
|
return (f = e.symbol) == null ? void 0 : f.content;
|
|
5144
5163
|
});
|
|
@@ -5150,8 +5169,8 @@ function jo(e) {
|
|
|
5150
5169
|
f && n(f);
|
|
5151
5170
|
});
|
|
5152
5171
|
}
|
|
5153
|
-
return
|
|
5154
|
-
}, []),
|
|
5172
|
+
return Z(() => {
|
|
5173
|
+
}, []), Z(() => {
|
|
5155
5174
|
i();
|
|
5156
5175
|
}, [e.symbol]), /* @__PURE__ */ p("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ p(
|
|
5157
5176
|
Er,
|
|
@@ -5171,9 +5190,9 @@ function jo(e) {
|
|
|
5171
5190
|
}
|
|
5172
5191
|
) });
|
|
5173
5192
|
}
|
|
5174
|
-
const Po =
|
|
5193
|
+
const Po = hn, No = Er;
|
|
5175
5194
|
export {
|
|
5176
|
-
|
|
5195
|
+
hn as Blocks,
|
|
5177
5196
|
Xr as Button,
|
|
5178
5197
|
Fi as Columns,
|
|
5179
5198
|
Er as Content,
|
|
@@ -5193,7 +5212,7 @@ export {
|
|
|
5193
5212
|
Do as getAllContent,
|
|
5194
5213
|
Wo as getBuilderSearchParams,
|
|
5195
5214
|
Vo as getContent,
|
|
5196
|
-
|
|
5215
|
+
Te as isEditing,
|
|
5197
5216
|
Hr as isPreviewing,
|
|
5198
5217
|
$r as register,
|
|
5199
5218
|
Lo as setEditorSettings,
|