@builder.io/sdk-react-nextjs 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +24 -24
- package/lib/browser/blocks-exports.mjs +451 -492
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-7f981733.js → server-entry-86458005.js} +1 -1
- package/lib/browser/{server-entry-f64a4c2d.cjs → server-entry-d8d62ced.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +36 -36
- package/lib/edge/blocks-exports.mjs +770 -811
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{server-entry-7f981733.js → server-entry-86458005.js} +1 -1
- package/lib/edge/{server-entry-f64a4c2d.cjs → server-entry-d8d62ced.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +24 -24
- package/lib/node/blocks-exports.mjs +442 -483
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-3f0a39c5.js → node-runtime-423addf8.js} +1 -1
- package/lib/node/{node-runtime-6f522a33.cjs → node-runtime-6421aefe.cjs} +1 -1
- package/lib/node/{server-entry-46bde4f0.js → server-entry-1644208f.js} +1 -1
- package/lib/node/{server-entry-68c26de0.cjs → server-entry-6f84d0f2.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/cjs/components/block/block.helpers.d.ts +8 -8
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/esm/components/block/block.helpers.d.ts +8 -8
- package/types/esm/constants/sdk-version.d.ts +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { TARGET as it, isEditing as Ce, isBrowser as
|
|
7
|
-
import { useRef as
|
|
8
|
-
import { useRouter as
|
|
2
|
+
var Vr = Object.defineProperty;
|
|
3
|
+
var _r = (e, t, n) => t in e ? Vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var Kt = (e, t, n) => (_r(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as y, Fragment as K, jsxs as se } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as it, isEditing as Ce, isBrowser as De, getUserAttributes as $r, logger as ot, checkIsDefined as yt, fastClone as Zt, init as Hr, getDefaultCanTrack as vt, _track as Gn, isPreviewing as Kr, createEditorListener as Gr, fetch as zr, registerInsertMenu as Yr, setupBrowserForEditing as Xr, createRegisterComponentMessage as Jr, fetchOneEntry as lr, serializeComponentInfo as zn, handleABTestingSync as qr } from "./server-entry-86458005.js";
|
|
7
|
+
import { useRef as Qt, useState as ye, useEffect as ie, createContext as Zr } from "react";
|
|
8
|
+
import { useRouter as Qr } from "next/navigation";
|
|
9
9
|
import "lru-cache";
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
return /* @__PURE__ */
|
|
10
|
+
const ei = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ti = (e) => typeof e == "string" && ei.has(e.toLowerCase());
|
|
11
|
+
function en(e) {
|
|
12
|
+
return /* @__PURE__ */ y(K, { children: ti(e.TagName) ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ y(K, { children: typeof e.TagName == "string" ? /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
13
13
|
}
|
|
14
14
|
const et = () => {
|
|
15
15
|
switch (it) {
|
|
@@ -25,7 +25,7 @@ const et = () => {
|
|
|
25
25
|
return "class";
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
function
|
|
28
|
+
function ni(e) {
|
|
29
29
|
function t() {
|
|
30
30
|
return {
|
|
31
31
|
...e.attributes,
|
|
@@ -39,8 +39,8 @@ function ri(e) {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
|
|
42
|
+
return /* @__PURE__ */ y(
|
|
43
|
+
en,
|
|
44
44
|
{
|
|
45
45
|
attributes: t(),
|
|
46
46
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -49,14 +49,14 @@ function ri(e) {
|
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ri(e) {
|
|
53
53
|
var t;
|
|
54
54
|
return {
|
|
55
55
|
...(t = e.component) == null ? void 0 : t.options,
|
|
56
56
|
...e.options
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const cr = ({
|
|
60
60
|
builder: e,
|
|
61
61
|
context: t,
|
|
62
62
|
event: n,
|
|
@@ -68,14 +68,14 @@ const ur = ({
|
|
|
68
68
|
builder: e,
|
|
69
69
|
context: t,
|
|
70
70
|
event: n
|
|
71
|
-
}),
|
|
71
|
+
}), ii = () => ({
|
|
72
72
|
isEditing: Ce(),
|
|
73
|
-
isBrowser:
|
|
74
|
-
isServer: !
|
|
75
|
-
getUserAttributes: () =>
|
|
76
|
-
}),
|
|
73
|
+
isBrowser: De(),
|
|
74
|
+
isServer: !De(),
|
|
75
|
+
getUserAttributes: () => $r()
|
|
76
|
+
}), oi = (e, {
|
|
77
77
|
isExpression: t = !0
|
|
78
|
-
}) => /* 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,
|
|
78
|
+
}) => /* 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, ai = ({
|
|
79
79
|
code: e,
|
|
80
80
|
builder: t,
|
|
81
81
|
context: n,
|
|
@@ -84,11 +84,11 @@ const ur = ({
|
|
|
84
84
|
rootSetState: a,
|
|
85
85
|
rootState: s
|
|
86
86
|
}) => {
|
|
87
|
-
const c =
|
|
87
|
+
const c = cr({
|
|
88
88
|
builder: t,
|
|
89
89
|
context: n,
|
|
90
90
|
event: r,
|
|
91
|
-
state:
|
|
91
|
+
state: ur({
|
|
92
92
|
rootState: s,
|
|
93
93
|
localState: i,
|
|
94
94
|
rootSetState: a
|
|
@@ -96,7 +96,7 @@ const ur = ({
|
|
|
96
96
|
});
|
|
97
97
|
return new Function(...c.map(([f]) => f), e)(...c.map(([, f]) => f));
|
|
98
98
|
};
|
|
99
|
-
function
|
|
99
|
+
function ur({
|
|
100
100
|
rootState: e,
|
|
101
101
|
localState: t,
|
|
102
102
|
rootSetState: n
|
|
@@ -106,7 +106,7 @@ function dr({
|
|
|
106
106
|
if (t && i in t)
|
|
107
107
|
return t[i];
|
|
108
108
|
const a = r[i];
|
|
109
|
-
return typeof a == "object" && a !== null ?
|
|
109
|
+
return typeof a == "object" && a !== null ? ur({
|
|
110
110
|
rootState: a,
|
|
111
111
|
localState: void 0,
|
|
112
112
|
rootSetState: n ? (s) => {
|
|
@@ -121,25 +121,25 @@ function dr({
|
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
const
|
|
124
|
+
const dr = (e, t, n) => {
|
|
125
125
|
if (Object(e) !== e)
|
|
126
126
|
return e;
|
|
127
127
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
128
128
|
return r.slice(0, -1).reduce((i, a, s) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
129
129
|
};
|
|
130
|
-
var
|
|
130
|
+
var F, si = function(e) {
|
|
131
131
|
function t(o) {
|
|
132
132
|
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Wr.test(String.fromCharCode(o));
|
|
133
133
|
}
|
|
134
134
|
function n(o) {
|
|
135
|
-
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
135
|
+
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Kn.test(String.fromCharCode(o));
|
|
136
136
|
}
|
|
137
137
|
function r(o, l) {
|
|
138
138
|
for (var u = S, h = 1, A = 0; ; ) {
|
|
139
139
|
pt.lastIndex = A;
|
|
140
|
-
var
|
|
141
|
-
if (
|
|
142
|
-
++h, A =
|
|
140
|
+
var Y = pt.exec(u);
|
|
141
|
+
if (Y && Y.index < o)
|
|
142
|
+
++h, A = Y.index + Y[0].length;
|
|
143
143
|
else
|
|
144
144
|
break;
|
|
145
145
|
}
|
|
@@ -160,7 +160,7 @@ var L, li = function(e) {
|
|
|
160
160
|
this.line = Te, this.ab = d - fe;
|
|
161
161
|
}
|
|
162
162
|
function s(o, l) {
|
|
163
|
-
Re = d, R.C && (
|
|
163
|
+
Re = d, R.C && (Ot = new a()), T = o, f(), ae = l, _e = o.m;
|
|
164
164
|
}
|
|
165
165
|
function c() {
|
|
166
166
|
for (var o = d, l = R.va && R.C && new a(), u = S.charCodeAt(d += 2); d < je && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
|
|
@@ -212,9 +212,9 @@ var L, li = function(e) {
|
|
|
212
212
|
case 44:
|
|
213
213
|
return ++d, s(ke);
|
|
214
214
|
case 91:
|
|
215
|
-
return ++d, s(
|
|
215
|
+
return ++d, s(Vt);
|
|
216
216
|
case 93:
|
|
217
|
-
return ++d, s(
|
|
217
|
+
return ++d, s(_t);
|
|
218
218
|
case 123:
|
|
219
219
|
return ++d, s(Ke);
|
|
220
220
|
case 125:
|
|
@@ -225,7 +225,7 @@ var L, li = function(e) {
|
|
|
225
225
|
return ++d, s(Un);
|
|
226
226
|
case 48:
|
|
227
227
|
if (o = S.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
228
|
-
d += 2, o =
|
|
228
|
+
d += 2, o = D(16), o === null && r(z + 2, "Expected hexadecimal number"), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), s(He, o);
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
231
|
case 49:
|
|
@@ -242,7 +242,7 @@ var L, li = function(e) {
|
|
|
242
242
|
case 39:
|
|
243
243
|
d++;
|
|
244
244
|
for (var l = ""; ; ) {
|
|
245
|
-
d >= je && r(
|
|
245
|
+
d >= je && r(z, "Unterminated string constant");
|
|
246
246
|
var u = S.charCodeAt(d);
|
|
247
247
|
if (u === o) {
|
|
248
248
|
++d, s(ut, l);
|
|
@@ -297,7 +297,7 @@ var L, li = function(e) {
|
|
|
297
297
|
l += String.fromCharCode(u);
|
|
298
298
|
}
|
|
299
299
|
} else
|
|
300
|
-
u !== 13 && u !== 10 && u !== 8232 && u !== 8233 || r(
|
|
300
|
+
u !== 13 && u !== 10 && u !== 8232 && u !== 8233 || r(z, "Unterminated string constant"), l += String.fromCharCode(u), ++d;
|
|
301
301
|
}
|
|
302
302
|
return;
|
|
303
303
|
case 47:
|
|
@@ -305,41 +305,41 @@ var L, li = function(e) {
|
|
|
305
305
|
return;
|
|
306
306
|
case 37:
|
|
307
307
|
case 42:
|
|
308
|
-
S.charCodeAt(d + 1) === 61 ? m(Ae, 2) : m(
|
|
308
|
+
S.charCodeAt(d + 1) === 61 ? m(Ae, 2) : m(Mr, 1);
|
|
309
309
|
return;
|
|
310
310
|
case 124:
|
|
311
311
|
case 38:
|
|
312
|
-
l = S.charCodeAt(d + 1), l === o ? m(o === 124 ?
|
|
312
|
+
l = S.charCodeAt(d + 1), l === o ? m(o === 124 ? _n : $n, 2) : l === 61 ? m(Ae, 2) : m(o === 124 ? Ar : Rr, 1);
|
|
313
313
|
return;
|
|
314
314
|
case 94:
|
|
315
|
-
S.charCodeAt(d + 1) === 61 ? m(Ae, 2) : m(
|
|
315
|
+
S.charCodeAt(d + 1) === 61 ? m(Ae, 2) : m(jr, 1);
|
|
316
316
|
return;
|
|
317
317
|
case 43:
|
|
318
318
|
case 45:
|
|
319
|
-
l = S.charCodeAt(d + 1), l === o ? l === 45 && S.charCodeAt(d + 2) === 62 && ht.test(S.slice(Se, d)) ? (d += 3, c(), f(), b()) : m(
|
|
319
|
+
l = S.charCodeAt(d + 1), l === o ? l === 45 && S.charCodeAt(d + 2) === 62 && ht.test(S.slice(Se, d)) ? (d += 3, c(), f(), b()) : m(Tr, 2) : l === 61 ? m(Ae, 2) : m(Br, 1);
|
|
320
320
|
return;
|
|
321
321
|
case 60:
|
|
322
322
|
case 62:
|
|
323
|
-
l = S.charCodeAt(d + 1), u = 1, l === o ? (u = o === 62 && S.charCodeAt(d + 2) === 62 ? 3 : 2, S.charCodeAt(d + u) === 61 ? m(Ae, u + 1) : m(
|
|
323
|
+
l = S.charCodeAt(d + 1), u = 1, l === o ? (u = o === 62 && S.charCodeAt(d + 2) === 62 ? 3 : 2, S.charCodeAt(d + u) === 61 ? m(Ae, u + 1) : m(Nr, u)) : l === 33 && o === 60 && S.charCodeAt(d + 2) === 45 && S.charCodeAt(d + 3) === 45 ? (d += 4, c(), f(), b()) : (l === 61 && (u = S.charCodeAt(d + 2) === 61 ? 3 : 2), m(Pr, u));
|
|
324
324
|
return;
|
|
325
325
|
case 61:
|
|
326
326
|
case 33:
|
|
327
|
-
S.charCodeAt(d + 1) === 61 ? m(
|
|
327
|
+
S.charCodeAt(d + 1) === 61 ? m(Or, S.charCodeAt(d + 2) === 61 ? 3 : 2) : m(o === 61 ? Ln : Vn, 1);
|
|
328
328
|
return;
|
|
329
329
|
case 126:
|
|
330
|
-
return m(
|
|
330
|
+
return m(Vn, 1);
|
|
331
331
|
}
|
|
332
332
|
return !1;
|
|
333
333
|
}
|
|
334
334
|
function b(o) {
|
|
335
|
-
if (o ? d =
|
|
335
|
+
if (o ? d = z + 1 : z = d, R.C && (Rt = new a()), o)
|
|
336
336
|
return j();
|
|
337
337
|
if (d >= je)
|
|
338
|
-
return s(
|
|
338
|
+
return s(Bt);
|
|
339
339
|
if (o = S.charCodeAt(d), n(o) || o === 92)
|
|
340
340
|
return N();
|
|
341
341
|
if (g(o) === !1) {
|
|
342
|
-
if (o = String.fromCharCode(o), o === "\\" ||
|
|
342
|
+
if (o = String.fromCharCode(o), o === "\\" || Kn.test(o))
|
|
343
343
|
return N();
|
|
344
344
|
r(d, "Unexpected character '" + o + "'");
|
|
345
345
|
}
|
|
@@ -368,13 +368,13 @@ var L, li = function(e) {
|
|
|
368
368
|
o = S.slice(u, d), ++d, (l = $()) && !/^[gmi]*$/.test(l) && r(u, "Invalid regexp flag");
|
|
369
369
|
try {
|
|
370
370
|
var A = new RegExp(o, l);
|
|
371
|
-
} catch (
|
|
372
|
-
throw
|
|
371
|
+
} catch (Y) {
|
|
372
|
+
throw Y instanceof SyntaxError && r(u, Y.message), Y;
|
|
373
373
|
}
|
|
374
|
-
s(
|
|
374
|
+
s(vn, A);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
for (var u = d, h = 0, A = l === void 0 ? 1 / 0 : l,
|
|
376
|
+
function D(o, l) {
|
|
377
|
+
for (var u = d, h = 0, A = l === void 0 ? 1 / 0 : l, Y = 0; Y < A; ++Y) {
|
|
378
378
|
var ee = S.charCodeAt(d);
|
|
379
379
|
if (ee = 97 <= ee ? ee - 97 + 10 : 65 <= ee ? ee - 65 + 10 : 48 <= ee && 57 >= ee ? ee - 48 : 1 / 0, ee >= o)
|
|
380
380
|
break;
|
|
@@ -384,12 +384,12 @@ var L, li = function(e) {
|
|
|
384
384
|
}
|
|
385
385
|
function V(o) {
|
|
386
386
|
var l = d, u = !1, h = S.charCodeAt(d) === 48;
|
|
387
|
-
o ||
|
|
387
|
+
o || D(10) !== null || r(l, "Invalid number"), S.charCodeAt(d) === 46 && (++d, D(10), u = !0), o = S.charCodeAt(d), (o === 69 || o === 101) && (o = S.charCodeAt(++d), o !== 43 && o !== 45 || ++d, D(10) === null && r(l, "Invalid number"), u = !0), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), o = S.slice(l, d);
|
|
388
388
|
var A;
|
|
389
389
|
u ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || re ? r(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s(He, A);
|
|
390
390
|
}
|
|
391
391
|
function M(o) {
|
|
392
|
-
return o =
|
|
392
|
+
return o = D(16, o), o === null && r(z, "Bad character escape sequence"), o;
|
|
393
393
|
}
|
|
394
394
|
function $() {
|
|
395
395
|
Ne = !1;
|
|
@@ -409,103 +409,103 @@ var L, li = function(e) {
|
|
|
409
409
|
}
|
|
410
410
|
function N() {
|
|
411
411
|
var o = $(), l = Oe;
|
|
412
|
-
!Ne && Dr(o) && (l =
|
|
412
|
+
!Ne && Dr(o) && (l = Ir[o]), s(l, o);
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
|
|
414
|
+
function v() {
|
|
415
|
+
Pt = z, Se = Re, Nt = Ot, b();
|
|
416
416
|
}
|
|
417
417
|
function W(o) {
|
|
418
|
-
if (re = o, d =
|
|
418
|
+
if (re = o, d = z, R.C)
|
|
419
419
|
for (; d < fe; )
|
|
420
420
|
fe = S.lastIndexOf(`
|
|
421
421
|
`, fe - 2) + 1, --Te;
|
|
422
422
|
f(), b();
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
this.type = null, this.start =
|
|
424
|
+
function G() {
|
|
425
|
+
this.type = null, this.start = z, this.end = null;
|
|
426
426
|
}
|
|
427
427
|
function oe() {
|
|
428
|
-
this.start =
|
|
428
|
+
this.start = Rt, this.end = null, jt && (this.source = jt);
|
|
429
429
|
}
|
|
430
430
|
function _() {
|
|
431
|
-
var o = new
|
|
432
|
-
return R.C && (o.X = new oe()), R.vb && (o.sourceFile = R.vb), R.Xa && (o.j = [
|
|
431
|
+
var o = new G();
|
|
432
|
+
return R.C && (o.X = new oe()), R.vb && (o.sourceFile = R.vb), R.Xa && (o.j = [z, 0]), o;
|
|
433
433
|
}
|
|
434
434
|
function Q(o) {
|
|
435
|
-
var l = new
|
|
435
|
+
var l = new G();
|
|
436
436
|
return l.start = o.start, R.C && (l.X = new oe(), l.X.start = o.X.start), R.Xa && (l.j = [o.j[0], 0]), l;
|
|
437
437
|
}
|
|
438
438
|
function E(o, l) {
|
|
439
|
-
return o.type = l, o.end = Se, R.C && (o.X.end =
|
|
439
|
+
return o.type = l, o.end = Se, R.C && (o.X.end = Nt), R.Xa && (o.j[1] = Se), o;
|
|
440
440
|
}
|
|
441
441
|
function Ee(o) {
|
|
442
442
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
443
443
|
}
|
|
444
|
-
function
|
|
445
|
-
return T === o ? (
|
|
444
|
+
function L(o) {
|
|
445
|
+
return T === o ? (v(), !0) : !1;
|
|
446
446
|
}
|
|
447
447
|
function Ie() {
|
|
448
|
-
return !R.fc && (T ===
|
|
448
|
+
return !R.fc && (T === Bt || T === Pe || ht.test(S.slice(Se, z)));
|
|
449
449
|
}
|
|
450
450
|
function I() {
|
|
451
|
-
|
|
451
|
+
L(pe) || Ie() || P();
|
|
452
452
|
}
|
|
453
453
|
function x(o) {
|
|
454
|
-
T === o ?
|
|
454
|
+
T === o ? v() : P();
|
|
455
455
|
}
|
|
456
456
|
function P() {
|
|
457
|
-
r(
|
|
457
|
+
r(z, "Unexpected token");
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function U(o) {
|
|
460
460
|
o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"), re && o.type === "Identifier" && ft(o.name) && r(o.start, "Assigning to " + o.name + " in strict mode");
|
|
461
461
|
}
|
|
462
462
|
function B() {
|
|
463
463
|
(T === Wn || T === Ae && ae === "/=") && b(!0);
|
|
464
464
|
var o = T, l = _();
|
|
465
465
|
switch (o) {
|
|
466
|
-
case
|
|
467
|
-
case
|
|
468
|
-
|
|
469
|
-
var u = o ===
|
|
470
|
-
|
|
466
|
+
case Mt:
|
|
467
|
+
case xn:
|
|
468
|
+
v();
|
|
469
|
+
var u = o === Mt;
|
|
470
|
+
L(pe) || Ie() ? l.label = null : T !== Oe ? P() : (l.label = de(), I());
|
|
471
471
|
for (var h = 0; h < H.length; ++h) {
|
|
472
472
|
var A = H[h];
|
|
473
473
|
if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (u || A.kind === "loop") || l.label && u))
|
|
474
474
|
break;
|
|
475
475
|
}
|
|
476
476
|
return h === H.length && r(l.start, "Unsyntactic " + o.l), E(l, u ? "BreakStatement" : "ContinueStatement");
|
|
477
|
-
case
|
|
478
|
-
return
|
|
479
|
-
case
|
|
480
|
-
return
|
|
481
|
-
case
|
|
482
|
-
return
|
|
477
|
+
case Sn:
|
|
478
|
+
return v(), I(), E(l, "DebuggerStatement");
|
|
479
|
+
case Cn:
|
|
480
|
+
return v(), H.push($t), l.body = B(), H.pop(), x(Lt), l.test = J(), I(), E(l, "DoWhileStatement");
|
|
481
|
+
case In:
|
|
482
|
+
return v(), H.push($t), x(he), T === pe ? ce(l, null) : T === Wt ? (o = _(), v(), gn(o, !0), E(o, "VariableDeclaration"), o.fa.length === 1 && L(dt) ? lt(l, o) : ce(l, o)) : (o = Z(!1, !0), L(dt) ? (U(o), lt(l, o)) : ce(l, o));
|
|
483
483
|
case Dt:
|
|
484
|
-
return
|
|
484
|
+
return v(), Tt(l, !0);
|
|
485
|
+
case Tn:
|
|
486
|
+
return v(), l.test = J(), l.da = B(), l.alternate = L(wn) ? B() : null, E(l, "IfStatement");
|
|
485
487
|
case An:
|
|
486
|
-
return
|
|
487
|
-
case jn:
|
|
488
|
-
return $e || R.Ib || r(G, "'return' outside of function"), y(), U(pe) || Ie() ? l.K = null : (l.K = Z(), I()), E(l, "ReturnStatement");
|
|
488
|
+
return $e || R.Ib || r(z, "'return' outside of function"), v(), L(pe) || Ie() ? l.K = null : (l.K = Z(), I()), E(l, "ReturnStatement");
|
|
489
489
|
case Ut:
|
|
490
|
-
for (
|
|
491
|
-
T === Ft || T ===
|
|
492
|
-
return h && E(h, "SwitchCase"),
|
|
490
|
+
for (v(), l.Qb = J(), l.tb = [], x(Ke), H.push(Lr); T !== Pe; )
|
|
491
|
+
T === Ft || T === kn ? (o = T === Ft, h && E(h, "SwitchCase"), l.tb.push(h = _()), h.da = [], v(), o ? h.test = Z() : (u && r(Pt, "Multiple default clauses"), u = !0, h.test = null), x(Ge)) : (h || P(), h.da.push(B()));
|
|
492
|
+
return h && E(h, "SwitchCase"), v(), H.pop(), E(l, "SwitchStatement");
|
|
493
|
+
case jn:
|
|
494
|
+
return v(), ht.test(S.slice(Se, z)) && r(Se, "Illegal newline after throw"), l.K = Z(), I(), E(l, "ThrowStatement");
|
|
493
495
|
case Rn:
|
|
494
|
-
return
|
|
495
|
-
case On:
|
|
496
|
-
return y(), l.block = le(), l.Ea = null, T === xn && (o = _(), y(), x(he), o.Ua = de(), re && ft(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), x(ue), o.body = le(), l.Ea = E(o, "CatchClause")), l.fb = U(In) ? le() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
496
|
+
return v(), l.block = le(), l.Ea = null, T === bn && (o = _(), v(), x(he), o.Ua = de(), re && ft(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), x(ue), o.body = le(), l.Ea = E(o, "CatchClause")), l.fb = L(En) ? le() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
497
497
|
case Wt:
|
|
498
|
-
return
|
|
499
|
-
case
|
|
500
|
-
return
|
|
501
|
-
case
|
|
502
|
-
return re && r(
|
|
498
|
+
return v(), gn(l), I(), E(l, "VariableDeclaration");
|
|
499
|
+
case Lt:
|
|
500
|
+
return v(), l.test = J(), H.push($t), l.body = B(), H.pop(), E(l, "WhileStatement");
|
|
501
|
+
case On:
|
|
502
|
+
return re && r(z, "'with' in strict mode"), v(), l.object = J(), l.body = B(), E(l, "WithStatement");
|
|
503
503
|
case Ke:
|
|
504
504
|
return le();
|
|
505
505
|
case pe:
|
|
506
|
-
return
|
|
506
|
+
return v(), E(l, "EmptyStatement");
|
|
507
507
|
default:
|
|
508
|
-
if (u = ae, A = Z(), o === Oe && A.type === "Identifier" &&
|
|
508
|
+
if (u = ae, A = Z(), o === Oe && A.type === "Identifier" && L(Ge)) {
|
|
509
509
|
for (h = 0; h < H.length; ++h)
|
|
510
510
|
H[h].name === u && r(A.start, "Label '" + u + "' is already declared");
|
|
511
511
|
return H.push({
|
|
@@ -523,15 +523,15 @@ var L, li = function(e) {
|
|
|
523
523
|
}
|
|
524
524
|
function le(o) {
|
|
525
525
|
var l = _(), u = !0, h = !1;
|
|
526
|
-
for (l.body = [], x(Ke); !
|
|
526
|
+
for (l.body = [], x(Ke); !L(Pe); ) {
|
|
527
527
|
var A = B();
|
|
528
528
|
if (l.body.push(A), u && o && Ee(A)) {
|
|
529
|
-
var
|
|
529
|
+
var Y = h;
|
|
530
530
|
W(h = !0);
|
|
531
531
|
}
|
|
532
532
|
u = !1;
|
|
533
533
|
}
|
|
534
|
-
return h && !
|
|
534
|
+
return h && !Y && W(!1), E(l, "BlockStatement");
|
|
535
535
|
}
|
|
536
536
|
function ce(o, l) {
|
|
537
537
|
return o.ua = l, x(pe), o.test = T === pe ? null : Z(), x(pe), o.update = T === ue ? null : Z(), x(ue), o.body = B(), H.pop(), E(o, "ForStatement");
|
|
@@ -539,129 +539,129 @@ var L, li = function(e) {
|
|
|
539
539
|
function lt(o, l) {
|
|
540
540
|
return o.left = l, o.right = Z(), x(ue), o.body = B(), H.pop(), E(o, "ForInStatement");
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function gn(o, l) {
|
|
543
543
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
544
544
|
var u = _();
|
|
545
|
-
if (u.id = de(), re && ft(u.id.name) && r(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua =
|
|
545
|
+
if (u.id = de(), re && ft(u.id.name) && r(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = L(Ln) ? Z(!0, l) : null, o.fa.push(E(u, "VariableDeclarator")), !L(ke))
|
|
546
546
|
break;
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
function Z(o, l) {
|
|
550
|
-
var u =
|
|
550
|
+
var u = wt(l);
|
|
551
551
|
if (!o && T === ke) {
|
|
552
|
-
for (o = Q(u), o.xb = [u];
|
|
553
|
-
o.xb.push(
|
|
552
|
+
for (o = Q(u), o.xb = [u]; L(ke); )
|
|
553
|
+
o.xb.push(wt(l));
|
|
554
554
|
return E(o, "SequenceExpression");
|
|
555
555
|
}
|
|
556
556
|
return u;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
var l = It(
|
|
560
|
-
if (
|
|
558
|
+
function wt(o) {
|
|
559
|
+
var l = Et(It(), -1, o);
|
|
560
|
+
if (L(Un)) {
|
|
561
561
|
var u = Q(l);
|
|
562
562
|
u.test = l, u.da = Z(!0), x(Ge), u.alternate = Z(!0, o), l = E(u, "ConditionalExpression");
|
|
563
563
|
}
|
|
564
|
-
return T.Cb ? (u = Q(l), u.operator = ae, u.left = l,
|
|
564
|
+
return T.Cb ? (u = Q(l), u.operator = ae, u.left = l, v(), u.right = wt(o), U(l), E(u, "AssignmentExpression")) : l;
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Et(o, l, u) {
|
|
567
567
|
var h = T.L;
|
|
568
568
|
if (h !== null && (!u || T !== dt) && h > l) {
|
|
569
569
|
var A = Q(o);
|
|
570
|
-
return A.left = o, A.operator = ae, o = T,
|
|
570
|
+
return A.left = o, A.operator = ae, o = T, v(), A.right = Et(It(), h, u), h = E(A, o === _n || o === $n ? "LogicalExpression" : "BinaryExpression"), Et(h, l, u);
|
|
571
571
|
}
|
|
572
572
|
return o;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function It() {
|
|
575
575
|
if (T.prefix) {
|
|
576
576
|
var o = _(), l = T.$b;
|
|
577
|
-
return o.operator = ae, _e = o.prefix = !0,
|
|
577
|
+
return o.operator = ae, _e = o.prefix = !0, v(), o.K = It(), l ? U(o.K) : re && o.operator === "delete" && o.K.type === "Identifier" && r(o.start, "Deleting local variable in strict mode"), E(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
578
578
|
}
|
|
579
579
|
for (l = Ve(ct()); T.cc && !Ie(); )
|
|
580
|
-
o = Q(l), o.operator = ae, o.prefix = !1, o.K = l,
|
|
580
|
+
o = Q(l), o.operator = ae, o.prefix = !1, o.K = l, U(l), v(), l = E(o, "UpdateExpression");
|
|
581
581
|
return l;
|
|
582
582
|
}
|
|
583
583
|
function Ve(o, l) {
|
|
584
|
-
if (
|
|
584
|
+
if (L(Dn)) {
|
|
585
585
|
var u = Q(o);
|
|
586
586
|
return u.object = o, u.Wa = de(!0), u.bb = !1, Ve(E(u, "MemberExpression"), l);
|
|
587
587
|
}
|
|
588
|
-
return
|
|
588
|
+
return L(Vt) ? (u = Q(o), u.object = o, u.Wa = Z(), u.bb = !0, x(_t), Ve(E(u, "MemberExpression"), l)) : !l && L(he) ? (u = Q(o), u.callee = o, u.arguments = At(ue, !1), Ve(E(u, "CallExpression"), l)) : o;
|
|
589
589
|
}
|
|
590
590
|
function ct() {
|
|
591
591
|
switch (T) {
|
|
592
|
-
case
|
|
592
|
+
case Nn:
|
|
593
593
|
var o = _();
|
|
594
|
-
return
|
|
594
|
+
return v(), E(o, "ThisExpression");
|
|
595
595
|
case Oe:
|
|
596
596
|
return de();
|
|
597
597
|
case He:
|
|
598
598
|
case ut:
|
|
599
|
-
case
|
|
600
|
-
return o = _(), o.value = ae, o.raw = S.slice(
|
|
599
|
+
case vn:
|
|
600
|
+
return o = _(), o.value = ae, o.raw = S.slice(z, Re), v(), E(o, "Literal");
|
|
601
|
+
case Bn:
|
|
601
602
|
case Mn:
|
|
602
|
-
case Ln:
|
|
603
603
|
case Fn:
|
|
604
|
-
return o = _(), o.value = T.$a, o.raw = T.l,
|
|
604
|
+
return o = _(), o.value = T.$a, o.raw = T.l, v(), E(o, "Literal");
|
|
605
605
|
case he:
|
|
606
|
-
o =
|
|
607
|
-
var l =
|
|
608
|
-
|
|
606
|
+
o = Rt;
|
|
607
|
+
var l = z;
|
|
608
|
+
v();
|
|
609
609
|
var u = Z();
|
|
610
|
-
return u.start = l, u.end = Re, R.C && (u.X.start = o, u.X.end =
|
|
611
|
-
case
|
|
612
|
-
return o = _(),
|
|
610
|
+
return u.start = l, u.end = Re, R.C && (u.X.start = o, u.X.end = Ot), R.Xa && (u.j = [l, Re]), x(ue), u;
|
|
611
|
+
case Vt:
|
|
612
|
+
return o = _(), v(), o.elements = At(_t, !0, !0), E(o, "ArrayExpression");
|
|
613
613
|
case Ke:
|
|
614
|
-
for (o = _(), l = !0, u = !1, o.h = [],
|
|
614
|
+
for (o = _(), l = !0, u = !1, o.h = [], v(); !L(Pe); ) {
|
|
615
615
|
if (l)
|
|
616
616
|
l = !1;
|
|
617
|
-
else if (x(ke), R.sb &&
|
|
617
|
+
else if (x(ke), R.sb && L(Pe))
|
|
618
618
|
break;
|
|
619
619
|
var h = {
|
|
620
620
|
key: T === He || T === ut ? ct() : de(!0)
|
|
621
621
|
}, A = !1;
|
|
622
|
-
if (
|
|
622
|
+
if (L(Ge)) {
|
|
623
623
|
h.value = Z(!0);
|
|
624
|
-
var
|
|
624
|
+
var Y = h.kind = "init";
|
|
625
625
|
} else
|
|
626
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? P() : (A = u = !0,
|
|
626
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? P() : (A = u = !0, Y = h.kind = h.key.name, h.key = T === He || T === ut ? ct() : de(!0), T !== he && P(), h.value = Tt(_(), !1));
|
|
627
627
|
if (h.key.type === "Identifier" && (re || u))
|
|
628
628
|
for (var ee = 0; ee < o.h.length; ++ee) {
|
|
629
629
|
var Be = o.h[ee];
|
|
630
630
|
if (Be.key.name === h.key.name) {
|
|
631
|
-
var
|
|
632
|
-
|
|
631
|
+
var Ht = Y === Be.kind || A && Be.kind === "init" || Y === "init" && (Be.kind === "get" || Be.kind === "set");
|
|
632
|
+
Ht && !re && Y === "init" && Be.kind === "init" && (Ht = !1), Ht && r(h.key.start, "Redefinition of property");
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
635
|
o.h.push(h);
|
|
636
636
|
}
|
|
637
637
|
return E(o, "ObjectExpression");
|
|
638
638
|
case Dt:
|
|
639
|
-
return o = _(),
|
|
640
|
-
case
|
|
641
|
-
return o = _(),
|
|
639
|
+
return o = _(), v(), Tt(o, !1);
|
|
640
|
+
case Pn:
|
|
641
|
+
return o = _(), v(), o.callee = Ve(ct(), !0), o.arguments = L(he) ? At(ue, !1) : Er, E(o, "NewExpression");
|
|
642
642
|
}
|
|
643
643
|
P();
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function Tt(o, l) {
|
|
646
646
|
T === Oe ? o.id = de() : l ? P() : o.id = null, o.oa = [];
|
|
647
647
|
var u = !0;
|
|
648
|
-
for (x(he); !
|
|
648
|
+
for (x(he); !L(ue); )
|
|
649
649
|
u ? u = !1 : x(ke), o.oa.push(de());
|
|
650
650
|
u = $e;
|
|
651
651
|
var h = H;
|
|
652
652
|
if ($e = !0, H = [], o.body = le(!0), $e = u, H = h, re || o.body.body.length && Ee(o.body.body[0])) {
|
|
653
653
|
for (u = o.id ? -1 : 0; u < o.oa.length; ++u)
|
|
654
|
-
if (h = 0 > u ? o.id : o.oa[u], (
|
|
654
|
+
if (h = 0 > u ? o.id : o.oa[u], (Hn(h.name) || ft(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= u)
|
|
655
655
|
for (var A = 0; A < u; ++A)
|
|
656
656
|
h.name === o.oa[A].name && r(h.start, "Argument name clash in strict mode");
|
|
657
657
|
}
|
|
658
658
|
return E(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
659
659
|
}
|
|
660
|
-
function
|
|
661
|
-
for (var h = [], A = !0; !
|
|
660
|
+
function At(o, l, u) {
|
|
661
|
+
for (var h = [], A = !0; !L(o); ) {
|
|
662
662
|
if (A)
|
|
663
663
|
A = !1;
|
|
664
|
-
else if (x(ke), l && R.sb &&
|
|
664
|
+
else if (x(ke), l && R.sb && L(o))
|
|
665
665
|
break;
|
|
666
666
|
h.push(u && T === ke ? null : Z(!0));
|
|
667
667
|
}
|
|
@@ -669,15 +669,15 @@ var L, li = function(e) {
|
|
|
669
669
|
}
|
|
670
670
|
function de(o) {
|
|
671
671
|
var l = _();
|
|
672
|
-
return o && R.yb === "everywhere" && (o = !1), T === Oe ? (!o && (R.yb && Fr(ae) || re &&
|
|
672
|
+
return o && R.yb === "everywhere" && (o = !1), T === Oe ? (!o && (R.yb && Fr(ae) || re && Hn(ae)) && S.slice(z, Re).indexOf("\\") === -1 && r(z, "The keyword '" + ae + "' is reserved"), l.name = ae) : o && T.l ? l.name = T.l : P(), _e = !1, v(), E(l, "Identifier");
|
|
673
673
|
}
|
|
674
674
|
e.version = "0.5.0";
|
|
675
|
-
var R, S = "", je,
|
|
675
|
+
var R, S = "", je, jt;
|
|
676
676
|
e.parse = function(o, l) {
|
|
677
677
|
S = String(o), je = S.length, R = l || {};
|
|
678
678
|
for (var u in yn)
|
|
679
679
|
Object.prototype.hasOwnProperty.call(R, u) || (R[u] = yn[u]);
|
|
680
|
-
for (
|
|
680
|
+
for (jt = R.sourceFile, Te = 1, d = fe = 0, _e = !0, f(), u = R.dc, Pt = Se = d, R.C && (Nt = new a()), $e = re = !1, H = [], b(), o = u || _(), l = !0, u || (o.body = []); T !== Bt; )
|
|
681
681
|
u = B(), o.body.push(u), l && Ee(u) && W(!0), l = !1;
|
|
682
682
|
return E(o, "Program");
|
|
683
683
|
};
|
|
@@ -692,70 +692,70 @@ var L, li = function(e) {
|
|
|
692
692
|
dc: null,
|
|
693
693
|
sourceFile: null,
|
|
694
694
|
vb: null
|
|
695
|
-
}, d = 0,
|
|
695
|
+
}, d = 0, z = 0, Re = 0, Rt, Ot, T, ae, _e, Te, fe, Pt = 0, Se = 0, Nt, $e, H, re, Er = [], He = {
|
|
696
696
|
type: "num"
|
|
697
|
-
},
|
|
697
|
+
}, vn = {
|
|
698
698
|
type: "regexp"
|
|
699
699
|
}, ut = {
|
|
700
700
|
type: "string"
|
|
701
701
|
}, Oe = {
|
|
702
702
|
type: "name"
|
|
703
|
-
},
|
|
703
|
+
}, Bt = {
|
|
704
704
|
type: "eof"
|
|
705
|
-
},
|
|
705
|
+
}, Mt = {
|
|
706
706
|
l: "break"
|
|
707
707
|
}, Ft = {
|
|
708
708
|
l: "case",
|
|
709
709
|
m: !0
|
|
710
|
-
},
|
|
710
|
+
}, bn = {
|
|
711
711
|
l: "catch"
|
|
712
|
-
},
|
|
712
|
+
}, xn = {
|
|
713
713
|
l: "continue"
|
|
714
|
-
},
|
|
714
|
+
}, Sn = {
|
|
715
715
|
l: "debugger"
|
|
716
|
-
},
|
|
716
|
+
}, kn = {
|
|
717
717
|
l: "default"
|
|
718
|
-
},
|
|
718
|
+
}, Cn = {
|
|
719
719
|
l: "do",
|
|
720
720
|
W: !0
|
|
721
|
-
},
|
|
721
|
+
}, wn = {
|
|
722
722
|
l: "else",
|
|
723
723
|
m: !0
|
|
724
|
-
},
|
|
724
|
+
}, En = {
|
|
725
725
|
l: "finally"
|
|
726
|
-
},
|
|
726
|
+
}, In = {
|
|
727
727
|
l: "for",
|
|
728
728
|
W: !0
|
|
729
729
|
}, Dt = {
|
|
730
730
|
l: "function"
|
|
731
|
-
},
|
|
731
|
+
}, Tn = {
|
|
732
732
|
l: "if"
|
|
733
|
-
},
|
|
733
|
+
}, An = {
|
|
734
734
|
l: "return",
|
|
735
735
|
m: !0
|
|
736
736
|
}, Ut = {
|
|
737
737
|
l: "switch"
|
|
738
|
-
},
|
|
738
|
+
}, jn = {
|
|
739
739
|
l: "throw",
|
|
740
740
|
m: !0
|
|
741
|
-
},
|
|
741
|
+
}, Rn = {
|
|
742
742
|
l: "try"
|
|
743
743
|
}, Wt = {
|
|
744
744
|
l: "var"
|
|
745
|
-
},
|
|
745
|
+
}, Lt = {
|
|
746
746
|
l: "while",
|
|
747
747
|
W: !0
|
|
748
|
-
},
|
|
748
|
+
}, On = {
|
|
749
749
|
l: "with"
|
|
750
|
-
},
|
|
750
|
+
}, Pn = {
|
|
751
751
|
l: "new",
|
|
752
752
|
m: !0
|
|
753
|
-
},
|
|
753
|
+
}, Nn = {
|
|
754
754
|
l: "this"
|
|
755
|
-
},
|
|
755
|
+
}, Bn = {
|
|
756
756
|
l: "null",
|
|
757
757
|
$a: null
|
|
758
|
-
},
|
|
758
|
+
}, Mn = {
|
|
759
759
|
l: "true",
|
|
760
760
|
$a: !0
|
|
761
761
|
}, Fn = {
|
|
@@ -765,37 +765,37 @@ var L, li = function(e) {
|
|
|
765
765
|
l: "in",
|
|
766
766
|
L: 7,
|
|
767
767
|
m: !0
|
|
768
|
-
},
|
|
769
|
-
break:
|
|
768
|
+
}, Ir = {
|
|
769
|
+
break: Mt,
|
|
770
770
|
case: Ft,
|
|
771
|
-
catch:
|
|
772
|
-
continue:
|
|
773
|
-
debugger:
|
|
774
|
-
default:
|
|
775
|
-
do:
|
|
776
|
-
else:
|
|
777
|
-
finally:
|
|
778
|
-
for:
|
|
771
|
+
catch: bn,
|
|
772
|
+
continue: xn,
|
|
773
|
+
debugger: Sn,
|
|
774
|
+
default: kn,
|
|
775
|
+
do: Cn,
|
|
776
|
+
else: wn,
|
|
777
|
+
finally: En,
|
|
778
|
+
for: In,
|
|
779
779
|
function: Dt,
|
|
780
|
-
if:
|
|
781
|
-
return:
|
|
780
|
+
if: Tn,
|
|
781
|
+
return: An,
|
|
782
782
|
switch: Ut,
|
|
783
|
-
throw:
|
|
784
|
-
try:
|
|
783
|
+
throw: jn,
|
|
784
|
+
try: Rn,
|
|
785
785
|
var: Wt,
|
|
786
|
-
while:
|
|
787
|
-
with:
|
|
788
|
-
null:
|
|
789
|
-
true:
|
|
786
|
+
while: Lt,
|
|
787
|
+
with: On,
|
|
788
|
+
null: Bn,
|
|
789
|
+
true: Mn,
|
|
790
790
|
false: Fn,
|
|
791
|
-
new:
|
|
791
|
+
new: Pn,
|
|
792
792
|
in: dt,
|
|
793
793
|
instanceof: {
|
|
794
794
|
l: "instanceof",
|
|
795
795
|
L: 7,
|
|
796
796
|
m: !0
|
|
797
797
|
},
|
|
798
|
-
this:
|
|
798
|
+
this: Nn,
|
|
799
799
|
typeof: {
|
|
800
800
|
l: "typeof",
|
|
801
801
|
prefix: !0,
|
|
@@ -811,10 +811,10 @@ var L, li = function(e) {
|
|
|
811
811
|
prefix: !0,
|
|
812
812
|
m: !0
|
|
813
813
|
}
|
|
814
|
-
},
|
|
814
|
+
}, Vt = {
|
|
815
815
|
type: "[",
|
|
816
816
|
m: !0
|
|
817
|
-
},
|
|
817
|
+
}, _t = {
|
|
818
818
|
type: "]"
|
|
819
819
|
}, Ke = {
|
|
820
820
|
type: "{",
|
|
@@ -843,59 +843,59 @@ var L, li = function(e) {
|
|
|
843
843
|
}, Wn = {
|
|
844
844
|
L: 10,
|
|
845
845
|
m: !0
|
|
846
|
-
},
|
|
846
|
+
}, Ln = {
|
|
847
847
|
Cb: !0,
|
|
848
848
|
m: !0
|
|
849
849
|
}, Ae = {
|
|
850
850
|
Cb: !0,
|
|
851
851
|
m: !0
|
|
852
|
-
},
|
|
852
|
+
}, Tr = {
|
|
853
853
|
cc: !0,
|
|
854
854
|
prefix: !0,
|
|
855
855
|
$b: !0
|
|
856
|
-
},
|
|
856
|
+
}, Vn = {
|
|
857
857
|
prefix: !0,
|
|
858
858
|
m: !0
|
|
859
|
-
},
|
|
859
|
+
}, _n = {
|
|
860
860
|
L: 1,
|
|
861
861
|
m: !0
|
|
862
|
-
},
|
|
862
|
+
}, $n = {
|
|
863
863
|
L: 2,
|
|
864
864
|
m: !0
|
|
865
|
-
},
|
|
865
|
+
}, Ar = {
|
|
866
866
|
L: 3,
|
|
867
867
|
m: !0
|
|
868
|
-
},
|
|
868
|
+
}, jr = {
|
|
869
869
|
L: 4,
|
|
870
870
|
m: !0
|
|
871
|
-
},
|
|
871
|
+
}, Rr = {
|
|
872
872
|
L: 5,
|
|
873
873
|
m: !0
|
|
874
|
-
},
|
|
874
|
+
}, Or = {
|
|
875
875
|
L: 6,
|
|
876
876
|
m: !0
|
|
877
|
-
},
|
|
877
|
+
}, Pr = {
|
|
878
878
|
L: 7,
|
|
879
879
|
m: !0
|
|
880
|
-
},
|
|
880
|
+
}, Nr = {
|
|
881
881
|
L: 8,
|
|
882
882
|
m: !0
|
|
883
|
-
},
|
|
883
|
+
}, Br = {
|
|
884
884
|
L: 9,
|
|
885
885
|
prefix: !0,
|
|
886
886
|
m: !0
|
|
887
|
-
},
|
|
887
|
+
}, Mr = {
|
|
888
888
|
L: 10,
|
|
889
889
|
m: !0
|
|
890
|
-
}, Fr = i("class enum extends super const export import"),
|
|
890
|
+
}, Fr = i("class enum extends super const export import"), Hn = i("implements interface let package private protected public static yield"), ft = i("eval arguments"), Dr = i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Ur = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Kn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Wr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ht = /[\n\r\u2028\u2029]/, pt = /\r\n|[\n\r\u2028\u2029]/g, Ne, $t = {
|
|
891
891
|
kind: "loop"
|
|
892
|
-
},
|
|
892
|
+
}, Lr = {
|
|
893
893
|
kind: "switch"
|
|
894
894
|
};
|
|
895
|
-
},
|
|
896
|
-
|
|
895
|
+
}, Yt = Yt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
896
|
+
si(Yt.j || (Yt.j = {}));
|
|
897
897
|
function p(e, t) {
|
|
898
|
-
typeof e == "string" && (e =
|
|
898
|
+
typeof e == "string" && (e = Ue(e, "code"));
|
|
899
899
|
var n = e.constructor;
|
|
900
900
|
this.ya = function() {
|
|
901
901
|
return new n({
|
|
@@ -909,13 +909,13 @@ function p(e, t) {
|
|
|
909
909
|
var a, s;
|
|
910
910
|
for (s in this)
|
|
911
911
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
912
|
-
this.N =
|
|
912
|
+
this.N = Jt(this, this.ra, null), this.Na = this.N.object, this.ra = Ue(this.ba.join(`
|
|
913
913
|
`), "polyfills"), this.ba = void 0, xt(this.ra), a = new C(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = r, a = new C(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
914
914
|
}
|
|
915
|
-
var
|
|
915
|
+
var Yn = {
|
|
916
916
|
C: !0,
|
|
917
917
|
kc: 5
|
|
918
|
-
},
|
|
918
|
+
}, tn = {
|
|
919
919
|
configurable: !0,
|
|
920
920
|
enumerable: !0,
|
|
921
921
|
writable: !1
|
|
@@ -931,20 +931,20 @@ var Xn = {
|
|
|
931
931
|
configurable: !1,
|
|
932
932
|
enumerable: !1,
|
|
933
933
|
writable: !1
|
|
934
|
-
},
|
|
934
|
+
}, Xn = {
|
|
935
935
|
configurable: !1,
|
|
936
936
|
enumerable: !0,
|
|
937
937
|
writable: !0
|
|
938
|
-
},
|
|
938
|
+
}, fr = {
|
|
939
939
|
STEP_ERROR: !0
|
|
940
|
-
},
|
|
940
|
+
}, Le = {
|
|
941
941
|
SCOPE_REFERENCE: !0
|
|
942
942
|
}, tt = {
|
|
943
943
|
VALUE_IN_DESCRIPTOR: !0
|
|
944
944
|
}, Me = {
|
|
945
945
|
REGEXP_TIMEOUT: !0
|
|
946
|
-
},
|
|
947
|
-
function
|
|
946
|
+
}, Jn = [], ve = null, Ze = null, we = typeof globalThis == "undefined" ? void 0 : globalThis, li = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
|
|
947
|
+
function nn(e) {
|
|
948
948
|
var t = e >>> 0;
|
|
949
949
|
return t === Number(e) ? t : NaN;
|
|
950
950
|
}
|
|
@@ -963,26 +963,26 @@ function xt(e, t, n) {
|
|
|
963
963
|
p.prototype.REGEXP_MODE = 2;
|
|
964
964
|
p.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
965
965
|
p.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
function
|
|
966
|
+
F = p.prototype;
|
|
967
|
+
F.P = !1;
|
|
968
|
+
F.Ka = !1;
|
|
969
|
+
F.Kb = 0;
|
|
970
|
+
F.ic = 0;
|
|
971
|
+
function Ue(e, t) {
|
|
972
972
|
var n = {}, r;
|
|
973
|
-
for (r in
|
|
974
|
-
n[r] =
|
|
973
|
+
for (r in Yn)
|
|
974
|
+
n[r] = Yn[r];
|
|
975
975
|
return n.sourceFile = t, we.j.parse(e, n);
|
|
976
976
|
}
|
|
977
|
-
|
|
977
|
+
F.Jb = function(e) {
|
|
978
978
|
var t = this.o[0];
|
|
979
979
|
if (!t || t.node.type !== "Program")
|
|
980
980
|
throw Error("Expecting original AST to start with a Program node");
|
|
981
|
-
if (typeof e == "string" && (e =
|
|
981
|
+
if (typeof e == "string" && (e = Ue(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
982
982
|
throw Error("Expecting new AST to start with a Program node");
|
|
983
983
|
nt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
984
984
|
};
|
|
985
|
-
|
|
985
|
+
F.lb = function() {
|
|
986
986
|
var e = this.o, t;
|
|
987
987
|
do {
|
|
988
988
|
var n = e[e.length - 1];
|
|
@@ -994,7 +994,7 @@ L.lb = function() {
|
|
|
994
994
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
995
995
|
n = null;
|
|
996
996
|
else {
|
|
997
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
997
|
+
this.ca.shift(), 0 <= n.interval && mr(this, n, n.interval);
|
|
998
998
|
var r = new C(n.node, n.scope);
|
|
999
999
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1000
1000
|
}
|
|
@@ -1007,7 +1007,7 @@ L.lb = function() {
|
|
|
1007
1007
|
try {
|
|
1008
1008
|
var a = this.rb[r.type](e, n, r);
|
|
1009
1009
|
} catch (s) {
|
|
1010
|
-
if (s !==
|
|
1010
|
+
if (s !== fr)
|
|
1011
1011
|
throw this.value !== s && (this.value = void 0), s;
|
|
1012
1012
|
} finally {
|
|
1013
1013
|
Ze = i;
|
|
@@ -1020,13 +1020,13 @@ L.lb = function() {
|
|
|
1020
1020
|
} while (!r.end && t > Date.now());
|
|
1021
1021
|
return !0;
|
|
1022
1022
|
};
|
|
1023
|
-
|
|
1023
|
+
F.Eb = function() {
|
|
1024
1024
|
for (; !this.za && this.lb(); )
|
|
1025
1025
|
;
|
|
1026
1026
|
return this.za;
|
|
1027
1027
|
};
|
|
1028
|
-
function
|
|
1029
|
-
e.g(t, "NaN", NaN, ze), e.g(t, "Infinity", 1 / 0, ze), e.g(t, "undefined", void 0, ze), e.g(t, "window", t,
|
|
1028
|
+
function ci(e, t) {
|
|
1029
|
+
e.g(t, "NaN", NaN, ze), e.g(t, "Infinity", 1 / 0, ze), e.g(t, "undefined", void 0, ze), e.g(t, "window", t, tn), e.g(t, "this", t, ze), e.g(t, "self", t), e.M = new O(null), e.Z = new O(e.M), ui(e, t), di(e, t), t.xa = e.M, e.g(t, "constructor", e.v, k), fi(e, t), hi(e, t), pi(e, t), mi(e, t), gi(e, t), yi(e, t), vi(e, t), bi(e, t), xi(e, t);
|
|
1030
1030
|
var n = e.i(function() {
|
|
1031
1031
|
throw EvalError("Can't happen");
|
|
1032
1032
|
}, !1);
|
|
@@ -1042,17 +1042,17 @@ function ui(e, t) {
|
|
|
1042
1042
|
};
|
|
1043
1043
|
}(r[i][0]), e.g(t, r[i][1], e.i(n, !1), k);
|
|
1044
1044
|
n = function(a) {
|
|
1045
|
-
return
|
|
1045
|
+
return qn(e, !1, arguments);
|
|
1046
1046
|
}, e.g(t, "setTimeout", e.i(n, !1), k), n = function(a) {
|
|
1047
|
-
return
|
|
1047
|
+
return qn(e, !0, arguments);
|
|
1048
1048
|
}, e.g(t, "setInterval", e.i(n, !1), k), n = function(a) {
|
|
1049
|
-
|
|
1049
|
+
Zn(e, a);
|
|
1050
1050
|
}, e.g(t, "clearTimeout", e.i(n, !1), k), n = function(a) {
|
|
1051
|
-
|
|
1051
|
+
Zn(e, a);
|
|
1052
1052
|
}, e.g(t, "clearInterval", e.i(n, !1), k), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1053
1053
|
}
|
|
1054
|
-
|
|
1055
|
-
function
|
|
1054
|
+
F.Wb = 0;
|
|
1055
|
+
function ui(e, t) {
|
|
1056
1056
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(i) {
|
|
1057
1057
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1058
1058
|
if (s) {
|
|
@@ -1064,29 +1064,29 @@ function di(e, t) {
|
|
|
1064
1064
|
s = s.join(", ");
|
|
1065
1065
|
}
|
|
1066
1066
|
try {
|
|
1067
|
-
var g =
|
|
1067
|
+
var g = Ue("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1068
1068
|
} catch (b) {
|
|
1069
1069
|
w(e, e.T, "Invalid code: " + b.message);
|
|
1070
1070
|
}
|
|
1071
|
-
return g.body.length !== 1 && w(e, e.T, "Invalid code in function body"),
|
|
1071
|
+
return g.body.length !== 1 && w(e, e.T, "Invalid code in function body"), an(e, g.body[0].la, e.N, "anonymous");
|
|
1072
1072
|
};
|
|
1073
1073
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, k), e.g(e.O, "prototype", e.Z, k), e.g(e.Z, "constructor", e.O, k), e.Z.Ta = function() {
|
|
1074
1074
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ne), e.Z.H = "Function", r = function(i, a) {
|
|
1075
1075
|
var s = e.o[e.o.length - 1];
|
|
1076
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof O ? s.F =
|
|
1077
|
-
},
|
|
1076
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof O ? s.F = hr(e, a) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1077
|
+
}, X(e, e.O, "apply", r), r = function(i) {
|
|
1078
1078
|
var a = e.o[e.o.length - 1];
|
|
1079
1079
|
a.U = this, a.B = i, a.F = [];
|
|
1080
1080
|
for (var s = 1; s < arguments.length; s++)
|
|
1081
1081
|
a.F.push(arguments[s]);
|
|
1082
1082
|
a.eb = !1;
|
|
1083
|
-
},
|
|
1083
|
+
}, X(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
|
|
1084
1084
|
return String(this);
|
|
1085
|
-
},
|
|
1085
|
+
}, X(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), k), r = function() {
|
|
1086
1086
|
return this.valueOf();
|
|
1087
|
-
},
|
|
1087
|
+
}, X(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), k);
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1089
|
+
function di(e, t) {
|
|
1090
1090
|
function n(i) {
|
|
1091
1091
|
i != null || w(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1092
1092
|
}
|
|
@@ -1118,24 +1118,24 @@ function fi(e, t) {
|
|
|
1118
1118
|
return !!i && !i.preventExtensions;
|
|
1119
1119
|
}, e.g(e.v, "isExtensible", e.i(r, !1), k), r = function(i) {
|
|
1120
1120
|
return i instanceof O && (i.preventExtensions = !0), i;
|
|
1121
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), k),
|
|
1121
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), k), X(e, e.v, "toString", O.prototype.toString), X(e, e.v, "toLocaleString", O.prototype.toString), X(e, e.v, "valueOf", O.prototype.valueOf), r = function(i) {
|
|
1122
1122
|
return n(this), this instanceof O ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1123
|
-
},
|
|
1123
|
+
}, X(e, e.v, "hasOwnProperty", r), r = function(i) {
|
|
1124
1124
|
return n(this), this instanceof O ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1125
|
-
},
|
|
1125
|
+
}, X(e, e.v, "propertyIsEnumerable", r), r = function(i) {
|
|
1126
1126
|
for (; ; ) {
|
|
1127
1127
|
if (i = be(e, i), !i)
|
|
1128
1128
|
return !1;
|
|
1129
1129
|
if (i === this)
|
|
1130
1130
|
return !0;
|
|
1131
1131
|
}
|
|
1132
|
-
},
|
|
1132
|
+
}, X(e, e.v, "isPrototypeOf", r);
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function fi(e, t) {
|
|
1135
1135
|
var n = function(r) {
|
|
1136
|
-
var i = xe(e) ? this :
|
|
1136
|
+
var i = xe(e) ? this : We(e), a = arguments[0];
|
|
1137
1137
|
if (arguments.length === 1 && typeof a == "number")
|
|
1138
|
-
isNaN(
|
|
1138
|
+
isNaN(nn(a)) && w(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1139
1139
|
else {
|
|
1140
1140
|
for (a = 0; a < arguments.length; a++)
|
|
1141
1141
|
i.h[a] = arguments[a];
|
|
@@ -1151,12 +1151,12 @@ function hi(e, t) {
|
|
|
1151
1151
|
writable: !0
|
|
1152
1152
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function hi(e, t) {
|
|
1155
1155
|
var n = function(r) {
|
|
1156
1156
|
return r = arguments.length ? we.String(r) : "", xe(e) ? (this.data = r, this) : r;
|
|
1157
1157
|
};
|
|
1158
1158
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, k), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), k), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1159
|
-
|
|
1159
|
+
X(e, e.J, t[n], String.prototype[t[n]]);
|
|
1160
1160
|
n = function(r, i, a) {
|
|
1161
1161
|
i = e.R(i), a = e.R(a);
|
|
1162
1162
|
try {
|
|
@@ -1164,10 +1164,10 @@ function pi(e, t) {
|
|
|
1164
1164
|
} catch (s) {
|
|
1165
1165
|
w(e, e.D, "localeCompare: " + s.message);
|
|
1166
1166
|
}
|
|
1167
|
-
},
|
|
1167
|
+
}, X(e, e.J, "localeCompare", n), n = function(r, i, a) {
|
|
1168
1168
|
var s = String(this);
|
|
1169
1169
|
if (i = i ? Number(i) : void 0, q(e, r, e.I) && (r = r.data, Xe(e, r, a), e.REGEXP_MODE === 2)) {
|
|
1170
|
-
if (
|
|
1170
|
+
if (ve)
|
|
1171
1171
|
r = Ye(e, "string.split(separator, limit)", {
|
|
1172
1172
|
string: s,
|
|
1173
1173
|
separator: r,
|
|
@@ -1185,7 +1185,7 @@ function pi(e, t) {
|
|
|
1185
1185
|
}, qe(e, e.J, "split", n), n = function(r, i) {
|
|
1186
1186
|
var a = String(this);
|
|
1187
1187
|
if (r = q(e, r, e.I) ? r.data : new RegExp(r), Xe(e, r, i), e.REGEXP_MODE === 2)
|
|
1188
|
-
if (
|
|
1188
|
+
if (ve)
|
|
1189
1189
|
r = Ye(e, "string.match(regexp)", {
|
|
1190
1190
|
string: a,
|
|
1191
1191
|
regexp: r
|
|
@@ -1201,7 +1201,7 @@ function pi(e, t) {
|
|
|
1201
1201
|
}, qe(e, e.J, "match", n), n = function(r, i) {
|
|
1202
1202
|
var a = String(this);
|
|
1203
1203
|
if (q(e, r, e.I) ? r = r.data : r = new RegExp(r), Xe(e, r, i), e.REGEXP_MODE === 2)
|
|
1204
|
-
if (
|
|
1204
|
+
if (ve)
|
|
1205
1205
|
r = Ye(e, "string.search(regexp)", {
|
|
1206
1206
|
string: a,
|
|
1207
1207
|
regexp: r
|
|
@@ -1217,7 +1217,7 @@ function pi(e, t) {
|
|
|
1217
1217
|
}, qe(e, e.J, "search", n), n = function(r, i, a) {
|
|
1218
1218
|
var s = String(this);
|
|
1219
1219
|
if (i = String(i), q(e, r, e.I) && (r = r.data, Xe(e, r, a), e.REGEXP_MODE === 2)) {
|
|
1220
|
-
if (
|
|
1220
|
+
if (ve)
|
|
1221
1221
|
r = Ye(e, "string.replace(substr, newSubstr)", {
|
|
1222
1222
|
string: s,
|
|
1223
1223
|
substr: r,
|
|
@@ -1234,12 +1234,12 @@ function pi(e, t) {
|
|
|
1234
1234
|
a(s.replace(r, i));
|
|
1235
1235
|
}, qe(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function pi(e, t) {
|
|
1238
1238
|
e.mb = e.i(function(n) {
|
|
1239
1239
|
return n = we.Boolean(n), xe(e) ? (this.data = n, this) : n;
|
|
1240
1240
|
}, !0), e.g(t, "Boolean", e.mb, k);
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function mi(e, t) {
|
|
1243
1243
|
var n = function(r) {
|
|
1244
1244
|
return r = arguments.length ? we.Number(r) : 0, xe(e) ? (this.data = r, this) : r;
|
|
1245
1245
|
};
|
|
@@ -1251,34 +1251,34 @@ function gi(e, t) {
|
|
|
1251
1251
|
} catch (i) {
|
|
1252
1252
|
w(e, e.D, i.message);
|
|
1253
1253
|
}
|
|
1254
|
-
},
|
|
1254
|
+
}, X(e, e.aa, "toExponential", n), n = function(r) {
|
|
1255
1255
|
try {
|
|
1256
1256
|
return Number(this).toFixed(r);
|
|
1257
1257
|
} catch (i) {
|
|
1258
1258
|
w(e, e.D, i.message);
|
|
1259
1259
|
}
|
|
1260
|
-
},
|
|
1260
|
+
}, X(e, e.aa, "toFixed", n), n = function(r) {
|
|
1261
1261
|
try {
|
|
1262
1262
|
return Number(this).toPrecision(r);
|
|
1263
1263
|
} catch (i) {
|
|
1264
1264
|
w(e, e.D, i.message);
|
|
1265
1265
|
}
|
|
1266
|
-
},
|
|
1266
|
+
}, X(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1267
1267
|
try {
|
|
1268
1268
|
return Number(this).toString(r);
|
|
1269
1269
|
} catch (i) {
|
|
1270
1270
|
w(e, e.D, i.message);
|
|
1271
1271
|
}
|
|
1272
|
-
},
|
|
1272
|
+
}, X(e, e.aa, "toString", n), n = function(r, i) {
|
|
1273
1273
|
r = r ? e.R(r) : void 0, i = i ? e.R(i) : void 0;
|
|
1274
1274
|
try {
|
|
1275
1275
|
return Number(this).toLocaleString(r, i);
|
|
1276
1276
|
} catch (a) {
|
|
1277
1277
|
w(e, e.D, "toLocaleString: " + a.message);
|
|
1278
1278
|
}
|
|
1279
|
-
},
|
|
1279
|
+
}, X(e, e.aa, "toLocaleString", n);
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1281
|
+
function gi(e, t) {
|
|
1282
1282
|
var n = function(i, a) {
|
|
1283
1283
|
if (!xe(e))
|
|
1284
1284
|
return we.Date();
|
|
@@ -1295,7 +1295,7 @@ function vi(e, t) {
|
|
|
1295
1295
|
c[f] = e.R(arguments[f]);
|
|
1296
1296
|
return s[i].apply(s, c);
|
|
1297
1297
|
};
|
|
1298
|
-
}(t[r]),
|
|
1298
|
+
}(t[r]), X(e, e.$, t[r], n);
|
|
1299
1299
|
}
|
|
1300
1300
|
function yi(e, t) {
|
|
1301
1301
|
var n = function(r, i) {
|
|
@@ -1312,7 +1312,7 @@ function yi(e, t) {
|
|
|
1312
1312
|
} catch (c) {
|
|
1313
1313
|
w(e, e.T, c.message);
|
|
1314
1314
|
}
|
|
1315
|
-
return
|
|
1315
|
+
return rn(e, a, s), a;
|
|
1316
1316
|
};
|
|
1317
1317
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, k), e.g(e.I.h.prototype, "global", void 0, ne), e.g(e.I.h.prototype, "ignoreCase", void 0, ne), e.g(e.I.h.prototype, "multiline", void 0, ne), e.g(e.I.h.prototype, "source", "(?:)", ne), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, i) {
|
|
1318
1318
|
function a(b) {
|
|
@@ -1324,7 +1324,7 @@ function yi(e, t) {
|
|
|
1324
1324
|
}
|
|
1325
1325
|
var s = this.data;
|
|
1326
1326
|
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), Xe(e, s, i), e.REGEXP_MODE === 2)
|
|
1327
|
-
if (
|
|
1327
|
+
if (ve)
|
|
1328
1328
|
r = Ye(e, "regexp.exec(string)", {
|
|
1329
1329
|
string: r,
|
|
1330
1330
|
regexp: s
|
|
@@ -1339,20 +1339,20 @@ function yi(e, t) {
|
|
|
1339
1339
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), i(a(r));
|
|
1340
1340
|
}, qe(e, e.I, "exec", n);
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function vi(e, t) {
|
|
1343
1343
|
function n(r) {
|
|
1344
1344
|
var i = e.i(function(a) {
|
|
1345
1345
|
var s = xe(e) ? this : e.Aa(i);
|
|
1346
|
-
return
|
|
1346
|
+
return Xt(e, s, a), s;
|
|
1347
1347
|
}, !0);
|
|
1348
1348
|
return e.g(i, "prototype", e.Aa(e.D), k), e.g(i.h.prototype, "name", r, k), e.g(t, r, i, k), i;
|
|
1349
1349
|
}
|
|
1350
1350
|
e.D = e.i(function(r) {
|
|
1351
1351
|
var i = xe(e) ? this : e.Aa(e.D);
|
|
1352
|
-
return
|
|
1352
|
+
return Xt(e, i, r), i;
|
|
1353
1353
|
}, !0), e.g(t, "Error", e.D, k), e.g(e.D.h.prototype, "message", "", k), e.g(e.D.h.prototype, "name", "Error", k), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function bi(e, t) {
|
|
1356
1356
|
var n = e.s(e.M);
|
|
1357
1357
|
e.g(t, "Math", n, k);
|
|
1358
1358
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1361,7 +1361,7 @@ function xi(e, t) {
|
|
|
1361
1361
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1362
1362
|
e.g(n, r[t], e.i(Math[r[t]], !1), k);
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function xi(e, t) {
|
|
1365
1365
|
var n = e.s(e.M);
|
|
1366
1366
|
e.g(t, "JSON", n, k), t = function(r) {
|
|
1367
1367
|
try {
|
|
@@ -1371,7 +1371,7 @@ function Si(e, t) {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
return e.Ia(i);
|
|
1373
1373
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, i, a) {
|
|
1374
|
-
i && i.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i =
|
|
1374
|
+
i && i.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = hr(e, i), i = i.filter(function(c) {
|
|
1375
1375
|
return typeof c == "string" || typeof c == "number";
|
|
1376
1376
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), r = e.R(r);
|
|
1377
1377
|
try {
|
|
@@ -1394,10 +1394,10 @@ function q(e, t, n) {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
return !1;
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function rn(e, t, n) {
|
|
1398
1398
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, k), e.g(t, "source", n.source, ne), e.g(t, "global", n.global, ne), e.g(t, "ignoreCase", n.ignoreCase, ne), e.g(t, "multiline", n.multiline, ne);
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function Xt(e, t, n) {
|
|
1401
1401
|
n && e.g(t, "message", String(n), k), n = [];
|
|
1402
1402
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1403
1403
|
var i = e.o[r], a = i.node;
|
|
@@ -1414,9 +1414,9 @@ function Jt(e, t, n) {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
e.g(t, "stack", a.trim(), k);
|
|
1416
1416
|
}
|
|
1417
|
-
|
|
1417
|
+
F.ha = function() {
|
|
1418
1418
|
var e = this.ha.Mb;
|
|
1419
|
-
return e || (e = new Blob([
|
|
1419
|
+
return e || (e = new Blob([li.join(`
|
|
1420
1420
|
`)], {
|
|
1421
1421
|
type: "application/javascript"
|
|
1422
1422
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1426,7 +1426,7 @@ function Ye(e, t, n, r, i) {
|
|
|
1426
1426
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1427
1427
|
};
|
|
1428
1428
|
try {
|
|
1429
|
-
return
|
|
1429
|
+
return ve.runInNewContext(t, n, a);
|
|
1430
1430
|
} catch {
|
|
1431
1431
|
i(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1432
1432
|
}
|
|
@@ -1437,16 +1437,16 @@ function Xe(e, t, n) {
|
|
|
1437
1437
|
var r = !1;
|
|
1438
1438
|
else if (e.REGEXP_MODE === 1)
|
|
1439
1439
|
r = !0;
|
|
1440
|
-
else if (
|
|
1440
|
+
else if (ve)
|
|
1441
1441
|
r = !0;
|
|
1442
1442
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1443
1443
|
r = !0;
|
|
1444
1444
|
else if (typeof require == "function") {
|
|
1445
1445
|
try {
|
|
1446
|
-
|
|
1446
|
+
ve = require("vm");
|
|
1447
1447
|
} catch {
|
|
1448
1448
|
}
|
|
1449
|
-
r = !!
|
|
1449
|
+
r = !!ve;
|
|
1450
1450
|
} else
|
|
1451
1451
|
r = !1;
|
|
1452
1452
|
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
@@ -1460,15 +1460,15 @@ function Je(e, t, n, r) {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1462
1462
|
}
|
|
1463
|
-
|
|
1463
|
+
F.Aa = function(e) {
|
|
1464
1464
|
return this.s(e && e.h.prototype);
|
|
1465
1465
|
};
|
|
1466
|
-
|
|
1466
|
+
F.s = function(e) {
|
|
1467
1467
|
if (typeof e != "object")
|
|
1468
1468
|
throw Error("Non object prototype");
|
|
1469
1469
|
return e = new O(e), q(this, e, this.D) && (e.H = "Error"), e;
|
|
1470
1470
|
};
|
|
1471
|
-
function
|
|
1471
|
+
function We(e) {
|
|
1472
1472
|
var t = e.s(e.La);
|
|
1473
1473
|
return e.g(t, "length", 0, {
|
|
1474
1474
|
configurable: !1,
|
|
@@ -1476,29 +1476,29 @@ function Ue(e) {
|
|
|
1476
1476
|
writable: !0
|
|
1477
1477
|
}), t.H = "Array", t;
|
|
1478
1478
|
}
|
|
1479
|
-
function
|
|
1479
|
+
function on(e, t, n) {
|
|
1480
1480
|
var r = e.s(e.Z);
|
|
1481
1481
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, k), e.g(n, "constructor", r, k)) : r.Ab = !0, e.g(r, "length", t, ne), r.H = "Function", r;
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1484
|
-
var i =
|
|
1483
|
+
function an(e, t, n, r) {
|
|
1484
|
+
var i = on(e, t.oa.length, !0);
|
|
1485
1485
|
return i.Va = n, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : r || "", ne), i;
|
|
1486
1486
|
}
|
|
1487
|
-
|
|
1488
|
-
return t =
|
|
1487
|
+
F.i = function(e, t) {
|
|
1488
|
+
return t = on(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ne), t;
|
|
1489
1489
|
};
|
|
1490
|
-
|
|
1491
|
-
var t =
|
|
1490
|
+
F.ub = function(e) {
|
|
1491
|
+
var t = on(this, e.length, !0);
|
|
1492
1492
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ne), t;
|
|
1493
1493
|
};
|
|
1494
|
-
|
|
1494
|
+
F.Ia = function(e) {
|
|
1495
1495
|
if (e instanceof O)
|
|
1496
1496
|
throw Error("Object is already pseudo");
|
|
1497
1497
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1498
1498
|
return e;
|
|
1499
1499
|
if (e instanceof RegExp) {
|
|
1500
1500
|
var t = this.s(this.Ma);
|
|
1501
|
-
return
|
|
1501
|
+
return rn(this, t, e), t;
|
|
1502
1502
|
}
|
|
1503
1503
|
if (e instanceof Date)
|
|
1504
1504
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1512,7 +1512,7 @@ L.Ia = function(e) {
|
|
|
1512
1512
|
}, !!t);
|
|
1513
1513
|
}
|
|
1514
1514
|
if (Array.isArray(e)) {
|
|
1515
|
-
t =
|
|
1515
|
+
t = We(this);
|
|
1516
1516
|
for (var r = 0; r < e.length; r++)
|
|
1517
1517
|
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1518
1518
|
return t;
|
|
@@ -1522,7 +1522,7 @@ L.Ia = function(e) {
|
|
|
1522
1522
|
this.g(t, r, this.Ia(e[r]));
|
|
1523
1523
|
return t;
|
|
1524
1524
|
};
|
|
1525
|
-
|
|
1525
|
+
F.R = function(e, t) {
|
|
1526
1526
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1527
1527
|
return e;
|
|
1528
1528
|
if (!(e instanceof O))
|
|
@@ -1553,15 +1553,15 @@ L.R = function(e, t) {
|
|
|
1553
1553
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1554
1554
|
};
|
|
1555
1555
|
function ge(e, t) {
|
|
1556
|
-
for (var n =
|
|
1556
|
+
for (var n = We(e), r = Object.getOwnPropertyNames(t), i = 0; i < r.length; i++)
|
|
1557
1557
|
e.g(n, r[i], t[r[i]]);
|
|
1558
1558
|
return n;
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function hr(e, t) {
|
|
1561
1561
|
var n = [], r;
|
|
1562
1562
|
for (r in t.h)
|
|
1563
1563
|
n[r] = e.G(t, r);
|
|
1564
|
-
return n.length =
|
|
1564
|
+
return n.length = nn(e.G(t, "length")) || 0, n;
|
|
1565
1565
|
}
|
|
1566
1566
|
function be(e, t) {
|
|
1567
1567
|
switch (typeof t) {
|
|
@@ -1574,7 +1574,7 @@ function be(e, t) {
|
|
|
1574
1574
|
}
|
|
1575
1575
|
return t ? t.xa : null;
|
|
1576
1576
|
}
|
|
1577
|
-
|
|
1577
|
+
F.G = function(e, t) {
|
|
1578
1578
|
if (this.P)
|
|
1579
1579
|
throw Error("Getter not supported in that context");
|
|
1580
1580
|
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof O))
|
|
@@ -1608,13 +1608,13 @@ function St(e, t, n) {
|
|
|
1608
1608
|
while (t = be(e, t));
|
|
1609
1609
|
return !1;
|
|
1610
1610
|
}
|
|
1611
|
-
|
|
1611
|
+
F.g = function(e, t, n, r) {
|
|
1612
1612
|
if (this.Ka)
|
|
1613
1613
|
throw Error("Setter not supported in that context");
|
|
1614
1614
|
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof O))
|
|
1615
1615
|
throw TypeError("Expecting native value or pseudo object");
|
|
1616
1616
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1617
|
-
var i = !this.o ||
|
|
1617
|
+
var i = !this.o || sn(this).S;
|
|
1618
1618
|
if (e instanceof O) {
|
|
1619
1619
|
if (q(this, e, this.J)) {
|
|
1620
1620
|
var a = Qe(t);
|
|
@@ -1630,7 +1630,7 @@ L.g = function(e, t, n, r) {
|
|
|
1630
1630
|
return;
|
|
1631
1631
|
n = r.value;
|
|
1632
1632
|
}
|
|
1633
|
-
if (n =
|
|
1633
|
+
if (n = nn(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < a)
|
|
1634
1634
|
for (s in e.h) {
|
|
1635
1635
|
var s = Qe(s);
|
|
1636
1636
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1670,24 +1670,24 @@ L.g = function(e, t, n, r) {
|
|
|
1670
1670
|
} else
|
|
1671
1671
|
i && w(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1672
1672
|
};
|
|
1673
|
-
|
|
1673
|
+
F.g.ac = function() {
|
|
1674
1674
|
throw Error("Placeholder getter");
|
|
1675
1675
|
};
|
|
1676
|
-
|
|
1676
|
+
F.g.bc = function() {
|
|
1677
1677
|
throw Error("Placeholder setter");
|
|
1678
1678
|
};
|
|
1679
|
-
function
|
|
1679
|
+
function X(e, t, n, r) {
|
|
1680
1680
|
e.g(t.h.prototype, n, e.i(r, !1), k);
|
|
1681
1681
|
}
|
|
1682
1682
|
function qe(e, t, n, r) {
|
|
1683
1683
|
e.g(t.h.prototype, n, e.ub(r), k);
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1685
|
+
function sn(e) {
|
|
1686
1686
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1687
1687
|
throw Error("No scope found");
|
|
1688
1688
|
return e;
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1690
|
+
function Jt(e, t, n) {
|
|
1691
1691
|
var r = !1;
|
|
1692
1692
|
if (n && n.S)
|
|
1693
1693
|
r = !0;
|
|
@@ -1695,15 +1695,15 @@ function qt(e, t, n) {
|
|
|
1695
1695
|
var i = t.body && t.body[0];
|
|
1696
1696
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (r = !0);
|
|
1697
1697
|
}
|
|
1698
|
-
return i = e.s(null), r = new
|
|
1698
|
+
return i = e.s(null), r = new gr(n, r, i), n || ci(e, r.object), nt(e, t, r), r;
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1700
|
+
function ln(e, t, n) {
|
|
1701
1701
|
if (!t)
|
|
1702
1702
|
throw Error("parentScope required");
|
|
1703
|
-
return e = n || e.s(null), new
|
|
1703
|
+
return e = n || e.s(null), new gr(t, t.S, e);
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1706
|
-
for (var n =
|
|
1705
|
+
function cn(e, t) {
|
|
1706
|
+
for (var n = sn(e); n && n !== e.N; ) {
|
|
1707
1707
|
if (t in n.object.h)
|
|
1708
1708
|
return n.object.h[t];
|
|
1709
1709
|
n = n.Va;
|
|
@@ -1712,8 +1712,8 @@ function un(e, t) {
|
|
|
1712
1712
|
return e.G(n.object, t);
|
|
1713
1713
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1716
|
-
for (var r =
|
|
1715
|
+
function pr(e, t, n) {
|
|
1716
|
+
for (var r = sn(e), i = r.S; r && r !== e.N; ) {
|
|
1717
1717
|
if (t in r.object.h) {
|
|
1718
1718
|
try {
|
|
1719
1719
|
r.object.h[t] = n;
|
|
@@ -1774,20 +1774,20 @@ function nt(e, t, n) {
|
|
|
1774
1774
|
t.jb = r;
|
|
1775
1775
|
}
|
|
1776
1776
|
for (s in r)
|
|
1777
|
-
r[s] === !0 ? e.g(n.object, s, void 0,
|
|
1777
|
+
r[s] === !0 ? e.g(n.object, s, void 0, Xn) : e.g(n.object, s, an(e, r[s], n), Xn);
|
|
1778
1778
|
return r;
|
|
1779
1779
|
}
|
|
1780
1780
|
function xe(e) {
|
|
1781
1781
|
return e.o[e.o.length - 1].isConstructor;
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1784
|
-
return t[0] ===
|
|
1783
|
+
function un(e, t) {
|
|
1784
|
+
return t[0] === Le ? cn(e, t[1]) : e.G(t[0], t[1]);
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1787
|
-
return t[0] ===
|
|
1786
|
+
function dn(e, t, n) {
|
|
1787
|
+
return t[0] === Le ? pr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1788
1788
|
}
|
|
1789
1789
|
function w(e, t, n) {
|
|
1790
|
-
throw e.N ? (n !== void 0 && t instanceof O && (t = e.Aa(t),
|
|
1790
|
+
throw e.N ? (n !== void 0 && t instanceof O && (t = e.Aa(t), Xt(e, t, n)), at(e, 4, t), fr) : n === void 0 ? t : n;
|
|
1791
1791
|
}
|
|
1792
1792
|
function at(e, t, n, r) {
|
|
1793
1793
|
if (t === 0)
|
|
@@ -1865,7 +1865,7 @@ function te(e, t) {
|
|
|
1865
1865
|
}
|
|
1866
1866
|
return "???";
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function qn(e, t, n) {
|
|
1869
1869
|
var r = e.o[e.o.length - 1], i = Array.from(n), a = i.shift();
|
|
1870
1870
|
n = Math.max(Number(i.shift() || 0), 0);
|
|
1871
1871
|
var s = e.ya();
|
|
@@ -1874,20 +1874,20 @@ function Zn(e, t, n) {
|
|
|
1874
1874
|
s.type = "CallExpression", r = r.scope;
|
|
1875
1875
|
} else {
|
|
1876
1876
|
try {
|
|
1877
|
-
var f =
|
|
1877
|
+
var f = Ue(String(a), "taskCode" + e.ic++);
|
|
1878
1878
|
} catch (g) {
|
|
1879
1879
|
w(e, e.T, "Invalid code: " + g.message);
|
|
1880
1880
|
}
|
|
1881
1881
|
s.type = "EvalProgram_", s.body = f.body, r = r.node.arguments[0], xt(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, i.length = 0;
|
|
1882
1882
|
}
|
|
1883
|
-
return t = new
|
|
1883
|
+
return t = new Si(c, i, r, s, t ? n : -1), mr(e, t, n), t.Db;
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function mr(e, t, n) {
|
|
1886
1886
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, i) {
|
|
1887
1887
|
return r.time - i.time;
|
|
1888
1888
|
});
|
|
1889
1889
|
}
|
|
1890
|
-
function
|
|
1890
|
+
function Zn(e, t) {
|
|
1891
1891
|
for (var n = 0; n < e.ca.length; n++)
|
|
1892
1892
|
if (e.ca[n].Db == t) {
|
|
1893
1893
|
e.ca.splice(n, 1);
|
|
@@ -1901,45 +1901,45 @@ function st(e, t, n) {
|
|
|
1901
1901
|
var r = e.ya();
|
|
1902
1902
|
return r.type = "CallExpression", e = new C(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1903
1903
|
}
|
|
1904
|
-
function
|
|
1904
|
+
function fn(e, t, n, r) {
|
|
1905
1905
|
if (!e.Ka)
|
|
1906
1906
|
throw Error("Unexpected call to createSetter");
|
|
1907
1907
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1908
1908
|
var i = e.ya();
|
|
1909
1909
|
return i.type = "CallExpression", e = new C(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1911
|
+
function Gt(e, t) {
|
|
1912
1912
|
return t == null ? e.Na : t instanceof O ? t : (e = e.s(be(e, t)), e.data = t, e);
|
|
1913
1913
|
}
|
|
1914
|
-
|
|
1914
|
+
F.Xb = function() {
|
|
1915
1915
|
return this.N;
|
|
1916
1916
|
};
|
|
1917
|
-
|
|
1917
|
+
F.Yb = function() {
|
|
1918
1918
|
return this.o;
|
|
1919
1919
|
};
|
|
1920
|
-
|
|
1920
|
+
F.ec = function(e) {
|
|
1921
1921
|
this.o = e;
|
|
1922
1922
|
};
|
|
1923
1923
|
function C(e, t) {
|
|
1924
1924
|
this.node = e, this.scope = t;
|
|
1925
1925
|
}
|
|
1926
|
-
function
|
|
1926
|
+
function gr(e, t, n) {
|
|
1927
1927
|
this.Va = e, this.S = t, this.object = n;
|
|
1928
1928
|
}
|
|
1929
1929
|
function O(e) {
|
|
1930
1930
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1931
1931
|
}
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1932
|
+
F = O.prototype;
|
|
1933
|
+
F.xa = null;
|
|
1934
|
+
F.H = "Object";
|
|
1935
|
+
F.data = null;
|
|
1936
|
+
F.toString = function() {
|
|
1937
1937
|
if (!Ze)
|
|
1938
1938
|
return "[object Interpreter.Object]";
|
|
1939
1939
|
if (!(this instanceof O))
|
|
1940
1940
|
return String(this);
|
|
1941
1941
|
if (this.H === "Array") {
|
|
1942
|
-
var e =
|
|
1942
|
+
var e = Jn;
|
|
1943
1943
|
e.push(this);
|
|
1944
1944
|
try {
|
|
1945
1945
|
var t = [], n = this.h.length, r = !1;
|
|
@@ -1955,7 +1955,7 @@ L.toString = function() {
|
|
|
1955
1955
|
return t.join(",");
|
|
1956
1956
|
}
|
|
1957
1957
|
if (this.H === "Error") {
|
|
1958
|
-
if (e =
|
|
1958
|
+
if (e = Jn, e.indexOf(this) !== -1)
|
|
1959
1959
|
return "[object Error]";
|
|
1960
1960
|
n = this;
|
|
1961
1961
|
do
|
|
@@ -1981,17 +1981,17 @@ L.toString = function() {
|
|
|
1981
1981
|
}
|
|
1982
1982
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1983
1983
|
};
|
|
1984
|
-
|
|
1984
|
+
F.valueOf = function() {
|
|
1985
1985
|
return !Ze || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1986
1986
|
};
|
|
1987
|
-
function
|
|
1988
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++
|
|
1987
|
+
function Si(e, t, n, r, i) {
|
|
1988
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++ki, this.time = 0;
|
|
1989
1989
|
}
|
|
1990
|
-
var
|
|
1990
|
+
var ki = 0;
|
|
1991
1991
|
p.prototype.stepArrayExpression = function(e, t, n) {
|
|
1992
1992
|
n = n.elements;
|
|
1993
1993
|
var r = t.A || 0;
|
|
1994
|
-
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa =
|
|
1994
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = We(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
1995
1995
|
if (n[r])
|
|
1996
1996
|
return t.A = r, new C(n[r], t.scope);
|
|
1997
1997
|
r++;
|
|
@@ -2002,7 +2002,7 @@ p.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2002
2002
|
if (!t.ja)
|
|
2003
2003
|
return t.ja = !0, t = new C(n.left, t.scope), t.sa = !0, t;
|
|
2004
2004
|
if (!t.Da)
|
|
2005
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
2005
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = un(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, st(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new C(n.right, t.scope));
|
|
2006
2006
|
if (t.ta)
|
|
2007
2007
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2008
2008
|
else {
|
|
@@ -2047,8 +2047,8 @@ p.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2047
2047
|
default:
|
|
2048
2048
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2049
2049
|
}
|
|
2050
|
-
if (n =
|
|
2051
|
-
return t.ta = !0, t.ib = r,
|
|
2050
|
+
if (n = dn(this, t.Fa, r))
|
|
2051
|
+
return t.ta = !0, t.ib = r, fn(this, n, t.Fa, r);
|
|
2052
2052
|
e.pop(), e[e.length - 1].value = r;
|
|
2053
2053
|
}
|
|
2054
2054
|
};
|
|
@@ -2148,7 +2148,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2148
2148
|
t.ia = 2;
|
|
2149
2149
|
var i = t.value;
|
|
2150
2150
|
if (Array.isArray(i)) {
|
|
2151
|
-
if (t.U =
|
|
2151
|
+
if (t.U = un(this, i), i[0] === Le ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2152
2152
|
return t.ia = 1, st(this, i, t.value);
|
|
2153
2153
|
} else
|
|
2154
2154
|
t.U = i;
|
|
@@ -2159,7 +2159,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2159
2159
|
return new C(n.arguments[t.A++], t.scope);
|
|
2160
2160
|
if (n.type === "NewExpression") {
|
|
2161
2161
|
if (i instanceof O && !i.Ab || w(this, this.j, te(this, n.callee) + " is not a constructor"), i === this.qa)
|
|
2162
|
-
t.B =
|
|
2162
|
+
t.B = We(this);
|
|
2163
2163
|
else {
|
|
2164
2164
|
var a = i.h.prototype;
|
|
2165
2165
|
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
@@ -2172,30 +2172,30 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2172
2172
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2173
2173
|
else {
|
|
2174
2174
|
if (t.eb = !0, i instanceof O || w(this, this.j, te(this, n.callee) + " is not a function"), e = i.node) {
|
|
2175
|
-
for (n =
|
|
2175
|
+
for (n = Jt(this, e.body, i.Va), r = We(this), i = 0; i < t.F.length; i++)
|
|
2176
2176
|
this.g(r, i, t.F[i]);
|
|
2177
2177
|
for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
|
|
2178
2178
|
this.g(n.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2179
|
-
return n.S || (t.B =
|
|
2179
|
+
return n.S || (t.B = Gt(this, t.B)), this.g(n.object, "this", t.B, tn), t.value = void 0, new C(e.body, n);
|
|
2180
2180
|
}
|
|
2181
2181
|
if (i.eval)
|
|
2182
2182
|
if (i = t.F[0], typeof i != "string")
|
|
2183
2183
|
t.value = i;
|
|
2184
2184
|
else {
|
|
2185
2185
|
try {
|
|
2186
|
-
r =
|
|
2186
|
+
r = Ue(String(i), "eval" + this.Hb++);
|
|
2187
2187
|
} catch (c) {
|
|
2188
2188
|
w(this, this.T, "Invalid code: " + c.message);
|
|
2189
2189
|
}
|
|
2190
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, xt(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n =
|
|
2190
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, xt(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Jt(this, r, n) : nt(this, r, n), this.value = void 0, new C(i, n);
|
|
2191
2191
|
}
|
|
2192
2192
|
else if (i.Ta)
|
|
2193
|
-
t.scope.S || (t.B =
|
|
2193
|
+
t.scope.S || (t.B = Gt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2194
2194
|
else if (i.Za) {
|
|
2195
2195
|
var s = this;
|
|
2196
2196
|
r = i.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(c) {
|
|
2197
2197
|
t.value = c, s.za = !1;
|
|
2198
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2198
|
+
}), this.za = !0, t.scope.S || (t.B = Gt(this, t.B)), i.Za.apply(t.B, r);
|
|
2199
2199
|
} else
|
|
2200
2200
|
w(this, this.j, te(this, n.callee) + " is not callable");
|
|
2201
2201
|
}
|
|
@@ -2273,11 +2273,11 @@ p.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2273
2273
|
}
|
|
2274
2274
|
if (!t.wb)
|
|
2275
2275
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2276
|
-
t.pa = [
|
|
2276
|
+
t.pa = [Le, e.fa[0].id.name];
|
|
2277
2277
|
else
|
|
2278
2278
|
return t.pa = null, t = new C(e, t.scope), t.sa = !0, t;
|
|
2279
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2280
|
-
return
|
|
2279
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = dn(this, t.pa, e)))
|
|
2280
|
+
return fn(this, r, t.pa, e);
|
|
2281
2281
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2282
2282
|
return new C(n.body, t.scope);
|
|
2283
2283
|
};
|
|
@@ -2306,13 +2306,13 @@ p.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2306
2306
|
e.pop();
|
|
2307
2307
|
};
|
|
2308
2308
|
p.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2309
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2309
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = ln(this, e)), t.value = an(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, tn);
|
|
2310
2310
|
};
|
|
2311
2311
|
p.prototype.stepIdentifier = function(e, t, n) {
|
|
2312
2312
|
if (e.pop(), t.sa)
|
|
2313
|
-
e[e.length - 1].value = [
|
|
2313
|
+
e[e.length - 1].value = [Le, n.name];
|
|
2314
2314
|
else {
|
|
2315
|
-
if (t =
|
|
2315
|
+
if (t = cn(this, n.name), this.P)
|
|
2316
2316
|
return st(this, t, this.Na);
|
|
2317
2317
|
e[e.length - 1].value = t;
|
|
2318
2318
|
}
|
|
@@ -2322,7 +2322,7 @@ p.prototype.stepLabeledStatement = function(e, t, n) {
|
|
|
2322
2322
|
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new C(n.body, t.scope), t.labels = e, t;
|
|
2323
2323
|
};
|
|
2324
2324
|
p.prototype.stepLiteral = function(e, t, n) {
|
|
2325
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2325
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), rn(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2326
2326
|
};
|
|
2327
2327
|
p.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2328
2328
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
@@ -2425,7 +2425,7 @@ p.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2425
2425
|
}
|
|
2426
2426
|
};
|
|
2427
2427
|
p.prototype.stepThisExpression = function(e) {
|
|
2428
|
-
e.pop(), e[e.length - 1].value =
|
|
2428
|
+
e.pop(), e[e.length - 1].value = cn(this, "this");
|
|
2429
2429
|
};
|
|
2430
2430
|
p.prototype.stepThrowStatement = function(e, t, n) {
|
|
2431
2431
|
if (t.ka)
|
|
@@ -2437,7 +2437,7 @@ p.prototype.stepTryStatement = function(e, t, n) {
|
|
|
2437
2437
|
if (!t.Rb)
|
|
2438
2438
|
return t.Rb = !0, new C(n.block, t.scope);
|
|
2439
2439
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2440
|
-
return t.Tb = !0, e =
|
|
2440
|
+
return t.Tb = !0, e = ln(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new C(n.Ea.body, e);
|
|
2441
2441
|
if (!t.Sb && n.fb)
|
|
2442
2442
|
return t.Sb = !0, new C(n.fb, t.scope);
|
|
2443
2443
|
e.pop(), t.ea && at(this, t.ea.type, t.ea.value, t.ea.label);
|
|
@@ -2463,7 +2463,7 @@ p.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2463
2463
|
case "delete":
|
|
2464
2464
|
if (n = !0, Array.isArray(r)) {
|
|
2465
2465
|
var i = r[0];
|
|
2466
|
-
i ===
|
|
2466
|
+
i === Le && (i = t.scope), r = String(r[1]);
|
|
2467
2467
|
try {
|
|
2468
2468
|
delete i.h[r];
|
|
2469
2469
|
} catch {
|
|
@@ -2487,7 +2487,7 @@ p.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2487
2487
|
if (!t.ja)
|
|
2488
2488
|
return t.ja = !0, e = new C(n.K, t.scope), e.sa = !0, e;
|
|
2489
2489
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2490
|
-
var r =
|
|
2490
|
+
var r = un(this, t.Ga);
|
|
2491
2491
|
if (t.ma = r, this.P)
|
|
2492
2492
|
return t.Ba = !0, st(this, r, t.Ga);
|
|
2493
2493
|
}
|
|
@@ -2500,15 +2500,15 @@ p.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2500
2500
|
i = r - 1;
|
|
2501
2501
|
else
|
|
2502
2502
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2503
|
-
if (n = n.prefix ? i : r, r =
|
|
2504
|
-
return t.ta = !0, t.ib = n,
|
|
2503
|
+
if (n = n.prefix ? i : r, r = dn(this, t.Ga, i))
|
|
2504
|
+
return t.ta = !0, t.ib = n, fn(this, r, t.Ga, i);
|
|
2505
2505
|
e.pop(), e[e.length - 1].value = n;
|
|
2506
2506
|
}
|
|
2507
2507
|
};
|
|
2508
2508
|
p.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2509
2509
|
n = n.fa;
|
|
2510
2510
|
var r = t.A || 0, i = n[r];
|
|
2511
|
-
for (t.Bb && i && (
|
|
2511
|
+
for (t.Bb && i && (pr(this, i.id.name, t.value), t.Bb = !1, i = n[++r]); i; ) {
|
|
2512
2512
|
if (i.ua)
|
|
2513
2513
|
return t.A = r, t.Bb = !0, t.Pa = i.id.name, new C(i.ua, t.scope);
|
|
2514
2514
|
i = n[++r];
|
|
@@ -2516,7 +2516,7 @@ p.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2516
2516
|
e.pop();
|
|
2517
2517
|
};
|
|
2518
2518
|
p.prototype.stepWithStatement = function(e, t, n) {
|
|
2519
|
-
return t.Ca ? (e.pop(), e =
|
|
2519
|
+
return t.Ca ? (e.pop(), e = ln(this, t.scope, t.value), new C(n.body, e)) : (t.Ca = !0, new C(n.object, t.scope));
|
|
2520
2520
|
};
|
|
2521
2521
|
p.prototype.stepWhileStatement = p.prototype.stepDoWhileStatement;
|
|
2522
2522
|
we.Interpreter = p;
|
|
@@ -2535,7 +2535,7 @@ p.prototype.getGlobalScope = p.prototype.Xb;
|
|
|
2535
2535
|
p.prototype.getStateStack = p.prototype.Yb;
|
|
2536
2536
|
p.prototype.setStateStack = p.prototype.ec;
|
|
2537
2537
|
p.VALUE_IN_DESCRIPTOR = tt;
|
|
2538
|
-
const
|
|
2538
|
+
const Ci = (e) => e.split(`
|
|
2539
2539
|
`).map((t) => {
|
|
2540
2540
|
const n = t.trim();
|
|
2541
2541
|
if (t.includes("__awaiter"))
|
|
@@ -2548,7 +2548,7 @@ const wi = (e) => e.split(`
|
|
|
2548
2548
|
${c}
|
|
2549
2549
|
`;
|
|
2550
2550
|
}).filter(Boolean).join(`
|
|
2551
|
-
`),
|
|
2551
|
+
`), Qn = (e) => e + "JSON", wi = ({
|
|
2552
2552
|
builder: e,
|
|
2553
2553
|
context: t,
|
|
2554
2554
|
event: n,
|
|
@@ -2560,16 +2560,16 @@ const wi = (e) => e.split(`
|
|
|
2560
2560
|
const c = {
|
|
2561
2561
|
...r,
|
|
2562
2562
|
...i
|
|
2563
|
-
}, f =
|
|
2563
|
+
}, f = cr({
|
|
2564
2564
|
builder: e,
|
|
2565
2565
|
context: t,
|
|
2566
2566
|
event: n,
|
|
2567
2567
|
state: c
|
|
2568
2568
|
}), g = f.map(([$]) => {
|
|
2569
|
-
const N =
|
|
2569
|
+
const N = Qn($);
|
|
2570
2570
|
return `var ${$} = ${N} === undefined ? undefined : JSON.parse(${N});`;
|
|
2571
2571
|
}).join(`
|
|
2572
|
-
`), b =
|
|
2572
|
+
`), b = Ci(s);
|
|
2573
2573
|
if (b === "") {
|
|
2574
2574
|
ot.warn("Skipping evaluation of empty code block.");
|
|
2575
2575
|
return;
|
|
@@ -2582,27 +2582,27 @@ function theFunction() {
|
|
|
2582
2582
|
}
|
|
2583
2583
|
theFunction();
|
|
2584
2584
|
`, j = ($, N) => {
|
|
2585
|
-
const
|
|
2586
|
-
a == null || a(
|
|
2587
|
-
},
|
|
2588
|
-
f.forEach(([
|
|
2589
|
-
const
|
|
2590
|
-
$.setProperty(N,
|
|
2585
|
+
const v = dr(c, $, N);
|
|
2586
|
+
a == null || a(v);
|
|
2587
|
+
}, D = function($, N) {
|
|
2588
|
+
f.forEach(([v, W]) => {
|
|
2589
|
+
const G = JSON.stringify(W);
|
|
2590
|
+
$.setProperty(N, Qn(v), G);
|
|
2591
2591
|
}), $.setProperty(N, "setRootState", $.createNativeFunction(j));
|
|
2592
|
-
}, V = new p(m,
|
|
2592
|
+
}, V = new p(m, D);
|
|
2593
2593
|
return V.run(), V.pseudoToNative(V.value);
|
|
2594
2594
|
};
|
|
2595
|
-
function
|
|
2595
|
+
function Ei() {
|
|
2596
2596
|
var e;
|
|
2597
|
-
return typeof process != "undefined" &&
|
|
2597
|
+
return typeof process != "undefined" && yt((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2598
2598
|
}
|
|
2599
|
-
const
|
|
2599
|
+
const Ii = () => {
|
|
2600
2600
|
var r;
|
|
2601
|
-
if (!
|
|
2601
|
+
if (!Ei())
|
|
2602
2602
|
return !1;
|
|
2603
2603
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2604
2604
|
return e && t && !n ? (ot.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;
|
|
2605
|
-
},
|
|
2605
|
+
}, Ti = (e) => De() || Ii() ? ai(e) : wi(e), me = class me {
|
|
2606
2606
|
static getCacheKey(t) {
|
|
2607
2607
|
return JSON.stringify({
|
|
2608
2608
|
...t,
|
|
@@ -2620,8 +2620,8 @@ const Ti = () => {
|
|
|
2620
2620
|
});
|
|
2621
2621
|
}
|
|
2622
2622
|
};
|
|
2623
|
-
|
|
2624
|
-
let
|
|
2623
|
+
Kt(me, "cacheLimit", 20), Kt(me, "cache", /* @__PURE__ */ new Map());
|
|
2624
|
+
let Fe = me;
|
|
2625
2625
|
function rt({
|
|
2626
2626
|
code: e,
|
|
2627
2627
|
context: t,
|
|
@@ -2635,10 +2635,10 @@ function rt({
|
|
|
2635
2635
|
if (e === "")
|
|
2636
2636
|
return;
|
|
2637
2637
|
const f = {
|
|
2638
|
-
code:
|
|
2638
|
+
code: oi(e, {
|
|
2639
2639
|
isExpression: s
|
|
2640
2640
|
}),
|
|
2641
|
-
builder:
|
|
2641
|
+
builder: ii(),
|
|
2642
2642
|
context: t,
|
|
2643
2643
|
event: a,
|
|
2644
2644
|
rootSetState: i,
|
|
@@ -2646,15 +2646,15 @@ function rt({
|
|
|
2646
2646
|
localState: n
|
|
2647
2647
|
};
|
|
2648
2648
|
if (c) {
|
|
2649
|
-
const g =
|
|
2649
|
+
const g = Fe.getCacheKey(f), b = Fe.getCachedValue(g);
|
|
2650
2650
|
if (b)
|
|
2651
2651
|
return b.value;
|
|
2652
2652
|
}
|
|
2653
2653
|
try {
|
|
2654
|
-
const g =
|
|
2654
|
+
const g = Ti(f);
|
|
2655
2655
|
if (c) {
|
|
2656
|
-
const b =
|
|
2657
|
-
|
|
2656
|
+
const b = Fe.getCacheKey(f);
|
|
2657
|
+
Fe.setCachedValue(b, g);
|
|
2658
2658
|
}
|
|
2659
2659
|
return g;
|
|
2660
2660
|
} catch (g) {
|
|
@@ -2664,7 +2664,7 @@ function rt({
|
|
|
2664
2664
|
return;
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
|
-
const
|
|
2667
|
+
const Ai = ({
|
|
2668
2668
|
block: e,
|
|
2669
2669
|
context: t,
|
|
2670
2670
|
localState: n,
|
|
@@ -2673,7 +2673,7 @@ const ji = ({
|
|
|
2673
2673
|
}) => {
|
|
2674
2674
|
if (!e.bindings)
|
|
2675
2675
|
return e;
|
|
2676
|
-
const a =
|
|
2676
|
+
const a = Zt(e), s = {
|
|
2677
2677
|
...a,
|
|
2678
2678
|
properties: {
|
|
2679
2679
|
...a.properties
|
|
@@ -2691,7 +2691,7 @@ const ji = ({
|
|
|
2691
2691
|
context: t,
|
|
2692
2692
|
enableCache: !0
|
|
2693
2693
|
});
|
|
2694
|
-
|
|
2694
|
+
dr(s, c, g);
|
|
2695
2695
|
}
|
|
2696
2696
|
return s;
|
|
2697
2697
|
};
|
|
@@ -2704,7 +2704,7 @@ function bt({
|
|
|
2704
2704
|
rootSetState: a
|
|
2705
2705
|
}) {
|
|
2706
2706
|
const s = e;
|
|
2707
|
-
return n ?
|
|
2707
|
+
return n ? Ai({
|
|
2708
2708
|
block: s,
|
|
2709
2709
|
localState: r,
|
|
2710
2710
|
rootState: i,
|
|
@@ -2712,36 +2712,36 @@ function bt({
|
|
|
2712
2712
|
context: t
|
|
2713
2713
|
}) : s;
|
|
2714
2714
|
}
|
|
2715
|
-
const
|
|
2715
|
+
const hn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", yr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2716
2716
|
if (typeof r == "string")
|
|
2717
|
-
return `${
|
|
2718
|
-
}).filter(
|
|
2717
|
+
return `${hn(n)}: ${r};`;
|
|
2718
|
+
}).filter(yt), ji = (e) => yr(e).join(`
|
|
2719
2719
|
`), mt = ({
|
|
2720
2720
|
mediaQuery: e,
|
|
2721
2721
|
className: t,
|
|
2722
2722
|
styles: n
|
|
2723
2723
|
}) => {
|
|
2724
2724
|
const r = `.${t} {
|
|
2725
|
-
${
|
|
2725
|
+
${ji(n)}
|
|
2726
2726
|
}`;
|
|
2727
2727
|
return e ? `${e} {
|
|
2728
2728
|
${r}
|
|
2729
2729
|
}` : r;
|
|
2730
2730
|
};
|
|
2731
|
-
function
|
|
2731
|
+
function Ri({
|
|
2732
2732
|
style: e
|
|
2733
2733
|
}) {
|
|
2734
2734
|
return e;
|
|
2735
2735
|
}
|
|
2736
|
-
const
|
|
2736
|
+
const Oi = ({
|
|
2737
2737
|
block: e,
|
|
2738
2738
|
context: t
|
|
2739
|
-
}) =>
|
|
2739
|
+
}) => vr(Ri({
|
|
2740
2740
|
style: e.style || {},
|
|
2741
2741
|
context: t,
|
|
2742
2742
|
block: e
|
|
2743
2743
|
}));
|
|
2744
|
-
function
|
|
2744
|
+
function vr(e) {
|
|
2745
2745
|
switch (it) {
|
|
2746
2746
|
case "svelte":
|
|
2747
2747
|
case "vue":
|
|
@@ -2755,7 +2755,7 @@ function br(e) {
|
|
|
2755
2755
|
return e;
|
|
2756
2756
|
}
|
|
2757
2757
|
}
|
|
2758
|
-
const
|
|
2758
|
+
const Pi = ({
|
|
2759
2759
|
block: e,
|
|
2760
2760
|
context: t,
|
|
2761
2761
|
registeredComponents: n
|
|
@@ -2777,7 +2777,7 @@ const Ni = ({
|
|
|
2777
2777
|
console.warn(`
|
|
2778
2778
|
Could not find a registered component named "${r}".
|
|
2779
2779
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2780
|
-
},
|
|
2780
|
+
}, Ni = ({
|
|
2781
2781
|
block: e,
|
|
2782
2782
|
context: t
|
|
2783
2783
|
}) => {
|
|
@@ -2811,23 +2811,27 @@ const Ni = ({
|
|
|
2811
2811
|
},
|
|
2812
2812
|
block: r
|
|
2813
2813
|
}));
|
|
2814
|
-
},
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
}
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
} : {}
|
|
2829
|
-
|
|
2830
|
-
|
|
2814
|
+
}, Bi = (e, t) => {
|
|
2815
|
+
var n;
|
|
2816
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
2817
|
+
builderLinkComponent: t
|
|
2818
|
+
} : {};
|
|
2819
|
+
}, Mi = (e, t) => {
|
|
2820
|
+
var n;
|
|
2821
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
2822
|
+
builderComponents: t
|
|
2823
|
+
} : {};
|
|
2824
|
+
}, Fi = (e, t) => {
|
|
2825
|
+
var n;
|
|
2826
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
2827
|
+
builderBlock: t
|
|
2828
|
+
} : {};
|
|
2829
|
+
}, Di = (e, t) => {
|
|
2830
|
+
var n;
|
|
2831
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
2832
|
+
builderContext: t
|
|
2833
|
+
} : {};
|
|
2834
|
+
}, br = {
|
|
2831
2835
|
small: {
|
|
2832
2836
|
min: 320,
|
|
2833
2837
|
default: 321,
|
|
@@ -2843,11 +2847,11 @@ const Ni = ({
|
|
|
2843
2847
|
default: 991,
|
|
2844
2848
|
max: 1200
|
|
2845
2849
|
}
|
|
2846
|
-
},
|
|
2850
|
+
}, er = (e, t = br) => `@media (max-width: ${t[e].max}px)`, xr = ({
|
|
2847
2851
|
small: e,
|
|
2848
2852
|
medium: t
|
|
2849
2853
|
}) => {
|
|
2850
|
-
const n =
|
|
2854
|
+
const n = Zt(br);
|
|
2851
2855
|
if (!e || !t)
|
|
2852
2856
|
return n;
|
|
2853
2857
|
const r = Math.floor(e / 2);
|
|
@@ -2870,8 +2874,8 @@ const Ni = ({
|
|
|
2870
2874
|
default: a + 1
|
|
2871
2875
|
}, n;
|
|
2872
2876
|
};
|
|
2873
|
-
function
|
|
2874
|
-
return /* @__PURE__ */
|
|
2877
|
+
function kt(e) {
|
|
2878
|
+
return /* @__PURE__ */ y(
|
|
2875
2879
|
"style",
|
|
2876
2880
|
{
|
|
2877
2881
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -2889,9 +2893,9 @@ function Ui(e) {
|
|
|
2889
2893
|
context: e.context.context,
|
|
2890
2894
|
shouldEvaluateBindings: !0
|
|
2891
2895
|
});
|
|
2892
|
-
return
|
|
2896
|
+
return yt(i.hide) ? !i.hide : yt(i.show) ? i.show : !0;
|
|
2893
2897
|
}, n = function() {
|
|
2894
|
-
var N,
|
|
2898
|
+
var N, v, W;
|
|
2895
2899
|
const i = bt({
|
|
2896
2900
|
block: e.block,
|
|
2897
2901
|
localState: e.context.localState,
|
|
@@ -2899,7 +2903,7 @@ function Ui(e) {
|
|
|
2899
2903
|
rootSetState: e.context.rootSetState,
|
|
2900
2904
|
context: e.context.context,
|
|
2901
2905
|
shouldEvaluateBindings: !0
|
|
2902
|
-
}), a = i.responsiveStyles, s = e.context.content, c =
|
|
2906
|
+
}), a = i.responsiveStyles, s = e.context.content, c = xr(
|
|
2903
2907
|
((N = s == null ? void 0 : s.meta) == null ? void 0 : N.breakpoints) || {}
|
|
2904
2908
|
), f = a == null ? void 0 : a.large, g = a == null ? void 0 : a.medium, b = a == null ? void 0 : a.small, m = i.id;
|
|
2905
2909
|
if (!m)
|
|
@@ -2907,29 +2911,29 @@ function Ui(e) {
|
|
|
2907
2911
|
const j = f ? mt({
|
|
2908
2912
|
className: m,
|
|
2909
2913
|
styles: f
|
|
2910
|
-
}) : "",
|
|
2914
|
+
}) : "", D = g ? mt({
|
|
2911
2915
|
className: m,
|
|
2912
2916
|
styles: g,
|
|
2913
|
-
mediaQuery:
|
|
2917
|
+
mediaQuery: er(
|
|
2914
2918
|
"medium",
|
|
2915
2919
|
c
|
|
2916
2920
|
)
|
|
2917
2921
|
}) : "", V = b ? mt({
|
|
2918
2922
|
className: m,
|
|
2919
2923
|
styles: b,
|
|
2920
|
-
mediaQuery:
|
|
2924
|
+
mediaQuery: er(
|
|
2921
2925
|
"small",
|
|
2922
2926
|
c
|
|
2923
2927
|
)
|
|
2924
|
-
}) : "", M = i.animations && i.animations.find((
|
|
2928
|
+
}) : "", M = i.animations && i.animations.find((G) => G.trigger === "hover");
|
|
2925
2929
|
let $ = "";
|
|
2926
2930
|
if (M) {
|
|
2927
|
-
const
|
|
2931
|
+
const G = ((W = (v = M.steps) == null ? void 0 : v[1]) == null ? void 0 : W.styles) || {};
|
|
2928
2932
|
$ = mt({
|
|
2929
2933
|
className: `${m}:hover`,
|
|
2930
2934
|
styles: {
|
|
2931
|
-
...
|
|
2932
|
-
transition: `all ${M.duration}s ${
|
|
2935
|
+
...G,
|
|
2936
|
+
transition: `all ${M.duration}s ${hn(
|
|
2933
2937
|
M.easing
|
|
2934
2938
|
)}`,
|
|
2935
2939
|
transitionDelay: M.delay ? `${M.delay}s` : "0s"
|
|
@@ -2938,17 +2942,17 @@ function Ui(e) {
|
|
|
2938
2942
|
}
|
|
2939
2943
|
return [
|
|
2940
2944
|
j,
|
|
2941
|
-
|
|
2945
|
+
D,
|
|
2942
2946
|
V,
|
|
2943
2947
|
$
|
|
2944
2948
|
].join(" ");
|
|
2945
2949
|
};
|
|
2946
|
-
return /* @__PURE__ */
|
|
2950
|
+
return /* @__PURE__ */ y(K, { children: n() && t() ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(kt, { id: "builderio-block", styles: n() }) }) : null });
|
|
2947
2951
|
}
|
|
2948
2952
|
function Wi(e) {
|
|
2949
2953
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2950
2954
|
}
|
|
2951
|
-
const
|
|
2955
|
+
const Li = (e) => `on${Wi(e)}`, Vi = (e, t) => (n) => rt({
|
|
2952
2956
|
code: e,
|
|
2953
2957
|
context: t.context,
|
|
2954
2958
|
localState: t.localState,
|
|
@@ -2958,14 +2962,14 @@ const Vi = (e) => `on${Wi(e)}`, _i = (e, t) => (n) => rt({
|
|
|
2958
2962
|
isExpression: !1,
|
|
2959
2963
|
enableCache: !0
|
|
2960
2964
|
});
|
|
2961
|
-
function
|
|
2965
|
+
function Sr(e) {
|
|
2962
2966
|
var r;
|
|
2963
2967
|
const t = {}, n = (r = e.block.actions) != null ? r : {};
|
|
2964
2968
|
for (const i in n) {
|
|
2965
2969
|
if (!n.hasOwnProperty(i))
|
|
2966
2970
|
continue;
|
|
2967
2971
|
const a = n[i];
|
|
2968
|
-
let s =
|
|
2972
|
+
let s = Li(i);
|
|
2969
2973
|
if (e.stripPrefix)
|
|
2970
2974
|
switch (it) {
|
|
2971
2975
|
case "vue":
|
|
@@ -2975,49 +2979,49 @@ function kr(e) {
|
|
|
2975
2979
|
s = s.replace("on:", "");
|
|
2976
2980
|
break;
|
|
2977
2981
|
}
|
|
2978
|
-
t[s] =
|
|
2982
|
+
t[s] = Vi(a, e);
|
|
2979
2983
|
}
|
|
2980
2984
|
return t;
|
|
2981
2985
|
}
|
|
2982
|
-
function
|
|
2986
|
+
function _i({
|
|
2983
2987
|
properties: e
|
|
2984
2988
|
}) {
|
|
2985
2989
|
return e;
|
|
2986
2990
|
}
|
|
2987
|
-
const
|
|
2991
|
+
const $i = (e) => ({
|
|
2988
2992
|
href: e.href
|
|
2989
2993
|
});
|
|
2990
|
-
function
|
|
2994
|
+
function pn({
|
|
2991
2995
|
block: e,
|
|
2992
2996
|
context: t
|
|
2993
2997
|
}) {
|
|
2994
2998
|
var r;
|
|
2995
2999
|
const n = {
|
|
2996
|
-
|
|
3000
|
+
...$i(e),
|
|
2997
3001
|
...e.properties,
|
|
2998
3002
|
"builder-id": e.id,
|
|
2999
|
-
style:
|
|
3003
|
+
style: Oi({
|
|
3000
3004
|
block: e,
|
|
3001
3005
|
context: t
|
|
3002
3006
|
}),
|
|
3003
3007
|
[et()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3004
3008
|
};
|
|
3005
|
-
return
|
|
3009
|
+
return _i({
|
|
3006
3010
|
properties: n,
|
|
3007
3011
|
context: t,
|
|
3008
3012
|
block: e
|
|
3009
3013
|
});
|
|
3010
3014
|
}
|
|
3011
|
-
function
|
|
3012
|
-
return /* @__PURE__ */
|
|
3013
|
-
|
|
3015
|
+
function Hi(e) {
|
|
3016
|
+
return /* @__PURE__ */ y(
|
|
3017
|
+
en,
|
|
3014
3018
|
{
|
|
3015
3019
|
TagName: e.Wrapper,
|
|
3016
|
-
attributes:
|
|
3020
|
+
attributes: pn({
|
|
3017
3021
|
block: e.block,
|
|
3018
3022
|
context: e.context
|
|
3019
3023
|
}),
|
|
3020
|
-
actionAttributes:
|
|
3024
|
+
actionAttributes: Sr({
|
|
3021
3025
|
block: e.block,
|
|
3022
3026
|
rootState: e.context.rootState,
|
|
3023
3027
|
rootSetState: e.context.rootSetState,
|
|
@@ -3029,14 +3033,14 @@ function Ki(e) {
|
|
|
3029
3033
|
}
|
|
3030
3034
|
);
|
|
3031
3035
|
}
|
|
3032
|
-
function
|
|
3036
|
+
function Ki(e) {
|
|
3033
3037
|
function t() {
|
|
3034
3038
|
return e.includeBlockProps ? {
|
|
3035
|
-
...
|
|
3039
|
+
...pn({
|
|
3036
3040
|
block: e.block,
|
|
3037
3041
|
context: e.context
|
|
3038
3042
|
}),
|
|
3039
|
-
...
|
|
3043
|
+
...Sr({
|
|
3040
3044
|
block: e.block,
|
|
3041
3045
|
rootState: e.context.rootState,
|
|
3042
3046
|
rootSetState: e.context.rootSetState,
|
|
@@ -3045,9 +3049,9 @@ function Gi(e) {
|
|
|
3045
3049
|
})
|
|
3046
3050
|
} : {};
|
|
3047
3051
|
}
|
|
3048
|
-
return /* @__PURE__ */
|
|
3052
|
+
return /* @__PURE__ */ y(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
3049
3053
|
}
|
|
3050
|
-
const
|
|
3054
|
+
const Gi = ({
|
|
3051
3055
|
componentOptions: e,
|
|
3052
3056
|
builderBlock: t,
|
|
3053
3057
|
context: n,
|
|
@@ -3063,7 +3067,7 @@ const zi = ({
|
|
|
3063
3067
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
3064
3068
|
*/
|
|
3065
3069
|
...i ? {
|
|
3066
|
-
attributes:
|
|
3070
|
+
attributes: pn({
|
|
3067
3071
|
block: t,
|
|
3068
3072
|
context: s
|
|
3069
3073
|
})
|
|
@@ -3077,13 +3081,13 @@ const zi = ({
|
|
|
3077
3081
|
includeBlockProps: i
|
|
3078
3082
|
} : c;
|
|
3079
3083
|
};
|
|
3080
|
-
function
|
|
3084
|
+
function tr(e) {
|
|
3081
3085
|
var n;
|
|
3082
|
-
const t = e.isInteractive ?
|
|
3083
|
-
return /* @__PURE__ */
|
|
3086
|
+
const t = e.isInteractive ? Ki : e.componentRef;
|
|
3087
|
+
return /* @__PURE__ */ y(K, { children: e.componentRef ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(
|
|
3084
3088
|
t,
|
|
3085
3089
|
{
|
|
3086
|
-
...
|
|
3090
|
+
...Gi({
|
|
3087
3091
|
componentOptions: e.componentOptions,
|
|
3088
3092
|
builderBlock: e.builderBlock,
|
|
3089
3093
|
context: e.context,
|
|
@@ -3093,8 +3097,8 @@ function nr(e) {
|
|
|
3093
3097
|
isInteractive: e.isInteractive,
|
|
3094
3098
|
contextValue: e.context
|
|
3095
3099
|
}),
|
|
3096
|
-
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */
|
|
3097
|
-
|
|
3100
|
+
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ y(
|
|
3101
|
+
Ct,
|
|
3098
3102
|
{
|
|
3099
3103
|
block: r,
|
|
3100
3104
|
context: e.context,
|
|
@@ -3106,10 +3110,10 @@ function nr(e) {
|
|
|
3106
3110
|
}
|
|
3107
3111
|
) }) : null });
|
|
3108
3112
|
}
|
|
3109
|
-
function
|
|
3113
|
+
function zi(e) {
|
|
3110
3114
|
const t = e.repeatContext;
|
|
3111
|
-
return /* @__PURE__ */
|
|
3112
|
-
|
|
3115
|
+
return /* @__PURE__ */ y(
|
|
3116
|
+
Ct,
|
|
3113
3117
|
{
|
|
3114
3118
|
block: e.block,
|
|
3115
3119
|
context: t,
|
|
@@ -3118,16 +3122,16 @@ function Yi(e) {
|
|
|
3118
3122
|
}
|
|
3119
3123
|
);
|
|
3120
3124
|
}
|
|
3121
|
-
function
|
|
3125
|
+
function Ct(e) {
|
|
3122
3126
|
var f, g, b;
|
|
3123
3127
|
const t = function() {
|
|
3124
|
-
return
|
|
3128
|
+
return Pi({
|
|
3125
3129
|
block: e.block,
|
|
3126
3130
|
context: e.context,
|
|
3127
3131
|
registeredComponents: e.registeredComponents
|
|
3128
3132
|
});
|
|
3129
3133
|
}, n = function() {
|
|
3130
|
-
return
|
|
3134
|
+
return Ni({
|
|
3131
3135
|
block: e.block,
|
|
3132
3136
|
context: e.context
|
|
3133
3137
|
});
|
|
@@ -3142,8 +3146,8 @@ function wt(e) {
|
|
|
3142
3146
|
shouldEvaluateBindings: !0
|
|
3143
3147
|
});
|
|
3144
3148
|
}, i = function() {
|
|
3145
|
-
var
|
|
3146
|
-
return e.block.tagName === "a" || ((
|
|
3149
|
+
var D;
|
|
3150
|
+
return e.block.tagName === "a" || ((D = r().properties) == null ? void 0 : D.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3147
3151
|
}, a = function() {
|
|
3148
3152
|
var V, M;
|
|
3149
3153
|
if ((V = e.block.repeat) != null && V.collection)
|
|
@@ -3151,19 +3155,19 @@ function wt(e) {
|
|
|
3151
3155
|
const j = "hide" in r() ? r().hide : !1;
|
|
3152
3156
|
return ("show" in r() ? r().show : !0) && !j;
|
|
3153
3157
|
}, s = function() {
|
|
3154
|
-
var
|
|
3155
|
-
return !((
|
|
3158
|
+
var D, V;
|
|
3159
|
+
return !((D = t()) != null && D.component) && !n() ? (V = r().children) != null ? V : [] : [];
|
|
3156
3160
|
}, c = function() {
|
|
3157
|
-
var j,
|
|
3161
|
+
var j, D, V, M;
|
|
3158
3162
|
return {
|
|
3159
3163
|
blockChildren: (j = r().children) != null ? j : [],
|
|
3160
|
-
componentRef: (
|
|
3164
|
+
componentRef: (D = t()) == null ? void 0 : D.component,
|
|
3161
3165
|
componentOptions: {
|
|
3162
|
-
...
|
|
3166
|
+
...ri(r()),
|
|
3163
3167
|
...Fi(t(), r()),
|
|
3164
3168
|
...Di(t(), e.context),
|
|
3165
|
-
...
|
|
3166
|
-
...
|
|
3169
|
+
...Bi(t(), e.linkComponent),
|
|
3170
|
+
...Mi(
|
|
3167
3171
|
t(),
|
|
3168
3172
|
e.registeredComponents
|
|
3169
3173
|
)
|
|
@@ -3176,10 +3180,10 @@ function wt(e) {
|
|
|
3176
3180
|
isInteractive: !((M = t()) != null && M.isRSC)
|
|
3177
3181
|
};
|
|
3178
3182
|
};
|
|
3179
|
-
return /* @__PURE__ */
|
|
3180
|
-
/* @__PURE__ */
|
|
3181
|
-
(f = t()) != null && f.noWrap ? /* @__PURE__ */
|
|
3182
|
-
|
|
3183
|
+
return /* @__PURE__ */ y(K, { children: a() ? /* @__PURE__ */ se(K, { children: [
|
|
3184
|
+
/* @__PURE__ */ y(Ui, { block: e.block, context: e.context }),
|
|
3185
|
+
(f = t()) != null && f.noWrap ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(
|
|
3186
|
+
tr,
|
|
3183
3187
|
{
|
|
3184
3188
|
componentRef: c().componentRef,
|
|
3185
3189
|
componentOptions: c().componentOptions,
|
|
@@ -3191,8 +3195,8 @@ function wt(e) {
|
|
|
3191
3195
|
includeBlockProps: c().includeBlockProps,
|
|
3192
3196
|
isInteractive: c().isInteractive
|
|
3193
3197
|
}
|
|
3194
|
-
) }) : /* @__PURE__ */
|
|
3195
|
-
|
|
3198
|
+
) }) : /* @__PURE__ */ y(K, { children: n() ? /* @__PURE__ */ y(K, { children: (b = n()) == null ? void 0 : b.map((m, j) => /* @__PURE__ */ y(
|
|
3199
|
+
zi,
|
|
3196
3200
|
{
|
|
3197
3201
|
repeatContext: m.context,
|
|
3198
3202
|
block: m.block,
|
|
@@ -3201,14 +3205,14 @@ function wt(e) {
|
|
|
3201
3205
|
},
|
|
3202
3206
|
j
|
|
3203
3207
|
)) }) : /* @__PURE__ */ se(
|
|
3204
|
-
|
|
3208
|
+
Hi,
|
|
3205
3209
|
{
|
|
3206
3210
|
Wrapper: i(),
|
|
3207
3211
|
block: r(),
|
|
3208
3212
|
context: e.context,
|
|
3209
3213
|
children: [
|
|
3210
|
-
/* @__PURE__ */
|
|
3211
|
-
|
|
3214
|
+
/* @__PURE__ */ y(
|
|
3215
|
+
tr,
|
|
3212
3216
|
{
|
|
3213
3217
|
componentRef: c().componentRef,
|
|
3214
3218
|
componentOptions: c().componentOptions,
|
|
@@ -3221,8 +3225,8 @@ function wt(e) {
|
|
|
3221
3225
|
isInteractive: c().isInteractive
|
|
3222
3226
|
}
|
|
3223
3227
|
),
|
|
3224
|
-
(g = s()) == null ? void 0 : g.map((m) => /* @__PURE__ */
|
|
3225
|
-
|
|
3228
|
+
(g = s()) == null ? void 0 : g.map((m) => /* @__PURE__ */ y(
|
|
3229
|
+
Ct,
|
|
3226
3230
|
{
|
|
3227
3231
|
block: m,
|
|
3228
3232
|
registeredComponents: e.registeredComponents,
|
|
@@ -3236,7 +3240,7 @@ function wt(e) {
|
|
|
3236
3240
|
) })
|
|
3237
3241
|
] }) : null });
|
|
3238
3242
|
}
|
|
3239
|
-
function
|
|
3243
|
+
function Yi(e) {
|
|
3240
3244
|
function t() {
|
|
3241
3245
|
var i;
|
|
3242
3246
|
return "builder-blocks" + ((i = e.blocks) != null && i.length ? "" : " no-blocks");
|
|
@@ -3268,7 +3272,7 @@ function Xi(e) {
|
|
|
3268
3272
|
));
|
|
3269
3273
|
}
|
|
3270
3274
|
return /* @__PURE__ */ se(K, { children: [
|
|
3271
|
-
/* @__PURE__ */
|
|
3275
|
+
/* @__PURE__ */ y(
|
|
3272
3276
|
e.BlocksWrapper,
|
|
3273
3277
|
{
|
|
3274
3278
|
className: t() + " props-blocks-wrapper-7cd1560e",
|
|
@@ -3282,17 +3286,17 @@ function Xi(e) {
|
|
|
3282
3286
|
children: e.children
|
|
3283
3287
|
}
|
|
3284
3288
|
),
|
|
3285
|
-
/* @__PURE__ */
|
|
3289
|
+
/* @__PURE__ */ y("style", { children: `.props-blocks-wrapper-7cd1560e {
|
|
3286
3290
|
display: flex;
|
|
3287
3291
|
flex-direction: column;
|
|
3288
3292
|
align-items: stretch;
|
|
3289
3293
|
}` })
|
|
3290
3294
|
] });
|
|
3291
3295
|
}
|
|
3292
|
-
function
|
|
3296
|
+
function mn(e) {
|
|
3293
3297
|
var t, n, r;
|
|
3294
|
-
return /* @__PURE__ */
|
|
3295
|
-
|
|
3298
|
+
return /* @__PURE__ */ y(
|
|
3299
|
+
Yi,
|
|
3296
3300
|
{
|
|
3297
3301
|
blocks: e.blocks,
|
|
3298
3302
|
parent: e.parent,
|
|
@@ -3300,8 +3304,8 @@ function gn(e) {
|
|
|
3300
3304
|
styleProp: e.styleProp,
|
|
3301
3305
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3302
3306
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3303
|
-
children: e.blocks ? /* @__PURE__ */
|
|
3304
|
-
|
|
3307
|
+
children: e.blocks ? /* @__PURE__ */ y(K, { children: (r = e.blocks) == null ? void 0 : r.map((i) => /* @__PURE__ */ y(
|
|
3308
|
+
Ct,
|
|
3305
3309
|
{
|
|
3306
3310
|
block: i,
|
|
3307
3311
|
linkComponent: e.linkComponent,
|
|
@@ -3313,27 +3317,27 @@ function gn(e) {
|
|
|
3313
3317
|
}
|
|
3314
3318
|
);
|
|
3315
3319
|
}
|
|
3316
|
-
const
|
|
3317
|
-
function
|
|
3320
|
+
const Xi = (e) => `builder-columns ${e}-breakpoints`;
|
|
3321
|
+
function Ji(e) {
|
|
3318
3322
|
var M, $;
|
|
3319
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(
|
|
3320
|
-
return
|
|
3321
|
-
}, a = function(
|
|
3323
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(v) {
|
|
3324
|
+
return v.link ? e.builderLinkComponent || "a" : "div";
|
|
3325
|
+
}, a = function(v) {
|
|
3322
3326
|
var W;
|
|
3323
|
-
return ((W = n[
|
|
3324
|
-
}, s = function(
|
|
3325
|
-
const W = t * (n.length - 1) /
|
|
3326
|
-
return `calc(${
|
|
3327
|
+
return ((W = n[v]) == null ? void 0 : W.width) || 100 / n.length;
|
|
3328
|
+
}, s = function(v) {
|
|
3329
|
+
const W = a(v), G = t * (n.length - 1) * (W / 100);
|
|
3330
|
+
return `calc(${W}% - ${G}px)`;
|
|
3327
3331
|
}, c = function({
|
|
3328
|
-
stackedStyle:
|
|
3332
|
+
stackedStyle: v,
|
|
3329
3333
|
desktopStyle: W
|
|
3330
3334
|
}) {
|
|
3331
|
-
return r === "tablet" ?
|
|
3335
|
+
return r === "tablet" ? v : W;
|
|
3332
3336
|
}, f = function({
|
|
3333
|
-
stackedStyle:
|
|
3337
|
+
stackedStyle: v,
|
|
3334
3338
|
desktopStyle: W
|
|
3335
3339
|
}) {
|
|
3336
|
-
return r === "never" ? W :
|
|
3340
|
+
return r === "never" ? W : v;
|
|
3337
3341
|
}, g = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", b = function() {
|
|
3338
3342
|
return {
|
|
3339
3343
|
"--flex-dir": g,
|
|
@@ -3342,19 +3346,19 @@ function qi(e) {
|
|
|
3342
3346
|
desktopStyle: "row"
|
|
3343
3347
|
})
|
|
3344
3348
|
};
|
|
3345
|
-
}, m = function(
|
|
3346
|
-
const W =
|
|
3349
|
+
}, m = function(v) {
|
|
3350
|
+
const W = v === 0 ? 0 : t, G = s(v), oe = `${W}px`, _ = "100%", Q = 0;
|
|
3347
3351
|
return {
|
|
3348
3352
|
...{
|
|
3349
3353
|
display: "flex",
|
|
3350
3354
|
flexDirection: "column",
|
|
3351
3355
|
alignItems: "stretch"
|
|
3352
3356
|
},
|
|
3353
|
-
width:
|
|
3357
|
+
width: G,
|
|
3354
3358
|
["marginLeft"]: oe,
|
|
3355
3359
|
"--column-width-mobile": f({
|
|
3356
3360
|
stackedStyle: _,
|
|
3357
|
-
desktopStyle:
|
|
3361
|
+
desktopStyle: G
|
|
3358
3362
|
}),
|
|
3359
3363
|
"--column-margin-left-mobile": f({
|
|
3360
3364
|
stackedStyle: Q,
|
|
@@ -3362,19 +3366,19 @@ function qi(e) {
|
|
|
3362
3366
|
}),
|
|
3363
3367
|
"--column-width-tablet": c({
|
|
3364
3368
|
stackedStyle: _,
|
|
3365
|
-
desktopStyle:
|
|
3369
|
+
desktopStyle: G
|
|
3366
3370
|
}),
|
|
3367
3371
|
"--column-margin-left-tablet": c({
|
|
3368
3372
|
stackedStyle: Q,
|
|
3369
3373
|
desktopStyle: oe
|
|
3370
3374
|
})
|
|
3371
3375
|
};
|
|
3372
|
-
}, j = function(
|
|
3373
|
-
var
|
|
3374
|
-
return
|
|
3375
|
-
((oe = (
|
|
3376
|
-
)[
|
|
3377
|
-
},
|
|
3376
|
+
}, j = function(v) {
|
|
3377
|
+
var G, oe;
|
|
3378
|
+
return xr(
|
|
3379
|
+
((oe = (G = e.builderContext.content) == null ? void 0 : G.meta) == null ? void 0 : oe.breakpoints) || {}
|
|
3380
|
+
)[v].max;
|
|
3381
|
+
}, D = function() {
|
|
3378
3382
|
return `
|
|
3379
3383
|
@media (max-width: ${j("medium")}px) {
|
|
3380
3384
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3400,33 +3404,33 @@ function qi(e) {
|
|
|
3400
3404
|
}
|
|
3401
3405
|
},
|
|
3402
3406
|
`;
|
|
3403
|
-
}, V = function(
|
|
3407
|
+
}, V = function(v, W) {
|
|
3404
3408
|
return {
|
|
3405
|
-
...
|
|
3406
|
-
href:
|
|
3409
|
+
...v.link ? {
|
|
3410
|
+
href: v.link
|
|
3407
3411
|
} : {},
|
|
3408
3412
|
[et()]: "builder-column",
|
|
3409
|
-
style:
|
|
3413
|
+
style: vr(m(W))
|
|
3410
3414
|
};
|
|
3411
3415
|
};
|
|
3412
3416
|
return /* @__PURE__ */ se(K, { children: [
|
|
3413
3417
|
/* @__PURE__ */ se(
|
|
3414
3418
|
"div",
|
|
3415
3419
|
{
|
|
3416
|
-
className:
|
|
3420
|
+
className: Xi((M = e.builderBlock) == null ? void 0 : M.id) + " div-1de99da7",
|
|
3417
3421
|
style: b(),
|
|
3418
3422
|
children: [
|
|
3419
|
-
/* @__PURE__ */
|
|
3420
|
-
($ = e.columns) == null ? void 0 : $.map((N,
|
|
3421
|
-
|
|
3423
|
+
/* @__PURE__ */ y(kt, { id: "builderio-columns", styles: D() }),
|
|
3424
|
+
($ = e.columns) == null ? void 0 : $.map((N, v) => /* @__PURE__ */ y(
|
|
3425
|
+
en,
|
|
3422
3426
|
{
|
|
3423
3427
|
TagName: i(N),
|
|
3424
3428
|
actionAttributes: {},
|
|
3425
|
-
attributes: V(N,
|
|
3426
|
-
children: /* @__PURE__ */
|
|
3427
|
-
|
|
3429
|
+
attributes: V(N, v),
|
|
3430
|
+
children: /* @__PURE__ */ y(
|
|
3431
|
+
mn,
|
|
3428
3432
|
{
|
|
3429
|
-
path: `component.options.columns.${
|
|
3433
|
+
path: `component.options.columns.${v}.blocks`,
|
|
3430
3434
|
parent: e.builderBlock.id,
|
|
3431
3435
|
styleProp: {
|
|
3432
3436
|
flexGrow: "1"
|
|
@@ -3438,51 +3442,51 @@ function qi(e) {
|
|
|
3438
3442
|
}
|
|
3439
3443
|
)
|
|
3440
3444
|
},
|
|
3441
|
-
|
|
3445
|
+
v
|
|
3442
3446
|
))
|
|
3443
3447
|
]
|
|
3444
3448
|
}
|
|
3445
3449
|
),
|
|
3446
|
-
/* @__PURE__ */
|
|
3450
|
+
/* @__PURE__ */ y("style", { children: `.div-1de99da7 {
|
|
3447
3451
|
display: flex;
|
|
3448
3452
|
line-height: normal;
|
|
3449
3453
|
}` })
|
|
3450
3454
|
] });
|
|
3451
3455
|
}
|
|
3452
|
-
function
|
|
3453
|
-
return /* @__PURE__ */
|
|
3456
|
+
function qi(e) {
|
|
3457
|
+
return /* @__PURE__ */ y("span", { children: e.children });
|
|
3454
3458
|
}
|
|
3455
|
-
function
|
|
3459
|
+
function nr(e) {
|
|
3456
3460
|
return e.replace(/http(s)?:/, "");
|
|
3457
3461
|
}
|
|
3458
|
-
function
|
|
3462
|
+
function Zi(e = "", t, n) {
|
|
3459
3463
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3460
3464
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
|
|
3461
3465
|
}
|
|
3462
|
-
function
|
|
3466
|
+
function Qi(e, t) {
|
|
3463
3467
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3464
3468
|
return e;
|
|
3465
3469
|
if (t === "master")
|
|
3466
|
-
return
|
|
3470
|
+
return nr(e);
|
|
3467
3471
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3468
3472
|
if (n) {
|
|
3469
3473
|
const r = e.split(n[0]), i = n[3], a = t.match("x") ? t : `${t}x`;
|
|
3470
|
-
return
|
|
3474
|
+
return nr(`${r[0]}_${a}${i}`);
|
|
3471
3475
|
}
|
|
3472
3476
|
return null;
|
|
3473
3477
|
}
|
|
3474
|
-
function
|
|
3478
|
+
function zt(e) {
|
|
3475
3479
|
if (!e)
|
|
3476
3480
|
return e;
|
|
3477
3481
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3478
3482
|
if (e.match(/builder\.io/)) {
|
|
3479
3483
|
let n = e;
|
|
3480
3484
|
const r = Number(e.split("?width=")[1]);
|
|
3481
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((i) => i !== r).map((i) => `${
|
|
3485
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((i) => i !== r).map((i) => `${Zi(e, "width", i)} ${i}w`).concat([n]).join(", ");
|
|
3482
3486
|
}
|
|
3483
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3487
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Qi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3484
3488
|
}
|
|
3485
|
-
function
|
|
3489
|
+
function eo(e) {
|
|
3486
3490
|
var i, a, s, c, f, g;
|
|
3487
3491
|
function t() {
|
|
3488
3492
|
var j;
|
|
@@ -3493,10 +3497,10 @@ function to(e) {
|
|
|
3493
3497
|
return e.srcset;
|
|
3494
3498
|
if (e.srcset && ((j = e.image) != null && j.includes("builder.io/api/v1/image"))) {
|
|
3495
3499
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3496
|
-
return console.debug("Removed given srcset"),
|
|
3500
|
+
return console.debug("Removed given srcset"), zt(m);
|
|
3497
3501
|
} else if (e.image && !e.srcset)
|
|
3498
|
-
return
|
|
3499
|
-
return
|
|
3502
|
+
return zt(m);
|
|
3503
|
+
return zt(m);
|
|
3500
3504
|
}
|
|
3501
3505
|
function n() {
|
|
3502
3506
|
var b;
|
|
@@ -3515,8 +3519,8 @@ function to(e) {
|
|
|
3515
3519
|
return /* @__PURE__ */ se(K, { children: [
|
|
3516
3520
|
/* @__PURE__ */ se(K, { children: [
|
|
3517
3521
|
/* @__PURE__ */ se("picture", { children: [
|
|
3518
|
-
n() ? /* @__PURE__ */
|
|
3519
|
-
/* @__PURE__ */
|
|
3522
|
+
n() ? /* @__PURE__ */ y("source", { type: "image/webp", srcSet: n() }) : null,
|
|
3523
|
+
/* @__PURE__ */ y(
|
|
3520
3524
|
"img",
|
|
3521
3525
|
{
|
|
3522
3526
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -3535,7 +3539,7 @@ function to(e) {
|
|
|
3535
3539
|
}
|
|
3536
3540
|
)
|
|
3537
3541
|
] }),
|
|
3538
|
-
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
3542
|
+
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ y(
|
|
3539
3543
|
"div",
|
|
3540
3544
|
{
|
|
3541
3545
|
className: "builder-image-sizer div-ac3dff4a",
|
|
@@ -3544,10 +3548,10 @@ function to(e) {
|
|
|
3544
3548
|
}
|
|
3545
3549
|
}
|
|
3546
3550
|
) : null,
|
|
3547
|
-
(c = (s = e.builderBlock) == null ? void 0 : s.children) != null && c.length && e.fitContent ? /* @__PURE__ */
|
|
3548
|
-
!e.fitContent && ((g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length) ? /* @__PURE__ */
|
|
3551
|
+
(c = (s = e.builderBlock) == null ? void 0 : s.children) != null && c.length && e.fitContent ? /* @__PURE__ */ y(K, { children: e.children }) : null,
|
|
3552
|
+
!e.fitContent && ((g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length) ? /* @__PURE__ */ y("div", { className: "div-ac3dff4a-2", children: e.children }) : null
|
|
3549
3553
|
] }),
|
|
3550
|
-
/* @__PURE__ */
|
|
3554
|
+
/* @__PURE__ */ y("style", { children: `.img-ac3dff4a {
|
|
3551
3555
|
opacity: 1;
|
|
3552
3556
|
transition: opacity 0.2s ease-in-out;
|
|
3553
3557
|
}.div-ac3dff4a {
|
|
@@ -3566,8 +3570,8 @@ function to(e) {
|
|
|
3566
3570
|
}` })
|
|
3567
3571
|
] });
|
|
3568
3572
|
}
|
|
3569
|
-
function
|
|
3570
|
-
return /* @__PURE__ */
|
|
3573
|
+
function to(e) {
|
|
3574
|
+
return /* @__PURE__ */ y(
|
|
3571
3575
|
"section",
|
|
3572
3576
|
{
|
|
3573
3577
|
...e.attributes,
|
|
@@ -3587,7 +3591,7 @@ function no(e) {
|
|
|
3587
3591
|
}
|
|
3588
3592
|
);
|
|
3589
3593
|
}
|
|
3590
|
-
const
|
|
3594
|
+
const no = {
|
|
3591
3595
|
name: "Core:Button",
|
|
3592
3596
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3593
3597
|
defaultStyles: {
|
|
@@ -3621,12 +3625,9 @@ const ro = {
|
|
|
3621
3625
|
static: !0,
|
|
3622
3626
|
noWrap: !0,
|
|
3623
3627
|
shouldReceiveBuilderProps: {
|
|
3624
|
-
builderBlock: !1,
|
|
3625
|
-
builderContext: !1,
|
|
3626
|
-
builderComponents: !1,
|
|
3627
3628
|
builderLinkComponent: !0
|
|
3628
3629
|
}
|
|
3629
|
-
},
|
|
3630
|
+
}, ro = {
|
|
3630
3631
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3631
3632
|
name: "Columns",
|
|
3632
3633
|
isRSC: !0,
|
|
@@ -3833,19 +3834,13 @@ const ro = {
|
|
|
3833
3834
|
builderComponents: !0,
|
|
3834
3835
|
builderLinkComponent: !0
|
|
3835
3836
|
}
|
|
3836
|
-
},
|
|
3837
|
-
shouldReceiveBuilderProps: {
|
|
3838
|
-
builderBlock: !1,
|
|
3839
|
-
builderContext: !1,
|
|
3840
|
-
builderComponents: !1,
|
|
3841
|
-
builderLinkComponent: !1
|
|
3842
|
-
},
|
|
3837
|
+
}, io = {
|
|
3843
3838
|
name: "Fragment",
|
|
3844
3839
|
static: !0,
|
|
3845
3840
|
hidden: !0,
|
|
3846
3841
|
canHaveChildren: !0,
|
|
3847
3842
|
noWrap: !0
|
|
3848
|
-
},
|
|
3843
|
+
}, oo = {
|
|
3849
3844
|
name: "Image",
|
|
3850
3845
|
static: !0,
|
|
3851
3846
|
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",
|
|
@@ -3951,18 +3946,9 @@ const ro = {
|
|
|
3951
3946
|
defaultValue: 0.7041
|
|
3952
3947
|
}],
|
|
3953
3948
|
shouldReceiveBuilderProps: {
|
|
3954
|
-
builderBlock: !0
|
|
3955
|
-
builderContext: !1,
|
|
3956
|
-
builderComponents: !1,
|
|
3957
|
-
builderLinkComponent: !1
|
|
3949
|
+
builderBlock: !0
|
|
3958
3950
|
}
|
|
3959
|
-
},
|
|
3960
|
-
shouldReceiveBuilderProps: {
|
|
3961
|
-
builderBlock: !1,
|
|
3962
|
-
builderContext: !1,
|
|
3963
|
-
builderComponents: !1,
|
|
3964
|
-
builderLinkComponent: !1
|
|
3965
|
-
},
|
|
3951
|
+
}, ao = {
|
|
3966
3952
|
name: "Core:Section",
|
|
3967
3953
|
static: !0,
|
|
3968
3954
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -4001,7 +3987,7 @@ const ro = {
|
|
|
4001
3987
|
}
|
|
4002
3988
|
}
|
|
4003
3989
|
}]
|
|
4004
|
-
},
|
|
3990
|
+
}, so = {
|
|
4005
3991
|
name: "Slot",
|
|
4006
3992
|
isRSC: !0,
|
|
4007
3993
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -4015,15 +4001,12 @@ const ro = {
|
|
|
4015
4001
|
defaultValue: "children"
|
|
4016
4002
|
}],
|
|
4017
4003
|
shouldReceiveBuilderProps: {
|
|
4018
|
-
|
|
4019
|
-
builderContext: !0,
|
|
4020
|
-
builderComponents: !1,
|
|
4021
|
-
builderLinkComponent: !1
|
|
4004
|
+
builderContext: !0
|
|
4022
4005
|
}
|
|
4023
4006
|
};
|
|
4024
|
-
function
|
|
4007
|
+
function lo(e) {
|
|
4025
4008
|
var t, n, r;
|
|
4026
|
-
return /* @__PURE__ */
|
|
4009
|
+
return /* @__PURE__ */ y(
|
|
4027
4010
|
"div",
|
|
4028
4011
|
{
|
|
4029
4012
|
style: {
|
|
@@ -4032,8 +4015,8 @@ function co(e) {
|
|
|
4032
4015
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
4033
4016
|
"builder-slot": e.name
|
|
4034
4017
|
},
|
|
4035
|
-
children: /* @__PURE__ */
|
|
4036
|
-
|
|
4018
|
+
children: /* @__PURE__ */ y(
|
|
4019
|
+
mn,
|
|
4037
4020
|
{
|
|
4038
4021
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
4039
4022
|
path: `symbol.data.${e.name}`,
|
|
@@ -4044,7 +4027,7 @@ function co(e) {
|
|
|
4044
4027
|
}
|
|
4045
4028
|
);
|
|
4046
4029
|
}
|
|
4047
|
-
const
|
|
4030
|
+
const co = {
|
|
4048
4031
|
name: "Symbol",
|
|
4049
4032
|
noWrap: !0,
|
|
4050
4033
|
static: !0,
|
|
@@ -4083,12 +4066,9 @@ const uo = {
|
|
|
4083
4066
|
builderComponents: !0,
|
|
4084
4067
|
builderLinkComponent: !0
|
|
4085
4068
|
}
|
|
4086
|
-
},
|
|
4069
|
+
}, uo = {
|
|
4087
4070
|
shouldReceiveBuilderProps: {
|
|
4088
|
-
builderBlock: !1
|
|
4089
|
-
builderContext: !1,
|
|
4090
|
-
builderComponents: !1,
|
|
4091
|
-
builderLinkComponent: !1
|
|
4071
|
+
builderBlock: !1
|
|
4092
4072
|
},
|
|
4093
4073
|
name: "Text",
|
|
4094
4074
|
static: !0,
|
|
@@ -4108,9 +4088,9 @@ const uo = {
|
|
|
4108
4088
|
textAlign: "center"
|
|
4109
4089
|
}
|
|
4110
4090
|
};
|
|
4111
|
-
function
|
|
4091
|
+
function fo(e) {
|
|
4112
4092
|
var t;
|
|
4113
|
-
return /* @__PURE__ */
|
|
4093
|
+
return /* @__PURE__ */ y(
|
|
4114
4094
|
"div",
|
|
4115
4095
|
{
|
|
4116
4096
|
className: "builder-text",
|
|
@@ -4121,13 +4101,7 @@ function ho(e) {
|
|
|
4121
4101
|
}
|
|
4122
4102
|
);
|
|
4123
4103
|
}
|
|
4124
|
-
const
|
|
4125
|
-
shouldReceiveBuilderProps: {
|
|
4126
|
-
builderBlock: !1,
|
|
4127
|
-
builderContext: !1,
|
|
4128
|
-
builderComponents: !1,
|
|
4129
|
-
builderLinkComponent: !1
|
|
4130
|
-
},
|
|
4104
|
+
const ho = {
|
|
4131
4105
|
name: "Custom Code",
|
|
4132
4106
|
static: !0,
|
|
4133
4107
|
requiredPermissions: ["editCode"],
|
|
@@ -4150,8 +4124,8 @@ const po = {
|
|
|
4150
4124
|
advanced: !0
|
|
4151
4125
|
}]
|
|
4152
4126
|
};
|
|
4153
|
-
function
|
|
4154
|
-
const t =
|
|
4127
|
+
function po(e) {
|
|
4128
|
+
const t = Qt(null), [n, r] = ye(() => []), [i, a] = ye(() => []);
|
|
4155
4129
|
return ie(() => {
|
|
4156
4130
|
var c;
|
|
4157
4131
|
if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -4179,7 +4153,7 @@ function mo(e) {
|
|
|
4179
4153
|
}
|
|
4180
4154
|
}
|
|
4181
4155
|
}
|
|
4182
|
-
}, []), /* @__PURE__ */
|
|
4156
|
+
}, []), /* @__PURE__ */ y(
|
|
4183
4157
|
"div",
|
|
4184
4158
|
{
|
|
4185
4159
|
ref: t,
|
|
@@ -4188,13 +4162,7 @@ function mo(e) {
|
|
|
4188
4162
|
}
|
|
4189
4163
|
);
|
|
4190
4164
|
}
|
|
4191
|
-
const
|
|
4192
|
-
shouldReceiveBuilderProps: {
|
|
4193
|
-
builderBlock: !1,
|
|
4194
|
-
builderContext: !1,
|
|
4195
|
-
builderComponents: !1,
|
|
4196
|
-
builderLinkComponent: !1
|
|
4197
|
-
},
|
|
4165
|
+
const mo = {
|
|
4198
4166
|
name: "Embed",
|
|
4199
4167
|
static: !0,
|
|
4200
4168
|
inputs: [{
|
|
@@ -4209,9 +4177,9 @@ const go = {
|
|
|
4209
4177
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4210
4178
|
hideFromUI: !0
|
|
4211
4179
|
}]
|
|
4212
|
-
},
|
|
4213
|
-
function
|
|
4214
|
-
const t =
|
|
4180
|
+
}, go = ["text/javascript", "application/javascript", "application/ecmascript"], yo = (e) => go.includes(e.type);
|
|
4181
|
+
function vo(e) {
|
|
4182
|
+
const t = Qt(null), [n, r] = ye(() => []), [i, a] = ye(() => []), [s, c] = ye(() => !1);
|
|
4215
4183
|
function f() {
|
|
4216
4184
|
if (!t.current || !t.current.getElementsByTagName)
|
|
4217
4185
|
return;
|
|
@@ -4232,7 +4200,7 @@ function bo(e) {
|
|
|
4232
4200
|
}
|
|
4233
4201
|
return ie(() => {
|
|
4234
4202
|
t.current && !s && (c(!0), f());
|
|
4235
|
-
}, [t.current, s]), /* @__PURE__ */
|
|
4203
|
+
}, [t.current, s]), /* @__PURE__ */ y(
|
|
4236
4204
|
"div",
|
|
4237
4205
|
{
|
|
4238
4206
|
className: "builder-embed",
|
|
@@ -4241,13 +4209,7 @@ function bo(e) {
|
|
|
4241
4209
|
}
|
|
4242
4210
|
);
|
|
4243
4211
|
}
|
|
4244
|
-
const
|
|
4245
|
-
shouldReceiveBuilderProps: {
|
|
4246
|
-
builderBlock: !1,
|
|
4247
|
-
builderContext: !1,
|
|
4248
|
-
builderComponents: !1,
|
|
4249
|
-
builderLinkComponent: !1
|
|
4250
|
-
},
|
|
4212
|
+
const bo = {
|
|
4251
4213
|
// friendlyName?
|
|
4252
4214
|
name: "Raw:Img",
|
|
4253
4215
|
hideFromInsertMenu: !0,
|
|
@@ -4262,8 +4224,8 @@ const xo = {
|
|
|
4262
4224
|
noWrap: !0,
|
|
4263
4225
|
static: !0
|
|
4264
4226
|
};
|
|
4265
|
-
function
|
|
4266
|
-
return /* @__PURE__ */
|
|
4227
|
+
function xo(e) {
|
|
4228
|
+
return /* @__PURE__ */ y(
|
|
4267
4229
|
"img",
|
|
4268
4230
|
{
|
|
4269
4231
|
style: {
|
|
@@ -4277,7 +4239,7 @@ function So(e) {
|
|
|
4277
4239
|
Ce() && e.imgSrc || "default-key"
|
|
4278
4240
|
);
|
|
4279
4241
|
}
|
|
4280
|
-
const
|
|
4242
|
+
const So = {
|
|
4281
4243
|
name: "Video",
|
|
4282
4244
|
canHaveChildren: !0,
|
|
4283
4245
|
defaultStyles: {
|
|
@@ -4359,13 +4321,10 @@ const ko = {
|
|
|
4359
4321
|
advanced: !0
|
|
4360
4322
|
}],
|
|
4361
4323
|
shouldReceiveBuilderProps: {
|
|
4362
|
-
builderBlock: !0
|
|
4363
|
-
builderContext: !1,
|
|
4364
|
-
builderComponents: !1,
|
|
4365
|
-
builderLinkComponent: !1
|
|
4324
|
+
builderBlock: !0
|
|
4366
4325
|
}
|
|
4367
4326
|
};
|
|
4368
|
-
function
|
|
4327
|
+
function ko(e) {
|
|
4369
4328
|
var r, i, a, s, c, f, g;
|
|
4370
4329
|
function t() {
|
|
4371
4330
|
return {
|
|
@@ -4398,7 +4357,7 @@ function Co(e) {
|
|
|
4398
4357
|
position: "relative"
|
|
4399
4358
|
},
|
|
4400
4359
|
children: [
|
|
4401
|
-
/* @__PURE__ */
|
|
4360
|
+
/* @__PURE__ */ y(
|
|
4402
4361
|
"video",
|
|
4403
4362
|
{
|
|
4404
4363
|
className: "builder-video",
|
|
@@ -4420,10 +4379,10 @@ function Co(e) {
|
|
|
4420
4379
|
},
|
|
4421
4380
|
src: e.video || "no-src",
|
|
4422
4381
|
poster: e.posterImage,
|
|
4423
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
4382
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ y("source", { type: "video/mp4", src: e.video })
|
|
4424
4383
|
}
|
|
4425
4384
|
),
|
|
4426
|
-
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */
|
|
4385
|
+
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ y(
|
|
4427
4386
|
"div",
|
|
4428
4387
|
{
|
|
4429
4388
|
style: {
|
|
@@ -4434,7 +4393,7 @@ function Co(e) {
|
|
|
4434
4393
|
}
|
|
4435
4394
|
}
|
|
4436
4395
|
) : null,
|
|
4437
|
-
(c = (s = e.builderBlock) == null ? void 0 : s.children) != null && c.length && e.fitContent ? /* @__PURE__ */
|
|
4396
|
+
(c = (s = e.builderBlock) == null ? void 0 : s.children) != null && c.length && e.fitContent ? /* @__PURE__ */ y(
|
|
4438
4397
|
"div",
|
|
4439
4398
|
{
|
|
4440
4399
|
style: {
|
|
@@ -4445,7 +4404,7 @@ function Co(e) {
|
|
|
4445
4404
|
children: e.children
|
|
4446
4405
|
}
|
|
4447
4406
|
) : null,
|
|
4448
|
-
(g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length && !e.fitContent ? /* @__PURE__ */
|
|
4407
|
+
(g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length && !e.fitContent ? /* @__PURE__ */ y(
|
|
4449
4408
|
"div",
|
|
4450
4409
|
{
|
|
4451
4410
|
style: {
|
|
@@ -4466,43 +4425,43 @@ function Co(e) {
|
|
|
4466
4425
|
}
|
|
4467
4426
|
);
|
|
4468
4427
|
}
|
|
4469
|
-
const
|
|
4470
|
-
component:
|
|
4471
|
-
...
|
|
4428
|
+
const Co = () => [{
|
|
4429
|
+
component: po,
|
|
4430
|
+
...ho
|
|
4431
|
+
}, {
|
|
4432
|
+
component: vo,
|
|
4433
|
+
...mo
|
|
4472
4434
|
}, {
|
|
4473
|
-
component:
|
|
4474
|
-
...
|
|
4435
|
+
component: xo,
|
|
4436
|
+
...bo
|
|
4475
4437
|
}, {
|
|
4476
|
-
component:
|
|
4477
|
-
...
|
|
4438
|
+
component: ko,
|
|
4439
|
+
...So
|
|
4440
|
+
}], rr = () => [{
|
|
4441
|
+
component: ni,
|
|
4442
|
+
...no
|
|
4478
4443
|
}, {
|
|
4479
|
-
component:
|
|
4480
|
-
...ko
|
|
4481
|
-
}], ir = () => [{
|
|
4482
|
-
component: ri,
|
|
4444
|
+
component: Ji,
|
|
4483
4445
|
...ro
|
|
4484
4446
|
}, {
|
|
4485
4447
|
component: qi,
|
|
4486
4448
|
...io
|
|
4487
4449
|
}, {
|
|
4488
|
-
component:
|
|
4450
|
+
component: eo,
|
|
4489
4451
|
...oo
|
|
4490
4452
|
}, {
|
|
4491
4453
|
component: to,
|
|
4492
4454
|
...ao
|
|
4493
4455
|
}, {
|
|
4494
|
-
component:
|
|
4456
|
+
component: lo,
|
|
4495
4457
|
...so
|
|
4496
4458
|
}, {
|
|
4497
|
-
component:
|
|
4498
|
-
...
|
|
4459
|
+
component: Zo,
|
|
4460
|
+
...co
|
|
4499
4461
|
}, {
|
|
4500
|
-
component:
|
|
4462
|
+
component: fo,
|
|
4501
4463
|
...uo
|
|
4502
|
-
}, {
|
|
4503
|
-
component: ho,
|
|
4504
|
-
...fo
|
|
4505
|
-
}, ...wo()], Eo = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4464
|
+
}, ...Co()], wo = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4506
4465
|
function getAndSetVariantId() {
|
|
4507
4466
|
function setCookie(name, value, days) {
|
|
4508
4467
|
let expires = '';
|
|
@@ -4558,7 +4517,7 @@ const wo = () => [{
|
|
|
4558
4517
|
}).join('');
|
|
4559
4518
|
styleEl.innerHTML = newStyleStr;
|
|
4560
4519
|
}
|
|
4561
|
-
}`,
|
|
4520
|
+
}`, Eo = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4562
4521
|
if (!navigator.cookieEnabled) {
|
|
4563
4522
|
return;
|
|
4564
4523
|
}
|
|
@@ -4592,27 +4551,27 @@ const wo = () => [{
|
|
|
4592
4551
|
thisScriptEl?.remove();
|
|
4593
4552
|
}
|
|
4594
4553
|
return;
|
|
4595
|
-
}`,
|
|
4554
|
+
}`, kr = "builderIoAbTest", Cr = "builderIoRenderContent", gt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4596
4555
|
...t,
|
|
4597
4556
|
testVariationId: t.id,
|
|
4598
4557
|
id: e == null ? void 0 : e.id
|
|
4599
|
-
})),
|
|
4558
|
+
})), Io = ({
|
|
4600
4559
|
canTrack: e,
|
|
4601
4560
|
content: t
|
|
4602
|
-
}) => !(!(gt(t).length > 0) || !e ||
|
|
4561
|
+
}) => !(!(gt(t).length > 0) || !e || De()), To = (e) => e === "react" || e === "reactNative", wr = To(it), Ao = () => `
|
|
4562
|
+
window.${kr} = ${wo}
|
|
4603
4563
|
window.${Cr} = ${Eo}
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
)`, Oo = ({
|
|
4564
|
+
`, jo = (e, t) => `
|
|
4565
|
+
window.${kr}(
|
|
4566
|
+
"${t}",${JSON.stringify(e)}, ${wr}
|
|
4567
|
+
)`, Ro = ({
|
|
4609
4568
|
contentId: e,
|
|
4610
4569
|
variationId: t
|
|
4611
|
-
}) => `window.${
|
|
4612
|
-
"${t}", "${e}", ${
|
|
4570
|
+
}) => `window.${Cr}(
|
|
4571
|
+
"${t}", "${e}", ${wr}
|
|
4613
4572
|
)`;
|
|
4614
|
-
function
|
|
4615
|
-
return /* @__PURE__ */
|
|
4573
|
+
function qt(e) {
|
|
4574
|
+
return /* @__PURE__ */ y(
|
|
4616
4575
|
"script",
|
|
4617
4576
|
{
|
|
4618
4577
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -4620,7 +4579,7 @@ function Zt(e) {
|
|
|
4620
4579
|
}
|
|
4621
4580
|
);
|
|
4622
4581
|
}
|
|
4623
|
-
const
|
|
4582
|
+
const Oo = Zr({
|
|
4624
4583
|
content: null,
|
|
4625
4584
|
context: {},
|
|
4626
4585
|
localState: void 0,
|
|
@@ -4634,10 +4593,10 @@ const Po = Qr({
|
|
|
4634
4593
|
BlocksWrapper: "div",
|
|
4635
4594
|
BlocksWrapperProps: {}
|
|
4636
4595
|
});
|
|
4637
|
-
function
|
|
4596
|
+
function ir(e) {
|
|
4638
4597
|
return Math.round(e * 1e3) / 1e3;
|
|
4639
4598
|
}
|
|
4640
|
-
const
|
|
4599
|
+
const Po = (e, t, n = !0) => {
|
|
4641
4600
|
if (!(e instanceof HTMLElement))
|
|
4642
4601
|
return null;
|
|
4643
4602
|
let r = n ? e : e.parentElement;
|
|
@@ -4648,28 +4607,28 @@ const No = (e, t, n = !0) => {
|
|
|
4648
4607
|
return r;
|
|
4649
4608
|
} while (r = r.parentElement);
|
|
4650
4609
|
return null;
|
|
4651
|
-
},
|
|
4610
|
+
}, No = (e) => Po(e, (t) => {
|
|
4652
4611
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4653
4612
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4654
|
-
}),
|
|
4613
|
+
}), or = ({
|
|
4655
4614
|
event: e,
|
|
4656
4615
|
target: t
|
|
4657
4616
|
}) => {
|
|
4658
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left, i = e.clientY - n.top, a =
|
|
4617
|
+
const n = t.getBoundingClientRect(), r = e.clientX - n.left, i = e.clientY - n.top, a = ir(r / n.width), s = ir(i / n.height);
|
|
4659
4618
|
return {
|
|
4660
4619
|
x: a,
|
|
4661
4620
|
y: s
|
|
4662
4621
|
};
|
|
4663
|
-
},
|
|
4664
|
-
const t = e.target, n = t &&
|
|
4622
|
+
}, Bo = (e) => {
|
|
4623
|
+
const t = e.target, n = t && No(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4665
4624
|
return {
|
|
4666
4625
|
targetBuilderElement: r || void 0,
|
|
4667
4626
|
metadata: {
|
|
4668
|
-
targetOffset: t ?
|
|
4627
|
+
targetOffset: t ? or({
|
|
4669
4628
|
event: e,
|
|
4670
4629
|
target: t
|
|
4671
4630
|
}) : void 0,
|
|
4672
|
-
builderTargetOffset: n ?
|
|
4631
|
+
builderTargetOffset: n ? or({
|
|
4673
4632
|
event: e,
|
|
4674
4633
|
target: n
|
|
4675
4634
|
}) : void 0,
|
|
@@ -4677,13 +4636,13 @@ const No = (e, t, n = !0) => {
|
|
|
4677
4636
|
}
|
|
4678
4637
|
};
|
|
4679
4638
|
};
|
|
4680
|
-
async function
|
|
4639
|
+
async function Mo({
|
|
4681
4640
|
key: e,
|
|
4682
4641
|
value: t
|
|
4683
4642
|
}) {
|
|
4684
|
-
return
|
|
4643
|
+
return Hr(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
|
|
4685
4644
|
}
|
|
4686
|
-
function
|
|
4645
|
+
function ar(e, ...t) {
|
|
4687
4646
|
const n = Object(e);
|
|
4688
4647
|
for (let r = 1; r < arguments.length; r++) {
|
|
4689
4648
|
const i = arguments[r];
|
|
@@ -4716,14 +4675,14 @@ function Wo(e) {
|
|
|
4716
4675
|
return;
|
|
4717
4676
|
}
|
|
4718
4677
|
Array.from(t).forEach((n) => {
|
|
4719
|
-
Do(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
4720
|
-
n.style.transition = `all ${e.duration}s ${
|
|
4678
|
+
Do(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ar(n.style, e.steps[0].styles), setTimeout(() => {
|
|
4679
|
+
n.style.transition = `all ${e.duration}s ${hn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ar(n.style, e.steps[1].styles), setTimeout(() => {
|
|
4721
4680
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
4722
4681
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
4723
4682
|
});
|
|
4724
4683
|
});
|
|
4725
4684
|
}
|
|
4726
|
-
const
|
|
4685
|
+
const Lo = (e) => {
|
|
4727
4686
|
var a, s;
|
|
4728
4687
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = (s = e.fileUrl) != null ? s : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
4729
4688
|
let i = "";
|
|
@@ -4749,15 +4708,15 @@ font-weight: ${c};
|
|
|
4749
4708
|
`.trim());
|
|
4750
4709
|
}
|
|
4751
4710
|
return i;
|
|
4752
|
-
},
|
|
4711
|
+
}, Vo = ({
|
|
4753
4712
|
customFonts: e
|
|
4754
4713
|
}) => {
|
|
4755
4714
|
var t;
|
|
4756
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4757
|
-
},
|
|
4715
|
+
return ((t = e == null ? void 0 : e.map((n) => Lo(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4716
|
+
}, _o = ({
|
|
4758
4717
|
cssCode: e,
|
|
4759
4718
|
contentId: t
|
|
4760
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4719
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", $o = `
|
|
4761
4720
|
.builder-button {
|
|
4762
4721
|
all: unset;
|
|
4763
4722
|
}
|
|
@@ -4774,20 +4733,20 @@ font-weight: ${c};
|
|
|
4774
4733
|
text-align: inherit;
|
|
4775
4734
|
font-family: inherit;
|
|
4776
4735
|
}
|
|
4777
|
-
`,
|
|
4778
|
-
function
|
|
4779
|
-
var oe, _, Q, E, Ee,
|
|
4780
|
-
const t =
|
|
4736
|
+
`, Ho = (e) => e ? "" : $o, Ko = (e) => `variant-${e}`;
|
|
4737
|
+
function Go(e) {
|
|
4738
|
+
var oe, _, Q, E, Ee, L, Ie;
|
|
4739
|
+
const t = Qt(null);
|
|
4781
4740
|
function n(I) {
|
|
4782
|
-
var P,
|
|
4741
|
+
var P, U;
|
|
4783
4742
|
const x = {
|
|
4784
4743
|
...e.builderContextSignal.rootState,
|
|
4785
4744
|
...I
|
|
4786
4745
|
};
|
|
4787
|
-
e.builderContextSignal.rootSetState ? (
|
|
4746
|
+
e.builderContextSignal.rootSetState ? (U = (P = e.builderContextSignal).rootSetState) == null || U.call(P, x) : e.builderContextSignal.rootState = x;
|
|
4788
4747
|
}
|
|
4789
4748
|
function r(I) {
|
|
4790
|
-
var P,
|
|
4749
|
+
var P, U, B, J, le;
|
|
4791
4750
|
const x = {
|
|
4792
4751
|
...e.builderContextSignal.content,
|
|
4793
4752
|
...I,
|
|
@@ -4796,16 +4755,16 @@ function zo(e) {
|
|
|
4796
4755
|
...I == null ? void 0 : I.data
|
|
4797
4756
|
},
|
|
4798
4757
|
meta: {
|
|
4799
|
-
...(
|
|
4758
|
+
...(U = e.builderContextSignal.content) == null ? void 0 : U.meta,
|
|
4800
4759
|
...I == null ? void 0 : I.meta,
|
|
4801
4760
|
breakpoints: ((B = I == null ? void 0 : I.meta) == null ? void 0 : B.breakpoints) || ((le = (J = e.builderContextSignal.content) == null ? void 0 : J.meta) == null ? void 0 : le.breakpoints)
|
|
4802
4761
|
}
|
|
4803
4762
|
};
|
|
4804
|
-
|
|
4763
|
+
Mo({
|
|
4805
4764
|
value: x,
|
|
4806
4765
|
key: x.id
|
|
4807
4766
|
}).then(() => {
|
|
4808
|
-
|
|
4767
|
+
G.refresh();
|
|
4809
4768
|
});
|
|
4810
4769
|
}
|
|
4811
4770
|
function i() {
|
|
@@ -4814,18 +4773,18 @@ function zo(e) {
|
|
|
4814
4773
|
"aria-hidden": !0
|
|
4815
4774
|
};
|
|
4816
4775
|
}
|
|
4817
|
-
const [a, s] =
|
|
4776
|
+
const [a, s] = ye(
|
|
4818
4777
|
() => e.contentWrapper || "div"
|
|
4819
4778
|
);
|
|
4820
4779
|
function c(I) {
|
|
4821
|
-
return
|
|
4780
|
+
return Gr({
|
|
4822
4781
|
model: e.model,
|
|
4823
4782
|
trustedHosts: e.trustedHosts,
|
|
4824
4783
|
callbacks: {
|
|
4825
4784
|
configureSdk: (x) => {
|
|
4826
4785
|
var B;
|
|
4827
|
-
const { breakpoints: P, contentId:
|
|
4828
|
-
!
|
|
4786
|
+
const { breakpoints: P, contentId: U } = x;
|
|
4787
|
+
!U || U !== ((B = e.builderContextSignal.content) == null ? void 0 : B.id) || P && r({
|
|
4829
4788
|
meta: {
|
|
4830
4789
|
breakpoints: P
|
|
4831
4790
|
}
|
|
@@ -4855,26 +4814,26 @@ function zo(e) {
|
|
|
4855
4814
|
enableCache: !1
|
|
4856
4815
|
});
|
|
4857
4816
|
}
|
|
4858
|
-
const [g, b] =
|
|
4817
|
+
const [g, b] = ye(() => ({})), [m, j] = ye(() => ({})), [D, V] = ye(() => !1);
|
|
4859
4818
|
function M(I) {
|
|
4860
4819
|
var x, P;
|
|
4861
4820
|
if (e.builderContextSignal.content) {
|
|
4862
|
-
const
|
|
4863
|
-
|
|
4821
|
+
const U = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, B = (P = e.builderContextSignal.content) == null ? void 0 : P.id;
|
|
4822
|
+
Gn({
|
|
4864
4823
|
type: "click",
|
|
4865
|
-
canTrack:
|
|
4824
|
+
canTrack: vt(e.canTrack),
|
|
4866
4825
|
contentId: B,
|
|
4867
4826
|
apiKey: e.apiKey,
|
|
4868
|
-
variationId:
|
|
4869
|
-
...
|
|
4870
|
-
unique: !
|
|
4827
|
+
variationId: U !== B ? U : void 0,
|
|
4828
|
+
...Bo(I),
|
|
4829
|
+
unique: !D
|
|
4871
4830
|
});
|
|
4872
4831
|
}
|
|
4873
|
-
|
|
4832
|
+
D || V(!0);
|
|
4874
4833
|
}
|
|
4875
4834
|
function $() {
|
|
4876
|
-
var x, P,
|
|
4877
|
-
const I = (
|
|
4835
|
+
var x, P, U;
|
|
4836
|
+
const I = (U = (P = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : P.httpRequests) != null ? U : {};
|
|
4878
4837
|
Object.entries(I).forEach(([B, J]) => {
|
|
4879
4838
|
if (!J || m[B] || g[B] && !Ce())
|
|
4880
4839
|
return;
|
|
@@ -4892,7 +4851,7 @@ function zo(e) {
|
|
|
4892
4851
|
})
|
|
4893
4852
|
)
|
|
4894
4853
|
);
|
|
4895
|
-
|
|
4854
|
+
zr(le).then((ce) => ce.json()).then((ce) => {
|
|
4896
4855
|
n({
|
|
4897
4856
|
[B]: ce
|
|
4898
4857
|
}), g[B] = !0;
|
|
@@ -4909,7 +4868,7 @@ function zo(e) {
|
|
|
4909
4868
|
"builder:component:stateChange",
|
|
4910
4869
|
{
|
|
4911
4870
|
detail: {
|
|
4912
|
-
state:
|
|
4871
|
+
state: Zt(e.builderContextSignal.rootState),
|
|
4913
4872
|
ref: {
|
|
4914
4873
|
name: e.model
|
|
4915
4874
|
}
|
|
@@ -4918,8 +4877,8 @@ function zo(e) {
|
|
|
4918
4877
|
)
|
|
4919
4878
|
);
|
|
4920
4879
|
}
|
|
4921
|
-
function
|
|
4922
|
-
window.addEventListener("message", c),
|
|
4880
|
+
function v(I) {
|
|
4881
|
+
window.addEventListener("message", c), Yr(), Xr({
|
|
4923
4882
|
...e.locale ? {
|
|
4924
4883
|
locale: e.locale
|
|
4925
4884
|
} : {},
|
|
@@ -4932,19 +4891,19 @@ function zo(e) {
|
|
|
4932
4891
|
}), Object.values(
|
|
4933
4892
|
e.builderContextSignal.componentInfos
|
|
4934
4893
|
).forEach((x) => {
|
|
4935
|
-
var
|
|
4936
|
-
const P =
|
|
4937
|
-
(
|
|
4894
|
+
var U;
|
|
4895
|
+
const P = Jr(x);
|
|
4896
|
+
(U = window.parent) == null || U.postMessage(P, "*");
|
|
4938
4897
|
}), window.addEventListener(
|
|
4939
4898
|
"builder:component:stateChangeListenerActivated",
|
|
4940
4899
|
N
|
|
4941
4900
|
);
|
|
4942
4901
|
}
|
|
4943
4902
|
function W(I) {
|
|
4944
|
-
const x = new URL(location.href).searchParams, P = x.get("builder.preview"),
|
|
4903
|
+
const x = new URL(location.href).searchParams, P = x.get("builder.preview"), U = x.get(
|
|
4945
4904
|
`builder.overrides.${P}`
|
|
4946
4905
|
), B = x.get("apiKey") || x.get("builder.space");
|
|
4947
|
-
P === e.model && B === e.apiKey && (!e.content ||
|
|
4906
|
+
P === e.model && B === e.apiKey && (!e.content || U === e.content.id) && lr({
|
|
4948
4907
|
model: e.model,
|
|
4949
4908
|
apiKey: e.apiKey,
|
|
4950
4909
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -4952,17 +4911,17 @@ function zo(e) {
|
|
|
4952
4911
|
J && r(J);
|
|
4953
4912
|
});
|
|
4954
4913
|
}
|
|
4955
|
-
const
|
|
4914
|
+
const G = Qr();
|
|
4956
4915
|
return ie(() => {
|
|
4957
4916
|
var I;
|
|
4958
4917
|
return (I = t.current) == null || I.addEventListener(
|
|
4959
4918
|
"initeditingbldr",
|
|
4960
|
-
|
|
4919
|
+
v
|
|
4961
4920
|
), () => {
|
|
4962
4921
|
var x;
|
|
4963
4922
|
return (x = t.current) == null ? void 0 : x.removeEventListener(
|
|
4964
4923
|
"initeditingbldr",
|
|
4965
|
-
|
|
4924
|
+
v
|
|
4966
4925
|
);
|
|
4967
4926
|
};
|
|
4968
4927
|
}, []), ie(() => {
|
|
@@ -4979,18 +4938,18 @@ function zo(e) {
|
|
|
4979
4938
|
};
|
|
4980
4939
|
}, []), ie(() => {
|
|
4981
4940
|
var I, x;
|
|
4982
|
-
if (
|
|
4983
|
-
if (Ce() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content &&
|
|
4984
|
-
const
|
|
4985
|
-
|
|
4941
|
+
if (De()) {
|
|
4942
|
+
if (Ce() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && vt(e.canTrack)) {
|
|
4943
|
+
const U = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, B = (x = e.builderContextSignal.content) == null ? void 0 : x.id, J = e.apiKey;
|
|
4944
|
+
Gn({
|
|
4986
4945
|
type: "impression",
|
|
4987
4946
|
canTrack: !0,
|
|
4988
4947
|
contentId: B,
|
|
4989
4948
|
apiKey: J,
|
|
4990
|
-
variationId:
|
|
4949
|
+
variationId: U !== B ? U : void 0
|
|
4991
4950
|
});
|
|
4992
4951
|
}
|
|
4993
|
-
|
|
4952
|
+
Kr() && Ce();
|
|
4994
4953
|
}
|
|
4995
4954
|
}, []), ie(() => {
|
|
4996
4955
|
e.apiKey || ot.error(
|
|
@@ -5010,11 +4969,11 @@ function zo(e) {
|
|
|
5010
4969
|
locale: e.locale
|
|
5011
4970
|
});
|
|
5012
4971
|
}, [e.locale]), ie(() => () => {
|
|
5013
|
-
|
|
4972
|
+
De() && (window.removeEventListener("message", c), window.removeEventListener(
|
|
5014
4973
|
"builder:component:stateChangeListenerActivated",
|
|
5015
4974
|
N
|
|
5016
4975
|
));
|
|
5017
|
-
}, []), /* @__PURE__ */
|
|
4976
|
+
}, []), /* @__PURE__ */ y(Oo.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ y(
|
|
5018
4977
|
a,
|
|
5019
4978
|
{
|
|
5020
4979
|
ref: t,
|
|
@@ -5023,27 +4982,27 @@ function zo(e) {
|
|
|
5023
4982
|
"builder-model": e.model,
|
|
5024
4983
|
...i(),
|
|
5025
4984
|
...e.contentWrapperProps,
|
|
5026
|
-
className:
|
|
5027
|
-
((
|
|
4985
|
+
className: Ko(
|
|
4986
|
+
((L = e.content) == null ? void 0 : L.testVariationId) || ((Ie = e.content) == null ? void 0 : Ie.id)
|
|
5028
4987
|
),
|
|
5029
4988
|
children: e.children
|
|
5030
4989
|
}
|
|
5031
4990
|
) : null });
|
|
5032
4991
|
}
|
|
5033
|
-
function
|
|
4992
|
+
function zo(e) {
|
|
5034
4993
|
const t = `
|
|
5035
|
-
${
|
|
4994
|
+
${_o({
|
|
5036
4995
|
cssCode: e.cssCode,
|
|
5037
4996
|
contentId: e.contentId
|
|
5038
4997
|
})}
|
|
5039
|
-
${
|
|
4998
|
+
${Vo({
|
|
5040
4999
|
customFonts: e.customFonts
|
|
5041
5000
|
})}
|
|
5042
|
-
${
|
|
5001
|
+
${Ho(e.isNestedRender)}
|
|
5043
5002
|
`.trim();
|
|
5044
|
-
return /* @__PURE__ */
|
|
5003
|
+
return /* @__PURE__ */ y(kt, { id: "builderio-content", styles: t });
|
|
5045
5004
|
}
|
|
5046
|
-
const
|
|
5005
|
+
const Yo = ({
|
|
5047
5006
|
content: e,
|
|
5048
5007
|
data: t,
|
|
5049
5008
|
locale: n
|
|
@@ -5060,7 +5019,7 @@ const Xo = ({
|
|
|
5060
5019
|
locale: n
|
|
5061
5020
|
} : {}
|
|
5062
5021
|
};
|
|
5063
|
-
},
|
|
5022
|
+
}, Xo = ({
|
|
5064
5023
|
content: e,
|
|
5065
5024
|
data: t
|
|
5066
5025
|
}) => e ? {
|
|
@@ -5071,32 +5030,32 @@ const Xo = ({
|
|
|
5071
5030
|
},
|
|
5072
5031
|
meta: e == null ? void 0 : e.meta
|
|
5073
5032
|
} : void 0;
|
|
5074
|
-
function
|
|
5033
|
+
function sr(e) {
|
|
5075
5034
|
var i, a, s, c, f, g, b, m, j;
|
|
5076
|
-
const t =
|
|
5035
|
+
const t = Ro({
|
|
5077
5036
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5078
5037
|
variationId: (i = e.content) == null ? void 0 : i.testVariationId,
|
|
5079
5038
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5080
5039
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
5081
5040
|
}), n = [
|
|
5082
|
-
...
|
|
5041
|
+
...rr(),
|
|
5083
5042
|
...e.customComponents || []
|
|
5084
5043
|
].reduce(
|
|
5085
|
-
(
|
|
5086
|
-
...
|
|
5044
|
+
(D, { component: V, ...M }) => ({
|
|
5045
|
+
...D,
|
|
5087
5046
|
[M.name]: {
|
|
5088
5047
|
component: V,
|
|
5089
|
-
...
|
|
5048
|
+
...zn(M)
|
|
5090
5049
|
}
|
|
5091
5050
|
}),
|
|
5092
5051
|
{}
|
|
5093
5052
|
), r = {
|
|
5094
|
-
content:
|
|
5053
|
+
content: Xo({
|
|
5095
5054
|
content: e.content,
|
|
5096
5055
|
data: e.data
|
|
5097
5056
|
}),
|
|
5098
5057
|
localState: void 0,
|
|
5099
|
-
rootState:
|
|
5058
|
+
rootState: Yo({
|
|
5100
5059
|
content: e.content,
|
|
5101
5060
|
data: e.data,
|
|
5102
5061
|
locale: e.locale
|
|
@@ -5107,12 +5066,12 @@ function lr(e) {
|
|
|
5107
5066
|
apiKey: e.apiKey,
|
|
5108
5067
|
apiVersion: e.apiVersion,
|
|
5109
5068
|
componentInfos: [
|
|
5110
|
-
...
|
|
5069
|
+
...rr(),
|
|
5111
5070
|
...e.customComponents || []
|
|
5112
5071
|
].reduce(
|
|
5113
|
-
(
|
|
5114
|
-
...
|
|
5115
|
-
[M.name]:
|
|
5072
|
+
(D, { component: V, ...M }) => ({
|
|
5073
|
+
...D,
|
|
5074
|
+
[M.name]: zn(M)
|
|
5116
5075
|
}),
|
|
5117
5076
|
{}
|
|
5118
5077
|
),
|
|
@@ -5121,7 +5080,7 @@ function lr(e) {
|
|
|
5121
5080
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
5122
5081
|
};
|
|
5123
5082
|
return /* @__PURE__ */ se(
|
|
5124
|
-
|
|
5083
|
+
Go,
|
|
5125
5084
|
{
|
|
5126
5085
|
content: e.content,
|
|
5127
5086
|
data: e.data,
|
|
@@ -5137,15 +5096,15 @@ function lr(e) {
|
|
|
5137
5096
|
contentWrapperProps: e.contentWrapperProps,
|
|
5138
5097
|
trustedHosts: e.trustedHosts,
|
|
5139
5098
|
children: [
|
|
5140
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
5141
|
-
|
|
5099
|
+
e.isSsrAbTest ? /* @__PURE__ */ y(
|
|
5100
|
+
qt,
|
|
5142
5101
|
{
|
|
5143
5102
|
id: "builderio-variant-visibility",
|
|
5144
5103
|
scriptStr: t
|
|
5145
5104
|
}
|
|
5146
5105
|
) : null,
|
|
5147
|
-
/* @__PURE__ */
|
|
5148
|
-
|
|
5106
|
+
/* @__PURE__ */ y(
|
|
5107
|
+
zo,
|
|
5149
5108
|
{
|
|
5150
5109
|
isNestedRender: e.isNestedRender,
|
|
5151
5110
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
@@ -5153,8 +5112,8 @@ function lr(e) {
|
|
|
5153
5112
|
customFonts: (b = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : b.customFonts
|
|
5154
5113
|
}
|
|
5155
5114
|
),
|
|
5156
|
-
/* @__PURE__ */
|
|
5157
|
-
|
|
5115
|
+
/* @__PURE__ */ y(
|
|
5116
|
+
mn,
|
|
5158
5117
|
{
|
|
5159
5118
|
blocks: (j = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : j.blocks,
|
|
5160
5119
|
context: r,
|
|
@@ -5166,14 +5125,14 @@ function lr(e) {
|
|
|
5166
5125
|
}
|
|
5167
5126
|
);
|
|
5168
5127
|
}
|
|
5169
|
-
function
|
|
5128
|
+
function Jo(e) {
|
|
5170
5129
|
var a;
|
|
5171
|
-
const t =
|
|
5172
|
-
canTrack:
|
|
5130
|
+
const t = Io({
|
|
5131
|
+
canTrack: vt(e.canTrack),
|
|
5173
5132
|
content: e.content
|
|
5174
5133
|
}), n = function() {
|
|
5175
5134
|
var c;
|
|
5176
|
-
return
|
|
5135
|
+
return jo(
|
|
5177
5136
|
gt(e.content).map((f) => ({
|
|
5178
5137
|
id: f.testVariationId,
|
|
5179
5138
|
testRatio: f.testRatio
|
|
@@ -5187,36 +5146,36 @@ function qo(e) {
|
|
|
5187
5146
|
return t ? {
|
|
5188
5147
|
...e.content,
|
|
5189
5148
|
testVariationId: (c = e.content) == null ? void 0 : c.id
|
|
5190
|
-
} :
|
|
5149
|
+
} : qr({
|
|
5191
5150
|
item: e.content,
|
|
5192
|
-
canTrack:
|
|
5151
|
+
canTrack: vt(e.canTrack)
|
|
5193
5152
|
});
|
|
5194
5153
|
};
|
|
5195
5154
|
return /* @__PURE__ */ se(K, { children: [
|
|
5196
|
-
!e.isNestedRender && it !== "reactNative" ? /* @__PURE__ */
|
|
5197
|
-
|
|
5155
|
+
!e.isNestedRender && it !== "reactNative" ? /* @__PURE__ */ y(
|
|
5156
|
+
qt,
|
|
5198
5157
|
{
|
|
5199
5158
|
id: "builderio-init-variants-fns",
|
|
5200
|
-
scriptStr:
|
|
5159
|
+
scriptStr: Ao()
|
|
5201
5160
|
}
|
|
5202
5161
|
) : null,
|
|
5203
5162
|
t ? /* @__PURE__ */ se(K, { children: [
|
|
5204
|
-
/* @__PURE__ */
|
|
5205
|
-
|
|
5163
|
+
/* @__PURE__ */ y(
|
|
5164
|
+
kt,
|
|
5206
5165
|
{
|
|
5207
5166
|
id: "builderio-variants",
|
|
5208
5167
|
styles: r()
|
|
5209
5168
|
}
|
|
5210
5169
|
),
|
|
5211
|
-
/* @__PURE__ */
|
|
5212
|
-
|
|
5170
|
+
/* @__PURE__ */ y(
|
|
5171
|
+
qt,
|
|
5213
5172
|
{
|
|
5214
5173
|
id: "builderio-variants-visibility",
|
|
5215
5174
|
scriptStr: n()
|
|
5216
5175
|
}
|
|
5217
5176
|
),
|
|
5218
|
-
(a = gt(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */
|
|
5219
|
-
|
|
5177
|
+
(a = gt(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */ y(
|
|
5178
|
+
sr,
|
|
5220
5179
|
{
|
|
5221
5180
|
isNestedRender: e.isNestedRender,
|
|
5222
5181
|
content: s,
|
|
@@ -5241,8 +5200,8 @@ function qo(e) {
|
|
|
5241
5200
|
s.testVariationId
|
|
5242
5201
|
))
|
|
5243
5202
|
] }) : null,
|
|
5244
|
-
/* @__PURE__ */
|
|
5245
|
-
|
|
5203
|
+
/* @__PURE__ */ y(
|
|
5204
|
+
sr,
|
|
5246
5205
|
{
|
|
5247
5206
|
isNestedRender: e.isNestedRender,
|
|
5248
5207
|
content: i(),
|
|
@@ -5267,13 +5226,13 @@ function qo(e) {
|
|
|
5267
5226
|
)
|
|
5268
5227
|
] });
|
|
5269
5228
|
}
|
|
5270
|
-
const
|
|
5229
|
+
const qo = async ({
|
|
5271
5230
|
builderContextValue: e,
|
|
5272
5231
|
symbol: t
|
|
5273
5232
|
}) => {
|
|
5274
5233
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5275
5234
|
(e != null && e.apiKey))
|
|
5276
|
-
return
|
|
5235
|
+
return lr({
|
|
5277
5236
|
model: t.model,
|
|
5278
5237
|
apiKey: e.apiKey,
|
|
5279
5238
|
apiVersion: e.apiVersion,
|
|
@@ -5286,7 +5245,7 @@ const Zo = async ({
|
|
|
5286
5245
|
ot.error("Could not fetch symbol content: ", n);
|
|
5287
5246
|
});
|
|
5288
5247
|
};
|
|
5289
|
-
async function
|
|
5248
|
+
async function Zo(e) {
|
|
5290
5249
|
var a, s, c, f, g;
|
|
5291
5250
|
const t = function() {
|
|
5292
5251
|
return "div";
|
|
@@ -5300,12 +5259,12 @@ async function Qo(e) {
|
|
|
5300
5259
|
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
5301
5260
|
(j = e.symbol) != null && j.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5302
5261
|
].filter(Boolean).join(" ");
|
|
5303
|
-
}, i = ((a = e.symbol) == null ? void 0 : a.content) || await
|
|
5262
|
+
}, i = ((a = e.symbol) == null ? void 0 : a.content) || await qo({
|
|
5304
5263
|
symbol: e.symbol,
|
|
5305
5264
|
builderContextValue: e.builderContext
|
|
5306
5265
|
});
|
|
5307
|
-
return /* @__PURE__ */
|
|
5308
|
-
|
|
5266
|
+
return /* @__PURE__ */ y("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ y(
|
|
5267
|
+
Jo,
|
|
5309
5268
|
{
|
|
5310
5269
|
isNestedRender: !0,
|
|
5311
5270
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5330,15 +5289,15 @@ async function Qo(e) {
|
|
|
5330
5289
|
) });
|
|
5331
5290
|
}
|
|
5332
5291
|
export {
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5292
|
+
mn as Blocks,
|
|
5293
|
+
Oo as BuilderContext,
|
|
5294
|
+
ni as Button,
|
|
5295
|
+
Ji as Columns,
|
|
5296
|
+
Jo as Content,
|
|
5297
|
+
qi as Fragment,
|
|
5298
|
+
eo as Image,
|
|
5299
|
+
to as Section,
|
|
5300
|
+
Zo as Symbol,
|
|
5301
|
+
fo as Text,
|
|
5302
|
+
ko as Video
|
|
5344
5303
|
};
|