@builder.io/sdk-react-nextjs 0.7.5 → 0.8.0
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/{USE_CLIENT_BUNDLE-02851f5b.js → USE_CLIENT_BUNDLE-0f9e7207.js} +2 -2
- package/lib/{node/USE_CLIENT_BUNDLE-23b5881f.cjs → browser/USE_CLIENT_BUNDLE-57361dc5.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-949923da.cjs → browser/USE_SERVER_BUNDLE-88edae72.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-f8e4c4d9.js → browser/USE_SERVER_BUNDLE-ec740144.js} +1 -1
- package/lib/browser/{bundle-cf866f2c.cjs → bundle-241e4107.cjs} +7 -7
- package/lib/browser/{bundle-ed21dd97.js → bundle-de4401ae.js} +109 -106
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{browser/USE_CLIENT_BUNDLE-19024ae3.cjs → edge/USE_CLIENT_BUNDLE-d32d9614.cjs} +1 -1
- package/lib/{node/USE_CLIENT_BUNDLE-b63c2d8e.js → edge/USE_CLIENT_BUNDLE-d5efb340.js} +2 -2
- package/lib/{node/USE_SERVER_BUNDLE-d645bd91.cjs → edge/USE_SERVER_BUNDLE-7c98af22.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-643288fc.js → edge/USE_SERVER_BUNDLE-f3c12c2d.js} +1 -1
- package/lib/edge/{bundle-48628d9c.js → bundle-5c41e798.js} +320 -317
- package/lib/edge/{bundle-97130d9a.cjs → bundle-a2f7cfad.cjs} +11 -11
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-853614ad.cjs → node/USE_CLIENT_BUNDLE-38107a6a.cjs} +1 -1
- package/lib/{edge/USE_CLIENT_BUNDLE-a1ac1e61.js → node/USE_CLIENT_BUNDLE-d4e4bc2c.js} +2 -2
- package/lib/{browser/USE_SERVER_BUNDLE-0dbfec06.js → node/USE_SERVER_BUNDLE-86ff2695.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-99af92f3.cjs → node/USE_SERVER_BUNDLE-872f0336.cjs} +1 -1
- package/lib/node/{bundle-3f7e723b.cjs → bundle-5c833e3a.cjs} +3 -3
- package/lib/node/{bundle-3ab5a1ab.js → bundle-698e83e7.js} +7 -4
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +7 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LRUCache as Qr } from "lru-cache";
|
|
2
|
-
import { jsx as C, Fragment as
|
|
2
|
+
import { jsx as C, Fragment as D, jsxs as ue } from "react/jsx-runtime";
|
|
3
3
|
import { createElement as ei } from "react";
|
|
4
|
-
import { I as ti, B as Wn, a as ni, b as ri, C as ii, E as oi, F as ai, c as si, d as li, S as ci, V as ui, e as fi } from "./USE_CLIENT_BUNDLE-
|
|
4
|
+
import { I as ti, B as Wn, a as ni, b as ri, C as ii, E as oi, F as ai, c as si, d as li, S as ci, V as ui, e as fi } from "./USE_CLIENT_BUNDLE-d5efb340.js";
|
|
5
5
|
import "next/navigation";
|
|
6
6
|
function pi(e) {
|
|
7
7
|
var t;
|
|
@@ -116,7 +116,7 @@ const fr = (e, t, n) => {
|
|
|
116
116
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
117
117
|
return r.slice(0, -1).reduce((i, a, s) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
118
118
|
};
|
|
119
|
-
var P,
|
|
119
|
+
var P, wi = function(e) {
|
|
120
120
|
function t(o) {
|
|
121
121
|
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && qr.test(String.fromCharCode(o));
|
|
122
122
|
}
|
|
@@ -126,9 +126,9 @@ var P, bi = function(e) {
|
|
|
126
126
|
function r(o, l) {
|
|
127
127
|
for (var c = g, p = 1, T = 0; ; ) {
|
|
128
128
|
ot.lastIndex = T;
|
|
129
|
-
var
|
|
130
|
-
if (
|
|
131
|
-
++p, T =
|
|
129
|
+
var $ = ot.exec(c);
|
|
130
|
+
if ($ && $.index < o)
|
|
131
|
+
++p, T = $.index + $[0].length;
|
|
132
132
|
else
|
|
133
133
|
break;
|
|
134
134
|
}
|
|
@@ -146,7 +146,7 @@ var P, bi = function(e) {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
function a() {
|
|
149
|
-
this.line =
|
|
149
|
+
this.line = be, this.ab = f - ie;
|
|
150
150
|
}
|
|
151
151
|
function s(o, l) {
|
|
152
152
|
Ce = f, j.C && (Ct = new a()), I = o, d(), Q = l, Be = o.m;
|
|
@@ -162,9 +162,9 @@ var P, bi = function(e) {
|
|
|
162
162
|
if (o === 32)
|
|
163
163
|
++f;
|
|
164
164
|
else if (o === 13)
|
|
165
|
-
++f, o = g.charCodeAt(f), o === 10 && ++f, j.C && (++
|
|
165
|
+
++f, o = g.charCodeAt(f), o === 10 && ++f, j.C && (++be, ie = f);
|
|
166
166
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
167
|
-
++f, j.C && (++
|
|
167
|
+
++f, j.C && (++be, ie = f);
|
|
168
168
|
else if (8 < o && 14 > o)
|
|
169
169
|
++f;
|
|
170
170
|
else if (o === 47)
|
|
@@ -173,7 +173,7 @@ var P, bi = function(e) {
|
|
|
173
173
|
var l = j.va && j.C && new a(), c = f, p = g.indexOf("*/", f += 2);
|
|
174
174
|
if (p === -1 && r(f - 2, "Unterminated comment"), f = p + 2, j.C)
|
|
175
175
|
for (ot.lastIndex = c; (o = ot.exec(g)) && o.index < f; )
|
|
176
|
-
++
|
|
176
|
+
++be, ie = o.index + o[0].length;
|
|
177
177
|
j.va && j.va(!0, g.slice(c + 2, p), c, f, l, j.C && new a());
|
|
178
178
|
} else if (o === 47)
|
|
179
179
|
u();
|
|
@@ -214,7 +214,7 @@ var P, bi = function(e) {
|
|
|
214
214
|
return ++f, s(Un);
|
|
215
215
|
case 48:
|
|
216
216
|
if (o = g.charCodeAt(f + 1), o === 120 || o === 88) {
|
|
217
|
-
f += 2, o = O(16), o === null && r(
|
|
217
|
+
f += 2, o = O(16), o === null && r(L + 2, "Expected hexadecimal number"), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), s(Ve, o);
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
220
|
case 49:
|
|
@@ -231,7 +231,7 @@ var P, bi = function(e) {
|
|
|
231
231
|
case 39:
|
|
232
232
|
f++;
|
|
233
233
|
for (var l = ""; ; ) {
|
|
234
|
-
f >= ke && r(
|
|
234
|
+
f >= ke && r(L, "Unterminated string constant");
|
|
235
235
|
var c = g.charCodeAt(f);
|
|
236
236
|
if (c === o) {
|
|
237
237
|
++f, s(tt, l);
|
|
@@ -254,13 +254,13 @@ var P, bi = function(e) {
|
|
|
254
254
|
l += "\r";
|
|
255
255
|
break;
|
|
256
256
|
case 120:
|
|
257
|
-
l += String.fromCharCode(
|
|
257
|
+
l += String.fromCharCode(x(2));
|
|
258
258
|
break;
|
|
259
259
|
case 117:
|
|
260
|
-
l += String.fromCharCode(
|
|
260
|
+
l += String.fromCharCode(x(4));
|
|
261
261
|
break;
|
|
262
262
|
case 85:
|
|
263
|
-
l += String.fromCharCode(
|
|
263
|
+
l += String.fromCharCode(x(8));
|
|
264
264
|
break;
|
|
265
265
|
case 116:
|
|
266
266
|
l += " ";
|
|
@@ -280,60 +280,60 @@ var P, bi = function(e) {
|
|
|
280
280
|
case 13:
|
|
281
281
|
g.charCodeAt(f) === 10 && ++f;
|
|
282
282
|
case 10:
|
|
283
|
-
j.C && (ie = f, ++
|
|
283
|
+
j.C && (ie = f, ++be);
|
|
284
284
|
break;
|
|
285
285
|
default:
|
|
286
286
|
l += String.fromCharCode(c);
|
|
287
287
|
}
|
|
288
288
|
} else
|
|
289
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(
|
|
289
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(L, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
|
|
290
290
|
}
|
|
291
291
|
return;
|
|
292
292
|
case 47:
|
|
293
|
-
o = g.charCodeAt(f + 1), Be ? (++f, M()) : o === 61 ?
|
|
293
|
+
o = g.charCodeAt(f + 1), Be ? (++f, M()) : o === 61 ? b(Se, 2) : b(Bn, 1);
|
|
294
294
|
return;
|
|
295
295
|
case 37:
|
|
296
296
|
case 42:
|
|
297
|
-
g.charCodeAt(f + 1) === 61 ?
|
|
297
|
+
g.charCodeAt(f + 1) === 61 ? b(Se, 2) : b(Xr, 1);
|
|
298
298
|
return;
|
|
299
299
|
case 124:
|
|
300
300
|
case 38:
|
|
301
|
-
l = g.charCodeAt(f + 1), l === o ?
|
|
301
|
+
l = g.charCodeAt(f + 1), l === o ? b(o === 124 ? _n : Dn, 2) : l === 61 ? b(Se, 2) : b(o === 124 ? Dr : $r, 1);
|
|
302
302
|
return;
|
|
303
303
|
case 94:
|
|
304
|
-
g.charCodeAt(f + 1) === 61 ?
|
|
304
|
+
g.charCodeAt(f + 1) === 61 ? b(Se, 2) : b(Lr, 1);
|
|
305
305
|
return;
|
|
306
306
|
case 43:
|
|
307
307
|
case 45:
|
|
308
|
-
l = g.charCodeAt(f + 1), l === o ? l === 45 && g.charCodeAt(f + 2) === 62 && it.test(g.slice(ge, f)) ? (f += 3, u(), d(), k()) :
|
|
308
|
+
l = g.charCodeAt(f + 1), l === o ? l === 45 && g.charCodeAt(f + 2) === 62 && it.test(g.slice(ge, f)) ? (f += 3, u(), d(), k()) : b(_r, 2) : l === 61 ? b(Se, 2) : b(Gr, 1);
|
|
309
309
|
return;
|
|
310
310
|
case 60:
|
|
311
311
|
case 62:
|
|
312
|
-
l = g.charCodeAt(f + 1), c = 1, l === o ? (c = o === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ?
|
|
312
|
+
l = g.charCodeAt(f + 1), c = 1, l === o ? (c = o === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? b(Se, c + 1) : b(Kr, c)) : l === 33 && o === 60 && g.charCodeAt(f + 2) === 45 && g.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), k()) : (l === 61 && (c = g.charCodeAt(f + 2) === 61 ? 3 : 2), b(Hr, c));
|
|
313
313
|
return;
|
|
314
314
|
case 61:
|
|
315
315
|
case 33:
|
|
316
|
-
g.charCodeAt(f + 1) === 61 ?
|
|
316
|
+
g.charCodeAt(f + 1) === 61 ? b(Wr, g.charCodeAt(f + 2) === 61 ? 3 : 2) : b(o === 61 ? Fn : Vn, 1);
|
|
317
317
|
return;
|
|
318
318
|
case 126:
|
|
319
|
-
return
|
|
319
|
+
return b(Vn, 1);
|
|
320
320
|
}
|
|
321
321
|
return !1;
|
|
322
322
|
}
|
|
323
323
|
function k(o) {
|
|
324
|
-
if (o ? f =
|
|
324
|
+
if (o ? f = L + 1 : L = f, j.C && (kt = new a()), o)
|
|
325
325
|
return M();
|
|
326
326
|
if (f >= ke)
|
|
327
327
|
return s(Tt);
|
|
328
328
|
if (o = g.charCodeAt(f), n(o) || o === 92)
|
|
329
|
-
return
|
|
329
|
+
return F();
|
|
330
330
|
if (E(o) === !1) {
|
|
331
331
|
if (o = String.fromCharCode(o), o === "\\" || $n.test(o))
|
|
332
|
-
return
|
|
332
|
+
return F();
|
|
333
333
|
r(f, "Unexpected character '" + o + "'");
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function b(o, l) {
|
|
337
337
|
var c = g.slice(f, f + l);
|
|
338
338
|
f += l, s(o, c);
|
|
339
339
|
}
|
|
@@ -357,13 +357,13 @@ var P, bi = function(e) {
|
|
|
357
357
|
o = g.slice(c, f), ++f, (l = N()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
358
358
|
try {
|
|
359
359
|
var T = new RegExp(o, l);
|
|
360
|
-
} catch (
|
|
361
|
-
throw
|
|
360
|
+
} catch ($) {
|
|
361
|
+
throw $ instanceof SyntaxError && r(c, $.message), $;
|
|
362
362
|
}
|
|
363
363
|
s(mn, T);
|
|
364
364
|
}
|
|
365
365
|
function O(o, l) {
|
|
366
|
-
for (var c = f, p = 0, T = l === void 0 ? 1 / 0 : l,
|
|
366
|
+
for (var c = f, p = 0, T = l === void 0 ? 1 / 0 : l, $ = 0; $ < T; ++$) {
|
|
367
367
|
var X = g.charCodeAt(f);
|
|
368
368
|
if (X = 97 <= X ? X - 97 + 10 : 65 <= X ? X - 65 + 10 : 48 <= X && 57 >= X ? X - 48 : 1 / 0, X >= o)
|
|
369
369
|
break;
|
|
@@ -377,8 +377,8 @@ var P, bi = function(e) {
|
|
|
377
377
|
var T;
|
|
378
378
|
c ? T = parseFloat(o) : p && o.length !== 1 ? /[89]/.test(o) || z ? r(l, "Invalid number") : T = parseInt(o, 8) : T = parseInt(o, 10), s(Ve, T);
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
return o = O(16, o), o === null && r(
|
|
380
|
+
function x(o) {
|
|
381
|
+
return o = O(16, o), o === null && r(L, "Bad character escape sequence"), o;
|
|
382
382
|
}
|
|
383
383
|
function N() {
|
|
384
384
|
Te = !1;
|
|
@@ -387,7 +387,7 @@ var P, bi = function(e) {
|
|
|
387
387
|
if (t(p))
|
|
388
388
|
Te && (o += g.charAt(f)), ++f;
|
|
389
389
|
else if (p === 92) {
|
|
390
|
-
Te || (o = g.slice(c, f)), Te = !0, g.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, p =
|
|
390
|
+
Te || (o = g.slice(c, f)), Te = !0, g.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, p = x(4);
|
|
391
391
|
var T = String.fromCharCode(p);
|
|
392
392
|
T || r(f - 1, "Invalid Unicode escape"), (l ? n(p) : t(p)) || r(f - 4, "Invalid Unicode escape"), o += T;
|
|
393
393
|
} else
|
|
@@ -396,29 +396,29 @@ var P, bi = function(e) {
|
|
|
396
396
|
}
|
|
397
397
|
return Te ? o : g.slice(c, f);
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function F() {
|
|
400
400
|
var o = N(), l = Ee;
|
|
401
401
|
!Te && Jr(o) && (l = Vr[o]), s(l, o);
|
|
402
402
|
}
|
|
403
403
|
function m() {
|
|
404
|
-
Et =
|
|
404
|
+
Et = L, ge = Ce, It = Ct, k();
|
|
405
405
|
}
|
|
406
406
|
function de(o) {
|
|
407
|
-
if (z = o, f =
|
|
407
|
+
if (z = o, f = L, j.C)
|
|
408
408
|
for (; f < ie; )
|
|
409
409
|
ie = g.lastIndexOf(`
|
|
410
|
-
`, ie - 2) + 1, --
|
|
410
|
+
`, ie - 2) + 1, --be;
|
|
411
411
|
d(), k();
|
|
412
412
|
}
|
|
413
413
|
function he() {
|
|
414
|
-
this.type = null, this.start =
|
|
414
|
+
this.type = null, this.start = L, this.end = null;
|
|
415
415
|
}
|
|
416
416
|
function Z() {
|
|
417
417
|
this.start = kt, this.end = null, St && (this.source = St);
|
|
418
418
|
}
|
|
419
419
|
function U() {
|
|
420
420
|
var o = new he();
|
|
421
|
-
return j.C && (o.X = new Z()), j.vb && (o.sourceFile = j.vb), j.Xa && (o.j = [
|
|
421
|
+
return j.C && (o.X = new Z()), j.vb && (o.sourceFile = j.vb), j.Xa && (o.j = [L, 0]), o;
|
|
422
422
|
}
|
|
423
423
|
function me(o) {
|
|
424
424
|
var l = new he();
|
|
@@ -434,16 +434,16 @@ var P, bi = function(e) {
|
|
|
434
434
|
return I === o ? (m(), !0) : !1;
|
|
435
435
|
}
|
|
436
436
|
function Ze() {
|
|
437
|
-
return !j.fc && (I === Tt || I === Ie || it.test(g.slice(ge,
|
|
437
|
+
return !j.fc && (I === Tt || I === Ie || it.test(g.slice(ge, L)));
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function we() {
|
|
440
440
|
B(ae) || Ze() || ne();
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function V(o) {
|
|
443
443
|
I === o ? m() : ne();
|
|
444
444
|
}
|
|
445
445
|
function ne() {
|
|
446
|
-
r(
|
|
446
|
+
r(L, "Unexpected token");
|
|
447
447
|
}
|
|
448
448
|
function Qe(o) {
|
|
449
449
|
o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"), z && o.type === "Identifier" && rt(o.name) && r(o.start, "Assigning to " + o.name + " in strict mode");
|
|
@@ -456,77 +456,77 @@ var P, bi = function(e) {
|
|
|
456
456
|
case yn:
|
|
457
457
|
m();
|
|
458
458
|
var c = o === At;
|
|
459
|
-
B(ae) || Ze() ? l.label = null : I !== Ee ? ne() : (l.label = re(),
|
|
460
|
-
for (var p = 0; p <
|
|
461
|
-
var T =
|
|
459
|
+
B(ae) || Ze() ? l.label = null : I !== Ee ? ne() : (l.label = re(), we());
|
|
460
|
+
for (var p = 0; p < _.length; ++p) {
|
|
461
|
+
var T = _[p];
|
|
462
462
|
if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (c || T.kind === "loop") || l.label && c))
|
|
463
463
|
break;
|
|
464
464
|
}
|
|
465
|
-
return p ===
|
|
465
|
+
return p === _.length && r(l.start, "Unsyntactic " + o.l), A(l, c ? "BreakStatement" : "ContinueStatement");
|
|
466
466
|
case vn:
|
|
467
|
-
return m(),
|
|
468
|
-
case
|
|
469
|
-
return m(),
|
|
467
|
+
return m(), we(), A(l, "DebuggerStatement");
|
|
468
|
+
case wn:
|
|
469
|
+
return m(), _.push(Bt), l.body = ee(), _.pop(), V(Nt), l.test = Ne(), we(), A(l, "DoWhileStatement");
|
|
470
470
|
case kn:
|
|
471
|
-
return m(),
|
|
471
|
+
return m(), _.push(Bt), V(oe), I === ae ? gt(l, null) : I === Pt ? (o = U(), m(), dn(o, !0), A(o, "VariableDeclaration"), o.fa.length === 1 && B(nt) ? pn(l, o) : gt(l, o)) : (o = K(!1, !0), B(nt) ? (Qe(o), pn(l, o)) : gt(l, o));
|
|
472
472
|
case jt:
|
|
473
|
-
return m(),
|
|
473
|
+
return m(), wt(l, !0);
|
|
474
474
|
case Cn:
|
|
475
|
-
return m(), l.test = Ne(), l.da = ee(), l.alternate = B(
|
|
475
|
+
return m(), l.test = Ne(), l.da = ee(), l.alternate = B(bn) ? ee() : null, A(l, "IfStatement");
|
|
476
476
|
case En:
|
|
477
|
-
return Fe || j.Ib || r(
|
|
477
|
+
return Fe || j.Ib || r(L, "'return' outside of function"), m(), B(ae) || Ze() ? l.K = null : (l.K = K(), we()), A(l, "ReturnStatement");
|
|
478
478
|
case Rt:
|
|
479
|
-
for (m(), l.Qb = Ne(), l.tb = [],
|
|
480
|
-
I === Ot || I === xn ? (o = I === Ot, p && A(p, "SwitchCase"), l.tb.push(p = U()), p.da = [], m(), o ? p.test = K() : (c && r(Et, "Multiple default clauses"), c = !0, p.test = null),
|
|
481
|
-
return p && A(p, "SwitchCase"), m(),
|
|
479
|
+
for (m(), l.Qb = Ne(), l.tb = [], V(_e), _.push(Zr); I !== Ie; )
|
|
480
|
+
I === Ot || I === xn ? (o = I === Ot, p && A(p, "SwitchCase"), l.tb.push(p = U()), p.da = [], m(), o ? p.test = K() : (c && r(Et, "Multiple default clauses"), c = !0, p.test = null), V(De)) : (p || ne(), p.da.push(ee()));
|
|
481
|
+
return p && A(p, "SwitchCase"), m(), _.pop(), A(l, "SwitchStatement");
|
|
482
482
|
case In:
|
|
483
|
-
return m(), it.test(g.slice(ge,
|
|
483
|
+
return m(), it.test(g.slice(ge, L)) && r(ge, "Illegal newline after throw"), l.K = K(), we(), A(l, "ThrowStatement");
|
|
484
484
|
case Tn:
|
|
485
|
-
return m(), l.block = Me(), l.Ea = null, I === gn && (o = U(), m(),
|
|
485
|
+
return m(), l.block = Me(), l.Ea = null, I === gn && (o = U(), m(), V(oe), o.Ua = re(), z && rt(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), V(te), o.body = Me(), l.Ea = A(o, "CatchClause")), l.fb = B(Sn) ? Me() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
|
|
486
486
|
case Pt:
|
|
487
|
-
return m(), dn(l),
|
|
487
|
+
return m(), dn(l), we(), A(l, "VariableDeclaration");
|
|
488
488
|
case Nt:
|
|
489
|
-
return m(), l.test = Ne(),
|
|
489
|
+
return m(), l.test = Ne(), _.push(Bt), l.body = ee(), _.pop(), A(l, "WhileStatement");
|
|
490
490
|
case An:
|
|
491
|
-
return z && r(
|
|
491
|
+
return z && r(L, "'with' in strict mode"), m(), l.object = Ne(), l.body = ee(), A(l, "WithStatement");
|
|
492
492
|
case _e:
|
|
493
493
|
return Me();
|
|
494
494
|
case ae:
|
|
495
495
|
return m(), A(l, "EmptyStatement");
|
|
496
496
|
default:
|
|
497
497
|
if (c = Q, T = K(), o === Ee && T.type === "Identifier" && B(De)) {
|
|
498
|
-
for (p = 0; p <
|
|
499
|
-
|
|
500
|
-
return
|
|
498
|
+
for (p = 0; p < _.length; ++p)
|
|
499
|
+
_[p].name === c && r(T.start, "Label '" + c + "' is already declared");
|
|
500
|
+
return _.push({
|
|
501
501
|
name: c,
|
|
502
502
|
kind: I.W ? "loop" : I === Rt ? "switch" : null
|
|
503
|
-
}), l.body = ee(),
|
|
503
|
+
}), l.body = ee(), _.pop(), l.label = T, A(l, "LabeledStatement");
|
|
504
504
|
}
|
|
505
|
-
return l.la = T,
|
|
505
|
+
return l.la = T, we(), A(l, "ExpressionStatement");
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
function Ne() {
|
|
509
|
-
|
|
509
|
+
V(oe);
|
|
510
510
|
var o = K();
|
|
511
|
-
return
|
|
511
|
+
return V(te), o;
|
|
512
512
|
}
|
|
513
513
|
function Me(o) {
|
|
514
514
|
var l = U(), c = !0, p = !1;
|
|
515
|
-
for (l.body = [],
|
|
515
|
+
for (l.body = [], V(_e); !B(Ie); ) {
|
|
516
516
|
var T = ee();
|
|
517
517
|
if (l.body.push(T), c && o && mt(T)) {
|
|
518
|
-
var
|
|
518
|
+
var $ = p;
|
|
519
519
|
de(p = !0);
|
|
520
520
|
}
|
|
521
521
|
c = !1;
|
|
522
522
|
}
|
|
523
|
-
return p &&
|
|
523
|
+
return p && !$ && de(!1), A(l, "BlockStatement");
|
|
524
524
|
}
|
|
525
525
|
function gt(o, l) {
|
|
526
|
-
return o.ua = l,
|
|
526
|
+
return o.ua = l, V(ae), o.test = I === ae ? null : K(), V(ae), o.update = I === te ? null : K(), V(te), o.body = ee(), _.pop(), A(o, "ForStatement");
|
|
527
527
|
}
|
|
528
528
|
function pn(o, l) {
|
|
529
|
-
return o.left = l, o.right = K(),
|
|
529
|
+
return o.left = l, o.right = K(), V(te), o.body = ee(), _.pop(), A(o, "ForInStatement");
|
|
530
530
|
}
|
|
531
531
|
function dn(o, l) {
|
|
532
532
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
@@ -548,7 +548,7 @@ var P, bi = function(e) {
|
|
|
548
548
|
var l = vt(xt(), -1, o);
|
|
549
549
|
if (B(Un)) {
|
|
550
550
|
var c = me(l);
|
|
551
|
-
c.test = l, c.da = K(!0),
|
|
551
|
+
c.test = l, c.da = K(!0), V(De), c.alternate = K(!0, o), l = A(c, "ConditionalExpression");
|
|
552
552
|
}
|
|
553
553
|
return I.Cb ? (c = me(l), c.operator = Q, c.left = l, m(), c.right = yt(o), Qe(l), A(c, "AssignmentExpression")) : l;
|
|
554
554
|
}
|
|
@@ -574,7 +574,7 @@ var P, bi = function(e) {
|
|
|
574
574
|
var c = me(o);
|
|
575
575
|
return c.object = o, c.Wa = re(!0), c.bb = !1, Ue(A(c, "MemberExpression"), l);
|
|
576
576
|
}
|
|
577
|
-
return B(Mt) ? (c = me(o), c.object = o, c.Wa = K(), c.bb = !0,
|
|
577
|
+
return B(Mt) ? (c = me(o), c.object = o, c.Wa = K(), c.bb = !0, V(Ut), Ue(A(c, "MemberExpression"), l)) : !l && B(oe) ? (c = me(o), c.callee = o, c.arguments = bt(te, !1), Ue(A(c, "CallExpression"), l)) : o;
|
|
578
578
|
}
|
|
579
579
|
function et() {
|
|
580
580
|
switch (I) {
|
|
@@ -586,59 +586,59 @@ var P, bi = function(e) {
|
|
|
586
586
|
case Ve:
|
|
587
587
|
case tt:
|
|
588
588
|
case mn:
|
|
589
|
-
return o = U(), o.value = Q, o.raw = g.slice(
|
|
589
|
+
return o = U(), o.value = Q, o.raw = g.slice(L, Ce), m(), A(o, "Literal");
|
|
590
590
|
case Rn:
|
|
591
591
|
case Pn:
|
|
592
592
|
case Nn:
|
|
593
593
|
return o = U(), o.value = I.$a, o.raw = I.l, m(), A(o, "Literal");
|
|
594
594
|
case oe:
|
|
595
595
|
o = kt;
|
|
596
|
-
var l =
|
|
596
|
+
var l = L;
|
|
597
597
|
m();
|
|
598
598
|
var c = K();
|
|
599
|
-
return c.start = l, c.end = Ce, j.C && (c.X.start = o, c.X.end = Ct), j.Xa && (c.j = [l, Ce]),
|
|
599
|
+
return c.start = l, c.end = Ce, j.C && (c.X.start = o, c.X.end = Ct), j.Xa && (c.j = [l, Ce]), V(te), c;
|
|
600
600
|
case Mt:
|
|
601
|
-
return o = U(), m(), o.elements =
|
|
601
|
+
return o = U(), m(), o.elements = bt(Ut, !0, !0), A(o, "ArrayExpression");
|
|
602
602
|
case _e:
|
|
603
603
|
for (o = U(), l = !0, c = !1, o.h = [], m(); !B(Ie); ) {
|
|
604
604
|
if (l)
|
|
605
605
|
l = !1;
|
|
606
|
-
else if (
|
|
606
|
+
else if (V(ye), j.sb && B(Ie))
|
|
607
607
|
break;
|
|
608
608
|
var p = {
|
|
609
609
|
key: I === Ve || I === tt ? et() : re(!0)
|
|
610
610
|
}, T = !1;
|
|
611
611
|
if (B(De)) {
|
|
612
612
|
p.value = K(!0);
|
|
613
|
-
var
|
|
613
|
+
var $ = p.kind = "init";
|
|
614
614
|
} else
|
|
615
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ne() : (T = c = !0,
|
|
615
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ne() : (T = c = !0, $ = p.kind = p.key.name, p.key = I === Ve || I === tt ? et() : re(!0), I !== oe && ne(), p.value = wt(U(), !1));
|
|
616
616
|
if (p.key.type === "Identifier" && (z || c))
|
|
617
617
|
for (var X = 0; X < o.h.length; ++X) {
|
|
618
618
|
var Ae = o.h[X];
|
|
619
619
|
if (Ae.key.name === p.key.name) {
|
|
620
|
-
var Ft =
|
|
621
|
-
Ft && !z &&
|
|
620
|
+
var Ft = $ === Ae.kind || T && Ae.kind === "init" || $ === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
621
|
+
Ft && !z && $ === "init" && Ae.kind === "init" && (Ft = !1), Ft && r(p.key.start, "Redefinition of property");
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
o.h.push(p);
|
|
625
625
|
}
|
|
626
626
|
return A(o, "ObjectExpression");
|
|
627
627
|
case jt:
|
|
628
|
-
return o = U(), m(),
|
|
628
|
+
return o = U(), m(), wt(o, !1);
|
|
629
629
|
case On:
|
|
630
|
-
return o = U(), m(), o.callee = Ue(et(), !0), o.arguments = B(oe) ?
|
|
630
|
+
return o = U(), m(), o.callee = Ue(et(), !0), o.arguments = B(oe) ? bt(te, !1) : Fr, A(o, "NewExpression");
|
|
631
631
|
}
|
|
632
632
|
ne();
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function wt(o, l) {
|
|
635
635
|
I === Ee ? o.id = re() : l ? ne() : o.id = null, o.oa = [];
|
|
636
636
|
var c = !0;
|
|
637
|
-
for (
|
|
638
|
-
c ? c = !1 :
|
|
637
|
+
for (V(oe); !B(te); )
|
|
638
|
+
c ? c = !1 : V(ye), o.oa.push(re());
|
|
639
639
|
c = Fe;
|
|
640
|
-
var p =
|
|
641
|
-
if (Fe = !0,
|
|
640
|
+
var p = _;
|
|
641
|
+
if (Fe = !0, _ = [], o.body = Me(!0), Fe = c, _ = p, z || o.body.body.length && mt(o.body.body[0])) {
|
|
642
642
|
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
643
643
|
if (p = 0 > c ? o.id : o.oa[c], (Ln(p.name) || rt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= c)
|
|
644
644
|
for (var T = 0; T < c; ++T)
|
|
@@ -646,11 +646,11 @@ var P, bi = function(e) {
|
|
|
646
646
|
}
|
|
647
647
|
return A(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function bt(o, l, c) {
|
|
650
650
|
for (var p = [], T = !0; !B(o); ) {
|
|
651
651
|
if (T)
|
|
652
652
|
T = !1;
|
|
653
|
-
else if (
|
|
653
|
+
else if (V(ye), l && j.sb && B(o))
|
|
654
654
|
break;
|
|
655
655
|
p.push(c && I === ye ? null : K(!0));
|
|
656
656
|
}
|
|
@@ -658,7 +658,7 @@ var P, bi = function(e) {
|
|
|
658
658
|
}
|
|
659
659
|
function re(o) {
|
|
660
660
|
var l = U();
|
|
661
|
-
return o && j.yb === "everywhere" && (o = !1), I === Ee ? (!o && (j.yb && Yr(Q) || z && Ln(Q)) && g.slice(
|
|
661
|
+
return o && j.yb === "everywhere" && (o = !1), I === Ee ? (!o && (j.yb && Yr(Q) || z && Ln(Q)) && g.slice(L, Ce).indexOf("\\") === -1 && r(L, "The keyword '" + Q + "' is reserved"), l.name = Q) : o && I.l ? l.name = I.l : ne(), Be = !1, m(), A(l, "Identifier");
|
|
662
662
|
}
|
|
663
663
|
e.version = "0.5.0";
|
|
664
664
|
var j, g = "", ke, St;
|
|
@@ -666,7 +666,7 @@ var P, bi = function(e) {
|
|
|
666
666
|
g = String(o), ke = g.length, j = l || {};
|
|
667
667
|
for (var c in hn)
|
|
668
668
|
Object.prototype.hasOwnProperty.call(j, c) || (j[c] = hn[c]);
|
|
669
|
-
for (St = j.sourceFile,
|
|
669
|
+
for (St = j.sourceFile, be = 1, f = ie = 0, Be = !0, d(), c = j.dc, Et = ge = f, j.C && (It = new a()), Fe = z = !1, _ = [], k(), o = c || U(), l = !0, c || (o.body = []); I !== Tt; )
|
|
670
670
|
c = ee(), o.body.push(c), l && mt(c) && de(!0), l = !1;
|
|
671
671
|
return A(o, "Program");
|
|
672
672
|
};
|
|
@@ -681,7 +681,7 @@ var P, bi = function(e) {
|
|
|
681
681
|
dc: null,
|
|
682
682
|
sourceFile: null,
|
|
683
683
|
vb: null
|
|
684
|
-
}, f = 0,
|
|
684
|
+
}, f = 0, L = 0, Ce = 0, kt, Ct, I, Q, Be, be, ie, Et = 0, ge = 0, It, Fe, _, z, Fr = [], Ve = {
|
|
685
685
|
type: "num"
|
|
686
686
|
}, mn = {
|
|
687
687
|
type: "regexp"
|
|
@@ -704,10 +704,10 @@ var P, bi = function(e) {
|
|
|
704
704
|
l: "debugger"
|
|
705
705
|
}, xn = {
|
|
706
706
|
l: "default"
|
|
707
|
-
},
|
|
707
|
+
}, wn = {
|
|
708
708
|
l: "do",
|
|
709
709
|
W: !0
|
|
710
|
-
},
|
|
710
|
+
}, bn = {
|
|
711
711
|
l: "else",
|
|
712
712
|
m: !0
|
|
713
713
|
}, Sn = {
|
|
@@ -761,8 +761,8 @@ var P, bi = function(e) {
|
|
|
761
761
|
continue: yn,
|
|
762
762
|
debugger: vn,
|
|
763
763
|
default: xn,
|
|
764
|
-
do:
|
|
765
|
-
else:
|
|
764
|
+
do: wn,
|
|
765
|
+
else: bn,
|
|
766
766
|
finally: Sn,
|
|
767
767
|
for: kn,
|
|
768
768
|
function: jt,
|
|
@@ -882,7 +882,7 @@ var P, bi = function(e) {
|
|
|
882
882
|
kind: "switch"
|
|
883
883
|
};
|
|
884
884
|
}, Lt = Lt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
885
|
-
|
|
885
|
+
wi(Lt.j || (Lt.j = {}));
|
|
886
886
|
function h(e, t) {
|
|
887
887
|
typeof e == "string" && (e = je(e, "code"));
|
|
888
888
|
var n = e.constructor;
|
|
@@ -899,7 +899,7 @@ function h(e, t) {
|
|
|
899
899
|
for (s in this)
|
|
900
900
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
901
901
|
this.N = Wt(this, this.ra, null), this.Na = this.N.object, this.ra = je(this.ba.join(`
|
|
902
|
-
`), "polyfills"), this.ba = void 0, ut(this.ra), a = new
|
|
902
|
+
`), "polyfills"), this.ba = void 0, ut(this.ra), a = new v(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = r, a = new v(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
903
903
|
}
|
|
904
904
|
var Hn = {
|
|
905
905
|
C: !0,
|
|
@@ -932,7 +932,7 @@ var Hn = {
|
|
|
932
932
|
VALUE_IN_DESCRIPTOR: !0
|
|
933
933
|
}, Oe = {
|
|
934
934
|
REGEXP_TIMEOUT: !0
|
|
935
|
-
}, Gn = [], le = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis,
|
|
935
|
+
}, Gn = [], le = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis, bi = ["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();", "};"];
|
|
936
936
|
function Jt(e) {
|
|
937
937
|
var t = e >>> 0;
|
|
938
938
|
return t === Number(e) ? t : NaN;
|
|
@@ -984,7 +984,7 @@ P.lb = function() {
|
|
|
984
984
|
n = null;
|
|
985
985
|
else {
|
|
986
986
|
this.ca.shift(), 0 <= n.interval && mr(this, n, n.interval);
|
|
987
|
-
var r = new
|
|
987
|
+
var r = new v(n.node, n.scope);
|
|
988
988
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
989
989
|
}
|
|
990
990
|
if (!n)
|
|
@@ -1026,7 +1026,7 @@ function Si(e, t) {
|
|
|
1026
1026
|
try {
|
|
1027
1027
|
return a(s);
|
|
1028
1028
|
} catch (u) {
|
|
1029
|
-
|
|
1029
|
+
w(e, e.Gb, u.message);
|
|
1030
1030
|
}
|
|
1031
1031
|
};
|
|
1032
1032
|
}(r[i][0]), e.g(t, r[i][1], e.i(n, !1), y);
|
|
@@ -1048,36 +1048,36 @@ function ki(e, t) {
|
|
|
1048
1048
|
s = s.split(/\s*,\s*/);
|
|
1049
1049
|
for (var u = 0; u < s.length; u++) {
|
|
1050
1050
|
var d = s[u];
|
|
1051
|
-
n.test(d) ||
|
|
1051
|
+
n.test(d) || w(e, e.T, "Invalid function argument: " + d);
|
|
1052
1052
|
}
|
|
1053
1053
|
s = s.join(", ");
|
|
1054
1054
|
}
|
|
1055
1055
|
try {
|
|
1056
1056
|
var E = je("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1057
1057
|
} catch (k) {
|
|
1058
|
-
|
|
1058
|
+
w(e, e.T, "Invalid code: " + k.message);
|
|
1059
1059
|
}
|
|
1060
|
-
return E.body.length !== 1 &&
|
|
1060
|
+
return E.body.length !== 1 && w(e, e.T, "Invalid code in function body"), Zt(e, E.body[0].la, e.N, "anonymous");
|
|
1061
1061
|
};
|
|
1062
1062
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
|
|
1063
1063
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, J), e.Z.H = "Function", r = function(i, a) {
|
|
1064
1064
|
var s = e.o[e.o.length - 1];
|
|
1065
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof R ? s.F = dr(e, a) :
|
|
1066
|
-
},
|
|
1065
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof R ? s.F = dr(e, a) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1066
|
+
}, W(e, e.O, "apply", r), r = function(i) {
|
|
1067
1067
|
var a = e.o[e.o.length - 1];
|
|
1068
1068
|
a.U = this, a.B = i, a.F = [];
|
|
1069
1069
|
for (var s = 1; s < arguments.length; s++)
|
|
1070
1070
|
a.F.push(arguments[s]);
|
|
1071
1071
|
a.eb = !1;
|
|
1072
|
-
},
|
|
1072
|
+
}, W(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
|
|
1073
1073
|
return String(this);
|
|
1074
|
-
},
|
|
1074
|
+
}, W(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), y), r = function() {
|
|
1075
1075
|
return this.valueOf();
|
|
1076
|
-
},
|
|
1076
|
+
}, W(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
|
|
1077
1077
|
}
|
|
1078
1078
|
function Ci(e, t) {
|
|
1079
1079
|
function n(i) {
|
|
1080
|
-
i != null ||
|
|
1080
|
+
i != null || w(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1081
1081
|
}
|
|
1082
1082
|
var r = function(i) {
|
|
1083
1083
|
if (i == null)
|
|
@@ -1093,11 +1093,11 @@ function Ci(e, t) {
|
|
|
1093
1093
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(i) {
|
|
1094
1094
|
return n(i), i instanceof R && (i = i.h), se(e, Object.keys(i));
|
|
1095
1095
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(i) {
|
|
1096
|
-
return i === null ? e.s(null) : (i instanceof R ||
|
|
1096
|
+
return i === null ? e.s(null) : (i instanceof R || w(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1097
1097
|
}, e.g(e.v, "create", e.i(r, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(i, a, s) {
|
|
1098
|
-
return a = String(a), i instanceof R ||
|
|
1098
|
+
return a = String(a), i instanceof R || w(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof R || w(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || w(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, Ye, s.h), i;
|
|
1099
1099
|
}, e.g(e.v, "defineProperty", e.i(r, !1), y), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(i, a) {
|
|
1100
|
-
if (i instanceof R ||
|
|
1100
|
+
if (i instanceof R || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1101
1101
|
var s = Object.getOwnPropertyDescriptor(i.h, a), u = i.V[a];
|
|
1102
1102
|
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;
|
|
1103
1103
|
}
|
|
@@ -1107,24 +1107,24 @@ function Ci(e, t) {
|
|
|
1107
1107
|
return !!i && !i.preventExtensions;
|
|
1108
1108
|
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(i) {
|
|
1109
1109
|
return i instanceof R && (i.preventExtensions = !0), i;
|
|
1110
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), y),
|
|
1110
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), y), W(e, e.v, "toString", R.prototype.toString), W(e, e.v, "toLocaleString", R.prototype.toString), W(e, e.v, "valueOf", R.prototype.valueOf), r = function(i) {
|
|
1111
1111
|
return n(this), this instanceof R ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1112
|
-
},
|
|
1112
|
+
}, W(e, e.v, "hasOwnProperty", r), r = function(i) {
|
|
1113
1113
|
return n(this), this instanceof R ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1114
|
-
},
|
|
1114
|
+
}, W(e, e.v, "propertyIsEnumerable", r), r = function(i) {
|
|
1115
1115
|
for (; ; ) {
|
|
1116
1116
|
if (i = ce(e, i), !i)
|
|
1117
1117
|
return !1;
|
|
1118
1118
|
if (i === this)
|
|
1119
1119
|
return !0;
|
|
1120
1120
|
}
|
|
1121
|
-
},
|
|
1121
|
+
}, W(e, e.v, "isPrototypeOf", r);
|
|
1122
1122
|
}
|
|
1123
1123
|
function Ei(e, t) {
|
|
1124
1124
|
var n = function(r) {
|
|
1125
1125
|
var i = fe(e) ? this : Re(e), a = arguments[0];
|
|
1126
1126
|
if (arguments.length === 1 && typeof a == "number")
|
|
1127
|
-
isNaN(Jt(a)) &&
|
|
1127
|
+
isNaN(Jt(a)) && w(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1128
1128
|
else {
|
|
1129
1129
|
for (a = 0; a < arguments.length; a++)
|
|
1130
1130
|
i.h[a] = arguments[a];
|
|
@@ -1145,15 +1145,15 @@ function Ii(e, t) {
|
|
|
1145
1145
|
return r = arguments.length ? ve.String(r) : "", fe(e) ? (this.data = r, this) : r;
|
|
1146
1146
|
};
|
|
1147
1147
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1148
|
-
|
|
1148
|
+
W(e, e.J, t[n], String.prototype[t[n]]);
|
|
1149
1149
|
n = function(r, i, a) {
|
|
1150
1150
|
i = e.R(i), a = e.R(a);
|
|
1151
1151
|
try {
|
|
1152
1152
|
return String(this).localeCompare(r, i, a);
|
|
1153
1153
|
} catch (s) {
|
|
1154
|
-
|
|
1154
|
+
w(e, e.D, "localeCompare: " + s.message);
|
|
1155
1155
|
}
|
|
1156
|
-
},
|
|
1156
|
+
}, W(e, e.J, "localeCompare", n), n = function(r, i, a) {
|
|
1157
1157
|
var s = String(this);
|
|
1158
1158
|
if (i = i ? Number(i) : void 0, H(e, r, e.I) && (r = r.data, We(e, r, a), e.REGEXP_MODE === 2)) {
|
|
1159
1159
|
if (le)
|
|
@@ -1238,34 +1238,34 @@ function Ai(e, t) {
|
|
|
1238
1238
|
try {
|
|
1239
1239
|
return Number(this).toExponential(r);
|
|
1240
1240
|
} catch (i) {
|
|
1241
|
-
|
|
1241
|
+
w(e, e.D, i.message);
|
|
1242
1242
|
}
|
|
1243
|
-
},
|
|
1243
|
+
}, W(e, e.aa, "toExponential", n), n = function(r) {
|
|
1244
1244
|
try {
|
|
1245
1245
|
return Number(this).toFixed(r);
|
|
1246
1246
|
} catch (i) {
|
|
1247
|
-
|
|
1247
|
+
w(e, e.D, i.message);
|
|
1248
1248
|
}
|
|
1249
|
-
},
|
|
1249
|
+
}, W(e, e.aa, "toFixed", n), n = function(r) {
|
|
1250
1250
|
try {
|
|
1251
1251
|
return Number(this).toPrecision(r);
|
|
1252
1252
|
} catch (i) {
|
|
1253
|
-
|
|
1253
|
+
w(e, e.D, i.message);
|
|
1254
1254
|
}
|
|
1255
|
-
},
|
|
1255
|
+
}, W(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1256
1256
|
try {
|
|
1257
1257
|
return Number(this).toString(r);
|
|
1258
1258
|
} catch (i) {
|
|
1259
|
-
|
|
1259
|
+
w(e, e.D, i.message);
|
|
1260
1260
|
}
|
|
1261
|
-
},
|
|
1261
|
+
}, W(e, e.aa, "toString", n), n = function(r, i) {
|
|
1262
1262
|
r = r ? e.R(r) : void 0, i = i ? e.R(i) : void 0;
|
|
1263
1263
|
try {
|
|
1264
1264
|
return Number(this).toLocaleString(r, i);
|
|
1265
1265
|
} catch (a) {
|
|
1266
|
-
|
|
1266
|
+
w(e, e.D, "toLocaleString: " + a.message);
|
|
1267
1267
|
}
|
|
1268
|
-
},
|
|
1268
|
+
}, W(e, e.aa, "toLocaleString", n);
|
|
1269
1269
|
}
|
|
1270
1270
|
function Oi(e, t) {
|
|
1271
1271
|
var n = function(i, a) {
|
|
@@ -1279,12 +1279,12 @@ function Oi(e, t) {
|
|
|
1279
1279
|
n = function(i) {
|
|
1280
1280
|
return function(a) {
|
|
1281
1281
|
var s = this.data;
|
|
1282
|
-
s instanceof Date ||
|
|
1282
|
+
s instanceof Date || w(e, e.j, i + " not called on a Date");
|
|
1283
1283
|
for (var u = [], d = 0; d < arguments.length; d++)
|
|
1284
1284
|
u[d] = e.R(arguments[d]);
|
|
1285
1285
|
return s[i].apply(s, u);
|
|
1286
1286
|
};
|
|
1287
|
-
}(t[r]),
|
|
1287
|
+
}(t[r]), W(e, e.$, t[r], n);
|
|
1288
1288
|
}
|
|
1289
1289
|
function ji(e, t) {
|
|
1290
1290
|
var n = function(r, i) {
|
|
@@ -1295,19 +1295,19 @@ function ji(e, t) {
|
|
|
1295
1295
|
return r;
|
|
1296
1296
|
a = e.s(e.Ma);
|
|
1297
1297
|
}
|
|
1298
|
-
r = r === void 0 ? "" : String(r), i = i ? String(i) : "", /^[gmi]*$/.test(i) ||
|
|
1298
|
+
r = r === void 0 ? "" : String(r), i = i ? String(i) : "", /^[gmi]*$/.test(i) || w(e, e.T, "Invalid regexp flag: " + i);
|
|
1299
1299
|
try {
|
|
1300
1300
|
var s = new ve.RegExp(r, i);
|
|
1301
1301
|
} catch (u) {
|
|
1302
|
-
|
|
1302
|
+
w(e, e.T, u.message);
|
|
1303
1303
|
}
|
|
1304
1304
|
return zt(e, a, s), a;
|
|
1305
1305
|
};
|
|
1306
1306
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, J), e.g(e.I.h.prototype, "ignoreCase", void 0, J), e.g(e.I.h.prototype, "multiline", void 0, J), e.g(e.I.h.prototype, "source", "(?:)", J), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, i) {
|
|
1307
1307
|
function a(k) {
|
|
1308
1308
|
if (k) {
|
|
1309
|
-
var
|
|
1310
|
-
return e.g(
|
|
1309
|
+
var b = se(e, k);
|
|
1310
|
+
return e.g(b, "index", k.index), e.g(b, "input", k.input), b;
|
|
1311
1311
|
}
|
|
1312
1312
|
return null;
|
|
1313
1313
|
}
|
|
@@ -1356,17 +1356,17 @@ function Ni(e, t) {
|
|
|
1356
1356
|
try {
|
|
1357
1357
|
var i = JSON.parse(String(r));
|
|
1358
1358
|
} catch (a) {
|
|
1359
|
-
|
|
1359
|
+
w(e, e.T, a.message);
|
|
1360
1360
|
}
|
|
1361
1361
|
return e.Ia(i);
|
|
1362
1362
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, i, a) {
|
|
1363
|
-
i && i.H === "Function" ?
|
|
1363
|
+
i && i.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = dr(e, i), i = i.filter(function(u) {
|
|
1364
1364
|
return typeof u == "string" || typeof u == "number";
|
|
1365
1365
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), r = e.R(r);
|
|
1366
1366
|
try {
|
|
1367
1367
|
var s = JSON.stringify(r, i, a);
|
|
1368
1368
|
} catch (u) {
|
|
1369
|
-
|
|
1369
|
+
w(e, e.j, u.message);
|
|
1370
1370
|
}
|
|
1371
1371
|
return s;
|
|
1372
1372
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1405,7 +1405,7 @@ function $t(e, t, n) {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
P.ha = function() {
|
|
1407
1407
|
var e = this.ha.Mb;
|
|
1408
|
-
return e || (e = new Blob([
|
|
1408
|
+
return e || (e = new Blob([bi.join(`
|
|
1409
1409
|
`)], {
|
|
1410
1410
|
type: "application/javascript"
|
|
1411
1411
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1417,7 +1417,7 @@ function $e(e, t, n, r, i) {
|
|
|
1417
1417
|
try {
|
|
1418
1418
|
return le.runInNewContext(t, n, a);
|
|
1419
1419
|
} catch {
|
|
1420
|
-
i(null),
|
|
1420
|
+
i(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1421
1421
|
}
|
|
1422
1422
|
return Oe;
|
|
1423
1423
|
}
|
|
@@ -1438,13 +1438,13 @@ function We(e, t, n) {
|
|
|
1438
1438
|
r = !!le;
|
|
1439
1439
|
} else
|
|
1440
1440
|
r = !1;
|
|
1441
|
-
r || (n(null),
|
|
1441
|
+
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
1442
1442
|
}
|
|
1443
1443
|
function He(e, t, n, r) {
|
|
1444
1444
|
return setTimeout(function() {
|
|
1445
1445
|
n.terminate(), r(null);
|
|
1446
1446
|
try {
|
|
1447
|
-
|
|
1447
|
+
w(e, e.D, "RegExp Timeout: " + t);
|
|
1448
1448
|
} catch {
|
|
1449
1449
|
}
|
|
1450
1450
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
@@ -1566,7 +1566,7 @@ function ce(e, t) {
|
|
|
1566
1566
|
P.G = function(e, t) {
|
|
1567
1567
|
if (this.P)
|
|
1568
1568
|
throw Error("Getter not supported in that context");
|
|
1569
|
-
if (t = String(t), e != null ||
|
|
1569
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof R))
|
|
1570
1570
|
throw TypeError("Expecting native value or pseudo object");
|
|
1571
1571
|
if (t === "length") {
|
|
1572
1572
|
if (H(this, e, this.J))
|
|
@@ -1600,15 +1600,15 @@ function ft(e, t, n) {
|
|
|
1600
1600
|
P.g = function(e, t, n, r) {
|
|
1601
1601
|
if (this.Ka)
|
|
1602
1602
|
throw Error("Setter not supported in that context");
|
|
1603
|
-
if (t = String(t), e != null ||
|
|
1603
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof R))
|
|
1604
1604
|
throw TypeError("Expecting native value or pseudo object");
|
|
1605
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1605
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1606
1606
|
var i = !this.o || Qt(this).S;
|
|
1607
1607
|
if (e instanceof R) {
|
|
1608
1608
|
if (H(this, e, this.J)) {
|
|
1609
1609
|
var a = Xe(t);
|
|
1610
1610
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1611
|
-
i &&
|
|
1611
|
+
i && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1612
1612
|
return;
|
|
1613
1613
|
}
|
|
1614
1614
|
}
|
|
@@ -1619,7 +1619,7 @@ P.g = function(e, t, n, r) {
|
|
|
1619
1619
|
return;
|
|
1620
1620
|
n = r.value;
|
|
1621
1621
|
}
|
|
1622
|
-
if (n = Jt(n), isNaN(n) &&
|
|
1622
|
+
if (n = Jt(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < a)
|
|
1623
1623
|
for (s in e.h) {
|
|
1624
1624
|
var s = Xe(s);
|
|
1625
1625
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1632,7 +1632,7 @@ P.g = function(e, t, n, r) {
|
|
|
1632
1632
|
try {
|
|
1633
1633
|
Object.defineProperty(e.h, t, i);
|
|
1634
1634
|
} catch {
|
|
1635
|
-
|
|
1635
|
+
w(this, this.j, "Cannot redefine property: " + t);
|
|
1636
1636
|
}
|
|
1637
1637
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1638
1638
|
} else {
|
|
@@ -1646,18 +1646,18 @@ P.g = function(e, t, n, r) {
|
|
|
1646
1646
|
if (r.Y && r.Y[t])
|
|
1647
1647
|
return this.Ka = !0, r.Y[t];
|
|
1648
1648
|
if (r.V && r.V[t])
|
|
1649
|
-
i &&
|
|
1649
|
+
i && w(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1650
1650
|
else
|
|
1651
1651
|
try {
|
|
1652
1652
|
e.h[t] = n;
|
|
1653
1653
|
} catch {
|
|
1654
|
-
i &&
|
|
1654
|
+
i && w(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
1657
1657
|
else
|
|
1658
|
-
i &&
|
|
1658
|
+
i && w(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1659
1659
|
} else
|
|
1660
|
-
i &&
|
|
1660
|
+
i && w(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1661
1661
|
};
|
|
1662
1662
|
P.g.ac = function() {
|
|
1663
1663
|
throw Error("Placeholder getter");
|
|
@@ -1665,7 +1665,7 @@ P.g.ac = function() {
|
|
|
1665
1665
|
P.g.bc = function() {
|
|
1666
1666
|
throw Error("Placeholder setter");
|
|
1667
1667
|
};
|
|
1668
|
-
function
|
|
1668
|
+
function W(e, t, n, r) {
|
|
1669
1669
|
e.g(t.h.prototype, n, e.i(r, !1), y);
|
|
1670
1670
|
}
|
|
1671
1671
|
function Ke(e, t, n, r) {
|
|
@@ -1699,7 +1699,7 @@ function tn(e, t) {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
if (n === e.N && ft(e, n.object, t))
|
|
1701
1701
|
return e.G(n.object, t);
|
|
1702
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
1702
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1703
1703
|
}
|
|
1704
1704
|
function hr(e, t, n) {
|
|
1705
1705
|
for (var r = Qt(e), i = r.S; r && r !== e.N; ) {
|
|
@@ -1707,7 +1707,7 @@ function hr(e, t, n) {
|
|
|
1707
1707
|
try {
|
|
1708
1708
|
r.object.h[t] = n;
|
|
1709
1709
|
} catch {
|
|
1710
|
-
i &&
|
|
1710
|
+
i && w(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1711
1711
|
}
|
|
1712
1712
|
return;
|
|
1713
1713
|
}
|
|
@@ -1715,7 +1715,7 @@ function hr(e, t, n) {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
if (r === e.N && (!i || ft(e, r.object, t)))
|
|
1717
1717
|
return e.g(r.object, t, n);
|
|
1718
|
-
|
|
1718
|
+
w(e, e.pb, t + " is not defined");
|
|
1719
1719
|
}
|
|
1720
1720
|
function Je(e, t, n) {
|
|
1721
1721
|
if (t.jb)
|
|
@@ -1775,7 +1775,7 @@ function nn(e, t) {
|
|
|
1775
1775
|
function rn(e, t, n) {
|
|
1776
1776
|
return t[0] === Pe ? hr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function w(e, t, n) {
|
|
1779
1779
|
throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), $t(e, t, n)), ze(e, 4, t), pr) : n === void 0 ? t : n;
|
|
1780
1780
|
}
|
|
1781
1781
|
function ze(e, t, n, r) {
|
|
@@ -1865,7 +1865,7 @@ function Xn(e, t, n) {
|
|
|
1865
1865
|
try {
|
|
1866
1866
|
var d = je(String(a), "taskCode" + e.ic++);
|
|
1867
1867
|
} catch (E) {
|
|
1868
|
-
|
|
1868
|
+
w(e, e.T, "Invalid code: " + E.message);
|
|
1869
1869
|
}
|
|
1870
1870
|
s.type = "EvalProgram_", s.body = d.body, r = r.node.arguments[0], ut(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, i.length = 0;
|
|
1871
1871
|
}
|
|
@@ -1888,14 +1888,14 @@ function qe(e, t, n) {
|
|
|
1888
1888
|
throw Error("Unexpected call to createGetter");
|
|
1889
1889
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
1890
1890
|
var r = e.ya();
|
|
1891
|
-
return r.type = "CallExpression", e = new
|
|
1891
|
+
return r.type = "CallExpression", e = new v(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1892
1892
|
}
|
|
1893
1893
|
function on(e, t, n, r) {
|
|
1894
1894
|
if (!e.Ka)
|
|
1895
1895
|
throw Error("Unexpected call to createSetter");
|
|
1896
1896
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1897
1897
|
var i = e.ya();
|
|
1898
|
-
return i.type = "CallExpression", e = new
|
|
1898
|
+
return i.type = "CallExpression", e = new v(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1899
1899
|
}
|
|
1900
1900
|
function Vt(e, t) {
|
|
1901
1901
|
return t == null ? e.Na : t instanceof R ? t : (e = e.s(ce(e, t)), e.data = t, e);
|
|
@@ -1909,7 +1909,7 @@ P.Yb = function() {
|
|
|
1909
1909
|
P.ec = function(e) {
|
|
1910
1910
|
this.o = e;
|
|
1911
1911
|
};
|
|
1912
|
-
function
|
|
1912
|
+
function v(e, t) {
|
|
1913
1913
|
this.node = e, this.scope = t;
|
|
1914
1914
|
}
|
|
1915
1915
|
function gr(e, t, n) {
|
|
@@ -1982,16 +1982,16 @@ h.prototype.stepArrayExpression = function(e, t, n) {
|
|
|
1982
1982
|
var r = t.A || 0;
|
|
1983
1983
|
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Re(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
1984
1984
|
if (n[r])
|
|
1985
|
-
return t.A = r, new
|
|
1985
|
+
return t.A = r, new v(n[r], t.scope);
|
|
1986
1986
|
r++;
|
|
1987
1987
|
}
|
|
1988
1988
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1989
1989
|
};
|
|
1990
1990
|
h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
1991
1991
|
if (!t.ja)
|
|
1992
|
-
return t.ja = !0, t = new
|
|
1992
|
+
return t.ja = !0, t = new v(n.left, t.scope), t.sa = !0, t;
|
|
1993
1993
|
if (!t.Da)
|
|
1994
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = nn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, qe(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new
|
|
1994
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = nn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, qe(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new v(n.right, t.scope));
|
|
1995
1995
|
if (t.ta)
|
|
1996
1996
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1997
1997
|
else {
|
|
@@ -2043,9 +2043,9 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2043
2043
|
};
|
|
2044
2044
|
h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
2045
2045
|
if (!t.ja)
|
|
2046
|
-
return t.ja = !0, new
|
|
2046
|
+
return t.ja = !0, new v(n.left, t.scope);
|
|
2047
2047
|
if (!t.Da)
|
|
2048
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2048
|
+
return t.Da = !0, t.ma = t.value, new v(n.right, t.scope);
|
|
2049
2049
|
e.pop();
|
|
2050
2050
|
var r = t.ma;
|
|
2051
2051
|
switch (t = t.value, n.operator) {
|
|
@@ -2107,10 +2107,10 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2107
2107
|
n = r >>> t;
|
|
2108
2108
|
break;
|
|
2109
2109
|
case "in":
|
|
2110
|
-
t instanceof R ||
|
|
2110
|
+
t instanceof R || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = ft(this, t, r);
|
|
2111
2111
|
break;
|
|
2112
2112
|
case "instanceof":
|
|
2113
|
-
H(this, t, this.O) ||
|
|
2113
|
+
H(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof R ? H(this, r, t) : !1;
|
|
2114
2114
|
break;
|
|
2115
2115
|
default:
|
|
2116
2116
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2120,7 +2120,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2120
2120
|
h.prototype.stepBlockStatement = function(e, t, n) {
|
|
2121
2121
|
var r = t.A || 0;
|
|
2122
2122
|
if (n = n.body[r])
|
|
2123
|
-
return t.A = r + 1, new
|
|
2123
|
+
return t.A = r + 1, new v(n, t.scope);
|
|
2124
2124
|
e.pop();
|
|
2125
2125
|
};
|
|
2126
2126
|
h.prototype.stepBreakStatement = function(e, t, n) {
|
|
@@ -2130,7 +2130,7 @@ h.prototype.Hb = 0;
|
|
|
2130
2130
|
h.prototype.stepCallExpression = function(e, t, n) {
|
|
2131
2131
|
if (!t.ia) {
|
|
2132
2132
|
t.ia = 1;
|
|
2133
|
-
var r = new
|
|
2133
|
+
var r = new v(n.callee, t.scope);
|
|
2134
2134
|
return r.sa = !0, r;
|
|
2135
2135
|
}
|
|
2136
2136
|
if (t.ia === 1) {
|
|
@@ -2145,9 +2145,9 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2145
2145
|
}
|
|
2146
2146
|
if (i = t.U, !t.Qa) {
|
|
2147
2147
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2148
|
-
return new
|
|
2148
|
+
return new v(n.arguments[t.A++], t.scope);
|
|
2149
2149
|
if (n.type === "NewExpression") {
|
|
2150
|
-
if (i instanceof R && !i.Ab ||
|
|
2150
|
+
if (i instanceof R && !i.Ab || w(this, this.j, Y(this, n.callee) + " is not a constructor"), i === this.qa)
|
|
2151
2151
|
t.B = Re(this);
|
|
2152
2152
|
else {
|
|
2153
2153
|
var a = i.h.prototype;
|
|
@@ -2160,12 +2160,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2160
2160
|
if (t.eb)
|
|
2161
2161
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2162
2162
|
else {
|
|
2163
|
-
if (t.eb = !0, i instanceof R ||
|
|
2163
|
+
if (t.eb = !0, i instanceof R || w(this, this.j, Y(this, n.callee) + " is not a function"), e = i.node) {
|
|
2164
2164
|
for (n = Wt(this, e.body, i.Va), r = Re(this), i = 0; i < t.F.length; i++)
|
|
2165
2165
|
this.g(r, i, t.F[i]);
|
|
2166
2166
|
for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
|
|
2167
2167
|
this.g(n.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2168
|
-
return n.S || (t.B = Vt(this, t.B)), this.g(n.object, "this", t.B, Yt), t.value = void 0, new
|
|
2168
|
+
return n.S || (t.B = Vt(this, t.B)), this.g(n.object, "this", t.B, Yt), t.value = void 0, new v(e.body, n);
|
|
2169
2169
|
}
|
|
2170
2170
|
if (i.eval)
|
|
2171
2171
|
if (i = t.F[0], typeof i != "string")
|
|
@@ -2174,9 +2174,9 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2174
2174
|
try {
|
|
2175
2175
|
r = je(String(i), "eval" + this.Hb++);
|
|
2176
2176
|
} catch (u) {
|
|
2177
|
-
|
|
2177
|
+
w(this, this.T, "Invalid code: " + u.message);
|
|
2178
2178
|
}
|
|
2179
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, ut(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Wt(this, r, n) : Je(this, r, n), this.value = void 0, new
|
|
2179
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, ut(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Wt(this, r, n) : Je(this, r, n), this.value = void 0, new v(i, n);
|
|
2180
2180
|
}
|
|
2181
2181
|
else if (i.Ta)
|
|
2182
2182
|
t.scope.S || (t.B = Vt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
@@ -2186,18 +2186,18 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2186
2186
|
t.value = u, s.za = !1;
|
|
2187
2187
|
}), this.za = !0, t.scope.S || (t.B = Vt(this, t.B)), i.Za.apply(t.B, r);
|
|
2188
2188
|
} else
|
|
2189
|
-
|
|
2189
|
+
w(this, this.j, Y(this, n.callee) + " is not callable");
|
|
2190
2190
|
}
|
|
2191
2191
|
};
|
|
2192
2192
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
2193
2193
|
var r = t.na || 0;
|
|
2194
2194
|
if (r === 0)
|
|
2195
|
-
return t.na = 1, new
|
|
2195
|
+
return t.na = 1, new v(n.test, t.scope);
|
|
2196
2196
|
if (r === 1) {
|
|
2197
2197
|
if (t.na = 2, (r = !!t.value) && n.da)
|
|
2198
|
-
return new
|
|
2198
|
+
return new v(n.da, t.scope);
|
|
2199
2199
|
if (!r && n.alternate)
|
|
2200
|
-
return new
|
|
2200
|
+
return new v(n.alternate, t.scope);
|
|
2201
2201
|
this.value = void 0;
|
|
2202
2202
|
}
|
|
2203
2203
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
@@ -2210,11 +2210,11 @@ h.prototype.stepDebuggerStatement = function(e) {
|
|
|
2210
2210
|
};
|
|
2211
2211
|
h.prototype.stepDoWhileStatement = function(e, t, n) {
|
|
2212
2212
|
if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2213
|
-
return t.ga = !0, new
|
|
2213
|
+
return t.ga = !0, new v(n.test, t.scope);
|
|
2214
2214
|
if (!t.value)
|
|
2215
2215
|
e.pop();
|
|
2216
2216
|
else if (n.body)
|
|
2217
|
-
return t.ga = !1, t.W = !0, new
|
|
2217
|
+
return t.ga = !1, t.W = !0, new v(n.body, t.scope);
|
|
2218
2218
|
};
|
|
2219
2219
|
h.prototype.stepEmptyStatement = function(e) {
|
|
2220
2220
|
e.pop();
|
|
@@ -2222,19 +2222,19 @@ h.prototype.stepEmptyStatement = function(e) {
|
|
|
2222
2222
|
h.prototype.stepEvalProgram_ = function(e, t, n) {
|
|
2223
2223
|
var r = t.A || 0;
|
|
2224
2224
|
if (n = n.body[r])
|
|
2225
|
-
return t.A = r + 1, new
|
|
2225
|
+
return t.A = r + 1, new v(n, t.scope);
|
|
2226
2226
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2227
2227
|
};
|
|
2228
2228
|
h.prototype.stepExpressionStatement = function(e, t, n) {
|
|
2229
2229
|
if (!t.ka)
|
|
2230
|
-
return this.value = void 0, t.ka = !0, new
|
|
2230
|
+
return this.value = void 0, t.ka = !0, new v(n.la, t.scope);
|
|
2231
2231
|
e.pop(), this.value = t.value;
|
|
2232
2232
|
};
|
|
2233
2233
|
h.prototype.stepForInStatement = function(e, t, n) {
|
|
2234
2234
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2235
|
-
return t.scope.S &&
|
|
2235
|
+
return t.scope.S && w(this, this.T, "for-in loop variable declaration may not have an initializer"), new v(n.left, t.scope);
|
|
2236
2236
|
if (!t.Ca)
|
|
2237
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2237
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new v(n.right, t.scope);
|
|
2238
2238
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2239
2239
|
e:
|
|
2240
2240
|
for (; ; ) {
|
|
@@ -2264,31 +2264,31 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2264
2264
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2265
2265
|
t.pa = [Pe, e.fa[0].id.name];
|
|
2266
2266
|
else
|
|
2267
|
-
return t.pa = null, t = new
|
|
2267
|
+
return t.pa = null, t = new v(e, t.scope), t.sa = !0, t;
|
|
2268
2268
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = rn(this, t.pa, e)))
|
|
2269
2269
|
return on(this, r, t.pa, e);
|
|
2270
2270
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2271
|
-
return new
|
|
2271
|
+
return new v(n.body, t.scope);
|
|
2272
2272
|
};
|
|
2273
2273
|
h.prototype.stepForStatement = function(e, t, n) {
|
|
2274
2274
|
switch (t.na) {
|
|
2275
2275
|
default:
|
|
2276
2276
|
if (t.na = 1, n.ua)
|
|
2277
|
-
return new
|
|
2277
|
+
return new v(n.ua, t.scope);
|
|
2278
2278
|
break;
|
|
2279
2279
|
case 1:
|
|
2280
2280
|
if (t.na = 2, n.test)
|
|
2281
|
-
return new
|
|
2281
|
+
return new v(n.test, t.scope);
|
|
2282
2282
|
break;
|
|
2283
2283
|
case 2:
|
|
2284
2284
|
if (t.na = 3, n.test && !t.value)
|
|
2285
2285
|
e.pop();
|
|
2286
2286
|
else
|
|
2287
|
-
return t.W = !0, new
|
|
2287
|
+
return t.W = !0, new v(n.body, t.scope);
|
|
2288
2288
|
break;
|
|
2289
2289
|
case 3:
|
|
2290
2290
|
if (t.na = 1, n.update)
|
|
2291
|
-
return new
|
|
2291
|
+
return new v(n.update, t.scope);
|
|
2292
2292
|
}
|
|
2293
2293
|
};
|
|
2294
2294
|
h.prototype.stepFunctionDeclaration = function(e) {
|
|
@@ -2308,7 +2308,7 @@ h.prototype.stepIdentifier = function(e, t, n) {
|
|
|
2308
2308
|
};
|
|
2309
2309
|
h.prototype.stepIfStatement = h.prototype.stepConditionalExpression;
|
|
2310
2310
|
h.prototype.stepLabeledStatement = function(e, t, n) {
|
|
2311
|
-
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new
|
|
2311
|
+
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new v(n.body, t.scope), t.labels = e, t;
|
|
2312
2312
|
};
|
|
2313
2313
|
h.prototype.stepLiteral = function(e, t, n) {
|
|
2314
2314
|
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), zt(this, n, t), t = n), e[e.length - 1].value = t;
|
|
@@ -2317,22 +2317,22 @@ h.prototype.stepLogicalExpression = function(e, t, n) {
|
|
|
2317
2317
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
2318
2318
|
throw SyntaxError("Unknown logical operator: " + n.operator);
|
|
2319
2319
|
if (!t.ja)
|
|
2320
|
-
return t.ja = !0, new
|
|
2320
|
+
return t.ja = !0, new v(n.left, t.scope);
|
|
2321
2321
|
if (t.Da)
|
|
2322
2322
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2323
2323
|
else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
|
|
2324
2324
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2325
2325
|
else
|
|
2326
|
-
return t.Da = !0, new
|
|
2326
|
+
return t.Da = !0, new v(n.right, t.scope);
|
|
2327
2327
|
};
|
|
2328
2328
|
h.prototype.stepMemberExpression = function(e, t, n) {
|
|
2329
2329
|
if (!t.Ca)
|
|
2330
|
-
return t.Ca = !0, new
|
|
2330
|
+
return t.Ca = !0, new v(n.object, t.scope);
|
|
2331
2331
|
if (n.bb)
|
|
2332
2332
|
if (t.Vb)
|
|
2333
2333
|
n = t.value;
|
|
2334
2334
|
else
|
|
2335
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2335
|
+
return t.u = t.value, t.Vb = !0, new v(n.Wa, t.scope);
|
|
2336
2336
|
else
|
|
2337
2337
|
t.u = t.value, n = n.Wa.name;
|
|
2338
2338
|
if (e.pop(), t.sa)
|
|
@@ -2359,7 +2359,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2359
2359
|
a = s.value;
|
|
2360
2360
|
else
|
|
2361
2361
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2362
|
-
return t.Pa = a, new
|
|
2362
|
+
return t.Pa = a, new v(i.value, t.scope);
|
|
2363
2363
|
}
|
|
2364
2364
|
for (s in t.Ja)
|
|
2365
2365
|
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, Ye, {
|
|
@@ -2372,35 +2372,35 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2372
2372
|
};
|
|
2373
2373
|
h.prototype.stepProgram = function(e, t, n) {
|
|
2374
2374
|
if (e = n.body.shift())
|
|
2375
|
-
return t.done = !1, new
|
|
2375
|
+
return t.done = !1, new v(e, t.scope);
|
|
2376
2376
|
t.done = !0;
|
|
2377
2377
|
};
|
|
2378
2378
|
h.prototype.stepReturnStatement = function(e, t, n) {
|
|
2379
2379
|
if (n.K && !t.ka)
|
|
2380
|
-
return t.ka = !0, new
|
|
2380
|
+
return t.ka = !0, new v(n.K, t.scope);
|
|
2381
2381
|
ze(this, 3, t.value);
|
|
2382
2382
|
};
|
|
2383
2383
|
h.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2384
2384
|
var r = t.A || 0;
|
|
2385
2385
|
if (n = n.xb[r])
|
|
2386
|
-
return t.A = r + 1, new
|
|
2386
|
+
return t.A = r + 1, new v(n, t.scope);
|
|
2387
2387
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2388
2388
|
};
|
|
2389
2389
|
h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
2390
2390
|
if (!t.ga)
|
|
2391
|
-
return t.ga = 1, new
|
|
2391
|
+
return t.ga = 1, new v(n.Qb, t.scope);
|
|
2392
2392
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2393
2393
|
var r = t.gb || 0, i = n.tb[r];
|
|
2394
2394
|
if (t.Ha || !i || i.test)
|
|
2395
2395
|
if (i || t.Ha || t.cb === -1)
|
|
2396
2396
|
if (i) {
|
|
2397
2397
|
if (!t.Ha && !t.Fb && i.test)
|
|
2398
|
-
return t.Fb = !0, new
|
|
2398
|
+
return t.Fb = !0, new v(i.test, t.scope);
|
|
2399
2399
|
if (t.Ha || t.value === t.hc) {
|
|
2400
2400
|
t.Ha = !0;
|
|
2401
2401
|
var a = t.A || 0;
|
|
2402
2402
|
if (i.da[a])
|
|
2403
|
-
return t.Zb = !0, t.A = a + 1, new
|
|
2403
|
+
return t.Zb = !0, t.A = a + 1, new v(i.da[a], t.scope);
|
|
2404
2404
|
}
|
|
2405
2405
|
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2406
2406
|
} else {
|
|
@@ -2418,22 +2418,22 @@ h.prototype.stepThisExpression = function(e) {
|
|
|
2418
2418
|
};
|
|
2419
2419
|
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2420
2420
|
if (t.ka)
|
|
2421
|
-
|
|
2421
|
+
w(this, t.value);
|
|
2422
2422
|
else
|
|
2423
|
-
return t.ka = !0, new
|
|
2423
|
+
return t.ka = !0, new v(n.K, t.scope);
|
|
2424
2424
|
};
|
|
2425
2425
|
h.prototype.stepTryStatement = function(e, t, n) {
|
|
2426
2426
|
if (!t.Rb)
|
|
2427
|
-
return t.Rb = !0, new
|
|
2427
|
+
return t.Rb = !0, new v(n.block, t.scope);
|
|
2428
2428
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2429
|
-
return t.Tb = !0, e = en(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new
|
|
2429
|
+
return t.Tb = !0, e = en(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new v(n.Ea.body, e);
|
|
2430
2430
|
if (!t.Sb && n.fb)
|
|
2431
|
-
return t.Sb = !0, new
|
|
2431
|
+
return t.Sb = !0, new v(n.fb, t.scope);
|
|
2432
2432
|
e.pop(), t.ea && ze(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2433
2433
|
};
|
|
2434
2434
|
h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2435
2435
|
if (!t.ka)
|
|
2436
|
-
return t.ka = !0, e = new
|
|
2436
|
+
return t.ka = !0, e = new v(n.K, t.scope), e.sa = n.operator === "delete", e;
|
|
2437
2437
|
e.pop();
|
|
2438
2438
|
var r = t.value;
|
|
2439
2439
|
switch (n.operator) {
|
|
@@ -2456,7 +2456,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2456
2456
|
try {
|
|
2457
2457
|
delete i.h[r];
|
|
2458
2458
|
} catch {
|
|
2459
|
-
t.scope.S ?
|
|
2459
|
+
t.scope.S ? w(this, this.j, "Cannot delete property '" + r + "' of '" + i + "'") : n = !1;
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
2462
2462
|
r = n;
|
|
@@ -2474,7 +2474,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2474
2474
|
};
|
|
2475
2475
|
h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
2476
2476
|
if (!t.ja)
|
|
2477
|
-
return t.ja = !0, e = new
|
|
2477
|
+
return t.ja = !0, e = new v(n.K, t.scope), e.sa = !0, e;
|
|
2478
2478
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2479
2479
|
var r = nn(this, t.Ga);
|
|
2480
2480
|
if (t.ma = r, this.P)
|
|
@@ -2499,13 +2499,13 @@ h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2499
2499
|
var r = t.A || 0, i = n[r];
|
|
2500
2500
|
for (t.Bb && i && (hr(this, i.id.name, t.value), t.Bb = !1, i = n[++r]); i; ) {
|
|
2501
2501
|
if (i.ua)
|
|
2502
|
-
return t.A = r, t.Bb = !0, t.Pa = i.id.name, new
|
|
2502
|
+
return t.A = r, t.Bb = !0, t.Pa = i.id.name, new v(i.ua, t.scope);
|
|
2503
2503
|
i = n[++r];
|
|
2504
2504
|
}
|
|
2505
2505
|
e.pop();
|
|
2506
2506
|
};
|
|
2507
2507
|
h.prototype.stepWithStatement = function(e, t, n) {
|
|
2508
|
-
return t.Ca ? (e.pop(), e = en(this, t.scope, t.value), new
|
|
2508
|
+
return t.Ca ? (e.pop(), e = en(this, t.scope, t.value), new v(n.body, e)) : (t.Ca = !0, new v(n.object, t.scope));
|
|
2509
2509
|
};
|
|
2510
2510
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2511
2511
|
ve.Interpreter = h;
|
|
@@ -2555,32 +2555,32 @@ const Bi = (e) => e.split(`
|
|
|
2555
2555
|
event: n,
|
|
2556
2556
|
state: u
|
|
2557
2557
|
}), E = d.map(([S]) => {
|
|
2558
|
-
const
|
|
2559
|
-
return `var ${S} = ${
|
|
2558
|
+
const x = Jn(S);
|
|
2559
|
+
return `var ${S} = ${x} === undefined ? undefined : JSON.parse(${x});`;
|
|
2560
2560
|
}).join(`
|
|
2561
2561
|
`), k = Bi(s);
|
|
2562
2562
|
if (k === "") {
|
|
2563
2563
|
q.warn("Skipping evaluation of empty code block.");
|
|
2564
2564
|
return;
|
|
2565
2565
|
}
|
|
2566
|
-
const
|
|
2566
|
+
const b = `
|
|
2567
2567
|
function theFunction() {
|
|
2568
2568
|
${E}
|
|
2569
2569
|
|
|
2570
2570
|
${k}
|
|
2571
2571
|
}
|
|
2572
2572
|
theFunction();
|
|
2573
|
-
`, M = (S,
|
|
2574
|
-
const N = fr(u, S,
|
|
2573
|
+
`, M = (S, x) => {
|
|
2574
|
+
const N = fr(u, S, x);
|
|
2575
2575
|
a == null || a(N);
|
|
2576
|
-
}, O = function(S,
|
|
2577
|
-
d.forEach(([N,
|
|
2578
|
-
const m = JSON.stringify(
|
|
2579
|
-
S.setProperty(
|
|
2580
|
-
}), S.setProperty(
|
|
2576
|
+
}, O = function(S, x) {
|
|
2577
|
+
d.forEach(([N, F]) => {
|
|
2578
|
+
const m = JSON.stringify(F);
|
|
2579
|
+
S.setProperty(x, Jn(N), m);
|
|
2580
|
+
}), S.setProperty(x, "setRootState", S.createNativeFunction(M));
|
|
2581
2581
|
};
|
|
2582
2582
|
try {
|
|
2583
|
-
const S = new h(
|
|
2583
|
+
const S = new h(b, O);
|
|
2584
2584
|
return S.run(), S.pseudoToNative(S.value);
|
|
2585
2585
|
} catch (S) {
|
|
2586
2586
|
q.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
@@ -2798,7 +2798,7 @@ function sn(e) {
|
|
|
2798
2798
|
});
|
|
2799
2799
|
return pe(i.hide) ? !i.hide : pe(i.show) ? i.show : !0;
|
|
2800
2800
|
}, n = function() {
|
|
2801
|
-
var
|
|
2801
|
+
var x;
|
|
2802
2802
|
const i = ct({
|
|
2803
2803
|
block: e.block,
|
|
2804
2804
|
localState: e.context.localState,
|
|
@@ -2807,22 +2807,22 @@ function sn(e) {
|
|
|
2807
2807
|
context: e.context.context,
|
|
2808
2808
|
shouldEvaluateBindings: !0
|
|
2809
2809
|
}), a = i.responsiveStyles, s = e.context.content, u = vr(
|
|
2810
|
-
((
|
|
2811
|
-
), d = a == null ? void 0 : a.large, E = a == null ? void 0 : a.medium, k = a == null ? void 0 : a.small,
|
|
2812
|
-
if (!
|
|
2810
|
+
((x = s == null ? void 0 : s.meta) == null ? void 0 : x.breakpoints) || {}
|
|
2811
|
+
), d = a == null ? void 0 : a.large, E = a == null ? void 0 : a.medium, k = a == null ? void 0 : a.small, b = i.id;
|
|
2812
|
+
if (!b)
|
|
2813
2813
|
return "";
|
|
2814
2814
|
const M = d ? Dt({
|
|
2815
|
-
className:
|
|
2815
|
+
className: b,
|
|
2816
2816
|
styles: d
|
|
2817
2817
|
}) : "", O = E ? Dt({
|
|
2818
|
-
className:
|
|
2818
|
+
className: b,
|
|
2819
2819
|
styles: E,
|
|
2820
2820
|
mediaQuery: zn(
|
|
2821
2821
|
"medium",
|
|
2822
2822
|
u
|
|
2823
2823
|
)
|
|
2824
2824
|
}) : "", S = k ? Dt({
|
|
2825
|
-
className:
|
|
2825
|
+
className: b,
|
|
2826
2826
|
styles: k,
|
|
2827
2827
|
mediaQuery: zn(
|
|
2828
2828
|
"small",
|
|
@@ -2831,7 +2831,7 @@ function sn(e) {
|
|
|
2831
2831
|
}) : "";
|
|
2832
2832
|
return [M, O, S].join(" ");
|
|
2833
2833
|
};
|
|
2834
|
-
return /* @__PURE__ */ C(
|
|
2834
|
+
return /* @__PURE__ */ C(D, { children: n() && t() ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(dt, { styles: n() }) }) : null });
|
|
2835
2835
|
}
|
|
2836
2836
|
function Ki(e) {
|
|
2837
2837
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -2929,7 +2929,7 @@ const Zi = ({
|
|
|
2929
2929
|
function qn(e) {
|
|
2930
2930
|
var n, r;
|
|
2931
2931
|
const t = e.isInteractive ? ti : e.componentRef;
|
|
2932
|
-
return /* @__PURE__ */ C(
|
|
2932
|
+
return /* @__PURE__ */ C(D, { children: e.componentRef ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ ue(
|
|
2933
2933
|
t,
|
|
2934
2934
|
{
|
|
2935
2935
|
...Zi({
|
|
@@ -2975,7 +2975,7 @@ function Qi(e) {
|
|
|
2975
2975
|
);
|
|
2976
2976
|
}
|
|
2977
2977
|
function ht(e) {
|
|
2978
|
-
var E, k,
|
|
2978
|
+
var E, k, b, M;
|
|
2979
2979
|
const t = function() {
|
|
2980
2980
|
return Li({
|
|
2981
2981
|
block: e.block,
|
|
@@ -3000,31 +3000,34 @@ function ht(e) {
|
|
|
3000
3000
|
}, i = function() {
|
|
3001
3001
|
return e.block.tagName || "div";
|
|
3002
3002
|
}, a = function() {
|
|
3003
|
-
var
|
|
3004
|
-
|
|
3003
|
+
var N, F;
|
|
3004
|
+
if ((N = e.block.repeat) != null && N.collection)
|
|
3005
|
+
return !!((F = n()) != null && F.length);
|
|
3006
|
+
const S = "hide" in r() ? r().hide : !1;
|
|
3007
|
+
return ("show" in r() ? r().show : !0) && !S;
|
|
3005
3008
|
}, s = function() {
|
|
3006
|
-
var
|
|
3007
|
-
return !((
|
|
3009
|
+
var x;
|
|
3010
|
+
return !((x = t()) != null && x.component) && !n() ? r().children ?? [] : [];
|
|
3008
3011
|
}, u = function() {
|
|
3009
|
-
var S,
|
|
3012
|
+
var S, x, N, F, m;
|
|
3010
3013
|
return {
|
|
3011
3014
|
blockChildren: r().children ?? [],
|
|
3012
3015
|
componentRef: (S = t()) == null ? void 0 : S.component,
|
|
3013
3016
|
componentOptions: {
|
|
3014
3017
|
...pi(r()),
|
|
3015
3018
|
builderContext: e.context,
|
|
3016
|
-
...((
|
|
3019
|
+
...((x = t()) == null ? void 0 : x.name) === "Symbol" || ((N = t()) == null ? void 0 : N.name) === "Columns" ? {
|
|
3017
3020
|
builderComponents: e.registeredComponents
|
|
3018
3021
|
} : {}
|
|
3019
3022
|
},
|
|
3020
3023
|
context: d,
|
|
3021
3024
|
registeredComponents: e.registeredComponents,
|
|
3022
3025
|
builderBlock: r(),
|
|
3023
|
-
includeBlockProps: ((
|
|
3026
|
+
includeBlockProps: ((F = t()) == null ? void 0 : F.noWrap) === !0,
|
|
3024
3027
|
isInteractive: !((m = t()) != null && m.isRSC)
|
|
3025
3028
|
};
|
|
3026
3029
|
}, d = e.context;
|
|
3027
|
-
return /* @__PURE__ */ C(
|
|
3030
|
+
return /* @__PURE__ */ C(D, { children: a() ? /* @__PURE__ */ C(D, { children: (E = t()) != null && E.noWrap ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(
|
|
3028
3031
|
qn,
|
|
3029
3032
|
{
|
|
3030
3033
|
componentRef: u().componentRef,
|
|
@@ -3036,8 +3039,8 @@ function ht(e) {
|
|
|
3036
3039
|
includeBlockProps: u().includeBlockProps,
|
|
3037
3040
|
isInteractive: u().isInteractive
|
|
3038
3041
|
}
|
|
3039
|
-
) }) : /* @__PURE__ */ ue(
|
|
3040
|
-
_t(i()) ? /* @__PURE__ */ C(
|
|
3042
|
+
) }) : /* @__PURE__ */ ue(D, { children: [
|
|
3043
|
+
_t(i()) ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(
|
|
3041
3044
|
Wn,
|
|
3042
3045
|
{
|
|
3043
3046
|
Wrapper: i(),
|
|
@@ -3046,7 +3049,7 @@ function ht(e) {
|
|
|
3046
3049
|
hasChildren: !1
|
|
3047
3050
|
}
|
|
3048
3051
|
) }) : null,
|
|
3049
|
-
!_t(i()) && n() ? /* @__PURE__ */ C(
|
|
3052
|
+
!_t(i()) && n() ? /* @__PURE__ */ C(D, { children: (k = n()) == null ? void 0 : k.map((O, S) => /* @__PURE__ */ C(
|
|
3050
3053
|
Qi,
|
|
3051
3054
|
{
|
|
3052
3055
|
repeatContext: O.context,
|
|
@@ -3055,7 +3058,7 @@ function ht(e) {
|
|
|
3055
3058
|
},
|
|
3056
3059
|
S
|
|
3057
3060
|
)) }) : null,
|
|
3058
|
-
!_t(i()) && !n() ? /* @__PURE__ */ C(
|
|
3061
|
+
!_t(i()) && !n() ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ ue(
|
|
3059
3062
|
Wn,
|
|
3060
3063
|
{
|
|
3061
3064
|
Wrapper: i(),
|
|
@@ -3076,7 +3079,7 @@ function ht(e) {
|
|
|
3076
3079
|
isInteractive: u().isInteractive
|
|
3077
3080
|
}
|
|
3078
3081
|
),
|
|
3079
|
-
(
|
|
3082
|
+
(b = s()) == null ? void 0 : b.map((O) => /* @__PURE__ */ C(
|
|
3080
3083
|
ht,
|
|
3081
3084
|
{
|
|
3082
3085
|
block: O,
|
|
@@ -3108,7 +3111,7 @@ function ln(e) {
|
|
|
3108
3111
|
path: e.path,
|
|
3109
3112
|
styleProp: e.styleProp,
|
|
3110
3113
|
children: [
|
|
3111
|
-
e.blocks ? /* @__PURE__ */ C(
|
|
3114
|
+
e.blocks ? /* @__PURE__ */ C(D, { children: (t = e.blocks) == null ? void 0 : t.map((r) => /* @__PURE__ */ C(
|
|
3112
3115
|
ht,
|
|
3113
3116
|
{
|
|
3114
3117
|
block: r,
|
|
@@ -3117,7 +3120,7 @@ function ln(e) {
|
|
|
3117
3120
|
},
|
|
3118
3121
|
"render-block-" + r.id
|
|
3119
3122
|
)) }) : null,
|
|
3120
|
-
e.blocks ? /* @__PURE__ */ C(
|
|
3123
|
+
e.blocks ? /* @__PURE__ */ C(D, { children: (n = e.blocks) == null ? void 0 : n.map((r) => /* @__PURE__ */ C(
|
|
3121
3124
|
sn,
|
|
3122
3125
|
{
|
|
3123
3126
|
block: r,
|
|
@@ -3131,22 +3134,22 @@ function ln(e) {
|
|
|
3131
3134
|
}
|
|
3132
3135
|
function eo(e) {
|
|
3133
3136
|
var O;
|
|
3134
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(
|
|
3137
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(x) {
|
|
3135
3138
|
var N;
|
|
3136
|
-
return ((N = n[
|
|
3137
|
-
}, a = function(
|
|
3139
|
+
return ((N = n[x]) == null ? void 0 : N.width) || 100 / n.length;
|
|
3140
|
+
}, a = function(x) {
|
|
3138
3141
|
const N = t * (n.length - 1) / n.length;
|
|
3139
|
-
return `calc(${i(
|
|
3142
|
+
return `calc(${i(x)}% - ${N}px)`;
|
|
3140
3143
|
}, s = function({
|
|
3141
|
-
stackedStyle:
|
|
3144
|
+
stackedStyle: x,
|
|
3142
3145
|
desktopStyle: N
|
|
3143
3146
|
}) {
|
|
3144
|
-
return r === "tablet" ?
|
|
3147
|
+
return r === "tablet" ? x : N;
|
|
3145
3148
|
}, u = function({
|
|
3146
|
-
stackedStyle:
|
|
3149
|
+
stackedStyle: x,
|
|
3147
3150
|
desktopStyle: N
|
|
3148
3151
|
}) {
|
|
3149
|
-
return r === "never" ? N :
|
|
3152
|
+
return r === "never" ? N : x;
|
|
3150
3153
|
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", E = function() {
|
|
3151
3154
|
return {
|
|
3152
3155
|
"--flex-dir": d,
|
|
@@ -3155,14 +3158,14 @@ function eo(e) {
|
|
|
3155
3158
|
desktopStyle: "row"
|
|
3156
3159
|
})
|
|
3157
3160
|
};
|
|
3158
|
-
}, k = function(
|
|
3159
|
-
const N =
|
|
3161
|
+
}, k = function(x) {
|
|
3162
|
+
const N = x === 0 ? 0 : t, F = a(x), m = `${N}px`, de = "100%", he = 0;
|
|
3160
3163
|
return {
|
|
3161
|
-
width:
|
|
3164
|
+
width: F,
|
|
3162
3165
|
["marginLeft"]: m,
|
|
3163
3166
|
"--column-width-mobile": u({
|
|
3164
3167
|
stackedStyle: de,
|
|
3165
|
-
desktopStyle:
|
|
3168
|
+
desktopStyle: F
|
|
3166
3169
|
}),
|
|
3167
3170
|
"--column-margin-left-mobile": u({
|
|
3168
3171
|
stackedStyle: he,
|
|
@@ -3170,21 +3173,21 @@ function eo(e) {
|
|
|
3170
3173
|
}),
|
|
3171
3174
|
"--column-width-tablet": s({
|
|
3172
3175
|
stackedStyle: de,
|
|
3173
|
-
desktopStyle:
|
|
3176
|
+
desktopStyle: F
|
|
3174
3177
|
}),
|
|
3175
3178
|
"--column-margin-left-tablet": s({
|
|
3176
3179
|
stackedStyle: he,
|
|
3177
3180
|
desktopStyle: m
|
|
3178
3181
|
})
|
|
3179
3182
|
};
|
|
3180
|
-
},
|
|
3181
|
-
var
|
|
3183
|
+
}, b = function(x) {
|
|
3184
|
+
var F, m;
|
|
3182
3185
|
return vr(
|
|
3183
|
-
((m = (
|
|
3184
|
-
)[
|
|
3186
|
+
((m = (F = e.builderContext.content) == null ? void 0 : F.meta) == null ? void 0 : m.breakpoints) || {}
|
|
3187
|
+
)[x].max;
|
|
3185
3188
|
}, M = function() {
|
|
3186
3189
|
return `
|
|
3187
|
-
@media (max-width: ${
|
|
3190
|
+
@media (max-width: ${b("medium")}px) {
|
|
3188
3191
|
.${e.builderBlock.id}-breakpoints {
|
|
3189
3192
|
flex-direction: var(--flex-dir-tablet);
|
|
3190
3193
|
align-items: stretch;
|
|
@@ -3196,7 +3199,7 @@ function eo(e) {
|
|
|
3196
3199
|
}
|
|
3197
3200
|
}
|
|
3198
3201
|
|
|
3199
|
-
@media (max-width: ${
|
|
3202
|
+
@media (max-width: ${b("small")}px) {
|
|
3200
3203
|
.${e.builderBlock.id}-breakpoints {
|
|
3201
3204
|
flex-direction: var(--flex-dir);
|
|
3202
3205
|
align-items: stretch;
|
|
@@ -3209,25 +3212,25 @@ function eo(e) {
|
|
|
3209
3212
|
},
|
|
3210
3213
|
`;
|
|
3211
3214
|
};
|
|
3212
|
-
return /* @__PURE__ */ ue(
|
|
3215
|
+
return /* @__PURE__ */ ue(D, { children: [
|
|
3213
3216
|
/* @__PURE__ */ ue(
|
|
3214
3217
|
"div",
|
|
3215
3218
|
{
|
|
3216
3219
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-0d69fe26`,
|
|
3217
3220
|
style: E(),
|
|
3218
3221
|
children: [
|
|
3219
|
-
/* @__PURE__ */ C(
|
|
3220
|
-
(O = e.columns) == null ? void 0 : O.map((S,
|
|
3222
|
+
/* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(dt, { styles: M() }) }),
|
|
3223
|
+
(O = e.columns) == null ? void 0 : O.map((S, x) => /* @__PURE__ */ ei(
|
|
3221
3224
|
"div",
|
|
3222
3225
|
{
|
|
3223
3226
|
className: "builder-column div-0d69fe26-2",
|
|
3224
|
-
style: k(
|
|
3225
|
-
key:
|
|
3227
|
+
style: k(x),
|
|
3228
|
+
key: x
|
|
3226
3229
|
},
|
|
3227
3230
|
/* @__PURE__ */ C(
|
|
3228
3231
|
ln,
|
|
3229
3232
|
{
|
|
3230
|
-
path: `component.options.columns.${
|
|
3233
|
+
path: `component.options.columns.${x}.blocks`,
|
|
3231
3234
|
parent: e.builderBlock.id,
|
|
3232
3235
|
styleProp: {
|
|
3233
3236
|
flexGrow: "1"
|
|
@@ -3286,7 +3289,7 @@ const ro = (e) => {
|
|
|
3286
3289
|
return e;
|
|
3287
3290
|
const t = e.split(".");
|
|
3288
3291
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3289
|
-
},
|
|
3292
|
+
}, wr = ({
|
|
3290
3293
|
name: e,
|
|
3291
3294
|
canTrack: t
|
|
3292
3295
|
}) => {
|
|
@@ -3297,7 +3300,7 @@ const ro = (e) => {
|
|
|
3297
3300
|
q.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3298
3301
|
return;
|
|
3299
3302
|
}
|
|
3300
|
-
},
|
|
3303
|
+
}, br = async (e) => wr(e), io = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(pe).join("; "), oo = [["secure", ""], ["SameSite", "None"]], ao = ({
|
|
3301
3304
|
name: e,
|
|
3302
3305
|
value: t,
|
|
3303
3306
|
expires: n
|
|
@@ -3324,12 +3327,12 @@ const ro = (e) => {
|
|
|
3324
3327
|
}
|
|
3325
3328
|
}, so = "builder.tests", cn = (e) => `${so}.${e}`, lo = ({
|
|
3326
3329
|
contentId: e
|
|
3327
|
-
}) =>
|
|
3330
|
+
}) => br({
|
|
3328
3331
|
name: cn(e),
|
|
3329
3332
|
canTrack: !0
|
|
3330
3333
|
}), co = ({
|
|
3331
3334
|
contentId: e
|
|
3332
|
-
}) =>
|
|
3335
|
+
}) => wr({
|
|
3333
3336
|
name: cn(e),
|
|
3334
3337
|
canTrack: !0
|
|
3335
3338
|
}), uo = ({
|
|
@@ -3697,13 +3700,13 @@ const ro = (e) => {
|
|
|
3697
3700
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3698
3701
|
hideFromUI: !0
|
|
3699
3702
|
}]
|
|
3700
|
-
}, xo = ["text/javascript", "application/javascript", "application/ecmascript"], Ta = (e) => xo.includes(e.type),
|
|
3703
|
+
}, xo = ["text/javascript", "application/javascript", "application/ecmascript"], Ta = (e) => xo.includes(e.type), wo = {
|
|
3701
3704
|
name: "Fragment",
|
|
3702
3705
|
static: !0,
|
|
3703
3706
|
hidden: !0,
|
|
3704
3707
|
canHaveChildren: !0,
|
|
3705
3708
|
noWrap: !0
|
|
3706
|
-
},
|
|
3709
|
+
}, bo = {
|
|
3707
3710
|
name: "Image",
|
|
3708
3711
|
static: !0,
|
|
3709
3712
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -3726,13 +3729,13 @@ const ro = (e) => {
|
|
|
3726
3729
|
function n(s, u = 6e4) {
|
|
3727
3730
|
return new Promise((d, E) => {
|
|
3728
3731
|
const k = document.createElement("img");
|
|
3729
|
-
let
|
|
3732
|
+
let b = !1;
|
|
3730
3733
|
k.onload = () => {
|
|
3731
|
-
|
|
3734
|
+
b = !0, d(k);
|
|
3732
3735
|
}, k.addEventListener("error", (M) => {
|
|
3733
3736
|
console.warn("Image load failed", M.error), E(M.error);
|
|
3734
3737
|
}), k.src = s, setTimeout(() => {
|
|
3735
|
-
|
|
3738
|
+
b || E(new Error("Image load timed out"));
|
|
3736
3739
|
}, u);
|
|
3737
3740
|
});
|
|
3738
3741
|
}
|
|
@@ -4016,10 +4019,10 @@ const To = {
|
|
|
4016
4019
|
...vo
|
|
4017
4020
|
}, {
|
|
4018
4021
|
component: ai,
|
|
4019
|
-
...
|
|
4022
|
+
...wo
|
|
4020
4023
|
}, {
|
|
4021
4024
|
component: si,
|
|
4022
|
-
...
|
|
4025
|
+
...bo
|
|
4023
4026
|
}, {
|
|
4024
4027
|
component: li,
|
|
4025
4028
|
...So
|
|
@@ -4241,13 +4244,13 @@ const Wo = "v3", tr = "builder.", Ho = "options.", Ko = (e) => {
|
|
|
4241
4244
|
enrich: d,
|
|
4242
4245
|
locale: E,
|
|
4243
4246
|
apiVersion: k = Wo,
|
|
4244
|
-
fields:
|
|
4247
|
+
fields: b,
|
|
4245
4248
|
omit: M,
|
|
4246
4249
|
offset: O,
|
|
4247
4250
|
cacheSeconds: S,
|
|
4248
|
-
staleCacheSeconds:
|
|
4251
|
+
staleCacheSeconds: x,
|
|
4249
4252
|
sort: N,
|
|
4250
|
-
includeUnpublished:
|
|
4253
|
+
includeUnpublished: F
|
|
4251
4254
|
} = e;
|
|
4252
4255
|
if (!s)
|
|
4253
4256
|
throw new Error("Missing API key");
|
|
@@ -4255,7 +4258,7 @@ const Wo = "v3", tr = "builder.", Ho = "options.", Ko = (e) => {
|
|
|
4255
4258
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${k}'`);
|
|
4256
4259
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
4257
4260
|
const m = new URL(`https://cdn.builder.io/api/${k}/content/${a}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${u}${E ? `&locale=${E}` : ""}${d ? `&enrich=${d}` : ""}`);
|
|
4258
|
-
if (m.searchParams.set("omit", M || "meta.componentsUsed"),
|
|
4261
|
+
if (m.searchParams.set("omit", M || "meta.componentsUsed"), b && m.searchParams.set("fields", b), Number.isFinite(O) && O > -1 && m.searchParams.set("offset", String(Math.floor(O))), typeof F == "boolean" && m.searchParams.set("includeUnpublished", String(F)), S && nr(S) && m.searchParams.set("cacheSeconds", String(S)), x && nr(x) && m.searchParams.set("staleCacheSeconds", String(x)), N) {
|
|
4259
4262
|
const Z = lt({
|
|
4260
4263
|
sort: N
|
|
4261
4264
|
});
|
|
@@ -4342,7 +4345,7 @@ const Nr = "builderSessionId", qo = async ({
|
|
|
4342
4345
|
}) => {
|
|
4343
4346
|
if (!e)
|
|
4344
4347
|
return;
|
|
4345
|
-
const t = await
|
|
4348
|
+
const t = await br({
|
|
4346
4349
|
name: Nr,
|
|
4347
4350
|
canTrack: e
|
|
4348
4351
|
});
|
|
@@ -4512,7 +4515,7 @@ const la = (e, t, n = !0) => {
|
|
|
4512
4515
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4513
4516
|
}
|
|
4514
4517
|
};
|
|
4515
|
-
}, ua = "0.
|
|
4518
|
+
}, ua = "0.8.0", or = {};
|
|
4516
4519
|
function fa(e, t) {
|
|
4517
4520
|
let n = or[e];
|
|
4518
4521
|
if (n || (n = or[e] = []), n.push(t), G()) {
|
|
@@ -4580,17 +4583,17 @@ const Ua = (e = {}) => {
|
|
|
4580
4583
|
switch (r.type) {
|
|
4581
4584
|
case "builder.evaluate": {
|
|
4582
4585
|
const s = r.data.text, u = r.data.arguments || [], d = r.data.id, E = new Function(s);
|
|
4583
|
-
let k,
|
|
4586
|
+
let k, b = null;
|
|
4584
4587
|
try {
|
|
4585
4588
|
k = E.apply(null, u);
|
|
4586
4589
|
} catch (M) {
|
|
4587
|
-
|
|
4590
|
+
b = M;
|
|
4588
4591
|
}
|
|
4589
|
-
|
|
4592
|
+
b ? (i = window.parent) == null || i.postMessage({
|
|
4590
4593
|
type: "builder.evaluateError",
|
|
4591
4594
|
data: {
|
|
4592
4595
|
id: d,
|
|
4593
|
-
error:
|
|
4596
|
+
error: b.message
|
|
4594
4597
|
}
|
|
4595
4598
|
}, "*") : k && typeof k.then == "function" ? k.then((M) => {
|
|
4596
4599
|
var O;
|
|
@@ -4701,7 +4704,7 @@ const ga = ({
|
|
|
4701
4704
|
meta: e == null ? void 0 : e.meta
|
|
4702
4705
|
} : void 0;
|
|
4703
4706
|
function sr(e) {
|
|
4704
|
-
var i, a, s, u, d, E, k,
|
|
4707
|
+
var i, a, s, u, d, E, k, b, M;
|
|
4705
4708
|
const t = Bo({
|
|
4706
4709
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4707
4710
|
variationId: (i = e.content) == null ? void 0 : i.testVariationId,
|
|
@@ -4717,11 +4720,11 @@ function sr(e) {
|
|
|
4717
4720
|
...er,
|
|
4718
4721
|
...e.customComponents || []
|
|
4719
4722
|
].reduce(
|
|
4720
|
-
(O, { component: S, ...
|
|
4723
|
+
(O, { component: S, ...x }) => ({
|
|
4721
4724
|
...O,
|
|
4722
|
-
[
|
|
4725
|
+
[x.name]: {
|
|
4723
4726
|
component: S,
|
|
4724
|
-
...Kt(
|
|
4727
|
+
...Kt(x)
|
|
4725
4728
|
}
|
|
4726
4729
|
}),
|
|
4727
4730
|
{}
|
|
@@ -4750,9 +4753,9 @@ function sr(e) {
|
|
|
4750
4753
|
...er,
|
|
4751
4754
|
...e.customComponents || []
|
|
4752
4755
|
].reduce(
|
|
4753
|
-
(O, { component: S, ...
|
|
4756
|
+
(O, { component: S, ...x }) => ({
|
|
4754
4757
|
...O,
|
|
4755
|
-
[
|
|
4758
|
+
[x.name]: Kt(x)
|
|
4756
4759
|
}),
|
|
4757
4760
|
{}
|
|
4758
4761
|
),
|
|
@@ -4772,8 +4775,8 @@ function sr(e) {
|
|
|
4772
4775
|
showContent: e.showContent,
|
|
4773
4776
|
builderContextSignal: r,
|
|
4774
4777
|
children: [
|
|
4775
|
-
e.isSsrAbTest ? /* @__PURE__ */ C(
|
|
4776
|
-
/* @__PURE__ */ C(
|
|
4778
|
+
e.isSsrAbTest ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(Gt, { scriptStr: t }) }) : null,
|
|
4779
|
+
/* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(
|
|
4777
4780
|
ma,
|
|
4778
4781
|
{
|
|
4779
4782
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
@@ -4784,7 +4787,7 @@ function sr(e) {
|
|
|
4784
4787
|
/* @__PURE__ */ C(
|
|
4785
4788
|
ln,
|
|
4786
4789
|
{
|
|
4787
|
-
blocks: (M = (
|
|
4790
|
+
blocks: (M = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : M.blocks,
|
|
4788
4791
|
context: r,
|
|
4789
4792
|
registeredComponents: n
|
|
4790
4793
|
}
|
|
@@ -4819,9 +4822,9 @@ function Br(e) {
|
|
|
4819
4822
|
canTrack: Ht(e.canTrack)
|
|
4820
4823
|
});
|
|
4821
4824
|
};
|
|
4822
|
-
return /* @__PURE__ */ ue(
|
|
4823
|
-
!e.__isNestedRender && xe !== "reactNative" ? /* @__PURE__ */ C(
|
|
4824
|
-
t ? /* @__PURE__ */ ue(
|
|
4825
|
+
return /* @__PURE__ */ ue(D, { children: [
|
|
4826
|
+
!e.__isNestedRender && xe !== "reactNative" ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(Gt, { scriptStr: Mo() }) }) : null,
|
|
4827
|
+
t ? /* @__PURE__ */ ue(D, { children: [
|
|
4825
4828
|
/* @__PURE__ */ C(
|
|
4826
4829
|
dt,
|
|
4827
4830
|
{
|