@builder.io/sdk-react 4.0.3 → 4.0.4-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/CHANGELOG.md +944 -0
- package/lib/browser/blocks-exports.cjs +6 -6
- package/lib/browser/blocks-exports.mjs +17 -9
- package/lib/edge/{blocks-513223a7.js → blocks-890ac50f.js} +242 -240
- package/lib/edge/{blocks-a6ffbf92.cjs → blocks-efa04c3b.cjs} +10 -10
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +1 -1
- package/lib/edge/{columns-ea0b3b30.js → columns-70b88fce.js} +1 -1
- package/lib/edge/{columns-092b6fac.cjs → columns-eb192117.cjs} +1 -1
- package/lib/edge/{content-variants-6c1e3b13.js → content-variants-6a73b6e9.js} +40 -36
- package/lib/edge/{content-variants-75ff40ca.cjs → content-variants-893bba4d.cjs} +1 -1
- package/lib/edge/{form-46e4d997.cjs → form-89839d91.cjs} +1 -1
- package/lib/edge/{form-0c0d5bf5.js → form-e6ea2320.js} +1 -1
- package/lib/edge/{image-38917f45.js → image-1729f079.js} +20 -19
- package/lib/edge/{image-590e36ae.cjs → image-a6fbd15b.cjs} +3 -3
- package/lib/edge/img-337990c2.cjs +1 -0
- package/lib/edge/{img-8bdeb666.js → img-3efcbcca.js} +3 -2
- package/lib/edge/{personalization-container-965bec51.cjs → personalization-container-576b7363.cjs} +1 -1
- package/lib/edge/{personalization-container-1307218b.js → personalization-container-c8d741e6.js} +2 -2
- package/lib/edge/{slot-516f176d.js → slot-26162c51.js} +1 -1
- package/lib/edge/{slot-3b6aa7ec.cjs → slot-ed4d2827.cjs} +1 -1
- package/lib/edge/{tabs-cec51291.cjs → tabs-7273a1e3.cjs} +1 -1
- package/lib/edge/{tabs-f0945019.js → tabs-c576cd8f.js} +1 -1
- package/lib/node/blocks-exports.cjs +6 -6
- package/lib/node/blocks-exports.mjs +17 -9
- package/package.json +4 -4
- package/types/blocks/image/image.types.d.ts +1 -0
- package/types/blocks/img/img.d.ts +1 -0
- package/lib/edge/img-e49acb58.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as T, Fragment as J, jsxs as
|
|
2
|
-
import { createContext as kn, useEffect as
|
|
1
|
+
import { jsx as T, Fragment as J, jsxs as Ut } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as kn, useEffect as Xe, useState as st, useRef as Cn, useContext as Mr } from "react";
|
|
3
3
|
import { BuilderContext as Vr } from "./blocks-exports.mjs";
|
|
4
|
-
import { isEditing as
|
|
4
|
+
import { isEditing as Lt, isBrowser as Ft, getUserAttributes as On, checkIsDefined as ot, logger as Xr, TARGET as at, isPreviewing as jn } from "./server-entry-2e94ad2c.js";
|
|
5
5
|
import { getClassPropName as An } from "./get-class-prop-name-e44df0c8.js";
|
|
6
6
|
import { DynamicRenderer as In } from "./dynamic-renderer-8b343325.js";
|
|
7
7
|
const Tn = kn({ registeredComponents: {} }), Pn = (e, t, n) => {
|
|
@@ -19,12 +19,12 @@ const Tn = kn({ registeredComponents: {} }), Pn = (e, t, n) => {
|
|
|
19
19
|
builder: e,
|
|
20
20
|
context: t,
|
|
21
21
|
event: n
|
|
22
|
-
}),
|
|
23
|
-
isEditing:
|
|
24
|
-
isBrowser:
|
|
25
|
-
isServer: !
|
|
22
|
+
}), Nn = () => ({
|
|
23
|
+
isEditing: Lt(),
|
|
24
|
+
isBrowser: Ft(),
|
|
25
|
+
isServer: !Ft(),
|
|
26
26
|
getUserAttributes: () => On()
|
|
27
|
-
}),
|
|
27
|
+
}), bn = (e, {
|
|
28
28
|
isExpression: t = !0
|
|
29
29
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
30
30
|
function Xt({
|
|
@@ -73,7 +73,7 @@ const Rn = ({
|
|
|
73
73
|
});
|
|
74
74
|
return new Function(...f.map(([d]) => d), e)(...f.map(([, d]) => d));
|
|
75
75
|
};
|
|
76
|
-
var
|
|
76
|
+
var N, Bn = function(e) {
|
|
77
77
|
function t(i) {
|
|
78
78
|
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Sn.test(String.fromCharCode(i));
|
|
79
79
|
}
|
|
@@ -82,8 +82,8 @@ var b, Bn = function(e) {
|
|
|
82
82
|
}
|
|
83
83
|
function r(i, l) {
|
|
84
84
|
for (var u = g, p = 1, E = 0; ; ) {
|
|
85
|
-
|
|
86
|
-
var L =
|
|
85
|
+
nt.lastIndex = E;
|
|
86
|
+
var L = nt.exec(u);
|
|
87
87
|
if (L && L.index < i)
|
|
88
88
|
++p, E = L.index + L[0].length;
|
|
89
89
|
else
|
|
@@ -106,7 +106,7 @@ var b, Bn = function(e) {
|
|
|
106
106
|
this.line = de, this.ab = c - re;
|
|
107
107
|
}
|
|
108
108
|
function a(i, l) {
|
|
109
|
-
me = c, C.C && (
|
|
109
|
+
me = c, C.C && (Et = new s()), S = i, d(), Y = l, Ne = i.m;
|
|
110
110
|
}
|
|
111
111
|
function f() {
|
|
112
112
|
for (var i = c, l = C.va && C.C && new s(), u = g.charCodeAt(c += 2); c < ye && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
|
|
@@ -129,7 +129,7 @@ var b, Bn = function(e) {
|
|
|
129
129
|
i = void 0;
|
|
130
130
|
var l = C.va && C.C && new s(), u = c, p = g.indexOf("*/", c += 2);
|
|
131
131
|
if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2, C.C)
|
|
132
|
-
for (
|
|
132
|
+
for (nt.lastIndex = u; (i = nt.exec(g)) && i.index < c; )
|
|
133
133
|
++de, re = i.index + i[0].length;
|
|
134
134
|
C.va && C.va(!0, g.slice(u + 2, p), u, c, l, C.C && new s());
|
|
135
135
|
} else if (i === 47)
|
|
@@ -160,7 +160,7 @@ var b, Bn = function(e) {
|
|
|
160
160
|
case 91:
|
|
161
161
|
return ++c, a(bt);
|
|
162
162
|
case 93:
|
|
163
|
-
return ++c, a(
|
|
163
|
+
return ++c, a(Rt);
|
|
164
164
|
case 123:
|
|
165
165
|
return ++c, a(Be);
|
|
166
166
|
case 125:
|
|
@@ -191,7 +191,7 @@ var b, Bn = function(e) {
|
|
|
191
191
|
c >= ye && r(U, "Unterminated string constant");
|
|
192
192
|
var u = g.charCodeAt(c);
|
|
193
193
|
if (u === i) {
|
|
194
|
-
++c, a(
|
|
194
|
+
++c, a(qe, l);
|
|
195
195
|
break;
|
|
196
196
|
}
|
|
197
197
|
if (u === 92) {
|
|
@@ -247,7 +247,7 @@ var b, Bn = function(e) {
|
|
|
247
247
|
}
|
|
248
248
|
return;
|
|
249
249
|
case 47:
|
|
250
|
-
i = g.charCodeAt(c + 1),
|
|
250
|
+
i = g.charCodeAt(c + 1), Ne ? (++c, W()) : i === 61 ? A(ge, 2) : A(Ir, 1);
|
|
251
251
|
return;
|
|
252
252
|
case 37:
|
|
253
253
|
case 42:
|
|
@@ -255,14 +255,14 @@ var b, Bn = function(e) {
|
|
|
255
255
|
return;
|
|
256
256
|
case 124:
|
|
257
257
|
case 38:
|
|
258
|
-
l = g.charCodeAt(c + 1), l === i ? A(i === 124 ?
|
|
258
|
+
l = g.charCodeAt(c + 1), l === i ? A(i === 124 ? Nr : br, 2) : l === 61 ? A(ge, 2) : A(i === 124 ? cn : pn, 1);
|
|
259
259
|
return;
|
|
260
260
|
case 94:
|
|
261
261
|
g.charCodeAt(c + 1) === 61 ? A(ge, 2) : A(fn, 1);
|
|
262
262
|
return;
|
|
263
263
|
case 43:
|
|
264
264
|
case 45:
|
|
265
|
-
l = g.charCodeAt(c + 1), l === i ? l === 45 && g.charCodeAt(c + 2) === 62 &&
|
|
265
|
+
l = g.charCodeAt(c + 1), l === i ? l === 45 && g.charCodeAt(c + 2) === 62 && rt.test(g.slice(ce, c)) ? (c += 3, f(), d(), I()) : A(un, 2) : l === 61 ? A(ge, 2) : A(yn, 1);
|
|
266
266
|
return;
|
|
267
267
|
case 60:
|
|
268
268
|
case 62:
|
|
@@ -278,10 +278,10 @@ var b, Bn = function(e) {
|
|
|
278
278
|
return !1;
|
|
279
279
|
}
|
|
280
280
|
function I(i) {
|
|
281
|
-
if (i ? c = U + 1 : U = c, C.C && (
|
|
281
|
+
if (i ? c = U + 1 : U = c, C.C && (St = new s()), i)
|
|
282
282
|
return W();
|
|
283
283
|
if (c >= ye)
|
|
284
|
-
return a(
|
|
284
|
+
return a(Ot);
|
|
285
285
|
if (i = g.charCodeAt(c), n(i) || i === 92)
|
|
286
286
|
return _();
|
|
287
287
|
if (v(i) === !1) {
|
|
@@ -298,7 +298,7 @@ var b, Bn = function(e) {
|
|
|
298
298
|
for (var i, l, u = c; ; ) {
|
|
299
299
|
c >= ye && r(u, "Unterminated regexp");
|
|
300
300
|
var p = g.charAt(c);
|
|
301
|
-
if (
|
|
301
|
+
if (rt.test(p) && r(u, "Unterminated regexp"), i)
|
|
302
302
|
i = !1;
|
|
303
303
|
else {
|
|
304
304
|
if (p === "[")
|
|
@@ -358,7 +358,7 @@ var b, Bn = function(e) {
|
|
|
358
358
|
!xe && wn(i) && (l = ln[i]), a(l, i);
|
|
359
359
|
}
|
|
360
360
|
function k() {
|
|
361
|
-
|
|
361
|
+
kt = U, ce = me, Ct = Et, I();
|
|
362
362
|
}
|
|
363
363
|
function ue(i) {
|
|
364
364
|
if (K = i, c = U, C.C)
|
|
@@ -371,7 +371,7 @@ var b, Bn = function(e) {
|
|
|
371
371
|
this.type = null, this.start = U, this.end = null;
|
|
372
372
|
}
|
|
373
373
|
function Ae() {
|
|
374
|
-
this.start =
|
|
374
|
+
this.start = St, this.end = null, xt && (this.source = xt);
|
|
375
375
|
}
|
|
376
376
|
function B() {
|
|
377
377
|
var i = new je();
|
|
@@ -382,19 +382,19 @@ var b, Bn = function(e) {
|
|
|
382
382
|
return l.start = i.start, C.C && (l.X = new Ae(), l.X.start = i.X.start), C.Xa && (l.j = [i.j[0], 0]), l;
|
|
383
383
|
}
|
|
384
384
|
function x(i, l) {
|
|
385
|
-
return i.type = l, i.end = ce, C.C && (i.X.end =
|
|
385
|
+
return i.type = l, i.end = ce, C.C && (i.X.end = Ct), C.Xa && (i.j[1] = ce), i;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function ht(i) {
|
|
388
388
|
return i.type === "ExpressionStatement" && i.la.type === "Literal" && i.la.value === "use strict";
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function b(i) {
|
|
391
391
|
return S === i ? (k(), !0) : !1;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
return !C.fc && (S ===
|
|
393
|
+
function Ye() {
|
|
394
|
+
return !C.fc && (S === Ot || S === we || rt.test(g.slice(ce, U)));
|
|
395
395
|
}
|
|
396
396
|
function he() {
|
|
397
|
-
|
|
397
|
+
b(oe) || Ye() || ee();
|
|
398
398
|
}
|
|
399
399
|
function M(i) {
|
|
400
400
|
S === i ? k() : ee();
|
|
@@ -402,18 +402,18 @@ var b, Bn = function(e) {
|
|
|
402
402
|
function ee() {
|
|
403
403
|
r(U, "Unexpected token");
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), K && i.type === "Identifier" &&
|
|
405
|
+
function Ze(i) {
|
|
406
|
+
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), K && i.type === "Identifier" && tt(i.name) && r(i.start, "Assigning to " + i.name + " in strict mode");
|
|
407
407
|
}
|
|
408
408
|
function Q() {
|
|
409
409
|
(S === Ir || S === ge && Y === "/=") && I(!0);
|
|
410
410
|
var i = S, l = B();
|
|
411
411
|
switch (i) {
|
|
412
|
-
case
|
|
412
|
+
case jt:
|
|
413
413
|
case ur:
|
|
414
414
|
k();
|
|
415
|
-
var u = i ===
|
|
416
|
-
|
|
415
|
+
var u = i === jt;
|
|
416
|
+
b(oe) || Ye() ? l.label = null : S !== ve ? ee() : (l.label = te(), he());
|
|
417
417
|
for (var p = 0; p < D.length; ++p) {
|
|
418
418
|
var E = D[p];
|
|
419
419
|
if ((l.label === null || E.name === l.label.name) && (E.kind !== null && (u || E.kind === "loop") || l.label && u))
|
|
@@ -423,27 +423,27 @@ var b, Bn = function(e) {
|
|
|
423
423
|
case cr:
|
|
424
424
|
return k(), he(), x(l, "DebuggerStatement");
|
|
425
425
|
case pr:
|
|
426
|
-
return k(), D.push(
|
|
426
|
+
return k(), D.push(Bt), l.body = Q(), D.pop(), M(Nt), l.test = Ie(), he(), x(l, "DoWhileStatement");
|
|
427
427
|
case gr:
|
|
428
|
-
return k(), D.push(
|
|
429
|
-
case
|
|
430
|
-
return k(),
|
|
428
|
+
return k(), D.push(Bt), M(ne), S === oe ? dt(l, null) : S === Pt ? (i = B(), k(), ir(i, !0), x(i, "VariableDeclaration"), i.fa.length === 1 && b(et) ? or(l, i) : dt(l, i)) : (i = $(!1, !0), b(et) ? (Ze(i), or(l, i)) : dt(l, i));
|
|
429
|
+
case It:
|
|
430
|
+
return k(), vt(l, !0);
|
|
431
431
|
case yr:
|
|
432
|
-
return k(), l.test = Ie(), l.da = Q(), l.alternate =
|
|
432
|
+
return k(), l.test = Ie(), l.da = Q(), l.alternate = b(hr) ? Q() : null, x(l, "IfStatement");
|
|
433
433
|
case mr:
|
|
434
|
-
return
|
|
435
|
-
case
|
|
434
|
+
return be || C.Ib || r(U, "'return' outside of function"), k(), b(oe) || Ye() ? l.K = null : (l.K = $(), he()), x(l, "ReturnStatement");
|
|
435
|
+
case Tt:
|
|
436
436
|
for (k(), l.Qb = Ie(), l.tb = [], M(Be), D.push(En); S !== we; )
|
|
437
|
-
S ===
|
|
437
|
+
S === At || S === fr ? (i = S === At, p && x(p, "SwitchCase"), l.tb.push(p = B()), p.da = [], k(), i ? p.test = $() : (u && r(kt, "Multiple default clauses"), u = !0, p.test = null), M(Me)) : (p || ee(), p.da.push(Q()));
|
|
438
438
|
return p && x(p, "SwitchCase"), k(), D.pop(), x(l, "SwitchStatement");
|
|
439
439
|
case vr:
|
|
440
|
-
return k(),
|
|
440
|
+
return k(), rt.test(g.slice(ce, U)) && r(ce, "Illegal newline after throw"), l.K = $(), he(), x(l, "ThrowStatement");
|
|
441
441
|
case wr:
|
|
442
|
-
return k(), l.block = Te(), l.Ea = null, S === lr && (i = B(), k(), M(ne), i.Ua = te(), K &&
|
|
443
|
-
case Tt:
|
|
444
|
-
return k(), ir(l), he(), x(l, "VariableDeclaration");
|
|
442
|
+
return k(), l.block = Te(), l.Ea = null, S === lr && (i = B(), k(), M(ne), i.Ua = te(), K && tt(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), M(q), i.body = Te(), l.Ea = x(i, "CatchClause")), l.fb = b(dr) ? Te() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), x(l, "TryStatement");
|
|
445
443
|
case Pt:
|
|
446
|
-
return k(),
|
|
444
|
+
return k(), ir(l), he(), x(l, "VariableDeclaration");
|
|
445
|
+
case Nt:
|
|
446
|
+
return k(), l.test = Ie(), D.push(Bt), l.body = Q(), D.pop(), x(l, "WhileStatement");
|
|
447
447
|
case xr:
|
|
448
448
|
return K && r(U, "'with' in strict mode"), k(), l.object = Ie(), l.body = Q(), x(l, "WithStatement");
|
|
449
449
|
case Be:
|
|
@@ -451,12 +451,12 @@ var b, Bn = function(e) {
|
|
|
451
451
|
case oe:
|
|
452
452
|
return k(), x(l, "EmptyStatement");
|
|
453
453
|
default:
|
|
454
|
-
if (u = Y, E = $(), i === ve && E.type === "Identifier" &&
|
|
454
|
+
if (u = Y, E = $(), i === ve && E.type === "Identifier" && b(Me)) {
|
|
455
455
|
for (p = 0; p < D.length; ++p)
|
|
456
456
|
D[p].name === u && r(E.start, "Label '" + u + "' is already declared");
|
|
457
457
|
return D.push({
|
|
458
458
|
name: u,
|
|
459
|
-
kind: S.W ? "loop" : S ===
|
|
459
|
+
kind: S.W ? "loop" : S === Tt ? "switch" : null
|
|
460
460
|
}), l.body = Q(), D.pop(), l.label = E, x(l, "LabeledStatement");
|
|
461
461
|
}
|
|
462
462
|
return l.la = E, he(), x(l, "ExpressionStatement");
|
|
@@ -469,9 +469,9 @@ var b, Bn = function(e) {
|
|
|
469
469
|
}
|
|
470
470
|
function Te(i) {
|
|
471
471
|
var l = B(), u = !0, p = !1;
|
|
472
|
-
for (l.body = [], M(Be); !
|
|
472
|
+
for (l.body = [], M(Be); !b(we); ) {
|
|
473
473
|
var E = Q();
|
|
474
|
-
if (l.body.push(E), u && i &&
|
|
474
|
+
if (l.body.push(E), u && i && ht(E)) {
|
|
475
475
|
var L = p;
|
|
476
476
|
ue(p = !0);
|
|
477
477
|
}
|
|
@@ -479,7 +479,7 @@ var b, Bn = function(e) {
|
|
|
479
479
|
}
|
|
480
480
|
return p && !L && ue(!1), x(l, "BlockStatement");
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function dt(i, l) {
|
|
483
483
|
return i.ua = l, M(oe), i.test = S === oe ? null : $(), M(oe), i.update = S === q ? null : $(), M(q), i.body = Q(), D.pop(), x(i, "ForStatement");
|
|
484
484
|
}
|
|
485
485
|
function or(i, l) {
|
|
@@ -488,52 +488,52 @@ var b, Bn = function(e) {
|
|
|
488
488
|
function ir(i, l) {
|
|
489
489
|
for (i.fa = [], i.kind = "var"; ; ) {
|
|
490
490
|
var u = B();
|
|
491
|
-
if (u.id = te(), K &&
|
|
491
|
+
if (u.id = te(), K && tt(u.id.name) && r(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = b(Tr) ? $(!0, l) : null, i.fa.push(x(u, "VariableDeclarator")), !b(fe))
|
|
492
492
|
break;
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
495
|
function $(i, l) {
|
|
496
|
-
var u =
|
|
496
|
+
var u = gt(l);
|
|
497
497
|
if (!i && S === fe) {
|
|
498
|
-
for (i = Z(u), i.xb = [u];
|
|
499
|
-
i.xb.push(
|
|
498
|
+
for (i = Z(u), i.xb = [u]; b(fe); )
|
|
499
|
+
i.xb.push(gt(l));
|
|
500
500
|
return x(i, "SequenceExpression");
|
|
501
501
|
}
|
|
502
502
|
return u;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
var l =
|
|
506
|
-
if (
|
|
504
|
+
function gt(i) {
|
|
505
|
+
var l = yt(mt(), -1, i);
|
|
506
|
+
if (b(Ar)) {
|
|
507
507
|
var u = Z(l);
|
|
508
508
|
u.test = l, u.da = $(!0), M(Me), u.alternate = $(!0, i), l = x(u, "ConditionalExpression");
|
|
509
509
|
}
|
|
510
|
-
return S.Cb ? (u = Z(l), u.operator = Y, u.left = l, k(), u.right =
|
|
510
|
+
return S.Cb ? (u = Z(l), u.operator = Y, u.left = l, k(), u.right = gt(i), Ze(l), x(u, "AssignmentExpression")) : l;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function yt(i, l, u) {
|
|
513
513
|
var p = S.L;
|
|
514
|
-
if (p !== null && (!u || S !==
|
|
514
|
+
if (p !== null && (!u || S !== et) && p > l) {
|
|
515
515
|
var E = Z(i);
|
|
516
|
-
return E.left = i, E.operator = Y, i = S, k(), E.right =
|
|
516
|
+
return E.left = i, E.operator = Y, i = S, k(), E.right = yt(mt(), p, u), p = x(E, i === Nr || i === br ? "LogicalExpression" : "BinaryExpression"), yt(p, l, u);
|
|
517
517
|
}
|
|
518
518
|
return i;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function mt() {
|
|
521
521
|
if (S.prefix) {
|
|
522
522
|
var i = B(), l = S.$b;
|
|
523
|
-
return i.operator = Y,
|
|
523
|
+
return i.operator = Y, Ne = i.prefix = !0, k(), i.K = mt(), l ? Ze(i.K) : K && i.operator === "delete" && i.K.type === "Identifier" && r(i.start, "Deleting local variable in strict mode"), x(i, l ? "UpdateExpression" : "UnaryExpression");
|
|
524
524
|
}
|
|
525
|
-
for (l = Pe(
|
|
526
|
-
i = Z(l), i.operator = Y, i.prefix = !1, i.K = l,
|
|
525
|
+
for (l = Pe(Qe()); S.cc && !Ye(); )
|
|
526
|
+
i = Z(l), i.operator = Y, i.prefix = !1, i.K = l, Ze(l), k(), l = x(i, "UpdateExpression");
|
|
527
527
|
return l;
|
|
528
528
|
}
|
|
529
529
|
function Pe(i, l) {
|
|
530
|
-
if (
|
|
530
|
+
if (b(jr)) {
|
|
531
531
|
var u = Z(i);
|
|
532
532
|
return u.object = i, u.Wa = te(!0), u.bb = !1, Pe(x(u, "MemberExpression"), l);
|
|
533
533
|
}
|
|
534
|
-
return
|
|
534
|
+
return b(bt) ? (u = Z(i), u.object = i, u.Wa = $(), u.bb = !0, M(Rt), Pe(x(u, "MemberExpression"), l)) : !l && b(ne) ? (u = Z(i), u.callee = i, u.arguments = wt(q, !1), Pe(x(u, "CallExpression"), l)) : i;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Qe() {
|
|
537
537
|
switch (S) {
|
|
538
538
|
case Er:
|
|
539
539
|
var i = B();
|
|
@@ -541,7 +541,7 @@ var b, Bn = function(e) {
|
|
|
541
541
|
case ve:
|
|
542
542
|
return te();
|
|
543
543
|
case Re:
|
|
544
|
-
case
|
|
544
|
+
case qe:
|
|
545
545
|
case ar:
|
|
546
546
|
return i = B(), i.value = Y, i.raw = g.slice(U, me), k(), x(i, "Literal");
|
|
547
547
|
case kr:
|
|
@@ -549,65 +549,65 @@ var b, Bn = function(e) {
|
|
|
549
549
|
case Or:
|
|
550
550
|
return i = B(), i.value = S.$a, i.raw = S.l, k(), x(i, "Literal");
|
|
551
551
|
case ne:
|
|
552
|
-
i =
|
|
552
|
+
i = St;
|
|
553
553
|
var l = U;
|
|
554
554
|
k();
|
|
555
555
|
var u = $();
|
|
556
|
-
return u.start = l, u.end = me, C.C && (u.X.start = i, u.X.end =
|
|
556
|
+
return u.start = l, u.end = me, C.C && (u.X.start = i, u.X.end = Et), C.Xa && (u.j = [l, me]), M(q), u;
|
|
557
557
|
case bt:
|
|
558
|
-
return i = B(), k(), i.elements =
|
|
558
|
+
return i = B(), k(), i.elements = wt(Rt, !0, !0), x(i, "ArrayExpression");
|
|
559
559
|
case Be:
|
|
560
|
-
for (i = B(), l = !0, u = !1, i.h = [], k(); !
|
|
560
|
+
for (i = B(), l = !0, u = !1, i.h = [], k(); !b(we); ) {
|
|
561
561
|
if (l)
|
|
562
562
|
l = !1;
|
|
563
|
-
else if (M(fe), C.sb &&
|
|
563
|
+
else if (M(fe), C.sb && b(we))
|
|
564
564
|
break;
|
|
565
565
|
var p = {
|
|
566
|
-
key: S === Re || S ===
|
|
566
|
+
key: S === Re || S === qe ? Qe() : te(!0)
|
|
567
567
|
}, E = !1;
|
|
568
|
-
if (
|
|
568
|
+
if (b(Me)) {
|
|
569
569
|
p.value = $(!0);
|
|
570
570
|
var L = p.kind = "init";
|
|
571
571
|
} else
|
|
572
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ee() : (E = u = !0, L = p.kind = p.key.name, p.key = S === Re || S ===
|
|
572
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ee() : (E = u = !0, L = p.kind = p.key.name, p.key = S === Re || S === qe ? Qe() : te(!0), S !== ne && ee(), p.value = vt(B(), !1));
|
|
573
573
|
if (p.key.type === "Identifier" && (K || u))
|
|
574
574
|
for (var X = 0; X < i.h.length; ++X) {
|
|
575
575
|
var Se = i.h[X];
|
|
576
576
|
if (Se.key.name === p.key.name) {
|
|
577
|
-
var
|
|
578
|
-
|
|
577
|
+
var Mt = L === Se.kind || E && Se.kind === "init" || L === "init" && (Se.kind === "get" || Se.kind === "set");
|
|
578
|
+
Mt && !K && L === "init" && Se.kind === "init" && (Mt = !1), Mt && r(p.key.start, "Redefinition of property");
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
i.h.push(p);
|
|
582
582
|
}
|
|
583
583
|
return x(i, "ObjectExpression");
|
|
584
|
-
case
|
|
585
|
-
return i = B(), k(),
|
|
584
|
+
case It:
|
|
585
|
+
return i = B(), k(), vt(i, !1);
|
|
586
586
|
case Sr:
|
|
587
|
-
return i = B(), k(), i.callee = Pe(
|
|
587
|
+
return i = B(), k(), i.callee = Pe(Qe(), !0), i.arguments = b(ne) ? wt(q, !1) : an, x(i, "NewExpression");
|
|
588
588
|
}
|
|
589
589
|
ee();
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function vt(i, l) {
|
|
592
592
|
S === ve ? i.id = te() : l ? ee() : i.id = null, i.oa = [];
|
|
593
593
|
var u = !0;
|
|
594
|
-
for (M(ne); !
|
|
594
|
+
for (M(ne); !b(q); )
|
|
595
595
|
u ? u = !1 : M(fe), i.oa.push(te());
|
|
596
|
-
u =
|
|
596
|
+
u = be;
|
|
597
597
|
var p = D;
|
|
598
|
-
if (
|
|
598
|
+
if (be = !0, D = [], i.body = Te(!0), be = u, D = p, K || i.body.body.length && ht(i.body.body[0])) {
|
|
599
599
|
for (u = i.id ? -1 : 0; u < i.oa.length; ++u)
|
|
600
|
-
if (p = 0 > u ? i.id : i.oa[u], (Rr(p.name) ||
|
|
600
|
+
if (p = 0 > u ? i.id : i.oa[u], (Rr(p.name) || tt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= u)
|
|
601
601
|
for (var E = 0; E < u; ++E)
|
|
602
602
|
p.name === i.oa[E].name && r(p.start, "Argument name clash in strict mode");
|
|
603
603
|
}
|
|
604
604
|
return x(i, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
605
605
|
}
|
|
606
|
-
function
|
|
607
|
-
for (var p = [], E = !0; !
|
|
606
|
+
function wt(i, l, u) {
|
|
607
|
+
for (var p = [], E = !0; !b(i); ) {
|
|
608
608
|
if (E)
|
|
609
609
|
E = !1;
|
|
610
|
-
else if (M(fe), l && C.sb &&
|
|
610
|
+
else if (M(fe), l && C.sb && b(i))
|
|
611
611
|
break;
|
|
612
612
|
p.push(u && S === fe ? null : $(!0));
|
|
613
613
|
}
|
|
@@ -615,16 +615,16 @@ var b, Bn = function(e) {
|
|
|
615
615
|
}
|
|
616
616
|
function te(i) {
|
|
617
617
|
var l = B();
|
|
618
|
-
return i && C.yb === "everywhere" && (i = !1), S === ve ? (!i && (C.yb && vn(Y) || K && Rr(Y)) && g.slice(U, me).indexOf("\\") === -1 && r(U, "The keyword '" + Y + "' is reserved"), l.name = Y) : i && S.l ? l.name = S.l : ee(),
|
|
618
|
+
return i && C.yb === "everywhere" && (i = !1), S === ve ? (!i && (C.yb && vn(Y) || K && Rr(Y)) && g.slice(U, me).indexOf("\\") === -1 && r(U, "The keyword '" + Y + "' is reserved"), l.name = Y) : i && S.l ? l.name = S.l : ee(), Ne = !1, k(), x(l, "Identifier");
|
|
619
619
|
}
|
|
620
620
|
e.version = "0.5.0";
|
|
621
|
-
var C, g = "", ye,
|
|
621
|
+
var C, g = "", ye, xt;
|
|
622
622
|
e.parse = function(i, l) {
|
|
623
623
|
g = String(i), ye = g.length, C = l || {};
|
|
624
624
|
for (var u in sr)
|
|
625
625
|
Object.prototype.hasOwnProperty.call(C, u) || (C[u] = sr[u]);
|
|
626
|
-
for (
|
|
627
|
-
u = Q(), i.body.push(u), l &&
|
|
626
|
+
for (xt = C.sourceFile, de = 1, c = re = 0, Ne = !0, d(), u = C.dc, kt = ce = c, C.C && (Ct = new s()), be = K = !1, D = [], I(), i = u || B(), l = !0, u || (i.body = []); S !== Ot; )
|
|
627
|
+
u = Q(), i.body.push(u), l && ht(u) && ue(!0), l = !1;
|
|
628
628
|
return x(i, "Program");
|
|
629
629
|
};
|
|
630
630
|
var sr = {
|
|
@@ -638,19 +638,19 @@ var b, Bn = function(e) {
|
|
|
638
638
|
dc: null,
|
|
639
639
|
sourceFile: null,
|
|
640
640
|
vb: null
|
|
641
|
-
}, c = 0, U = 0, me = 0,
|
|
641
|
+
}, c = 0, U = 0, me = 0, St, Et, S, Y, Ne, de, re, kt = 0, ce = 0, Ct, be, D, K, an = [], Re = {
|
|
642
642
|
type: "num"
|
|
643
643
|
}, ar = {
|
|
644
644
|
type: "regexp"
|
|
645
|
-
},
|
|
645
|
+
}, qe = {
|
|
646
646
|
type: "string"
|
|
647
647
|
}, ve = {
|
|
648
648
|
type: "name"
|
|
649
|
-
}, Ct = {
|
|
650
|
-
type: "eof"
|
|
651
649
|
}, Ot = {
|
|
652
|
-
|
|
650
|
+
type: "eof"
|
|
653
651
|
}, jt = {
|
|
652
|
+
l: "break"
|
|
653
|
+
}, At = {
|
|
654
654
|
l: "case",
|
|
655
655
|
m: !0
|
|
656
656
|
}, lr = {
|
|
@@ -672,23 +672,23 @@ var b, Bn = function(e) {
|
|
|
672
672
|
}, gr = {
|
|
673
673
|
l: "for",
|
|
674
674
|
W: !0
|
|
675
|
-
},
|
|
675
|
+
}, It = {
|
|
676
676
|
l: "function"
|
|
677
677
|
}, yr = {
|
|
678
678
|
l: "if"
|
|
679
679
|
}, mr = {
|
|
680
680
|
l: "return",
|
|
681
681
|
m: !0
|
|
682
|
-
},
|
|
682
|
+
}, Tt = {
|
|
683
683
|
l: "switch"
|
|
684
684
|
}, vr = {
|
|
685
685
|
l: "throw",
|
|
686
686
|
m: !0
|
|
687
687
|
}, wr = {
|
|
688
688
|
l: "try"
|
|
689
|
-
}, Tt = {
|
|
690
|
-
l: "var"
|
|
691
689
|
}, Pt = {
|
|
690
|
+
l: "var"
|
|
691
|
+
}, Nt = {
|
|
692
692
|
l: "while",
|
|
693
693
|
W: !0
|
|
694
694
|
}, xr = {
|
|
@@ -707,13 +707,13 @@ var b, Bn = function(e) {
|
|
|
707
707
|
}, Or = {
|
|
708
708
|
l: "false",
|
|
709
709
|
$a: !1
|
|
710
|
-
},
|
|
710
|
+
}, et = {
|
|
711
711
|
l: "in",
|
|
712
712
|
L: 7,
|
|
713
713
|
m: !0
|
|
714
714
|
}, ln = {
|
|
715
|
-
break:
|
|
716
|
-
case:
|
|
715
|
+
break: jt,
|
|
716
|
+
case: At,
|
|
717
717
|
catch: lr,
|
|
718
718
|
continue: ur,
|
|
719
719
|
debugger: cr,
|
|
@@ -722,20 +722,20 @@ var b, Bn = function(e) {
|
|
|
722
722
|
else: hr,
|
|
723
723
|
finally: dr,
|
|
724
724
|
for: gr,
|
|
725
|
-
function:
|
|
725
|
+
function: It,
|
|
726
726
|
if: yr,
|
|
727
727
|
return: mr,
|
|
728
|
-
switch:
|
|
728
|
+
switch: Tt,
|
|
729
729
|
throw: vr,
|
|
730
730
|
try: wr,
|
|
731
|
-
var:
|
|
732
|
-
while:
|
|
731
|
+
var: Pt,
|
|
732
|
+
while: Nt,
|
|
733
733
|
with: xr,
|
|
734
734
|
null: kr,
|
|
735
735
|
true: Cr,
|
|
736
736
|
false: Or,
|
|
737
737
|
new: Sr,
|
|
738
|
-
in:
|
|
738
|
+
in: et,
|
|
739
739
|
instanceof: {
|
|
740
740
|
l: "instanceof",
|
|
741
741
|
L: 7,
|
|
@@ -760,7 +760,7 @@ var b, Bn = function(e) {
|
|
|
760
760
|
}, bt = {
|
|
761
761
|
type: "[",
|
|
762
762
|
m: !0
|
|
763
|
-
},
|
|
763
|
+
}, Rt = {
|
|
764
764
|
type: "]"
|
|
765
765
|
}, Be = {
|
|
766
766
|
type: "{",
|
|
@@ -802,10 +802,10 @@ var b, Bn = function(e) {
|
|
|
802
802
|
}, Pr = {
|
|
803
803
|
prefix: !0,
|
|
804
804
|
m: !0
|
|
805
|
-
},
|
|
805
|
+
}, Nr = {
|
|
806
806
|
L: 1,
|
|
807
807
|
m: !0
|
|
808
|
-
},
|
|
808
|
+
}, br = {
|
|
809
809
|
L: 2,
|
|
810
810
|
m: !0
|
|
811
811
|
}, cn = {
|
|
@@ -833,13 +833,13 @@ var b, Bn = function(e) {
|
|
|
833
833
|
}, mn = {
|
|
834
834
|
L: 10,
|
|
835
835
|
m: !0
|
|
836
|
-
}, vn = o("class enum extends super const export import"), Rr = o("implements interface let package private protected public static yield"),
|
|
836
|
+
}, vn = o("class enum extends super const export import"), Rr = o("implements interface let package private protected public static yield"), tt = o("eval arguments"), wn = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), xn = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Br = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Sn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), rt = /[\n\r\u2028\u2029]/, nt = /\r\n|[\n\r\u2028\u2029]/g, xe, Bt = {
|
|
837
837
|
kind: "loop"
|
|
838
838
|
}, En = {
|
|
839
839
|
kind: "switch"
|
|
840
840
|
};
|
|
841
|
-
},
|
|
842
|
-
Bn(
|
|
841
|
+
}, Wt = Wt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
842
|
+
Bn(Wt.j || (Wt.j = {}));
|
|
843
843
|
function h(e, t) {
|
|
844
844
|
typeof e == "string" && (e = ke(e, "code"));
|
|
845
845
|
var n = e.constructor;
|
|
@@ -855,8 +855,8 @@ function h(e, t) {
|
|
|
855
855
|
var s, a;
|
|
856
856
|
for (a in this)
|
|
857
857
|
typeof this[a] == "function" && (s = a.match(e)) && (this.rb[s[1]] = this[a].bind(this));
|
|
858
|
-
this.N =
|
|
859
|
-
`), "polyfills"), this.ba = void 0,
|
|
858
|
+
this.N = $t(this, this.ra, null), this.Na = this.N.object, this.ra = ke(this.ba.join(`
|
|
859
|
+
`), "polyfills"), this.ba = void 0, lt(this.ra), s = new m(this.ra, this.N), s.done = !1, this.o = [s], this.Eb(), this.value = void 0, this.ra = r, s = new m(this.ra, this.N), s.done = !1, this.o.length = 0, this.o[0] = s;
|
|
860
860
|
}
|
|
861
861
|
var Dr = {
|
|
862
862
|
C: !0,
|
|
@@ -885,7 +885,7 @@ var Dr = {
|
|
|
885
885
|
STEP_ERROR: !0
|
|
886
886
|
}, Oe = {
|
|
887
887
|
SCOPE_REFERENCE: !0
|
|
888
|
-
},
|
|
888
|
+
}, He = {
|
|
889
889
|
VALUE_IN_DESCRIPTOR: !0
|
|
890
890
|
}, Ee = {
|
|
891
891
|
REGEXP_TIMEOUT: !0
|
|
@@ -898,37 +898,37 @@ function $e(e) {
|
|
|
898
898
|
var t = e >>> 0;
|
|
899
899
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function lt(e, t, n) {
|
|
902
902
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
903
903
|
for (var r in e)
|
|
904
904
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
905
905
|
var o = e[r];
|
|
906
|
-
o && typeof o == "object" &&
|
|
906
|
+
o && typeof o == "object" && lt(o, t, n);
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
909
|
h.prototype.REGEXP_MODE = 2;
|
|
910
910
|
h.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
911
911
|
h.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
912
|
+
N = h.prototype;
|
|
913
|
+
N.P = !1;
|
|
914
|
+
N.Ka = !1;
|
|
915
|
+
N.Kb = 0;
|
|
916
|
+
N.ic = 0;
|
|
917
917
|
function ke(e, t) {
|
|
918
918
|
var n = {}, r;
|
|
919
919
|
for (r in Dr)
|
|
920
920
|
n[r] = Dr[r];
|
|
921
921
|
return n.sourceFile = t, pe.j.parse(e, n);
|
|
922
922
|
}
|
|
923
|
-
|
|
923
|
+
N.Jb = function(e) {
|
|
924
924
|
var t = this.o[0];
|
|
925
925
|
if (!t || t.node.type !== "Program")
|
|
926
926
|
throw Error("Expecting original AST to start with a Program node");
|
|
927
927
|
if (typeof e == "string" && (e = ke(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
928
928
|
throw Error("Expecting new AST to start with a Program node");
|
|
929
|
-
|
|
929
|
+
Je(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
930
930
|
};
|
|
931
|
-
|
|
931
|
+
N.lb = function() {
|
|
932
932
|
var e = this.o, t;
|
|
933
933
|
do {
|
|
934
934
|
var n = e[e.length - 1];
|
|
@@ -966,7 +966,7 @@ b.lb = function() {
|
|
|
966
966
|
} while (!r.end && t > Date.now());
|
|
967
967
|
return !0;
|
|
968
968
|
};
|
|
969
|
-
|
|
969
|
+
N.Eb = function() {
|
|
970
970
|
for (; !this.za && this.lb(); )
|
|
971
971
|
;
|
|
972
972
|
return this.za;
|
|
@@ -997,7 +997,7 @@ function Dn(e, t) {
|
|
|
997
997
|
Fr(e, s);
|
|
998
998
|
}, e.g(t, "clearInterval", e.i(n, !1), y), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
999
999
|
}
|
|
1000
|
-
|
|
1000
|
+
N.Wb = 0;
|
|
1001
1001
|
function _n(e, t) {
|
|
1002
1002
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1003
1003
|
var s = arguments.length ? String(arguments[arguments.length - 1]) : "", a = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1052,7 +1052,7 @@ function Un(e, t) {
|
|
|
1052
1052
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1053
1053
|
return o === null ? e.s(null) : (o instanceof j || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1054
1054
|
}, e.g(e.v, "create", e.i(r, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, s, a) {
|
|
1055
|
-
return s = String(s), o instanceof j || w(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof j || w(e, e.j, "Property description must be an object"), !o.preventExtensions || s in o.h || w(e, e.j, "Can't define property '" + s + "', object is not extensible"), e.g(o, s,
|
|
1055
|
+
return s = String(s), o instanceof j || w(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof j || w(e, e.j, "Property description must be an object"), !o.preventExtensions || s in o.h || w(e, e.j, "Can't define property '" + s + "', object is not extensible"), e.g(o, s, He, a.h), o;
|
|
1056
1056
|
}, e.g(e.v, "defineProperty", e.i(r, !1), y), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, s) {
|
|
1057
1057
|
if (o instanceof j || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), s = String(s), s in o.h) {
|
|
1058
1058
|
var a = Object.getOwnPropertyDescriptor(o.h, s), f = o.V[s];
|
|
@@ -1289,13 +1289,13 @@ function Xn(e, t) {
|
|
|
1289
1289
|
function n(r) {
|
|
1290
1290
|
var o = e.i(function(s) {
|
|
1291
1291
|
var a = le(e) ? this : e.Aa(o);
|
|
1292
|
-
return
|
|
1292
|
+
return Gt(e, a, s), a;
|
|
1293
1293
|
}, !0);
|
|
1294
1294
|
return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name", r, y), e.g(t, r, o, y), o;
|
|
1295
1295
|
}
|
|
1296
1296
|
e.D = e.i(function(r) {
|
|
1297
1297
|
var o = le(e) ? this : e.Aa(e.D);
|
|
1298
|
-
return
|
|
1298
|
+
return Gt(e, o, r), o;
|
|
1299
1299
|
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1300
1300
|
}
|
|
1301
1301
|
function Hn(e, t) {
|
|
@@ -1343,7 +1343,7 @@ function G(e, t, n) {
|
|
|
1343
1343
|
function zt(e, t, n) {
|
|
1344
1344
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, z), e.g(t, "global", n.global, z), e.g(t, "ignoreCase", n.ignoreCase, z), e.g(t, "multiline", n.multiline, z);
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function Gt(e, t, n) {
|
|
1347
1347
|
n && e.g(t, "message", String(n), y), n = [];
|
|
1348
1348
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1349
1349
|
var o = e.o[r], s = o.node;
|
|
@@ -1360,7 +1360,7 @@ function Wt(e, t, n) {
|
|
|
1360
1360
|
}
|
|
1361
1361
|
e.g(t, "stack", s.trim(), y);
|
|
1362
1362
|
}
|
|
1363
|
-
|
|
1363
|
+
N.ha = function() {
|
|
1364
1364
|
var e = this.ha.Mb;
|
|
1365
1365
|
return e || (e = new Blob([Mn.join(`
|
|
1366
1366
|
`)], {
|
|
@@ -1406,10 +1406,10 @@ function Fe(e, t, n, r) {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1408
1408
|
}
|
|
1409
|
-
|
|
1409
|
+
N.Aa = function(e) {
|
|
1410
1410
|
return this.s(e && e.h.prototype);
|
|
1411
1411
|
};
|
|
1412
|
-
|
|
1412
|
+
N.s = function(e) {
|
|
1413
1413
|
if (typeof e != "object")
|
|
1414
1414
|
throw Error("Non object prototype");
|
|
1415
1415
|
return e = new j(e), G(this, e, this.D) && (e.H = "Error"), e;
|
|
@@ -1430,14 +1430,14 @@ function Yt(e, t, n, r) {
|
|
|
1430
1430
|
var o = Kt(e, t.oa.length, !0);
|
|
1431
1431
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", z), o;
|
|
1432
1432
|
}
|
|
1433
|
-
|
|
1433
|
+
N.i = function(e, t) {
|
|
1434
1434
|
return t = Kt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, z), t;
|
|
1435
1435
|
};
|
|
1436
|
-
|
|
1436
|
+
N.ub = function(e) {
|
|
1437
1437
|
var t = Kt(this, e.length, !0);
|
|
1438
1438
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, z), t;
|
|
1439
1439
|
};
|
|
1440
|
-
|
|
1440
|
+
N.Ia = function(e) {
|
|
1441
1441
|
if (e instanceof j)
|
|
1442
1442
|
throw Error("Object is already pseudo");
|
|
1443
1443
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
@@ -1468,7 +1468,7 @@ b.Ia = function(e) {
|
|
|
1468
1468
|
this.g(t, r, this.Ia(e[r]));
|
|
1469
1469
|
return t;
|
|
1470
1470
|
};
|
|
1471
|
-
|
|
1471
|
+
N.R = function(e, t) {
|
|
1472
1472
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1473
1473
|
return e;
|
|
1474
1474
|
if (!(e instanceof j))
|
|
@@ -1487,7 +1487,7 @@ b.R = function(e, t) {
|
|
|
1487
1487
|
if (t.hb.push(e), G(this, e, this.qa)) {
|
|
1488
1488
|
n = [], t.Sa.push(n);
|
|
1489
1489
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1490
|
-
|
|
1490
|
+
ut(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1491
1491
|
} else
|
|
1492
1492
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1493
1493
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1520,7 +1520,7 @@ function ae(e, t) {
|
|
|
1520
1520
|
}
|
|
1521
1521
|
return t ? t.xa : null;
|
|
1522
1522
|
}
|
|
1523
|
-
|
|
1523
|
+
N.G = function(e, t) {
|
|
1524
1524
|
if (this.P)
|
|
1525
1525
|
throw Error("Getter not supported in that context");
|
|
1526
1526
|
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof j))
|
|
@@ -1538,7 +1538,7 @@ b.G = function(e, t) {
|
|
|
1538
1538
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1539
1539
|
while (e = ae(this, e));
|
|
1540
1540
|
};
|
|
1541
|
-
function
|
|
1541
|
+
function ut(e, t, n) {
|
|
1542
1542
|
if (!(t instanceof j))
|
|
1543
1543
|
throw TypeError("Primitive data type has no properties");
|
|
1544
1544
|
if (n = String(n), n === "length" && G(e, t, e.J))
|
|
@@ -1554,7 +1554,7 @@ function lt(e, t, n) {
|
|
|
1554
1554
|
while (t = ae(e, t));
|
|
1555
1555
|
return !1;
|
|
1556
1556
|
}
|
|
1557
|
-
|
|
1557
|
+
N.g = function(e, t, n, r) {
|
|
1558
1558
|
if (this.Ka)
|
|
1559
1559
|
throw Error("Setter not supported in that context");
|
|
1560
1560
|
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof j))
|
|
@@ -1585,7 +1585,7 @@ b.g = function(e, t, n, r) {
|
|
|
1585
1585
|
isNaN(a = $e(t)) || (e.h.length = Math.max(s, a + 1));
|
|
1586
1586
|
if (!e.preventExtensions || t in e.h)
|
|
1587
1587
|
if (r) {
|
|
1588
|
-
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !==
|
|
1588
|
+
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== He && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
1589
1589
|
try {
|
|
1590
1590
|
Object.defineProperty(e.h, t, o);
|
|
1591
1591
|
} catch {
|
|
@@ -1593,7 +1593,7 @@ b.g = function(e, t, n, r) {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1595
1595
|
} else {
|
|
1596
|
-
if (n ===
|
|
1596
|
+
if (n === He)
|
|
1597
1597
|
throw ReferenceError("Value not specified");
|
|
1598
1598
|
for (r = e; !(t in r.h); )
|
|
1599
1599
|
if (r = ae(this, r), !r) {
|
|
@@ -1616,10 +1616,10 @@ b.g = function(e, t, n, r) {
|
|
|
1616
1616
|
} else
|
|
1617
1617
|
o && w(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1618
1618
|
};
|
|
1619
|
-
|
|
1619
|
+
N.g.ac = function() {
|
|
1620
1620
|
throw Error("Placeholder getter");
|
|
1621
1621
|
};
|
|
1622
|
-
|
|
1622
|
+
N.g.bc = function() {
|
|
1623
1623
|
throw Error("Placeholder setter");
|
|
1624
1624
|
};
|
|
1625
1625
|
function F(e, t, n, r) {
|
|
@@ -1633,7 +1633,7 @@ function Zt(e) {
|
|
|
1633
1633
|
throw Error("No scope found");
|
|
1634
1634
|
return e;
|
|
1635
1635
|
}
|
|
1636
|
-
function
|
|
1636
|
+
function $t(e, t, n) {
|
|
1637
1637
|
var r = !1;
|
|
1638
1638
|
if (n && n.S)
|
|
1639
1639
|
r = !0;
|
|
@@ -1641,7 +1641,7 @@ function Gt(e, t, n) {
|
|
|
1641
1641
|
var o = t.body && t.body[0];
|
|
1642
1642
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1643
1643
|
}
|
|
1644
|
-
return o = e.s(null), r = new Zr(n, r, o), n || Dn(e, r.object),
|
|
1644
|
+
return o = e.s(null), r = new Zr(n, r, o), n || Dn(e, r.object), Je(e, t, r), r;
|
|
1645
1645
|
}
|
|
1646
1646
|
function Qt(e, t, n) {
|
|
1647
1647
|
if (!t)
|
|
@@ -1654,7 +1654,7 @@ function qt(e, t) {
|
|
|
1654
1654
|
return n.object.h[t];
|
|
1655
1655
|
n = n.Va;
|
|
1656
1656
|
}
|
|
1657
|
-
if (n === e.N &&
|
|
1657
|
+
if (n === e.N && ut(e, n.object, t))
|
|
1658
1658
|
return e.G(n.object, t);
|
|
1659
1659
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1660
1660
|
}
|
|
@@ -1670,11 +1670,11 @@ function Kr(e, t, n) {
|
|
|
1670
1670
|
}
|
|
1671
1671
|
r = r.Va;
|
|
1672
1672
|
}
|
|
1673
|
-
if (r === e.N && (!o ||
|
|
1673
|
+
if (r === e.N && (!o || ut(e, r.object, t)))
|
|
1674
1674
|
return e.g(r.object, t, n);
|
|
1675
1675
|
w(e, e.pb, t + " is not defined");
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function Je(e, t, n) {
|
|
1678
1678
|
if (t.jb)
|
|
1679
1679
|
var r = t.jb;
|
|
1680
1680
|
else {
|
|
@@ -1707,12 +1707,12 @@ function He(e, t, n) {
|
|
|
1707
1707
|
if (Array.isArray(f)) {
|
|
1708
1708
|
for (o = 0; o < f.length; o++)
|
|
1709
1709
|
if (f[o] && f[o].constructor === s) {
|
|
1710
|
-
var d =
|
|
1710
|
+
var d = Je(e, f[o], n);
|
|
1711
1711
|
for (a in d)
|
|
1712
1712
|
r[a] = d[a];
|
|
1713
1713
|
}
|
|
1714
1714
|
} else if (f.constructor === s)
|
|
1715
|
-
for (a in d =
|
|
1715
|
+
for (a in d = Je(e, f, n), d)
|
|
1716
1716
|
r[a] = d[a];
|
|
1717
1717
|
}
|
|
1718
1718
|
}
|
|
@@ -1733,9 +1733,9 @@ function tr(e, t, n) {
|
|
|
1733
1733
|
return t[0] === Oe ? Kr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1734
1734
|
}
|
|
1735
1735
|
function w(e, t, n) {
|
|
1736
|
-
throw e.N ? (n !== void 0 && t instanceof j && (t = e.Aa(t),
|
|
1736
|
+
throw e.N ? (n !== void 0 && t instanceof j && (t = e.Aa(t), Gt(e, t, n)), ze(e, 4, t), Jr) : n === void 0 ? t : n;
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1738
|
+
function ze(e, t, n, r) {
|
|
1739
1739
|
if (t === 0)
|
|
1740
1740
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1741
1741
|
var o = e.o;
|
|
@@ -1824,7 +1824,7 @@ function Lr(e, t, n) {
|
|
|
1824
1824
|
} catch (v) {
|
|
1825
1825
|
w(e, e.T, "Invalid code: " + v.message);
|
|
1826
1826
|
}
|
|
1827
|
-
a.type = "EvalProgram_", a.body = d.body, r = r.node.arguments[0],
|
|
1827
|
+
a.type = "EvalProgram_", a.body = d.body, r = r.node.arguments[0], lt(a, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1828
1828
|
}
|
|
1829
1829
|
return t = new zn(f, o, r, a, t ? n : -1), Yr(e, t, n), t.Db;
|
|
1830
1830
|
}
|
|
@@ -1840,7 +1840,7 @@ function Fr(e, t) {
|
|
|
1840
1840
|
break;
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function Ke(e, t, n) {
|
|
1844
1844
|
if (!e.P)
|
|
1845
1845
|
throw Error("Unexpected call to createGetter");
|
|
1846
1846
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
@@ -1854,16 +1854,16 @@ function rr(e, t, n, r) {
|
|
|
1854
1854
|
var o = e.ya();
|
|
1855
1855
|
return o.type = "CallExpression", e = new m(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function Dt(e, t) {
|
|
1858
1858
|
return t == null ? e.Na : t instanceof j ? t : (e = e.s(ae(e, t)), e.data = t, e);
|
|
1859
1859
|
}
|
|
1860
|
-
|
|
1860
|
+
N.Xb = function() {
|
|
1861
1861
|
return this.N;
|
|
1862
1862
|
};
|
|
1863
|
-
|
|
1863
|
+
N.Yb = function() {
|
|
1864
1864
|
return this.o;
|
|
1865
1865
|
};
|
|
1866
|
-
|
|
1866
|
+
N.ec = function(e) {
|
|
1867
1867
|
this.o = e;
|
|
1868
1868
|
};
|
|
1869
1869
|
function m(e, t) {
|
|
@@ -1875,11 +1875,11 @@ function Zr(e, t, n) {
|
|
|
1875
1875
|
function j(e) {
|
|
1876
1876
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1877
1877
|
}
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1878
|
+
N = j.prototype;
|
|
1879
|
+
N.xa = null;
|
|
1880
|
+
N.H = "Object";
|
|
1881
|
+
N.data = null;
|
|
1882
|
+
N.toString = function() {
|
|
1883
1883
|
if (!Ge)
|
|
1884
1884
|
return "[object Interpreter.Object]";
|
|
1885
1885
|
if (!(this instanceof j))
|
|
@@ -1927,7 +1927,7 @@ b.toString = function() {
|
|
|
1927
1927
|
}
|
|
1928
1928
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1929
1929
|
};
|
|
1930
|
-
|
|
1930
|
+
N.valueOf = function() {
|
|
1931
1931
|
return !Ge || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1932
1932
|
};
|
|
1933
1933
|
function zn(e, t, n, r, o) {
|
|
@@ -1948,7 +1948,7 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
1948
1948
|
if (!t.ja)
|
|
1949
1949
|
return t.ja = !0, t = new m(n.left, t.scope), t.sa = !0, t;
|
|
1950
1950
|
if (!t.Da)
|
|
1951
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = er(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0,
|
|
1951
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = er(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ke(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new m(n.right, t.scope));
|
|
1952
1952
|
if (t.ta)
|
|
1953
1953
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1954
1954
|
else {
|
|
@@ -2064,7 +2064,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2064
2064
|
n = r >>> t;
|
|
2065
2065
|
break;
|
|
2066
2066
|
case "in":
|
|
2067
|
-
t instanceof j || w(this, this.j, "'in' expects an object, not '" + t + "'"), n =
|
|
2067
|
+
t instanceof j || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = ut(this, t, r);
|
|
2068
2068
|
break;
|
|
2069
2069
|
case "instanceof":
|
|
2070
2070
|
G(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof j ? G(this, r, t) : !1;
|
|
@@ -2081,7 +2081,7 @@ h.prototype.stepBlockStatement = function(e, t, n) {
|
|
|
2081
2081
|
e.pop();
|
|
2082
2082
|
};
|
|
2083
2083
|
h.prototype.stepBreakStatement = function(e, t, n) {
|
|
2084
|
-
|
|
2084
|
+
ze(this, 1, void 0, n.label && n.label.name);
|
|
2085
2085
|
};
|
|
2086
2086
|
h.prototype.Hb = 0;
|
|
2087
2087
|
h.prototype.stepCallExpression = function(e, t, n) {
|
|
@@ -2095,7 +2095,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2095
2095
|
var o = t.value;
|
|
2096
2096
|
if (Array.isArray(o)) {
|
|
2097
2097
|
if (t.U = er(this, o), o[0] === Oe ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2098
|
-
return t.ia = 1,
|
|
2098
|
+
return t.ia = 1, Ke(this, o, t.value);
|
|
2099
2099
|
} else
|
|
2100
2100
|
t.U = o;
|
|
2101
2101
|
t.F = [], t.A = 0;
|
|
@@ -2118,11 +2118,11 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2118
2118
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2119
2119
|
else {
|
|
2120
2120
|
if (t.eb = !0, o instanceof j || w(this, this.j, H(this, n.callee) + " is not a function"), e = o.node) {
|
|
2121
|
-
for (n =
|
|
2121
|
+
for (n = $t(this, e.body, o.Va), r = Ce(this), o = 0; o < t.F.length; o++)
|
|
2122
2122
|
this.g(r, o, t.F[o]);
|
|
2123
2123
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2124
2124
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2125
|
-
return n.S || (t.B =
|
|
2125
|
+
return n.S || (t.B = Dt(this, t.B)), this.g(n.object, "this", t.B, Ht), t.value = void 0, new m(e.body, n);
|
|
2126
2126
|
}
|
|
2127
2127
|
if (o.eval)
|
|
2128
2128
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2133,15 +2133,15 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2133
2133
|
} catch (f) {
|
|
2134
2134
|
w(this, this.T, "Invalid code: " + f.message);
|
|
2135
2135
|
}
|
|
2136
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body,
|
|
2136
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, lt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : Je(this, r, n), this.value = void 0, new m(o, n);
|
|
2137
2137
|
}
|
|
2138
2138
|
else if (o.Ta)
|
|
2139
|
-
t.scope.S || (t.B =
|
|
2139
|
+
t.scope.S || (t.B = Dt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2140
2140
|
else if (o.Za) {
|
|
2141
2141
|
var a = this;
|
|
2142
2142
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(f) {
|
|
2143
2143
|
t.value = f, a.za = !1;
|
|
2144
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2144
|
+
}), this.za = !0, t.scope.S || (t.B = Dt(this, t.B)), o.Za.apply(t.B, r);
|
|
2145
2145
|
} else
|
|
2146
2146
|
w(this, this.j, H(this, n.callee) + " is not callable");
|
|
2147
2147
|
}
|
|
@@ -2160,7 +2160,7 @@ h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
|
2160
2160
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2161
2161
|
};
|
|
2162
2162
|
h.prototype.stepContinueStatement = function(e, t, n) {
|
|
2163
|
-
|
|
2163
|
+
ze(this, 2, void 0, n.label && n.label.name);
|
|
2164
2164
|
};
|
|
2165
2165
|
h.prototype.stepDebuggerStatement = function(e) {
|
|
2166
2166
|
e.pop();
|
|
@@ -2259,7 +2259,7 @@ h.prototype.stepIdentifier = function(e, t, n) {
|
|
|
2259
2259
|
e[e.length - 1].value = [Oe, n.name];
|
|
2260
2260
|
else {
|
|
2261
2261
|
if (t = qt(this, n.name), this.P)
|
|
2262
|
-
return
|
|
2262
|
+
return Ke(this, t, this.Na);
|
|
2263
2263
|
e[e.length - 1].value = t;
|
|
2264
2264
|
}
|
|
2265
2265
|
};
|
|
@@ -2296,7 +2296,7 @@ h.prototype.stepMemberExpression = function(e, t, n) {
|
|
|
2296
2296
|
e[e.length - 1].value = [t.u, n];
|
|
2297
2297
|
else {
|
|
2298
2298
|
if (n = this.G(t.u, n), this.P)
|
|
2299
|
-
return
|
|
2299
|
+
return Ke(this, n, t.u);
|
|
2300
2300
|
e[e.length - 1].value = n;
|
|
2301
2301
|
}
|
|
2302
2302
|
};
|
|
@@ -2319,7 +2319,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2319
2319
|
return t.Pa = s, new m(o.value, t.scope);
|
|
2320
2320
|
}
|
|
2321
2321
|
for (a in t.Ja)
|
|
2322
|
-
n = t.Ja[a], "get" in n || "set" in n ? this.g(t.u, a,
|
|
2322
|
+
n = t.Ja[a], "get" in n || "set" in n ? this.g(t.u, a, He, {
|
|
2323
2323
|
configurable: !0,
|
|
2324
2324
|
enumerable: !0,
|
|
2325
2325
|
get: n.get,
|
|
@@ -2335,7 +2335,7 @@ h.prototype.stepProgram = function(e, t, n) {
|
|
|
2335
2335
|
h.prototype.stepReturnStatement = function(e, t, n) {
|
|
2336
2336
|
if (n.K && !t.ka)
|
|
2337
2337
|
return t.ka = !0, new m(n.K, t.scope);
|
|
2338
|
-
|
|
2338
|
+
ze(this, 3, t.value);
|
|
2339
2339
|
};
|
|
2340
2340
|
h.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2341
2341
|
var r = t.A || 0;
|
|
@@ -2386,7 +2386,7 @@ h.prototype.stepTryStatement = function(e, t, n) {
|
|
|
2386
2386
|
return t.Tb = !0, e = Qt(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new m(n.Ea.body, e);
|
|
2387
2387
|
if (!t.Sb && n.fb)
|
|
2388
2388
|
return t.Sb = !0, new m(n.fb, t.scope);
|
|
2389
|
-
e.pop(), t.ea &&
|
|
2389
|
+
e.pop(), t.ea && ze(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2390
2390
|
};
|
|
2391
2391
|
h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2392
2392
|
if (!t.ka)
|
|
@@ -2435,7 +2435,7 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2435
2435
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2436
2436
|
var r = er(this, t.Ga);
|
|
2437
2437
|
if (t.ma = r, this.P)
|
|
2438
|
-
return t.Ba = !0,
|
|
2438
|
+
return t.Ba = !0, Ke(this, r, t.Ga);
|
|
2439
2439
|
}
|
|
2440
2440
|
if (t.ta)
|
|
2441
2441
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
@@ -2480,7 +2480,7 @@ h.prototype.pseudoToNative = h.prototype.R;
|
|
|
2480
2480
|
h.prototype.getGlobalScope = h.prototype.Xb;
|
|
2481
2481
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2482
2482
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2483
|
-
h.VALUE_IN_DESCRIPTOR =
|
|
2483
|
+
h.VALUE_IN_DESCRIPTOR = He;
|
|
2484
2484
|
function Yn() {
|
|
2485
2485
|
const e = h.prototype.getProperty, t = h.prototype.setProperty;
|
|
2486
2486
|
function n(a, f) {
|
|
@@ -2566,13 +2566,13 @@ const eo = ({
|
|
|
2566
2566
|
return !1;
|
|
2567
2567
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), r = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
2568
2568
|
return t && n && !r ? (e && Xr.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2569
|
-
}, to = (e) =>
|
|
2569
|
+
}, to = (e) => Ft() || eo({
|
|
2570
2570
|
shouldLogWarning: !0
|
|
2571
2571
|
}) ? Rn(e) : Qn(e), ro = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, no = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, oo = (e) => {
|
|
2572
2572
|
var t, n, r, o, s, a;
|
|
2573
2573
|
return ((r = (n = (t = ro.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : r.slice(1)) || ((a = (s = (o = no.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : s.getPath) == null ? void 0 : a.slice(1));
|
|
2574
2574
|
};
|
|
2575
|
-
function
|
|
2575
|
+
function ct({
|
|
2576
2576
|
code: e,
|
|
2577
2577
|
context: t,
|
|
2578
2578
|
localState: n,
|
|
@@ -2590,10 +2590,10 @@ function ut({
|
|
|
2590
2590
|
...n
|
|
2591
2591
|
}, f);
|
|
2592
2592
|
const d = {
|
|
2593
|
-
code:
|
|
2593
|
+
code: bn(e, {
|
|
2594
2594
|
isExpression: a
|
|
2595
2595
|
}),
|
|
2596
|
-
builder:
|
|
2596
|
+
builder: Nn(),
|
|
2597
2597
|
context: t,
|
|
2598
2598
|
event: s,
|
|
2599
2599
|
rootSetState: o,
|
|
@@ -2622,7 +2622,7 @@ const so = (e, t) => {
|
|
|
2622
2622
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((r = e.component.options) != null && r.text) && typeof e.component.options.text == "string")
|
|
2623
2623
|
return {
|
|
2624
2624
|
...e.component.options,
|
|
2625
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, s) =>
|
|
2625
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, s) => ct({
|
|
2626
2626
|
code: s,
|
|
2627
2627
|
context: t,
|
|
2628
2628
|
localState: t.localState,
|
|
@@ -2684,19 +2684,19 @@ const qr = (e) => JSON.parse(JSON.stringify(e)), fo = (e, t, n) => {
|
|
|
2684
2684
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
2685
2685
|
return r.slice(0, -1).reduce((o, s, a) => Object(o[s]) === o[s] ? o[s] : o[s] = Math.abs(Number(r[a + 1])) >> 0 === +r[a + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
2686
2686
|
};
|
|
2687
|
-
function
|
|
2687
|
+
function Vt(e) {
|
|
2688
2688
|
if (e === null || typeof e != "object")
|
|
2689
2689
|
return e;
|
|
2690
2690
|
if (Array.isArray(e))
|
|
2691
|
-
return e.map((n) =>
|
|
2691
|
+
return e.map((n) => Vt(n));
|
|
2692
2692
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
2693
2693
|
return e;
|
|
2694
2694
|
const t = {};
|
|
2695
2695
|
for (const n in e)
|
|
2696
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
2696
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Vt(e[n]));
|
|
2697
2697
|
return t;
|
|
2698
2698
|
}
|
|
2699
|
-
const po = ["svelte", "vue", "angular", "qwik", "solid"].includes(
|
|
2699
|
+
const po = ["svelte", "vue", "angular", "qwik", "solid"].includes(at), ho = (e) => {
|
|
2700
2700
|
if (po) {
|
|
2701
2701
|
const t = qr(e);
|
|
2702
2702
|
return {
|
|
@@ -2709,7 +2709,7 @@ const po = ["svelte", "vue", "angular", "qwik", "solid"].includes(st), ho = (e)
|
|
|
2709
2709
|
}
|
|
2710
2710
|
};
|
|
2711
2711
|
} else {
|
|
2712
|
-
const t =
|
|
2712
|
+
const t = Vt(ao(e, "children", "meta"));
|
|
2713
2713
|
return {
|
|
2714
2714
|
...t,
|
|
2715
2715
|
properties: {
|
|
@@ -2733,7 +2733,7 @@ const po = ["svelte", "vue", "angular", "qwik", "solid"].includes(st), ho = (e)
|
|
|
2733
2733
|
return e;
|
|
2734
2734
|
const s = ho(e);
|
|
2735
2735
|
for (const a in e.bindings) {
|
|
2736
|
-
const f = e.bindings[a], d =
|
|
2736
|
+
const f = e.bindings[a], d = ct({
|
|
2737
2737
|
code: f,
|
|
2738
2738
|
localState: n,
|
|
2739
2739
|
rootState: r,
|
|
@@ -2760,7 +2760,7 @@ function yo({
|
|
|
2760
2760
|
context: t
|
|
2761
2761
|
});
|
|
2762
2762
|
}
|
|
2763
|
-
const
|
|
2763
|
+
const ft = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
2764
2764
|
function mo(e, t, n = {}) {
|
|
2765
2765
|
let r, o, s, a = null, f = 0;
|
|
2766
2766
|
const d = function() {
|
|
@@ -2818,7 +2818,7 @@ function xo(e) {
|
|
|
2818
2818
|
}
|
|
2819
2819
|
Array.from(t).forEach((n) => {
|
|
2820
2820
|
tn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Ve(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2821
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2821
|
+
n.style.transition = `all ${e.duration}s ${ft(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Ve(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2822
2822
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2823
2823
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2824
2824
|
});
|
|
@@ -2852,7 +2852,7 @@ function So(e) {
|
|
|
2852
2852
|
Ve(n.style, d);
|
|
2853
2853
|
}
|
|
2854
2854
|
v(), setTimeout(() => {
|
|
2855
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2855
|
+
n.style.transition = `all ${e.duration}s ${ft(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
2856
2856
|
}), document.addEventListener("scroll", a, {
|
|
2857
2857
|
capture: !0,
|
|
2858
2858
|
passive: !0
|
|
@@ -2861,7 +2861,7 @@ function So(e) {
|
|
|
2861
2861
|
}
|
|
2862
2862
|
const rn = (e) => Object.entries(e).map(([n, r]) => {
|
|
2863
2863
|
if (typeof r == "string")
|
|
2864
|
-
return `${
|
|
2864
|
+
return `${ft(n)}: ${r};`;
|
|
2865
2865
|
}).filter(ot), Eo = (e) => rn(e).join(`
|
|
2866
2866
|
`), De = ({
|
|
2867
2867
|
mediaQuery: e,
|
|
@@ -2889,7 +2889,7 @@ const Co = ({
|
|
|
2889
2889
|
block: e
|
|
2890
2890
|
}));
|
|
2891
2891
|
function Oo(e) {
|
|
2892
|
-
switch (
|
|
2892
|
+
switch (at) {
|
|
2893
2893
|
case "svelte":
|
|
2894
2894
|
case "vue":
|
|
2895
2895
|
case "solid":
|
|
@@ -2929,7 +2929,7 @@ const nn = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
2929
2929
|
} = e;
|
|
2930
2930
|
if (!(n != null && n.collection))
|
|
2931
2931
|
return;
|
|
2932
|
-
const o =
|
|
2932
|
+
const o = ct({
|
|
2933
2933
|
code: n.collection,
|
|
2934
2934
|
localState: t.localState,
|
|
2935
2935
|
rootState: t.rootState,
|
|
@@ -2967,7 +2967,7 @@ const nn = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
2967
2967
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
2968
2968
|
builderBlock: t
|
|
2969
2969
|
} : {};
|
|
2970
|
-
},
|
|
2970
|
+
}, No = (e, t) => {
|
|
2971
2971
|
var n;
|
|
2972
2972
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
2973
2973
|
builderContext: t
|
|
@@ -2993,7 +2993,7 @@ const nn = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
2993
2993
|
default: 991,
|
|
2994
2994
|
max: 1200
|
|
2995
2995
|
}
|
|
2996
|
-
},
|
|
2996
|
+
}, _t = (e, t = on) => `@media (max-width: ${t[e].max}px)`, bo = (e) => {
|
|
2997
2997
|
const t = qr(on);
|
|
2998
2998
|
if (!e)
|
|
2999
2999
|
return t;
|
|
@@ -3049,7 +3049,7 @@ function Bo(e) {
|
|
|
3049
3049
|
}
|
|
3050
3050
|
function n() {
|
|
3051
3051
|
var ue, je, Ae, B, Z;
|
|
3052
|
-
const r = e.block, o = r.responsiveStyles, s = e.context.content, a =
|
|
3052
|
+
const r = e.block, o = r.responsiveStyles, s = e.context.content, a = bo(
|
|
3053
3053
|
((ue = s == null ? void 0 : s.meta) == null ? void 0 : ue.breakpoints) || {}
|
|
3054
3054
|
), f = !!((Ae = (je = s == null ? void 0 : s.meta) == null ? void 0 : je.breakpoints) != null && Ae.xsmall), d = o == null ? void 0 : o.large, v = o == null ? void 0 : o.medium, I = o == null ? void 0 : o.small, A = o == null ? void 0 : o.xsmall, W = r.id;
|
|
3055
3055
|
if (!W)
|
|
@@ -3060,21 +3060,21 @@ function Bo(e) {
|
|
|
3060
3060
|
}) : "", P = v ? De({
|
|
3061
3061
|
className: W,
|
|
3062
3062
|
styles: v,
|
|
3063
|
-
mediaQuery:
|
|
3063
|
+
mediaQuery: _t(
|
|
3064
3064
|
"medium",
|
|
3065
3065
|
a
|
|
3066
3066
|
)
|
|
3067
3067
|
}) : "", O = I ? De({
|
|
3068
3068
|
className: W,
|
|
3069
3069
|
styles: I,
|
|
3070
|
-
mediaQuery:
|
|
3070
|
+
mediaQuery: _t(
|
|
3071
3071
|
"small",
|
|
3072
3072
|
a
|
|
3073
3073
|
)
|
|
3074
3074
|
}) : "", R = A && f ? De({
|
|
3075
3075
|
className: W,
|
|
3076
3076
|
styles: A,
|
|
3077
|
-
mediaQuery:
|
|
3077
|
+
mediaQuery: _t(
|
|
3078
3078
|
"xsmall",
|
|
3079
3079
|
a
|
|
3080
3080
|
)
|
|
@@ -3086,7 +3086,7 @@ function Bo(e) {
|
|
|
3086
3086
|
className: `${W}:hover`,
|
|
3087
3087
|
styles: {
|
|
3088
3088
|
...x,
|
|
3089
|
-
transition: `all ${_.duration}s ${
|
|
3089
|
+
transition: `all ${_.duration}s ${ft(
|
|
3090
3090
|
_.easing
|
|
3091
3091
|
)}`,
|
|
3092
3092
|
transitionDelay: _.delay ? `${_.delay}s` : "0s"
|
|
@@ -3113,7 +3113,7 @@ function Bo(e) {
|
|
|
3113
3113
|
function Mo(e) {
|
|
3114
3114
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3115
3115
|
}
|
|
3116
|
-
const Do = (e) => `on${Mo(e)}`, _o = (e, t) => (n) =>
|
|
3116
|
+
const Do = (e) => `on${Mo(e)}`, _o = (e, t) => (n) => ct({
|
|
3117
3117
|
code: e,
|
|
3118
3118
|
context: t.context,
|
|
3119
3119
|
localState: t.localState,
|
|
@@ -3131,7 +3131,7 @@ function sn(e) {
|
|
|
3131
3131
|
const s = n[o];
|
|
3132
3132
|
let a = Do(o);
|
|
3133
3133
|
if (e.stripPrefix)
|
|
3134
|
-
switch (
|
|
3134
|
+
switch (at) {
|
|
3135
3135
|
case "vue":
|
|
3136
3136
|
a = a.replace("v-on:", "");
|
|
3137
3137
|
break;
|
|
@@ -3194,7 +3194,7 @@ function Fo(e) {
|
|
|
3194
3194
|
);
|
|
3195
3195
|
}
|
|
3196
3196
|
function Wo(e) {
|
|
3197
|
-
return
|
|
3197
|
+
return Xe(() => {
|
|
3198
3198
|
}, []), /* @__PURE__ */ T(J, { children: e.children });
|
|
3199
3199
|
}
|
|
3200
3200
|
function Go(e) {
|
|
@@ -3256,7 +3256,7 @@ const $o = ({
|
|
|
3256
3256
|
};
|
|
3257
3257
|
function Gr(e) {
|
|
3258
3258
|
var r;
|
|
3259
|
-
const [t, n] =
|
|
3259
|
+
const [t, n] = st(
|
|
3260
3260
|
() => e.isInteractive ? Go : e.componentRef
|
|
3261
3261
|
);
|
|
3262
3262
|
return /* @__PURE__ */ T(J, { children: e.componentRef ? /* @__PURE__ */ T(J, { children: /* @__PURE__ */ T(
|
|
@@ -3273,7 +3273,7 @@ function Gr(e) {
|
|
|
3273
3273
|
contextValue: e.context
|
|
3274
3274
|
}),
|
|
3275
3275
|
children: (r = e.blockChildren) == null ? void 0 : r.map((o) => /* @__PURE__ */ T(
|
|
3276
|
-
|
|
3276
|
+
pt,
|
|
3277
3277
|
{
|
|
3278
3278
|
block: o,
|
|
3279
3279
|
context: e.context,
|
|
@@ -3286,9 +3286,9 @@ function Gr(e) {
|
|
|
3286
3286
|
) }) : null });
|
|
3287
3287
|
}
|
|
3288
3288
|
function $r(e) {
|
|
3289
|
-
const [t, n] =
|
|
3289
|
+
const [t, n] = st(() => e.repeatContext);
|
|
3290
3290
|
return /* @__PURE__ */ T(Vr.Provider, { value: t, children: /* @__PURE__ */ T(
|
|
3291
|
-
|
|
3291
|
+
pt,
|
|
3292
3292
|
{
|
|
3293
3293
|
block: e.block,
|
|
3294
3294
|
context: t,
|
|
@@ -3297,7 +3297,7 @@ function $r(e) {
|
|
|
3297
3297
|
}
|
|
3298
3298
|
) });
|
|
3299
3299
|
}
|
|
3300
|
-
function
|
|
3300
|
+
function pt(e) {
|
|
3301
3301
|
var I, A, W, V;
|
|
3302
3302
|
function t() {
|
|
3303
3303
|
return Ao({
|
|
@@ -3305,7 +3305,7 @@ function ft(e) {
|
|
|
3305
3305
|
context: e.context
|
|
3306
3306
|
});
|
|
3307
3307
|
}
|
|
3308
|
-
const [n, r] =
|
|
3308
|
+
const [n, r] = st(() => ({
|
|
3309
3309
|
value: null,
|
|
3310
3310
|
update: !1
|
|
3311
3311
|
}));
|
|
@@ -3352,7 +3352,7 @@ function ft(e) {
|
|
|
3352
3352
|
componentOptions: {
|
|
3353
3353
|
...io(o(), e.context),
|
|
3354
3354
|
...Po(s(), o()),
|
|
3355
|
-
...
|
|
3355
|
+
...No(s(), e.context),
|
|
3356
3356
|
...Io(s(), e.linkComponent),
|
|
3357
3357
|
...To(
|
|
3358
3358
|
s(),
|
|
@@ -3365,10 +3365,10 @@ function ft(e) {
|
|
|
3365
3365
|
registeredComponents: e.registeredComponents,
|
|
3366
3366
|
builderBlock: o(),
|
|
3367
3367
|
includeBlockProps: ((R = s == null ? void 0 : s()) == null ? void 0 : R.noWrap) === !0,
|
|
3368
|
-
isInteractive: !((_ = s == null ? void 0 : s()) != null && _.isRSC &&
|
|
3368
|
+
isInteractive: !((_ = s == null ? void 0 : s()) != null && _.isRSC && at === "rsc")
|
|
3369
3369
|
};
|
|
3370
3370
|
}
|
|
3371
|
-
return
|
|
3371
|
+
return Xe(() => {
|
|
3372
3372
|
const P = o().id, O = o().animations;
|
|
3373
3373
|
O && P && vo(
|
|
3374
3374
|
O.map((R) => ({
|
|
@@ -3376,9 +3376,9 @@ function ft(e) {
|
|
|
3376
3376
|
elementId: P
|
|
3377
3377
|
}))
|
|
3378
3378
|
);
|
|
3379
|
-
}, []),
|
|
3379
|
+
}, []), Xe(() => {
|
|
3380
3380
|
n.update = !0;
|
|
3381
|
-
}), /* @__PURE__ */ T(J, { children: f() ? /* @__PURE__ */
|
|
3381
|
+
}), /* @__PURE__ */ T(J, { children: f() ? /* @__PURE__ */ Ut(J, { children: [
|
|
3382
3382
|
/* @__PURE__ */ T(Bo, { block: o(), context: e.context }),
|
|
3383
3383
|
(I = s == null ? void 0 : s()) != null && I.noWrap ? t() ? /* @__PURE__ */ T(J, { children: (V = t()) == null ? void 0 : V.map((P, O) => /* @__PURE__ */ T(
|
|
3384
3384
|
$r,
|
|
@@ -3411,7 +3411,7 @@ function ft(e) {
|
|
|
3411
3411
|
linkComponent: e.linkComponent
|
|
3412
3412
|
},
|
|
3413
3413
|
O
|
|
3414
|
-
)) }) : /* @__PURE__ */
|
|
3414
|
+
)) }) : /* @__PURE__ */ Ut(
|
|
3415
3415
|
Fo,
|
|
3416
3416
|
{
|
|
3417
3417
|
Wrapper: a(),
|
|
@@ -3433,7 +3433,7 @@ function ft(e) {
|
|
|
3433
3433
|
}
|
|
3434
3434
|
),
|
|
3435
3435
|
(A = d()) == null ? void 0 : A.map((P) => /* @__PURE__ */ T(
|
|
3436
|
-
|
|
3436
|
+
pt,
|
|
3437
3437
|
{
|
|
3438
3438
|
block: P,
|
|
3439
3439
|
registeredComponents: e.registeredComponents,
|
|
@@ -3449,6 +3449,7 @@ function ft(e) {
|
|
|
3449
3449
|
}
|
|
3450
3450
|
function Vo(e) {
|
|
3451
3451
|
const t = Cn(null);
|
|
3452
|
+
st(() => !1);
|
|
3452
3453
|
function n() {
|
|
3453
3454
|
var a;
|
|
3454
3455
|
return [
|
|
@@ -3465,7 +3466,7 @@ function Vo(e) {
|
|
|
3465
3466
|
}
|
|
3466
3467
|
function o() {
|
|
3467
3468
|
var a, f;
|
|
3468
|
-
|
|
3469
|
+
Lt() && !((a = e.blocks) != null && a.length) && ((f = window.parent) == null || f.postMessage(
|
|
3469
3470
|
{
|
|
3470
3471
|
type: "builder.clickEmptyBlocks",
|
|
3471
3472
|
data: {
|
|
@@ -3478,7 +3479,7 @@ function Vo(e) {
|
|
|
3478
3479
|
}
|
|
3479
3480
|
function s() {
|
|
3480
3481
|
var a, f;
|
|
3481
|
-
|
|
3482
|
+
Lt() && !((a = e.blocks) != null && a.length) && ((f = window.parent) == null || f.postMessage(
|
|
3482
3483
|
{
|
|
3483
3484
|
type: "builder.hoverEmptyBlocks",
|
|
3484
3485
|
data: {
|
|
@@ -3489,13 +3490,14 @@ function Vo(e) {
|
|
|
3489
3490
|
"*"
|
|
3490
3491
|
));
|
|
3491
3492
|
}
|
|
3492
|
-
return
|
|
3493
|
-
}, []),
|
|
3493
|
+
return Xe(() => {
|
|
3494
|
+
}, []), Xe(() => {
|
|
3495
|
+
}, [e.blocks]), /* @__PURE__ */ Ut(J, { children: [
|
|
3494
3496
|
/* @__PURE__ */ T(
|
|
3495
3497
|
e.BlocksWrapper,
|
|
3496
3498
|
{
|
|
3497
3499
|
ref: t,
|
|
3498
|
-
className: n() + " props-blocks-wrapper-
|
|
3500
|
+
className: n() + " props-blocks-wrapper-14802cff",
|
|
3499
3501
|
"builder-path": r(),
|
|
3500
3502
|
"builder-parent-id": e.parent,
|
|
3501
3503
|
style: e.styleProp,
|
|
@@ -3506,7 +3508,7 @@ function Vo(e) {
|
|
|
3506
3508
|
children: e.children
|
|
3507
3509
|
}
|
|
3508
3510
|
),
|
|
3509
|
-
/* @__PURE__ */ T("style", { children: `.props-blocks-wrapper-
|
|
3511
|
+
/* @__PURE__ */ T("style", { children: `.props-blocks-wrapper-14802cff {
|
|
3510
3512
|
display: flex;
|
|
3511
3513
|
flex-direction: column;
|
|
3512
3514
|
align-items: stretch;
|
|
@@ -3527,7 +3529,7 @@ function Xo(e) {
|
|
|
3527
3529
|
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
3528
3530
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
3529
3531
|
children: e.blocks ? /* @__PURE__ */ T(J, { children: (s = e.blocks) == null ? void 0 : s.map((a) => /* @__PURE__ */ T(
|
|
3530
|
-
|
|
3532
|
+
pt,
|
|
3531
3533
|
{
|
|
3532
3534
|
block: a,
|
|
3533
3535
|
linkComponent: e.linkComponent,
|
|
@@ -3548,10 +3550,10 @@ export {
|
|
|
3548
3550
|
Tn as ComponentsContext,
|
|
3549
3551
|
Ro as InlinedStyles,
|
|
3550
3552
|
Qo as blocks,
|
|
3551
|
-
|
|
3553
|
+
ct as evaluate,
|
|
3552
3554
|
qr as fastClone,
|
|
3553
3555
|
Pn as get,
|
|
3554
|
-
|
|
3556
|
+
bo as getSizesForBreakpoints,
|
|
3555
3557
|
Oo as mapStyleObjToStrIfNeeded,
|
|
3556
3558
|
fo as set,
|
|
3557
3559
|
xo as triggerAnimation
|