@builder.io/sdk-react 0.12.4 → 0.12.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/index.cjs +24 -24
- package/lib/browser/index.mjs +485 -461
- package/lib/{edge/server-entry-0e4f0637.js → browser/server-entry-b9bdd327.js} +4 -4
- package/lib/browser/{server-entry-bcb725be.cjs → server-entry-fc715776.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/index.cjs +31 -31
- package/lib/edge/index.mjs +550 -525
- package/lib/{browser/server-entry-0e4f0637.js → edge/server-entry-57d4ae22.js} +3 -3
- package/lib/edge/{server-entry-bcb725be.cjs → server-entry-fc715776.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/index.cjs +10 -10
- package/lib/node/index.mjs +283 -258
- package/lib/node/{server-entry-9aa733e8.js → server-entry-0457c4c8.js} +2 -2
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/browser-runtime/browser.d.ts +5 -1
- package/types/functions/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
package/lib/edge/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as p, Fragment as F, jsxs as ce } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as sr, useState as V, useContext as $n, useRef as qt, useEffect as Q, createElement as
|
|
4
|
-
import { T as
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
3
|
+
import { createContext as sr, useState as V, useContext as $n, useRef as qt, useEffect as Q, createElement as Hr } from "react";
|
|
4
|
+
import { T as We, i as je, j as Ae, k as Kr, l as Re, m as mt, n as Zt, r as Gr, o as gt, p as Hn, a as zr, c as Xr, b as lr, q as Yr, u as Kn, v as Gn, w as Jr } from "./server-entry-57d4ae22.js";
|
|
5
|
+
import { _ as Go, h as zo, f as Xo, g as Yo, e as Jo, d as qo, s as Zo, t as Qo } from "./server-entry-57d4ae22.js";
|
|
6
|
+
const qr = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Zr = (e) => typeof e == "string" && qr.has(e.toLowerCase());
|
|
7
7
|
function Qt(e) {
|
|
8
|
-
return /* @__PURE__ */ p(F, { children:
|
|
8
|
+
return /* @__PURE__ */ p(F, { children: Zr(e.TagName) ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ p(F, { children: typeof e.TagName == "string" ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
|
|
9
9
|
}
|
|
10
10
|
const tt = () => {
|
|
11
|
-
switch (
|
|
11
|
+
switch (We) {
|
|
12
12
|
case "react":
|
|
13
13
|
case "reactNative":
|
|
14
14
|
case "rsc":
|
|
@@ -20,7 +20,7 @@ const tt = () => {
|
|
|
20
20
|
return "class";
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
function
|
|
23
|
+
function Qr(e) {
|
|
24
24
|
return /* @__PURE__ */ p(
|
|
25
25
|
Qt,
|
|
26
26
|
{
|
|
@@ -55,7 +55,7 @@ const en = sr({
|
|
|
55
55
|
BlocksWrapper: "div",
|
|
56
56
|
BlocksWrapperProps: {}
|
|
57
57
|
}), cr = sr({ registeredComponents: {} });
|
|
58
|
-
function
|
|
58
|
+
function ei(e) {
|
|
59
59
|
var t;
|
|
60
60
|
return {
|
|
61
61
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -78,14 +78,14 @@ const ur = ({
|
|
|
78
78
|
builder: e,
|
|
79
79
|
context: t,
|
|
80
80
|
event: r
|
|
81
|
-
}),
|
|
81
|
+
}), ti = () => ({
|
|
82
82
|
isEditing: je(),
|
|
83
83
|
isBrowser: Ae(),
|
|
84
84
|
isServer: !Ae(),
|
|
85
|
-
getUserAttributes: () =>
|
|
86
|
-
}),
|
|
85
|
+
getUserAttributes: () => Kr()
|
|
86
|
+
}), ni = (e, {
|
|
87
87
|
isExpression: t = !0
|
|
88
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
88
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ri = ({
|
|
89
89
|
code: e,
|
|
90
90
|
builder: t,
|
|
91
91
|
context: r,
|
|
@@ -98,23 +98,40 @@ const ur = ({
|
|
|
98
98
|
builder: t,
|
|
99
99
|
context: r,
|
|
100
100
|
event: n,
|
|
101
|
-
state:
|
|
101
|
+
state: dr({
|
|
102
|
+
rootState: s,
|
|
103
|
+
localState: i,
|
|
104
|
+
rootSetState: a
|
|
105
|
+
})
|
|
102
106
|
});
|
|
103
107
|
return new Function(...u.map(([f]) => f), e)(...u.map(([, f]) => f));
|
|
104
108
|
};
|
|
105
|
-
function
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
function dr({
|
|
110
|
+
rootState: e,
|
|
111
|
+
localState: t,
|
|
112
|
+
rootSetState: r
|
|
113
|
+
}) {
|
|
108
114
|
return new Proxy(e, {
|
|
109
|
-
get: (n, i) =>
|
|
115
|
+
get: (n, i) => {
|
|
116
|
+
if (t && i in t)
|
|
117
|
+
return t[i];
|
|
118
|
+
const a = n[i];
|
|
119
|
+
return typeof a == "object" ? dr({
|
|
120
|
+
rootState: a,
|
|
121
|
+
localState: void 0,
|
|
122
|
+
rootSetState: r ? (s) => {
|
|
123
|
+
n[i] = s, r(n);
|
|
124
|
+
} : void 0
|
|
125
|
+
}) : a;
|
|
126
|
+
},
|
|
110
127
|
set: (n, i, a) => {
|
|
111
128
|
if (t && i in t)
|
|
112
129
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
113
|
-
return
|
|
130
|
+
return n[i] = a, r == null || r(n), !0;
|
|
114
131
|
}
|
|
115
132
|
});
|
|
116
133
|
}
|
|
117
|
-
const
|
|
134
|
+
const fr = (e, t, r) => {
|
|
118
135
|
if (Object(e) !== e)
|
|
119
136
|
return e;
|
|
120
137
|
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -122,7 +139,7 @@ const dr = (e, t, r) => {
|
|
|
122
139
|
};
|
|
123
140
|
var _, ii = function(e) {
|
|
124
141
|
function t(o) {
|
|
125
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
142
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Vr.test(String.fromCharCode(o));
|
|
126
143
|
}
|
|
127
144
|
function r(o) {
|
|
128
145
|
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Vn.test(String.fromCharCode(o));
|
|
@@ -153,15 +170,15 @@ var _, ii = function(e) {
|
|
|
153
170
|
this.line = Ie, this.ab = d - he;
|
|
154
171
|
}
|
|
155
172
|
function s(o, l) {
|
|
156
|
-
|
|
173
|
+
Pe = d, O.C && (Rt = new a()), A = o, f(), le = l, $e = o.m;
|
|
157
174
|
}
|
|
158
175
|
function u() {
|
|
159
|
-
for (var o = d, l = O.va && O.C && new a(), c = x.charCodeAt(d += 2); d <
|
|
176
|
+
for (var o = d, l = O.va && O.C && new a(), c = x.charCodeAt(d += 2); d < Oe && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
160
177
|
++d, c = x.charCodeAt(d);
|
|
161
178
|
O.va && O.va(!1, x.slice(o + 2, d), o, d, l, O.C && new a());
|
|
162
179
|
}
|
|
163
180
|
function f() {
|
|
164
|
-
for (; d <
|
|
181
|
+
for (; d < Oe; ) {
|
|
165
182
|
var o = x.charCodeAt(d);
|
|
166
183
|
if (o === 32)
|
|
167
184
|
++d;
|
|
@@ -205,13 +222,13 @@ var _, ii = function(e) {
|
|
|
205
222
|
case 44:
|
|
206
223
|
return ++d, s(Se);
|
|
207
224
|
case 91:
|
|
208
|
-
return ++d, s(
|
|
225
|
+
return ++d, s(Wt);
|
|
209
226
|
case 93:
|
|
210
227
|
return ++d, s(Lt);
|
|
211
228
|
case 123:
|
|
212
229
|
return ++d, s(Ge);
|
|
213
230
|
case 125:
|
|
214
|
-
return ++d, s(
|
|
231
|
+
return ++d, s(Me);
|
|
215
232
|
case 58:
|
|
216
233
|
return ++d, s(ze);
|
|
217
234
|
case 63:
|
|
@@ -235,7 +252,7 @@ var _, ii = function(e) {
|
|
|
235
252
|
case 39:
|
|
236
253
|
d++;
|
|
237
254
|
for (var l = ""; ; ) {
|
|
238
|
-
d >=
|
|
255
|
+
d >= Oe && n(X, "Unterminated string constant");
|
|
239
256
|
var c = x.charCodeAt(d);
|
|
240
257
|
if (c === o) {
|
|
241
258
|
++d, s(ct, l);
|
|
@@ -298,37 +315,37 @@ var _, ii = function(e) {
|
|
|
298
315
|
return;
|
|
299
316
|
case 37:
|
|
300
317
|
case 42:
|
|
301
|
-
x.charCodeAt(d + 1) === 61 ? b(Te, 2) : b(
|
|
318
|
+
x.charCodeAt(d + 1) === 61 ? b(Te, 2) : b(Dr, 1);
|
|
302
319
|
return;
|
|
303
320
|
case 124:
|
|
304
321
|
case 38:
|
|
305
|
-
l = x.charCodeAt(d + 1), l === o ? b(o === 124 ? _n :
|
|
322
|
+
l = x.charCodeAt(d + 1), l === o ? b(o === 124 ? _n : Wn, 2) : l === 61 ? b(Te, 2) : b(o === 124 ? Or : Nr, 1);
|
|
306
323
|
return;
|
|
307
324
|
case 94:
|
|
308
|
-
x.charCodeAt(d + 1) === 61 ? b(Te, 2) : b(
|
|
325
|
+
x.charCodeAt(d + 1) === 61 ? b(Te, 2) : b(Pr, 1);
|
|
309
326
|
return;
|
|
310
327
|
case 43:
|
|
311
328
|
case 45:
|
|
312
|
-
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && ft.test(x.slice(xe, d)) ? (d += 3, u(), f(),
|
|
329
|
+
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && ft.test(x.slice(xe, d)) ? (d += 3, u(), f(), v()) : b(Rr, 2) : l === 61 ? b(Te, 2) : b(Ur, 1);
|
|
313
330
|
return;
|
|
314
331
|
case 60:
|
|
315
332
|
case 62:
|
|
316
|
-
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? b(Te, c + 1) : b(
|
|
333
|
+
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? b(Te, c + 1) : b(Fr, c)) : l === 33 && o === 60 && x.charCodeAt(d + 2) === 45 && x.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), v()) : (l === 61 && (c = x.charCodeAt(d + 2) === 61 ? 3 : 2), b(Br, c));
|
|
317
334
|
return;
|
|
318
335
|
case 61:
|
|
319
336
|
case 33:
|
|
320
|
-
x.charCodeAt(d + 1) === 61 ? b(
|
|
337
|
+
x.charCodeAt(d + 1) === 61 ? b(Mr, x.charCodeAt(d + 2) === 61 ? 3 : 2) : b(o === 61 ? Un : Dn, 1);
|
|
321
338
|
return;
|
|
322
339
|
case 126:
|
|
323
340
|
return b(Dn, 1);
|
|
324
341
|
}
|
|
325
342
|
return !1;
|
|
326
343
|
}
|
|
327
|
-
function
|
|
328
|
-
if (o ? d = X + 1 : X = d, O.C && (
|
|
344
|
+
function v(o) {
|
|
345
|
+
if (o ? d = X + 1 : X = d, O.C && (At = new a()), o)
|
|
329
346
|
return U();
|
|
330
|
-
if (d >=
|
|
331
|
-
return s(
|
|
347
|
+
if (d >= Oe)
|
|
348
|
+
return s(Nt);
|
|
332
349
|
if (o = x.charCodeAt(d), r(o) || o === 92)
|
|
333
350
|
return Y();
|
|
334
351
|
if (m(o) === !1) {
|
|
@@ -343,7 +360,7 @@ var _, ii = function(e) {
|
|
|
343
360
|
}
|
|
344
361
|
function U() {
|
|
345
362
|
for (var o, l, c = d; ; ) {
|
|
346
|
-
d >=
|
|
363
|
+
d >= Oe && n(c, "Unterminated regexp");
|
|
347
364
|
var h = x.charAt(d);
|
|
348
365
|
if (ft.test(h) && n(c, "Unterminated regexp"), o)
|
|
349
366
|
o = !1;
|
|
@@ -385,40 +402,40 @@ var _, ii = function(e) {
|
|
|
385
402
|
return o = N(16, o), o === null && n(X, "Bad character escape sequence"), o;
|
|
386
403
|
}
|
|
387
404
|
function $() {
|
|
388
|
-
|
|
405
|
+
Be = !1;
|
|
389
406
|
for (var o, l = !0, c = d; ; ) {
|
|
390
407
|
var h = x.charCodeAt(d);
|
|
391
408
|
if (t(h))
|
|
392
|
-
|
|
409
|
+
Be && (o += x.charAt(d)), ++d;
|
|
393
410
|
else if (h === 92) {
|
|
394
|
-
|
|
411
|
+
Be || (o = x.slice(c, d)), Be = !0, x.charCodeAt(++d) !== 117 && n(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = P(4);
|
|
395
412
|
var R = String.fromCharCode(h);
|
|
396
413
|
R || n(d - 1, "Invalid Unicode escape"), (l ? r(h) : t(h)) || n(d - 4, "Invalid Unicode escape"), o += R;
|
|
397
414
|
} else
|
|
398
415
|
break;
|
|
399
416
|
l = !1;
|
|
400
417
|
}
|
|
401
|
-
return
|
|
418
|
+
return Be ? o : x.slice(c, d);
|
|
402
419
|
}
|
|
403
420
|
function Y() {
|
|
404
|
-
var o = $(), l =
|
|
405
|
-
!
|
|
421
|
+
var o = $(), l = Ne;
|
|
422
|
+
!Be && Wr(o) && (l = Ar[o]), s(l, o);
|
|
406
423
|
}
|
|
407
|
-
function
|
|
408
|
-
|
|
424
|
+
function y() {
|
|
425
|
+
Ot = X, xe = Pe, Pt = Rt, v();
|
|
409
426
|
}
|
|
410
|
-
function
|
|
427
|
+
function L(o) {
|
|
411
428
|
if (se = o, d = X, O.C)
|
|
412
429
|
for (; d < he; )
|
|
413
430
|
he = x.lastIndexOf(`
|
|
414
431
|
`, he - 2) + 1, --Ie;
|
|
415
|
-
f(),
|
|
432
|
+
f(), v();
|
|
416
433
|
}
|
|
417
434
|
function Z() {
|
|
418
435
|
this.type = null, this.start = X, this.end = null;
|
|
419
436
|
}
|
|
420
437
|
function ne() {
|
|
421
|
-
this.start =
|
|
438
|
+
this.start = At, this.end = null, jt && (this.source = jt);
|
|
422
439
|
}
|
|
423
440
|
function H() {
|
|
424
441
|
var o = new Z();
|
|
@@ -429,22 +446,22 @@ var _, ii = function(e) {
|
|
|
429
446
|
return l.start = o.start, O.C && (l.X = new ne(), l.X.start = o.X.start), O.Xa && (l.j = [o.j[0], 0]), l;
|
|
430
447
|
}
|
|
431
448
|
function E(o, l) {
|
|
432
|
-
return o.type = l, o.end = xe, O.C && (o.X.end =
|
|
449
|
+
return o.type = l, o.end = xe, O.C && (o.X.end = Pt), O.Xa && (o.j[1] = xe), o;
|
|
433
450
|
}
|
|
434
451
|
function we(o) {
|
|
435
452
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
436
453
|
}
|
|
437
|
-
function
|
|
438
|
-
return A === o ? (
|
|
454
|
+
function W(o) {
|
|
455
|
+
return A === o ? (y(), !0) : !1;
|
|
439
456
|
}
|
|
440
457
|
function Ce() {
|
|
441
|
-
return !O.fc && (A ===
|
|
458
|
+
return !O.fc && (A === Nt || A === Me || ft.test(x.slice(xe, X)));
|
|
442
459
|
}
|
|
443
460
|
function ue() {
|
|
444
|
-
|
|
461
|
+
W(me) || Ce() || w();
|
|
445
462
|
}
|
|
446
463
|
function K(o) {
|
|
447
|
-
A === o ?
|
|
464
|
+
A === o ? y() : w();
|
|
448
465
|
}
|
|
449
466
|
function w() {
|
|
450
467
|
n(X, "Unexpected token");
|
|
@@ -453,57 +470,57 @@ var _, ii = function(e) {
|
|
|
453
470
|
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), se && o.type === "Identifier" && dt(o.name) && n(o.start, "Assigning to " + o.name + " in strict mode");
|
|
454
471
|
}
|
|
455
472
|
function j() {
|
|
456
|
-
(A === Fn || A === Te && le === "/=") &&
|
|
473
|
+
(A === Fn || A === Te && le === "/=") && v(!0);
|
|
457
474
|
var o = A, l = H();
|
|
458
475
|
switch (o) {
|
|
459
|
-
case
|
|
460
|
-
case
|
|
461
|
-
|
|
462
|
-
var c = o ===
|
|
463
|
-
|
|
476
|
+
case Mt:
|
|
477
|
+
case vn:
|
|
478
|
+
y();
|
|
479
|
+
var c = o === Mt;
|
|
480
|
+
W(me) || Ce() ? l.label = null : A !== Ne ? w() : (l.label = fe(), ue());
|
|
464
481
|
for (var h = 0; h < z.length; ++h) {
|
|
465
482
|
var R = z[h];
|
|
466
483
|
if ((l.label === null || R.name === l.label.name) && (R.kind !== null && (c || R.kind === "loop") || l.label && c))
|
|
467
484
|
break;
|
|
468
485
|
}
|
|
469
486
|
return h === z.length && n(l.start, "Unsyntactic " + o.l), E(l, c ? "BreakStatement" : "ContinueStatement");
|
|
470
|
-
case
|
|
471
|
-
return
|
|
487
|
+
case yn:
|
|
488
|
+
return y(), ue(), E(l, "DebuggerStatement");
|
|
472
489
|
case xn:
|
|
473
|
-
return
|
|
490
|
+
return y(), z.push(Vt), l.body = j(), z.pop(), K(_t), l.test = M(), ue(), E(l, "DoWhileStatement");
|
|
474
491
|
case wn:
|
|
475
|
-
return
|
|
476
|
-
case
|
|
477
|
-
return
|
|
492
|
+
return y(), z.push(Vt), K(pe), A === me ? G(l, null) : A === Dt ? (o = H(), y(), st(o, !0), E(o, "VariableDeclaration"), o.fa.length === 1 && W(ut) ? Ee(l, o) : G(l, o)) : (o = te(!1, !0), W(ut) ? (T(o), Ee(l, o)) : G(l, o));
|
|
493
|
+
case Ft:
|
|
494
|
+
return y(), It(l, !0);
|
|
478
495
|
case Cn:
|
|
479
|
-
return
|
|
496
|
+
return y(), l.test = M(), l.da = j(), l.alternate = W(Sn) ? j() : null, E(l, "IfStatement");
|
|
480
497
|
case En:
|
|
481
|
-
return He || O.Ib || n(X, "'return' outside of function"),
|
|
482
|
-
case
|
|
483
|
-
for (
|
|
484
|
-
A ===
|
|
485
|
-
return h && E(h, "SwitchCase"),
|
|
498
|
+
return He || O.Ib || n(X, "'return' outside of function"), y(), W(me) || Ce() ? l.K = null : (l.K = te(), ue()), E(l, "ReturnStatement");
|
|
499
|
+
case Ut:
|
|
500
|
+
for (y(), l.Qb = M(), l.tb = [], K(Ge), z.push($r); A !== Me; )
|
|
501
|
+
A === Bt || A === bn ? (o = A === Bt, h && E(h, "SwitchCase"), l.tb.push(h = H()), h.da = [], y(), o ? h.test = te() : (c && n(Ot, "Multiple default clauses"), c = !0, h.test = null), K(ze)) : (h || w(), h.da.push(j()));
|
|
502
|
+
return h && E(h, "SwitchCase"), y(), z.pop(), E(l, "SwitchStatement");
|
|
486
503
|
case In:
|
|
487
|
-
return
|
|
504
|
+
return y(), ft.test(x.slice(xe, X)) && n(xe, "Illegal newline after throw"), l.K = te(), ue(), E(l, "ThrowStatement");
|
|
488
505
|
case Tn:
|
|
489
|
-
return
|
|
490
|
-
case Ut:
|
|
491
|
-
return v(), st(l), ue(), E(l, "VariableDeclaration");
|
|
506
|
+
return y(), l.block = D(), l.Ea = null, A === gn && (o = H(), y(), K(pe), o.Ua = fe(), se && dt(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), K(de), o.body = D(), l.Ea = E(o, "CatchClause")), l.fb = W(kn) ? D() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
492
507
|
case Dt:
|
|
493
|
-
return
|
|
508
|
+
return y(), st(l), ue(), E(l, "VariableDeclaration");
|
|
509
|
+
case _t:
|
|
510
|
+
return y(), l.test = M(), z.push(Vt), l.body = j(), z.pop(), E(l, "WhileStatement");
|
|
494
511
|
case jn:
|
|
495
|
-
return se && n(X, "'with' in strict mode"),
|
|
512
|
+
return se && n(X, "'with' in strict mode"), y(), l.object = M(), l.body = j(), E(l, "WithStatement");
|
|
496
513
|
case Ge:
|
|
497
514
|
return D();
|
|
498
515
|
case me:
|
|
499
|
-
return
|
|
516
|
+
return y(), E(l, "EmptyStatement");
|
|
500
517
|
default:
|
|
501
|
-
if (c = le, R = te(), o ===
|
|
518
|
+
if (c = le, R = te(), o === Ne && R.type === "Identifier" && W(ze)) {
|
|
502
519
|
for (h = 0; h < z.length; ++h)
|
|
503
520
|
z[h].name === c && n(R.start, "Label '" + c + "' is already declared");
|
|
504
521
|
return z.push({
|
|
505
522
|
name: c,
|
|
506
|
-
kind: A.W ? "loop" : A ===
|
|
523
|
+
kind: A.W ? "loop" : A === Ut ? "switch" : null
|
|
507
524
|
}), l.body = j(), z.pop(), l.label = R, E(l, "LabeledStatement");
|
|
508
525
|
}
|
|
509
526
|
return l.la = R, ue(), E(l, "ExpressionStatement");
|
|
@@ -516,15 +533,15 @@ var _, ii = function(e) {
|
|
|
516
533
|
}
|
|
517
534
|
function D(o) {
|
|
518
535
|
var l = H(), c = !0, h = !1;
|
|
519
|
-
for (l.body = [], K(Ge); !
|
|
536
|
+
for (l.body = [], K(Ge); !W(Me); ) {
|
|
520
537
|
var R = j();
|
|
521
538
|
if (l.body.push(R), c && o && we(R)) {
|
|
522
539
|
var J = h;
|
|
523
|
-
|
|
540
|
+
L(h = !0);
|
|
524
541
|
}
|
|
525
542
|
c = !1;
|
|
526
543
|
}
|
|
527
|
-
return h && !J &&
|
|
544
|
+
return h && !J && L(!1), E(l, "BlockStatement");
|
|
528
545
|
}
|
|
529
546
|
function G(o, l) {
|
|
530
547
|
return o.ua = l, K(me), o.test = A === me ? null : te(), K(me), o.update = A === de ? null : te(), K(de), o.body = j(), z.pop(), E(o, "ForStatement");
|
|
@@ -535,126 +552,126 @@ var _, ii = function(e) {
|
|
|
535
552
|
function st(o, l) {
|
|
536
553
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
537
554
|
var c = H();
|
|
538
|
-
if (c.id = fe(), se && dt(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua =
|
|
555
|
+
if (c.id = fe(), se && dt(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = W(Un) ? te(!0, l) : null, o.fa.push(E(c, "VariableDeclarator")), !W(Se))
|
|
539
556
|
break;
|
|
540
557
|
}
|
|
541
558
|
}
|
|
542
559
|
function te(o, l) {
|
|
543
|
-
var c =
|
|
560
|
+
var c = wt(l);
|
|
544
561
|
if (!o && A === Se) {
|
|
545
|
-
for (o = re(c), o.xb = [c];
|
|
546
|
-
o.xb.push(
|
|
562
|
+
for (o = re(c), o.xb = [c]; W(Se); )
|
|
563
|
+
o.xb.push(wt(l));
|
|
547
564
|
return E(o, "SequenceExpression");
|
|
548
565
|
}
|
|
549
566
|
return c;
|
|
550
567
|
}
|
|
551
|
-
function
|
|
552
|
-
var l =
|
|
553
|
-
if (
|
|
568
|
+
function wt(o) {
|
|
569
|
+
var l = Ct(Et(), -1, o);
|
|
570
|
+
if (W(Bn)) {
|
|
554
571
|
var c = re(l);
|
|
555
572
|
c.test = l, c.da = te(!0), K(ze), c.alternate = te(!0, o), l = E(c, "ConditionalExpression");
|
|
556
573
|
}
|
|
557
|
-
return A.Cb ? (c = re(l), c.operator = le, c.left = l,
|
|
574
|
+
return A.Cb ? (c = re(l), c.operator = le, c.left = l, y(), c.right = wt(o), T(l), E(c, "AssignmentExpression")) : l;
|
|
558
575
|
}
|
|
559
|
-
function
|
|
576
|
+
function Ct(o, l, c) {
|
|
560
577
|
var h = A.L;
|
|
561
578
|
if (h !== null && (!c || A !== ut) && h > l) {
|
|
562
579
|
var R = re(o);
|
|
563
|
-
return R.left = o, R.operator = le, o = A,
|
|
580
|
+
return R.left = o, R.operator = le, o = A, y(), R.right = Ct(Et(), h, c), h = E(R, o === _n || o === Wn ? "LogicalExpression" : "BinaryExpression"), Ct(h, l, c);
|
|
564
581
|
}
|
|
565
582
|
return o;
|
|
566
583
|
}
|
|
567
|
-
function
|
|
584
|
+
function Et() {
|
|
568
585
|
if (A.prefix) {
|
|
569
586
|
var o = H(), l = A.$b;
|
|
570
|
-
return o.operator = le, $e = o.prefix = !0,
|
|
587
|
+
return o.operator = le, $e = o.prefix = !0, y(), o.K = Et(), l ? T(o.K) : se && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), E(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
571
588
|
}
|
|
572
589
|
for (l = Ve(lt()); A.cc && !Ce(); )
|
|
573
|
-
o = re(l), o.operator = le, o.prefix = !1, o.K = l, T(l),
|
|
590
|
+
o = re(l), o.operator = le, o.prefix = !1, o.K = l, T(l), y(), l = E(o, "UpdateExpression");
|
|
574
591
|
return l;
|
|
575
592
|
}
|
|
576
593
|
function Ve(o, l) {
|
|
577
|
-
if (
|
|
594
|
+
if (W(Mn)) {
|
|
578
595
|
var c = re(o);
|
|
579
596
|
return c.object = o, c.Wa = fe(!0), c.bb = !1, Ve(E(c, "MemberExpression"), l);
|
|
580
597
|
}
|
|
581
|
-
return
|
|
598
|
+
return W(Wt) ? (c = re(o), c.object = o, c.Wa = te(), c.bb = !0, K(Lt), Ve(E(c, "MemberExpression"), l)) : !l && W(pe) ? (c = re(o), c.callee = o, c.arguments = Tt(de, !1), Ve(E(c, "CallExpression"), l)) : o;
|
|
582
599
|
}
|
|
583
600
|
function lt() {
|
|
584
601
|
switch (A) {
|
|
585
602
|
case Rn:
|
|
586
603
|
var o = H();
|
|
587
|
-
return
|
|
588
|
-
case
|
|
604
|
+
return y(), E(o, "ThisExpression");
|
|
605
|
+
case Ne:
|
|
589
606
|
return fe();
|
|
590
607
|
case Ke:
|
|
591
608
|
case ct:
|
|
592
609
|
case mn:
|
|
593
|
-
return o = H(), o.value = le, o.raw = x.slice(X,
|
|
610
|
+
return o = H(), o.value = le, o.raw = x.slice(X, Pe), y(), E(o, "Literal");
|
|
594
611
|
case On:
|
|
595
612
|
case Pn:
|
|
596
613
|
case Nn:
|
|
597
|
-
return o = H(), o.value = A.$a, o.raw = A.l,
|
|
614
|
+
return o = H(), o.value = A.$a, o.raw = A.l, y(), E(o, "Literal");
|
|
598
615
|
case pe:
|
|
599
|
-
o =
|
|
616
|
+
o = At;
|
|
600
617
|
var l = X;
|
|
601
|
-
|
|
618
|
+
y();
|
|
602
619
|
var c = te();
|
|
603
|
-
return c.start = l, c.end =
|
|
604
|
-
case
|
|
605
|
-
return o = H(),
|
|
620
|
+
return c.start = l, c.end = Pe, O.C && (c.X.start = o, c.X.end = Rt), O.Xa && (c.j = [l, Pe]), K(de), c;
|
|
621
|
+
case Wt:
|
|
622
|
+
return o = H(), y(), o.elements = Tt(Lt, !0, !0), E(o, "ArrayExpression");
|
|
606
623
|
case Ge:
|
|
607
|
-
for (o = H(), l = !0, c = !1, o.h = [],
|
|
624
|
+
for (o = H(), l = !0, c = !1, o.h = [], y(); !W(Me); ) {
|
|
608
625
|
if (l)
|
|
609
626
|
l = !1;
|
|
610
|
-
else if (K(Se), O.sb &&
|
|
627
|
+
else if (K(Se), O.sb && W(Me))
|
|
611
628
|
break;
|
|
612
629
|
var h = {
|
|
613
630
|
key: A === Ke || A === ct ? lt() : fe(!0)
|
|
614
631
|
}, R = !1;
|
|
615
|
-
if (
|
|
632
|
+
if (W(ze)) {
|
|
616
633
|
h.value = te(!0);
|
|
617
634
|
var J = h.kind = "init";
|
|
618
635
|
} else
|
|
619
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? w() : (R = c = !0, J = h.kind = h.key.name, h.key = A === Ke || A === ct ? lt() : fe(!0), A !== pe && w(), h.value =
|
|
636
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? w() : (R = c = !0, J = h.kind = h.key.name, h.key = A === Ke || A === ct ? lt() : fe(!0), A !== pe && w(), h.value = It(H(), !1));
|
|
620
637
|
if (h.key.type === "Identifier" && (se || c))
|
|
621
638
|
for (var ie = 0; ie < o.h.length; ++ie) {
|
|
622
|
-
var
|
|
623
|
-
if (
|
|
624
|
-
var
|
|
625
|
-
|
|
639
|
+
var Fe = o.h[ie];
|
|
640
|
+
if (Fe.key.name === h.key.name) {
|
|
641
|
+
var $t = J === Fe.kind || R && Fe.kind === "init" || J === "init" && (Fe.kind === "get" || Fe.kind === "set");
|
|
642
|
+
$t && !se && J === "init" && Fe.kind === "init" && ($t = !1), $t && n(h.key.start, "Redefinition of property");
|
|
626
643
|
}
|
|
627
644
|
}
|
|
628
645
|
o.h.push(h);
|
|
629
646
|
}
|
|
630
647
|
return E(o, "ObjectExpression");
|
|
631
|
-
case
|
|
632
|
-
return o = H(),
|
|
648
|
+
case Ft:
|
|
649
|
+
return o = H(), y(), It(o, !1);
|
|
633
650
|
case An:
|
|
634
|
-
return o = H(),
|
|
651
|
+
return o = H(), y(), o.callee = Ve(lt(), !0), o.arguments = W(pe) ? Tt(de, !1) : jr, E(o, "NewExpression");
|
|
635
652
|
}
|
|
636
653
|
w();
|
|
637
654
|
}
|
|
638
|
-
function
|
|
639
|
-
A ===
|
|
655
|
+
function It(o, l) {
|
|
656
|
+
A === Ne ? o.id = fe() : l ? w() : o.id = null, o.oa = [];
|
|
640
657
|
var c = !0;
|
|
641
|
-
for (K(pe); !
|
|
658
|
+
for (K(pe); !W(de); )
|
|
642
659
|
c ? c = !1 : K(Se), o.oa.push(fe());
|
|
643
660
|
c = He;
|
|
644
661
|
var h = z;
|
|
645
662
|
if (He = !0, z = [], o.body = D(!0), He = c, z = h, se || o.body.body.length && we(o.body.body[0])) {
|
|
646
663
|
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
647
|
-
if (h = 0 > c ? o.id : o.oa[c], (
|
|
664
|
+
if (h = 0 > c ? o.id : o.oa[c], (Ln(h.name) || dt(h.name)) && n(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
648
665
|
for (var R = 0; R < c; ++R)
|
|
649
666
|
h.name === o.oa[R].name && n(h.start, "Argument name clash in strict mode");
|
|
650
667
|
}
|
|
651
668
|
return E(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
652
669
|
}
|
|
653
|
-
function
|
|
654
|
-
for (var h = [], R = !0; !
|
|
670
|
+
function Tt(o, l, c) {
|
|
671
|
+
for (var h = [], R = !0; !W(o); ) {
|
|
655
672
|
if (R)
|
|
656
673
|
R = !1;
|
|
657
|
-
else if (K(Se), l && O.sb &&
|
|
674
|
+
else if (K(Se), l && O.sb && W(o))
|
|
658
675
|
break;
|
|
659
676
|
h.push(c && A === Se ? null : te(!0));
|
|
660
677
|
}
|
|
@@ -662,16 +679,16 @@ var _, ii = function(e) {
|
|
|
662
679
|
}
|
|
663
680
|
function fe(o) {
|
|
664
681
|
var l = H();
|
|
665
|
-
return o && O.yb === "everywhere" && (o = !1), A ===
|
|
682
|
+
return o && O.yb === "everywhere" && (o = !1), A === Ne ? (!o && (O.yb && _r(le) || se && Ln(le)) && x.slice(X, Pe).indexOf("\\") === -1 && n(X, "The keyword '" + le + "' is reserved"), l.name = le) : o && A.l ? l.name = A.l : w(), $e = !1, y(), E(l, "Identifier");
|
|
666
683
|
}
|
|
667
684
|
e.version = "0.5.0";
|
|
668
|
-
var O, x = "",
|
|
685
|
+
var O, x = "", Oe, jt;
|
|
669
686
|
e.parse = function(o, l) {
|
|
670
|
-
x = String(o),
|
|
687
|
+
x = String(o), Oe = x.length, O = l || {};
|
|
671
688
|
for (var c in pn)
|
|
672
689
|
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = pn[c]);
|
|
673
|
-
for (
|
|
674
|
-
c = j(), o.body.push(c), l && we(c) &&
|
|
690
|
+
for (jt = O.sourceFile, Ie = 1, d = he = 0, $e = !0, f(), c = O.dc, Ot = xe = d, O.C && (Pt = new a()), He = se = !1, z = [], v(), o = c || H(), l = !0, c || (o.body = []); A !== Nt; )
|
|
691
|
+
c = j(), o.body.push(c), l && we(c) && L(!0), l = !1;
|
|
675
692
|
return E(o, "Program");
|
|
676
693
|
};
|
|
677
694
|
var pn = {
|
|
@@ -685,26 +702,26 @@ var _, ii = function(e) {
|
|
|
685
702
|
dc: null,
|
|
686
703
|
sourceFile: null,
|
|
687
704
|
vb: null
|
|
688
|
-
}, d = 0, X = 0,
|
|
705
|
+
}, d = 0, X = 0, Pe = 0, At, Rt, A, le, $e, Ie, he, Ot = 0, xe = 0, Pt, He, z, se, jr = [], Ke = {
|
|
689
706
|
type: "num"
|
|
690
707
|
}, mn = {
|
|
691
708
|
type: "regexp"
|
|
692
709
|
}, ct = {
|
|
693
710
|
type: "string"
|
|
694
|
-
},
|
|
711
|
+
}, Ne = {
|
|
695
712
|
type: "name"
|
|
696
|
-
}, Pt = {
|
|
697
|
-
type: "eof"
|
|
698
713
|
}, Nt = {
|
|
699
|
-
|
|
714
|
+
type: "eof"
|
|
700
715
|
}, Mt = {
|
|
716
|
+
l: "break"
|
|
717
|
+
}, Bt = {
|
|
701
718
|
l: "case",
|
|
702
719
|
m: !0
|
|
703
720
|
}, gn = {
|
|
704
721
|
l: "catch"
|
|
705
|
-
}, yn = {
|
|
706
|
-
l: "continue"
|
|
707
722
|
}, vn = {
|
|
723
|
+
l: "continue"
|
|
724
|
+
}, yn = {
|
|
708
725
|
l: "debugger"
|
|
709
726
|
}, bn = {
|
|
710
727
|
l: "default"
|
|
@@ -719,23 +736,23 @@ var _, ii = function(e) {
|
|
|
719
736
|
}, wn = {
|
|
720
737
|
l: "for",
|
|
721
738
|
W: !0
|
|
722
|
-
},
|
|
739
|
+
}, Ft = {
|
|
723
740
|
l: "function"
|
|
724
741
|
}, Cn = {
|
|
725
742
|
l: "if"
|
|
726
743
|
}, En = {
|
|
727
744
|
l: "return",
|
|
728
745
|
m: !0
|
|
729
|
-
},
|
|
746
|
+
}, Ut = {
|
|
730
747
|
l: "switch"
|
|
731
748
|
}, In = {
|
|
732
749
|
l: "throw",
|
|
733
750
|
m: !0
|
|
734
751
|
}, Tn = {
|
|
735
752
|
l: "try"
|
|
736
|
-
}, Ut = {
|
|
737
|
-
l: "var"
|
|
738
753
|
}, Dt = {
|
|
754
|
+
l: "var"
|
|
755
|
+
}, _t = {
|
|
739
756
|
l: "while",
|
|
740
757
|
W: !0
|
|
741
758
|
}, jn = {
|
|
@@ -758,25 +775,25 @@ var _, ii = function(e) {
|
|
|
758
775
|
l: "in",
|
|
759
776
|
L: 7,
|
|
760
777
|
m: !0
|
|
761
|
-
},
|
|
762
|
-
break:
|
|
763
|
-
case:
|
|
778
|
+
}, Ar = {
|
|
779
|
+
break: Mt,
|
|
780
|
+
case: Bt,
|
|
764
781
|
catch: gn,
|
|
765
|
-
continue:
|
|
766
|
-
debugger:
|
|
782
|
+
continue: vn,
|
|
783
|
+
debugger: yn,
|
|
767
784
|
default: bn,
|
|
768
785
|
do: xn,
|
|
769
786
|
else: Sn,
|
|
770
787
|
finally: kn,
|
|
771
788
|
for: wn,
|
|
772
|
-
function:
|
|
789
|
+
function: Ft,
|
|
773
790
|
if: Cn,
|
|
774
791
|
return: En,
|
|
775
|
-
switch:
|
|
792
|
+
switch: Ut,
|
|
776
793
|
throw: In,
|
|
777
794
|
try: Tn,
|
|
778
|
-
var:
|
|
779
|
-
while:
|
|
795
|
+
var: Dt,
|
|
796
|
+
while: _t,
|
|
780
797
|
with: jn,
|
|
781
798
|
null: On,
|
|
782
799
|
true: Pn,
|
|
@@ -804,7 +821,7 @@ var _, ii = function(e) {
|
|
|
804
821
|
prefix: !0,
|
|
805
822
|
m: !0
|
|
806
823
|
}
|
|
807
|
-
},
|
|
824
|
+
}, Wt = {
|
|
808
825
|
type: "[",
|
|
809
826
|
m: !0
|
|
810
827
|
}, Lt = {
|
|
@@ -812,7 +829,7 @@ var _, ii = function(e) {
|
|
|
812
829
|
}, Ge = {
|
|
813
830
|
type: "{",
|
|
814
831
|
m: !0
|
|
815
|
-
},
|
|
832
|
+
}, Me = {
|
|
816
833
|
type: "}"
|
|
817
834
|
}, pe = {
|
|
818
835
|
type: "(",
|
|
@@ -842,7 +859,7 @@ var _, ii = function(e) {
|
|
|
842
859
|
}, Te = {
|
|
843
860
|
Cb: !0,
|
|
844
861
|
m: !0
|
|
845
|
-
},
|
|
862
|
+
}, Rr = {
|
|
846
863
|
cc: !0,
|
|
847
864
|
prefix: !0,
|
|
848
865
|
$b: !0
|
|
@@ -852,37 +869,37 @@ var _, ii = function(e) {
|
|
|
852
869
|
}, _n = {
|
|
853
870
|
L: 1,
|
|
854
871
|
m: !0
|
|
855
|
-
},
|
|
872
|
+
}, Wn = {
|
|
856
873
|
L: 2,
|
|
857
874
|
m: !0
|
|
858
|
-
},
|
|
875
|
+
}, Or = {
|
|
859
876
|
L: 3,
|
|
860
877
|
m: !0
|
|
861
|
-
},
|
|
878
|
+
}, Pr = {
|
|
862
879
|
L: 4,
|
|
863
880
|
m: !0
|
|
864
|
-
},
|
|
881
|
+
}, Nr = {
|
|
865
882
|
L: 5,
|
|
866
883
|
m: !0
|
|
867
|
-
},
|
|
884
|
+
}, Mr = {
|
|
868
885
|
L: 6,
|
|
869
886
|
m: !0
|
|
870
|
-
},
|
|
887
|
+
}, Br = {
|
|
871
888
|
L: 7,
|
|
872
889
|
m: !0
|
|
873
|
-
},
|
|
890
|
+
}, Fr = {
|
|
874
891
|
L: 8,
|
|
875
892
|
m: !0
|
|
876
|
-
},
|
|
893
|
+
}, Ur = {
|
|
877
894
|
L: 9,
|
|
878
895
|
prefix: !0,
|
|
879
896
|
m: !0
|
|
880
|
-
},
|
|
897
|
+
}, Dr = {
|
|
881
898
|
L: 10,
|
|
882
899
|
m: !0
|
|
883
|
-
},
|
|
900
|
+
}, _r = i("class enum extends super const export import"), Ln = i("implements interface let package private protected public static yield"), dt = i("eval arguments"), Wr = 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"), Lr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Vn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Vr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ft = /[\n\r\u2028\u2029]/, ht = /\r\n|[\n\r\u2028\u2029]/g, Be, Vt = {
|
|
884
901
|
kind: "loop"
|
|
885
|
-
},
|
|
902
|
+
}, $r = {
|
|
886
903
|
kind: "switch"
|
|
887
904
|
};
|
|
888
905
|
}, zt = zt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
@@ -928,15 +945,15 @@ var zn = {
|
|
|
928
945
|
configurable: !1,
|
|
929
946
|
enumerable: !0,
|
|
930
947
|
writable: !0
|
|
931
|
-
},
|
|
948
|
+
}, hr = {
|
|
932
949
|
STEP_ERROR: !0
|
|
933
|
-
},
|
|
950
|
+
}, Le = {
|
|
934
951
|
SCOPE_REFERENCE: !0
|
|
935
952
|
}, nt = {
|
|
936
953
|
VALUE_IN_DESCRIPTOR: !0
|
|
937
|
-
},
|
|
954
|
+
}, Ue = {
|
|
938
955
|
REGEXP_TIMEOUT: !0
|
|
939
|
-
}, Yn = [],
|
|
956
|
+
}, Yn = [], ve = null, Qe = null, ke = typeof globalThis == "undefined" ? void 0 : globalThis, oi = ["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();", "};"];
|
|
940
957
|
function nn(e) {
|
|
941
958
|
var t = e >>> 0;
|
|
942
959
|
return t === Number(e) ? t : NaN;
|
|
@@ -987,7 +1004,7 @@ _.lb = function() {
|
|
|
987
1004
|
if (r = this.ca[0], !r || r.time > Date.now())
|
|
988
1005
|
r = null;
|
|
989
1006
|
else {
|
|
990
|
-
this.ca.shift(), 0 <= r.interval &&
|
|
1007
|
+
this.ca.shift(), 0 <= r.interval && gr(this, r, r.interval);
|
|
991
1008
|
var n = new k(r.node, r.scope);
|
|
992
1009
|
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
993
1010
|
}
|
|
@@ -1000,7 +1017,7 @@ _.lb = function() {
|
|
|
1000
1017
|
try {
|
|
1001
1018
|
var a = this.rb[n.type](e, r, n);
|
|
1002
1019
|
} catch (s) {
|
|
1003
|
-
if (s !==
|
|
1020
|
+
if (s !== hr)
|
|
1004
1021
|
throw this.value !== s && (this.value = void 0), s;
|
|
1005
1022
|
} finally {
|
|
1006
1023
|
Qe = i;
|
|
@@ -1019,7 +1036,7 @@ _.Eb = function() {
|
|
|
1019
1036
|
return this.za;
|
|
1020
1037
|
};
|
|
1021
1038
|
function ai(e, t) {
|
|
1022
|
-
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, tn), e.g(t, "this", t, Xe), e.g(t, "self", t), e.M = new B(null), e.Z = new B(e.M), si(e, t), li(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), ci(e, t), ui(e, t), di(e, t), fi(e, t), hi(e, t), pi(e, t), mi(e, t), gi(e, t),
|
|
1039
|
+
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, tn), e.g(t, "this", t, Xe), e.g(t, "self", t), e.M = new B(null), e.Z = new B(e.M), si(e, t), li(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), ci(e, t), ui(e, t), di(e, t), fi(e, t), hi(e, t), pi(e, t), mi(e, t), gi(e, t), vi(e, t);
|
|
1023
1040
|
var r = e.i(function() {
|
|
1024
1041
|
throw EvalError("Can't happen");
|
|
1025
1042
|
}, !1);
|
|
@@ -1058,15 +1075,15 @@ function si(e, t) {
|
|
|
1058
1075
|
}
|
|
1059
1076
|
try {
|
|
1060
1077
|
var m = De("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1061
|
-
} catch (
|
|
1062
|
-
C(e, e.T, "Invalid code: " +
|
|
1078
|
+
} catch (v) {
|
|
1079
|
+
C(e, e.T, "Invalid code: " + v.message);
|
|
1063
1080
|
}
|
|
1064
1081
|
return m.body.length !== 1 && C(e, e.T, "Invalid code in function body"), an(e, m.body[0].la, e.N, "anonymous");
|
|
1065
1082
|
};
|
|
1066
1083
|
e.O = e.i(n, !0), e.g(t, "Function", e.O, S), e.g(e.O, "prototype", e.Z, S), e.g(e.Z, "constructor", e.O, S), e.Z.Ta = function() {
|
|
1067
1084
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ae), e.Z.H = "Function", n = function(i, a) {
|
|
1068
1085
|
var s = e.o[e.o.length - 1];
|
|
1069
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof B ? s.F =
|
|
1086
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof B ? s.F = pr(e, a) : C(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1070
1087
|
}, q(e, e.O, "apply", n), n = function(i) {
|
|
1071
1088
|
var a = e.o[e.o.length - 1];
|
|
1072
1089
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1087,7 +1104,7 @@ function li(e, t) {
|
|
|
1087
1104
|
if (i == null)
|
|
1088
1105
|
return be(e) ? this : e.s(e.M);
|
|
1089
1106
|
if (!(i instanceof B)) {
|
|
1090
|
-
var a = e.s(
|
|
1107
|
+
var a = e.s(ye(e, i));
|
|
1091
1108
|
return a.data = i, a;
|
|
1092
1109
|
}
|
|
1093
1110
|
return i;
|
|
@@ -1106,7 +1123,7 @@ function li(e, t) {
|
|
|
1106
1123
|
return i = i.Y[a], a = e.s(e.M), u || i ? (e.g(a, "get", u), e.g(a, "set", i)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1107
1124
|
}
|
|
1108
1125
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1), S), n = function(i) {
|
|
1109
|
-
return r(i),
|
|
1126
|
+
return r(i), ye(e, i);
|
|
1110
1127
|
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), S), n = function(i) {
|
|
1111
1128
|
return !!i && !i.preventExtensions;
|
|
1112
1129
|
}, e.g(e.v, "isExtensible", e.i(n, !1), S), n = function(i) {
|
|
@@ -1117,7 +1134,7 @@ function li(e, t) {
|
|
|
1117
1134
|
return r(this), this instanceof B ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1118
1135
|
}, q(e, e.v, "propertyIsEnumerable", n), n = function(i) {
|
|
1119
1136
|
for (; ; ) {
|
|
1120
|
-
if (i =
|
|
1137
|
+
if (i = ye(e, i), !i)
|
|
1121
1138
|
return !1;
|
|
1122
1139
|
if (i === this)
|
|
1123
1140
|
return !0;
|
|
@@ -1160,12 +1177,12 @@ function ui(e, t) {
|
|
|
1160
1177
|
}, q(e, e.J, "localeCompare", r), r = function(n, i, a) {
|
|
1161
1178
|
var s = String(this);
|
|
1162
1179
|
if (i = i ? Number(i) : void 0, ee(e, n, e.I) && (n = n.data, Je(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1163
|
-
if (
|
|
1180
|
+
if (ve)
|
|
1164
1181
|
n = Ye(e, "string.split(separator, limit)", {
|
|
1165
1182
|
string: s,
|
|
1166
1183
|
separator: n,
|
|
1167
1184
|
limit: i
|
|
1168
|
-
}, n, a), n !==
|
|
1185
|
+
}, n, a), n !== Ue && a(ge(e, n));
|
|
1169
1186
|
else {
|
|
1170
1187
|
var u = e.ha(), f = qe(e, n, u, a);
|
|
1171
1188
|
u.onmessage = function(m) {
|
|
@@ -1178,11 +1195,11 @@ function ui(e, t) {
|
|
|
1178
1195
|
}, Ze(e, e.J, "split", r), r = function(n, i) {
|
|
1179
1196
|
var a = String(this);
|
|
1180
1197
|
if (n = ee(e, n, e.I) ? n.data : new RegExp(n), Je(e, n, i), e.REGEXP_MODE === 2)
|
|
1181
|
-
if (
|
|
1198
|
+
if (ve)
|
|
1182
1199
|
n = Ye(e, "string.match(regexp)", {
|
|
1183
1200
|
string: a,
|
|
1184
1201
|
regexp: n
|
|
1185
|
-
}, n, i), n !==
|
|
1202
|
+
}, n, i), n !== Ue && i(n && ge(e, n));
|
|
1186
1203
|
else {
|
|
1187
1204
|
var s = e.ha(), u = qe(e, n, s, i);
|
|
1188
1205
|
s.onmessage = function(f) {
|
|
@@ -1194,11 +1211,11 @@ function ui(e, t) {
|
|
|
1194
1211
|
}, Ze(e, e.J, "match", r), r = function(n, i) {
|
|
1195
1212
|
var a = String(this);
|
|
1196
1213
|
if (ee(e, n, e.I) ? n = n.data : n = new RegExp(n), Je(e, n, i), e.REGEXP_MODE === 2)
|
|
1197
|
-
if (
|
|
1214
|
+
if (ve)
|
|
1198
1215
|
n = Ye(e, "string.search(regexp)", {
|
|
1199
1216
|
string: a,
|
|
1200
1217
|
regexp: n
|
|
1201
|
-
}, n, i), n !==
|
|
1218
|
+
}, n, i), n !== Ue && i(n);
|
|
1202
1219
|
else {
|
|
1203
1220
|
var s = e.ha(), u = qe(e, n, s, i);
|
|
1204
1221
|
s.onmessage = function(f) {
|
|
@@ -1210,12 +1227,12 @@ function ui(e, t) {
|
|
|
1210
1227
|
}, Ze(e, e.J, "search", r), r = function(n, i, a) {
|
|
1211
1228
|
var s = String(this);
|
|
1212
1229
|
if (i = String(i), ee(e, n, e.I) && (n = n.data, Je(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1213
|
-
if (
|
|
1230
|
+
if (ve)
|
|
1214
1231
|
n = Ye(e, "string.replace(substr, newSubstr)", {
|
|
1215
1232
|
string: s,
|
|
1216
1233
|
substr: n,
|
|
1217
1234
|
newSubstr: i
|
|
1218
|
-
}, n, a), n !==
|
|
1235
|
+
}, n, a), n !== Ue && a(n);
|
|
1219
1236
|
else {
|
|
1220
1237
|
var u = e.ha(), f = qe(e, n, u, a);
|
|
1221
1238
|
u.onmessage = function(m) {
|
|
@@ -1308,24 +1325,24 @@ function pi(e, t) {
|
|
|
1308
1325
|
return rn(e, a, s), a;
|
|
1309
1326
|
};
|
|
1310
1327
|
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, S), e.g(e.I.h.prototype, "global", void 0, ae), e.g(e.I.h.prototype, "ignoreCase", void 0, ae), e.g(e.I.h.prototype, "multiline", void 0, ae), e.g(e.I.h.prototype, "source", "(?:)", ae), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, i) {
|
|
1311
|
-
function a(
|
|
1312
|
-
if (
|
|
1313
|
-
var b = ge(e,
|
|
1314
|
-
return e.g(b, "index",
|
|
1328
|
+
function a(v) {
|
|
1329
|
+
if (v) {
|
|
1330
|
+
var b = ge(e, v);
|
|
1331
|
+
return e.g(b, "index", v.index), e.g(b, "input", v.input), b;
|
|
1315
1332
|
}
|
|
1316
1333
|
return null;
|
|
1317
1334
|
}
|
|
1318
1335
|
var s = this.data;
|
|
1319
1336
|
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")), Je(e, s, i), e.REGEXP_MODE === 2)
|
|
1320
|
-
if (
|
|
1337
|
+
if (ve)
|
|
1321
1338
|
n = Ye(e, "regexp.exec(string)", {
|
|
1322
1339
|
string: n,
|
|
1323
1340
|
regexp: s
|
|
1324
|
-
}, s, i), n !==
|
|
1341
|
+
}, s, i), n !== Ue && (e.g(this, "lastIndex", s.lastIndex), i(a(n)));
|
|
1325
1342
|
else {
|
|
1326
1343
|
var u = e.ha(), f = qe(e, s, u, i), m = this;
|
|
1327
|
-
u.onmessage = function(
|
|
1328
|
-
clearTimeout(f), e.g(m, "lastIndex",
|
|
1344
|
+
u.onmessage = function(v) {
|
|
1345
|
+
clearTimeout(f), e.g(m, "lastIndex", v.data[1]), i(a(v.data[0]));
|
|
1329
1346
|
}, u.postMessage(["exec", s, s.lastIndex, n]);
|
|
1330
1347
|
}
|
|
1331
1348
|
else
|
|
@@ -1354,7 +1371,7 @@ function gi(e, t) {
|
|
|
1354
1371
|
for (n = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < n.length; t++)
|
|
1355
1372
|
e.g(r, n[t], e.i(Math[n[t]], !1), S);
|
|
1356
1373
|
}
|
|
1357
|
-
function
|
|
1374
|
+
function vi(e, t) {
|
|
1358
1375
|
var r = e.s(e.M);
|
|
1359
1376
|
e.g(t, "JSON", r, S), t = function(n) {
|
|
1360
1377
|
try {
|
|
@@ -1364,7 +1381,7 @@ function yi(e, t) {
|
|
|
1364
1381
|
}
|
|
1365
1382
|
return e.Ia(i);
|
|
1366
1383
|
}, e.g(r, "parse", e.i(t, !1)), t = function(n, i, a) {
|
|
1367
|
-
i && i.H === "Function" ? C(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i =
|
|
1384
|
+
i && i.H === "Function" ? C(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = pr(e, i), i = i.filter(function(u) {
|
|
1368
1385
|
return typeof u == "string" || typeof u == "number";
|
|
1369
1386
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), n = e.R(n);
|
|
1370
1387
|
try {
|
|
@@ -1380,7 +1397,7 @@ function ee(e, t, r) {
|
|
|
1380
1397
|
return !1;
|
|
1381
1398
|
if (r = r.h.prototype, t === r)
|
|
1382
1399
|
return !0;
|
|
1383
|
-
for (t =
|
|
1400
|
+
for (t = ye(e, t); t; ) {
|
|
1384
1401
|
if (t === r)
|
|
1385
1402
|
return !0;
|
|
1386
1403
|
t = t.xa;
|
|
@@ -1419,27 +1436,27 @@ function Ye(e, t, r, n, i) {
|
|
|
1419
1436
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1420
1437
|
};
|
|
1421
1438
|
try {
|
|
1422
|
-
return
|
|
1439
|
+
return ve.runInNewContext(t, r, a);
|
|
1423
1440
|
} catch {
|
|
1424
1441
|
i(null), C(e, e.D, "RegExp Timeout: " + n);
|
|
1425
1442
|
}
|
|
1426
|
-
return
|
|
1443
|
+
return Ue;
|
|
1427
1444
|
}
|
|
1428
1445
|
function Je(e, t, r) {
|
|
1429
1446
|
if (e.REGEXP_MODE === 0)
|
|
1430
1447
|
var n = !1;
|
|
1431
1448
|
else if (e.REGEXP_MODE === 1)
|
|
1432
1449
|
n = !0;
|
|
1433
|
-
else if (
|
|
1450
|
+
else if (ve)
|
|
1434
1451
|
n = !0;
|
|
1435
1452
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1436
1453
|
n = !0;
|
|
1437
1454
|
else if (typeof require == "function") {
|
|
1438
1455
|
try {
|
|
1439
|
-
|
|
1456
|
+
ve = require("vm");
|
|
1440
1457
|
} catch {
|
|
1441
1458
|
}
|
|
1442
|
-
n = !!
|
|
1459
|
+
n = !!ve;
|
|
1443
1460
|
} else
|
|
1444
1461
|
n = !1;
|
|
1445
1462
|
n || (r(null), C(e, e.D, "Regular expressions not supported: " + t));
|
|
@@ -1534,7 +1551,7 @@ _.R = function(e, t) {
|
|
|
1534
1551
|
if (t.hb.push(e), ee(this, e, this.qa)) {
|
|
1535
1552
|
r = [], t.Sa.push(r);
|
|
1536
1553
|
for (var n = this.G(e, "length"), i = 0; i < n; i++)
|
|
1537
|
-
|
|
1554
|
+
bt(this, e, i) && (r[i] = this.R(this.G(e, i), t));
|
|
1538
1555
|
} else
|
|
1539
1556
|
for (n in r = {}, t.Sa.push(r), e.h)
|
|
1540
1557
|
i = this.R(e.h[n], t), Object.defineProperty(r, n, {
|
|
@@ -1550,13 +1567,13 @@ function ge(e, t) {
|
|
|
1550
1567
|
e.g(r, n[i], t[n[i]]);
|
|
1551
1568
|
return r;
|
|
1552
1569
|
}
|
|
1553
|
-
function
|
|
1570
|
+
function pr(e, t) {
|
|
1554
1571
|
var r = [], n;
|
|
1555
1572
|
for (n in t.h)
|
|
1556
1573
|
r[n] = e.G(t, n);
|
|
1557
1574
|
return r.length = nn(e.G(t, "length")) || 0, r;
|
|
1558
1575
|
}
|
|
1559
|
-
function
|
|
1576
|
+
function ye(e, t) {
|
|
1560
1577
|
switch (typeof t) {
|
|
1561
1578
|
case "number":
|
|
1562
1579
|
return e.aa.h.prototype;
|
|
@@ -1583,9 +1600,9 @@ _.G = function(e, t) {
|
|
|
1583
1600
|
do
|
|
1584
1601
|
if (e.h && t in e.h)
|
|
1585
1602
|
return (r = e.V[t]) ? (this.P = !0, r) : e.h[t];
|
|
1586
|
-
while (e =
|
|
1603
|
+
while (e = ye(this, e));
|
|
1587
1604
|
};
|
|
1588
|
-
function
|
|
1605
|
+
function bt(e, t, r) {
|
|
1589
1606
|
if (!(t instanceof B))
|
|
1590
1607
|
throw TypeError("Primitive data type has no properties");
|
|
1591
1608
|
if (r = String(r), r === "length" && ee(e, t, e.J))
|
|
@@ -1598,7 +1615,7 @@ function vt(e, t, r) {
|
|
|
1598
1615
|
do
|
|
1599
1616
|
if (t.h && r in t.h)
|
|
1600
1617
|
return !0;
|
|
1601
|
-
while (t =
|
|
1618
|
+
while (t = ye(e, t));
|
|
1602
1619
|
return !1;
|
|
1603
1620
|
}
|
|
1604
1621
|
_.g = function(e, t, r, n) {
|
|
@@ -1643,7 +1660,7 @@ _.g = function(e, t, r, n) {
|
|
|
1643
1660
|
if (r === nt)
|
|
1644
1661
|
throw ReferenceError("Value not specified");
|
|
1645
1662
|
for (n = e; !(t in n.h); )
|
|
1646
|
-
if (n =
|
|
1663
|
+
if (n = ye(this, n), !n) {
|
|
1647
1664
|
n = e;
|
|
1648
1665
|
break;
|
|
1649
1666
|
}
|
|
@@ -1688,12 +1705,12 @@ function Yt(e, t, r) {
|
|
|
1688
1705
|
var i = t.body && t.body[0];
|
|
1689
1706
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (n = !0);
|
|
1690
1707
|
}
|
|
1691
|
-
return i = e.s(null), n = new
|
|
1708
|
+
return i = e.s(null), n = new vr(r, n, i), r || ai(e, n.object), rt(e, t, n), n;
|
|
1692
1709
|
}
|
|
1693
1710
|
function ln(e, t, r) {
|
|
1694
1711
|
if (!t)
|
|
1695
1712
|
throw Error("parentScope required");
|
|
1696
|
-
return e = r || e.s(null), new
|
|
1713
|
+
return e = r || e.s(null), new vr(t, t.S, e);
|
|
1697
1714
|
}
|
|
1698
1715
|
function cn(e, t) {
|
|
1699
1716
|
for (var r = sn(e); r && r !== e.N; ) {
|
|
@@ -1701,11 +1718,11 @@ function cn(e, t) {
|
|
|
1701
1718
|
return r.object.h[t];
|
|
1702
1719
|
r = r.Va;
|
|
1703
1720
|
}
|
|
1704
|
-
if (r === e.N &&
|
|
1721
|
+
if (r === e.N && bt(e, r.object, t))
|
|
1705
1722
|
return e.G(r.object, t);
|
|
1706
1723
|
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || C(e, e.pb, t + " is not defined");
|
|
1707
1724
|
}
|
|
1708
|
-
function
|
|
1725
|
+
function mr(e, t, r) {
|
|
1709
1726
|
for (var n = sn(e), i = n.S; n && n !== e.N; ) {
|
|
1710
1727
|
if (t in n.object.h) {
|
|
1711
1728
|
try {
|
|
@@ -1717,7 +1734,7 @@ function pr(e, t, r) {
|
|
|
1717
1734
|
}
|
|
1718
1735
|
n = n.Va;
|
|
1719
1736
|
}
|
|
1720
|
-
if (n === e.N && (!i ||
|
|
1737
|
+
if (n === e.N && (!i || bt(e, n.object, t)))
|
|
1721
1738
|
return e.g(n.object, t, r);
|
|
1722
1739
|
C(e, e.pb, t + " is not defined");
|
|
1723
1740
|
}
|
|
@@ -1774,13 +1791,13 @@ function be(e) {
|
|
|
1774
1791
|
return e.o[e.o.length - 1].isConstructor;
|
|
1775
1792
|
}
|
|
1776
1793
|
function un(e, t) {
|
|
1777
|
-
return t[0] ===
|
|
1794
|
+
return t[0] === Le ? cn(e, t[1]) : e.G(t[0], t[1]);
|
|
1778
1795
|
}
|
|
1779
1796
|
function dn(e, t, r) {
|
|
1780
|
-
return t[0] ===
|
|
1797
|
+
return t[0] === Le ? mr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1781
1798
|
}
|
|
1782
1799
|
function C(e, t, r) {
|
|
1783
|
-
throw e.N ? (r !== void 0 && t instanceof B && (t = e.Aa(t), Xt(e, t, r)), ot(e, 4, t),
|
|
1800
|
+
throw e.N ? (r !== void 0 && t instanceof B && (t = e.Aa(t), Xt(e, t, r)), ot(e, 4, t), hr) : r === void 0 ? t : r;
|
|
1784
1801
|
}
|
|
1785
1802
|
function ot(e, t, r, n) {
|
|
1786
1803
|
if (t === 0)
|
|
@@ -1873,9 +1890,9 @@ function Jn(e, t, r) {
|
|
|
1873
1890
|
}
|
|
1874
1891
|
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0], yt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, i.length = 0;
|
|
1875
1892
|
}
|
|
1876
|
-
return t = new
|
|
1893
|
+
return t = new yi(u, i, n, s, t ? r : -1), gr(e, t, r), t.Db;
|
|
1877
1894
|
}
|
|
1878
|
-
function
|
|
1895
|
+
function gr(e, t, r) {
|
|
1879
1896
|
t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(n, i) {
|
|
1880
1897
|
return n.time - i.time;
|
|
1881
1898
|
});
|
|
@@ -1901,8 +1918,8 @@ function fn(e, t, r, n) {
|
|
|
1901
1918
|
var i = e.ya();
|
|
1902
1919
|
return i.type = "CallExpression", e = new k(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [n], e;
|
|
1903
1920
|
}
|
|
1904
|
-
function
|
|
1905
|
-
return t == null ? e.Na : t instanceof B ? t : (e = e.s(
|
|
1921
|
+
function Ht(e, t) {
|
|
1922
|
+
return t == null ? e.Na : t instanceof B ? t : (e = e.s(ye(e, t)), e.data = t, e);
|
|
1906
1923
|
}
|
|
1907
1924
|
_.Xb = function() {
|
|
1908
1925
|
return this.N;
|
|
@@ -1916,7 +1933,7 @@ _.ec = function(e) {
|
|
|
1916
1933
|
function k(e, t) {
|
|
1917
1934
|
this.node = e, this.scope = t;
|
|
1918
1935
|
}
|
|
1919
|
-
function
|
|
1936
|
+
function vr(e, t, r) {
|
|
1920
1937
|
this.Va = e, this.S = t, this.object = r;
|
|
1921
1938
|
}
|
|
1922
1939
|
function B(e) {
|
|
@@ -1977,7 +1994,7 @@ _.toString = function() {
|
|
|
1977
1994
|
_.valueOf = function() {
|
|
1978
1995
|
return !Qe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1979
1996
|
};
|
|
1980
|
-
function
|
|
1997
|
+
function yi(e, t, r, n, i) {
|
|
1981
1998
|
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++bi, this.time = 0;
|
|
1982
1999
|
}
|
|
1983
2000
|
var bi = 0;
|
|
@@ -2111,7 +2128,7 @@ g.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2111
2128
|
r = n >>> t;
|
|
2112
2129
|
break;
|
|
2113
2130
|
case "in":
|
|
2114
|
-
t instanceof B || C(this, this.j, "'in' expects an object, not '" + t + "'"), r =
|
|
2131
|
+
t instanceof B || C(this, this.j, "'in' expects an object, not '" + t + "'"), r = bt(this, t, n);
|
|
2115
2132
|
break;
|
|
2116
2133
|
case "instanceof":
|
|
2117
2134
|
ee(this, t, this.O) || C(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof B ? ee(this, n, t) : !1;
|
|
@@ -2141,7 +2158,7 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2141
2158
|
t.ia = 2;
|
|
2142
2159
|
var i = t.value;
|
|
2143
2160
|
if (Array.isArray(i)) {
|
|
2144
|
-
if (t.U = un(this, i), i[0] ===
|
|
2161
|
+
if (t.U = un(this, i), i[0] === Le ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2145
2162
|
return t.ia = 1, at(this, i, t.value);
|
|
2146
2163
|
} else
|
|
2147
2164
|
t.U = i;
|
|
@@ -2169,7 +2186,7 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2169
2186
|
this.g(n, i, t.F[i]);
|
|
2170
2187
|
for (this.g(r.object, "arguments", n), i = 0; i < e.oa.length; i++)
|
|
2171
2188
|
this.g(r.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2172
|
-
return r.S || (t.B =
|
|
2189
|
+
return r.S || (t.B = Ht(this, t.B)), this.g(r.object, "this", t.B, tn), t.value = void 0, new k(e.body, r);
|
|
2173
2190
|
}
|
|
2174
2191
|
if (i.eval)
|
|
2175
2192
|
if (i = t.F[0], typeof i != "string")
|
|
@@ -2183,12 +2200,12 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2183
2200
|
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, yt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = Yt(this, n, r) : rt(this, n, r), this.value = void 0, new k(i, r);
|
|
2184
2201
|
}
|
|
2185
2202
|
else if (i.Ta)
|
|
2186
|
-
t.scope.S || (t.B =
|
|
2203
|
+
t.scope.S || (t.B = Ht(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2187
2204
|
else if (i.Za) {
|
|
2188
2205
|
var s = this;
|
|
2189
2206
|
n = i.Za.length - 1, n = t.F.concat(Array(n)).slice(0, n), n.push(function(u) {
|
|
2190
2207
|
t.value = u, s.za = !1;
|
|
2191
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2208
|
+
}), this.za = !0, t.scope.S || (t.B = Ht(this, t.B)), i.Za.apply(t.B, n);
|
|
2192
2209
|
} else
|
|
2193
2210
|
C(this, this.j, oe(this, r.callee) + " is not callable");
|
|
2194
2211
|
}
|
|
@@ -2259,14 +2276,14 @@ g.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2259
2276
|
break e;
|
|
2260
2277
|
}
|
|
2261
2278
|
}
|
|
2262
|
-
if (t.u =
|
|
2279
|
+
if (t.u = ye(this, t.u), t.wa = null, t.u === null) {
|
|
2263
2280
|
e.pop();
|
|
2264
2281
|
return;
|
|
2265
2282
|
}
|
|
2266
2283
|
}
|
|
2267
2284
|
if (!t.wb)
|
|
2268
2285
|
if (t.wb = !0, e = r.left, e.type === "VariableDeclaration")
|
|
2269
|
-
t.pa = [
|
|
2286
|
+
t.pa = [Le, e.fa[0].id.name];
|
|
2270
2287
|
else
|
|
2271
2288
|
return t.pa = null, t = new k(e, t.scope), t.sa = !0, t;
|
|
2272
2289
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = dn(this, t.pa, e)))
|
|
@@ -2303,7 +2320,7 @@ g.prototype.stepFunctionExpression = function(e, t, r) {
|
|
|
2303
2320
|
};
|
|
2304
2321
|
g.prototype.stepIdentifier = function(e, t, r) {
|
|
2305
2322
|
if (e.pop(), t.sa)
|
|
2306
|
-
e[e.length - 1].value = [
|
|
2323
|
+
e[e.length - 1].value = [Le, r.name];
|
|
2307
2324
|
else {
|
|
2308
2325
|
if (t = cn(this, r.name), this.P)
|
|
2309
2326
|
return at(this, t, this.Na);
|
|
@@ -2456,7 +2473,7 @@ g.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2456
2473
|
case "delete":
|
|
2457
2474
|
if (r = !0, Array.isArray(n)) {
|
|
2458
2475
|
var i = n[0];
|
|
2459
|
-
i ===
|
|
2476
|
+
i === Le && (i = t.scope), n = String(n[1]);
|
|
2460
2477
|
try {
|
|
2461
2478
|
delete i.h[n];
|
|
2462
2479
|
} catch {
|
|
@@ -2501,7 +2518,7 @@ g.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2501
2518
|
g.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
2502
2519
|
r = r.fa;
|
|
2503
2520
|
var n = t.A || 0, i = r[n];
|
|
2504
|
-
for (t.Bb && i && (
|
|
2521
|
+
for (t.Bb && i && (mr(this, i.id.name, t.value), t.Bb = !1, i = r[++n]); i; ) {
|
|
2505
2522
|
if (i.ua)
|
|
2506
2523
|
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new k(i.ua, t.scope);
|
|
2507
2524
|
i = r[++n];
|
|
@@ -2562,37 +2579,48 @@ const xi = (e) => e.split(`
|
|
|
2562
2579
|
const P = Zn(I);
|
|
2563
2580
|
return `var ${I} = ${P} === undefined ? undefined : JSON.parse(${P});`;
|
|
2564
2581
|
}).join(`
|
|
2565
|
-
`),
|
|
2566
|
-
if (
|
|
2567
|
-
|
|
2582
|
+
`), v = xi(s);
|
|
2583
|
+
if (v === "") {
|
|
2584
|
+
Re.warn("Skipping evaluation of empty code block.");
|
|
2568
2585
|
return;
|
|
2569
2586
|
}
|
|
2570
2587
|
const b = `
|
|
2571
2588
|
function theFunction() {
|
|
2572
2589
|
${m}
|
|
2573
2590
|
|
|
2574
|
-
${
|
|
2591
|
+
${v}
|
|
2575
2592
|
}
|
|
2576
2593
|
theFunction();
|
|
2577
2594
|
`, U = (I, P) => {
|
|
2578
|
-
const $ =
|
|
2595
|
+
const $ = fr(u, I, P);
|
|
2579
2596
|
a == null || a($);
|
|
2580
2597
|
}, N = function(I, P) {
|
|
2581
2598
|
f.forEach(([$, Y]) => {
|
|
2582
|
-
const
|
|
2583
|
-
I.setProperty(P, Zn($),
|
|
2599
|
+
const y = JSON.stringify(Y);
|
|
2600
|
+
I.setProperty(P, Zn($), y);
|
|
2584
2601
|
}), I.setProperty(P, "setRootState", I.createNativeFunction(U));
|
|
2585
2602
|
};
|
|
2586
2603
|
try {
|
|
2587
2604
|
const I = new g(b, N);
|
|
2588
2605
|
return I.run(), I.pseudoToNative(I.value);
|
|
2589
2606
|
} catch (I) {
|
|
2590
|
-
|
|
2607
|
+
Re.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2591
2608
|
e: I
|
|
2592
2609
|
});
|
|
2593
2610
|
return;
|
|
2594
2611
|
}
|
|
2595
|
-
}
|
|
2612
|
+
};
|
|
2613
|
+
function ki() {
|
|
2614
|
+
var e;
|
|
2615
|
+
return typeof process != "undefined" && mt((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2616
|
+
}
|
|
2617
|
+
const wi = () => {
|
|
2618
|
+
var n;
|
|
2619
|
+
if (!ki())
|
|
2620
|
+
return !1;
|
|
2621
|
+
const e = process.arch === "arm64", t = process.version.startsWith("v20"), r = (n = process.env.NODE_OPTIONS) == null ? void 0 : n.includes("--no-node-snapshot");
|
|
2622
|
+
return e && t && !r ? (Re.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;
|
|
2623
|
+
}, Ci = (e) => Ae() || wi() ? ri(e) : Si(e);
|
|
2596
2624
|
function it({
|
|
2597
2625
|
code: e,
|
|
2598
2626
|
context: t,
|
|
@@ -2603,14 +2631,14 @@ function it({
|
|
|
2603
2631
|
isExpression: s = !0
|
|
2604
2632
|
}) {
|
|
2605
2633
|
if (e === "") {
|
|
2606
|
-
|
|
2634
|
+
Re.warn("Skipping evaluation of empty code block.");
|
|
2607
2635
|
return;
|
|
2608
2636
|
}
|
|
2609
2637
|
const u = {
|
|
2610
|
-
code:
|
|
2638
|
+
code: ni(e, {
|
|
2611
2639
|
isExpression: s
|
|
2612
2640
|
}),
|
|
2613
|
-
builder:
|
|
2641
|
+
builder: ti(),
|
|
2614
2642
|
context: t,
|
|
2615
2643
|
event: a,
|
|
2616
2644
|
rootSetState: i,
|
|
@@ -2618,15 +2646,15 @@ function it({
|
|
|
2618
2646
|
localState: r
|
|
2619
2647
|
};
|
|
2620
2648
|
try {
|
|
2621
|
-
return
|
|
2649
|
+
return Ci(u);
|
|
2622
2650
|
} catch (f) {
|
|
2623
|
-
|
|
2651
|
+
Re.error("Failed code evaluation: " + f.message, {
|
|
2624
2652
|
code: e
|
|
2625
2653
|
});
|
|
2626
2654
|
return;
|
|
2627
2655
|
}
|
|
2628
2656
|
}
|
|
2629
|
-
const
|
|
2657
|
+
const Ei = ({
|
|
2630
2658
|
block: e,
|
|
2631
2659
|
context: t,
|
|
2632
2660
|
localState: r,
|
|
@@ -2652,11 +2680,11 @@ const wi = ({
|
|
|
2652
2680
|
rootSetState: i,
|
|
2653
2681
|
context: t
|
|
2654
2682
|
});
|
|
2655
|
-
|
|
2683
|
+
fr(s, u, m);
|
|
2656
2684
|
}
|
|
2657
2685
|
return s;
|
|
2658
2686
|
};
|
|
2659
|
-
function
|
|
2687
|
+
function vt({
|
|
2660
2688
|
block: e,
|
|
2661
2689
|
context: t,
|
|
2662
2690
|
shouldEvaluateBindings: r,
|
|
@@ -2665,7 +2693,7 @@ function gt({
|
|
|
2665
2693
|
rootSetState: a
|
|
2666
2694
|
}) {
|
|
2667
2695
|
const s = e;
|
|
2668
|
-
return r ?
|
|
2696
|
+
return r ? Ei({
|
|
2669
2697
|
block: s,
|
|
2670
2698
|
localState: n,
|
|
2671
2699
|
rootState: i,
|
|
@@ -2673,13 +2701,13 @@ function gt({
|
|
|
2673
2701
|
context: t
|
|
2674
2702
|
}) : s;
|
|
2675
2703
|
}
|
|
2676
|
-
const
|
|
2704
|
+
const Ii = ({
|
|
2677
2705
|
block: e,
|
|
2678
2706
|
context: t,
|
|
2679
2707
|
registeredComponents: r
|
|
2680
2708
|
}) => {
|
|
2681
2709
|
var a;
|
|
2682
|
-
const n = (a =
|
|
2710
|
+
const n = (a = vt({
|
|
2683
2711
|
block: e,
|
|
2684
2712
|
localState: t.localState,
|
|
2685
2713
|
rootState: t.rootState,
|
|
@@ -2695,7 +2723,7 @@ const Ci = ({
|
|
|
2695
2723
|
console.warn(`
|
|
2696
2724
|
Could not find a registered component named "${n}".
|
|
2697
2725
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2698
|
-
},
|
|
2726
|
+
}, Ti = ({
|
|
2699
2727
|
block: e,
|
|
2700
2728
|
context: t
|
|
2701
2729
|
}) => {
|
|
@@ -2744,7 +2772,7 @@ const Ci = ({
|
|
|
2744
2772
|
default: 991,
|
|
2745
2773
|
max: 1200
|
|
2746
2774
|
}
|
|
2747
|
-
}, Qn = (e, t = yr) => `@media (max-width: ${t[e].max}px)`,
|
|
2775
|
+
}, Qn = (e, t = yr) => `@media (max-width: ${t[e].max}px)`, br = ({
|
|
2748
2776
|
small: e,
|
|
2749
2777
|
medium: t
|
|
2750
2778
|
}) => {
|
|
@@ -2770,28 +2798,28 @@ const Ci = ({
|
|
|
2770
2798
|
min: a,
|
|
2771
2799
|
default: a + 1
|
|
2772
2800
|
}, r;
|
|
2773
|
-
},
|
|
2801
|
+
}, ji = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), xr = (e) => Object.entries(e).map(([r, n]) => {
|
|
2774
2802
|
if (typeof n == "string")
|
|
2775
|
-
return `${
|
|
2776
|
-
}).filter(
|
|
2777
|
-
`),
|
|
2803
|
+
return `${ji(r)}: ${n};`;
|
|
2804
|
+
}).filter(mt), Ai = (e) => xr(e).join(`
|
|
2805
|
+
`), Kt = ({
|
|
2778
2806
|
mediaQuery: e,
|
|
2779
2807
|
className: t,
|
|
2780
2808
|
styles: r
|
|
2781
2809
|
}) => {
|
|
2782
2810
|
const n = `.${t} {
|
|
2783
|
-
${
|
|
2811
|
+
${Ai(r)}
|
|
2784
2812
|
}`;
|
|
2785
2813
|
return e ? `${e} {
|
|
2786
2814
|
${n}
|
|
2787
2815
|
}` : n;
|
|
2788
2816
|
};
|
|
2789
|
-
function
|
|
2817
|
+
function xt(e) {
|
|
2790
2818
|
return /* @__PURE__ */ p("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2791
2819
|
}
|
|
2792
|
-
function
|
|
2820
|
+
function Ri(e) {
|
|
2793
2821
|
function t() {
|
|
2794
|
-
const n =
|
|
2822
|
+
const n = vt({
|
|
2795
2823
|
block: e.block,
|
|
2796
2824
|
localState: e.context.localState,
|
|
2797
2825
|
rootState: e.context.rootState,
|
|
@@ -2799,34 +2827,34 @@ function ji(e) {
|
|
|
2799
2827
|
context: e.context.context,
|
|
2800
2828
|
shouldEvaluateBindings: !0
|
|
2801
2829
|
});
|
|
2802
|
-
return
|
|
2830
|
+
return mt(n.hide) ? !n.hide : mt(n.show) ? n.show : !0;
|
|
2803
2831
|
}
|
|
2804
2832
|
function r() {
|
|
2805
2833
|
var I;
|
|
2806
|
-
const n =
|
|
2834
|
+
const n = vt({
|
|
2807
2835
|
block: e.block,
|
|
2808
2836
|
localState: e.context.localState,
|
|
2809
2837
|
rootState: e.context.rootState,
|
|
2810
2838
|
rootSetState: e.context.rootSetState,
|
|
2811
2839
|
context: e.context.context,
|
|
2812
2840
|
shouldEvaluateBindings: !0
|
|
2813
|
-
}), i = n.responsiveStyles, a = e.context.content, s =
|
|
2841
|
+
}), i = n.responsiveStyles, a = e.context.content, s = br(
|
|
2814
2842
|
((I = a == null ? void 0 : a.meta) == null ? void 0 : I.breakpoints) || {}
|
|
2815
|
-
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium, m = i == null ? void 0 : i.small,
|
|
2816
|
-
if (!
|
|
2843
|
+
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium, m = i == null ? void 0 : i.small, v = n.id;
|
|
2844
|
+
if (!v)
|
|
2817
2845
|
return "";
|
|
2818
|
-
const b = u ?
|
|
2819
|
-
className:
|
|
2846
|
+
const b = u ? Kt({
|
|
2847
|
+
className: v,
|
|
2820
2848
|
styles: u
|
|
2821
|
-
}) : "", U = f ?
|
|
2822
|
-
className:
|
|
2849
|
+
}) : "", U = f ? Kt({
|
|
2850
|
+
className: v,
|
|
2823
2851
|
styles: f,
|
|
2824
2852
|
mediaQuery: Qn(
|
|
2825
2853
|
"medium",
|
|
2826
2854
|
s
|
|
2827
2855
|
)
|
|
2828
|
-
}) : "", N = m ?
|
|
2829
|
-
className:
|
|
2856
|
+
}) : "", N = m ? Kt({
|
|
2857
|
+
className: v,
|
|
2830
2858
|
styles: m,
|
|
2831
2859
|
mediaQuery: Qn(
|
|
2832
2860
|
"small",
|
|
@@ -2835,12 +2863,12 @@ function ji(e) {
|
|
|
2835
2863
|
}) : "";
|
|
2836
2864
|
return [b, U, N].join(" ");
|
|
2837
2865
|
}
|
|
2838
|
-
return /* @__PURE__ */ p(F, { children: r() && t() ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(
|
|
2866
|
+
return /* @__PURE__ */ p(F, { children: r() && t() ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(xt, { styles: r() }) }) : null });
|
|
2839
2867
|
}
|
|
2840
|
-
function
|
|
2868
|
+
function Oi(e) {
|
|
2841
2869
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2842
2870
|
}
|
|
2843
|
-
const
|
|
2871
|
+
const Pi = (e) => `on${Oi(e)}`, Ni = (e, t) => (r) => it({
|
|
2844
2872
|
code: e,
|
|
2845
2873
|
context: t.context,
|
|
2846
2874
|
localState: t.localState,
|
|
@@ -2849,16 +2877,16 @@ const Ri = (e) => `on${Ai(e)}`, Oi = (e, t) => (r) => it({
|
|
|
2849
2877
|
event: r,
|
|
2850
2878
|
isExpression: !1
|
|
2851
2879
|
});
|
|
2852
|
-
function
|
|
2880
|
+
function Sr(e) {
|
|
2853
2881
|
var n;
|
|
2854
2882
|
const t = {}, r = (n = e.block.actions) != null ? n : {};
|
|
2855
2883
|
for (const i in r) {
|
|
2856
2884
|
if (!r.hasOwnProperty(i))
|
|
2857
2885
|
continue;
|
|
2858
2886
|
const a = r[i];
|
|
2859
|
-
let s =
|
|
2887
|
+
let s = Pi(i);
|
|
2860
2888
|
if (e.stripPrefix)
|
|
2861
|
-
switch (
|
|
2889
|
+
switch (We) {
|
|
2862
2890
|
case "vue":
|
|
2863
2891
|
s = s.replace("v-on:", "");
|
|
2864
2892
|
break;
|
|
@@ -2866,29 +2894,29 @@ function xr(e) {
|
|
|
2866
2894
|
s = s.replace("on:", "");
|
|
2867
2895
|
break;
|
|
2868
2896
|
}
|
|
2869
|
-
t[s] =
|
|
2897
|
+
t[s] = Ni(a, e);
|
|
2870
2898
|
}
|
|
2871
2899
|
return t;
|
|
2872
2900
|
}
|
|
2873
|
-
function
|
|
2901
|
+
function Mi({
|
|
2874
2902
|
style: e
|
|
2875
2903
|
}) {
|
|
2876
2904
|
return e;
|
|
2877
2905
|
}
|
|
2878
|
-
const
|
|
2906
|
+
const Bi = ({
|
|
2879
2907
|
block: e,
|
|
2880
2908
|
context: t
|
|
2881
|
-
}) =>
|
|
2909
|
+
}) => kr(Mi({
|
|
2882
2910
|
style: e.style || {},
|
|
2883
2911
|
context: t,
|
|
2884
2912
|
block: e
|
|
2885
2913
|
}));
|
|
2886
|
-
function
|
|
2887
|
-
switch (
|
|
2914
|
+
function kr(e) {
|
|
2915
|
+
switch (We) {
|
|
2888
2916
|
case "svelte":
|
|
2889
2917
|
case "vue":
|
|
2890
2918
|
case "solid":
|
|
2891
|
-
return
|
|
2919
|
+
return xr(e).join(" ");
|
|
2892
2920
|
case "qwik":
|
|
2893
2921
|
case "reactNative":
|
|
2894
2922
|
case "react":
|
|
@@ -2896,12 +2924,12 @@ function Sr(e) {
|
|
|
2896
2924
|
return e;
|
|
2897
2925
|
}
|
|
2898
2926
|
}
|
|
2899
|
-
function
|
|
2927
|
+
function Fi({
|
|
2900
2928
|
properties: e
|
|
2901
2929
|
}) {
|
|
2902
2930
|
return e;
|
|
2903
2931
|
}
|
|
2904
|
-
const
|
|
2932
|
+
const Ui = (e) => ({
|
|
2905
2933
|
href: e.href
|
|
2906
2934
|
});
|
|
2907
2935
|
function hn({
|
|
@@ -2910,22 +2938,22 @@ function hn({
|
|
|
2910
2938
|
}) {
|
|
2911
2939
|
var n;
|
|
2912
2940
|
const r = {
|
|
2913
|
-
...
|
|
2941
|
+
...Ui(e),
|
|
2914
2942
|
...e.properties,
|
|
2915
2943
|
"builder-id": e.id,
|
|
2916
|
-
style:
|
|
2944
|
+
style: Bi({
|
|
2917
2945
|
block: e,
|
|
2918
2946
|
context: t
|
|
2919
2947
|
}),
|
|
2920
2948
|
[tt()]: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
2921
2949
|
};
|
|
2922
|
-
return
|
|
2950
|
+
return Fi({
|
|
2923
2951
|
properties: r,
|
|
2924
2952
|
context: t,
|
|
2925
2953
|
block: e
|
|
2926
2954
|
});
|
|
2927
2955
|
}
|
|
2928
|
-
function
|
|
2956
|
+
function Di(e) {
|
|
2929
2957
|
return /* @__PURE__ */ p(
|
|
2930
2958
|
Qt,
|
|
2931
2959
|
{
|
|
@@ -2934,7 +2962,7 @@ function Fi(e) {
|
|
|
2934
2962
|
block: e.block,
|
|
2935
2963
|
context: e.context
|
|
2936
2964
|
}),
|
|
2937
|
-
actionAttributes:
|
|
2965
|
+
actionAttributes: Sr({
|
|
2938
2966
|
block: e.block,
|
|
2939
2967
|
rootState: e.context.rootState,
|
|
2940
2968
|
rootSetState: e.context.rootSetState,
|
|
@@ -2946,7 +2974,7 @@ function Fi(e) {
|
|
|
2946
2974
|
}
|
|
2947
2975
|
);
|
|
2948
2976
|
}
|
|
2949
|
-
function
|
|
2977
|
+
function _i(e) {
|
|
2950
2978
|
return /* @__PURE__ */ p(
|
|
2951
2979
|
e.Wrapper,
|
|
2952
2980
|
{
|
|
@@ -2956,7 +2984,7 @@ function Ui(e) {
|
|
|
2956
2984
|
block: e.block,
|
|
2957
2985
|
context: e.context
|
|
2958
2986
|
}),
|
|
2959
|
-
...
|
|
2987
|
+
...Sr({
|
|
2960
2988
|
block: e.block,
|
|
2961
2989
|
rootState: e.context.rootState,
|
|
2962
2990
|
rootSetState: e.context.rootSetState,
|
|
@@ -2968,7 +2996,7 @@ function Ui(e) {
|
|
|
2968
2996
|
}
|
|
2969
2997
|
);
|
|
2970
2998
|
}
|
|
2971
|
-
const
|
|
2999
|
+
const Wi = ({
|
|
2972
3000
|
componentOptions: e,
|
|
2973
3001
|
builderBlock: t,
|
|
2974
3002
|
context: r,
|
|
@@ -3001,12 +3029,12 @@ const Di = ({
|
|
|
3001
3029
|
function er(e) {
|
|
3002
3030
|
var n;
|
|
3003
3031
|
const [t, r] = V(
|
|
3004
|
-
() => e.isInteractive ?
|
|
3032
|
+
() => e.isInteractive ? _i : e.componentRef
|
|
3005
3033
|
);
|
|
3006
3034
|
return /* @__PURE__ */ p(F, { children: e.componentRef ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(
|
|
3007
3035
|
t,
|
|
3008
3036
|
{
|
|
3009
|
-
...
|
|
3037
|
+
...Wi({
|
|
3010
3038
|
componentOptions: e.componentOptions,
|
|
3011
3039
|
builderBlock: e.builderBlock,
|
|
3012
3040
|
context: e.context,
|
|
@@ -3017,7 +3045,7 @@ function er(e) {
|
|
|
3017
3045
|
contextValue: e.context
|
|
3018
3046
|
}),
|
|
3019
3047
|
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ p(
|
|
3020
|
-
|
|
3048
|
+
St,
|
|
3021
3049
|
{
|
|
3022
3050
|
block: i,
|
|
3023
3051
|
context: e.context,
|
|
@@ -3029,10 +3057,10 @@ function er(e) {
|
|
|
3029
3057
|
}
|
|
3030
3058
|
) }) : null });
|
|
3031
3059
|
}
|
|
3032
|
-
function
|
|
3060
|
+
function Li(e) {
|
|
3033
3061
|
const [t, r] = V(() => e.repeatContext);
|
|
3034
3062
|
return /* @__PURE__ */ p(en.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3035
|
-
|
|
3063
|
+
St,
|
|
3036
3064
|
{
|
|
3037
3065
|
block: e.block,
|
|
3038
3066
|
context: t,
|
|
@@ -3041,24 +3069,24 @@ function _i(e) {
|
|
|
3041
3069
|
}
|
|
3042
3070
|
) });
|
|
3043
3071
|
}
|
|
3044
|
-
function
|
|
3045
|
-
var
|
|
3072
|
+
function St(e) {
|
|
3073
|
+
var v, b, U;
|
|
3046
3074
|
function t() {
|
|
3047
|
-
return
|
|
3075
|
+
return Ii({
|
|
3048
3076
|
block: e.block,
|
|
3049
3077
|
context: e.context,
|
|
3050
3078
|
registeredComponents: e.registeredComponents
|
|
3051
3079
|
});
|
|
3052
3080
|
}
|
|
3053
3081
|
function r() {
|
|
3054
|
-
return
|
|
3082
|
+
return Ti({
|
|
3055
3083
|
block: e.block,
|
|
3056
3084
|
context: e.context
|
|
3057
3085
|
});
|
|
3058
3086
|
}
|
|
3059
3087
|
function n() {
|
|
3060
3088
|
var N;
|
|
3061
|
-
return (N = e.block.repeat) != null && N.collection ? e.block :
|
|
3089
|
+
return (N = e.block.repeat) != null && N.collection ? e.block : vt({
|
|
3062
3090
|
block: e.block,
|
|
3063
3091
|
localState: e.context.localState,
|
|
3064
3092
|
rootState: e.context.rootState,
|
|
@@ -3083,17 +3111,17 @@ function xt(e) {
|
|
|
3083
3111
|
return !((I = t == null ? void 0 : t()) != null && I.component) && !r() ? (P = n().children) != null ? P : [] : [];
|
|
3084
3112
|
}
|
|
3085
3113
|
function u() {
|
|
3086
|
-
var N, I, P, $, Y,
|
|
3114
|
+
var N, I, P, $, Y, y, L, Z, ne;
|
|
3087
3115
|
return {
|
|
3088
3116
|
blockChildren: (N = n().children) != null ? N : [],
|
|
3089
3117
|
componentRef: (I = t == null ? void 0 : t()) == null ? void 0 : I.component,
|
|
3090
3118
|
componentOptions: {
|
|
3091
|
-
...
|
|
3119
|
+
...ei(n()),
|
|
3092
3120
|
builderContext: e.context,
|
|
3093
3121
|
...((P = t == null ? void 0 : t()) == null ? void 0 : P.name) === "Core:Button" || (($ = t == null ? void 0 : t()) == null ? void 0 : $.name) === "Symbol" || ((Y = t == null ? void 0 : t()) == null ? void 0 : Y.name) === "Columns" ? {
|
|
3094
3122
|
builderLinkComponent: e.linkComponent
|
|
3095
3123
|
} : {},
|
|
3096
|
-
...((
|
|
3124
|
+
...((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Symbol" || ((L = t == null ? void 0 : t()) == null ? void 0 : L.name) === "Columns" ? {
|
|
3097
3125
|
builderComponents: e.registeredComponents
|
|
3098
3126
|
} : {}
|
|
3099
3127
|
},
|
|
@@ -3107,8 +3135,8 @@ function xt(e) {
|
|
|
3107
3135
|
}
|
|
3108
3136
|
const [f, m] = V(() => e.context);
|
|
3109
3137
|
return /* @__PURE__ */ p(F, { children: a() ? /* @__PURE__ */ ce(F, { children: [
|
|
3110
|
-
/* @__PURE__ */ p(
|
|
3111
|
-
(
|
|
3138
|
+
/* @__PURE__ */ p(Ri, { block: e.block, context: e.context }),
|
|
3139
|
+
(v = t == null ? void 0 : t()) != null && v.noWrap ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(
|
|
3112
3140
|
er,
|
|
3113
3141
|
{
|
|
3114
3142
|
componentRef: u().componentRef,
|
|
@@ -3122,7 +3150,7 @@ function xt(e) {
|
|
|
3122
3150
|
isInteractive: u().isInteractive
|
|
3123
3151
|
}
|
|
3124
3152
|
) }) : /* @__PURE__ */ p(F, { children: r() ? /* @__PURE__ */ p(F, { children: (U = r()) == null ? void 0 : U.map((N, I) => /* @__PURE__ */ p(
|
|
3125
|
-
|
|
3153
|
+
Li,
|
|
3126
3154
|
{
|
|
3127
3155
|
repeatContext: N.context,
|
|
3128
3156
|
block: N.block,
|
|
@@ -3131,7 +3159,7 @@ function xt(e) {
|
|
|
3131
3159
|
},
|
|
3132
3160
|
I
|
|
3133
3161
|
)) }) : /* @__PURE__ */ p(F, { children: /* @__PURE__ */ ce(
|
|
3134
|
-
|
|
3162
|
+
Di,
|
|
3135
3163
|
{
|
|
3136
3164
|
Wrapper: i(),
|
|
3137
3165
|
block: n(),
|
|
@@ -3153,7 +3181,7 @@ function xt(e) {
|
|
|
3153
3181
|
}
|
|
3154
3182
|
),
|
|
3155
3183
|
(b = s()) == null ? void 0 : b.map((N) => /* @__PURE__ */ p(
|
|
3156
|
-
|
|
3184
|
+
St,
|
|
3157
3185
|
{
|
|
3158
3186
|
block: N,
|
|
3159
3187
|
context: f,
|
|
@@ -3167,7 +3195,7 @@ function xt(e) {
|
|
|
3167
3195
|
) }) })
|
|
3168
3196
|
] }) : null });
|
|
3169
3197
|
}
|
|
3170
|
-
function
|
|
3198
|
+
function Vi(e) {
|
|
3171
3199
|
function t() {
|
|
3172
3200
|
var i;
|
|
3173
3201
|
return "builder-blocks" + ((i = e.blocks) != null && i.length ? "" : " no-blocks");
|
|
@@ -3220,11 +3248,11 @@ function Li(e) {
|
|
|
3220
3248
|
}` })
|
|
3221
3249
|
] });
|
|
3222
3250
|
}
|
|
3223
|
-
function
|
|
3251
|
+
function kt(e) {
|
|
3224
3252
|
var n, i, a;
|
|
3225
3253
|
const t = $n(en), r = $n(cr);
|
|
3226
3254
|
return /* @__PURE__ */ p(
|
|
3227
|
-
|
|
3255
|
+
Vi,
|
|
3228
3256
|
{
|
|
3229
3257
|
blocks: e.blocks,
|
|
3230
3258
|
parent: e.parent,
|
|
@@ -3233,7 +3261,7 @@ function St(e) {
|
|
|
3233
3261
|
BlocksWrapper: (n = e.context) == null ? void 0 : n.BlocksWrapper,
|
|
3234
3262
|
BlocksWrapperProps: (i = e.context) == null ? void 0 : i.BlocksWrapperProps,
|
|
3235
3263
|
children: e.blocks ? /* @__PURE__ */ p(F, { children: (a = e.blocks) == null ? void 0 : a.map((s) => /* @__PURE__ */ p(
|
|
3236
|
-
|
|
3264
|
+
St,
|
|
3237
3265
|
{
|
|
3238
3266
|
block: s,
|
|
3239
3267
|
linkComponent: e.linkComponent,
|
|
@@ -3245,32 +3273,32 @@ function St(e) {
|
|
|
3245
3273
|
}
|
|
3246
3274
|
);
|
|
3247
3275
|
}
|
|
3248
|
-
function
|
|
3276
|
+
function $i(e) {
|
|
3249
3277
|
var Y;
|
|
3250
3278
|
const [t, r] = V(
|
|
3251
3279
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3252
3280
|
), [n, i] = V(() => e.columns || []), [a, s] = V(
|
|
3253
3281
|
() => e.stackColumnsAt || "tablet"
|
|
3254
3282
|
);
|
|
3255
|
-
function u(
|
|
3256
|
-
var
|
|
3257
|
-
return ((
|
|
3283
|
+
function u(y) {
|
|
3284
|
+
var L;
|
|
3285
|
+
return ((L = n[y]) == null ? void 0 : L.width) || 100 / n.length;
|
|
3258
3286
|
}
|
|
3259
|
-
function f(
|
|
3260
|
-
const
|
|
3261
|
-
return `calc(${u(
|
|
3287
|
+
function f(y) {
|
|
3288
|
+
const L = t * (n.length - 1) / n.length;
|
|
3289
|
+
return `calc(${u(y)}% - ${L}px)`;
|
|
3262
3290
|
}
|
|
3263
3291
|
function m({
|
|
3264
|
-
stackedStyle:
|
|
3265
|
-
desktopStyle:
|
|
3292
|
+
stackedStyle: y,
|
|
3293
|
+
desktopStyle: L
|
|
3266
3294
|
}) {
|
|
3267
|
-
return a === "tablet" ?
|
|
3295
|
+
return a === "tablet" ? y : L;
|
|
3268
3296
|
}
|
|
3269
|
-
function
|
|
3270
|
-
stackedStyle:
|
|
3271
|
-
desktopStyle:
|
|
3297
|
+
function v({
|
|
3298
|
+
stackedStyle: y,
|
|
3299
|
+
desktopStyle: L
|
|
3272
3300
|
}) {
|
|
3273
|
-
return a === "never" ?
|
|
3301
|
+
return a === "never" ? L : y;
|
|
3274
3302
|
}
|
|
3275
3303
|
const [b, U] = V(
|
|
3276
3304
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
@@ -3284,8 +3312,8 @@ function Wi(e) {
|
|
|
3284
3312
|
})
|
|
3285
3313
|
};
|
|
3286
3314
|
}
|
|
3287
|
-
function I(
|
|
3288
|
-
const
|
|
3315
|
+
function I(y) {
|
|
3316
|
+
const L = y === 0 ? 0 : t, Z = f(y), ne = `${L}px`, H = "100%", re = 0;
|
|
3289
3317
|
return {
|
|
3290
3318
|
...{
|
|
3291
3319
|
display: "flex",
|
|
@@ -3294,11 +3322,11 @@ function Wi(e) {
|
|
|
3294
3322
|
},
|
|
3295
3323
|
width: Z,
|
|
3296
3324
|
["marginLeft"]: ne,
|
|
3297
|
-
"--column-width-mobile":
|
|
3325
|
+
"--column-width-mobile": v({
|
|
3298
3326
|
stackedStyle: H,
|
|
3299
3327
|
desktopStyle: Z
|
|
3300
3328
|
}),
|
|
3301
|
-
"--column-margin-left-mobile":
|
|
3329
|
+
"--column-margin-left-mobile": v({
|
|
3302
3330
|
stackedStyle: re,
|
|
3303
3331
|
desktopStyle: ne
|
|
3304
3332
|
}),
|
|
@@ -3312,11 +3340,11 @@ function Wi(e) {
|
|
|
3312
3340
|
})
|
|
3313
3341
|
};
|
|
3314
3342
|
}
|
|
3315
|
-
function P(
|
|
3343
|
+
function P(y) {
|
|
3316
3344
|
var Z, ne;
|
|
3317
|
-
return
|
|
3345
|
+
return br(
|
|
3318
3346
|
((ne = (Z = e.builderContext.content) == null ? void 0 : Z.meta) == null ? void 0 : ne.breakpoints) || {}
|
|
3319
|
-
)[
|
|
3347
|
+
)[y].max;
|
|
3320
3348
|
}
|
|
3321
3349
|
function $() {
|
|
3322
3350
|
return `
|
|
@@ -3352,23 +3380,23 @@ function Wi(e) {
|
|
|
3352
3380
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-6f826264`,
|
|
3353
3381
|
style: N(),
|
|
3354
3382
|
children: [
|
|
3355
|
-
/* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(
|
|
3356
|
-
(Y = e.columns) == null ? void 0 : Y.map((
|
|
3383
|
+
/* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(xt, { styles: $() }) }),
|
|
3384
|
+
(Y = e.columns) == null ? void 0 : Y.map((y, L) => /* @__PURE__ */ p(
|
|
3357
3385
|
Qt,
|
|
3358
3386
|
{
|
|
3359
|
-
TagName:
|
|
3387
|
+
TagName: y.link ? e.builderLinkComponent || "a" : "div",
|
|
3360
3388
|
actionAttributes: {},
|
|
3361
3389
|
attributes: {
|
|
3362
|
-
...
|
|
3363
|
-
href:
|
|
3390
|
+
...y.link ? {
|
|
3391
|
+
href: y.link
|
|
3364
3392
|
} : {},
|
|
3365
3393
|
[tt()]: "builder-column",
|
|
3366
|
-
style:
|
|
3394
|
+
style: kr(I(L))
|
|
3367
3395
|
},
|
|
3368
3396
|
children: /* @__PURE__ */ p(
|
|
3369
|
-
|
|
3397
|
+
kt,
|
|
3370
3398
|
{
|
|
3371
|
-
path: `component.options.columns.${
|
|
3399
|
+
path: `component.options.columns.${L}.blocks`,
|
|
3372
3400
|
parent: e.builderBlock.id,
|
|
3373
3401
|
styleProp: {
|
|
3374
3402
|
flexGrow: "1"
|
|
@@ -3376,11 +3404,11 @@ function Wi(e) {
|
|
|
3376
3404
|
context: e.builderContext,
|
|
3377
3405
|
registeredComponents: e.builderComponents,
|
|
3378
3406
|
linkComponent: e.builderLinkComponent,
|
|
3379
|
-
blocks:
|
|
3407
|
+
blocks: y.blocks
|
|
3380
3408
|
}
|
|
3381
3409
|
)
|
|
3382
3410
|
},
|
|
3383
|
-
|
|
3411
|
+
L
|
|
3384
3412
|
))
|
|
3385
3413
|
]
|
|
3386
3414
|
}
|
|
@@ -3391,17 +3419,17 @@ function Wi(e) {
|
|
|
3391
3419
|
}` })
|
|
3392
3420
|
] });
|
|
3393
3421
|
}
|
|
3394
|
-
function
|
|
3422
|
+
function Hi(e) {
|
|
3395
3423
|
return /* @__PURE__ */ p("span", { children: e.children });
|
|
3396
3424
|
}
|
|
3397
3425
|
function tr(e) {
|
|
3398
3426
|
return e.replace(/http(s)?:/, "");
|
|
3399
3427
|
}
|
|
3400
|
-
function
|
|
3428
|
+
function Ki(e = "", t, r) {
|
|
3401
3429
|
const n = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3402
3430
|
return e.match(n) ? e.replace(n, "$1" + t + "=" + encodeURIComponent(r) + "$2") : e + i + t + "=" + encodeURIComponent(r);
|
|
3403
3431
|
}
|
|
3404
|
-
function
|
|
3432
|
+
function Gi(e, t) {
|
|
3405
3433
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3406
3434
|
return e;
|
|
3407
3435
|
if (t === "master")
|
|
@@ -3413,32 +3441,32 @@ function Hi(e, t) {
|
|
|
3413
3441
|
}
|
|
3414
3442
|
return null;
|
|
3415
3443
|
}
|
|
3416
|
-
function
|
|
3444
|
+
function Gt(e) {
|
|
3417
3445
|
if (!e)
|
|
3418
3446
|
return e;
|
|
3419
3447
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3420
3448
|
if (e.match(/builder\.io/)) {
|
|
3421
3449
|
let r = e;
|
|
3422
3450
|
const n = Number(e.split("?width=")[1]);
|
|
3423
|
-
return isNaN(n) || (r = `${r} ${n}w`), t.filter((i) => i !== n).map((i) => `${
|
|
3451
|
+
return isNaN(n) || (r = `${r} ${n}w`), t.filter((i) => i !== n).map((i) => `${Ki(e, "width", i)} ${i}w`).concat([r]).join(", ");
|
|
3424
3452
|
}
|
|
3425
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [
|
|
3453
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [Gi(e, `${r}x${r}`), r]).filter(([r]) => !!r).map(([r, n]) => `${r} ${n}w`).concat([e]).join(", ") : e;
|
|
3426
3454
|
}
|
|
3427
|
-
function
|
|
3455
|
+
function zi(e) {
|
|
3428
3456
|
var i, a, s, u;
|
|
3429
3457
|
function t() {
|
|
3430
|
-
var
|
|
3458
|
+
var v;
|
|
3431
3459
|
const m = e.image || e.src;
|
|
3432
3460
|
if (!m || // We can auto add srcset for cdn.builder.io and shopify
|
|
3433
3461
|
// images, otherwise you can supply this prop manually
|
|
3434
3462
|
!(m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/)))
|
|
3435
3463
|
return e.srcset;
|
|
3436
|
-
if (e.srcset && ((
|
|
3464
|
+
if (e.srcset && ((v = e.image) != null && v.includes("builder.io/api/v1/image"))) {
|
|
3437
3465
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3438
|
-
return console.debug("Removed given srcset"),
|
|
3466
|
+
return console.debug("Removed given srcset"), Gt(m);
|
|
3439
3467
|
} else if (e.image && !e.srcset)
|
|
3440
|
-
return
|
|
3441
|
-
return
|
|
3468
|
+
return Gt(m);
|
|
3469
|
+
return Gt(m);
|
|
3442
3470
|
}
|
|
3443
3471
|
function r() {
|
|
3444
3472
|
var f;
|
|
@@ -3507,7 +3535,7 @@ function Ki(e) {
|
|
|
3507
3535
|
}` })
|
|
3508
3536
|
] });
|
|
3509
3537
|
}
|
|
3510
|
-
function
|
|
3538
|
+
function Xi(e) {
|
|
3511
3539
|
return /* @__PURE__ */ p(
|
|
3512
3540
|
"section",
|
|
3513
3541
|
{
|
|
@@ -3528,7 +3556,7 @@ function Gi(e) {
|
|
|
3528
3556
|
}
|
|
3529
3557
|
);
|
|
3530
3558
|
}
|
|
3531
|
-
const
|
|
3559
|
+
const Yi = {
|
|
3532
3560
|
name: "Core:Button",
|
|
3533
3561
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3534
3562
|
defaultStyles: {
|
|
@@ -3561,7 +3589,7 @@ const zi = {
|
|
|
3561
3589
|
}],
|
|
3562
3590
|
static: !0,
|
|
3563
3591
|
noWrap: !0
|
|
3564
|
-
},
|
|
3592
|
+
}, Ji = {
|
|
3565
3593
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3566
3594
|
name: "Columns",
|
|
3567
3595
|
isRSC: !0,
|
|
@@ -3762,7 +3790,7 @@ const zi = {
|
|
|
3762
3790
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3763
3791
|
advanced: !0
|
|
3764
3792
|
}]
|
|
3765
|
-
},
|
|
3793
|
+
}, qi = {
|
|
3766
3794
|
name: "Custom Code",
|
|
3767
3795
|
static: !0,
|
|
3768
3796
|
requiredPermissions: ["editCode"],
|
|
@@ -3785,7 +3813,7 @@ const zi = {
|
|
|
3785
3813
|
advanced: !0
|
|
3786
3814
|
}]
|
|
3787
3815
|
};
|
|
3788
|
-
function
|
|
3816
|
+
function Zi(e) {
|
|
3789
3817
|
const t = qt(null), [r, n] = V(() => []), [i, a] = V(() => []);
|
|
3790
3818
|
return Q(() => {
|
|
3791
3819
|
var u;
|
|
@@ -3798,8 +3826,8 @@ function Ji(e) {
|
|
|
3798
3826
|
if (r.includes(m.src))
|
|
3799
3827
|
continue;
|
|
3800
3828
|
r.push(m.src);
|
|
3801
|
-
const
|
|
3802
|
-
|
|
3829
|
+
const v = document.createElement("script");
|
|
3830
|
+
v.async = !0, v.src = m.src, document.head.appendChild(v);
|
|
3803
3831
|
} else if (!m.type || [
|
|
3804
3832
|
"text/javascript",
|
|
3805
3833
|
"application/javascript",
|
|
@@ -3809,8 +3837,8 @@ function Ji(e) {
|
|
|
3809
3837
|
continue;
|
|
3810
3838
|
try {
|
|
3811
3839
|
i.push(m.innerText), new Function(m.innerText)();
|
|
3812
|
-
} catch (
|
|
3813
|
-
console.warn("`CustomCode`: Error running script:",
|
|
3840
|
+
} catch (v) {
|
|
3841
|
+
console.warn("`CustomCode`: Error running script:", v);
|
|
3814
3842
|
}
|
|
3815
3843
|
}
|
|
3816
3844
|
}
|
|
@@ -3823,7 +3851,7 @@ function Ji(e) {
|
|
|
3823
3851
|
}
|
|
3824
3852
|
);
|
|
3825
3853
|
}
|
|
3826
|
-
const
|
|
3854
|
+
const Qi = {
|
|
3827
3855
|
name: "Embed",
|
|
3828
3856
|
static: !0,
|
|
3829
3857
|
inputs: [{
|
|
@@ -3848,20 +3876,20 @@ const qi = {
|
|
|
3848
3876
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3849
3877
|
hideFromUI: !0
|
|
3850
3878
|
}]
|
|
3851
|
-
},
|
|
3852
|
-
function
|
|
3879
|
+
}, eo = ["text/javascript", "application/javascript", "application/ecmascript"], to = (e) => eo.includes(e.type);
|
|
3880
|
+
function no(e) {
|
|
3853
3881
|
const t = qt(null), [r, n] = V(() => []), [i, a] = V(() => []), [s, u] = V(() => !1);
|
|
3854
3882
|
function f() {
|
|
3855
3883
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3856
3884
|
return;
|
|
3857
3885
|
const m = t.current.getElementsByTagName("script");
|
|
3858
|
-
for (let
|
|
3859
|
-
const b = m[
|
|
3886
|
+
for (let v = 0; v < m.length; v++) {
|
|
3887
|
+
const b = m[v];
|
|
3860
3888
|
if (b.src && !r.includes(b.src)) {
|
|
3861
3889
|
r.push(b.src);
|
|
3862
3890
|
const U = document.createElement("script");
|
|
3863
3891
|
U.async = !0, U.src = b.src, document.head.appendChild(U);
|
|
3864
|
-
} else if (
|
|
3892
|
+
} else if (to(b) && !i.includes(b.innerText))
|
|
3865
3893
|
try {
|
|
3866
3894
|
i.push(b.innerText), new Function(b.innerText)();
|
|
3867
3895
|
} catch (U) {
|
|
@@ -3880,13 +3908,13 @@ function eo(e) {
|
|
|
3880
3908
|
}
|
|
3881
3909
|
);
|
|
3882
3910
|
}
|
|
3883
|
-
const
|
|
3911
|
+
const ro = {
|
|
3884
3912
|
name: "Fragment",
|
|
3885
3913
|
static: !0,
|
|
3886
3914
|
hidden: !0,
|
|
3887
3915
|
canHaveChildren: !0,
|
|
3888
3916
|
noWrap: !0
|
|
3889
|
-
},
|
|
3917
|
+
}, io = {
|
|
3890
3918
|
name: "Image",
|
|
3891
3919
|
static: !0,
|
|
3892
3920
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -3908,13 +3936,13 @@ const to = {
|
|
|
3908
3936
|
e.delete("srcset"), e.delete("noWebp");
|
|
3909
3937
|
function r(s, u = 6e4) {
|
|
3910
3938
|
return new Promise((f, m) => {
|
|
3911
|
-
const
|
|
3939
|
+
const v = document.createElement("img");
|
|
3912
3940
|
let b = !1;
|
|
3913
|
-
|
|
3914
|
-
b = !0, f(
|
|
3915
|
-
},
|
|
3941
|
+
v.onload = () => {
|
|
3942
|
+
b = !0, f(v);
|
|
3943
|
+
}, v.addEventListener("error", (U) => {
|
|
3916
3944
|
console.warn("Image load failed", U.error), m(U.error);
|
|
3917
|
-
}),
|
|
3945
|
+
}), v.src = s, setTimeout(() => {
|
|
3918
3946
|
b || m(new Error("Image load timed out"));
|
|
3919
3947
|
}, u);
|
|
3920
3948
|
});
|
|
@@ -3986,7 +4014,7 @@ const to = {
|
|
|
3986
4014
|
advanced: !0,
|
|
3987
4015
|
defaultValue: 0.7041
|
|
3988
4016
|
}]
|
|
3989
|
-
},
|
|
4017
|
+
}, oo = {
|
|
3990
4018
|
// friendlyName?
|
|
3991
4019
|
name: "Raw:Img",
|
|
3992
4020
|
hideFromInsertMenu: !0,
|
|
@@ -4001,7 +4029,7 @@ const to = {
|
|
|
4001
4029
|
noWrap: !0,
|
|
4002
4030
|
static: !0
|
|
4003
4031
|
};
|
|
4004
|
-
function
|
|
4032
|
+
function ao(e) {
|
|
4005
4033
|
return /* @__PURE__ */ p(
|
|
4006
4034
|
"img",
|
|
4007
4035
|
{
|
|
@@ -4016,7 +4044,7 @@ function io(e) {
|
|
|
4016
4044
|
je() && e.imgSrc || "default-key"
|
|
4017
4045
|
);
|
|
4018
4046
|
}
|
|
4019
|
-
const
|
|
4047
|
+
const so = {
|
|
4020
4048
|
name: "Core:Section",
|
|
4021
4049
|
static: !0,
|
|
4022
4050
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -4055,7 +4083,7 @@ const oo = {
|
|
|
4055
4083
|
}
|
|
4056
4084
|
}
|
|
4057
4085
|
}]
|
|
4058
|
-
},
|
|
4086
|
+
}, lo = {
|
|
4059
4087
|
name: "Slot",
|
|
4060
4088
|
isRSC: !0,
|
|
4061
4089
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -4069,7 +4097,7 @@ const oo = {
|
|
|
4069
4097
|
defaultValue: "children"
|
|
4070
4098
|
}]
|
|
4071
4099
|
};
|
|
4072
|
-
function
|
|
4100
|
+
function co(e) {
|
|
4073
4101
|
var t, r, n;
|
|
4074
4102
|
return /* @__PURE__ */ p(
|
|
4075
4103
|
"div",
|
|
@@ -4081,7 +4109,7 @@ function so(e) {
|
|
|
4081
4109
|
"builder-slot": e.name
|
|
4082
4110
|
},
|
|
4083
4111
|
children: /* @__PURE__ */ p(
|
|
4084
|
-
|
|
4112
|
+
kt,
|
|
4085
4113
|
{
|
|
4086
4114
|
parent: (r = e.builderContext.context) == null ? void 0 : r.symbolId,
|
|
4087
4115
|
path: `symbol.data.${e.name}`,
|
|
@@ -4092,7 +4120,7 @@ function so(e) {
|
|
|
4092
4120
|
}
|
|
4093
4121
|
);
|
|
4094
4122
|
}
|
|
4095
|
-
const
|
|
4123
|
+
const uo = {
|
|
4096
4124
|
name: "Symbol",
|
|
4097
4125
|
noWrap: !0,
|
|
4098
4126
|
static: !0,
|
|
@@ -4125,7 +4153,7 @@ const lo = {
|
|
|
4125
4153
|
hideFromUI: !0,
|
|
4126
4154
|
type: "boolean"
|
|
4127
4155
|
}]
|
|
4128
|
-
},
|
|
4156
|
+
}, fo = {
|
|
4129
4157
|
name: "Text",
|
|
4130
4158
|
static: !0,
|
|
4131
4159
|
isRSC: !0,
|
|
@@ -4144,7 +4172,7 @@ const lo = {
|
|
|
4144
4172
|
textAlign: "center"
|
|
4145
4173
|
}
|
|
4146
4174
|
};
|
|
4147
|
-
function
|
|
4175
|
+
function ho(e) {
|
|
4148
4176
|
var t;
|
|
4149
4177
|
return /* @__PURE__ */ p(
|
|
4150
4178
|
"div",
|
|
@@ -4157,7 +4185,7 @@ function uo(e) {
|
|
|
4157
4185
|
}
|
|
4158
4186
|
);
|
|
4159
4187
|
}
|
|
4160
|
-
const
|
|
4188
|
+
const po = {
|
|
4161
4189
|
name: "Video",
|
|
4162
4190
|
canHaveChildren: !0,
|
|
4163
4191
|
defaultStyles: {
|
|
@@ -4239,7 +4267,7 @@ const fo = {
|
|
|
4239
4267
|
advanced: !0
|
|
4240
4268
|
}]
|
|
4241
4269
|
};
|
|
4242
|
-
function
|
|
4270
|
+
function mo(e) {
|
|
4243
4271
|
var n, i, a, s, u, f, m;
|
|
4244
4272
|
function t() {
|
|
4245
4273
|
return {
|
|
@@ -4341,42 +4369,42 @@ function ho(e) {
|
|
|
4341
4369
|
);
|
|
4342
4370
|
}
|
|
4343
4371
|
const nr = () => [{
|
|
4344
|
-
component:
|
|
4345
|
-
...zi
|
|
4346
|
-
}, {
|
|
4347
|
-
component: Wi,
|
|
4348
|
-
...Xi
|
|
4349
|
-
}, {
|
|
4350
|
-
component: Ji,
|
|
4372
|
+
component: Qr,
|
|
4351
4373
|
...Yi
|
|
4352
4374
|
}, {
|
|
4353
|
-
component:
|
|
4354
|
-
...
|
|
4375
|
+
component: $i,
|
|
4376
|
+
...Ji
|
|
4355
4377
|
}, {
|
|
4356
|
-
component:
|
|
4357
|
-
...
|
|
4378
|
+
component: Zi,
|
|
4379
|
+
...qi
|
|
4358
4380
|
}, {
|
|
4359
|
-
component:
|
|
4360
|
-
...
|
|
4381
|
+
component: no,
|
|
4382
|
+
...Qi
|
|
4361
4383
|
}, {
|
|
4362
|
-
component:
|
|
4384
|
+
component: Hi,
|
|
4363
4385
|
...ro
|
|
4364
4386
|
}, {
|
|
4365
|
-
component:
|
|
4387
|
+
component: zi,
|
|
4388
|
+
...io
|
|
4389
|
+
}, {
|
|
4390
|
+
component: ao,
|
|
4366
4391
|
...oo
|
|
4367
4392
|
}, {
|
|
4368
|
-
component:
|
|
4369
|
-
...
|
|
4393
|
+
component: Xi,
|
|
4394
|
+
...so
|
|
4370
4395
|
}, {
|
|
4371
|
-
component:
|
|
4372
|
-
...
|
|
4396
|
+
component: Do,
|
|
4397
|
+
...uo
|
|
4373
4398
|
}, {
|
|
4374
4399
|
component: ho,
|
|
4375
4400
|
...fo
|
|
4376
4401
|
}, {
|
|
4377
|
-
component:
|
|
4378
|
-
...
|
|
4379
|
-
}
|
|
4402
|
+
component: mo,
|
|
4403
|
+
...po
|
|
4404
|
+
}, {
|
|
4405
|
+
component: co,
|
|
4406
|
+
...lo
|
|
4407
|
+
}], go = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4380
4408
|
function getAndSetVariantId() {
|
|
4381
4409
|
function setCookie(name, value, days) {
|
|
4382
4410
|
let expires = '';
|
|
@@ -4432,7 +4460,7 @@ const nr = () => [{
|
|
|
4432
4460
|
}).join('');
|
|
4433
4461
|
styleEl.innerHTML = newStyleStr;
|
|
4434
4462
|
}
|
|
4435
|
-
}`,
|
|
4463
|
+
}`, vo = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4436
4464
|
if (!navigator.cookieEnabled) {
|
|
4437
4465
|
return;
|
|
4438
4466
|
}
|
|
@@ -4466,24 +4494,24 @@ const nr = () => [{
|
|
|
4466
4494
|
thisScriptEl?.remove();
|
|
4467
4495
|
}
|
|
4468
4496
|
return;
|
|
4469
|
-
}`,
|
|
4497
|
+
}`, wr = "builderIoAbTest", Cr = "builderIoRenderContent", pt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4470
4498
|
...t,
|
|
4471
4499
|
testVariationId: t.id,
|
|
4472
4500
|
id: e == null ? void 0 : e.id
|
|
4473
|
-
})),
|
|
4501
|
+
})), yo = ({
|
|
4474
4502
|
canTrack: e,
|
|
4475
4503
|
content: t
|
|
4476
|
-
}) => !(!(pt(t).length > 0) || !e || Ae()),
|
|
4477
|
-
window.${
|
|
4478
|
-
window.${
|
|
4479
|
-
`,
|
|
4480
|
-
window.${
|
|
4481
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4482
|
-
)`,
|
|
4504
|
+
}) => !(!(pt(t).length > 0) || !e || Ae()), bo = (e) => e === "react" || e === "reactNative", Er = bo(We), xo = () => `
|
|
4505
|
+
window.${wr} = ${go}
|
|
4506
|
+
window.${Cr} = ${vo}
|
|
4507
|
+
`, So = (e, t) => `
|
|
4508
|
+
window.${wr}(
|
|
4509
|
+
"${t}",${JSON.stringify(e)}, ${Er}
|
|
4510
|
+
)`, ko = ({
|
|
4483
4511
|
contentId: e,
|
|
4484
4512
|
variationId: t
|
|
4485
|
-
}) => `window.${
|
|
4486
|
-
"${t}", "${e}", ${
|
|
4513
|
+
}) => `window.${Cr}(
|
|
4514
|
+
"${t}", "${e}", ${Er}
|
|
4487
4515
|
)`;
|
|
4488
4516
|
function Jt(e) {
|
|
4489
4517
|
return /* @__PURE__ */ p(
|
|
@@ -4494,15 +4522,15 @@ function Jt(e) {
|
|
|
4494
4522
|
}
|
|
4495
4523
|
);
|
|
4496
4524
|
}
|
|
4497
|
-
const
|
|
4498
|
-
function
|
|
4525
|
+
const wo = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4526
|
+
function Ir(e, t) {
|
|
4499
4527
|
const r = new URL(t.origin), n = r.hostname;
|
|
4500
|
-
return (e ||
|
|
4528
|
+
return (e || wo).findIndex((i) => i.startsWith("*.") ? n.endsWith(i.slice(1)) : i === n) > -1;
|
|
4501
4529
|
}
|
|
4502
4530
|
function rr(e) {
|
|
4503
4531
|
return Math.round(e * 1e3) / 1e3;
|
|
4504
4532
|
}
|
|
4505
|
-
const
|
|
4533
|
+
const Co = (e, t, r = !0) => {
|
|
4506
4534
|
if (!(e instanceof HTMLElement))
|
|
4507
4535
|
return null;
|
|
4508
4536
|
let n = r ? e : e.parentElement;
|
|
@@ -4513,7 +4541,7 @@ const ko = (e, t, r = !0) => {
|
|
|
4513
4541
|
return n;
|
|
4514
4542
|
} while (n = n.parentElement);
|
|
4515
4543
|
return null;
|
|
4516
|
-
},
|
|
4544
|
+
}, Eo = (e) => Co(e, (t) => {
|
|
4517
4545
|
const r = t.getAttribute("builder-id") || t.id;
|
|
4518
4546
|
return (r == null ? void 0 : r.indexOf("builder-")) === 0;
|
|
4519
4547
|
}), ir = ({
|
|
@@ -4525,8 +4553,8 @@ const ko = (e, t, r = !0) => {
|
|
|
4525
4553
|
x: a,
|
|
4526
4554
|
y: s
|
|
4527
4555
|
};
|
|
4528
|
-
},
|
|
4529
|
-
const t = e.target, r = t &&
|
|
4556
|
+
}, Io = (e) => {
|
|
4557
|
+
const t = e.target, r = t && Eo(t), n = (r == null ? void 0 : r.getAttribute("builder-id")) || (r == null ? void 0 : r.id);
|
|
4530
4558
|
return {
|
|
4531
4559
|
targetBuilderElement: n || void 0,
|
|
4532
4560
|
metadata: {
|
|
@@ -4541,8 +4569,8 @@ const ko = (e, t, r = !0) => {
|
|
|
4541
4569
|
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4542
4570
|
}
|
|
4543
4571
|
};
|
|
4544
|
-
},
|
|
4545
|
-
|
|
4572
|
+
}, To = "0.12.6", jo = () => {
|
|
4573
|
+
Gr("insertMenu", {
|
|
4546
4574
|
name: "_default",
|
|
4547
4575
|
default: !0,
|
|
4548
4576
|
items: [{
|
|
@@ -4565,13 +4593,13 @@ const ko = (e, t, r = !0) => {
|
|
|
4565
4593
|
});
|
|
4566
4594
|
};
|
|
4567
4595
|
let or = !1;
|
|
4568
|
-
const
|
|
4596
|
+
const Ao = (e = {}) => {
|
|
4569
4597
|
var t, r;
|
|
4570
4598
|
or || (or = !0, Ae() && ((t = window.parent) == null || t.postMessage({
|
|
4571
4599
|
type: "builder.sdkInfo",
|
|
4572
4600
|
data: {
|
|
4573
|
-
target:
|
|
4574
|
-
version:
|
|
4601
|
+
target: We,
|
|
4602
|
+
version: To,
|
|
4575
4603
|
supportsPatchUpdates: !1,
|
|
4576
4604
|
// Supports builder-model="..." attribute which is needed to
|
|
4577
4605
|
// scope our '+ add block' button styling
|
|
@@ -4585,7 +4613,7 @@ const To = (e = {}) => {
|
|
|
4585
4613
|
}
|
|
4586
4614
|
}, "*"), window.addEventListener("message", (n) => {
|
|
4587
4615
|
var a, s;
|
|
4588
|
-
if (!
|
|
4616
|
+
if (!Ir(e.trustedHosts, n))
|
|
4589
4617
|
return;
|
|
4590
4618
|
const {
|
|
4591
4619
|
data: i
|
|
@@ -4593,10 +4621,10 @@ const To = (e = {}) => {
|
|
|
4593
4621
|
if (i != null && i.type)
|
|
4594
4622
|
switch (i.type) {
|
|
4595
4623
|
case "builder.evaluate": {
|
|
4596
|
-
const u = i.data.text, f = i.data.arguments || [], m = i.data.id,
|
|
4624
|
+
const u = i.data.text, f = i.data.arguments || [], m = i.data.id, v = new Function(u);
|
|
4597
4625
|
let b, U = null;
|
|
4598
4626
|
try {
|
|
4599
|
-
b =
|
|
4627
|
+
b = v.apply(null, f);
|
|
4600
4628
|
} catch (N) {
|
|
4601
4629
|
U = N;
|
|
4602
4630
|
}
|
|
@@ -4627,8 +4655,8 @@ const To = (e = {}) => {
|
|
|
4627
4655
|
}
|
|
4628
4656
|
})));
|
|
4629
4657
|
};
|
|
4630
|
-
function
|
|
4631
|
-
var re, E, we,
|
|
4658
|
+
function Ro(e) {
|
|
4659
|
+
var re, E, we, W, Ce, ue, K;
|
|
4632
4660
|
const t = qt(null), [r, n] = V(() => 0);
|
|
4633
4661
|
V(() => !0);
|
|
4634
4662
|
function i(w) {
|
|
@@ -4668,9 +4696,9 @@ function jo(e) {
|
|
|
4668
4696
|
), [f, m] = V(
|
|
4669
4697
|
() => e.contentWrapper || "div"
|
|
4670
4698
|
);
|
|
4671
|
-
function
|
|
4699
|
+
function v(w) {
|
|
4672
4700
|
var j;
|
|
4673
|
-
if (!
|
|
4701
|
+
if (!Ir(e.trustedHosts, w))
|
|
4674
4702
|
return;
|
|
4675
4703
|
const { data: T } = w;
|
|
4676
4704
|
if (T)
|
|
@@ -4711,11 +4739,11 @@ function jo(e) {
|
|
|
4711
4739
|
const M = (T = e.builderContextSignal.content) == null ? void 0 : T.testVariationId, D = (j = e.builderContextSignal.content) == null ? void 0 : j.id;
|
|
4712
4740
|
Hn({
|
|
4713
4741
|
type: "click",
|
|
4714
|
-
canTrack:
|
|
4742
|
+
canTrack: gt(e.canTrack),
|
|
4715
4743
|
contentId: D,
|
|
4716
4744
|
apiKey: e.apiKey,
|
|
4717
4745
|
variationId: M !== D ? M : void 0,
|
|
4718
|
-
...
|
|
4746
|
+
...Io(w),
|
|
4719
4747
|
unique: !I
|
|
4720
4748
|
});
|
|
4721
4749
|
}
|
|
@@ -4733,8 +4761,8 @@ function jo(e) {
|
|
|
4733
4761
|
})
|
|
4734
4762
|
);
|
|
4735
4763
|
}
|
|
4736
|
-
function
|
|
4737
|
-
|
|
4764
|
+
function y({ url: w, key: T }) {
|
|
4765
|
+
Yr(w).then((j) => j.json()).then((j) => {
|
|
4738
4766
|
var D, G;
|
|
4739
4767
|
const M = {
|
|
4740
4768
|
...e.builderContextSignal.rootState,
|
|
@@ -4745,13 +4773,13 @@ function jo(e) {
|
|
|
4745
4773
|
console.error("error fetching dynamic data", w, j);
|
|
4746
4774
|
});
|
|
4747
4775
|
}
|
|
4748
|
-
function
|
|
4776
|
+
function L() {
|
|
4749
4777
|
var T, j, M;
|
|
4750
4778
|
const w = (M = (j = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : j.httpRequests) != null ? M : {};
|
|
4751
4779
|
Object.entries(w).forEach(([D, G]) => {
|
|
4752
4780
|
if (G && (!U[D] || je())) {
|
|
4753
4781
|
const Ee = Y(G);
|
|
4754
|
-
|
|
4782
|
+
y({
|
|
4755
4783
|
url: Ee,
|
|
4756
4784
|
key: D
|
|
4757
4785
|
});
|
|
@@ -4774,7 +4802,7 @@ function jo(e) {
|
|
|
4774
4802
|
);
|
|
4775
4803
|
}
|
|
4776
4804
|
function ne(w) {
|
|
4777
|
-
n(r + 1), window.addEventListener("message",
|
|
4805
|
+
n(r + 1), window.addEventListener("message", v), jo(), Ao({
|
|
4778
4806
|
...e.locale ? {
|
|
4779
4807
|
locale: e.locale
|
|
4780
4808
|
} : {},
|
|
@@ -4791,7 +4819,7 @@ function jo(e) {
|
|
|
4791
4819
|
e.builderContextSignal.componentInfos
|
|
4792
4820
|
).forEach((T) => {
|
|
4793
4821
|
var M;
|
|
4794
|
-
const j =
|
|
4822
|
+
const j = Xr(T);
|
|
4795
4823
|
(M = window.parent) == null || M.postMessage(j, "*");
|
|
4796
4824
|
}), window.addEventListener(
|
|
4797
4825
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -4837,7 +4865,7 @@ function jo(e) {
|
|
|
4837
4865
|
}, []), Q(() => {
|
|
4838
4866
|
var w, T;
|
|
4839
4867
|
if (Ae()) {
|
|
4840
|
-
if (je() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content &&
|
|
4868
|
+
if (je() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && gt(e.canTrack)) {
|
|
4841
4869
|
const M = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, D = (T = e.builderContextSignal.content) == null ? void 0 : T.id, G = e.apiKey;
|
|
4842
4870
|
Hn({
|
|
4843
4871
|
type: "impression",
|
|
@@ -4847,23 +4875,20 @@ function jo(e) {
|
|
|
4847
4875
|
variationId: M !== D ? M : void 0
|
|
4848
4876
|
});
|
|
4849
4877
|
}
|
|
4850
|
-
|
|
4878
|
+
zr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
4851
4879
|
}
|
|
4852
4880
|
}, []), Q(() => {
|
|
4853
|
-
e.apiKey ||
|
|
4881
|
+
e.apiKey || Re.error(
|
|
4854
4882
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4855
|
-
), b(),
|
|
4883
|
+
), b(), L(), Z();
|
|
4856
4884
|
}, []), Q(() => {
|
|
4857
4885
|
e.content && a(e.content);
|
|
4858
4886
|
}, [e.content]), Q(() => {
|
|
4859
4887
|
}, [s]), Q(() => {
|
|
4860
4888
|
b();
|
|
4861
|
-
}, [
|
|
4862
|
-
(
|
|
4863
|
-
|
|
4864
|
-
]), Q(() => {
|
|
4865
|
-
W();
|
|
4866
|
-
}, [(L = (we = e.builderContextSignal.content) == null ? void 0 : we.data) == null ? void 0 : L.httpRequests]), Q(() => {
|
|
4889
|
+
}, [(E = (re = e.builderContextSignal.content) == null ? void 0 : re.data) == null ? void 0 : E.jsCode]), Q(() => {
|
|
4890
|
+
L();
|
|
4891
|
+
}, [(W = (we = e.builderContextSignal.content) == null ? void 0 : we.data) == null ? void 0 : W.httpRequests]), Q(() => {
|
|
4867
4892
|
Z();
|
|
4868
4893
|
}, [e.builderContextSignal.rootState]), Q(() => {
|
|
4869
4894
|
e.data && i(e.data);
|
|
@@ -4872,11 +4897,11 @@ function jo(e) {
|
|
|
4872
4897
|
locale: e.locale
|
|
4873
4898
|
});
|
|
4874
4899
|
}, [e.locale]), Q(() => () => {
|
|
4875
|
-
Ae() && (window.removeEventListener("message",
|
|
4900
|
+
Ae() && (window.removeEventListener("message", v), window.removeEventListener(
|
|
4876
4901
|
"builder:component:stateChangeListenerActivated",
|
|
4877
4902
|
Z
|
|
4878
4903
|
));
|
|
4879
|
-
}, []), /* @__PURE__ */ p(en.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */
|
|
4904
|
+
}, []), /* @__PURE__ */ p(en.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ Hr(
|
|
4880
4905
|
f,
|
|
4881
4906
|
{
|
|
4882
4907
|
key: r,
|
|
@@ -4894,7 +4919,7 @@ function jo(e) {
|
|
|
4894
4919
|
e.children
|
|
4895
4920
|
) }) : null });
|
|
4896
4921
|
}
|
|
4897
|
-
const
|
|
4922
|
+
const Oo = (e) => {
|
|
4898
4923
|
var a, s;
|
|
4899
4924
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], n = (s = e.fileUrl) != null ? s : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
4900
4925
|
let i = "";
|
|
@@ -4920,23 +4945,23 @@ font-weight: ${u};
|
|
|
4920
4945
|
`.trim());
|
|
4921
4946
|
}
|
|
4922
4947
|
return i;
|
|
4923
|
-
},
|
|
4948
|
+
}, Po = ({
|
|
4924
4949
|
customFonts: e
|
|
4925
4950
|
}) => {
|
|
4926
4951
|
var t;
|
|
4927
|
-
return ((t = e == null ? void 0 : e.map((r) =>
|
|
4928
|
-
},
|
|
4952
|
+
return ((t = e == null ? void 0 : e.map((r) => Oo(r))) == null ? void 0 : t.join(" ")) || "";
|
|
4953
|
+
}, No = ({
|
|
4929
4954
|
cssCode: e,
|
|
4930
4955
|
contentId: t
|
|
4931
4956
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4932
|
-
function
|
|
4957
|
+
function Mo(e) {
|
|
4933
4958
|
const [t, r] = V(
|
|
4934
4959
|
() => `
|
|
4935
|
-
${
|
|
4960
|
+
${No({
|
|
4936
4961
|
cssCode: e.cssCode,
|
|
4937
4962
|
contentId: e.contentId
|
|
4938
4963
|
})}
|
|
4939
|
-
${
|
|
4964
|
+
${Po({
|
|
4940
4965
|
customFonts: e.customFonts
|
|
4941
4966
|
})}
|
|
4942
4967
|
|
|
@@ -4958,9 +4983,9 @@ ${Ro({
|
|
|
4958
4983
|
}
|
|
4959
4984
|
`.trim()
|
|
4960
4985
|
);
|
|
4961
|
-
return /* @__PURE__ */ p(
|
|
4986
|
+
return /* @__PURE__ */ p(xt, { styles: t });
|
|
4962
4987
|
}
|
|
4963
|
-
const
|
|
4988
|
+
const Bo = ({
|
|
4964
4989
|
content: e,
|
|
4965
4990
|
data: t,
|
|
4966
4991
|
locale: r
|
|
@@ -4977,7 +5002,7 @@ const No = ({
|
|
|
4977
5002
|
locale: r
|
|
4978
5003
|
} : {}
|
|
4979
5004
|
};
|
|
4980
|
-
},
|
|
5005
|
+
}, Fo = ({
|
|
4981
5006
|
content: e,
|
|
4982
5007
|
data: t
|
|
4983
5008
|
}) => e ? {
|
|
@@ -4989,11 +5014,11 @@ const No = ({
|
|
|
4989
5014
|
meta: e == null ? void 0 : e.meta
|
|
4990
5015
|
} : void 0;
|
|
4991
5016
|
function ar(e) {
|
|
4992
|
-
var f, m,
|
|
5017
|
+
var f, m, v, b, U, N, I;
|
|
4993
5018
|
const [t, r] = V(
|
|
4994
5019
|
() => {
|
|
4995
5020
|
var P, $;
|
|
4996
|
-
return
|
|
5021
|
+
return ko({
|
|
4997
5022
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4998
5023
|
variationId: (P = e.content) == null ? void 0 : P.testVariationId,
|
|
4999
5024
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -5028,12 +5053,12 @@ function ar(e) {
|
|
|
5028
5053
|
{}
|
|
5029
5054
|
)
|
|
5030
5055
|
), [s, u] = V(() => ({
|
|
5031
|
-
content:
|
|
5056
|
+
content: Fo({
|
|
5032
5057
|
content: e.content,
|
|
5033
5058
|
data: e.data
|
|
5034
5059
|
}),
|
|
5035
5060
|
localState: void 0,
|
|
5036
|
-
rootState:
|
|
5061
|
+
rootState: Bo({
|
|
5037
5062
|
content: e.content,
|
|
5038
5063
|
data: e.data,
|
|
5039
5064
|
locale: e.locale
|
|
@@ -5069,7 +5094,7 @@ function ar(e) {
|
|
|
5069
5094
|
registeredComponents: i
|
|
5070
5095
|
},
|
|
5071
5096
|
children: /* @__PURE__ */ ce(
|
|
5072
|
-
|
|
5097
|
+
Ro,
|
|
5073
5098
|
{
|
|
5074
5099
|
content: e.content,
|
|
5075
5100
|
data: e.data,
|
|
@@ -5090,15 +5115,15 @@ function ar(e) {
|
|
|
5090
5115
|
children: [
|
|
5091
5116
|
e.isSsrAbTest ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(Jt, { scriptStr: t }) }) : null,
|
|
5092
5117
|
/* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(
|
|
5093
|
-
|
|
5118
|
+
Mo,
|
|
5094
5119
|
{
|
|
5095
5120
|
contentId: (f = s.content) == null ? void 0 : f.id,
|
|
5096
|
-
cssCode: (
|
|
5121
|
+
cssCode: (v = (m = s.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
|
|
5097
5122
|
customFonts: (U = (b = s.content) == null ? void 0 : b.data) == null ? void 0 : U.customFonts
|
|
5098
5123
|
}
|
|
5099
5124
|
) }),
|
|
5100
5125
|
/* @__PURE__ */ p(
|
|
5101
|
-
|
|
5126
|
+
kt,
|
|
5102
5127
|
{
|
|
5103
5128
|
blocks: (I = (N = s.content) == null ? void 0 : N.data) == null ? void 0 : I.blocks,
|
|
5104
5129
|
context: s,
|
|
@@ -5112,17 +5137,17 @@ function ar(e) {
|
|
|
5112
5137
|
}
|
|
5113
5138
|
);
|
|
5114
5139
|
}
|
|
5115
|
-
function
|
|
5140
|
+
function Tr(e) {
|
|
5116
5141
|
var s, u;
|
|
5117
5142
|
const [t, r] = V(
|
|
5118
|
-
() =>
|
|
5119
|
-
canTrack:
|
|
5143
|
+
() => yo({
|
|
5144
|
+
canTrack: gt(e.canTrack),
|
|
5120
5145
|
content: e.content
|
|
5121
5146
|
})
|
|
5122
5147
|
);
|
|
5123
5148
|
function n() {
|
|
5124
5149
|
var f;
|
|
5125
|
-
return
|
|
5150
|
+
return So(
|
|
5126
5151
|
pt(e.content).map((m) => ({
|
|
5127
5152
|
id: m.testVariationId,
|
|
5128
5153
|
testRatio: m.testRatio
|
|
@@ -5138,17 +5163,17 @@ function Ir(e) {
|
|
|
5138
5163
|
return t ? {
|
|
5139
5164
|
...e.content,
|
|
5140
5165
|
testVariationId: (f = e.content) == null ? void 0 : f.id
|
|
5141
|
-
} :
|
|
5166
|
+
} : Jr({
|
|
5142
5167
|
item: e.content,
|
|
5143
|
-
canTrack:
|
|
5168
|
+
canTrack: gt(e.canTrack)
|
|
5144
5169
|
});
|
|
5145
5170
|
}
|
|
5146
5171
|
return Q(() => {
|
|
5147
5172
|
}, []), /* @__PURE__ */ ce(F, { children: [
|
|
5148
|
-
!e.__isNestedRender &&
|
|
5173
|
+
!e.__isNestedRender && We !== "reactNative" ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(Jt, { scriptStr: xo() }) }) : null,
|
|
5149
5174
|
t ? /* @__PURE__ */ ce(F, { children: [
|
|
5150
5175
|
/* @__PURE__ */ p(
|
|
5151
|
-
|
|
5176
|
+
xt,
|
|
5152
5177
|
{
|
|
5153
5178
|
id: `variants-styles-${(s = e.content) == null ? void 0 : s.id}`,
|
|
5154
5179
|
styles: i()
|
|
@@ -5207,7 +5232,7 @@ function Ir(e) {
|
|
|
5207
5232
|
)
|
|
5208
5233
|
] });
|
|
5209
5234
|
}
|
|
5210
|
-
const
|
|
5235
|
+
const Uo = async ({
|
|
5211
5236
|
builderContextValue: e,
|
|
5212
5237
|
symbol: t
|
|
5213
5238
|
}) => {
|
|
@@ -5223,18 +5248,18 @@ const Bo = async ({
|
|
|
5223
5248
|
}
|
|
5224
5249
|
}
|
|
5225
5250
|
}).catch((r) => {
|
|
5226
|
-
|
|
5251
|
+
Re.error("Could not fetch symbol content: ", r);
|
|
5227
5252
|
});
|
|
5228
5253
|
};
|
|
5229
|
-
function
|
|
5254
|
+
function Do(e) {
|
|
5230
5255
|
var a, s, u, f;
|
|
5231
5256
|
function t() {
|
|
5232
|
-
var m,
|
|
5257
|
+
var m, v;
|
|
5233
5258
|
return [
|
|
5234
5259
|
e.attributes[tt()],
|
|
5235
5260
|
"builder-symbol",
|
|
5236
5261
|
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
5237
|
-
(
|
|
5262
|
+
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5238
5263
|
].filter(Boolean).join(" ");
|
|
5239
5264
|
}
|
|
5240
5265
|
const [r, n] = V(() => {
|
|
@@ -5242,7 +5267,7 @@ function Fo(e) {
|
|
|
5242
5267
|
return (m = e.symbol) == null ? void 0 : m.content;
|
|
5243
5268
|
});
|
|
5244
5269
|
function i() {
|
|
5245
|
-
r ||
|
|
5270
|
+
r || Uo({
|
|
5246
5271
|
symbol: e.symbol,
|
|
5247
5272
|
builderContextValue: e.builderContext
|
|
5248
5273
|
}).then((m) => {
|
|
@@ -5253,7 +5278,7 @@ function Fo(e) {
|
|
|
5253
5278
|
}, []), Q(() => {
|
|
5254
5279
|
i();
|
|
5255
5280
|
}, [e.symbol]), /* @__PURE__ */ p("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ p(
|
|
5256
|
-
|
|
5281
|
+
Tr,
|
|
5257
5282
|
{
|
|
5258
5283
|
__isNestedRender: !0,
|
|
5259
5284
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5274,31 +5299,31 @@ function Fo(e) {
|
|
|
5274
5299
|
}
|
|
5275
5300
|
) });
|
|
5276
5301
|
}
|
|
5277
|
-
const
|
|
5302
|
+
const Vo = kt, $o = Tr;
|
|
5278
5303
|
export {
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5304
|
+
kt as Blocks,
|
|
5305
|
+
Qr as Button,
|
|
5306
|
+
$i as Columns,
|
|
5307
|
+
Tr as Content,
|
|
5308
|
+
Hi as Fragment,
|
|
5309
|
+
zi as Image,
|
|
5310
|
+
Vo as RenderBlocks,
|
|
5311
|
+
$o as RenderContent,
|
|
5312
|
+
Xi as Section,
|
|
5313
|
+
Do as Symbol,
|
|
5314
|
+
ho as Text,
|
|
5315
|
+
mo as Video,
|
|
5316
|
+
Go as _processContentResult,
|
|
5317
|
+
Xr as createRegisterComponentMessage,
|
|
5318
|
+
zo as fetchBuilderProps,
|
|
5319
|
+
Xo as fetchEntries,
|
|
5295
5320
|
lr as fetchOneEntry,
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5321
|
+
Yo as getAllContent,
|
|
5322
|
+
Jo as getBuilderSearchParams,
|
|
5323
|
+
qo as getContent,
|
|
5299
5324
|
je as isEditing,
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5325
|
+
zr as isPreviewing,
|
|
5326
|
+
Gr as register,
|
|
5327
|
+
Zo as setEditorSettings,
|
|
5328
|
+
Qo as track
|
|
5304
5329
|
};
|