@builder.io/sdk-react-nextjs 0.13.3 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{USE_CLIENT_BUNDLE-04cd188b.js → USE_CLIENT_BUNDLE-288752d8.js} +2 -2
- package/lib/{node/USE_CLIENT_BUNDLE-85cf7e92.cjs → browser/USE_CLIENT_BUNDLE-94cce7fa.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-1f2bfec0.js → browser/USE_SERVER_BUNDLE-02c2385b.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-c05264ac.cjs → browser/USE_SERVER_BUNDLE-20569132.cjs} +1 -1
- package/lib/browser/{bundle-16af19fc.js → bundle-10ada443.js} +94 -94
- package/lib/browser/{bundle-09521c43.cjs → bundle-44e64ae0.cjs} +7 -7
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{browser/USE_CLIENT_BUNDLE-dcad73d0.cjs → edge/USE_CLIENT_BUNDLE-4859795b.cjs} +1 -1
- package/lib/{node/USE_CLIENT_BUNDLE-d1e6dcd3.js → edge/USE_CLIENT_BUNDLE-6fd05768.js} +2 -2
- package/lib/{node/USE_SERVER_BUNDLE-601fafbe.js → edge/USE_SERVER_BUNDLE-6e48e5ed.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-1aafe1f0.cjs → edge/USE_SERVER_BUNDLE-70e7e90b.cjs} +1 -1
- package/lib/edge/{bundle-32e28c53.js → bundle-66600134.js} +119 -119
- package/lib/edge/{bundle-10fb1352.cjs → bundle-aa7b9a16.cjs} +16 -16
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-403b6348.cjs → node/USE_CLIENT_BUNDLE-5990191b.cjs} +1 -1
- package/lib/{edge/USE_CLIENT_BUNDLE-5b75ae27.js → node/USE_CLIENT_BUNDLE-d7ccf4f8.js} +2 -2
- package/lib/{browser/USE_SERVER_BUNDLE-498895bc.js → node/USE_SERVER_BUNDLE-7a98295a.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-f6de6931.cjs → node/USE_SERVER_BUNDLE-b7c27ec7.cjs} +1 -1
- package/lib/node/{bundle-42fea3bc.js → bundle-2d5f1c0c.js} +3 -3
- package/lib/node/{bundle-3f825965.cjs → bundle-9b818d40.cjs} +9 -9
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- 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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LRUCache as to } from "lru-cache";
|
|
2
|
-
import { jsx as C, Fragment as
|
|
3
|
-
import { I as no, B as ro, a as oo, D as io, C as ao, E as so, b as lo, V as co, c as uo, F as fo, d as po, S as ho, e as mo } from "./USE_CLIENT_BUNDLE-
|
|
2
|
+
import { jsx as C, Fragment as _, jsxs as xe } from "react/jsx-runtime";
|
|
3
|
+
import { I as no, B as ro, a as oo, D as io, C as ao, E as so, b as lo, V as co, c as uo, F as fo, d as po, S as ho, e as mo } from "./USE_CLIENT_BUNDLE-6fd05768.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const go = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]),
|
|
6
|
+
const go = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), _a = (e) => typeof e == "string" && go.has(e.toLowerCase()), he = "rsc", Xt = () => {
|
|
7
7
|
switch (he) {
|
|
8
8
|
case "react":
|
|
9
9
|
case "reactNative":
|
|
@@ -150,14 +150,14 @@ var N, Co = function(e) {
|
|
|
150
150
|
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Qr.test(String.fromCharCode(a));
|
|
151
151
|
}
|
|
152
152
|
function n(a) {
|
|
153
|
-
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
153
|
+
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && _n.test(String.fromCharCode(a));
|
|
154
154
|
}
|
|
155
155
|
function r(a, l) {
|
|
156
156
|
for (var c = g, p = 1, T = 0; ; ) {
|
|
157
157
|
it.lastIndex = T;
|
|
158
|
-
var
|
|
159
|
-
if (
|
|
160
|
-
++p, T =
|
|
158
|
+
var L = it.exec(c);
|
|
159
|
+
if (L && L.index < a)
|
|
160
|
+
++p, T = L.index + L[0].length;
|
|
161
161
|
else
|
|
162
162
|
break;
|
|
163
163
|
}
|
|
@@ -178,7 +178,7 @@ var N, Co = function(e) {
|
|
|
178
178
|
this.line = Se, this.ab = f - se;
|
|
179
179
|
}
|
|
180
180
|
function s(a, l) {
|
|
181
|
-
Ce = f, O.C && (Et = new i()), I = a, d(), Q = l,
|
|
181
|
+
Ce = f, O.C && (Et = new i()), I = a, d(), Q = l, Fe = a.m;
|
|
182
182
|
}
|
|
183
183
|
function u() {
|
|
184
184
|
for (var a = f, l = O.va && O.C && new i(), c = g.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
@@ -232,13 +232,13 @@ var N, Co = function(e) {
|
|
|
232
232
|
case 91:
|
|
233
233
|
return ++f, s(Ut);
|
|
234
234
|
case 93:
|
|
235
|
-
return ++f, s(
|
|
235
|
+
return ++f, s(Ft);
|
|
236
236
|
case 123:
|
|
237
237
|
return ++f, s(Ve);
|
|
238
238
|
case 125:
|
|
239
239
|
return ++f, s(Ie);
|
|
240
240
|
case 58:
|
|
241
|
-
return ++f, s(
|
|
241
|
+
return ++f, s(Le);
|
|
242
242
|
case 63:
|
|
243
243
|
return ++f, s(Bn);
|
|
244
244
|
case 48:
|
|
@@ -319,7 +319,7 @@ var N, Co = function(e) {
|
|
|
319
319
|
}
|
|
320
320
|
return;
|
|
321
321
|
case 47:
|
|
322
|
-
a = g.charCodeAt(f + 1),
|
|
322
|
+
a = g.charCodeAt(f + 1), Fe ? (++f, P()) : a === 61 ? S(we, 2) : S(Un, 1);
|
|
323
323
|
return;
|
|
324
324
|
case 37:
|
|
325
325
|
case 42:
|
|
@@ -334,7 +334,7 @@ var N, Co = function(e) {
|
|
|
334
334
|
return;
|
|
335
335
|
case 43:
|
|
336
336
|
case 45:
|
|
337
|
-
l = g.charCodeAt(f + 1), l === a ? l === 45 && g.charCodeAt(f + 2) === 62 && ot.test(g.slice(ge, f)) ? (f += 3, u(), d(), E()) : S(
|
|
337
|
+
l = g.charCodeAt(f + 1), l === a ? l === 45 && g.charCodeAt(f + 2) === 62 && ot.test(g.slice(ge, f)) ? (f += 3, u(), d(), E()) : S(_r, 2) : l === 61 ? S(we, 2) : S(Jr, 1);
|
|
338
338
|
return;
|
|
339
339
|
case 60:
|
|
340
340
|
case 62:
|
|
@@ -342,10 +342,10 @@ var N, Co = function(e) {
|
|
|
342
342
|
return;
|
|
343
343
|
case 61:
|
|
344
344
|
case 33:
|
|
345
|
-
g.charCodeAt(f + 1) === 61 ? S(Kr, g.charCodeAt(f + 2) === 61 ? 3 : 2) : S(a === 61 ?
|
|
345
|
+
g.charCodeAt(f + 1) === 61 ? S(Kr, g.charCodeAt(f + 2) === 61 ? 3 : 2) : S(a === 61 ? Fn : Mn, 1);
|
|
346
346
|
return;
|
|
347
347
|
case 126:
|
|
348
|
-
return S(
|
|
348
|
+
return S(Mn, 1);
|
|
349
349
|
}
|
|
350
350
|
return !1;
|
|
351
351
|
}
|
|
@@ -357,7 +357,7 @@ var N, Co = function(e) {
|
|
|
357
357
|
if (a = g.charCodeAt(f), n(a) || a === 92)
|
|
358
358
|
return $();
|
|
359
359
|
if (k(a) === !1) {
|
|
360
|
-
if (a = String.fromCharCode(a), a === "\\" ||
|
|
360
|
+
if (a = String.fromCharCode(a), a === "\\" || _n.test(a))
|
|
361
361
|
return $();
|
|
362
362
|
r(f, "Unexpected character '" + a + "'");
|
|
363
363
|
}
|
|
@@ -386,13 +386,13 @@ var N, Co = function(e) {
|
|
|
386
386
|
a = g.slice(c, f), ++f, (l = B()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
387
387
|
try {
|
|
388
388
|
var T = new RegExp(a, l);
|
|
389
|
-
} catch (
|
|
390
|
-
throw
|
|
389
|
+
} catch (L) {
|
|
390
|
+
throw L instanceof SyntaxError && r(c, L.message), L;
|
|
391
391
|
}
|
|
392
392
|
s(hn, T);
|
|
393
393
|
}
|
|
394
394
|
function j(a, l) {
|
|
395
|
-
for (var c = f, p = 0, T = l === void 0 ? 1 / 0 : l,
|
|
395
|
+
for (var c = f, p = 0, T = l === void 0 ? 1 / 0 : l, L = 0; L < T; ++L) {
|
|
396
396
|
var Y = g.charCodeAt(f);
|
|
397
397
|
if (Y = 97 <= Y ? Y - 97 + 10 : 65 <= Y ? Y - 65 + 10 : 48 <= Y && 57 >= Y ? Y - 48 : 1 / 0, Y >= a)
|
|
398
398
|
break;
|
|
@@ -427,7 +427,7 @@ var N, Co = function(e) {
|
|
|
427
427
|
}
|
|
428
428
|
function $() {
|
|
429
429
|
var a = B(), l = Ee;
|
|
430
|
-
!Te && qr(a) && (l =
|
|
430
|
+
!Te && qr(a) && (l = Lr[a]), s(l, a);
|
|
431
431
|
}
|
|
432
432
|
function m() {
|
|
433
433
|
It = V, ge = Ce, Tt = Et, E();
|
|
@@ -459,16 +459,16 @@ var N, Co = function(e) {
|
|
|
459
459
|
function gt(a) {
|
|
460
460
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function F(a) {
|
|
463
463
|
return I === a ? (m(), !0) : !1;
|
|
464
464
|
}
|
|
465
465
|
function Ze() {
|
|
466
466
|
return !O.fc && (I === At || I === Ie || ot.test(g.slice(ge, V)));
|
|
467
467
|
}
|
|
468
468
|
function be() {
|
|
469
|
-
|
|
469
|
+
F(ce) || Ze() || ie();
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function M(a) {
|
|
472
472
|
I === a ? m() : ie();
|
|
473
473
|
}
|
|
474
474
|
function ie() {
|
|
@@ -485,7 +485,7 @@ var N, Co = function(e) {
|
|
|
485
485
|
case gn:
|
|
486
486
|
m();
|
|
487
487
|
var c = a === Ot;
|
|
488
|
-
|
|
488
|
+
F(ce) || Ze() ? l.label = null : I !== Ee ? ie() : (l.label = ae(), be());
|
|
489
489
|
for (var p = 0; p < D.length; ++p) {
|
|
490
490
|
var T = D[p];
|
|
491
491
|
if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (c || T.kind === "loop") || l.label && c))
|
|
@@ -495,27 +495,27 @@ var N, Co = function(e) {
|
|
|
495
495
|
case yn:
|
|
496
496
|
return m(), be(), A(l, "DebuggerStatement");
|
|
497
497
|
case bn:
|
|
498
|
-
return m(), D.push(
|
|
498
|
+
return m(), D.push(Mt), l.body = ne(), D.pop(), M(Bt), l.test = Ne(), be(), A(l, "DoWhileStatement");
|
|
499
499
|
case xn:
|
|
500
|
-
return m(), D.push(
|
|
500
|
+
return m(), D.push(Mt), M(le), I === ce ? yt(l, null) : I === Nt ? (a = U(), m(), pn(a, !0), A(a, "VariableDeclaration"), a.fa.length === 1 && F(nt) ? fn(l, a) : yt(l, a)) : (a = K(!1, !0), F(nt) ? (Qe(a), fn(l, a)) : yt(l, a));
|
|
501
501
|
case Rt:
|
|
502
502
|
return m(), wt(l, !0);
|
|
503
503
|
case kn:
|
|
504
|
-
return m(), l.test = Ne(), l.da = ne(), l.alternate =
|
|
504
|
+
return m(), l.test = Ne(), l.da = ne(), l.alternate = F(Sn) ? ne() : null, A(l, "IfStatement");
|
|
505
505
|
case Cn:
|
|
506
|
-
return
|
|
506
|
+
return Me || O.Ib || r(V, "'return' outside of function"), m(), F(ce) || Ze() ? l.K = null : (l.K = K(), be()), A(l, "ReturnStatement");
|
|
507
507
|
case Pt:
|
|
508
|
-
for (m(), l.Qb = Ne(), l.tb = [],
|
|
509
|
-
I === jt || I === vn ? (a = I === jt, p && A(p, "SwitchCase"), l.tb.push(p = U()), p.da = [], m(), a ? p.test = K() : (c && r(It, "Multiple default clauses"), c = !0, p.test = null),
|
|
508
|
+
for (m(), l.Qb = Ne(), l.tb = [], M(Ve), D.push(eo); I !== Ie; )
|
|
509
|
+
I === jt || I === vn ? (a = I === jt, p && A(p, "SwitchCase"), l.tb.push(p = U()), p.da = [], m(), a ? p.test = K() : (c && r(It, "Multiple default clauses"), c = !0, p.test = null), M(Le)) : (p || ie(), p.da.push(ne()));
|
|
510
510
|
return p && A(p, "SwitchCase"), m(), D.pop(), A(l, "SwitchStatement");
|
|
511
511
|
case En:
|
|
512
512
|
return m(), ot.test(g.slice(ge, V)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), A(l, "ThrowStatement");
|
|
513
513
|
case In:
|
|
514
|
-
return m(), l.block = Be(), l.Ea = null, I === mn && (a = U(), m(),
|
|
514
|
+
return m(), l.block = Be(), l.Ea = null, I === mn && (a = U(), m(), M(le), a.Ua = ae(), Z && rt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), M(re), a.body = Be(), l.Ea = A(a, "CatchClause")), l.fb = F(wn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
|
|
515
515
|
case Nt:
|
|
516
516
|
return m(), pn(l), be(), A(l, "VariableDeclaration");
|
|
517
517
|
case Bt:
|
|
518
|
-
return m(), l.test = Ne(), D.push(
|
|
518
|
+
return m(), l.test = Ne(), D.push(Mt), l.body = ne(), D.pop(), A(l, "WhileStatement");
|
|
519
519
|
case Tn:
|
|
520
520
|
return Z && r(V, "'with' in strict mode"), m(), l.object = Ne(), l.body = ne(), A(l, "WithStatement");
|
|
521
521
|
case Ve:
|
|
@@ -523,7 +523,7 @@ var N, Co = function(e) {
|
|
|
523
523
|
case ce:
|
|
524
524
|
return m(), A(l, "EmptyStatement");
|
|
525
525
|
default:
|
|
526
|
-
if (c = Q, T = K(), a === Ee && T.type === "Identifier" &&
|
|
526
|
+
if (c = Q, T = K(), a === Ee && T.type === "Identifier" && F(Le)) {
|
|
527
527
|
for (p = 0; p < D.length; ++p)
|
|
528
528
|
D[p].name === c && r(T.start, "Label '" + c + "' is already declared");
|
|
529
529
|
return D.push({
|
|
@@ -535,39 +535,39 @@ var N, Co = function(e) {
|
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
function Ne() {
|
|
538
|
-
|
|
538
|
+
M(le);
|
|
539
539
|
var a = K();
|
|
540
|
-
return
|
|
540
|
+
return M(re), a;
|
|
541
541
|
}
|
|
542
542
|
function Be(a) {
|
|
543
543
|
var l = U(), c = !0, p = !1;
|
|
544
|
-
for (l.body = [],
|
|
544
|
+
for (l.body = [], M(Ve); !F(Ie); ) {
|
|
545
545
|
var T = ne();
|
|
546
546
|
if (l.body.push(T), c && a && gt(T)) {
|
|
547
|
-
var
|
|
547
|
+
var L = p;
|
|
548
548
|
ee(p = !0);
|
|
549
549
|
}
|
|
550
550
|
c = !1;
|
|
551
551
|
}
|
|
552
|
-
return p && !
|
|
552
|
+
return p && !L && ee(!1), A(l, "BlockStatement");
|
|
553
553
|
}
|
|
554
554
|
function yt(a, l) {
|
|
555
|
-
return a.ua = l,
|
|
555
|
+
return a.ua = l, M(ce), a.test = I === ce ? null : K(), M(ce), a.update = I === re ? null : K(), M(re), a.body = ne(), D.pop(), A(a, "ForStatement");
|
|
556
556
|
}
|
|
557
557
|
function fn(a, l) {
|
|
558
|
-
return a.left = l, a.right = K(),
|
|
558
|
+
return a.left = l, a.right = K(), M(re), a.body = ne(), D.pop(), A(a, "ForInStatement");
|
|
559
559
|
}
|
|
560
560
|
function pn(a, l) {
|
|
561
561
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
562
562
|
var c = U();
|
|
563
|
-
if (c.id = ae(), Z && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua =
|
|
563
|
+
if (c.id = ae(), Z && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = F(Fn) ? K(!0, l) : null, a.fa.push(A(c, "VariableDeclarator")), !F(ye))
|
|
564
564
|
break;
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
function K(a, l) {
|
|
568
568
|
var c = vt(l);
|
|
569
569
|
if (!a && I === ye) {
|
|
570
|
-
for (a = me(c), a.xb = [c];
|
|
570
|
+
for (a = me(c), a.xb = [c]; F(ye); )
|
|
571
571
|
a.xb.push(vt(l));
|
|
572
572
|
return A(a, "SequenceExpression");
|
|
573
573
|
}
|
|
@@ -575,9 +575,9 @@ var N, Co = function(e) {
|
|
|
575
575
|
}
|
|
576
576
|
function vt(a) {
|
|
577
577
|
var l = bt(St(), -1, a);
|
|
578
|
-
if (
|
|
578
|
+
if (F(Bn)) {
|
|
579
579
|
var c = me(l);
|
|
580
|
-
c.test = l, c.da = K(!0),
|
|
580
|
+
c.test = l, c.da = K(!0), M(Le), c.alternate = K(!0, a), l = A(c, "ConditionalExpression");
|
|
581
581
|
}
|
|
582
582
|
return I.Cb ? (c = me(l), c.operator = Q, c.left = l, m(), c.right = vt(a), Qe(l), A(c, "AssignmentExpression")) : l;
|
|
583
583
|
}
|
|
@@ -592,18 +592,18 @@ var N, Co = function(e) {
|
|
|
592
592
|
function St() {
|
|
593
593
|
if (I.prefix) {
|
|
594
594
|
var a = U(), l = I.$b;
|
|
595
|
-
return a.operator = Q,
|
|
595
|
+
return a.operator = Q, Fe = a.prefix = !0, m(), a.K = St(), l ? Qe(a.K) : Z && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), A(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
596
596
|
}
|
|
597
597
|
for (l = Ue(et()); I.cc && !Ze(); )
|
|
598
598
|
a = me(l), a.operator = Q, a.prefix = !1, a.K = l, Qe(l), m(), l = A(a, "UpdateExpression");
|
|
599
599
|
return l;
|
|
600
600
|
}
|
|
601
601
|
function Ue(a, l) {
|
|
602
|
-
if (
|
|
602
|
+
if (F(Nn)) {
|
|
603
603
|
var c = me(a);
|
|
604
604
|
return c.object = a, c.Wa = ae(!0), c.bb = !1, Ue(A(c, "MemberExpression"), l);
|
|
605
605
|
}
|
|
606
|
-
return
|
|
606
|
+
return F(Ut) ? (c = me(a), c.object = a, c.Wa = K(), c.bb = !0, M(Ft), Ue(A(c, "MemberExpression"), l)) : !l && F(le) ? (c = me(a), c.callee = a, c.arguments = xt(re, !1), Ue(A(c, "CallExpression"), l)) : a;
|
|
607
607
|
}
|
|
608
608
|
function et() {
|
|
609
609
|
switch (I) {
|
|
@@ -625,29 +625,29 @@ var N, Co = function(e) {
|
|
|
625
625
|
var l = V;
|
|
626
626
|
m();
|
|
627
627
|
var c = K();
|
|
628
|
-
return c.start = l, c.end = Ce, O.C && (c.X.start = a, c.X.end = Et), O.Xa && (c.j = [l, Ce]),
|
|
628
|
+
return c.start = l, c.end = Ce, O.C && (c.X.start = a, c.X.end = Et), O.Xa && (c.j = [l, Ce]), M(re), c;
|
|
629
629
|
case Ut:
|
|
630
|
-
return a = U(), m(), a.elements = xt(
|
|
630
|
+
return a = U(), m(), a.elements = xt(Ft, !0, !0), A(a, "ArrayExpression");
|
|
631
631
|
case Ve:
|
|
632
|
-
for (a = U(), l = !0, c = !1, a.h = [], m(); !
|
|
632
|
+
for (a = U(), l = !0, c = !1, a.h = [], m(); !F(Ie); ) {
|
|
633
633
|
if (l)
|
|
634
634
|
l = !1;
|
|
635
|
-
else if (
|
|
635
|
+
else if (M(ye), O.sb && F(Ie))
|
|
636
636
|
break;
|
|
637
637
|
var p = {
|
|
638
638
|
key: I === De || I === tt ? et() : ae(!0)
|
|
639
639
|
}, T = !1;
|
|
640
|
-
if (
|
|
640
|
+
if (F(Le)) {
|
|
641
641
|
p.value = K(!0);
|
|
642
|
-
var
|
|
642
|
+
var L = p.kind = "init";
|
|
643
643
|
} else
|
|
644
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ie() : (T = c = !0,
|
|
644
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ie() : (T = c = !0, L = p.kind = p.key.name, p.key = I === De || I === tt ? et() : ae(!0), I !== le && ie(), p.value = wt(U(), !1));
|
|
645
645
|
if (p.key.type === "Identifier" && (Z || c))
|
|
646
646
|
for (var Y = 0; Y < a.h.length; ++Y) {
|
|
647
647
|
var Ae = a.h[Y];
|
|
648
648
|
if (Ae.key.name === p.key.name) {
|
|
649
|
-
var Dt =
|
|
650
|
-
Dt && !Z &&
|
|
649
|
+
var Dt = L === Ae.kind || T && Ae.kind === "init" || L === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
650
|
+
Dt && !Z && L === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(p.key.start, "Redefinition of property");
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
a.h.push(p);
|
|
@@ -656,30 +656,30 @@ var N, Co = function(e) {
|
|
|
656
656
|
case Rt:
|
|
657
657
|
return a = U(), m(), wt(a, !1);
|
|
658
658
|
case An:
|
|
659
|
-
return a = U(), m(), a.callee = Ue(et(), !0), a.arguments =
|
|
659
|
+
return a = U(), m(), a.callee = Ue(et(), !0), a.arguments = F(le) ? xt(re, !1) : Vr, A(a, "NewExpression");
|
|
660
660
|
}
|
|
661
661
|
ie();
|
|
662
662
|
}
|
|
663
663
|
function wt(a, l) {
|
|
664
664
|
I === Ee ? a.id = ae() : l ? ie() : a.id = null, a.oa = [];
|
|
665
665
|
var c = !0;
|
|
666
|
-
for (
|
|
667
|
-
c ? c = !1 :
|
|
668
|
-
c =
|
|
666
|
+
for (M(le); !F(re); )
|
|
667
|
+
c ? c = !1 : M(ye), a.oa.push(ae());
|
|
668
|
+
c = Me;
|
|
669
669
|
var p = D;
|
|
670
|
-
if (
|
|
670
|
+
if (Me = !0, D = [], a.body = Be(!0), Me = c, D = p, Z || a.body.body.length && gt(a.body.body[0])) {
|
|
671
671
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
672
|
-
if (p = 0 > c ? a.id : a.oa[c], (
|
|
672
|
+
if (p = 0 > c ? a.id : a.oa[c], (Ln(p.name) || rt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= c)
|
|
673
673
|
for (var T = 0; T < c; ++T)
|
|
674
674
|
p.name === a.oa[T].name && r(p.start, "Argument name clash in strict mode");
|
|
675
675
|
}
|
|
676
676
|
return A(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
677
677
|
}
|
|
678
678
|
function xt(a, l, c) {
|
|
679
|
-
for (var p = [], T = !0; !
|
|
679
|
+
for (var p = [], T = !0; !F(a); ) {
|
|
680
680
|
if (T)
|
|
681
681
|
T = !1;
|
|
682
|
-
else if (
|
|
682
|
+
else if (M(ye), l && O.sb && F(a))
|
|
683
683
|
break;
|
|
684
684
|
p.push(c && I === ye ? null : K(!0));
|
|
685
685
|
}
|
|
@@ -687,7 +687,7 @@ var N, Co = function(e) {
|
|
|
687
687
|
}
|
|
688
688
|
function ae(a) {
|
|
689
689
|
var l = U();
|
|
690
|
-
return a && O.yb === "everywhere" && (a = !1), I === Ee ? (!a && (O.yb && zr(Q) || Z &&
|
|
690
|
+
return a && O.yb === "everywhere" && (a = !1), I === Ee ? (!a && (O.yb && zr(Q) || Z && Ln(Q)) && g.slice(V, Ce).indexOf("\\") === -1 && r(V, "The keyword '" + Q + "' is reserved"), l.name = Q) : a && I.l ? l.name = I.l : ie(), Fe = !1, m(), A(l, "Identifier");
|
|
691
691
|
}
|
|
692
692
|
e.version = "0.5.0";
|
|
693
693
|
var O, g = "", ke, kt;
|
|
@@ -695,7 +695,7 @@ var N, Co = function(e) {
|
|
|
695
695
|
g = String(a), ke = g.length, O = l || {};
|
|
696
696
|
for (var c in dn)
|
|
697
697
|
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = dn[c]);
|
|
698
|
-
for (kt = O.sourceFile, Se = 1, f = se = 0,
|
|
698
|
+
for (kt = O.sourceFile, Se = 1, f = se = 0, Fe = !0, d(), c = O.dc, It = ge = f, O.C && (Tt = new i()), Me = Z = !1, D = [], E(), a = c || U(), l = !0, c || (a.body = []); I !== At; )
|
|
699
699
|
c = ne(), a.body.push(c), l && gt(c) && ee(!0), l = !1;
|
|
700
700
|
return A(a, "Program");
|
|
701
701
|
};
|
|
@@ -710,7 +710,7 @@ var N, Co = function(e) {
|
|
|
710
710
|
dc: null,
|
|
711
711
|
sourceFile: null,
|
|
712
712
|
vb: null
|
|
713
|
-
}, f = 0, V = 0, Ce = 0, Ct, Et, I, Q,
|
|
713
|
+
}, f = 0, V = 0, Ce = 0, Ct, Et, I, Q, Fe, Se, se, It = 0, ge = 0, Tt, Me, D, Z, Vr = [], De = {
|
|
714
714
|
type: "num"
|
|
715
715
|
}, hn = {
|
|
716
716
|
type: "regexp"
|
|
@@ -783,7 +783,7 @@ var N, Co = function(e) {
|
|
|
783
783
|
l: "in",
|
|
784
784
|
L: 7,
|
|
785
785
|
m: !0
|
|
786
|
-
},
|
|
786
|
+
}, Lr = {
|
|
787
787
|
break: Ot,
|
|
788
788
|
case: jt,
|
|
789
789
|
catch: mn,
|
|
@@ -832,7 +832,7 @@ var N, Co = function(e) {
|
|
|
832
832
|
}, Ut = {
|
|
833
833
|
type: "[",
|
|
834
834
|
m: !0
|
|
835
|
-
},
|
|
835
|
+
}, Ft = {
|
|
836
836
|
type: "]"
|
|
837
837
|
}, Ve = {
|
|
838
838
|
type: "{",
|
|
@@ -850,7 +850,7 @@ var N, Co = function(e) {
|
|
|
850
850
|
}, ce = {
|
|
851
851
|
type: ";",
|
|
852
852
|
m: !0
|
|
853
|
-
},
|
|
853
|
+
}, Le = {
|
|
854
854
|
type: ":",
|
|
855
855
|
m: !0
|
|
856
856
|
}, Nn = {
|
|
@@ -861,17 +861,17 @@ var N, Co = function(e) {
|
|
|
861
861
|
}, Un = {
|
|
862
862
|
L: 10,
|
|
863
863
|
m: !0
|
|
864
|
-
},
|
|
864
|
+
}, Fn = {
|
|
865
865
|
Cb: !0,
|
|
866
866
|
m: !0
|
|
867
867
|
}, we = {
|
|
868
868
|
Cb: !0,
|
|
869
869
|
m: !0
|
|
870
|
-
},
|
|
870
|
+
}, _r = {
|
|
871
871
|
cc: !0,
|
|
872
872
|
prefix: !0,
|
|
873
873
|
$b: !0
|
|
874
|
-
},
|
|
874
|
+
}, Mn = {
|
|
875
875
|
prefix: !0,
|
|
876
876
|
m: !0
|
|
877
877
|
}, Dn = {
|
|
@@ -905,13 +905,13 @@ var N, Co = function(e) {
|
|
|
905
905
|
}, Yr = {
|
|
906
906
|
L: 10,
|
|
907
907
|
m: !0
|
|
908
|
-
}, zr = o("class enum extends super const export import"),
|
|
908
|
+
}, zr = o("class enum extends super const export import"), Ln = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), qr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Zr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, _n = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Qr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ot = /[\n\r\u2028\u2029]/, it = /\r\n|[\n\r\u2028\u2029]/g, Te, Mt = {
|
|
909
909
|
kind: "loop"
|
|
910
910
|
}, eo = {
|
|
911
911
|
kind: "switch"
|
|
912
912
|
};
|
|
913
|
-
},
|
|
914
|
-
Co(
|
|
913
|
+
}, _t = _t = typeof globalThis > "u" ? void 0 : globalThis;
|
|
914
|
+
Co(_t.j || (_t.j = {}));
|
|
915
915
|
function h(e, t) {
|
|
916
916
|
typeof e == "string" && (e = je(e, "code"));
|
|
917
917
|
var n = e.constructor;
|
|
@@ -945,7 +945,7 @@ var Wn = {
|
|
|
945
945
|
configurable: !0,
|
|
946
946
|
enumerable: !1,
|
|
947
947
|
writable: !1
|
|
948
|
-
},
|
|
948
|
+
}, _e = {
|
|
949
949
|
configurable: !1,
|
|
950
950
|
enumerable: !1,
|
|
951
951
|
writable: !1
|
|
@@ -1044,7 +1044,7 @@ N.Eb = function() {
|
|
|
1044
1044
|
return this.za;
|
|
1045
1045
|
};
|
|
1046
1046
|
function Io(e, t) {
|
|
1047
|
-
e.g(t, "NaN", NaN,
|
|
1047
|
+
e.g(t, "NaN", NaN, _e), e.g(t, "Infinity", 1 / 0, _e), e.g(t, "undefined", void 0, _e), e.g(t, "window", t, Yt), e.g(t, "this", t, _e), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), To(e, t), Ao(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Oo(e, t), jo(e, t), Ro(e, t), Po(e, t), No(e, t), Bo(e, t), Uo(e, t), Fo(e, t), Mo(e, t);
|
|
1048
1048
|
var n = e.i(function() {
|
|
1049
1049
|
throw EvalError("Can't happen");
|
|
1050
1050
|
}, !1);
|
|
@@ -1262,7 +1262,7 @@ function Po(e, t) {
|
|
|
1262
1262
|
return r = arguments.length ? ve.Number(r) : 0, de(e) ? (this.data = r, this) : r;
|
|
1263
1263
|
};
|
|
1264
1264
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, y), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1265
|
-
e.g(e.aa, t[n], Number[t[n]],
|
|
1265
|
+
e.g(e.aa, t[n], Number[t[n]], _e);
|
|
1266
1266
|
n = function(r) {
|
|
1267
1267
|
try {
|
|
1268
1268
|
return Number(this).toExponential(r);
|
|
@@ -1370,7 +1370,7 @@ function Uo(e, t) {
|
|
|
1370
1370
|
return Wt(e, o, r), o;
|
|
1371
1371
|
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Fo(e, t) {
|
|
1374
1374
|
var n = e.s(e.M);
|
|
1375
1375
|
e.g(t, "Math", n, y);
|
|
1376
1376
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1379,7 +1379,7 @@ function Mo(e, t) {
|
|
|
1379
1379
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1380
1380
|
e.g(n, r[t], e.i(Math[r[t]], !1), y);
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function Mo(e, t) {
|
|
1383
1383
|
var n = e.s(e.M);
|
|
1384
1384
|
e.g(t, "JSON", n, y), t = function(r) {
|
|
1385
1385
|
try {
|
|
@@ -2553,7 +2553,7 @@ h.prototype.getGlobalScope = h.prototype.Xb;
|
|
|
2553
2553
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2554
2554
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2555
2555
|
h.VALUE_IN_DESCRIPTOR = Je;
|
|
2556
|
-
const
|
|
2556
|
+
const Lo = (e) => e.split(`
|
|
2557
2557
|
`).map((t) => {
|
|
2558
2558
|
const n = t.trim();
|
|
2559
2559
|
if (t.includes("__awaiter"))
|
|
@@ -2566,7 +2566,7 @@ const _o = (e) => e.split(`
|
|
|
2566
2566
|
${u}
|
|
2567
2567
|
`;
|
|
2568
2568
|
}).filter(Boolean).join(`
|
|
2569
|
-
`), Xn = (e) => e + "JSON",
|
|
2569
|
+
`), Xn = (e) => e + "JSON", _o = ({
|
|
2570
2570
|
builder: e,
|
|
2571
2571
|
context: t,
|
|
2572
2572
|
event: n,
|
|
@@ -2587,7 +2587,7 @@ const _o = (e) => e.split(`
|
|
|
2587
2587
|
const x = Xn(v);
|
|
2588
2588
|
return `var ${v} = ${x} === undefined ? undefined : JSON.parse(${x});`;
|
|
2589
2589
|
}).join(`
|
|
2590
|
-
`), E =
|
|
2590
|
+
`), E = Lo(s);
|
|
2591
2591
|
if (E === "") {
|
|
2592
2592
|
J.warn("Skipping evaluation of empty code block.");
|
|
2593
2593
|
return;
|
|
@@ -2628,7 +2628,7 @@ const $o = () => {
|
|
|
2628
2628
|
return !1;
|
|
2629
2629
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2630
2630
|
return e && t && !n ? (J.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2631
|
-
}, Ho = (e) => G() || $o() ? ko(e) :
|
|
2631
|
+
}, Ho = (e) => G() || $o() ? ko(e) : _o(e);
|
|
2632
2632
|
function sn({
|
|
2633
2633
|
code: e,
|
|
2634
2634
|
context: t,
|
|
@@ -2811,7 +2811,7 @@ const Go = ({
|
|
|
2811
2811
|
if (typeof r == "string")
|
|
2812
2812
|
return `${Jo(n)}: ${r};`;
|
|
2813
2813
|
}).filter(oe), Yo = (e) => br(e).join(`
|
|
2814
|
-
`),
|
|
2814
|
+
`), Lt = ({
|
|
2815
2815
|
mediaQuery: e,
|
|
2816
2816
|
className: t,
|
|
2817
2817
|
styles: n
|
|
@@ -2851,17 +2851,17 @@ function zo(e) {
|
|
|
2851
2851
|
), d = i == null ? void 0 : i.large, k = i == null ? void 0 : i.medium, E = i == null ? void 0 : i.small, S = o.id;
|
|
2852
2852
|
if (!S)
|
|
2853
2853
|
return "";
|
|
2854
|
-
const P = d ?
|
|
2854
|
+
const P = d ? Lt({
|
|
2855
2855
|
className: S,
|
|
2856
2856
|
styles: d
|
|
2857
|
-
}) : "", j = k ?
|
|
2857
|
+
}) : "", j = k ? Lt({
|
|
2858
2858
|
className: S,
|
|
2859
2859
|
styles: k,
|
|
2860
2860
|
mediaQuery: Jn(
|
|
2861
2861
|
"medium",
|
|
2862
2862
|
u
|
|
2863
2863
|
)
|
|
2864
|
-
}) : "", v = E ?
|
|
2864
|
+
}) : "", v = E ? Lt({
|
|
2865
2865
|
className: S,
|
|
2866
2866
|
styles: E,
|
|
2867
2867
|
mediaQuery: Jn(
|
|
@@ -2871,7 +2871,7 @@ function zo(e) {
|
|
|
2871
2871
|
}) : "";
|
|
2872
2872
|
return [P, j, v].join(" ");
|
|
2873
2873
|
};
|
|
2874
|
-
return /* @__PURE__ */ C(
|
|
2874
|
+
return /* @__PURE__ */ C(_, { children: n() && t() ? /* @__PURE__ */ C(_, { children: /* @__PURE__ */ C(dt, { styles: n() }) }) : null });
|
|
2875
2875
|
}
|
|
2876
2876
|
function qo(e) {
|
|
2877
2877
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -2993,7 +2993,7 @@ const ii = ({
|
|
|
2993
2993
|
function Yn(e) {
|
|
2994
2994
|
var n;
|
|
2995
2995
|
const t = e.isInteractive ? no : e.componentRef;
|
|
2996
|
-
return /* @__PURE__ */ C(
|
|
2996
|
+
return /* @__PURE__ */ C(_, { children: e.componentRef ? /* @__PURE__ */ C(_, { children: /* @__PURE__ */ C(
|
|
2997
2997
|
t,
|
|
2998
2998
|
{
|
|
2999
2999
|
...ii({
|
|
@@ -3089,9 +3089,9 @@ function ht(e) {
|
|
|
3089
3089
|
isInteractive: !((U = t()) != null && U.isRSC)
|
|
3090
3090
|
};
|
|
3091
3091
|
}, d = e.context;
|
|
3092
|
-
return /* @__PURE__ */ C(
|
|
3092
|
+
return /* @__PURE__ */ C(_, { children: i() ? /* @__PURE__ */ xe(_, { children: [
|
|
3093
3093
|
/* @__PURE__ */ C(zo, { block: e.block, context: e.context }),
|
|
3094
|
-
(k = t()) != null && k.noWrap ? /* @__PURE__ */ C(
|
|
3094
|
+
(k = t()) != null && k.noWrap ? /* @__PURE__ */ C(_, { children: /* @__PURE__ */ C(
|
|
3095
3095
|
Yn,
|
|
3096
3096
|
{
|
|
3097
3097
|
componentRef: u().componentRef,
|
|
@@ -3104,7 +3104,7 @@ function ht(e) {
|
|
|
3104
3104
|
includeBlockProps: u().includeBlockProps,
|
|
3105
3105
|
isInteractive: u().isInteractive
|
|
3106
3106
|
}
|
|
3107
|
-
) }) : /* @__PURE__ */ C(
|
|
3107
|
+
) }) : /* @__PURE__ */ C(_, { children: n() ? /* @__PURE__ */ C(_, { children: (S = n()) == null ? void 0 : S.map((P, j) => /* @__PURE__ */ C(
|
|
3108
3108
|
ai,
|
|
3109
3109
|
{
|
|
3110
3110
|
repeatContext: P.context,
|
|
@@ -3113,7 +3113,7 @@ function ht(e) {
|
|
|
3113
3113
|
linkComponent: e.linkComponent
|
|
3114
3114
|
},
|
|
3115
3115
|
j
|
|
3116
|
-
)) }) : /* @__PURE__ */ C(
|
|
3116
|
+
)) }) : /* @__PURE__ */ C(_, { children: /* @__PURE__ */ xe(
|
|
3117
3117
|
ro,
|
|
3118
3118
|
{
|
|
3119
3119
|
Wrapper: o(),
|
|
@@ -3161,7 +3161,7 @@ function mt(e) {
|
|
|
3161
3161
|
styleProp: e.styleProp,
|
|
3162
3162
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3163
3163
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3164
|
-
children: e.blocks ? /* @__PURE__ */ C(
|
|
3164
|
+
children: e.blocks ? /* @__PURE__ */ C(_, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ C(
|
|
3165
3165
|
ht,
|
|
3166
3166
|
{
|
|
3167
3167
|
block: o,
|
|
@@ -3259,14 +3259,14 @@ function si(e) {
|
|
|
3259
3259
|
},
|
|
3260
3260
|
`;
|
|
3261
3261
|
};
|
|
3262
|
-
return /* @__PURE__ */ xe(
|
|
3262
|
+
return /* @__PURE__ */ xe(_, { children: [
|
|
3263
3263
|
/* @__PURE__ */ xe(
|
|
3264
3264
|
"div",
|
|
3265
3265
|
{
|
|
3266
3266
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-65bb9135`,
|
|
3267
3267
|
style: k(),
|
|
3268
3268
|
children: [
|
|
3269
|
-
/* @__PURE__ */ C(
|
|
3269
|
+
/* @__PURE__ */ C(_, { children: /* @__PURE__ */ C(dt, { styles: P() }) }),
|
|
3270
3270
|
(j = e.columns) == null ? void 0 : j.map((v, x) => /* @__PURE__ */ C(
|
|
3271
3271
|
io,
|
|
3272
3272
|
{
|
|
@@ -4025,7 +4025,7 @@ const Ri = {
|
|
|
4025
4025
|
type: "file",
|
|
4026
4026
|
allowedFileTypes: ["mp4"],
|
|
4027
4027
|
bubble: !0,
|
|
4028
|
-
defaultValue: "https://
|
|
4028
|
+
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4029
4029
|
required: !0
|
|
4030
4030
|
}, {
|
|
4031
4031
|
name: "posterImage",
|
|
@@ -4093,7 +4093,7 @@ const Ri = {
|
|
|
4093
4093
|
defaultValue: !0,
|
|
4094
4094
|
advanced: !0
|
|
4095
4095
|
}]
|
|
4096
|
-
},
|
|
4096
|
+
}, Fi = () => [{
|
|
4097
4097
|
component: ao,
|
|
4098
4098
|
...Ri
|
|
4099
4099
|
}, {
|
|
@@ -4129,13 +4129,13 @@ const Ri = {
|
|
|
4129
4129
|
}, {
|
|
4130
4130
|
component: ji,
|
|
4131
4131
|
...Oi
|
|
4132
|
-
}, ...
|
|
4132
|
+
}, ...Fi()], Zn = [], Ka = (e) => ({
|
|
4133
4133
|
type: "builder.registerComponent",
|
|
4134
4134
|
data: Kt(e)
|
|
4135
|
-
}),
|
|
4135
|
+
}), Mi = (e) => {
|
|
4136
4136
|
const t = e.toString().trim();
|
|
4137
4137
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4138
|
-
}, Di = (e) => typeof e == "function" ?
|
|
4138
|
+
}, Di = (e) => typeof e == "function" ? Mi(e) : pt(e), Kt = ({
|
|
4139
4139
|
inputs: e,
|
|
4140
4140
|
...t
|
|
4141
4141
|
}) => ({
|
|
@@ -4200,7 +4200,7 @@ const Ri = {
|
|
|
4200
4200
|
}).join('');
|
|
4201
4201
|
styleEl.innerHTML = newStyleStr;
|
|
4202
4202
|
}
|
|
4203
|
-
}`,
|
|
4203
|
+
}`, Li = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4204
4204
|
if (!navigator.cookieEnabled) {
|
|
4205
4205
|
return;
|
|
4206
4206
|
}
|
|
@@ -4238,12 +4238,12 @@ const Ri = {
|
|
|
4238
4238
|
...t,
|
|
4239
4239
|
testVariationId: t.id,
|
|
4240
4240
|
id: e == null ? void 0 : e.id
|
|
4241
|
-
})),
|
|
4241
|
+
})), _i = ({
|
|
4242
4242
|
canTrack: e,
|
|
4243
4243
|
content: t
|
|
4244
4244
|
}) => !(!(st(t).length > 0) || !e || G()), Wi = (e) => e === "react" || e === "reactNative", Or = Wi(he), $i = () => `
|
|
4245
4245
|
window.${Tr} = ${Vi}
|
|
4246
|
-
window.${Ar} = ${
|
|
4246
|
+
window.${Ar} = ${Li}
|
|
4247
4247
|
`, Hi = (e, t) => `
|
|
4248
4248
|
window.${Tr}(
|
|
4249
4249
|
"${t}",${JSON.stringify(e)}, ${Or}
|
|
@@ -4478,13 +4478,13 @@ const Br = "builderSessionId", aa = async ({
|
|
|
4478
4478
|
} catch (o) {
|
|
4479
4479
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4480
4480
|
}
|
|
4481
|
-
},
|
|
4481
|
+
}, Fr = "builderVisitorId", fa = ({
|
|
4482
4482
|
canTrack: e
|
|
4483
4483
|
}) => {
|
|
4484
4484
|
if (!e)
|
|
4485
4485
|
return;
|
|
4486
4486
|
const t = ca({
|
|
4487
|
-
key:
|
|
4487
|
+
key: Fr,
|
|
4488
4488
|
canTrack: e
|
|
4489
4489
|
});
|
|
4490
4490
|
if (oe(t))
|
|
@@ -4500,7 +4500,7 @@ const Br = "builderSessionId", aa = async ({
|
|
|
4500
4500
|
id: e,
|
|
4501
4501
|
canTrack: t
|
|
4502
4502
|
}) => ua({
|
|
4503
|
-
key:
|
|
4503
|
+
key: Fr,
|
|
4504
4504
|
value: e,
|
|
4505
4505
|
canTrack: t
|
|
4506
4506
|
}), ha = async ({
|
|
@@ -4607,11 +4607,11 @@ const ya = (e, t, n = !0) => {
|
|
|
4607
4607
|
}
|
|
4608
4608
|
};
|
|
4609
4609
|
}, ba = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4610
|
-
function
|
|
4610
|
+
function Mr(e, t) {
|
|
4611
4611
|
const n = new URL(t.origin), r = n.hostname;
|
|
4612
4612
|
return (e || ba).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4613
4613
|
}
|
|
4614
|
-
const Sa = "0.13.
|
|
4614
|
+
const Sa = "0.13.4", rr = {};
|
|
4615
4615
|
function wa(e, t) {
|
|
4616
4616
|
let n = rr[e];
|
|
4617
4617
|
if (n || (n = rr[e] = []), n.push(t), G()) {
|
|
@@ -4673,7 +4673,7 @@ const xa = (e = {}) => {
|
|
|
4673
4673
|
}
|
|
4674
4674
|
}, "*"), window.addEventListener("message", (r) => {
|
|
4675
4675
|
var i, s;
|
|
4676
|
-
if (!
|
|
4676
|
+
if (!Mr(e.trustedHosts, r))
|
|
4677
4677
|
return;
|
|
4678
4678
|
const {
|
|
4679
4679
|
data: o
|
|
@@ -4719,7 +4719,7 @@ const xa = (e = {}) => {
|
|
|
4719
4719
|
trustedHosts: t,
|
|
4720
4720
|
callbacks: n
|
|
4721
4721
|
}) => (r) => {
|
|
4722
|
-
if (!
|
|
4722
|
+
if (!Mr(t, r))
|
|
4723
4723
|
return;
|
|
4724
4724
|
const {
|
|
4725
4725
|
data: o
|
|
@@ -4972,8 +4972,8 @@ function ar(e) {
|
|
|
4972
4972
|
linkComponent: e.linkComponent,
|
|
4973
4973
|
trustedHosts: e.trustedHosts,
|
|
4974
4974
|
children: [
|
|
4975
|
-
e.isSsrAbTest ? /* @__PURE__ */ C(
|
|
4976
|
-
/* @__PURE__ */ C(
|
|
4975
|
+
e.isSsrAbTest ? /* @__PURE__ */ C(_, { children: /* @__PURE__ */ C(Gt, { scriptStr: t }) }) : null,
|
|
4976
|
+
/* @__PURE__ */ C(_, { children: /* @__PURE__ */ C(
|
|
4977
4977
|
Ra,
|
|
4978
4978
|
{
|
|
4979
4979
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
@@ -4996,7 +4996,7 @@ function ar(e) {
|
|
|
4996
4996
|
}
|
|
4997
4997
|
function Dr(e) {
|
|
4998
4998
|
var i, s;
|
|
4999
|
-
const t =
|
|
4999
|
+
const t = _i({
|
|
5000
5000
|
canTrack: Ht(e.canTrack),
|
|
5001
5001
|
content: e.content
|
|
5002
5002
|
}), n = function() {
|
|
@@ -5020,9 +5020,9 @@ function Dr(e) {
|
|
|
5020
5020
|
canTrack: Ht(e.canTrack)
|
|
5021
5021
|
});
|
|
5022
5022
|
};
|
|
5023
|
-
return /* @__PURE__ */ xe(
|
|
5024
|
-
!e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(
|
|
5025
|
-
t ? /* @__PURE__ */ xe(
|
|
5023
|
+
return /* @__PURE__ */ xe(_, { children: [
|
|
5024
|
+
!e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(_, { children: /* @__PURE__ */ C(Gt, { scriptStr: $i() }) }) : null,
|
|
5025
|
+
t ? /* @__PURE__ */ xe(_, { children: [
|
|
5026
5026
|
/* @__PURE__ */ C(
|
|
5027
5027
|
dt,
|
|
5028
5028
|
{
|
|
@@ -5192,7 +5192,7 @@ export {
|
|
|
5192
5192
|
G as f,
|
|
5193
5193
|
Xt as g,
|
|
5194
5194
|
Ht as h,
|
|
5195
|
-
|
|
5195
|
+
_a as i,
|
|
5196
5196
|
Ja as j,
|
|
5197
5197
|
ka as k,
|
|
5198
5198
|
J as l,
|