@builder.io/sdk-react-nextjs 0.16.1 → 0.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +11 -11
- package/lib/browser/blocks-exports.mjs +213 -211
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-8a4d2728.js → server-entry-242f596f.js} +1 -1
- package/lib/browser/{server-entry-555ce264.cjs → server-entry-494604dc.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +16 -16
- package/lib/edge/blocks-exports.mjs +243 -241
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{server-entry-8a4d2728.js → server-entry-242f596f.js} +1 -1
- package/lib/edge/{server-entry-555ce264.cjs → server-entry-494604dc.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +11 -11
- package/lib/node/blocks-exports.mjs +169 -167
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-753c71f6.js → node-runtime-42e494ca.js} +1 -1
- package/lib/node/{node-runtime-1e70fe16.cjs → node-runtime-e1243cd6.cjs} +1 -1
- package/lib/node/{server-entry-61a8c25a.cjs → server-entry-db7b41aa.cjs} +1 -1
- package/lib/node/{server-entry-e47775d7.js → server-entry-fbf4e3a9.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
|
@@ -3,7 +3,7 @@ var Vr = Object.defineProperty;
|
|
|
3
3
|
var _r = (e, t, n) => t in e ? Vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var Kt = (e, t, n) => (_r(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
5
|
import { jsx as y, Fragment as K, jsxs as se } from "react/jsx-runtime";
|
|
6
|
-
import { TARGET as it, isEditing as Ce, isBrowser as De, getUserAttributes as $r, logger as ot, checkIsDefined as yt, fastClone as Zt, init as Hr, getDefaultCanTrack as vt, _track as Gn, isPreviewing as Kr, createEditorListener as Gr, fetch as zr, registerInsertMenu as Yr, setupBrowserForEditing as Xr, createRegisterComponentMessage as Jr, fetchOneEntry as lr, serializeComponentInfo as zn, handleABTestingSync as qr } from "./server-entry-
|
|
6
|
+
import { TARGET as it, isEditing as Ce, isBrowser as De, getUserAttributes as $r, logger as ot, checkIsDefined as yt, fastClone as Zt, init as Hr, getDefaultCanTrack as vt, _track as Gn, isPreviewing as Kr, createEditorListener as Gr, fetch as zr, registerInsertMenu as Yr, setupBrowserForEditing as Xr, createRegisterComponentMessage as Jr, fetchOneEntry as lr, serializeComponentInfo as zn, handleABTestingSync as qr } from "./server-entry-242f596f.js";
|
|
7
7
|
import { useRef as Qt, useState as ye, useEffect as ie, createContext as Zr } from "react";
|
|
8
8
|
import { useRouter as Qr } from "next/navigation";
|
|
9
9
|
import "lru-cache";
|
|
@@ -129,7 +129,7 @@ const dr = (e, t, n) => {
|
|
|
129
129
|
};
|
|
130
130
|
var F, si = function(e) {
|
|
131
131
|
function t(o) {
|
|
132
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
132
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Ur.test(String.fromCharCode(o));
|
|
133
133
|
}
|
|
134
134
|
function n(o) {
|
|
135
135
|
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Kn.test(String.fromCharCode(o));
|
|
@@ -192,7 +192,7 @@ var F, si = function(e) {
|
|
|
192
192
|
break;
|
|
193
193
|
else if (o === 160)
|
|
194
194
|
++d;
|
|
195
|
-
else if (5760 <= o &&
|
|
195
|
+
else if (5760 <= o && Wr.test(String.fromCharCode(o)))
|
|
196
196
|
++d;
|
|
197
197
|
else
|
|
198
198
|
break;
|
|
@@ -222,7 +222,7 @@ var F, si = function(e) {
|
|
|
222
222
|
case 58:
|
|
223
223
|
return ++d, s(Ge);
|
|
224
224
|
case 63:
|
|
225
|
-
return ++d, s(
|
|
225
|
+
return ++d, s(Wn);
|
|
226
226
|
case 48:
|
|
227
227
|
if (o = S.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
228
228
|
d += 2, o = D(16), o === null && r(z + 2, "Expected hexadecimal number"), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), s(He, o);
|
|
@@ -265,13 +265,13 @@ var F, si = function(e) {
|
|
|
265
265
|
l += "\r";
|
|
266
266
|
break;
|
|
267
267
|
case 120:
|
|
268
|
-
l += String.fromCharCode(
|
|
268
|
+
l += String.fromCharCode(P(2));
|
|
269
269
|
break;
|
|
270
270
|
case 117:
|
|
271
|
-
l += String.fromCharCode(
|
|
271
|
+
l += String.fromCharCode(P(4));
|
|
272
272
|
break;
|
|
273
273
|
case 85:
|
|
274
|
-
l += String.fromCharCode(
|
|
274
|
+
l += String.fromCharCode(P(8));
|
|
275
275
|
break;
|
|
276
276
|
case 116:
|
|
277
277
|
l += " ";
|
|
@@ -301,7 +301,7 @@ var F, si = function(e) {
|
|
|
301
301
|
}
|
|
302
302
|
return;
|
|
303
303
|
case 47:
|
|
304
|
-
o = S.charCodeAt(d + 1), _e ? (++d, j()) : o === 61 ? m(Ae, 2) : m(
|
|
304
|
+
o = S.charCodeAt(d + 1), _e ? (++d, j()) : o === 61 ? m(Ae, 2) : m(Un, 1);
|
|
305
305
|
return;
|
|
306
306
|
case 37:
|
|
307
307
|
case 42:
|
|
@@ -337,10 +337,10 @@ var F, si = function(e) {
|
|
|
337
337
|
if (d >= je)
|
|
338
338
|
return s(Bt);
|
|
339
339
|
if (o = S.charCodeAt(d), n(o) || o === 92)
|
|
340
|
-
return
|
|
340
|
+
return O();
|
|
341
341
|
if (g(o) === !1) {
|
|
342
342
|
if (o = String.fromCharCode(o), o === "\\" || Kn.test(o))
|
|
343
|
-
return
|
|
343
|
+
return O();
|
|
344
344
|
r(d, "Unexpected character '" + o + "'");
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -365,7 +365,7 @@ var F, si = function(e) {
|
|
|
365
365
|
}
|
|
366
366
|
++d;
|
|
367
367
|
}
|
|
368
|
-
o = S.slice(u, d), ++d, (l =
|
|
368
|
+
o = S.slice(u, d), ++d, (l = _()) && !/^[gmi]*$/.test(l) && r(u, "Invalid regexp flag");
|
|
369
369
|
try {
|
|
370
370
|
var A = new RegExp(o, l);
|
|
371
371
|
} catch (Y) {
|
|
@@ -388,17 +388,17 @@ var F, si = function(e) {
|
|
|
388
388
|
var A;
|
|
389
389
|
u ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || re ? r(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s(He, A);
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function P(o) {
|
|
392
392
|
return o = D(16, o), o === null && r(z, "Bad character escape sequence"), o;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function _() {
|
|
395
395
|
Ne = !1;
|
|
396
396
|
for (var o, l = !0, u = d; ; ) {
|
|
397
397
|
var h = S.charCodeAt(d);
|
|
398
398
|
if (t(h))
|
|
399
399
|
Ne && (o += S.charAt(d)), ++d;
|
|
400
400
|
else if (h === 92) {
|
|
401
|
-
Ne || (o = S.slice(u, d)), Ne = !0, S.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h =
|
|
401
|
+
Ne || (o = S.slice(u, d)), Ne = !0, S.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = P(4);
|
|
402
402
|
var A = String.fromCharCode(h);
|
|
403
403
|
A || r(d - 1, "Invalid Unicode escape"), (l ? n(h) : t(h)) || r(d - 4, "Invalid Unicode escape"), o += A;
|
|
404
404
|
} else
|
|
@@ -407,14 +407,14 @@ var F, si = function(e) {
|
|
|
407
407
|
}
|
|
408
408
|
return Ne ? o : S.slice(u, d);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
var o =
|
|
410
|
+
function O() {
|
|
411
|
+
var o = _(), l = Oe;
|
|
412
412
|
!Ne && Dr(o) && (l = Ir[o]), s(l, o);
|
|
413
413
|
}
|
|
414
414
|
function v() {
|
|
415
415
|
Pt = z, Se = Re, Nt = Ot, b();
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function U(o) {
|
|
418
418
|
if (re = o, d = z, R.C)
|
|
419
419
|
for (; d < fe; )
|
|
420
420
|
fe = S.lastIndexOf(`
|
|
@@ -427,7 +427,7 @@ var F, si = function(e) {
|
|
|
427
427
|
function oe() {
|
|
428
428
|
this.start = Rt, this.end = null, jt && (this.source = jt);
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function $() {
|
|
431
431
|
var o = new G();
|
|
432
432
|
return R.C && (o.X = new oe()), R.vb && (o.sourceFile = R.vb), R.Xa && (o.j = [z, 0]), o;
|
|
433
433
|
}
|
|
@@ -448,26 +448,26 @@ var F, si = function(e) {
|
|
|
448
448
|
return !R.fc && (T === Bt || T === Pe || ht.test(S.slice(Se, z)));
|
|
449
449
|
}
|
|
450
450
|
function I() {
|
|
451
|
-
L(pe) || Ie() ||
|
|
451
|
+
L(pe) || Ie() || B();
|
|
452
452
|
}
|
|
453
453
|
function x(o) {
|
|
454
|
-
T === o ? v() :
|
|
454
|
+
T === o ? v() : B();
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function B() {
|
|
457
457
|
r(z, "Unexpected token");
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function W(o) {
|
|
460
460
|
o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"), re && o.type === "Identifier" && ft(o.name) && r(o.start, "Assigning to " + o.name + " in strict mode");
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
(T ===
|
|
464
|
-
var o = T, l =
|
|
462
|
+
function M() {
|
|
463
|
+
(T === Un || T === Ae && ae === "/=") && b(!0);
|
|
464
|
+
var o = T, l = $();
|
|
465
465
|
switch (o) {
|
|
466
466
|
case Mt:
|
|
467
467
|
case xn:
|
|
468
468
|
v();
|
|
469
469
|
var u = o === Mt;
|
|
470
|
-
L(pe) || Ie() ? l.label = null : T !== Oe ?
|
|
470
|
+
L(pe) || Ie() ? l.label = null : T !== Oe ? B() : (l.label = de(), I());
|
|
471
471
|
for (var h = 0; h < H.length; ++h) {
|
|
472
472
|
var A = H[h];
|
|
473
473
|
if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (u || A.kind === "loop") || l.label && u))
|
|
@@ -477,29 +477,29 @@ var F, si = function(e) {
|
|
|
477
477
|
case Sn:
|
|
478
478
|
return v(), I(), E(l, "DebuggerStatement");
|
|
479
479
|
case Cn:
|
|
480
|
-
return v(), H.push($t), l.body =
|
|
480
|
+
return v(), H.push($t), l.body = M(), H.pop(), x(Lt), l.test = J(), I(), E(l, "DoWhileStatement");
|
|
481
481
|
case In:
|
|
482
|
-
return v(), H.push($t), x(he), T === pe ? ce(l, null) : T ===
|
|
482
|
+
return v(), H.push($t), x(he), T === pe ? ce(l, null) : T === Ut ? (o = $(), v(), gn(o, !0), E(o, "VariableDeclaration"), o.fa.length === 1 && L(dt) ? lt(l, o) : ce(l, o)) : (o = Z(!1, !0), L(dt) ? (W(o), lt(l, o)) : ce(l, o));
|
|
483
483
|
case Dt:
|
|
484
484
|
return v(), Tt(l, !0);
|
|
485
485
|
case Tn:
|
|
486
|
-
return v(), l.test = J(), l.da =
|
|
486
|
+
return v(), l.test = J(), l.da = M(), l.alternate = L(wn) ? M() : null, E(l, "IfStatement");
|
|
487
487
|
case An:
|
|
488
488
|
return $e || R.Ib || r(z, "'return' outside of function"), v(), L(pe) || Ie() ? l.K = null : (l.K = Z(), I()), E(l, "ReturnStatement");
|
|
489
|
-
case
|
|
489
|
+
case Wt:
|
|
490
490
|
for (v(), l.Qb = J(), l.tb = [], x(Ke), H.push(Lr); T !== Pe; )
|
|
491
|
-
T === Ft || T === kn ? (o = T === Ft, h && E(h, "SwitchCase"), l.tb.push(h =
|
|
491
|
+
T === Ft || T === kn ? (o = T === Ft, h && E(h, "SwitchCase"), l.tb.push(h = $()), h.da = [], v(), o ? h.test = Z() : (u && r(Pt, "Multiple default clauses"), u = !0, h.test = null), x(Ge)) : (h || B(), h.da.push(M()));
|
|
492
492
|
return h && E(h, "SwitchCase"), v(), H.pop(), E(l, "SwitchStatement");
|
|
493
493
|
case jn:
|
|
494
494
|
return v(), ht.test(S.slice(Se, z)) && r(Se, "Illegal newline after throw"), l.K = Z(), I(), E(l, "ThrowStatement");
|
|
495
495
|
case Rn:
|
|
496
|
-
return v(), l.block = le(), l.Ea = null, T === bn && (o =
|
|
497
|
-
case
|
|
496
|
+
return v(), l.block = le(), l.Ea = null, T === bn && (o = $(), v(), x(he), o.Ua = de(), re && ft(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), x(ue), o.body = le(), l.Ea = E(o, "CatchClause")), l.fb = L(En) ? le() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
497
|
+
case Ut:
|
|
498
498
|
return v(), gn(l), I(), E(l, "VariableDeclaration");
|
|
499
499
|
case Lt:
|
|
500
|
-
return v(), l.test = J(), H.push($t), l.body =
|
|
500
|
+
return v(), l.test = J(), H.push($t), l.body = M(), H.pop(), E(l, "WhileStatement");
|
|
501
501
|
case On:
|
|
502
|
-
return re && r(z, "'with' in strict mode"), v(), l.object = J(), l.body =
|
|
502
|
+
return re && r(z, "'with' in strict mode"), v(), l.object = J(), l.body = M(), E(l, "WithStatement");
|
|
503
503
|
case Ke:
|
|
504
504
|
return le();
|
|
505
505
|
case pe:
|
|
@@ -510,8 +510,8 @@ var F, si = function(e) {
|
|
|
510
510
|
H[h].name === u && r(A.start, "Label '" + u + "' is already declared");
|
|
511
511
|
return H.push({
|
|
512
512
|
name: u,
|
|
513
|
-
kind: T.W ? "loop" : T ===
|
|
514
|
-
}), l.body =
|
|
513
|
+
kind: T.W ? "loop" : T === Wt ? "switch" : null
|
|
514
|
+
}), l.body = M(), H.pop(), l.label = A, E(l, "LabeledStatement");
|
|
515
515
|
}
|
|
516
516
|
return l.la = A, I(), E(l, "ExpressionStatement");
|
|
517
517
|
}
|
|
@@ -522,26 +522,26 @@ var F, si = function(e) {
|
|
|
522
522
|
return x(ue), o;
|
|
523
523
|
}
|
|
524
524
|
function le(o) {
|
|
525
|
-
var l =
|
|
525
|
+
var l = $(), u = !0, h = !1;
|
|
526
526
|
for (l.body = [], x(Ke); !L(Pe); ) {
|
|
527
|
-
var A =
|
|
527
|
+
var A = M();
|
|
528
528
|
if (l.body.push(A), u && o && Ee(A)) {
|
|
529
529
|
var Y = h;
|
|
530
|
-
|
|
530
|
+
U(h = !0);
|
|
531
531
|
}
|
|
532
532
|
u = !1;
|
|
533
533
|
}
|
|
534
|
-
return h && !Y &&
|
|
534
|
+
return h && !Y && U(!1), E(l, "BlockStatement");
|
|
535
535
|
}
|
|
536
536
|
function ce(o, l) {
|
|
537
|
-
return o.ua = l, x(pe), o.test = T === pe ? null : Z(), x(pe), o.update = T === ue ? null : Z(), x(ue), o.body =
|
|
537
|
+
return o.ua = l, x(pe), o.test = T === pe ? null : Z(), x(pe), o.update = T === ue ? null : Z(), x(ue), o.body = M(), H.pop(), E(o, "ForStatement");
|
|
538
538
|
}
|
|
539
539
|
function lt(o, l) {
|
|
540
|
-
return o.left = l, o.right = Z(), x(ue), o.body =
|
|
540
|
+
return o.left = l, o.right = Z(), x(ue), o.body = M(), H.pop(), E(o, "ForInStatement");
|
|
541
541
|
}
|
|
542
542
|
function gn(o, l) {
|
|
543
543
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
544
|
-
var u =
|
|
544
|
+
var u = $();
|
|
545
545
|
if (u.id = de(), re && ft(u.id.name) && r(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = L(Ln) ? Z(!0, l) : null, o.fa.push(E(u, "VariableDeclarator")), !L(ke))
|
|
546
546
|
break;
|
|
547
547
|
}
|
|
@@ -557,11 +557,11 @@ var F, si = function(e) {
|
|
|
557
557
|
}
|
|
558
558
|
function wt(o) {
|
|
559
559
|
var l = Et(It(), -1, o);
|
|
560
|
-
if (L(
|
|
560
|
+
if (L(Wn)) {
|
|
561
561
|
var u = Q(l);
|
|
562
562
|
u.test = l, u.da = Z(!0), x(Ge), u.alternate = Z(!0, o), l = E(u, "ConditionalExpression");
|
|
563
563
|
}
|
|
564
|
-
return T.Cb ? (u = Q(l), u.operator = ae, u.left = l, v(), u.right = wt(o),
|
|
564
|
+
return T.Cb ? (u = Q(l), u.operator = ae, u.left = l, v(), u.right = wt(o), W(l), E(u, "AssignmentExpression")) : l;
|
|
565
565
|
}
|
|
566
566
|
function Et(o, l, u) {
|
|
567
567
|
var h = T.L;
|
|
@@ -573,11 +573,11 @@ var F, si = function(e) {
|
|
|
573
573
|
}
|
|
574
574
|
function It() {
|
|
575
575
|
if (T.prefix) {
|
|
576
|
-
var o =
|
|
577
|
-
return o.operator = ae, _e = o.prefix = !0, v(), o.K = It(), l ?
|
|
576
|
+
var o = $(), l = T.$b;
|
|
577
|
+
return o.operator = ae, _e = o.prefix = !0, v(), o.K = It(), l ? W(o.K) : re && o.operator === "delete" && o.K.type === "Identifier" && r(o.start, "Deleting local variable in strict mode"), E(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
578
578
|
}
|
|
579
579
|
for (l = Ve(ct()); T.cc && !Ie(); )
|
|
580
|
-
o = Q(l), o.operator = ae, o.prefix = !1, o.K = l,
|
|
580
|
+
o = Q(l), o.operator = ae, o.prefix = !1, o.K = l, W(l), v(), l = E(o, "UpdateExpression");
|
|
581
581
|
return l;
|
|
582
582
|
}
|
|
583
583
|
function Ve(o, l) {
|
|
@@ -590,18 +590,18 @@ var F, si = function(e) {
|
|
|
590
590
|
function ct() {
|
|
591
591
|
switch (T) {
|
|
592
592
|
case Nn:
|
|
593
|
-
var o =
|
|
593
|
+
var o = $();
|
|
594
594
|
return v(), E(o, "ThisExpression");
|
|
595
595
|
case Oe:
|
|
596
596
|
return de();
|
|
597
597
|
case He:
|
|
598
598
|
case ut:
|
|
599
599
|
case vn:
|
|
600
|
-
return o =
|
|
600
|
+
return o = $(), o.value = ae, o.raw = S.slice(z, Re), v(), E(o, "Literal");
|
|
601
601
|
case Bn:
|
|
602
602
|
case Mn:
|
|
603
603
|
case Fn:
|
|
604
|
-
return o =
|
|
604
|
+
return o = $(), o.value = T.$a, o.raw = T.l, v(), E(o, "Literal");
|
|
605
605
|
case he:
|
|
606
606
|
o = Rt;
|
|
607
607
|
var l = z;
|
|
@@ -609,9 +609,9 @@ var F, si = function(e) {
|
|
|
609
609
|
var u = Z();
|
|
610
610
|
return u.start = l, u.end = Re, R.C && (u.X.start = o, u.X.end = Ot), R.Xa && (u.j = [l, Re]), x(ue), u;
|
|
611
611
|
case Vt:
|
|
612
|
-
return o =
|
|
612
|
+
return o = $(), v(), o.elements = At(_t, !0, !0), E(o, "ArrayExpression");
|
|
613
613
|
case Ke:
|
|
614
|
-
for (o =
|
|
614
|
+
for (o = $(), l = !0, u = !1, o.h = [], v(); !L(Pe); ) {
|
|
615
615
|
if (l)
|
|
616
616
|
l = !1;
|
|
617
617
|
else if (x(ke), R.sb && L(Pe))
|
|
@@ -623,7 +623,7 @@ var F, si = function(e) {
|
|
|
623
623
|
h.value = Z(!0);
|
|
624
624
|
var Y = h.kind = "init";
|
|
625
625
|
} else
|
|
626
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ?
|
|
626
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? B() : (A = u = !0, Y = h.kind = h.key.name, h.key = T === He || T === ut ? ct() : de(!0), T !== he && B(), h.value = Tt($(), !1));
|
|
627
627
|
if (h.key.type === "Identifier" && (re || u))
|
|
628
628
|
for (var ee = 0; ee < o.h.length; ++ee) {
|
|
629
629
|
var Be = o.h[ee];
|
|
@@ -636,14 +636,14 @@ var F, si = function(e) {
|
|
|
636
636
|
}
|
|
637
637
|
return E(o, "ObjectExpression");
|
|
638
638
|
case Dt:
|
|
639
|
-
return o =
|
|
639
|
+
return o = $(), v(), Tt(o, !1);
|
|
640
640
|
case Pn:
|
|
641
|
-
return o =
|
|
641
|
+
return o = $(), v(), o.callee = Ve(ct(), !0), o.arguments = L(he) ? At(ue, !1) : Er, E(o, "NewExpression");
|
|
642
642
|
}
|
|
643
|
-
|
|
643
|
+
B();
|
|
644
644
|
}
|
|
645
645
|
function Tt(o, l) {
|
|
646
|
-
T === Oe ? o.id = de() : l ?
|
|
646
|
+
T === Oe ? o.id = de() : l ? B() : o.id = null, o.oa = [];
|
|
647
647
|
var u = !0;
|
|
648
648
|
for (x(he); !L(ue); )
|
|
649
649
|
u ? u = !1 : x(ke), o.oa.push(de());
|
|
@@ -668,8 +668,8 @@ var F, si = function(e) {
|
|
|
668
668
|
return h;
|
|
669
669
|
}
|
|
670
670
|
function de(o) {
|
|
671
|
-
var l =
|
|
672
|
-
return o && R.yb === "everywhere" && (o = !1), T === Oe ? (!o && (R.yb && Fr(ae) || re && Hn(ae)) && S.slice(z, Re).indexOf("\\") === -1 && r(z, "The keyword '" + ae + "' is reserved"), l.name = ae) : o && T.l ? l.name = T.l :
|
|
671
|
+
var l = $();
|
|
672
|
+
return o && R.yb === "everywhere" && (o = !1), T === Oe ? (!o && (R.yb && Fr(ae) || re && Hn(ae)) && S.slice(z, Re).indexOf("\\") === -1 && r(z, "The keyword '" + ae + "' is reserved"), l.name = ae) : o && T.l ? l.name = T.l : B(), _e = !1, v(), E(l, "Identifier");
|
|
673
673
|
}
|
|
674
674
|
e.version = "0.5.0";
|
|
675
675
|
var R, S = "", je, jt;
|
|
@@ -677,8 +677,8 @@ var F, si = function(e) {
|
|
|
677
677
|
S = String(o), je = S.length, R = l || {};
|
|
678
678
|
for (var u in yn)
|
|
679
679
|
Object.prototype.hasOwnProperty.call(R, u) || (R[u] = yn[u]);
|
|
680
|
-
for (jt = R.sourceFile, Te = 1, d = fe = 0, _e = !0, f(), u = R.dc, Pt = Se = d, R.C && (Nt = new a()), $e = re = !1, H = [], b(), o = u ||
|
|
681
|
-
u =
|
|
680
|
+
for (jt = R.sourceFile, Te = 1, d = fe = 0, _e = !0, f(), u = R.dc, Pt = Se = d, R.C && (Nt = new a()), $e = re = !1, H = [], b(), o = u || $(), l = !0, u || (o.body = []); T !== Bt; )
|
|
681
|
+
u = M(), o.body.push(u), l && Ee(u) && U(!0), l = !1;
|
|
682
682
|
return E(o, "Program");
|
|
683
683
|
};
|
|
684
684
|
var yn = {
|
|
@@ -733,14 +733,14 @@ var F, si = function(e) {
|
|
|
733
733
|
}, An = {
|
|
734
734
|
l: "return",
|
|
735
735
|
m: !0
|
|
736
|
-
},
|
|
736
|
+
}, Wt = {
|
|
737
737
|
l: "switch"
|
|
738
738
|
}, jn = {
|
|
739
739
|
l: "throw",
|
|
740
740
|
m: !0
|
|
741
741
|
}, Rn = {
|
|
742
742
|
l: "try"
|
|
743
|
-
},
|
|
743
|
+
}, Ut = {
|
|
744
744
|
l: "var"
|
|
745
745
|
}, Lt = {
|
|
746
746
|
l: "while",
|
|
@@ -779,10 +779,10 @@ var F, si = function(e) {
|
|
|
779
779
|
function: Dt,
|
|
780
780
|
if: Tn,
|
|
781
781
|
return: An,
|
|
782
|
-
switch:
|
|
782
|
+
switch: Wt,
|
|
783
783
|
throw: jn,
|
|
784
784
|
try: Rn,
|
|
785
|
-
var:
|
|
785
|
+
var: Ut,
|
|
786
786
|
while: Lt,
|
|
787
787
|
with: On,
|
|
788
788
|
null: Bn,
|
|
@@ -837,10 +837,10 @@ var F, si = function(e) {
|
|
|
837
837
|
m: !0
|
|
838
838
|
}, Dn = {
|
|
839
839
|
type: "."
|
|
840
|
-
},
|
|
840
|
+
}, Wn = {
|
|
841
841
|
type: "?",
|
|
842
842
|
m: !0
|
|
843
|
-
},
|
|
843
|
+
}, Un = {
|
|
844
844
|
L: 10,
|
|
845
845
|
m: !0
|
|
846
846
|
}, Ln = {
|
|
@@ -887,7 +887,7 @@ var F, si = function(e) {
|
|
|
887
887
|
}, Mr = {
|
|
888
888
|
L: 10,
|
|
889
889
|
m: !0
|
|
890
|
-
}, Fr = i("class enum extends super const export import"), Hn = i("implements interface let package private protected public static yield"), ft = i("eval arguments"), Dr = i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),
|
|
890
|
+
}, Fr = i("class enum extends super const export import"), Hn = i("implements interface let package private protected public static yield"), ft = i("eval arguments"), Dr = i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Wr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Kn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Ur = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ht = /[\n\r\u2028\u2029]/, pt = /\r\n|[\n\r\u2028\u2029]/g, Ne, $t = {
|
|
891
891
|
kind: "loop"
|
|
892
892
|
}, Lr = {
|
|
893
893
|
kind: "switch"
|
|
@@ -895,7 +895,7 @@ var F, si = function(e) {
|
|
|
895
895
|
}, Yt = Yt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
896
896
|
si(Yt.j || (Yt.j = {}));
|
|
897
897
|
function p(e, t) {
|
|
898
|
-
typeof e == "string" && (e =
|
|
898
|
+
typeof e == "string" && (e = We(e, "code"));
|
|
899
899
|
var n = e.constructor;
|
|
900
900
|
this.ya = function() {
|
|
901
901
|
return new n({
|
|
@@ -909,7 +909,7 @@ function p(e, t) {
|
|
|
909
909
|
var a, s;
|
|
910
910
|
for (s in this)
|
|
911
911
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
912
|
-
this.N = Jt(this, this.ra, null), this.Na = this.N.object, this.ra =
|
|
912
|
+
this.N = Jt(this, this.ra, null), this.Na = this.N.object, this.ra = We(this.ba.join(`
|
|
913
913
|
`), "polyfills"), this.ba = void 0, xt(this.ra), a = new C(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = r, a = new C(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
914
914
|
}
|
|
915
915
|
var Yn = {
|
|
@@ -968,7 +968,7 @@ F.P = !1;
|
|
|
968
968
|
F.Ka = !1;
|
|
969
969
|
F.Kb = 0;
|
|
970
970
|
F.ic = 0;
|
|
971
|
-
function
|
|
971
|
+
function We(e, t) {
|
|
972
972
|
var n = {}, r;
|
|
973
973
|
for (r in Yn)
|
|
974
974
|
n[r] = Yn[r];
|
|
@@ -978,7 +978,7 @@ F.Jb = function(e) {
|
|
|
978
978
|
var t = this.o[0];
|
|
979
979
|
if (!t || t.node.type !== "Program")
|
|
980
980
|
throw Error("Expecting original AST to start with a Program node");
|
|
981
|
-
if (typeof e == "string" && (e =
|
|
981
|
+
if (typeof e == "string" && (e = We(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
982
982
|
throw Error("Expecting new AST to start with a Program node");
|
|
983
983
|
nt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
984
984
|
};
|
|
@@ -1026,7 +1026,7 @@ F.Eb = function() {
|
|
|
1026
1026
|
return this.za;
|
|
1027
1027
|
};
|
|
1028
1028
|
function ci(e, t) {
|
|
1029
|
-
e.g(t, "NaN", NaN, ze), e.g(t, "Infinity", 1 / 0, ze), e.g(t, "undefined", void 0, ze), e.g(t, "window", t, tn), e.g(t, "this", t, ze), e.g(t, "self", t), e.M = new
|
|
1029
|
+
e.g(t, "NaN", NaN, ze), e.g(t, "Infinity", 1 / 0, ze), e.g(t, "undefined", void 0, ze), e.g(t, "window", t, tn), e.g(t, "this", t, ze), e.g(t, "self", t), e.M = new N(null), e.Z = new N(e.M), ui(e, t), di(e, t), t.xa = e.M, e.g(t, "constructor", e.v, k), fi(e, t), hi(e, t), pi(e, t), mi(e, t), gi(e, t), yi(e, t), vi(e, t), bi(e, t), xi(e, t);
|
|
1030
1030
|
var n = e.i(function() {
|
|
1031
1031
|
throw EvalError("Can't happen");
|
|
1032
1032
|
}, !1);
|
|
@@ -1064,7 +1064,7 @@ function ui(e, t) {
|
|
|
1064
1064
|
s = s.join(", ");
|
|
1065
1065
|
}
|
|
1066
1066
|
try {
|
|
1067
|
-
var g =
|
|
1067
|
+
var g = We("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1068
1068
|
} catch (b) {
|
|
1069
1069
|
w(e, e.T, "Invalid code: " + b.message);
|
|
1070
1070
|
}
|
|
@@ -1073,7 +1073,7 @@ function ui(e, t) {
|
|
|
1073
1073
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, k), e.g(e.O, "prototype", e.Z, k), e.g(e.Z, "constructor", e.O, k), e.Z.Ta = function() {
|
|
1074
1074
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ne), e.Z.H = "Function", r = function(i, a) {
|
|
1075
1075
|
var s = e.o[e.o.length - 1];
|
|
1076
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof
|
|
1076
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof N ? s.F = hr(e, a) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1077
1077
|
}, X(e, e.O, "apply", r), r = function(i) {
|
|
1078
1078
|
var a = e.o[e.o.length - 1];
|
|
1079
1079
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1093,22 +1093,22 @@ function di(e, t) {
|
|
|
1093
1093
|
var r = function(i) {
|
|
1094
1094
|
if (i == null)
|
|
1095
1095
|
return xe(e) ? this : e.s(e.M);
|
|
1096
|
-
if (!(i instanceof
|
|
1096
|
+
if (!(i instanceof N)) {
|
|
1097
1097
|
var a = e.s(be(e, i));
|
|
1098
1098
|
return a.data = i, a;
|
|
1099
1099
|
}
|
|
1100
1100
|
return i;
|
|
1101
1101
|
};
|
|
1102
1102
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, k), e.g(e.M, "constructor", e.v, k), e.g(t, "Object", e.v, k), r = function(i) {
|
|
1103
|
-
return n(i), ge(e, Object.getOwnPropertyNames(i instanceof
|
|
1103
|
+
return n(i), ge(e, Object.getOwnPropertyNames(i instanceof N ? i.h : i));
|
|
1104
1104
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), k), r = function(i) {
|
|
1105
|
-
return n(i), i instanceof
|
|
1105
|
+
return n(i), i instanceof N && (i = i.h), ge(e, Object.keys(i));
|
|
1106
1106
|
}, e.g(e.v, "keys", e.i(r, !1), k), r = function(i) {
|
|
1107
|
-
return i === null ? e.s(null) : (i instanceof
|
|
1107
|
+
return i === null ? e.s(null) : (i instanceof N || w(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1108
1108
|
}, e.g(e.v, "create", e.i(r, !1), k), 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) {
|
|
1109
|
-
return a = String(a), i instanceof
|
|
1109
|
+
return a = String(a), i instanceof N || w(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof N || 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, tt, s.h), i;
|
|
1110
1110
|
}, e.g(e.v, "defineProperty", e.i(r, !1), k), 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) {
|
|
1111
|
-
if (i instanceof
|
|
1111
|
+
if (i instanceof N || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1112
1112
|
var s = Object.getOwnPropertyDescriptor(i.h, a), c = i.V[a];
|
|
1113
1113
|
return i = i.Y[a], a = e.s(e.M), c || i ? (e.g(a, "get", c), 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;
|
|
1114
1114
|
}
|
|
@@ -1117,11 +1117,11 @@ function di(e, t) {
|
|
|
1117
1117
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), k), r = function(i) {
|
|
1118
1118
|
return !!i && !i.preventExtensions;
|
|
1119
1119
|
}, e.g(e.v, "isExtensible", e.i(r, !1), k), r = function(i) {
|
|
1120
|
-
return i instanceof
|
|
1121
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), k), X(e, e.v, "toString",
|
|
1122
|
-
return n(this), this instanceof
|
|
1120
|
+
return i instanceof N && (i.preventExtensions = !0), i;
|
|
1121
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), k), X(e, e.v, "toString", N.prototype.toString), X(e, e.v, "toLocaleString", N.prototype.toString), X(e, e.v, "valueOf", N.prototype.valueOf), r = function(i) {
|
|
1122
|
+
return n(this), this instanceof N ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1123
1123
|
}, X(e, e.v, "hasOwnProperty", r), r = function(i) {
|
|
1124
|
-
return n(this), this instanceof
|
|
1124
|
+
return n(this), this instanceof N ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1125
1125
|
}, X(e, e.v, "propertyIsEnumerable", r), r = function(i) {
|
|
1126
1126
|
for (; ; ) {
|
|
1127
1127
|
if (i = be(e, i), !i)
|
|
@@ -1133,7 +1133,7 @@ function di(e, t) {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
function fi(e, t) {
|
|
1135
1135
|
var n = function(r) {
|
|
1136
|
-
var i = xe(e) ? this :
|
|
1136
|
+
var i = xe(e) ? this : Ue(e), a = arguments[0];
|
|
1137
1137
|
if (arguments.length === 1 && typeof a == "number")
|
|
1138
1138
|
isNaN(nn(a)) && w(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1139
1139
|
else {
|
|
@@ -1466,9 +1466,9 @@ F.Aa = function(e) {
|
|
|
1466
1466
|
F.s = function(e) {
|
|
1467
1467
|
if (typeof e != "object")
|
|
1468
1468
|
throw Error("Non object prototype");
|
|
1469
|
-
return e = new
|
|
1469
|
+
return e = new N(e), q(this, e, this.D) && (e.H = "Error"), e;
|
|
1470
1470
|
};
|
|
1471
|
-
function
|
|
1471
|
+
function Ue(e) {
|
|
1472
1472
|
var t = e.s(e.La);
|
|
1473
1473
|
return e.g(t, "length", 0, {
|
|
1474
1474
|
configurable: !1,
|
|
@@ -1492,7 +1492,7 @@ F.ub = function(e) {
|
|
|
1492
1492
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ne), t;
|
|
1493
1493
|
};
|
|
1494
1494
|
F.Ia = function(e) {
|
|
1495
|
-
if (e instanceof
|
|
1495
|
+
if (e instanceof N)
|
|
1496
1496
|
throw Error("Object is already pseudo");
|
|
1497
1497
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1498
1498
|
return e;
|
|
@@ -1512,7 +1512,7 @@ F.Ia = function(e) {
|
|
|
1512
1512
|
}, !!t);
|
|
1513
1513
|
}
|
|
1514
1514
|
if (Array.isArray(e)) {
|
|
1515
|
-
t =
|
|
1515
|
+
t = Ue(this);
|
|
1516
1516
|
for (var r = 0; r < e.length; r++)
|
|
1517
1517
|
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1518
1518
|
return t;
|
|
@@ -1525,7 +1525,7 @@ F.Ia = function(e) {
|
|
|
1525
1525
|
F.R = function(e, t) {
|
|
1526
1526
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1527
1527
|
return e;
|
|
1528
|
-
if (!(e instanceof
|
|
1528
|
+
if (!(e instanceof N))
|
|
1529
1529
|
throw Error("Object is not pseudo");
|
|
1530
1530
|
if (q(this, e, this.I))
|
|
1531
1531
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1553,7 +1553,7 @@ F.R = function(e, t) {
|
|
|
1553
1553
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1554
1554
|
};
|
|
1555
1555
|
function ge(e, t) {
|
|
1556
|
-
for (var n =
|
|
1556
|
+
for (var n = Ue(e), r = Object.getOwnPropertyNames(t), i = 0; i < r.length; i++)
|
|
1557
1557
|
e.g(n, r[i], t[r[i]]);
|
|
1558
1558
|
return n;
|
|
1559
1559
|
}
|
|
@@ -1577,7 +1577,7 @@ function be(e, t) {
|
|
|
1577
1577
|
F.G = function(e, t) {
|
|
1578
1578
|
if (this.P)
|
|
1579
1579
|
throw Error("Getter not supported in that context");
|
|
1580
|
-
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1580
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1581
1581
|
throw TypeError("Expecting native value or pseudo object");
|
|
1582
1582
|
if (t === "length") {
|
|
1583
1583
|
if (q(this, e, this.J))
|
|
@@ -1593,7 +1593,7 @@ F.G = function(e, t) {
|
|
|
1593
1593
|
while (e = be(this, e));
|
|
1594
1594
|
};
|
|
1595
1595
|
function St(e, t, n) {
|
|
1596
|
-
if (!(t instanceof
|
|
1596
|
+
if (!(t instanceof N))
|
|
1597
1597
|
throw TypeError("Primitive data type has no properties");
|
|
1598
1598
|
if (n = String(n), n === "length" && q(e, t, e.J))
|
|
1599
1599
|
return !0;
|
|
@@ -1611,11 +1611,11 @@ function St(e, t, n) {
|
|
|
1611
1611
|
F.g = function(e, t, n, r) {
|
|
1612
1612
|
if (this.Ka)
|
|
1613
1613
|
throw Error("Setter not supported in that context");
|
|
1614
|
-
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1614
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1615
1615
|
throw TypeError("Expecting native value or pseudo object");
|
|
1616
1616
|
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");
|
|
1617
1617
|
var i = !this.o || sn(this).S;
|
|
1618
|
-
if (e instanceof
|
|
1618
|
+
if (e instanceof N) {
|
|
1619
1619
|
if (q(this, e, this.J)) {
|
|
1620
1620
|
var a = Qe(t);
|
|
1621
1621
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
@@ -1787,7 +1787,7 @@ function dn(e, t, n) {
|
|
|
1787
1787
|
return t[0] === Le ? pr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1788
1788
|
}
|
|
1789
1789
|
function w(e, t, n) {
|
|
1790
|
-
throw e.N ? (n !== void 0 && t instanceof
|
|
1790
|
+
throw e.N ? (n !== void 0 && t instanceof N && (t = e.Aa(t), Xt(e, t, n)), at(e, 4, t), fr) : n === void 0 ? t : n;
|
|
1791
1791
|
}
|
|
1792
1792
|
function at(e, t, n, r) {
|
|
1793
1793
|
if (t === 0)
|
|
@@ -1869,12 +1869,12 @@ function qn(e, t, n) {
|
|
|
1869
1869
|
var r = e.o[e.o.length - 1], i = Array.from(n), a = i.shift();
|
|
1870
1870
|
n = Math.max(Number(i.shift() || 0), 0);
|
|
1871
1871
|
var s = e.ya();
|
|
1872
|
-
if (a instanceof
|
|
1872
|
+
if (a instanceof N && a.H === "Function") {
|
|
1873
1873
|
var c = a;
|
|
1874
1874
|
s.type = "CallExpression", r = r.scope;
|
|
1875
1875
|
} else {
|
|
1876
1876
|
try {
|
|
1877
|
-
var f =
|
|
1877
|
+
var f = We(String(a), "taskCode" + e.ic++);
|
|
1878
1878
|
} catch (g) {
|
|
1879
1879
|
w(e, e.T, "Invalid code: " + g.message);
|
|
1880
1880
|
}
|
|
@@ -1909,7 +1909,7 @@ function fn(e, t, n, r) {
|
|
|
1909
1909
|
return i.type = "CallExpression", e = new C(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1910
1910
|
}
|
|
1911
1911
|
function Gt(e, t) {
|
|
1912
|
-
return t == null ? e.Na : t instanceof
|
|
1912
|
+
return t == null ? e.Na : t instanceof N ? t : (e = e.s(be(e, t)), e.data = t, e);
|
|
1913
1913
|
}
|
|
1914
1914
|
F.Xb = function() {
|
|
1915
1915
|
return this.N;
|
|
@@ -1926,17 +1926,17 @@ function C(e, t) {
|
|
|
1926
1926
|
function gr(e, t, n) {
|
|
1927
1927
|
this.Va = e, this.S = t, this.object = n;
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1929
|
+
function N(e) {
|
|
1930
1930
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1931
1931
|
}
|
|
1932
|
-
F =
|
|
1932
|
+
F = N.prototype;
|
|
1933
1933
|
F.xa = null;
|
|
1934
1934
|
F.H = "Object";
|
|
1935
1935
|
F.data = null;
|
|
1936
1936
|
F.toString = function() {
|
|
1937
1937
|
if (!Ze)
|
|
1938
1938
|
return "[object Interpreter.Object]";
|
|
1939
|
-
if (!(this instanceof
|
|
1939
|
+
if (!(this instanceof N))
|
|
1940
1940
|
return String(this);
|
|
1941
1941
|
if (this.H === "Array") {
|
|
1942
1942
|
var e = Jn;
|
|
@@ -1946,7 +1946,7 @@ F.toString = function() {
|
|
|
1946
1946
|
1024 < n && (n = 1e3, r = !0);
|
|
1947
1947
|
for (var i = 0; i < n; i++) {
|
|
1948
1948
|
var a = this.h[i];
|
|
1949
|
-
t[i] = a instanceof
|
|
1949
|
+
t[i] = a instanceof N && e.indexOf(a) !== -1 ? "..." : a;
|
|
1950
1950
|
}
|
|
1951
1951
|
r && t.push("...");
|
|
1952
1952
|
} finally {
|
|
@@ -1991,7 +1991,7 @@ var ki = 0;
|
|
|
1991
1991
|
p.prototype.stepArrayExpression = function(e, t, n) {
|
|
1992
1992
|
n = n.elements;
|
|
1993
1993
|
var r = t.A || 0;
|
|
1994
|
-
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa =
|
|
1994
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Ue(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
1995
1995
|
if (n[r])
|
|
1996
1996
|
return t.A = r, new C(n[r], t.scope);
|
|
1997
1997
|
r++;
|
|
@@ -2118,10 +2118,10 @@ p.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2118
2118
|
n = r >>> t;
|
|
2119
2119
|
break;
|
|
2120
2120
|
case "in":
|
|
2121
|
-
t instanceof
|
|
2121
|
+
t instanceof N || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = St(this, t, r);
|
|
2122
2122
|
break;
|
|
2123
2123
|
case "instanceof":
|
|
2124
|
-
q(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof
|
|
2124
|
+
q(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof N ? q(this, r, t) : !1;
|
|
2125
2125
|
break;
|
|
2126
2126
|
default:
|
|
2127
2127
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2158,8 +2158,8 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2158
2158
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2159
2159
|
return new C(n.arguments[t.A++], t.scope);
|
|
2160
2160
|
if (n.type === "NewExpression") {
|
|
2161
|
-
if (i instanceof
|
|
2162
|
-
t.B =
|
|
2161
|
+
if (i instanceof N && !i.Ab || w(this, this.j, te(this, n.callee) + " is not a constructor"), i === this.qa)
|
|
2162
|
+
t.B = Ue(this);
|
|
2163
2163
|
else {
|
|
2164
2164
|
var a = i.h.prototype;
|
|
2165
2165
|
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
@@ -2171,8 +2171,8 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2171
2171
|
if (t.eb)
|
|
2172
2172
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2173
2173
|
else {
|
|
2174
|
-
if (t.eb = !0, i instanceof
|
|
2175
|
-
for (n = Jt(this, e.body, i.Va), r =
|
|
2174
|
+
if (t.eb = !0, i instanceof N || w(this, this.j, te(this, n.callee) + " is not a function"), e = i.node) {
|
|
2175
|
+
for (n = Jt(this, e.body, i.Va), r = Ue(this), i = 0; i < t.F.length; i++)
|
|
2176
2176
|
this.g(r, i, t.F[i]);
|
|
2177
2177
|
for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
|
|
2178
2178
|
this.g(n.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
@@ -2183,7 +2183,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2183
2183
|
t.value = i;
|
|
2184
2184
|
else {
|
|
2185
2185
|
try {
|
|
2186
|
-
r =
|
|
2186
|
+
r = We(String(i), "eval" + this.Hb++);
|
|
2187
2187
|
} catch (c) {
|
|
2188
2188
|
w(this, this.T, "Invalid code: " + c.message);
|
|
2189
2189
|
}
|
|
@@ -2249,7 +2249,7 @@ p.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2249
2249
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2250
2250
|
e:
|
|
2251
2251
|
for (; ; ) {
|
|
2252
|
-
if (t.u instanceof
|
|
2252
|
+
if (t.u instanceof N)
|
|
2253
2253
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2254
2254
|
var r = t.wa.shift();
|
|
2255
2255
|
if (r === void 0)
|
|
@@ -2565,9 +2565,9 @@ const Ci = (e) => e.split(`
|
|
|
2565
2565
|
context: t,
|
|
2566
2566
|
event: n,
|
|
2567
2567
|
state: c
|
|
2568
|
-
}), g = f.map(([
|
|
2569
|
-
const
|
|
2570
|
-
return `var ${
|
|
2568
|
+
}), g = f.map(([_]) => {
|
|
2569
|
+
const O = Qn(_);
|
|
2570
|
+
return `var ${_} = ${O} === undefined ? undefined : JSON.parse(${O});`;
|
|
2571
2571
|
}).join(`
|
|
2572
2572
|
`), b = Ci(s);
|
|
2573
2573
|
if (b === "") {
|
|
@@ -2581,14 +2581,14 @@ function theFunction() {
|
|
|
2581
2581
|
${b}
|
|
2582
2582
|
}
|
|
2583
2583
|
theFunction();
|
|
2584
|
-
`, j = (
|
|
2585
|
-
const v = dr(c,
|
|
2584
|
+
`, j = (_, O) => {
|
|
2585
|
+
const v = dr(c, _, O);
|
|
2586
2586
|
a == null || a(v);
|
|
2587
|
-
}, D = function(
|
|
2588
|
-
f.forEach(([v,
|
|
2589
|
-
const G = JSON.stringify(
|
|
2590
|
-
|
|
2591
|
-
}),
|
|
2587
|
+
}, D = function(_, O) {
|
|
2588
|
+
f.forEach(([v, U]) => {
|
|
2589
|
+
const G = JSON.stringify(U);
|
|
2590
|
+
_.setProperty(O, Qn(v), G);
|
|
2591
|
+
}), _.setProperty(O, "setRootState", _.createNativeFunction(j));
|
|
2592
2592
|
}, V = new p(m, D);
|
|
2593
2593
|
return V.run(), V.pseudoToNative(V.value);
|
|
2594
2594
|
};
|
|
@@ -2884,7 +2884,7 @@ function kt(e) {
|
|
|
2884
2884
|
}
|
|
2885
2885
|
);
|
|
2886
2886
|
}
|
|
2887
|
-
function
|
|
2887
|
+
function Wi(e) {
|
|
2888
2888
|
const t = function() {
|
|
2889
2889
|
const i = bt({
|
|
2890
2890
|
block: e.block,
|
|
@@ -2896,7 +2896,7 @@ function Ui(e) {
|
|
|
2896
2896
|
});
|
|
2897
2897
|
return yt(i.hide) ? !i.hide : yt(i.show) ? i.show : !0;
|
|
2898
2898
|
}, n = function() {
|
|
2899
|
-
var
|
|
2899
|
+
var O, v, U;
|
|
2900
2900
|
const i = bt({
|
|
2901
2901
|
block: e.block,
|
|
2902
2902
|
localState: e.context.localState,
|
|
@@ -2905,7 +2905,7 @@ function Ui(e) {
|
|
|
2905
2905
|
context: e.context.context,
|
|
2906
2906
|
shouldEvaluateBindings: !0
|
|
2907
2907
|
}), a = i.responsiveStyles, s = e.context.content, c = xr(
|
|
2908
|
-
((
|
|
2908
|
+
((O = s == null ? void 0 : s.meta) == null ? void 0 : O.breakpoints) || {}
|
|
2909
2909
|
), f = a == null ? void 0 : a.large, g = a == null ? void 0 : a.medium, b = a == null ? void 0 : a.small, m = i.id;
|
|
2910
2910
|
if (!m)
|
|
2911
2911
|
return "";
|
|
@@ -2926,18 +2926,18 @@ function Ui(e) {
|
|
|
2926
2926
|
"small",
|
|
2927
2927
|
c
|
|
2928
2928
|
)
|
|
2929
|
-
}) : "",
|
|
2930
|
-
let
|
|
2931
|
-
if (
|
|
2932
|
-
const G = ((
|
|
2933
|
-
|
|
2929
|
+
}) : "", P = i.animations && i.animations.find((G) => G.trigger === "hover");
|
|
2930
|
+
let _ = "";
|
|
2931
|
+
if (P) {
|
|
2932
|
+
const G = ((U = (v = P.steps) == null ? void 0 : v[1]) == null ? void 0 : U.styles) || {};
|
|
2933
|
+
_ = mt({
|
|
2934
2934
|
className: `${m}:hover`,
|
|
2935
2935
|
styles: {
|
|
2936
2936
|
...G,
|
|
2937
|
-
transition: `all ${
|
|
2938
|
-
|
|
2937
|
+
transition: `all ${P.duration}s ${hn(
|
|
2938
|
+
P.easing
|
|
2939
2939
|
)}`,
|
|
2940
|
-
transitionDelay:
|
|
2940
|
+
transitionDelay: P.delay ? `${P.delay}s` : "0s"
|
|
2941
2941
|
}
|
|
2942
2942
|
}) || "";
|
|
2943
2943
|
}
|
|
@@ -2945,7 +2945,7 @@ function Ui(e) {
|
|
|
2945
2945
|
j,
|
|
2946
2946
|
D,
|
|
2947
2947
|
V,
|
|
2948
|
-
|
|
2948
|
+
_
|
|
2949
2949
|
].join(" ");
|
|
2950
2950
|
};
|
|
2951
2951
|
return /* @__PURE__ */ y(K, { children: n() && t() ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(
|
|
@@ -2957,10 +2957,10 @@ function Ui(e) {
|
|
|
2957
2957
|
}
|
|
2958
2958
|
) }) : null });
|
|
2959
2959
|
}
|
|
2960
|
-
function
|
|
2960
|
+
function Ui(e) {
|
|
2961
2961
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2962
2962
|
}
|
|
2963
|
-
const Li = (e) => `on${
|
|
2963
|
+
const Li = (e) => `on${Ui(e)}`, Vi = (e, t) => (n) => rt({
|
|
2964
2964
|
code: e,
|
|
2965
2965
|
context: t.context,
|
|
2966
2966
|
localState: t.localState,
|
|
@@ -3157,16 +3157,16 @@ function Ct(e) {
|
|
|
3157
3157
|
var D;
|
|
3158
3158
|
return e.block.tagName === "a" || ((D = r().properties) == null ? void 0 : D.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3159
3159
|
}, a = function() {
|
|
3160
|
-
var V,
|
|
3160
|
+
var V, P;
|
|
3161
3161
|
if ((V = e.block.repeat) != null && V.collection)
|
|
3162
|
-
return !!((
|
|
3162
|
+
return !!((P = n()) != null && P.length);
|
|
3163
3163
|
const j = "hide" in r() ? r().hide : !1;
|
|
3164
3164
|
return ("show" in r() ? r().show : !0) && !j;
|
|
3165
3165
|
}, s = function() {
|
|
3166
3166
|
var D, V;
|
|
3167
3167
|
return !((D = t()) != null && D.component) && !n() ? (V = r().children) != null ? V : [] : [];
|
|
3168
3168
|
}, c = function() {
|
|
3169
|
-
var j, D, V,
|
|
3169
|
+
var j, D, V, P;
|
|
3170
3170
|
return {
|
|
3171
3171
|
blockChildren: (j = r().children) != null ? j : [],
|
|
3172
3172
|
componentRef: (D = t()) == null ? void 0 : D.component,
|
|
@@ -3185,11 +3185,11 @@ function Ct(e) {
|
|
|
3185
3185
|
registeredComponents: e.registeredComponents,
|
|
3186
3186
|
builderBlock: r(),
|
|
3187
3187
|
includeBlockProps: ((V = t()) == null ? void 0 : V.noWrap) === !0,
|
|
3188
|
-
isInteractive: !((
|
|
3188
|
+
isInteractive: !((P = t()) != null && P.isRSC)
|
|
3189
3189
|
};
|
|
3190
3190
|
};
|
|
3191
3191
|
return /* @__PURE__ */ y(K, { children: a() ? /* @__PURE__ */ se(K, { children: [
|
|
3192
|
-
/* @__PURE__ */ y(
|
|
3192
|
+
/* @__PURE__ */ y(Wi, { block: e.block, context: e.context }),
|
|
3193
3193
|
(f = t()) != null && f.noWrap ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(
|
|
3194
3194
|
tr,
|
|
3195
3195
|
{
|
|
@@ -3327,25 +3327,25 @@ function mn(e) {
|
|
|
3327
3327
|
}
|
|
3328
3328
|
const Xi = (e) => `builder-columns ${e}-breakpoints`;
|
|
3329
3329
|
function Ji(e) {
|
|
3330
|
-
var
|
|
3330
|
+
var P, _;
|
|
3331
3331
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(v) {
|
|
3332
3332
|
return v.link ? e.builderLinkComponent || "a" : "div";
|
|
3333
3333
|
}, a = function(v) {
|
|
3334
|
-
var
|
|
3335
|
-
return ((
|
|
3334
|
+
var U;
|
|
3335
|
+
return ((U = n[v]) == null ? void 0 : U.width) || 100 / n.length;
|
|
3336
3336
|
}, s = function(v) {
|
|
3337
|
-
const
|
|
3338
|
-
return `calc(${
|
|
3337
|
+
const U = a(v), G = t * (n.length - 1) * (U / 100);
|
|
3338
|
+
return `calc(${U}% - ${G}px)`;
|
|
3339
3339
|
}, c = function({
|
|
3340
3340
|
stackedStyle: v,
|
|
3341
|
-
desktopStyle:
|
|
3341
|
+
desktopStyle: U
|
|
3342
3342
|
}) {
|
|
3343
|
-
return r === "tablet" ? v :
|
|
3343
|
+
return r === "tablet" ? v : U;
|
|
3344
3344
|
}, f = function({
|
|
3345
3345
|
stackedStyle: v,
|
|
3346
|
-
desktopStyle:
|
|
3346
|
+
desktopStyle: U
|
|
3347
3347
|
}) {
|
|
3348
|
-
return r === "never" ?
|
|
3348
|
+
return r === "never" ? U : v;
|
|
3349
3349
|
}, g = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", b = function() {
|
|
3350
3350
|
return {
|
|
3351
3351
|
"--flex-dir": g,
|
|
@@ -3355,7 +3355,7 @@ function Ji(e) {
|
|
|
3355
3355
|
})
|
|
3356
3356
|
};
|
|
3357
3357
|
}, m = function(v) {
|
|
3358
|
-
const
|
|
3358
|
+
const U = v === 0 ? 0 : t, G = s(v), oe = `${U}px`, $ = "100%", Q = 0;
|
|
3359
3359
|
return {
|
|
3360
3360
|
...{
|
|
3361
3361
|
display: "flex",
|
|
@@ -3365,7 +3365,7 @@ function Ji(e) {
|
|
|
3365
3365
|
width: G,
|
|
3366
3366
|
["marginLeft"]: oe,
|
|
3367
3367
|
"--column-width-mobile": f({
|
|
3368
|
-
stackedStyle:
|
|
3368
|
+
stackedStyle: $,
|
|
3369
3369
|
desktopStyle: G
|
|
3370
3370
|
}),
|
|
3371
3371
|
"--column-margin-left-mobile": f({
|
|
@@ -3373,7 +3373,7 @@ function Ji(e) {
|
|
|
3373
3373
|
desktopStyle: oe
|
|
3374
3374
|
}),
|
|
3375
3375
|
"--column-width-tablet": c({
|
|
3376
|
-
stackedStyle:
|
|
3376
|
+
stackedStyle: $,
|
|
3377
3377
|
desktopStyle: G
|
|
3378
3378
|
}),
|
|
3379
3379
|
"--column-margin-left-tablet": c({
|
|
@@ -3412,20 +3412,20 @@ function Ji(e) {
|
|
|
3412
3412
|
}
|
|
3413
3413
|
},
|
|
3414
3414
|
`;
|
|
3415
|
-
}, V = function(v,
|
|
3415
|
+
}, V = function(v, U) {
|
|
3416
3416
|
return {
|
|
3417
3417
|
...v.link ? {
|
|
3418
3418
|
href: v.link
|
|
3419
3419
|
} : {},
|
|
3420
3420
|
[et()]: "builder-column",
|
|
3421
|
-
style: vr(m(
|
|
3421
|
+
style: vr(m(U))
|
|
3422
3422
|
};
|
|
3423
3423
|
};
|
|
3424
3424
|
return /* @__PURE__ */ se(K, { children: [
|
|
3425
3425
|
/* @__PURE__ */ se(
|
|
3426
3426
|
"div",
|
|
3427
3427
|
{
|
|
3428
|
-
className: Xi((
|
|
3428
|
+
className: Xi((P = e.builderBlock) == null ? void 0 : P.id) + " div-c89348d2",
|
|
3429
3429
|
style: b(),
|
|
3430
3430
|
children: [
|
|
3431
3431
|
/* @__PURE__ */ y(
|
|
@@ -3436,12 +3436,12 @@ function Ji(e) {
|
|
|
3436
3436
|
nonce: e.builderContext.nonce
|
|
3437
3437
|
}
|
|
3438
3438
|
),
|
|
3439
|
-
(
|
|
3439
|
+
(_ = e.columns) == null ? void 0 : _.map((O, v) => /* @__PURE__ */ y(
|
|
3440
3440
|
en,
|
|
3441
3441
|
{
|
|
3442
|
-
TagName: i(
|
|
3442
|
+
TagName: i(O),
|
|
3443
3443
|
actionAttributes: {},
|
|
3444
|
-
attributes: V(
|
|
3444
|
+
attributes: V(O, v),
|
|
3445
3445
|
children: /* @__PURE__ */ y(
|
|
3446
3446
|
mn,
|
|
3447
3447
|
{
|
|
@@ -3453,7 +3453,7 @@ function Ji(e) {
|
|
|
3453
3453
|
context: e.builderContext,
|
|
3454
3454
|
registeredComponents: e.builderComponents,
|
|
3455
3455
|
linkComponent: e.builderLinkComponent,
|
|
3456
|
-
blocks:
|
|
3456
|
+
blocks: O.blocks
|
|
3457
3457
|
}
|
|
3458
3458
|
)
|
|
3459
3459
|
},
|
|
@@ -3510,12 +3510,14 @@ function eo(e) {
|
|
|
3510
3510
|
// images, otherwise you can supply this prop manually
|
|
3511
3511
|
!(m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/)))
|
|
3512
3512
|
return e.srcset;
|
|
3513
|
-
if (e.
|
|
3514
|
-
if (
|
|
3515
|
-
|
|
3516
|
-
|
|
3513
|
+
if (!e.noWebp) {
|
|
3514
|
+
if (e.srcset && ((j = e.image) != null && j.includes("builder.io/api/v1/image"))) {
|
|
3515
|
+
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3516
|
+
return console.debug("Removed given srcset"), zt(m);
|
|
3517
|
+
} else if (e.image && !e.srcset)
|
|
3518
|
+
return zt(m);
|
|
3517
3519
|
return zt(m);
|
|
3518
|
-
|
|
3520
|
+
}
|
|
3519
3521
|
}
|
|
3520
3522
|
function n() {
|
|
3521
3523
|
var b;
|
|
@@ -3547,7 +3549,7 @@ function eo(e) {
|
|
|
3547
3549
|
objectFit: e.backgroundSize || "cover",
|
|
3548
3550
|
...r()
|
|
3549
3551
|
},
|
|
3550
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
3552
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-56bbd606",
|
|
3551
3553
|
src: e.image,
|
|
3552
3554
|
srcSet: t(),
|
|
3553
3555
|
sizes: e.sizes
|
|
@@ -3557,23 +3559,23 @@ function eo(e) {
|
|
|
3557
3559
|
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ y(
|
|
3558
3560
|
"div",
|
|
3559
3561
|
{
|
|
3560
|
-
className: "builder-image-sizer div-
|
|
3562
|
+
className: "builder-image-sizer div-56bbd606",
|
|
3561
3563
|
style: {
|
|
3562
3564
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
3563
3565
|
}
|
|
3564
3566
|
}
|
|
3565
3567
|
) : null,
|
|
3566
3568
|
(c = (s = e.builderBlock) == null ? void 0 : s.children) != null && c.length && e.fitContent ? /* @__PURE__ */ y(K, { children: e.children }) : null,
|
|
3567
|
-
!e.fitContent && ((g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length) ? /* @__PURE__ */ y("div", { className: "div-
|
|
3569
|
+
!e.fitContent && ((g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length) ? /* @__PURE__ */ y("div", { className: "div-56bbd606-2", children: e.children }) : null
|
|
3568
3570
|
] }),
|
|
3569
|
-
/* @__PURE__ */ y("style", { children: `.img-
|
|
3571
|
+
/* @__PURE__ */ y("style", { children: `.img-56bbd606 {
|
|
3570
3572
|
opacity: 1;
|
|
3571
3573
|
transition: opacity 0.2s ease-in-out;
|
|
3572
|
-
}.div-
|
|
3574
|
+
}.div-56bbd606 {
|
|
3573
3575
|
width: 100%;
|
|
3574
3576
|
pointer-events: none;
|
|
3575
3577
|
font-size: 0;
|
|
3576
|
-
}.div-
|
|
3578
|
+
}.div-56bbd606-2 {
|
|
3577
3579
|
display: flex;
|
|
3578
3580
|
flex-direction: column;
|
|
3579
3581
|
align-items: stretch;
|
|
@@ -4673,19 +4675,19 @@ function Fo(e) {
|
|
|
4673
4675
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
4674
4676
|
}
|
|
4675
4677
|
function Do(e, t) {
|
|
4676
|
-
const n =
|
|
4678
|
+
const n = Wo(e), r = getComputedStyle(t), i = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, s = [i, a];
|
|
4677
4679
|
for (const c of s)
|
|
4678
4680
|
for (const f of n)
|
|
4679
4681
|
f in c || (c[f] = r[f]);
|
|
4680
4682
|
}
|
|
4681
|
-
function
|
|
4683
|
+
function Wo(e) {
|
|
4682
4684
|
const t = [];
|
|
4683
4685
|
for (const n of e.steps)
|
|
4684
4686
|
for (const r in n.styles)
|
|
4685
4687
|
t.indexOf(r) === -1 && t.push(r);
|
|
4686
4688
|
return t;
|
|
4687
4689
|
}
|
|
4688
|
-
function
|
|
4690
|
+
function Uo(e) {
|
|
4689
4691
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
4690
4692
|
if (!t.length) {
|
|
4691
4693
|
Fo(e.elementId || e.id || "");
|
|
@@ -4752,29 +4754,29 @@ font-weight: ${c};
|
|
|
4752
4754
|
}
|
|
4753
4755
|
`, Ho = (e) => e ? "" : $o, Ko = (e) => `variant-${e}`;
|
|
4754
4756
|
function Go(e) {
|
|
4755
|
-
var oe,
|
|
4757
|
+
var oe, $, Q, E, Ee, L, Ie;
|
|
4756
4758
|
const t = Qt(null);
|
|
4757
4759
|
function n(I) {
|
|
4758
|
-
var
|
|
4760
|
+
var B, W;
|
|
4759
4761
|
const x = {
|
|
4760
4762
|
...e.builderContextSignal.rootState,
|
|
4761
4763
|
...I
|
|
4762
4764
|
};
|
|
4763
|
-
e.builderContextSignal.rootSetState ? (
|
|
4765
|
+
e.builderContextSignal.rootSetState ? (W = (B = e.builderContextSignal).rootSetState) == null || W.call(B, x) : e.builderContextSignal.rootState = x;
|
|
4764
4766
|
}
|
|
4765
4767
|
function r(I) {
|
|
4766
|
-
var
|
|
4768
|
+
var B, W, M, J, le;
|
|
4767
4769
|
const x = {
|
|
4768
4770
|
...e.builderContextSignal.content,
|
|
4769
4771
|
...I,
|
|
4770
4772
|
data: {
|
|
4771
|
-
...(
|
|
4773
|
+
...(B = e.builderContextSignal.content) == null ? void 0 : B.data,
|
|
4772
4774
|
...I == null ? void 0 : I.data
|
|
4773
4775
|
},
|
|
4774
4776
|
meta: {
|
|
4775
|
-
...(
|
|
4777
|
+
...(W = e.builderContextSignal.content) == null ? void 0 : W.meta,
|
|
4776
4778
|
...I == null ? void 0 : I.meta,
|
|
4777
|
-
breakpoints: ((
|
|
4779
|
+
breakpoints: ((M = I == null ? void 0 : I.meta) == null ? void 0 : M.breakpoints) || ((le = (J = e.builderContextSignal.content) == null ? void 0 : J.meta) == null ? void 0 : le.breakpoints)
|
|
4778
4780
|
}
|
|
4779
4781
|
};
|
|
4780
4782
|
Mo({
|
|
@@ -4799,16 +4801,16 @@ function Go(e) {
|
|
|
4799
4801
|
trustedHosts: e.trustedHosts,
|
|
4800
4802
|
callbacks: {
|
|
4801
4803
|
configureSdk: (x) => {
|
|
4802
|
-
var
|
|
4803
|
-
const { breakpoints:
|
|
4804
|
-
!
|
|
4804
|
+
var M;
|
|
4805
|
+
const { breakpoints: B, contentId: W } = x;
|
|
4806
|
+
!W || W !== ((M = e.builderContextSignal.content) == null ? void 0 : M.id) || B && r({
|
|
4805
4807
|
meta: {
|
|
4806
|
-
breakpoints:
|
|
4808
|
+
breakpoints: B
|
|
4807
4809
|
}
|
|
4808
4810
|
});
|
|
4809
4811
|
},
|
|
4810
4812
|
animation: (x) => {
|
|
4811
|
-
|
|
4813
|
+
Uo(x);
|
|
4812
4814
|
},
|
|
4813
4815
|
contentUpdate: (x) => {
|
|
4814
4816
|
r(x);
|
|
@@ -4817,8 +4819,8 @@ function Go(e) {
|
|
|
4817
4819
|
})(I);
|
|
4818
4820
|
}
|
|
4819
4821
|
function f() {
|
|
4820
|
-
var x,
|
|
4821
|
-
const I = (
|
|
4822
|
+
var x, B;
|
|
4823
|
+
const I = (B = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : B.jsCode;
|
|
4822
4824
|
I && rt({
|
|
4823
4825
|
code: I,
|
|
4824
4826
|
context: e.context || {},
|
|
@@ -4832,29 +4834,29 @@ function Go(e) {
|
|
|
4832
4834
|
});
|
|
4833
4835
|
}
|
|
4834
4836
|
const [g, b] = ye(() => ({})), [m, j] = ye(() => ({})), [D, V] = ye(() => !1);
|
|
4835
|
-
function
|
|
4836
|
-
var x,
|
|
4837
|
+
function P(I) {
|
|
4838
|
+
var x, B;
|
|
4837
4839
|
if (e.builderContextSignal.content) {
|
|
4838
|
-
const
|
|
4840
|
+
const W = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, M = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
|
|
4839
4841
|
Gn({
|
|
4840
4842
|
type: "click",
|
|
4841
4843
|
canTrack: vt(e.canTrack),
|
|
4842
|
-
contentId:
|
|
4844
|
+
contentId: M,
|
|
4843
4845
|
apiKey: e.apiKey,
|
|
4844
|
-
variationId:
|
|
4846
|
+
variationId: W !== M ? W : void 0,
|
|
4845
4847
|
...Bo(I),
|
|
4846
4848
|
unique: !D
|
|
4847
4849
|
});
|
|
4848
4850
|
}
|
|
4849
4851
|
D || V(!0);
|
|
4850
4852
|
}
|
|
4851
|
-
function
|
|
4852
|
-
var x,
|
|
4853
|
-
const I = (
|
|
4854
|
-
Object.entries(I).forEach(([
|
|
4855
|
-
if (!J || m[
|
|
4853
|
+
function _() {
|
|
4854
|
+
var x, B, W;
|
|
4855
|
+
const I = (W = (B = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : B.httpRequests) != null ? W : {};
|
|
4856
|
+
Object.entries(I).forEach(([M, J]) => {
|
|
4857
|
+
if (!J || m[M] || g[M] && !Ce())
|
|
4856
4858
|
return;
|
|
4857
|
-
m[
|
|
4859
|
+
m[M] = !0;
|
|
4858
4860
|
const le = J.replace(
|
|
4859
4861
|
/{{([^}]+)}}/g,
|
|
4860
4862
|
(ce, lt) => String(
|
|
@@ -4870,16 +4872,16 @@ function Go(e) {
|
|
|
4870
4872
|
);
|
|
4871
4873
|
zr(le).then((ce) => ce.json()).then((ce) => {
|
|
4872
4874
|
n({
|
|
4873
|
-
[
|
|
4874
|
-
}), g[
|
|
4875
|
+
[M]: ce
|
|
4876
|
+
}), g[M] = !0;
|
|
4875
4877
|
}).catch((ce) => {
|
|
4876
4878
|
console.error("error fetching dynamic data", J, ce);
|
|
4877
4879
|
}).finally(() => {
|
|
4878
|
-
m[
|
|
4880
|
+
m[M] = !1;
|
|
4879
4881
|
});
|
|
4880
4882
|
});
|
|
4881
4883
|
}
|
|
4882
|
-
function
|
|
4884
|
+
function O() {
|
|
4883
4885
|
Ce() && window.dispatchEvent(
|
|
4884
4886
|
new CustomEvent(
|
|
4885
4887
|
"builder:component:stateChange",
|
|
@@ -4908,19 +4910,19 @@ function Go(e) {
|
|
|
4908
4910
|
}), Object.values(
|
|
4909
4911
|
e.builderContextSignal.componentInfos
|
|
4910
4912
|
).forEach((x) => {
|
|
4911
|
-
var
|
|
4912
|
-
const
|
|
4913
|
-
(
|
|
4913
|
+
var W;
|
|
4914
|
+
const B = Jr(x);
|
|
4915
|
+
(W = window.parent) == null || W.postMessage(B, "*");
|
|
4914
4916
|
}), window.addEventListener(
|
|
4915
4917
|
"builder:component:stateChangeListenerActivated",
|
|
4916
|
-
|
|
4918
|
+
O
|
|
4917
4919
|
);
|
|
4918
4920
|
}
|
|
4919
|
-
function
|
|
4920
|
-
const x = new URL(location.href).searchParams,
|
|
4921
|
-
`builder.overrides.${
|
|
4922
|
-
),
|
|
4923
|
-
|
|
4921
|
+
function U(I) {
|
|
4922
|
+
const x = new URL(location.href).searchParams, B = x.get("builder.preview"), W = x.get(
|
|
4923
|
+
`builder.overrides.${B}`
|
|
4924
|
+
), M = x.get("apiKey") || x.get("builder.space");
|
|
4925
|
+
B === e.model && M === e.apiKey && (!e.content || W === e.content.id) && lr({
|
|
4924
4926
|
model: e.model,
|
|
4925
4927
|
apiKey: e.apiKey,
|
|
4926
4928
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -4945,25 +4947,25 @@ function Go(e) {
|
|
|
4945
4947
|
var I;
|
|
4946
4948
|
return (I = t.current) == null || I.addEventListener(
|
|
4947
4949
|
"initpreviewingbldr",
|
|
4948
|
-
|
|
4950
|
+
U
|
|
4949
4951
|
), () => {
|
|
4950
4952
|
var x;
|
|
4951
4953
|
return (x = t.current) == null ? void 0 : x.removeEventListener(
|
|
4952
4954
|
"initpreviewingbldr",
|
|
4953
|
-
|
|
4955
|
+
U
|
|
4954
4956
|
);
|
|
4955
4957
|
};
|
|
4956
4958
|
}, []), ie(() => {
|
|
4957
4959
|
var I, x;
|
|
4958
4960
|
if (De()) {
|
|
4959
4961
|
if (Ce() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && vt(e.canTrack)) {
|
|
4960
|
-
const
|
|
4962
|
+
const W = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, M = (x = e.builderContextSignal.content) == null ? void 0 : x.id, J = e.apiKey;
|
|
4961
4963
|
Gn({
|
|
4962
4964
|
type: "impression",
|
|
4963
4965
|
canTrack: !0,
|
|
4964
|
-
contentId:
|
|
4966
|
+
contentId: M,
|
|
4965
4967
|
apiKey: J,
|
|
4966
|
-
variationId:
|
|
4968
|
+
variationId: W !== M ? W : void 0
|
|
4967
4969
|
});
|
|
4968
4970
|
}
|
|
4969
4971
|
Kr() && Ce();
|
|
@@ -4971,14 +4973,14 @@ function Go(e) {
|
|
|
4971
4973
|
}, []), ie(() => {
|
|
4972
4974
|
e.apiKey || ot.error(
|
|
4973
4975
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4974
|
-
), f(),
|
|
4976
|
+
), f(), _(), O();
|
|
4975
4977
|
}, []), ie(() => {
|
|
4976
4978
|
}, [e.content]), ie(() => {
|
|
4977
4979
|
f();
|
|
4978
|
-
}, [(
|
|
4979
|
-
|
|
4980
|
+
}, [($ = (oe = e.builderContextSignal.content) == null ? void 0 : oe.data) == null ? void 0 : $.jsCode]), ie(() => {
|
|
4981
|
+
_();
|
|
4980
4982
|
}, [(E = (Q = e.builderContextSignal.content) == null ? void 0 : Q.data) == null ? void 0 : E.httpRequests]), ie(() => {
|
|
4981
|
-
|
|
4983
|
+
O();
|
|
4982
4984
|
}, [e.builderContextSignal.rootState]), ie(() => {
|
|
4983
4985
|
e.data && n(e.data);
|
|
4984
4986
|
}, [e.data]), ie(() => {
|
|
@@ -4988,13 +4990,13 @@ function Go(e) {
|
|
|
4988
4990
|
}, [e.locale]), ie(() => () => {
|
|
4989
4991
|
De() && (window.removeEventListener("message", c), window.removeEventListener(
|
|
4990
4992
|
"builder:component:stateChangeListenerActivated",
|
|
4991
|
-
|
|
4993
|
+
O
|
|
4992
4994
|
));
|
|
4993
4995
|
}, []), /* @__PURE__ */ y(Oo.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ y(
|
|
4994
4996
|
a,
|
|
4995
4997
|
{
|
|
4996
4998
|
ref: t,
|
|
4997
|
-
onClick: (I) =>
|
|
4999
|
+
onClick: (I) => P(I),
|
|
4998
5000
|
"builder-content-id": (Ee = e.builderContextSignal.content) == null ? void 0 : Ee.id,
|
|
4999
5001
|
"builder-model": e.model,
|
|
5000
5002
|
...i(),
|
|
@@ -5055,7 +5057,7 @@ const Yo = ({
|
|
|
5055
5057
|
meta: e == null ? void 0 : e.meta
|
|
5056
5058
|
} : void 0;
|
|
5057
5059
|
function sr(e) {
|
|
5058
|
-
var i, a, s, c, f, g, b, m, j;
|
|
5060
|
+
var i, a, s, c, f, g, b, m, j, D, V;
|
|
5059
5061
|
const t = Ro({
|
|
5060
5062
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5061
5063
|
variationId: (i = e.content) == null ? void 0 : i.testVariationId,
|
|
@@ -5063,13 +5065,13 @@ function sr(e) {
|
|
|
5063
5065
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
5064
5066
|
}), n = [
|
|
5065
5067
|
...rr(),
|
|
5066
|
-
...e.customComponents || []
|
|
5068
|
+
...((s = e.customComponents) == null ? void 0 : s.filter(({ models: P }) => !(P != null && P.length) || !e.model ? !0 : P.includes(e.model))) || []
|
|
5067
5069
|
].reduce(
|
|
5068
|
-
(
|
|
5069
|
-
...
|
|
5070
|
-
[
|
|
5071
|
-
component:
|
|
5072
|
-
...zn(
|
|
5070
|
+
(P, { component: _, ...O }) => ({
|
|
5071
|
+
...P,
|
|
5072
|
+
[O.name]: {
|
|
5073
|
+
component: _,
|
|
5074
|
+
...zn(O)
|
|
5073
5075
|
}
|
|
5074
5076
|
}),
|
|
5075
5077
|
{}
|
|
@@ -5091,11 +5093,11 @@ function sr(e) {
|
|
|
5091
5093
|
apiVersion: e.apiVersion,
|
|
5092
5094
|
componentInfos: [
|
|
5093
5095
|
...rr(),
|
|
5094
|
-
...e.customComponents || []
|
|
5096
|
+
...((c = e.customComponents) == null ? void 0 : c.filter(({ models: P }) => !(P != null && P.length) || !e.model ? !0 : P.includes(e.model))) || []
|
|
5095
5097
|
].reduce(
|
|
5096
|
-
(
|
|
5097
|
-
...
|
|
5098
|
-
[
|
|
5098
|
+
(P, { component: _, ...O }) => ({
|
|
5099
|
+
...P,
|
|
5100
|
+
[O.name]: zn(O)
|
|
5099
5101
|
}),
|
|
5100
5102
|
{}
|
|
5101
5103
|
),
|
|
@@ -5135,15 +5137,15 @@ function sr(e) {
|
|
|
5135
5137
|
{
|
|
5136
5138
|
nonce: e.nonce || "",
|
|
5137
5139
|
isNestedRender: e.isNestedRender,
|
|
5138
|
-
contentId: (
|
|
5139
|
-
cssCode: (
|
|
5140
|
-
customFonts: (
|
|
5140
|
+
contentId: (f = r.content) == null ? void 0 : f.id,
|
|
5141
|
+
cssCode: (b = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : b.cssCode,
|
|
5142
|
+
customFonts: (j = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : j.customFonts
|
|
5141
5143
|
}
|
|
5142
5144
|
),
|
|
5143
5145
|
/* @__PURE__ */ y(
|
|
5144
5146
|
mn,
|
|
5145
5147
|
{
|
|
5146
|
-
blocks: (
|
|
5148
|
+
blocks: (V = (D = r.content) == null ? void 0 : D.data) == null ? void 0 : V.blocks,
|
|
5147
5149
|
context: r,
|
|
5148
5150
|
registeredComponents: n,
|
|
5149
5151
|
linkComponent: e.linkComponent
|