@builder.io/sdk-react-nextjs 0.16.4 → 0.16.6
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 +20 -20
- 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-15a258a6.cjs → server-entry-0418e1e6.cjs} +2 -2
- package/lib/{node/server-entry-3336d7c2.js → browser/server-entry-226d18cc.js} +84 -83
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +3 -3
- package/lib/edge/blocks-exports.mjs +101 -101
- 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/{node/server-entry-15a258a6.cjs → edge/server-entry-0418e1e6.cjs} +2 -2
- package/lib/{browser/server-entry-3336d7c2.js → edge/server-entry-226d18cc.js} +84 -83
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +12 -12
- package/lib/node/blocks-exports.mjs +21 -21
- 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-7537779c.cjs → node-runtime-f354effa.cjs} +1 -1
- package/lib/node/{node-runtime-adcc8fa1.js → node-runtime-f79fed3b.js} +1 -1
- package/lib/{edge/server-entry-15a258a6.cjs → node/server-entry-0418e1e6.cjs} +2 -2
- package/lib/{edge/server-entry-3336d7c2.js → node/server-entry-226d18cc.js} +84 -83
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/cjs/components/content-variants/content-variants.types.d.ts +2 -1
- package/types/cjs/components/content-variants/extra-framework-props-types.d.ts +2 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/context/extra-context-types.d.ts +6 -0
- package/types/cjs/context/types.d.ts +2 -1
- package/types/cjs/functions/register-component.d.ts +1 -1
- package/types/esm/components/content-variants/content-variants.types.d.ts +2 -1
- package/types/esm/components/content-variants/extra-framework-props-types.d.ts +2 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/context/extra-context-types.d.ts +6 -0
- package/types/esm/context/types.d.ts +2 -1
- package/types/esm/functions/register-component.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
|
|
6
|
+
import { TARGET as Ve, isEditing as Ce, isBrowser as De, getUserAttributes as $r, logger as ot, checkIsDefined as yt, 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, serializeIncludingFunctions as zn, handleABTestingSync as qr } from "./server-entry-226d18cc.js";
|
|
7
7
|
import { useEffect as te, useRef as Zt, useState as ye, createContext as Zr } from "react";
|
|
8
8
|
import { useRouter as Qr } from "next/navigation";
|
|
9
9
|
import "lru-cache";
|
|
@@ -11,8 +11,8 @@ const ei = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
|
|
|
11
11
|
function Qt(e) {
|
|
12
12
|
return /* @__PURE__ */ y(K, { children: ti(e.TagName) ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ y(K, { children: typeof e.TagName == "string" ? /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
switch (
|
|
14
|
+
const nt = () => {
|
|
15
|
+
switch (Ve) {
|
|
16
16
|
case "react":
|
|
17
17
|
case "reactNative":
|
|
18
18
|
case "rsc":
|
|
@@ -29,7 +29,7 @@ function ni(e) {
|
|
|
29
29
|
function t() {
|
|
30
30
|
return {
|
|
31
31
|
...e.attributes,
|
|
32
|
-
[
|
|
32
|
+
[nt()]: `${e.link ? "" : "builder-button"} ${e.attributes[nt()] || ""}`,
|
|
33
33
|
...e.link ? {
|
|
34
34
|
href: e.link,
|
|
35
35
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -160,7 +160,7 @@ var F, si = function(e) {
|
|
|
160
160
|
this.line = Te, this.ab = d - fe;
|
|
161
161
|
}
|
|
162
162
|
function s(o, l) {
|
|
163
|
-
Re = d, R.C && (Ot = new a()), T = o, f(), ae = l,
|
|
163
|
+
Re = d, R.C && (Ot = new a()), T = o, f(), ae = l, He = o.m;
|
|
164
164
|
}
|
|
165
165
|
function c() {
|
|
166
166
|
for (var o = d, l = R.va && R.C && new a(), u = S.charCodeAt(d += 2); d < je && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
|
|
@@ -216,16 +216,16 @@ var F, si = function(e) {
|
|
|
216
216
|
case 93:
|
|
217
217
|
return ++d, s(_t);
|
|
218
218
|
case 123:
|
|
219
|
-
return ++d, s(
|
|
219
|
+
return ++d, s(ze);
|
|
220
220
|
case 125:
|
|
221
221
|
return ++d, s(Pe);
|
|
222
222
|
case 58:
|
|
223
|
-
return ++d, s(
|
|
223
|
+
return ++d, s(Ye);
|
|
224
224
|
case 63:
|
|
225
225
|
return ++d, s(Wn);
|
|
226
226
|
case 48:
|
|
227
227
|
if (o = S.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
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(
|
|
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(Ge, o);
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
231
|
case 49:
|
|
@@ -301,7 +301,7 @@ var F, si = function(e) {
|
|
|
301
301
|
}
|
|
302
302
|
return;
|
|
303
303
|
case 47:
|
|
304
|
-
o = S.charCodeAt(d + 1),
|
|
304
|
+
o = S.charCodeAt(d + 1), He ? (++d, j()) : o === 61 ? m(Ae, 2) : m(Un, 1);
|
|
305
305
|
return;
|
|
306
306
|
case 37:
|
|
307
307
|
case 42:
|
|
@@ -386,7 +386,7 @@ var F, si = function(e) {
|
|
|
386
386
|
var l = d, u = !1, h = S.charCodeAt(d) === 48;
|
|
387
387
|
o || D(10) !== null || r(l, "Invalid number"), S.charCodeAt(d) === 46 && (++d, D(10), u = !0), o = S.charCodeAt(d), (o === 69 || o === 101) && (o = S.charCodeAt(++d), o !== 43 && o !== 45 || ++d, D(10) === null && r(l, "Invalid number"), u = !0), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), o = S.slice(l, d);
|
|
388
388
|
var A;
|
|
389
|
-
u ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || ie ? r(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s(
|
|
389
|
+
u ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || ie ? r(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s(Ge, A);
|
|
390
390
|
}
|
|
391
391
|
function P(o) {
|
|
392
392
|
return o = D(16, o), o === null && r(z, "Bad character escape sequence"), o;
|
|
@@ -485,10 +485,10 @@ var F, si = function(e) {
|
|
|
485
485
|
case Tn:
|
|
486
486
|
return v(), l.test = J(), l.da = M(), l.alternate = L(wn) ? M() : null, E(l, "IfStatement");
|
|
487
487
|
case An:
|
|
488
|
-
return
|
|
488
|
+
return Ke || R.Ib || r(z, "'return' outside of function"), v(), L(pe) || Ie() ? l.K = null : (l.K = Z(), I()), E(l, "ReturnStatement");
|
|
489
489
|
case Wt:
|
|
490
|
-
for (v(), l.Qb = J(), l.tb = [], x(
|
|
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(
|
|
490
|
+
for (v(), l.Qb = J(), l.tb = [], x(ze), H.push(Lr); T !== Pe; )
|
|
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(Ye)) : (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");
|
|
@@ -500,12 +500,12 @@ var F, si = function(e) {
|
|
|
500
500
|
return v(), l.test = J(), H.push($t), l.body = M(), H.pop(), E(l, "WhileStatement");
|
|
501
501
|
case On:
|
|
502
502
|
return ie && r(z, "'with' in strict mode"), v(), l.object = J(), l.body = M(), E(l, "WithStatement");
|
|
503
|
-
case
|
|
503
|
+
case ze:
|
|
504
504
|
return le();
|
|
505
505
|
case pe:
|
|
506
506
|
return v(), E(l, "EmptyStatement");
|
|
507
507
|
default:
|
|
508
|
-
if (u = ae, A = Z(), o === Oe && A.type === "Identifier" && L(
|
|
508
|
+
if (u = ae, A = Z(), o === Oe && A.type === "Identifier" && L(Ye)) {
|
|
509
509
|
for (h = 0; h < H.length; ++h)
|
|
510
510
|
H[h].name === u && r(A.start, "Label '" + u + "' is already declared");
|
|
511
511
|
return H.push({
|
|
@@ -523,7 +523,7 @@ var F, si = function(e) {
|
|
|
523
523
|
}
|
|
524
524
|
function le(o) {
|
|
525
525
|
var l = $(), u = !0, h = !1;
|
|
526
|
-
for (l.body = [], x(
|
|
526
|
+
for (l.body = [], x(ze); !L(Pe); ) {
|
|
527
527
|
var A = M();
|
|
528
528
|
if (l.body.push(A), u && o && Ee(A)) {
|
|
529
529
|
var Y = h;
|
|
@@ -559,7 +559,7 @@ var F, si = function(e) {
|
|
|
559
559
|
var l = Et(It(), -1, o);
|
|
560
560
|
if (L(Wn)) {
|
|
561
561
|
var u = Q(l);
|
|
562
|
-
u.test = l, u.da = Z(!0), x(
|
|
562
|
+
u.test = l, u.da = Z(!0), x(Ye), u.alternate = Z(!0, o), l = E(u, "ConditionalExpression");
|
|
563
563
|
}
|
|
564
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
|
}
|
|
@@ -574,18 +574,18 @@ var F, si = function(e) {
|
|
|
574
574
|
function It() {
|
|
575
575
|
if (T.prefix) {
|
|
576
576
|
var o = $(), l = T.$b;
|
|
577
|
-
return o.operator = ae,
|
|
577
|
+
return o.operator = ae, He = o.prefix = !0, v(), o.K = It(), l ? W(o.K) : ie && o.operator === "delete" && o.K.type === "Identifier" && r(o.start, "Deleting local variable in strict mode"), E(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
578
578
|
}
|
|
579
|
-
for (l =
|
|
579
|
+
for (l = $e(ct()); T.cc && !Ie(); )
|
|
580
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
|
-
function
|
|
583
|
+
function $e(o, l) {
|
|
584
584
|
if (L(Dn)) {
|
|
585
585
|
var u = Q(o);
|
|
586
|
-
return u.object = o, u.Wa = de(!0), u.bb = !1,
|
|
586
|
+
return u.object = o, u.Wa = de(!0), u.bb = !1, $e(E(u, "MemberExpression"), l);
|
|
587
587
|
}
|
|
588
|
-
return L(Vt) ? (u = Q(o), u.object = o, u.Wa = Z(), u.bb = !0, x(_t),
|
|
588
|
+
return L(Vt) ? (u = Q(o), u.object = o, u.Wa = Z(), u.bb = !0, x(_t), $e(E(u, "MemberExpression"), l)) : !l && L(he) ? (u = Q(o), u.callee = o, u.arguments = At(ue, !1), $e(E(u, "CallExpression"), l)) : o;
|
|
589
589
|
}
|
|
590
590
|
function ct() {
|
|
591
591
|
switch (T) {
|
|
@@ -594,7 +594,7 @@ var F, si = function(e) {
|
|
|
594
594
|
return v(), E(o, "ThisExpression");
|
|
595
595
|
case Oe:
|
|
596
596
|
return de();
|
|
597
|
-
case
|
|
597
|
+
case Ge:
|
|
598
598
|
case ut:
|
|
599
599
|
case vn:
|
|
600
600
|
return o = $(), o.value = ae, o.raw = S.slice(z, Re), v(), E(o, "Literal");
|
|
@@ -610,20 +610,20 @@ var F, si = function(e) {
|
|
|
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
612
|
return o = $(), v(), o.elements = At(_t, !0, !0), E(o, "ArrayExpression");
|
|
613
|
-
case
|
|
613
|
+
case ze:
|
|
614
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))
|
|
618
618
|
break;
|
|
619
619
|
var h = {
|
|
620
|
-
key: T ===
|
|
620
|
+
key: T === Ge || T === ut ? ct() : de(!0)
|
|
621
621
|
}, A = !1;
|
|
622
|
-
if (L(
|
|
622
|
+
if (L(Ye)) {
|
|
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" ? B() : (A = u = !0, Y = h.kind = h.key.name, h.key = T ===
|
|
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 === Ge || T === ut ? ct() : de(!0), T !== he && B(), h.value = Tt($(), !1));
|
|
627
627
|
if (h.key.type === "Identifier" && (ie || u))
|
|
628
628
|
for (var ee = 0; ee < o.h.length; ++ee) {
|
|
629
629
|
var Be = o.h[ee];
|
|
@@ -638,7 +638,7 @@ var F, si = function(e) {
|
|
|
638
638
|
case Dt:
|
|
639
639
|
return o = $(), v(), Tt(o, !1);
|
|
640
640
|
case Pn:
|
|
641
|
-
return o = $(), v(), o.callee =
|
|
641
|
+
return o = $(), v(), o.callee = $e(ct(), !0), o.arguments = L(he) ? At(ue, !1) : Er, E(o, "NewExpression");
|
|
642
642
|
}
|
|
643
643
|
B();
|
|
644
644
|
}
|
|
@@ -647,9 +647,9 @@ var F, si = function(e) {
|
|
|
647
647
|
var u = !0;
|
|
648
648
|
for (x(he); !L(ue); )
|
|
649
649
|
u ? u = !1 : x(ke), o.oa.push(de());
|
|
650
|
-
u =
|
|
650
|
+
u = Ke;
|
|
651
651
|
var h = H;
|
|
652
|
-
if (
|
|
652
|
+
if (Ke = !0, H = [], o.body = le(!0), Ke = u, H = h, ie || o.body.body.length && Ee(o.body.body[0])) {
|
|
653
653
|
for (u = o.id ? -1 : 0; u < o.oa.length; ++u)
|
|
654
654
|
if (h = 0 > u ? o.id : o.oa[u], (Hn(h.name) || ft(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= u)
|
|
655
655
|
for (var A = 0; A < u; ++A)
|
|
@@ -669,7 +669,7 @@ var F, si = function(e) {
|
|
|
669
669
|
}
|
|
670
670
|
function de(o) {
|
|
671
671
|
var l = $();
|
|
672
|
-
return o && R.yb === "everywhere" && (o = !1), T === Oe ? (!o && (R.yb && Fr(ae) || ie && 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(),
|
|
672
|
+
return o && R.yb === "everywhere" && (o = !1), T === Oe ? (!o && (R.yb && Fr(ae) || ie && 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(), He = !1, v(), E(l, "Identifier");
|
|
673
673
|
}
|
|
674
674
|
e.version = "0.5.0";
|
|
675
675
|
var R, S = "", je, jt;
|
|
@@ -677,7 +677,7 @@ 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,
|
|
680
|
+
for (jt = R.sourceFile, Te = 1, d = fe = 0, He = !0, f(), u = R.dc, Pt = Se = d, R.C && (Nt = new a()), Ke = ie = !1, H = [], b(), o = u || $(), l = !0, u || (o.body = []); T !== Bt; )
|
|
681
681
|
u = M(), o.body.push(u), l && Ee(u) && U(!0), l = !1;
|
|
682
682
|
return E(o, "Program");
|
|
683
683
|
};
|
|
@@ -692,7 +692,7 @@ var F, si = function(e) {
|
|
|
692
692
|
dc: null,
|
|
693
693
|
sourceFile: null,
|
|
694
694
|
vb: null
|
|
695
|
-
}, d = 0, z = 0, Re = 0, Rt, Ot, T, ae,
|
|
695
|
+
}, d = 0, z = 0, Re = 0, Rt, Ot, T, ae, He, Te, fe, Pt = 0, Se = 0, Nt, Ke, H, ie, Er = [], Ge = {
|
|
696
696
|
type: "num"
|
|
697
697
|
}, vn = {
|
|
698
698
|
type: "regexp"
|
|
@@ -816,7 +816,7 @@ var F, si = function(e) {
|
|
|
816
816
|
m: !0
|
|
817
817
|
}, _t = {
|
|
818
818
|
type: "]"
|
|
819
|
-
},
|
|
819
|
+
}, ze = {
|
|
820
820
|
type: "{",
|
|
821
821
|
m: !0
|
|
822
822
|
}, Pe = {
|
|
@@ -832,7 +832,7 @@ var F, si = function(e) {
|
|
|
832
832
|
}, pe = {
|
|
833
833
|
type: ";",
|
|
834
834
|
m: !0
|
|
835
|
-
},
|
|
835
|
+
}, Ye = {
|
|
836
836
|
type: ":",
|
|
837
837
|
m: !0
|
|
838
838
|
}, Dn = {
|
|
@@ -927,7 +927,7 @@ var Yn = {
|
|
|
927
927
|
configurable: !0,
|
|
928
928
|
enumerable: !1,
|
|
929
929
|
writable: !1
|
|
930
|
-
},
|
|
930
|
+
}, Xe = {
|
|
931
931
|
configurable: !1,
|
|
932
932
|
enumerable: !1,
|
|
933
933
|
writable: !1
|
|
@@ -937,18 +937,18 @@ var Yn = {
|
|
|
937
937
|
writable: !0
|
|
938
938
|
}, fr = {
|
|
939
939
|
STEP_ERROR: !0
|
|
940
|
-
},
|
|
940
|
+
}, _e = {
|
|
941
941
|
SCOPE_REFERENCE: !0
|
|
942
|
-
},
|
|
942
|
+
}, rt = {
|
|
943
943
|
VALUE_IN_DESCRIPTOR: !0
|
|
944
944
|
}, Me = {
|
|
945
945
|
REGEXP_TIMEOUT: !0
|
|
946
|
-
}, Jn = [], ve = null,
|
|
946
|
+
}, Jn = [], ve = null, et = null, we = typeof globalThis == "undefined" ? void 0 : globalThis, li = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
|
|
947
947
|
function tn(e) {
|
|
948
948
|
var t = e >>> 0;
|
|
949
949
|
return t === Number(e) ? t : NaN;
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function tt(e) {
|
|
952
952
|
var t = e >>> 0;
|
|
953
953
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
954
954
|
}
|
|
@@ -980,7 +980,7 @@ F.Jb = function(e) {
|
|
|
980
980
|
throw Error("Expecting original AST to start with a Program node");
|
|
981
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
|
+
it(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
984
984
|
};
|
|
985
985
|
F.lb = function() {
|
|
986
986
|
var e = this.o, t;
|
|
@@ -1002,15 +1002,15 @@ F.lb = function() {
|
|
|
1002
1002
|
break;
|
|
1003
1003
|
}
|
|
1004
1004
|
r = n.node;
|
|
1005
|
-
var i =
|
|
1006
|
-
|
|
1005
|
+
var i = et;
|
|
1006
|
+
et = this;
|
|
1007
1007
|
try {
|
|
1008
1008
|
var a = this.rb[r.type](e, n, r);
|
|
1009
1009
|
} catch (s) {
|
|
1010
1010
|
if (s !== fr)
|
|
1011
1011
|
throw this.value !== s && (this.value = void 0), s;
|
|
1012
1012
|
} finally {
|
|
1013
|
-
|
|
1013
|
+
et = i;
|
|
1014
1014
|
}
|
|
1015
1015
|
if (a && e.push(a), this.P)
|
|
1016
1016
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -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,
|
|
1029
|
+
e.g(t, "NaN", NaN, Xe), e.g(t, "Infinity", 1 / 0, Xe), e.g(t, "undefined", void 0, Xe), e.g(t, "window", t, en), e.g(t, "this", t, Xe), 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);
|
|
@@ -1106,7 +1106,7 @@ function di(e, t) {
|
|
|
1106
1106
|
}, e.g(e.v, "keys", e.i(r, !1), k), r = function(i) {
|
|
1107
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 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,
|
|
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, rt, 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
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];
|
|
@@ -1166,15 +1166,15 @@ function hi(e, t) {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
}, X(e, e.J, "localeCompare", n), n = function(r, i, a) {
|
|
1168
1168
|
var s = String(this);
|
|
1169
|
-
if (i = i ? Number(i) : void 0, q(e, r, e.I) && (r = r.data,
|
|
1169
|
+
if (i = i ? Number(i) : void 0, q(e, r, e.I) && (r = r.data, qe(e, r, a), e.REGEXP_MODE === 2)) {
|
|
1170
1170
|
if (ve)
|
|
1171
|
-
r =
|
|
1171
|
+
r = Je(e, "string.split(separator, limit)", {
|
|
1172
1172
|
string: s,
|
|
1173
1173
|
separator: r,
|
|
1174
1174
|
limit: i
|
|
1175
1175
|
}, r, a), r !== Me && a(ge(e, r));
|
|
1176
1176
|
else {
|
|
1177
|
-
var c = e.ha(), f =
|
|
1177
|
+
var c = e.ha(), f = Ze(e, r, c, a);
|
|
1178
1178
|
c.onmessage = function(g) {
|
|
1179
1179
|
clearTimeout(f), a(ge(e, g.data));
|
|
1180
1180
|
}, c.postMessage(["split", s, r, i]);
|
|
@@ -1182,49 +1182,49 @@ function hi(e, t) {
|
|
|
1182
1182
|
return;
|
|
1183
1183
|
}
|
|
1184
1184
|
r = s.split(r, i), a(ge(e, r));
|
|
1185
|
-
},
|
|
1185
|
+
}, Qe(e, e.J, "split", n), n = function(r, i) {
|
|
1186
1186
|
var a = String(this);
|
|
1187
|
-
if (r = q(e, r, e.I) ? r.data : new RegExp(r),
|
|
1187
|
+
if (r = q(e, r, e.I) ? r.data : new RegExp(r), qe(e, r, i), e.REGEXP_MODE === 2)
|
|
1188
1188
|
if (ve)
|
|
1189
|
-
r =
|
|
1189
|
+
r = Je(e, "string.match(regexp)", {
|
|
1190
1190
|
string: a,
|
|
1191
1191
|
regexp: r
|
|
1192
1192
|
}, r, i), r !== Me && i(r && ge(e, r));
|
|
1193
1193
|
else {
|
|
1194
|
-
var s = e.ha(), c =
|
|
1194
|
+
var s = e.ha(), c = Ze(e, r, s, i);
|
|
1195
1195
|
s.onmessage = function(f) {
|
|
1196
1196
|
clearTimeout(c), i(f.data && ge(e, f.data));
|
|
1197
1197
|
}, s.postMessage(["match", a, r]);
|
|
1198
1198
|
}
|
|
1199
1199
|
else
|
|
1200
1200
|
r = a.match(r), i(r && ge(e, r));
|
|
1201
|
-
},
|
|
1201
|
+
}, Qe(e, e.J, "match", n), n = function(r, i) {
|
|
1202
1202
|
var a = String(this);
|
|
1203
|
-
if (q(e, r, e.I) ? r = r.data : r = new RegExp(r),
|
|
1203
|
+
if (q(e, r, e.I) ? r = r.data : r = new RegExp(r), qe(e, r, i), e.REGEXP_MODE === 2)
|
|
1204
1204
|
if (ve)
|
|
1205
|
-
r =
|
|
1205
|
+
r = Je(e, "string.search(regexp)", {
|
|
1206
1206
|
string: a,
|
|
1207
1207
|
regexp: r
|
|
1208
1208
|
}, r, i), r !== Me && i(r);
|
|
1209
1209
|
else {
|
|
1210
|
-
var s = e.ha(), c =
|
|
1210
|
+
var s = e.ha(), c = Ze(e, r, s, i);
|
|
1211
1211
|
s.onmessage = function(f) {
|
|
1212
1212
|
clearTimeout(c), i(f.data);
|
|
1213
1213
|
}, s.postMessage(["search", a, r]);
|
|
1214
1214
|
}
|
|
1215
1215
|
else
|
|
1216
1216
|
i(a.search(r));
|
|
1217
|
-
},
|
|
1217
|
+
}, Qe(e, e.J, "search", n), n = function(r, i, a) {
|
|
1218
1218
|
var s = String(this);
|
|
1219
|
-
if (i = String(i), q(e, r, e.I) && (r = r.data,
|
|
1219
|
+
if (i = String(i), q(e, r, e.I) && (r = r.data, qe(e, r, a), e.REGEXP_MODE === 2)) {
|
|
1220
1220
|
if (ve)
|
|
1221
|
-
r =
|
|
1221
|
+
r = Je(e, "string.replace(substr, newSubstr)", {
|
|
1222
1222
|
string: s,
|
|
1223
1223
|
substr: r,
|
|
1224
1224
|
newSubstr: i
|
|
1225
1225
|
}, r, a), r !== Me && a(r);
|
|
1226
1226
|
else {
|
|
1227
|
-
var c = e.ha(), f =
|
|
1227
|
+
var c = e.ha(), f = Ze(e, r, c, a);
|
|
1228
1228
|
c.onmessage = function(g) {
|
|
1229
1229
|
clearTimeout(f), a(g.data);
|
|
1230
1230
|
}, c.postMessage(["replace", s, r, i]);
|
|
@@ -1232,7 +1232,7 @@ function hi(e, t) {
|
|
|
1232
1232
|
return;
|
|
1233
1233
|
}
|
|
1234
1234
|
a(s.replace(r, i));
|
|
1235
|
-
},
|
|
1235
|
+
}, Qe(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1236
1236
|
}
|
|
1237
1237
|
function pi(e, t) {
|
|
1238
1238
|
e.mb = e.i(function(n) {
|
|
@@ -1244,7 +1244,7 @@ function mi(e, t) {
|
|
|
1244
1244
|
return r = arguments.length ? we.Number(r) : 0, xe(e) ? (this.data = r, this) : r;
|
|
1245
1245
|
};
|
|
1246
1246
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, k), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1247
|
-
e.g(e.aa, t[n], Number[t[n]],
|
|
1247
|
+
e.g(e.aa, t[n], Number[t[n]], Xe);
|
|
1248
1248
|
n = function(r) {
|
|
1249
1249
|
try {
|
|
1250
1250
|
return Number(this).toExponential(r);
|
|
@@ -1323,21 +1323,21 @@ function yi(e, t) {
|
|
|
1323
1323
|
return null;
|
|
1324
1324
|
}
|
|
1325
1325
|
var s = this.data;
|
|
1326
|
-
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1326
|
+
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), qe(e, s, i), e.REGEXP_MODE === 2)
|
|
1327
1327
|
if (ve)
|
|
1328
|
-
r =
|
|
1328
|
+
r = Je(e, "regexp.exec(string)", {
|
|
1329
1329
|
string: r,
|
|
1330
1330
|
regexp: s
|
|
1331
1331
|
}, s, i), r !== Me && (e.g(this, "lastIndex", s.lastIndex), i(a(r)));
|
|
1332
1332
|
else {
|
|
1333
|
-
var c = e.ha(), f =
|
|
1333
|
+
var c = e.ha(), f = Ze(e, s, c, i), g = this;
|
|
1334
1334
|
c.onmessage = function(b) {
|
|
1335
1335
|
clearTimeout(f), e.g(g, "lastIndex", b.data[1]), i(a(b.data[0]));
|
|
1336
1336
|
}, c.postMessage(["exec", s, s.lastIndex, r]);
|
|
1337
1337
|
}
|
|
1338
1338
|
else
|
|
1339
1339
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), i(a(r));
|
|
1340
|
-
},
|
|
1340
|
+
}, Qe(e, e.I, "exec", n);
|
|
1341
1341
|
}
|
|
1342
1342
|
function vi(e, t) {
|
|
1343
1343
|
function n(r) {
|
|
@@ -1421,7 +1421,7 @@ F.ha = function() {
|
|
|
1421
1421
|
type: "application/javascript"
|
|
1422
1422
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1423
1423
|
};
|
|
1424
|
-
function
|
|
1424
|
+
function Je(e, t, n, r, i) {
|
|
1425
1425
|
var a = {
|
|
1426
1426
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1427
1427
|
};
|
|
@@ -1432,7 +1432,7 @@ function Xe(e, t, n, r, i) {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
return Me;
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function qe(e, t, n) {
|
|
1436
1436
|
if (e.REGEXP_MODE === 0)
|
|
1437
1437
|
var r = !1;
|
|
1438
1438
|
else if (e.REGEXP_MODE === 1)
|
|
@@ -1451,7 +1451,7 @@ function Je(e, t, n) {
|
|
|
1451
1451
|
r = !1;
|
|
1452
1452
|
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function Ze(e, t, n, r) {
|
|
1455
1455
|
return setTimeout(function() {
|
|
1456
1456
|
n.terminate(), r(null);
|
|
1457
1457
|
try {
|
|
@@ -1583,7 +1583,7 @@ F.G = function(e, t) {
|
|
|
1583
1583
|
if (q(this, e, this.J))
|
|
1584
1584
|
return String(e).length;
|
|
1585
1585
|
} else if (64 > t.charCodeAt(0) && q(this, e, this.J)) {
|
|
1586
|
-
var n =
|
|
1586
|
+
var n = tt(t);
|
|
1587
1587
|
if (!isNaN(n) && n < String(e).length)
|
|
1588
1588
|
return String(e)[n];
|
|
1589
1589
|
}
|
|
@@ -1598,7 +1598,7 @@ function St(e, t, n) {
|
|
|
1598
1598
|
if (n = String(n), n === "length" && q(e, t, e.J))
|
|
1599
1599
|
return !0;
|
|
1600
1600
|
if (q(e, t, e.J)) {
|
|
1601
|
-
var r =
|
|
1601
|
+
var r = tt(n);
|
|
1602
1602
|
if (!isNaN(r) && r < String(t).length)
|
|
1603
1603
|
return !0;
|
|
1604
1604
|
}
|
|
@@ -1617,7 +1617,7 @@ F.g = function(e, t, n, r) {
|
|
|
1617
1617
|
var i = !this.o || an(this).S;
|
|
1618
1618
|
if (e instanceof N) {
|
|
1619
1619
|
if (q(this, e, this.J)) {
|
|
1620
|
-
var a =
|
|
1620
|
+
var a = tt(t);
|
|
1621
1621
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1622
1622
|
i && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1623
1623
|
return;
|
|
@@ -1632,14 +1632,14 @@ F.g = function(e, t, n, r) {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
if (n = tn(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < a)
|
|
1634
1634
|
for (s in e.h) {
|
|
1635
|
-
var s =
|
|
1635
|
+
var s = tt(s);
|
|
1636
1636
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
1637
1637
|
}
|
|
1638
1638
|
} else
|
|
1639
|
-
isNaN(s =
|
|
1639
|
+
isNaN(s = tt(t)) || (e.h.length = Math.max(a, s + 1));
|
|
1640
1640
|
if (!e.preventExtensions || t in e.h)
|
|
1641
1641
|
if (r) {
|
|
1642
|
-
i = {}, "get" in r && r.get && (e.V[t] = r.get, i.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, i.set = this.g.bc), "configurable" in r && (i.configurable = r.configurable), "enumerable" in r && (i.enumerable = r.enumerable), "writable" in r && (i.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (i.value = r.value, delete e.V[t], delete e.Y[t]) : n !==
|
|
1642
|
+
i = {}, "get" in r && r.get && (e.V[t] = r.get, i.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, i.set = this.g.bc), "configurable" in r && (i.configurable = r.configurable), "enumerable" in r && (i.enumerable = r.enumerable), "writable" in r && (i.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (i.value = r.value, delete e.V[t], delete e.Y[t]) : n !== rt && (i.value = n, delete e.V[t], delete e.Y[t]);
|
|
1643
1643
|
try {
|
|
1644
1644
|
Object.defineProperty(e.h, t, i);
|
|
1645
1645
|
} catch {
|
|
@@ -1647,7 +1647,7 @@ F.g = function(e, t, n, r) {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1649
1649
|
} else {
|
|
1650
|
-
if (n ===
|
|
1650
|
+
if (n === rt)
|
|
1651
1651
|
throw ReferenceError("Value not specified");
|
|
1652
1652
|
for (r = e; !(t in r.h); )
|
|
1653
1653
|
if (r = be(this, r), !r) {
|
|
@@ -1679,7 +1679,7 @@ F.g.bc = function() {
|
|
|
1679
1679
|
function X(e, t, n, r) {
|
|
1680
1680
|
e.g(t.h.prototype, n, e.i(r, !1), k);
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1682
|
+
function Qe(e, t, n, r) {
|
|
1683
1683
|
e.g(t.h.prototype, n, e.ub(r), k);
|
|
1684
1684
|
}
|
|
1685
1685
|
function an(e) {
|
|
@@ -1695,7 +1695,7 @@ function Jt(e, t, n) {
|
|
|
1695
1695
|
var i = t.body && t.body[0];
|
|
1696
1696
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (r = !0);
|
|
1697
1697
|
}
|
|
1698
|
-
return i = e.s(null), r = new gr(n, r, i), n || ci(e, r.object),
|
|
1698
|
+
return i = e.s(null), r = new gr(n, r, i), n || ci(e, r.object), it(e, t, r), r;
|
|
1699
1699
|
}
|
|
1700
1700
|
function sn(e, t, n) {
|
|
1701
1701
|
if (!t)
|
|
@@ -1728,7 +1728,7 @@ function pr(e, t, n) {
|
|
|
1728
1728
|
return e.g(r.object, t, n);
|
|
1729
1729
|
w(e, e.pb, t + " is not defined");
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1731
|
+
function it(e, t, n) {
|
|
1732
1732
|
if (t.jb)
|
|
1733
1733
|
var r = t.jb;
|
|
1734
1734
|
else {
|
|
@@ -1761,12 +1761,12 @@ function rt(e, t, n) {
|
|
|
1761
1761
|
if (Array.isArray(c)) {
|
|
1762
1762
|
for (i = 0; i < c.length; i++)
|
|
1763
1763
|
if (c[i] && c[i].constructor === a) {
|
|
1764
|
-
var f =
|
|
1764
|
+
var f = it(e, c[i], n);
|
|
1765
1765
|
for (s in f)
|
|
1766
1766
|
r[s] = f[s];
|
|
1767
1767
|
}
|
|
1768
1768
|
} else if (c.constructor === a)
|
|
1769
|
-
for (s in f =
|
|
1769
|
+
for (s in f = it(e, c, n), f)
|
|
1770
1770
|
r[s] = f[s];
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
@@ -1781,10 +1781,10 @@ function xe(e) {
|
|
|
1781
1781
|
return e.o[e.o.length - 1].isConstructor;
|
|
1782
1782
|
}
|
|
1783
1783
|
function cn(e, t) {
|
|
1784
|
-
return t[0] ===
|
|
1784
|
+
return t[0] === _e ? ln(e, t[1]) : e.G(t[0], t[1]);
|
|
1785
1785
|
}
|
|
1786
1786
|
function un(e, t, n) {
|
|
1787
|
-
return t[0] ===
|
|
1787
|
+
return t[0] === _e ? pr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1788
1788
|
}
|
|
1789
1789
|
function w(e, t, n) {
|
|
1790
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;
|
|
@@ -1934,7 +1934,7 @@ F.xa = null;
|
|
|
1934
1934
|
F.H = "Object";
|
|
1935
1935
|
F.data = null;
|
|
1936
1936
|
F.toString = function() {
|
|
1937
|
-
if (!
|
|
1937
|
+
if (!et)
|
|
1938
1938
|
return "[object Interpreter.Object]";
|
|
1939
1939
|
if (!(this instanceof N))
|
|
1940
1940
|
return String(this);
|
|
@@ -1982,7 +1982,7 @@ F.toString = function() {
|
|
|
1982
1982
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1983
1983
|
};
|
|
1984
1984
|
F.valueOf = function() {
|
|
1985
|
-
return !
|
|
1985
|
+
return !et || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1986
1986
|
};
|
|
1987
1987
|
function Si(e, t, n, r, i) {
|
|
1988
1988
|
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++ki, this.time = 0;
|
|
@@ -2148,7 +2148,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2148
2148
|
t.ia = 2;
|
|
2149
2149
|
var i = t.value;
|
|
2150
2150
|
if (Array.isArray(i)) {
|
|
2151
|
-
if (t.U = cn(this, i), i[0] ===
|
|
2151
|
+
if (t.U = cn(this, i), i[0] === _e ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2152
2152
|
return t.ia = 1, st(this, i, t.value);
|
|
2153
2153
|
} else
|
|
2154
2154
|
t.U = i;
|
|
@@ -2187,7 +2187,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2187
2187
|
} catch (c) {
|
|
2188
2188
|
w(this, this.T, "Invalid code: " + c.message);
|
|
2189
2189
|
}
|
|
2190
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, xt(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Jt(this, r, n) :
|
|
2190
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, xt(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Jt(this, r, n) : it(this, r, n), this.value = void 0, new C(i, n);
|
|
2191
2191
|
}
|
|
2192
2192
|
else if (i.Ta)
|
|
2193
2193
|
t.scope.S || (t.B = Gt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
@@ -2273,7 +2273,7 @@ p.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2273
2273
|
}
|
|
2274
2274
|
if (!t.wb)
|
|
2275
2275
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2276
|
-
t.pa = [
|
|
2276
|
+
t.pa = [_e, e.fa[0].id.name];
|
|
2277
2277
|
else
|
|
2278
2278
|
return t.pa = null, t = new C(e, t.scope), t.sa = !0, t;
|
|
2279
2279
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = un(this, t.pa, e)))
|
|
@@ -2310,7 +2310,7 @@ p.prototype.stepFunctionExpression = function(e, t, n) {
|
|
|
2310
2310
|
};
|
|
2311
2311
|
p.prototype.stepIdentifier = function(e, t, n) {
|
|
2312
2312
|
if (e.pop(), t.sa)
|
|
2313
|
-
e[e.length - 1].value = [
|
|
2313
|
+
e[e.length - 1].value = [_e, n.name];
|
|
2314
2314
|
else {
|
|
2315
2315
|
if (t = ln(this, n.name), this.P)
|
|
2316
2316
|
return st(this, t, this.Na);
|
|
@@ -2373,7 +2373,7 @@ p.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2373
2373
|
return t.Pa = a, new C(i.value, t.scope);
|
|
2374
2374
|
}
|
|
2375
2375
|
for (s in t.Ja)
|
|
2376
|
-
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s,
|
|
2376
|
+
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, rt, {
|
|
2377
2377
|
configurable: !0,
|
|
2378
2378
|
enumerable: !0,
|
|
2379
2379
|
get: n.get,
|
|
@@ -2463,7 +2463,7 @@ p.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2463
2463
|
case "delete":
|
|
2464
2464
|
if (n = !0, Array.isArray(r)) {
|
|
2465
2465
|
var i = r[0];
|
|
2466
|
-
i ===
|
|
2466
|
+
i === _e && (i = t.scope), r = String(r[1]);
|
|
2467
2467
|
try {
|
|
2468
2468
|
delete i.h[r];
|
|
2469
2469
|
} catch {
|
|
@@ -2534,7 +2534,7 @@ p.prototype.pseudoToNative = p.prototype.R;
|
|
|
2534
2534
|
p.prototype.getGlobalScope = p.prototype.Xb;
|
|
2535
2535
|
p.prototype.getStateStack = p.prototype.Yb;
|
|
2536
2536
|
p.prototype.setStateStack = p.prototype.ec;
|
|
2537
|
-
p.VALUE_IN_DESCRIPTOR =
|
|
2537
|
+
p.VALUE_IN_DESCRIPTOR = rt;
|
|
2538
2538
|
const Ci = (e) => e.split(`
|
|
2539
2539
|
`).map((t) => {
|
|
2540
2540
|
const n = t.trim();
|
|
@@ -2743,7 +2743,7 @@ const Oi = ({
|
|
|
2743
2743
|
block: e
|
|
2744
2744
|
}));
|
|
2745
2745
|
function vr(e) {
|
|
2746
|
-
switch (
|
|
2746
|
+
switch (Ve) {
|
|
2747
2747
|
case "svelte":
|
|
2748
2748
|
case "vue":
|
|
2749
2749
|
case "solid":
|
|
@@ -2980,7 +2980,7 @@ function Sr(e) {
|
|
|
2980
2980
|
const a = n[i];
|
|
2981
2981
|
let s = Li(i);
|
|
2982
2982
|
if (e.stripPrefix)
|
|
2983
|
-
switch (
|
|
2983
|
+
switch (Ve) {
|
|
2984
2984
|
case "vue":
|
|
2985
2985
|
s = s.replace("v-on:", "");
|
|
2986
2986
|
break;
|
|
@@ -3013,7 +3013,7 @@ function pn({
|
|
|
3013
3013
|
block: e,
|
|
3014
3014
|
context: t
|
|
3015
3015
|
}),
|
|
3016
|
-
[
|
|
3016
|
+
[nt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3017
3017
|
};
|
|
3018
3018
|
return _i({
|
|
3019
3019
|
properties: n,
|
|
@@ -3186,7 +3186,7 @@ function Ct(e) {
|
|
|
3186
3186
|
registeredComponents: e.registeredComponents,
|
|
3187
3187
|
builderBlock: r(),
|
|
3188
3188
|
includeBlockProps: ((V = t()) == null ? void 0 : V.noWrap) === !0,
|
|
3189
|
-
isInteractive: !((P = t()) != null && P.isRSC)
|
|
3189
|
+
isInteractive: !((P = t()) != null && P.isRSC && Ve === "rsc")
|
|
3190
3190
|
};
|
|
3191
3191
|
};
|
|
3192
3192
|
return /* @__PURE__ */ y(K, { children: a() ? /* @__PURE__ */ se(K, { children: [
|
|
@@ -3419,7 +3419,7 @@ function Ji(e) {
|
|
|
3419
3419
|
...v.link ? {
|
|
3420
3420
|
href: v.link
|
|
3421
3421
|
} : {},
|
|
3422
|
-
[
|
|
3422
|
+
[nt()]: "builder-column",
|
|
3423
3423
|
style: vr(m(U))
|
|
3424
3424
|
};
|
|
3425
3425
|
};
|
|
@@ -4597,7 +4597,7 @@ const Co = () => [{
|
|
|
4597
4597
|
})), Io = ({
|
|
4598
4598
|
canTrack: e,
|
|
4599
4599
|
content: t
|
|
4600
|
-
}) => !(!(gt(t).length > 0) || !e || De()), To = (e) => e === "react" || e === "reactNative", wr = To(
|
|
4600
|
+
}) => !(!(gt(t).length > 0) || !e || De()), To = (e) => e === "react" || e === "reactNative", wr = To(Ve), Ao = () => `
|
|
4601
4601
|
window.${kr} = ${wo}
|
|
4602
4602
|
window.${Cr} = ${Eo}
|
|
4603
4603
|
`, jo = (e, t) => `
|
|
@@ -5204,7 +5204,7 @@ function Jo(e) {
|
|
|
5204
5204
|
});
|
|
5205
5205
|
};
|
|
5206
5206
|
return /* @__PURE__ */ se(K, { children: [
|
|
5207
|
-
!e.isNestedRender &&
|
|
5207
|
+
!e.isNestedRender && Ve !== "reactNative" ? /* @__PURE__ */ y(
|
|
5208
5208
|
qt,
|
|
5209
5209
|
{
|
|
5210
5210
|
id: "builderio-init-variants-fns",
|
|
@@ -5311,7 +5311,7 @@ async function Zo(e) {
|
|
|
5311
5311
|
}, r = function() {
|
|
5312
5312
|
var m, j;
|
|
5313
5313
|
return [
|
|
5314
|
-
e.attributes[
|
|
5314
|
+
e.attributes[nt()],
|
|
5315
5315
|
"builder-symbol",
|
|
5316
5316
|
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
5317
5317
|
(j = e.symbol) != null && j.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|