@builder.io/sdk-react-nextjs 0.14.25 → 0.14.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{USE_CLIENT_BUNDLE-1ddfeb58.cjs → USE_CLIENT_BUNDLE-2cf82d62.cjs} +5 -5
- package/lib/{node/USE_CLIENT_BUNDLE-ef4baa66.js → browser/USE_CLIENT_BUNDLE-6310e997.js} +36 -35
- package/lib/{edge/USE_SERVER_BUNDLE-78eb2f70.cjs → browser/USE_SERVER_BUNDLE-96b0d36a.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-f025d6d8.js → browser/USE_SERVER_BUNDLE-af025398.js} +1 -1
- package/lib/browser/bundle-301a174a.cjs +169 -0
- package/lib/browser/{bundle-761961a0.js → bundle-9a8df6bb.js} +311 -302
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-f7463aa3.cjs → edge/USE_CLIENT_BUNDLE-23fc72a9.cjs} +5 -5
- package/lib/{browser/USE_CLIENT_BUNDLE-8cd3386f.js → edge/USE_CLIENT_BUNDLE-890ac9eb.js} +36 -35
- package/lib/{node/USE_SERVER_BUNDLE-3c35d11e.js → edge/USE_SERVER_BUNDLE-317929d2.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-e5e233d2.cjs → edge/USE_SERVER_BUNDLE-73825717.cjs} +1 -1
- package/lib/edge/bundle-8d9ad243.cjs +189 -0
- package/lib/edge/{bundle-2dc98ad8.js → bundle-db39aa05.js} +843 -842
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-e4abd45c.js → node/USE_CLIENT_BUNDLE-70674322.js} +36 -35
- package/lib/{edge/USE_CLIENT_BUNDLE-2ee56c62.cjs → node/USE_CLIENT_BUNDLE-f80aef0a.cjs} +5 -5
- package/lib/{browser/USE_SERVER_BUNDLE-457ff39c.js → node/USE_SERVER_BUNDLE-07526cde.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-7b480ad5.cjs → node/USE_SERVER_BUNDLE-07fef498.cjs} +1 -1
- package/lib/node/{bundle-90827143.js → bundle-ae4a53d3.js} +26 -17
- package/lib/node/{bundle-df5510f7.cjs → bundle-c7a93d74.cjs} +5 -5
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/blocks/image/image.types.d.ts +1 -0
- package/types/cjs/components/block/block.helpers.d.ts +20 -2
- package/types/cjs/components/block/components/block-wrapper.d.ts +0 -1
- package/types/cjs/components/content/components/enable-editor.d.ts +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/context/types.d.ts +1 -0
- package/types/esm/blocks/image/image.types.d.ts +1 -0
- package/types/esm/components/block/block.helpers.d.ts +20 -2
- package/types/esm/components/block/components/block-wrapper.d.ts +0 -1
- package/types/esm/components/content/components/enable-editor.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/context/types.d.ts +1 -0
- package/lib/browser/bundle-9d1d2542.cjs +0 -169
- package/lib/edge/bundle-8f003cc6.cjs +0 -189
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as T, Fragment as ee, jsxs as xe } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { LRUCache as oo } from "lru-cache";
|
|
4
|
-
import { I as io, B as ao, a as so, D as lo, C as co, E as uo, b as fo, V as po, c as ho, F as mo, d as go, S as yo, e as vo } from "./USE_CLIENT_BUNDLE-
|
|
4
|
+
import { I as io, B as ao, a as so, D as lo, C as co, E as uo, b as fo, V as po, c as ho, F as mo, d as go, S as yo, e as vo } from "./USE_CLIENT_BUNDLE-890ac9eb.js";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const bo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]),
|
|
7
|
-
switch (
|
|
6
|
+
const bo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), qa = (e) => typeof e == "string" && bo.has(e.toLowerCase()), Z = "rsc", Yt = () => {
|
|
7
|
+
switch (Z) {
|
|
8
8
|
case "react":
|
|
9
9
|
case "reactNative":
|
|
10
10
|
case "rsc":
|
|
@@ -21,20 +21,16 @@ function So(e) {
|
|
|
21
21
|
var t;
|
|
22
22
|
return {
|
|
23
23
|
...(t = e.component) == null ? void 0 : t.options,
|
|
24
|
-
...e.options
|
|
25
|
-
/**
|
|
26
|
-
* Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
|
|
27
|
-
*/
|
|
28
|
-
builderBlock: e
|
|
24
|
+
...e.options
|
|
29
25
|
};
|
|
30
26
|
}
|
|
31
|
-
const lt = "[Builder.io]: ",
|
|
27
|
+
const lt = "[Builder.io]: ", te = {
|
|
32
28
|
log: (...e) => console.log(lt, ...e),
|
|
33
29
|
error: (...e) => console.error(lt, ...e),
|
|
34
30
|
warn: (...e) => console.warn(lt, ...e),
|
|
35
31
|
debug: (...e) => console.debug(lt, ...e)
|
|
36
32
|
};
|
|
37
|
-
function
|
|
33
|
+
function X() {
|
|
38
34
|
return typeof window < "u" && typeof document < "u";
|
|
39
35
|
}
|
|
40
36
|
const wo = (e) => {
|
|
@@ -44,19 +40,19 @@ const wo = (e) => {
|
|
|
44
40
|
}), t;
|
|
45
41
|
}, cr = (e) => e instanceof URLSearchParams ? wo(e) : e, ur = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
46
42
|
function xo() {
|
|
47
|
-
return
|
|
43
|
+
return X() && window.self !== window.top;
|
|
48
44
|
}
|
|
49
|
-
function
|
|
45
|
+
function dr(e) {
|
|
50
46
|
return xo() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
51
47
|
ur(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
52
48
|
}
|
|
53
49
|
const ko = () => {
|
|
54
|
-
if (
|
|
50
|
+
if (X()) {
|
|
55
51
|
const e = new URL(location.href);
|
|
56
52
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
57
53
|
} else
|
|
58
54
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
59
|
-
}, Co = () => typeof navigator == "object" && navigator.userAgent || "",
|
|
55
|
+
}, Co = () => typeof navigator == "object" && navigator.userAgent || "", fr = () => {
|
|
60
56
|
const e = Co(), t = {
|
|
61
57
|
Android() {
|
|
62
58
|
return e.match(/Android/i);
|
|
@@ -74,7 +70,7 @@ const ko = () => {
|
|
|
74
70
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
75
71
|
},
|
|
76
72
|
any() {
|
|
77
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
73
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || Z === "reactNative";
|
|
78
74
|
}
|
|
79
75
|
}, n = e.match(/Tablet|iPad/i), r = ko();
|
|
80
76
|
return {
|
|
@@ -95,10 +91,10 @@ const ko = () => {
|
|
|
95
91
|
context: t,
|
|
96
92
|
event: n
|
|
97
93
|
}), Eo = () => ({
|
|
98
|
-
isEditing:
|
|
99
|
-
isBrowser:
|
|
100
|
-
isServer: !
|
|
101
|
-
getUserAttributes: () =>
|
|
94
|
+
isEditing: dr(),
|
|
95
|
+
isBrowser: X(),
|
|
96
|
+
isServer: !X(),
|
|
97
|
+
getUserAttributes: () => fr()
|
|
102
98
|
}), Io = (e, {
|
|
103
99
|
isExpression: t = !0
|
|
104
100
|
}) => /* 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, To = ({
|
|
@@ -153,7 +149,7 @@ const mr = (e, t, n) => {
|
|
|
153
149
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
154
150
|
return r.slice(0, -1).reduce((o, i, s) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
155
151
|
};
|
|
156
|
-
var
|
|
152
|
+
var P, Ao = function(e) {
|
|
157
153
|
function t(a) {
|
|
158
154
|
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && no.test(String.fromCharCode(a));
|
|
159
155
|
}
|
|
@@ -161,65 +157,65 @@ var B, Ao = function(e) {
|
|
|
161
157
|
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && $n.test(String.fromCharCode(a));
|
|
162
158
|
}
|
|
163
159
|
function r(a, l) {
|
|
164
|
-
for (var c = y,
|
|
165
|
-
st.lastIndex =
|
|
166
|
-
var
|
|
167
|
-
if (
|
|
168
|
-
++
|
|
160
|
+
for (var c = y, f = 1, E = 0; ; ) {
|
|
161
|
+
st.lastIndex = E;
|
|
162
|
+
var $ = st.exec(c);
|
|
163
|
+
if ($ && $.index < a)
|
|
164
|
+
++f, E = $.index + $[0].length;
|
|
169
165
|
else
|
|
170
166
|
break;
|
|
171
167
|
}
|
|
172
168
|
throw c = {
|
|
173
|
-
line:
|
|
174
|
-
ab: a -
|
|
175
|
-
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = a, l.X = c, l.o =
|
|
169
|
+
line: f,
|
|
170
|
+
ab: a - E
|
|
171
|
+
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = a, l.X = c, l.o = d, l;
|
|
176
172
|
}
|
|
177
173
|
function o(a) {
|
|
178
174
|
a = a.split(" ");
|
|
179
175
|
for (var l = /* @__PURE__ */ Object.create(null), c = 0; c < a.length; c++)
|
|
180
176
|
l[a[c]] = !0;
|
|
181
|
-
return function(
|
|
182
|
-
return l[
|
|
177
|
+
return function(f) {
|
|
178
|
+
return l[f] || !1;
|
|
183
179
|
};
|
|
184
180
|
}
|
|
185
181
|
function i() {
|
|
186
|
-
this.line = Se, this.ab =
|
|
182
|
+
this.line = Se, this.ab = d - ce;
|
|
187
183
|
}
|
|
188
184
|
function s(a, l) {
|
|
189
|
-
Ce =
|
|
185
|
+
Ce = d, A.C && (It = new i()), C = a, p(), ne = l, Me = a.m;
|
|
190
186
|
}
|
|
191
187
|
function u() {
|
|
192
|
-
for (var a =
|
|
193
|
-
++
|
|
194
|
-
A.va && A.va(!1, y.slice(a + 2,
|
|
188
|
+
for (var a = d, l = A.va && A.C && new i(), c = y.charCodeAt(d += 2); d < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
189
|
+
++d, c = y.charCodeAt(d);
|
|
190
|
+
A.va && A.va(!1, y.slice(a + 2, d), a, d, l, A.C && new i());
|
|
195
191
|
}
|
|
196
192
|
function p() {
|
|
197
|
-
for (;
|
|
198
|
-
var a = y.charCodeAt(
|
|
193
|
+
for (; d < ke; ) {
|
|
194
|
+
var a = y.charCodeAt(d);
|
|
199
195
|
if (a === 32)
|
|
200
|
-
++
|
|
196
|
+
++d;
|
|
201
197
|
else if (a === 13)
|
|
202
|
-
++
|
|
198
|
+
++d, a = y.charCodeAt(d), a === 10 && ++d, A.C && (++Se, ce = d);
|
|
203
199
|
else if (a === 10 || a === 8232 || a === 8233)
|
|
204
|
-
++
|
|
200
|
+
++d, A.C && (++Se, ce = d);
|
|
205
201
|
else if (8 < a && 14 > a)
|
|
206
|
-
++
|
|
202
|
+
++d;
|
|
207
203
|
else if (a === 47)
|
|
208
|
-
if (a = y.charCodeAt(
|
|
204
|
+
if (a = y.charCodeAt(d + 1), a === 42) {
|
|
209
205
|
a = void 0;
|
|
210
|
-
var l = A.va && A.C && new i(), c =
|
|
211
|
-
if (
|
|
212
|
-
for (st.lastIndex = c; (a = st.exec(y)) && a.index <
|
|
213
|
-
++Se,
|
|
214
|
-
A.va && A.va(!0, y.slice(c + 2,
|
|
206
|
+
var l = A.va && A.C && new i(), c = d, f = y.indexOf("*/", d += 2);
|
|
207
|
+
if (f === -1 && r(d - 2, "Unterminated comment"), d = f + 2, A.C)
|
|
208
|
+
for (st.lastIndex = c; (a = st.exec(y)) && a.index < d; )
|
|
209
|
+
++Se, ce = a.index + a[0].length;
|
|
210
|
+
A.va && A.va(!0, y.slice(c + 2, f), c, d, l, A.C && new i());
|
|
215
211
|
} else if (a === 47)
|
|
216
212
|
u();
|
|
217
213
|
else
|
|
218
214
|
break;
|
|
219
215
|
else if (a === 160)
|
|
220
|
-
++
|
|
216
|
+
++d;
|
|
221
217
|
else if (5760 <= a && to.test(String.fromCharCode(a)))
|
|
222
|
-
++
|
|
218
|
+
++d;
|
|
223
219
|
else
|
|
224
220
|
break;
|
|
225
221
|
}
|
|
@@ -227,31 +223,31 @@ var B, Ao = function(e) {
|
|
|
227
223
|
function b(a) {
|
|
228
224
|
switch (a) {
|
|
229
225
|
case 46:
|
|
230
|
-
a = y.charCodeAt(
|
|
226
|
+
a = y.charCodeAt(d + 1), 48 <= a && 57 >= a ? B(!0) : (++d, s(Fn));
|
|
231
227
|
return;
|
|
232
228
|
case 40:
|
|
233
|
-
return ++
|
|
229
|
+
return ++d, s(ue);
|
|
234
230
|
case 41:
|
|
235
|
-
return ++
|
|
231
|
+
return ++d, s(ie);
|
|
236
232
|
case 59:
|
|
237
|
-
return ++
|
|
233
|
+
return ++d, s(de);
|
|
238
234
|
case 44:
|
|
239
|
-
return ++
|
|
235
|
+
return ++d, s(ye);
|
|
240
236
|
case 91:
|
|
241
|
-
return ++
|
|
237
|
+
return ++d, s(Ut);
|
|
242
238
|
case 93:
|
|
243
|
-
return ++
|
|
239
|
+
return ++d, s(Mt);
|
|
244
240
|
case 123:
|
|
245
|
-
return ++
|
|
241
|
+
return ++d, s(Le);
|
|
246
242
|
case 125:
|
|
247
|
-
return ++
|
|
243
|
+
return ++d, s(Ie);
|
|
248
244
|
case 58:
|
|
249
|
-
return ++
|
|
245
|
+
return ++d, s(We);
|
|
250
246
|
case 63:
|
|
251
|
-
return ++
|
|
247
|
+
return ++d, s(Un);
|
|
252
248
|
case 48:
|
|
253
|
-
if (a = y.charCodeAt(
|
|
254
|
-
|
|
249
|
+
if (a = y.charCodeAt(d + 1), a === 120 || a === 88) {
|
|
250
|
+
d += 2, a = R(16), a === null && r(_ + 2, "Expected hexadecimal number"), n(y.charCodeAt(d)) && r(d, "Identifier directly after number"), s(De, a);
|
|
255
251
|
return;
|
|
256
252
|
}
|
|
257
253
|
case 49:
|
|
@@ -263,24 +259,24 @@ var B, Ao = function(e) {
|
|
|
263
259
|
case 55:
|
|
264
260
|
case 56:
|
|
265
261
|
case 57:
|
|
266
|
-
return
|
|
262
|
+
return B(!1);
|
|
267
263
|
case 34:
|
|
268
264
|
case 39:
|
|
269
|
-
|
|
265
|
+
d++;
|
|
270
266
|
for (var l = ""; ; ) {
|
|
271
|
-
|
|
272
|
-
var c = y.charCodeAt(
|
|
267
|
+
d >= ke && r(_, "Unterminated string constant");
|
|
268
|
+
var c = y.charCodeAt(d);
|
|
273
269
|
if (c === a) {
|
|
274
|
-
++
|
|
270
|
+
++d, s(rt, l);
|
|
275
271
|
break;
|
|
276
272
|
}
|
|
277
273
|
if (c === 92) {
|
|
278
|
-
c = y.charCodeAt(++
|
|
279
|
-
var
|
|
280
|
-
for (
|
|
281
|
-
|
|
282
|
-
if (
|
|
283
|
-
Q && r(
|
|
274
|
+
c = y.charCodeAt(++d);
|
|
275
|
+
var f = /^[0-7]+/.exec(y.slice(d, d + 3));
|
|
276
|
+
for (f && (f = f[0]); f && 255 < parseInt(f, 8); )
|
|
277
|
+
f = f.slice(0, -1);
|
|
278
|
+
if (f === "0" && (f = null), ++d, f)
|
|
279
|
+
Q && r(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(f, 8)), d += f.length - 1;
|
|
284
280
|
else
|
|
285
281
|
switch (c) {
|
|
286
282
|
case 110:
|
|
@@ -291,13 +287,13 @@ var B, Ao = function(e) {
|
|
|
291
287
|
l += "\r";
|
|
292
288
|
break;
|
|
293
289
|
case 120:
|
|
294
|
-
l += String.fromCharCode(
|
|
290
|
+
l += String.fromCharCode(N(2));
|
|
295
291
|
break;
|
|
296
292
|
case 117:
|
|
297
|
-
l += String.fromCharCode(
|
|
293
|
+
l += String.fromCharCode(N(4));
|
|
298
294
|
break;
|
|
299
295
|
case 85:
|
|
300
|
-
l += String.fromCharCode(
|
|
296
|
+
l += String.fromCharCode(N(8));
|
|
301
297
|
break;
|
|
302
298
|
case 116:
|
|
303
299
|
l += " ";
|
|
@@ -315,42 +311,42 @@ var B, Ao = function(e) {
|
|
|
315
311
|
l += "\0";
|
|
316
312
|
break;
|
|
317
313
|
case 13:
|
|
318
|
-
y.charCodeAt(
|
|
314
|
+
y.charCodeAt(d) === 10 && ++d;
|
|
319
315
|
case 10:
|
|
320
|
-
A.C && (
|
|
316
|
+
A.C && (ce = d, ++Se);
|
|
321
317
|
break;
|
|
322
318
|
default:
|
|
323
319
|
l += String.fromCharCode(c);
|
|
324
320
|
}
|
|
325
321
|
} else
|
|
326
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(
|
|
322
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(_, "Unterminated string constant"), l += String.fromCharCode(c), ++d;
|
|
327
323
|
}
|
|
328
324
|
return;
|
|
329
325
|
case 47:
|
|
330
|
-
a = y.charCodeAt(
|
|
326
|
+
a = y.charCodeAt(d + 1), Me ? (++d, O()) : a === 61 ? m(we, 2) : m(Mn, 1);
|
|
331
327
|
return;
|
|
332
328
|
case 37:
|
|
333
329
|
case 42:
|
|
334
|
-
y.charCodeAt(
|
|
330
|
+
y.charCodeAt(d + 1) === 61 ? m(we, 2) : m(Zr, 1);
|
|
335
331
|
return;
|
|
336
332
|
case 124:
|
|
337
333
|
case 38:
|
|
338
|
-
l = y.charCodeAt(
|
|
334
|
+
l = y.charCodeAt(d + 1), l === a ? m(a === 124 ? Ln : Wn, 2) : l === 61 ? m(we, 2) : m(a === 124 ? Kr : Xr, 1);
|
|
339
335
|
return;
|
|
340
336
|
case 94:
|
|
341
|
-
y.charCodeAt(
|
|
337
|
+
y.charCodeAt(d + 1) === 61 ? m(we, 2) : m(Gr, 1);
|
|
342
338
|
return;
|
|
343
339
|
case 43:
|
|
344
340
|
case 45:
|
|
345
|
-
l = y.charCodeAt(
|
|
341
|
+
l = y.charCodeAt(d + 1), l === a ? l === 45 && y.charCodeAt(d + 2) === 62 && at.test(y.slice(ge, d)) ? (d += 3, u(), p(), x()) : m(Hr, 2) : l === 61 ? m(we, 2) : m(qr, 1);
|
|
346
342
|
return;
|
|
347
343
|
case 60:
|
|
348
344
|
case 62:
|
|
349
|
-
l = y.charCodeAt(
|
|
345
|
+
l = y.charCodeAt(d + 1), c = 1, l === a ? (c = a === 62 && y.charCodeAt(d + 2) === 62 ? 3 : 2, y.charCodeAt(d + c) === 61 ? m(we, c + 1) : m(Jr, c)) : l === 33 && a === 60 && y.charCodeAt(d + 2) === 45 && y.charCodeAt(d + 3) === 45 ? (d += 4, u(), p(), x()) : (l === 61 && (c = y.charCodeAt(d + 2) === 61 ? 3 : 2), m(zr, c));
|
|
350
346
|
return;
|
|
351
347
|
case 61:
|
|
352
348
|
case 33:
|
|
353
|
-
y.charCodeAt(
|
|
349
|
+
y.charCodeAt(d + 1) === 61 ? m(Yr, y.charCodeAt(d + 2) === 61 ? 3 : 2) : m(a === 61 ? Vn : Dn, 1);
|
|
354
350
|
return;
|
|
355
351
|
case 126:
|
|
356
352
|
return m(Dn, 1);
|
|
@@ -358,344 +354,344 @@ var B, Ao = function(e) {
|
|
|
358
354
|
return !1;
|
|
359
355
|
}
|
|
360
356
|
function x(a) {
|
|
361
|
-
if (a ?
|
|
357
|
+
if (a ? d = _ + 1 : _ = d, A.C && (Et = new i()), a)
|
|
362
358
|
return O();
|
|
363
|
-
if (
|
|
359
|
+
if (d >= ke)
|
|
364
360
|
return s(Ot);
|
|
365
|
-
if (a = y.charCodeAt(
|
|
366
|
-
return
|
|
361
|
+
if (a = y.charCodeAt(d), n(a) || a === 92)
|
|
362
|
+
return k();
|
|
367
363
|
if (b(a) === !1) {
|
|
368
364
|
if (a = String.fromCharCode(a), a === "\\" || $n.test(a))
|
|
369
|
-
return
|
|
370
|
-
r(
|
|
365
|
+
return k();
|
|
366
|
+
r(d, "Unexpected character '" + a + "'");
|
|
371
367
|
}
|
|
372
368
|
}
|
|
373
369
|
function m(a, l) {
|
|
374
|
-
var c = y.slice(
|
|
375
|
-
|
|
370
|
+
var c = y.slice(d, d + l);
|
|
371
|
+
d += l, s(a, c);
|
|
376
372
|
}
|
|
377
373
|
function O() {
|
|
378
|
-
for (var a, l, c =
|
|
379
|
-
|
|
380
|
-
var
|
|
381
|
-
if (at.test(
|
|
374
|
+
for (var a, l, c = d; ; ) {
|
|
375
|
+
d >= ke && r(c, "Unterminated regexp");
|
|
376
|
+
var f = y.charAt(d);
|
|
377
|
+
if (at.test(f) && r(c, "Unterminated regexp"), a)
|
|
382
378
|
a = !1;
|
|
383
379
|
else {
|
|
384
|
-
if (
|
|
380
|
+
if (f === "[")
|
|
385
381
|
l = !0;
|
|
386
|
-
else if (
|
|
382
|
+
else if (f === "]" && l)
|
|
387
383
|
l = !1;
|
|
388
|
-
else if (
|
|
384
|
+
else if (f === "/" && !l)
|
|
389
385
|
break;
|
|
390
|
-
a =
|
|
386
|
+
a = f === "\\";
|
|
391
387
|
}
|
|
392
|
-
++
|
|
388
|
+
++d;
|
|
393
389
|
}
|
|
394
|
-
a = y.slice(c,
|
|
390
|
+
a = y.slice(c, d), ++d, (l = W()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
395
391
|
try {
|
|
396
|
-
var
|
|
397
|
-
} catch (
|
|
398
|
-
throw
|
|
392
|
+
var E = new RegExp(a, l);
|
|
393
|
+
} catch ($) {
|
|
394
|
+
throw $ instanceof SyntaxError && r(c, $.message), $;
|
|
399
395
|
}
|
|
400
|
-
s(gn,
|
|
396
|
+
s(gn, E);
|
|
401
397
|
}
|
|
402
|
-
function
|
|
403
|
-
for (var c =
|
|
404
|
-
var
|
|
405
|
-
if (
|
|
398
|
+
function R(a, l) {
|
|
399
|
+
for (var c = d, f = 0, E = l === void 0 ? 1 / 0 : l, $ = 0; $ < E; ++$) {
|
|
400
|
+
var z = y.charCodeAt(d);
|
|
401
|
+
if (z = 97 <= z ? z - 97 + 10 : 65 <= z ? z - 65 + 10 : 48 <= z && 57 >= z ? z - 48 : 1 / 0, z >= a)
|
|
406
402
|
break;
|
|
407
|
-
++
|
|
403
|
+
++d, f = f * a + z;
|
|
408
404
|
}
|
|
409
|
-
return
|
|
405
|
+
return d === c || l !== void 0 && d - c !== l ? null : f;
|
|
410
406
|
}
|
|
411
|
-
function
|
|
412
|
-
var l =
|
|
413
|
-
a ||
|
|
414
|
-
var
|
|
415
|
-
c ?
|
|
407
|
+
function B(a) {
|
|
408
|
+
var l = d, c = !1, f = y.charCodeAt(d) === 48;
|
|
409
|
+
a || R(10) !== null || r(l, "Invalid number"), y.charCodeAt(d) === 46 && (++d, R(10), c = !0), a = y.charCodeAt(d), (a === 69 || a === 101) && (a = y.charCodeAt(++d), a !== 43 && a !== 45 || ++d, R(10) === null && r(l, "Invalid number"), c = !0), n(y.charCodeAt(d)) && r(d, "Identifier directly after number"), a = y.slice(l, d);
|
|
410
|
+
var E;
|
|
411
|
+
c ? E = parseFloat(a) : f && a.length !== 1 ? /[89]/.test(a) || Q ? r(l, "Invalid number") : E = parseInt(a, 8) : E = parseInt(a, 10), s(De, E);
|
|
416
412
|
}
|
|
417
|
-
function
|
|
418
|
-
return a =
|
|
413
|
+
function N(a) {
|
|
414
|
+
return a = R(16, a), a === null && r(_, "Bad character escape sequence"), a;
|
|
419
415
|
}
|
|
420
|
-
function
|
|
416
|
+
function W() {
|
|
421
417
|
Te = !1;
|
|
422
|
-
for (var a, l = !0, c =
|
|
423
|
-
var
|
|
424
|
-
if (t(
|
|
425
|
-
Te && (a += y.charAt(
|
|
426
|
-
else if (
|
|
427
|
-
Te || (a = y.slice(c,
|
|
428
|
-
var
|
|
429
|
-
|
|
418
|
+
for (var a, l = !0, c = d; ; ) {
|
|
419
|
+
var f = y.charCodeAt(d);
|
|
420
|
+
if (t(f))
|
|
421
|
+
Te && (a += y.charAt(d)), ++d;
|
|
422
|
+
else if (f === 92) {
|
|
423
|
+
Te || (a = y.slice(c, d)), Te = !0, y.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, f = N(4);
|
|
424
|
+
var E = String.fromCharCode(f);
|
|
425
|
+
E || r(d - 1, "Invalid Unicode escape"), (l ? n(f) : t(f)) || r(d - 4, "Invalid Unicode escape"), a += E;
|
|
430
426
|
} else
|
|
431
427
|
break;
|
|
432
428
|
l = !1;
|
|
433
429
|
}
|
|
434
|
-
return Te ? a : y.slice(c,
|
|
430
|
+
return Te ? a : y.slice(c, d);
|
|
435
431
|
}
|
|
436
|
-
function
|
|
437
|
-
var a =
|
|
432
|
+
function k() {
|
|
433
|
+
var a = W(), l = Ee;
|
|
438
434
|
!Te && eo(a) && (l = $r[a]), s(l, a);
|
|
439
435
|
}
|
|
440
436
|
function g() {
|
|
441
|
-
Tt =
|
|
437
|
+
Tt = _, ge = Ce, At = It, x();
|
|
442
438
|
}
|
|
443
|
-
function
|
|
444
|
-
if (Q = a,
|
|
445
|
-
for (;
|
|
446
|
-
|
|
447
|
-
`,
|
|
439
|
+
function F(a) {
|
|
440
|
+
if (Q = a, d = _, A.C)
|
|
441
|
+
for (; d < ce; )
|
|
442
|
+
ce = y.lastIndexOf(`
|
|
443
|
+
`, ce - 2) + 1, --Se;
|
|
448
444
|
p(), x();
|
|
449
445
|
}
|
|
450
|
-
function
|
|
451
|
-
this.type = null, this.start =
|
|
446
|
+
function U() {
|
|
447
|
+
this.type = null, this.start = _, this.end = null;
|
|
452
448
|
}
|
|
453
|
-
function
|
|
449
|
+
function Y() {
|
|
454
450
|
this.start = Et, this.end = null, Ct && (this.source = Ct);
|
|
455
451
|
}
|
|
456
452
|
function V() {
|
|
457
|
-
var a = new
|
|
458
|
-
return A.C && (a.X = new
|
|
453
|
+
var a = new U();
|
|
454
|
+
return A.C && (a.X = new Y()), A.vb && (a.sourceFile = A.vb), A.Xa && (a.j = [_, 0]), a;
|
|
459
455
|
}
|
|
460
|
-
function
|
|
461
|
-
var l = new
|
|
462
|
-
return l.start = a.start, A.C && (l.X = new
|
|
456
|
+
function re(a) {
|
|
457
|
+
var l = new U();
|
|
458
|
+
return l.start = a.start, A.C && (l.X = new Y(), l.X.start = a.X.start), A.Xa && (l.j = [a.j[0], 0]), l;
|
|
463
459
|
}
|
|
464
|
-
function
|
|
460
|
+
function I(a, l) {
|
|
465
461
|
return a.type = l, a.end = ge, A.C && (a.X.end = At), A.Xa && (a.j[1] = ge), a;
|
|
466
462
|
}
|
|
467
463
|
function Qe(a) {
|
|
468
464
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
469
465
|
}
|
|
470
466
|
function M(a) {
|
|
471
|
-
return
|
|
467
|
+
return C === a ? (g(), !0) : !1;
|
|
472
468
|
}
|
|
473
469
|
function et() {
|
|
474
|
-
return !A.fc && (
|
|
470
|
+
return !A.fc && (C === Ot || C === Ie || at.test(y.slice(ge, _)));
|
|
475
471
|
}
|
|
476
472
|
function be() {
|
|
477
|
-
M(
|
|
473
|
+
M(de) || et() || se();
|
|
478
474
|
}
|
|
479
475
|
function D(a) {
|
|
480
|
-
|
|
476
|
+
C === a ? g() : se();
|
|
481
477
|
}
|
|
482
|
-
function
|
|
483
|
-
r(
|
|
478
|
+
function se() {
|
|
479
|
+
r(_, "Unexpected token");
|
|
484
480
|
}
|
|
485
481
|
function tt(a) {
|
|
486
482
|
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), Q && a.type === "Identifier" && it(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
487
483
|
}
|
|
488
|
-
function
|
|
489
|
-
(
|
|
490
|
-
var a =
|
|
484
|
+
function oe() {
|
|
485
|
+
(C === Mn || C === we && ne === "/=") && x(!0);
|
|
486
|
+
var a = C, l = V();
|
|
491
487
|
switch (a) {
|
|
492
488
|
case jt:
|
|
493
489
|
case vn:
|
|
494
490
|
g();
|
|
495
491
|
var c = a === jt;
|
|
496
|
-
M(
|
|
497
|
-
for (var
|
|
498
|
-
var
|
|
499
|
-
if ((l.label === null ||
|
|
492
|
+
M(de) || et() ? l.label = null : C !== Ee ? se() : (l.label = le(), be());
|
|
493
|
+
for (var f = 0; f < L.length; ++f) {
|
|
494
|
+
var E = L[f];
|
|
495
|
+
if ((l.label === null || E.name === l.label.name) && (E.kind !== null && (c || E.kind === "loop") || l.label && c))
|
|
500
496
|
break;
|
|
501
497
|
}
|
|
502
|
-
return
|
|
498
|
+
return f === L.length && r(l.start, "Unsyntactic " + a.l), I(l, c ? "BreakStatement" : "ContinueStatement");
|
|
503
499
|
case bn:
|
|
504
|
-
return g(), be(),
|
|
500
|
+
return g(), be(), I(l, "DebuggerStatement");
|
|
505
501
|
case wn:
|
|
506
|
-
return g(), L.push(Vt), l.body =
|
|
502
|
+
return g(), L.push(Vt), l.body = oe(), L.pop(), D(Ft), l.test = Be(), be(), I(l, "DoWhileStatement");
|
|
507
503
|
case Cn:
|
|
508
|
-
return g(), L.push(Vt), D(
|
|
504
|
+
return g(), L.push(Vt), D(ue), C === de ? vt(l, null) : C === Bt ? (a = V(), g(), hn(a, !0), I(a, "VariableDeclaration"), a.fa.length === 1 && M(ot) ? pn(l, a) : vt(l, a)) : (a = G(!1, !0), M(ot) ? (tt(a), pn(l, a)) : vt(l, a));
|
|
509
505
|
case Pt:
|
|
510
506
|
return g(), xt(l, !0);
|
|
511
507
|
case En:
|
|
512
|
-
return g(), l.test = Be(), l.da =
|
|
508
|
+
return g(), l.test = Be(), l.da = oe(), l.alternate = M(xn) ? oe() : null, I(l, "IfStatement");
|
|
513
509
|
case In:
|
|
514
|
-
return Ve || A.Ib || r(
|
|
510
|
+
return Ve || A.Ib || r(_, "'return' outside of function"), g(), M(de) || et() ? l.K = null : (l.K = G(), be()), I(l, "ReturnStatement");
|
|
515
511
|
case Nt:
|
|
516
|
-
for (g(), l.Qb = Be(), l.tb = [], D(Le), L.push(ro);
|
|
517
|
-
|
|
518
|
-
return
|
|
512
|
+
for (g(), l.Qb = Be(), l.tb = [], D(Le), L.push(ro); C !== Ie; )
|
|
513
|
+
C === Rt || C === Sn ? (a = C === Rt, f && I(f, "SwitchCase"), l.tb.push(f = V()), f.da = [], g(), a ? f.test = G() : (c && r(Tt, "Multiple default clauses"), c = !0, f.test = null), D(We)) : (f || se(), f.da.push(oe()));
|
|
514
|
+
return f && I(f, "SwitchCase"), g(), L.pop(), I(l, "SwitchStatement");
|
|
519
515
|
case Tn:
|
|
520
|
-
return g(), at.test(y.slice(ge,
|
|
516
|
+
return g(), at.test(y.slice(ge, _)) && r(ge, "Illegal newline after throw"), l.K = G(), be(), I(l, "ThrowStatement");
|
|
521
517
|
case An:
|
|
522
|
-
return g(), l.block =
|
|
518
|
+
return g(), l.block = Fe(), l.Ea = null, C === yn && (a = V(), g(), D(ue), a.Ua = le(), Q && it(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), D(ie), a.body = Fe(), l.Ea = I(a, "CatchClause")), l.fb = M(kn) ? Fe() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), I(l, "TryStatement");
|
|
523
519
|
case Bt:
|
|
524
|
-
return g(), hn(l), be(),
|
|
525
|
-
case
|
|
526
|
-
return g(), l.test = Be(), L.push(Vt), l.body =
|
|
520
|
+
return g(), hn(l), be(), I(l, "VariableDeclaration");
|
|
521
|
+
case Ft:
|
|
522
|
+
return g(), l.test = Be(), L.push(Vt), l.body = oe(), L.pop(), I(l, "WhileStatement");
|
|
527
523
|
case On:
|
|
528
|
-
return Q && r(
|
|
524
|
+
return Q && r(_, "'with' in strict mode"), g(), l.object = Be(), l.body = oe(), I(l, "WithStatement");
|
|
529
525
|
case Le:
|
|
530
|
-
return
|
|
531
|
-
case
|
|
532
|
-
return g(),
|
|
526
|
+
return Fe();
|
|
527
|
+
case de:
|
|
528
|
+
return g(), I(l, "EmptyStatement");
|
|
533
529
|
default:
|
|
534
|
-
if (c =
|
|
535
|
-
for (
|
|
536
|
-
L[
|
|
530
|
+
if (c = ne, E = G(), a === Ee && E.type === "Identifier" && M(We)) {
|
|
531
|
+
for (f = 0; f < L.length; ++f)
|
|
532
|
+
L[f].name === c && r(E.start, "Label '" + c + "' is already declared");
|
|
537
533
|
return L.push({
|
|
538
534
|
name: c,
|
|
539
|
-
kind:
|
|
540
|
-
}), l.body =
|
|
535
|
+
kind: C.W ? "loop" : C === Nt ? "switch" : null
|
|
536
|
+
}), l.body = oe(), L.pop(), l.label = E, I(l, "LabeledStatement");
|
|
541
537
|
}
|
|
542
|
-
return l.la =
|
|
538
|
+
return l.la = E, be(), I(l, "ExpressionStatement");
|
|
543
539
|
}
|
|
544
540
|
}
|
|
545
541
|
function Be() {
|
|
546
|
-
D(
|
|
547
|
-
var a =
|
|
548
|
-
return D(
|
|
542
|
+
D(ue);
|
|
543
|
+
var a = G();
|
|
544
|
+
return D(ie), a;
|
|
549
545
|
}
|
|
550
|
-
function
|
|
551
|
-
var l = V(), c = !0,
|
|
546
|
+
function Fe(a) {
|
|
547
|
+
var l = V(), c = !0, f = !1;
|
|
552
548
|
for (l.body = [], D(Le); !M(Ie); ) {
|
|
553
|
-
var
|
|
554
|
-
if (l.body.push(
|
|
555
|
-
var
|
|
556
|
-
|
|
549
|
+
var E = oe();
|
|
550
|
+
if (l.body.push(E), c && a && Qe(E)) {
|
|
551
|
+
var $ = f;
|
|
552
|
+
F(f = !0);
|
|
557
553
|
}
|
|
558
554
|
c = !1;
|
|
559
555
|
}
|
|
560
|
-
return
|
|
556
|
+
return f && !$ && F(!1), I(l, "BlockStatement");
|
|
561
557
|
}
|
|
562
558
|
function vt(a, l) {
|
|
563
|
-
return a.ua = l, D(
|
|
559
|
+
return a.ua = l, D(de), a.test = C === de ? null : G(), D(de), a.update = C === ie ? null : G(), D(ie), a.body = oe(), L.pop(), I(a, "ForStatement");
|
|
564
560
|
}
|
|
565
561
|
function pn(a, l) {
|
|
566
|
-
return a.left = l, a.right =
|
|
562
|
+
return a.left = l, a.right = G(), D(ie), a.body = oe(), L.pop(), I(a, "ForInStatement");
|
|
567
563
|
}
|
|
568
564
|
function hn(a, l) {
|
|
569
565
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
570
566
|
var c = V();
|
|
571
|
-
if (c.id =
|
|
567
|
+
if (c.id = le(), Q && it(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = M(Vn) ? G(!0, l) : null, a.fa.push(I(c, "VariableDeclarator")), !M(ye))
|
|
572
568
|
break;
|
|
573
569
|
}
|
|
574
570
|
}
|
|
575
|
-
function
|
|
571
|
+
function G(a, l) {
|
|
576
572
|
var c = bt(l);
|
|
577
|
-
if (!a &&
|
|
578
|
-
for (a =
|
|
573
|
+
if (!a && C === ye) {
|
|
574
|
+
for (a = re(c), a.xb = [c]; M(ye); )
|
|
579
575
|
a.xb.push(bt(l));
|
|
580
|
-
return
|
|
576
|
+
return I(a, "SequenceExpression");
|
|
581
577
|
}
|
|
582
578
|
return c;
|
|
583
579
|
}
|
|
584
580
|
function bt(a) {
|
|
585
581
|
var l = St(wt(), -1, a);
|
|
586
|
-
if (M(
|
|
587
|
-
var c =
|
|
588
|
-
c.test = l, c.da =
|
|
582
|
+
if (M(Un)) {
|
|
583
|
+
var c = re(l);
|
|
584
|
+
c.test = l, c.da = G(!0), D(We), c.alternate = G(!0, a), l = I(c, "ConditionalExpression");
|
|
589
585
|
}
|
|
590
|
-
return
|
|
586
|
+
return C.Cb ? (c = re(l), c.operator = ne, c.left = l, g(), c.right = bt(a), tt(l), I(c, "AssignmentExpression")) : l;
|
|
591
587
|
}
|
|
592
588
|
function St(a, l, c) {
|
|
593
|
-
var
|
|
594
|
-
if (
|
|
595
|
-
var
|
|
596
|
-
return
|
|
589
|
+
var f = C.L;
|
|
590
|
+
if (f !== null && (!c || C !== ot) && f > l) {
|
|
591
|
+
var E = re(a);
|
|
592
|
+
return E.left = a, E.operator = ne, a = C, g(), E.right = St(wt(), f, c), f = I(E, a === Ln || a === Wn ? "LogicalExpression" : "BinaryExpression"), St(f, l, c);
|
|
597
593
|
}
|
|
598
594
|
return a;
|
|
599
595
|
}
|
|
600
596
|
function wt() {
|
|
601
|
-
if (
|
|
602
|
-
var a = V(), l =
|
|
603
|
-
return a.operator =
|
|
597
|
+
if (C.prefix) {
|
|
598
|
+
var a = V(), l = C.$b;
|
|
599
|
+
return a.operator = ne, Me = a.prefix = !0, g(), a.K = wt(), l ? tt(a.K) : Q && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), I(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
604
600
|
}
|
|
605
|
-
for (l =
|
|
606
|
-
a =
|
|
601
|
+
for (l = Ue(nt()); C.cc && !et(); )
|
|
602
|
+
a = re(l), a.operator = ne, a.prefix = !1, a.K = l, tt(l), g(), l = I(a, "UpdateExpression");
|
|
607
603
|
return l;
|
|
608
604
|
}
|
|
609
|
-
function
|
|
610
|
-
if (M(
|
|
611
|
-
var c =
|
|
612
|
-
return c.object = a, c.Wa =
|
|
605
|
+
function Ue(a, l) {
|
|
606
|
+
if (M(Fn)) {
|
|
607
|
+
var c = re(a);
|
|
608
|
+
return c.object = a, c.Wa = le(!0), c.bb = !1, Ue(I(c, "MemberExpression"), l);
|
|
613
609
|
}
|
|
614
|
-
return M(
|
|
610
|
+
return M(Ut) ? (c = re(a), c.object = a, c.Wa = G(), c.bb = !0, D(Mt), Ue(I(c, "MemberExpression"), l)) : !l && M(ue) ? (c = re(a), c.callee = a, c.arguments = kt(ie, !1), Ue(I(c, "CallExpression"), l)) : a;
|
|
615
611
|
}
|
|
616
612
|
function nt() {
|
|
617
|
-
switch (
|
|
613
|
+
switch (C) {
|
|
618
614
|
case Rn:
|
|
619
615
|
var a = V();
|
|
620
|
-
return g(),
|
|
616
|
+
return g(), I(a, "ThisExpression");
|
|
621
617
|
case Ee:
|
|
622
|
-
return
|
|
618
|
+
return le();
|
|
623
619
|
case De:
|
|
624
620
|
case rt:
|
|
625
621
|
case gn:
|
|
626
|
-
return a = V(), a.value =
|
|
622
|
+
return a = V(), a.value = ne, a.raw = y.slice(_, Ce), g(), I(a, "Literal");
|
|
627
623
|
case Pn:
|
|
628
624
|
case Nn:
|
|
629
625
|
case Bn:
|
|
630
|
-
return a = V(), a.value =
|
|
631
|
-
case
|
|
626
|
+
return a = V(), a.value = C.$a, a.raw = C.l, g(), I(a, "Literal");
|
|
627
|
+
case ue:
|
|
632
628
|
a = Et;
|
|
633
|
-
var l =
|
|
629
|
+
var l = _;
|
|
634
630
|
g();
|
|
635
|
-
var c =
|
|
636
|
-
return c.start = l, c.end = Ce, A.C && (c.X.start = a, c.X.end = It), A.Xa && (c.j = [l, Ce]), D(
|
|
637
|
-
case
|
|
638
|
-
return a = V(), g(), a.elements = kt(
|
|
631
|
+
var c = G();
|
|
632
|
+
return c.start = l, c.end = Ce, A.C && (c.X.start = a, c.X.end = It), A.Xa && (c.j = [l, Ce]), D(ie), c;
|
|
633
|
+
case Ut:
|
|
634
|
+
return a = V(), g(), a.elements = kt(Mt, !0, !0), I(a, "ArrayExpression");
|
|
639
635
|
case Le:
|
|
640
636
|
for (a = V(), l = !0, c = !1, a.h = [], g(); !M(Ie); ) {
|
|
641
637
|
if (l)
|
|
642
638
|
l = !1;
|
|
643
639
|
else if (D(ye), A.sb && M(Ie))
|
|
644
640
|
break;
|
|
645
|
-
var
|
|
646
|
-
key:
|
|
647
|
-
},
|
|
641
|
+
var f = {
|
|
642
|
+
key: C === De || C === rt ? nt() : le(!0)
|
|
643
|
+
}, E = !1;
|
|
648
644
|
if (M(We)) {
|
|
649
|
-
|
|
650
|
-
var
|
|
645
|
+
f.value = G(!0);
|
|
646
|
+
var $ = f.kind = "init";
|
|
651
647
|
} else
|
|
652
|
-
|
|
653
|
-
if (
|
|
654
|
-
for (var
|
|
655
|
-
var Ae = a.h[
|
|
656
|
-
if (Ae.key.name ===
|
|
657
|
-
var Dt =
|
|
658
|
-
Dt && !Q &&
|
|
648
|
+
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? se() : (E = c = !0, $ = f.kind = f.key.name, f.key = C === De || C === rt ? nt() : le(!0), C !== ue && se(), f.value = xt(V(), !1));
|
|
649
|
+
if (f.key.type === "Identifier" && (Q || c))
|
|
650
|
+
for (var z = 0; z < a.h.length; ++z) {
|
|
651
|
+
var Ae = a.h[z];
|
|
652
|
+
if (Ae.key.name === f.key.name) {
|
|
653
|
+
var Dt = $ === Ae.kind || E && Ae.kind === "init" || $ === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
654
|
+
Dt && !Q && $ === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(f.key.start, "Redefinition of property");
|
|
659
655
|
}
|
|
660
656
|
}
|
|
661
|
-
a.h.push(
|
|
657
|
+
a.h.push(f);
|
|
662
658
|
}
|
|
663
|
-
return
|
|
659
|
+
return I(a, "ObjectExpression");
|
|
664
660
|
case Pt:
|
|
665
661
|
return a = V(), g(), xt(a, !1);
|
|
666
662
|
case jn:
|
|
667
|
-
return a = V(), g(), a.callee =
|
|
663
|
+
return a = V(), g(), a.callee = Ue(nt(), !0), a.arguments = M(ue) ? kt(ie, !1) : _r, I(a, "NewExpression");
|
|
668
664
|
}
|
|
669
|
-
|
|
665
|
+
se();
|
|
670
666
|
}
|
|
671
667
|
function xt(a, l) {
|
|
672
|
-
|
|
668
|
+
C === Ee ? a.id = le() : l ? se() : a.id = null, a.oa = [];
|
|
673
669
|
var c = !0;
|
|
674
|
-
for (D(
|
|
675
|
-
c ? c = !1 : D(ye), a.oa.push(
|
|
670
|
+
for (D(ue); !M(ie); )
|
|
671
|
+
c ? c = !1 : D(ye), a.oa.push(le());
|
|
676
672
|
c = Ve;
|
|
677
|
-
var
|
|
678
|
-
if (Ve = !0, L = [], a.body =
|
|
673
|
+
var f = L;
|
|
674
|
+
if (Ve = !0, L = [], a.body = Fe(!0), Ve = c, L = f, Q || a.body.body.length && Qe(a.body.body[0])) {
|
|
679
675
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
680
|
-
if (
|
|
681
|
-
for (var
|
|
682
|
-
|
|
676
|
+
if (f = 0 > c ? a.id : a.oa[c], (_n(f.name) || it(f.name)) && r(f.start, "Defining '" + f.name + "' in strict mode"), 0 <= c)
|
|
677
|
+
for (var E = 0; E < c; ++E)
|
|
678
|
+
f.name === a.oa[E].name && r(f.start, "Argument name clash in strict mode");
|
|
683
679
|
}
|
|
684
|
-
return
|
|
680
|
+
return I(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
685
681
|
}
|
|
686
682
|
function kt(a, l, c) {
|
|
687
|
-
for (var
|
|
688
|
-
if (
|
|
689
|
-
|
|
683
|
+
for (var f = [], E = !0; !M(a); ) {
|
|
684
|
+
if (E)
|
|
685
|
+
E = !1;
|
|
690
686
|
else if (D(ye), l && A.sb && M(a))
|
|
691
687
|
break;
|
|
692
|
-
|
|
688
|
+
f.push(c && C === ye ? null : G(!0));
|
|
693
689
|
}
|
|
694
|
-
return
|
|
690
|
+
return f;
|
|
695
691
|
}
|
|
696
|
-
function
|
|
692
|
+
function le(a) {
|
|
697
693
|
var l = V();
|
|
698
|
-
return a && A.yb === "everywhere" && (a = !1),
|
|
694
|
+
return a && A.yb === "everywhere" && (a = !1), C === Ee ? (!a && (A.yb && Qr(ne) || Q && _n(ne)) && y.slice(_, Ce).indexOf("\\") === -1 && r(_, "The keyword '" + ne + "' is reserved"), l.name = ne) : a && C.l ? l.name = C.l : se(), Me = !1, g(), I(l, "Identifier");
|
|
699
695
|
}
|
|
700
696
|
e.version = "0.5.0";
|
|
701
697
|
var A, y = "", ke, Ct;
|
|
@@ -703,9 +699,9 @@ var B, Ao = function(e) {
|
|
|
703
699
|
y = String(a), ke = y.length, A = l || {};
|
|
704
700
|
for (var c in mn)
|
|
705
701
|
Object.prototype.hasOwnProperty.call(A, c) || (A[c] = mn[c]);
|
|
706
|
-
for (Ct = A.sourceFile, Se = 1,
|
|
707
|
-
c =
|
|
708
|
-
return
|
|
702
|
+
for (Ct = A.sourceFile, Se = 1, d = ce = 0, Me = !0, p(), c = A.dc, Tt = ge = d, A.C && (At = new i()), Ve = Q = !1, L = [], x(), a = c || V(), l = !0, c || (a.body = []); C !== Ot; )
|
|
703
|
+
c = oe(), a.body.push(c), l && Qe(c) && F(!0), l = !1;
|
|
704
|
+
return I(a, "Program");
|
|
709
705
|
};
|
|
710
706
|
var mn = {
|
|
711
707
|
fc: !1,
|
|
@@ -718,7 +714,7 @@ var B, Ao = function(e) {
|
|
|
718
714
|
dc: null,
|
|
719
715
|
sourceFile: null,
|
|
720
716
|
vb: null
|
|
721
|
-
},
|
|
717
|
+
}, d = 0, _ = 0, Ce = 0, Et, It, C, ne, Me, Se, ce, Tt = 0, ge = 0, At, Ve, L, Q, _r = [], De = {
|
|
722
718
|
type: "num"
|
|
723
719
|
}, gn = {
|
|
724
720
|
type: "regexp"
|
|
@@ -768,7 +764,7 @@ var B, Ao = function(e) {
|
|
|
768
764
|
l: "try"
|
|
769
765
|
}, Bt = {
|
|
770
766
|
l: "var"
|
|
771
|
-
},
|
|
767
|
+
}, Ft = {
|
|
772
768
|
l: "while",
|
|
773
769
|
W: !0
|
|
774
770
|
}, On = {
|
|
@@ -809,7 +805,7 @@ var B, Ao = function(e) {
|
|
|
809
805
|
throw: Tn,
|
|
810
806
|
try: An,
|
|
811
807
|
var: Bt,
|
|
812
|
-
while:
|
|
808
|
+
while: Ft,
|
|
813
809
|
with: On,
|
|
814
810
|
null: Pn,
|
|
815
811
|
true: Nn,
|
|
@@ -837,36 +833,36 @@ var B, Ao = function(e) {
|
|
|
837
833
|
prefix: !0,
|
|
838
834
|
m: !0
|
|
839
835
|
}
|
|
840
|
-
},
|
|
836
|
+
}, Ut = {
|
|
841
837
|
type: "[",
|
|
842
838
|
m: !0
|
|
843
|
-
},
|
|
839
|
+
}, Mt = {
|
|
844
840
|
type: "]"
|
|
845
841
|
}, Le = {
|
|
846
842
|
type: "{",
|
|
847
843
|
m: !0
|
|
848
844
|
}, Ie = {
|
|
849
845
|
type: "}"
|
|
850
|
-
},
|
|
846
|
+
}, ue = {
|
|
851
847
|
type: "(",
|
|
852
848
|
m: !0
|
|
853
|
-
},
|
|
849
|
+
}, ie = {
|
|
854
850
|
type: ")"
|
|
855
851
|
}, ye = {
|
|
856
852
|
type: ",",
|
|
857
853
|
m: !0
|
|
858
|
-
},
|
|
854
|
+
}, de = {
|
|
859
855
|
type: ";",
|
|
860
856
|
m: !0
|
|
861
857
|
}, We = {
|
|
862
858
|
type: ":",
|
|
863
859
|
m: !0
|
|
864
|
-
},
|
|
860
|
+
}, Fn = {
|
|
865
861
|
type: "."
|
|
866
|
-
},
|
|
862
|
+
}, Un = {
|
|
867
863
|
type: "?",
|
|
868
864
|
m: !0
|
|
869
|
-
},
|
|
865
|
+
}, Mn = {
|
|
870
866
|
L: 10,
|
|
871
867
|
m: !0
|
|
872
868
|
}, Vn = {
|
|
@@ -900,10 +896,10 @@ var B, Ao = function(e) {
|
|
|
900
896
|
}, Yr = {
|
|
901
897
|
L: 6,
|
|
902
898
|
m: !0
|
|
903
|
-
},
|
|
899
|
+
}, zr = {
|
|
904
900
|
L: 7,
|
|
905
901
|
m: !0
|
|
906
|
-
},
|
|
902
|
+
}, Jr = {
|
|
907
903
|
L: 8,
|
|
908
904
|
m: !0
|
|
909
905
|
}, qr = {
|
|
@@ -941,7 +937,7 @@ function h(e, t) {
|
|
|
941
937
|
var Hn = {
|
|
942
938
|
C: !0,
|
|
943
939
|
kc: 5
|
|
944
|
-
},
|
|
940
|
+
}, zt = {
|
|
945
941
|
configurable: !0,
|
|
946
942
|
enumerable: !0,
|
|
947
943
|
writable: !1
|
|
@@ -965,12 +961,12 @@ var Hn = {
|
|
|
965
961
|
STEP_ERROR: !0
|
|
966
962
|
}, Ne = {
|
|
967
963
|
SCOPE_REFERENCE: !0
|
|
968
|
-
},
|
|
964
|
+
}, ze = {
|
|
969
965
|
VALUE_IN_DESCRIPTOR: !0
|
|
970
966
|
}, je = {
|
|
971
967
|
REGEXP_TIMEOUT: !0
|
|
972
|
-
}, Gn = [],
|
|
973
|
-
function
|
|
968
|
+
}, Gn = [], pe = null, Xe = null, ve = typeof globalThis > "u" ? void 0 : globalThis, Oo = ["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();", "};"];
|
|
969
|
+
function Jt(e) {
|
|
974
970
|
var t = e >>> 0;
|
|
975
971
|
return t === Number(e) ? t : NaN;
|
|
976
972
|
}
|
|
@@ -989,26 +985,26 @@ function pt(e, t, n) {
|
|
|
989
985
|
h.prototype.REGEXP_MODE = 2;
|
|
990
986
|
h.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
991
987
|
h.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
988
|
+
P = h.prototype;
|
|
989
|
+
P.P = !1;
|
|
990
|
+
P.Ka = !1;
|
|
991
|
+
P.Kb = 0;
|
|
992
|
+
P.ic = 0;
|
|
997
993
|
function Re(e, t) {
|
|
998
994
|
var n = {}, r;
|
|
999
995
|
for (r in Hn)
|
|
1000
996
|
n[r] = Hn[r];
|
|
1001
997
|
return n.sourceFile = t, ve.j.parse(e, n);
|
|
1002
998
|
}
|
|
1003
|
-
|
|
999
|
+
P.Jb = function(e) {
|
|
1004
1000
|
var t = this.o[0];
|
|
1005
1001
|
if (!t || t.node.type !== "Program")
|
|
1006
1002
|
throw Error("Expecting original AST to start with a Program node");
|
|
1007
1003
|
if (typeof e == "string" && (e = Re(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
1008
1004
|
throw Error("Expecting new AST to start with a Program node");
|
|
1009
|
-
|
|
1005
|
+
Je(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
1010
1006
|
};
|
|
1011
|
-
|
|
1007
|
+
P.lb = function() {
|
|
1012
1008
|
var e = this.o, t;
|
|
1013
1009
|
do {
|
|
1014
1010
|
var n = e[e.length - 1];
|
|
@@ -1046,13 +1042,13 @@ B.lb = function() {
|
|
|
1046
1042
|
} while (!r.end && t > Date.now());
|
|
1047
1043
|
return !0;
|
|
1048
1044
|
};
|
|
1049
|
-
|
|
1045
|
+
P.Eb = function() {
|
|
1050
1046
|
for (; !this.za && this.lb(); )
|
|
1051
1047
|
;
|
|
1052
1048
|
return this.za;
|
|
1053
1049
|
};
|
|
1054
1050
|
function jo(e, t) {
|
|
1055
|
-
e.g(t, "NaN", NaN, _e), e.g(t, "Infinity", 1 / 0, _e), e.g(t, "undefined", void 0, _e), e.g(t, "window", t,
|
|
1051
|
+
e.g(t, "NaN", NaN, _e), e.g(t, "Infinity", 1 / 0, _e), e.g(t, "undefined", void 0, _e), e.g(t, "window", t, zt), e.g(t, "this", t, _e), e.g(t, "self", t), e.M = new j(null), e.Z = new j(e.M), Ro(e, t), Po(e, t), t.xa = e.M, e.g(t, "constructor", e.v, v), No(e, t), Bo(e, t), Fo(e, t), Uo(e, t), Mo(e, t), Vo(e, t), Do(e, t), Lo(e, t), Wo(e, t);
|
|
1056
1052
|
var n = e.i(function() {
|
|
1057
1053
|
throw EvalError("Can't happen");
|
|
1058
1054
|
}, !1);
|
|
@@ -1077,7 +1073,7 @@ function jo(e, t) {
|
|
|
1077
1073
|
Yn(e, i);
|
|
1078
1074
|
}, e.g(t, "clearInterval", e.i(n, !1), v), 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);
|
|
1079
1075
|
}
|
|
1080
|
-
|
|
1076
|
+
P.Wb = 0;
|
|
1081
1077
|
function Ro(e, t) {
|
|
1082
1078
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1083
1079
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1099,18 +1095,18 @@ function Ro(e, t) {
|
|
|
1099
1095
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, v), e.g(e.O, "prototype", e.Z, v), e.g(e.Z, "constructor", e.O, v), e.Z.Ta = function() {
|
|
1100
1096
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, q), e.Z.H = "Function", r = function(o, i) {
|
|
1101
1097
|
var s = e.o[e.o.length - 1];
|
|
1102
|
-
s.U = this, s.B = o, s.F = [], i != null && (i instanceof
|
|
1103
|
-
},
|
|
1098
|
+
s.U = this, s.B = o, s.F = [], i != null && (i instanceof j ? s.F = yr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1099
|
+
}, H(e, e.O, "apply", r), r = function(o) {
|
|
1104
1100
|
var i = e.o[e.o.length - 1];
|
|
1105
1101
|
i.U = this, i.B = o, i.F = [];
|
|
1106
1102
|
for (var s = 1; s < arguments.length; s++)
|
|
1107
1103
|
i.F.push(arguments[s]);
|
|
1108
1104
|
i.eb = !1;
|
|
1109
|
-
},
|
|
1105
|
+
}, H(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() {
|
|
1110
1106
|
return String(this);
|
|
1111
|
-
},
|
|
1107
|
+
}, H(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), v), r = function() {
|
|
1112
1108
|
return this.valueOf();
|
|
1113
|
-
},
|
|
1109
|
+
}, H(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), v);
|
|
1114
1110
|
}
|
|
1115
1111
|
function Po(e, t) {
|
|
1116
1112
|
function n(o) {
|
|
@@ -1118,50 +1114,50 @@ function Po(e, t) {
|
|
|
1118
1114
|
}
|
|
1119
1115
|
var r = function(o) {
|
|
1120
1116
|
if (o == null)
|
|
1121
|
-
return
|
|
1122
|
-
if (!(o instanceof
|
|
1123
|
-
var i = e.s(
|
|
1117
|
+
return me(e) ? this : e.s(e.M);
|
|
1118
|
+
if (!(o instanceof j)) {
|
|
1119
|
+
var i = e.s(he(e, o));
|
|
1124
1120
|
return i.data = o, i;
|
|
1125
1121
|
}
|
|
1126
1122
|
return o;
|
|
1127
1123
|
};
|
|
1128
1124
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, v), e.g(e.M, "constructor", e.v, v), e.g(t, "Object", e.v, v), r = function(o) {
|
|
1129
|
-
return n(o), fe(e, Object.getOwnPropertyNames(o instanceof
|
|
1125
|
+
return n(o), fe(e, Object.getOwnPropertyNames(o instanceof j ? o.h : o));
|
|
1130
1126
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), v), r = function(o) {
|
|
1131
|
-
return n(o), o instanceof
|
|
1127
|
+
return n(o), o instanceof j && (o = o.h), fe(e, Object.keys(o));
|
|
1132
1128
|
}, e.g(e.v, "keys", e.i(r, !1), v), r = function(o) {
|
|
1133
|
-
return o === null ? e.s(null) : (o instanceof
|
|
1129
|
+
return o === null ? e.s(null) : (o instanceof j || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1134
1130
|
}, e.g(e.v, "create", e.i(r, !1), v), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, s) {
|
|
1135
|
-
return i = String(i), o instanceof
|
|
1131
|
+
return i = String(i), o instanceof j || w(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof j || w(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || w(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, ze, s.h), o;
|
|
1136
1132
|
}, e.g(e.v, "defineProperty", e.i(r, !1), v), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
|
|
1137
|
-
if (o instanceof
|
|
1133
|
+
if (o instanceof j || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
|
|
1138
1134
|
var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
|
|
1139
1135
|
return o = o.Y[i], i = e.s(e.M), u || o ? (e.g(i, "get", u), e.g(i, "set", o)) : (e.g(i, "value", s.value), e.g(i, "writable", s.writable)), e.g(i, "configurable", s.configurable), e.g(i, "enumerable", s.enumerable), i;
|
|
1140
1136
|
}
|
|
1141
1137
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), v), r = function(o) {
|
|
1142
|
-
return n(o),
|
|
1138
|
+
return n(o), he(e, o);
|
|
1143
1139
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), v), r = function(o) {
|
|
1144
1140
|
return !!o && !o.preventExtensions;
|
|
1145
1141
|
}, e.g(e.v, "isExtensible", e.i(r, !1), v), r = function(o) {
|
|
1146
|
-
return o instanceof
|
|
1147
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), v),
|
|
1148
|
-
return n(this), this instanceof
|
|
1149
|
-
},
|
|
1150
|
-
return n(this), this instanceof
|
|
1151
|
-
},
|
|
1142
|
+
return o instanceof j && (o.preventExtensions = !0), o;
|
|
1143
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), v), H(e, e.v, "toString", j.prototype.toString), H(e, e.v, "toLocaleString", j.prototype.toString), H(e, e.v, "valueOf", j.prototype.valueOf), r = function(o) {
|
|
1144
|
+
return n(this), this instanceof j ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1145
|
+
}, H(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1146
|
+
return n(this), this instanceof j ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1147
|
+
}, H(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1152
1148
|
for (; ; ) {
|
|
1153
|
-
if (o =
|
|
1149
|
+
if (o = he(e, o), !o)
|
|
1154
1150
|
return !1;
|
|
1155
1151
|
if (o === this)
|
|
1156
1152
|
return !0;
|
|
1157
1153
|
}
|
|
1158
|
-
},
|
|
1154
|
+
}, H(e, e.v, "isPrototypeOf", r);
|
|
1159
1155
|
}
|
|
1160
1156
|
function No(e, t) {
|
|
1161
1157
|
var n = function(r) {
|
|
1162
|
-
var o =
|
|
1158
|
+
var o = me(e) ? this : Pe(e), i = arguments[0];
|
|
1163
1159
|
if (arguments.length === 1 && typeof i == "number")
|
|
1164
|
-
isNaN(
|
|
1160
|
+
isNaN(Jt(i)) && w(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1165
1161
|
else {
|
|
1166
1162
|
for (i = 0; i < arguments.length; i++)
|
|
1167
1163
|
o.h[i] = arguments[i];
|
|
@@ -1179,10 +1175,10 @@ function No(e, t) {
|
|
|
1179
1175
|
}
|
|
1180
1176
|
function Bo(e, t) {
|
|
1181
1177
|
var n = function(r) {
|
|
1182
|
-
return r = arguments.length ? ve.String(r) : "",
|
|
1178
|
+
return r = arguments.length ? ve.String(r) : "", me(e) ? (this.data = r, this) : r;
|
|
1183
1179
|
};
|
|
1184
1180
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, v), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), v), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1185
|
-
|
|
1181
|
+
H(e, e.J, t[n], String.prototype[t[n]]);
|
|
1186
1182
|
n = function(r, o, i) {
|
|
1187
1183
|
o = e.R(o), i = e.R(i);
|
|
1188
1184
|
try {
|
|
@@ -1190,10 +1186,10 @@ function Bo(e, t) {
|
|
|
1190
1186
|
} catch (s) {
|
|
1191
1187
|
w(e, e.D, "localeCompare: " + s.message);
|
|
1192
1188
|
}
|
|
1193
|
-
},
|
|
1189
|
+
}, H(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1194
1190
|
var s = String(this);
|
|
1195
|
-
if (o = o ? Number(o) : void 0,
|
|
1196
|
-
if (
|
|
1191
|
+
if (o = o ? Number(o) : void 0, K(e, r, e.I) && (r = r.data, He(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1192
|
+
if (pe)
|
|
1197
1193
|
r = $e(e, "string.split(separator, limit)", {
|
|
1198
1194
|
string: s,
|
|
1199
1195
|
separator: r,
|
|
@@ -1210,8 +1206,8 @@ function Bo(e, t) {
|
|
|
1210
1206
|
r = s.split(r, o), i(fe(e, r));
|
|
1211
1207
|
}, Ge(e, e.J, "split", n), n = function(r, o) {
|
|
1212
1208
|
var i = String(this);
|
|
1213
|
-
if (r =
|
|
1214
|
-
if (
|
|
1209
|
+
if (r = K(e, r, e.I) ? r.data : new RegExp(r), He(e, r, o), e.REGEXP_MODE === 2)
|
|
1210
|
+
if (pe)
|
|
1215
1211
|
r = $e(e, "string.match(regexp)", {
|
|
1216
1212
|
string: i,
|
|
1217
1213
|
regexp: r
|
|
@@ -1226,8 +1222,8 @@ function Bo(e, t) {
|
|
|
1226
1222
|
r = i.match(r), o(r && fe(e, r));
|
|
1227
1223
|
}, Ge(e, e.J, "match", n), n = function(r, o) {
|
|
1228
1224
|
var i = String(this);
|
|
1229
|
-
if (
|
|
1230
|
-
if (
|
|
1225
|
+
if (K(e, r, e.I) ? r = r.data : r = new RegExp(r), He(e, r, o), e.REGEXP_MODE === 2)
|
|
1226
|
+
if (pe)
|
|
1231
1227
|
r = $e(e, "string.search(regexp)", {
|
|
1232
1228
|
string: i,
|
|
1233
1229
|
regexp: r
|
|
@@ -1242,8 +1238,8 @@ function Bo(e, t) {
|
|
|
1242
1238
|
o(i.search(r));
|
|
1243
1239
|
}, Ge(e, e.J, "search", n), n = function(r, o, i) {
|
|
1244
1240
|
var s = String(this);
|
|
1245
|
-
if (o = String(o),
|
|
1246
|
-
if (
|
|
1241
|
+
if (o = String(o), K(e, r, e.I) && (r = r.data, He(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1242
|
+
if (pe)
|
|
1247
1243
|
r = $e(e, "string.replace(substr, newSubstr)", {
|
|
1248
1244
|
string: s,
|
|
1249
1245
|
substr: r,
|
|
@@ -1260,14 +1256,14 @@ function Bo(e, t) {
|
|
|
1260
1256
|
i(s.replace(r, o));
|
|
1261
1257
|
}, Ge(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;", "};", "})();", "");
|
|
1262
1258
|
}
|
|
1263
|
-
function
|
|
1259
|
+
function Fo(e, t) {
|
|
1264
1260
|
e.mb = e.i(function(n) {
|
|
1265
|
-
return n = ve.Boolean(n),
|
|
1261
|
+
return n = ve.Boolean(n), me(e) ? (this.data = n, this) : n;
|
|
1266
1262
|
}, !0), e.g(t, "Boolean", e.mb, v);
|
|
1267
1263
|
}
|
|
1268
|
-
function
|
|
1264
|
+
function Uo(e, t) {
|
|
1269
1265
|
var n = function(r) {
|
|
1270
|
-
return r = arguments.length ? ve.Number(r) : 0,
|
|
1266
|
+
return r = arguments.length ? ve.Number(r) : 0, me(e) ? (this.data = r, this) : r;
|
|
1271
1267
|
};
|
|
1272
1268
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, v), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1273
1269
|
e.g(e.aa, t[n], Number[t[n]], _e);
|
|
@@ -1277,36 +1273,36 @@ function Mo(e, t) {
|
|
|
1277
1273
|
} catch (o) {
|
|
1278
1274
|
w(e, e.D, o.message);
|
|
1279
1275
|
}
|
|
1280
|
-
},
|
|
1276
|
+
}, H(e, e.aa, "toExponential", n), n = function(r) {
|
|
1281
1277
|
try {
|
|
1282
1278
|
return Number(this).toFixed(r);
|
|
1283
1279
|
} catch (o) {
|
|
1284
1280
|
w(e, e.D, o.message);
|
|
1285
1281
|
}
|
|
1286
|
-
},
|
|
1282
|
+
}, H(e, e.aa, "toFixed", n), n = function(r) {
|
|
1287
1283
|
try {
|
|
1288
1284
|
return Number(this).toPrecision(r);
|
|
1289
1285
|
} catch (o) {
|
|
1290
1286
|
w(e, e.D, o.message);
|
|
1291
1287
|
}
|
|
1292
|
-
},
|
|
1288
|
+
}, H(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1293
1289
|
try {
|
|
1294
1290
|
return Number(this).toString(r);
|
|
1295
1291
|
} catch (o) {
|
|
1296
1292
|
w(e, e.D, o.message);
|
|
1297
1293
|
}
|
|
1298
|
-
},
|
|
1294
|
+
}, H(e, e.aa, "toString", n), n = function(r, o) {
|
|
1299
1295
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1300
1296
|
try {
|
|
1301
1297
|
return Number(this).toLocaleString(r, o);
|
|
1302
1298
|
} catch (i) {
|
|
1303
1299
|
w(e, e.D, "toLocaleString: " + i.message);
|
|
1304
1300
|
}
|
|
1305
|
-
},
|
|
1301
|
+
}, H(e, e.aa, "toLocaleString", n);
|
|
1306
1302
|
}
|
|
1307
|
-
function
|
|
1303
|
+
function Mo(e, t) {
|
|
1308
1304
|
var n = function(o, i) {
|
|
1309
|
-
if (!
|
|
1305
|
+
if (!me(e))
|
|
1310
1306
|
return ve.Date();
|
|
1311
1307
|
var s = [null].concat(Array.from(arguments));
|
|
1312
1308
|
return this.data = new (Function.prototype.bind.apply(ve.Date, s))(), this;
|
|
@@ -1321,14 +1317,14 @@ function Fo(e, t) {
|
|
|
1321
1317
|
u[p] = e.R(arguments[p]);
|
|
1322
1318
|
return s[o].apply(s, u);
|
|
1323
1319
|
};
|
|
1324
|
-
}(t[r]),
|
|
1320
|
+
}(t[r]), H(e, e.$, t[r], n);
|
|
1325
1321
|
}
|
|
1326
1322
|
function Vo(e, t) {
|
|
1327
1323
|
var n = function(r, o) {
|
|
1328
|
-
if (
|
|
1324
|
+
if (me(e))
|
|
1329
1325
|
var i = this;
|
|
1330
1326
|
else {
|
|
1331
|
-
if (o === void 0 &&
|
|
1327
|
+
if (o === void 0 && K(e, r, e.I))
|
|
1332
1328
|
return r;
|
|
1333
1329
|
i = e.s(e.Ma);
|
|
1334
1330
|
}
|
|
@@ -1350,7 +1346,7 @@ function Vo(e, t) {
|
|
|
1350
1346
|
}
|
|
1351
1347
|
var s = this.data;
|
|
1352
1348
|
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), He(e, s, o), e.REGEXP_MODE === 2)
|
|
1353
|
-
if (
|
|
1349
|
+
if (pe)
|
|
1354
1350
|
r = $e(e, "regexp.exec(string)", {
|
|
1355
1351
|
string: r,
|
|
1356
1352
|
regexp: s
|
|
@@ -1368,13 +1364,13 @@ function Vo(e, t) {
|
|
|
1368
1364
|
function Do(e, t) {
|
|
1369
1365
|
function n(r) {
|
|
1370
1366
|
var o = e.i(function(i) {
|
|
1371
|
-
var s =
|
|
1367
|
+
var s = me(e) ? this : e.Aa(o);
|
|
1372
1368
|
return _t(e, s, i), s;
|
|
1373
1369
|
}, !0);
|
|
1374
1370
|
return e.g(o, "prototype", e.Aa(e.D), v), e.g(o.h.prototype, "name", r, v), e.g(t, r, o, v), o;
|
|
1375
1371
|
}
|
|
1376
1372
|
e.D = e.i(function(r) {
|
|
1377
|
-
var o =
|
|
1373
|
+
var o = me(e) ? this : e.Aa(e.D);
|
|
1378
1374
|
return _t(e, o, r), o;
|
|
1379
1375
|
}, !0), e.g(t, "Error", e.D, v), e.g(e.D.h.prototype, "message", "", v), e.g(e.D.h.prototype, "name", "Error", v), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1380
1376
|
}
|
|
@@ -1408,12 +1404,12 @@ function Wo(e, t) {
|
|
|
1408
1404
|
return s;
|
|
1409
1405
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
1410
1406
|
}
|
|
1411
|
-
function
|
|
1407
|
+
function K(e, t, n) {
|
|
1412
1408
|
if (t == null || !n)
|
|
1413
1409
|
return !1;
|
|
1414
1410
|
if (n = n.h.prototype, t === n)
|
|
1415
1411
|
return !0;
|
|
1416
|
-
for (t =
|
|
1412
|
+
for (t = he(e, t); t; ) {
|
|
1417
1413
|
if (t === n)
|
|
1418
1414
|
return !0;
|
|
1419
1415
|
t = t.xa;
|
|
@@ -1440,7 +1436,7 @@ function _t(e, t, n) {
|
|
|
1440
1436
|
}
|
|
1441
1437
|
e.g(t, "stack", i.trim(), v);
|
|
1442
1438
|
}
|
|
1443
|
-
|
|
1439
|
+
P.ha = function() {
|
|
1444
1440
|
var e = this.ha.Mb;
|
|
1445
1441
|
return e || (e = new Blob([Oo.join(`
|
|
1446
1442
|
`)], {
|
|
@@ -1452,7 +1448,7 @@ function $e(e, t, n, r, o) {
|
|
|
1452
1448
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1453
1449
|
};
|
|
1454
1450
|
try {
|
|
1455
|
-
return
|
|
1451
|
+
return pe.runInNewContext(t, n, i);
|
|
1456
1452
|
} catch {
|
|
1457
1453
|
o(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1458
1454
|
}
|
|
@@ -1463,16 +1459,16 @@ function He(e, t, n) {
|
|
|
1463
1459
|
var r = !1;
|
|
1464
1460
|
else if (e.REGEXP_MODE === 1)
|
|
1465
1461
|
r = !0;
|
|
1466
|
-
else if (
|
|
1462
|
+
else if (pe)
|
|
1467
1463
|
r = !0;
|
|
1468
1464
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1469
1465
|
r = !0;
|
|
1470
1466
|
else if (typeof require == "function") {
|
|
1471
1467
|
try {
|
|
1472
|
-
|
|
1468
|
+
pe = require("vm");
|
|
1473
1469
|
} catch {
|
|
1474
1470
|
}
|
|
1475
|
-
r = !!
|
|
1471
|
+
r = !!pe;
|
|
1476
1472
|
} else
|
|
1477
1473
|
r = !1;
|
|
1478
1474
|
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
@@ -1486,13 +1482,13 @@ function Ke(e, t, n, r) {
|
|
|
1486
1482
|
}
|
|
1487
1483
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1488
1484
|
}
|
|
1489
|
-
|
|
1485
|
+
P.Aa = function(e) {
|
|
1490
1486
|
return this.s(e && e.h.prototype);
|
|
1491
1487
|
};
|
|
1492
|
-
|
|
1488
|
+
P.s = function(e) {
|
|
1493
1489
|
if (typeof e != "object")
|
|
1494
1490
|
throw Error("Non object prototype");
|
|
1495
|
-
return e = new
|
|
1491
|
+
return e = new j(e), K(this, e, this.D) && (e.H = "Error"), e;
|
|
1496
1492
|
};
|
|
1497
1493
|
function Pe(e) {
|
|
1498
1494
|
var t = e.s(e.La);
|
|
@@ -1510,15 +1506,15 @@ function Qt(e, t, n, r) {
|
|
|
1510
1506
|
var o = Zt(e, t.oa.length, !0);
|
|
1511
1507
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", q), o;
|
|
1512
1508
|
}
|
|
1513
|
-
|
|
1509
|
+
P.i = function(e, t) {
|
|
1514
1510
|
return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, q), t;
|
|
1515
1511
|
};
|
|
1516
|
-
|
|
1512
|
+
P.ub = function(e) {
|
|
1517
1513
|
var t = Zt(this, e.length, !0);
|
|
1518
1514
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, q), t;
|
|
1519
1515
|
};
|
|
1520
|
-
|
|
1521
|
-
if (e instanceof
|
|
1516
|
+
P.Ia = function(e) {
|
|
1517
|
+
if (e instanceof j)
|
|
1522
1518
|
throw Error("Object is already pseudo");
|
|
1523
1519
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1524
1520
|
return e;
|
|
@@ -1548,14 +1544,14 @@ B.Ia = function(e) {
|
|
|
1548
1544
|
this.g(t, r, this.Ia(e[r]));
|
|
1549
1545
|
return t;
|
|
1550
1546
|
};
|
|
1551
|
-
|
|
1547
|
+
P.R = function(e, t) {
|
|
1552
1548
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1553
1549
|
return e;
|
|
1554
|
-
if (!(e instanceof
|
|
1550
|
+
if (!(e instanceof j))
|
|
1555
1551
|
throw Error("Object is not pseudo");
|
|
1556
|
-
if (
|
|
1552
|
+
if (K(this, e, this.I))
|
|
1557
1553
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
1558
|
-
if (
|
|
1554
|
+
if (K(this, e, this.$))
|
|
1559
1555
|
return new Date(e.data.valueOf());
|
|
1560
1556
|
t = t || {
|
|
1561
1557
|
hb: [],
|
|
@@ -1564,7 +1560,7 @@ B.R = function(e, t) {
|
|
|
1564
1560
|
var n = t.hb.indexOf(e);
|
|
1565
1561
|
if (n !== -1)
|
|
1566
1562
|
return t.Sa[n];
|
|
1567
|
-
if (t.hb.push(e),
|
|
1563
|
+
if (t.hb.push(e), K(this, e, this.qa)) {
|
|
1568
1564
|
n = [], t.Sa.push(n);
|
|
1569
1565
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1570
1566
|
ht(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
@@ -1587,9 +1583,9 @@ function yr(e, t) {
|
|
|
1587
1583
|
var n = [], r;
|
|
1588
1584
|
for (r in t.h)
|
|
1589
1585
|
n[r] = e.G(t, r);
|
|
1590
|
-
return n.length =
|
|
1586
|
+
return n.length = Jt(e.G(t, "length")) || 0, n;
|
|
1591
1587
|
}
|
|
1592
|
-
function
|
|
1588
|
+
function he(e, t) {
|
|
1593
1589
|
switch (typeof t) {
|
|
1594
1590
|
case "number":
|
|
1595
1591
|
return e.aa.h.prototype;
|
|
@@ -1600,15 +1596,15 @@ function pe(e, t) {
|
|
|
1600
1596
|
}
|
|
1601
1597
|
return t ? t.xa : null;
|
|
1602
1598
|
}
|
|
1603
|
-
|
|
1599
|
+
P.G = function(e, t) {
|
|
1604
1600
|
if (this.P)
|
|
1605
1601
|
throw Error("Getter not supported in that context");
|
|
1606
|
-
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1602
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof j))
|
|
1607
1603
|
throw TypeError("Expecting native value or pseudo object");
|
|
1608
1604
|
if (t === "length") {
|
|
1609
|
-
if (
|
|
1605
|
+
if (K(this, e, this.J))
|
|
1610
1606
|
return String(e).length;
|
|
1611
|
-
} else if (64 > t.charCodeAt(0) &&
|
|
1607
|
+
} else if (64 > t.charCodeAt(0) && K(this, e, this.J)) {
|
|
1612
1608
|
var n = Ye(t);
|
|
1613
1609
|
if (!isNaN(n) && n < String(e).length)
|
|
1614
1610
|
return String(e)[n];
|
|
@@ -1616,14 +1612,14 @@ B.G = function(e, t) {
|
|
|
1616
1612
|
do
|
|
1617
1613
|
if (e.h && t in e.h)
|
|
1618
1614
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1619
|
-
while (e =
|
|
1615
|
+
while (e = he(this, e));
|
|
1620
1616
|
};
|
|
1621
1617
|
function ht(e, t, n) {
|
|
1622
|
-
if (!(t instanceof
|
|
1618
|
+
if (!(t instanceof j))
|
|
1623
1619
|
throw TypeError("Primitive data type has no properties");
|
|
1624
|
-
if (n = String(n), n === "length" &&
|
|
1620
|
+
if (n = String(n), n === "length" && K(e, t, e.J))
|
|
1625
1621
|
return !0;
|
|
1626
|
-
if (
|
|
1622
|
+
if (K(e, t, e.J)) {
|
|
1627
1623
|
var r = Ye(n);
|
|
1628
1624
|
if (!isNaN(r) && r < String(t).length)
|
|
1629
1625
|
return !0;
|
|
@@ -1631,18 +1627,18 @@ function ht(e, t, n) {
|
|
|
1631
1627
|
do
|
|
1632
1628
|
if (t.h && n in t.h)
|
|
1633
1629
|
return !0;
|
|
1634
|
-
while (t =
|
|
1630
|
+
while (t = he(e, t));
|
|
1635
1631
|
return !1;
|
|
1636
1632
|
}
|
|
1637
|
-
|
|
1633
|
+
P.g = function(e, t, n, r) {
|
|
1638
1634
|
if (this.Ka)
|
|
1639
1635
|
throw Error("Setter not supported in that context");
|
|
1640
|
-
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1636
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof j))
|
|
1641
1637
|
throw TypeError("Expecting native value or pseudo object");
|
|
1642
1638
|
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");
|
|
1643
1639
|
var o = !this.o || en(this).S;
|
|
1644
|
-
if (e instanceof
|
|
1645
|
-
if (
|
|
1640
|
+
if (e instanceof j) {
|
|
1641
|
+
if (K(this, e, this.J)) {
|
|
1646
1642
|
var i = Ye(t);
|
|
1647
1643
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1648
1644
|
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
@@ -1656,7 +1652,7 @@ B.g = function(e, t, n, r) {
|
|
|
1656
1652
|
return;
|
|
1657
1653
|
n = r.value;
|
|
1658
1654
|
}
|
|
1659
|
-
if (n =
|
|
1655
|
+
if (n = Jt(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < i)
|
|
1660
1656
|
for (s in e.h) {
|
|
1661
1657
|
var s = Ye(s);
|
|
1662
1658
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1665,7 +1661,7 @@ B.g = function(e, t, n, r) {
|
|
|
1665
1661
|
isNaN(s = Ye(t)) || (e.h.length = Math.max(i, s + 1));
|
|
1666
1662
|
if (!e.preventExtensions || t in e.h)
|
|
1667
1663
|
if (r) {
|
|
1668
|
-
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !==
|
|
1664
|
+
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== ze && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
1669
1665
|
try {
|
|
1670
1666
|
Object.defineProperty(e.h, t, o);
|
|
1671
1667
|
} catch {
|
|
@@ -1673,10 +1669,10 @@ B.g = function(e, t, n, r) {
|
|
|
1673
1669
|
}
|
|
1674
1670
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1675
1671
|
} else {
|
|
1676
|
-
if (n ===
|
|
1672
|
+
if (n === ze)
|
|
1677
1673
|
throw ReferenceError("Value not specified");
|
|
1678
1674
|
for (r = e; !(t in r.h); )
|
|
1679
|
-
if (r =
|
|
1675
|
+
if (r = he(this, r), !r) {
|
|
1680
1676
|
r = e;
|
|
1681
1677
|
break;
|
|
1682
1678
|
}
|
|
@@ -1696,13 +1692,13 @@ B.g = function(e, t, n, r) {
|
|
|
1696
1692
|
} else
|
|
1697
1693
|
o && w(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1698
1694
|
};
|
|
1699
|
-
|
|
1695
|
+
P.g.ac = function() {
|
|
1700
1696
|
throw Error("Placeholder getter");
|
|
1701
1697
|
};
|
|
1702
|
-
|
|
1698
|
+
P.g.bc = function() {
|
|
1703
1699
|
throw Error("Placeholder setter");
|
|
1704
1700
|
};
|
|
1705
|
-
function
|
|
1701
|
+
function H(e, t, n, r) {
|
|
1706
1702
|
e.g(t.h.prototype, n, e.i(r, !1), v);
|
|
1707
1703
|
}
|
|
1708
1704
|
function Ge(e, t, n, r) {
|
|
@@ -1721,7 +1717,7 @@ function $t(e, t, n) {
|
|
|
1721
1717
|
var o = t.body && t.body[0];
|
|
1722
1718
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1723
1719
|
}
|
|
1724
|
-
return o = e.s(null), r = new Sr(n, r, o), n || jo(e, r.object),
|
|
1720
|
+
return o = e.s(null), r = new Sr(n, r, o), n || jo(e, r.object), Je(e, t, r), r;
|
|
1725
1721
|
}
|
|
1726
1722
|
function tn(e, t, n) {
|
|
1727
1723
|
if (!t)
|
|
@@ -1754,7 +1750,7 @@ function vr(e, t, n) {
|
|
|
1754
1750
|
return e.g(r.object, t, n);
|
|
1755
1751
|
w(e, e.pb, t + " is not defined");
|
|
1756
1752
|
}
|
|
1757
|
-
function
|
|
1753
|
+
function Je(e, t, n) {
|
|
1758
1754
|
if (t.jb)
|
|
1759
1755
|
var r = t.jb;
|
|
1760
1756
|
else {
|
|
@@ -1787,12 +1783,12 @@ function ze(e, t, n) {
|
|
|
1787
1783
|
if (Array.isArray(u)) {
|
|
1788
1784
|
for (o = 0; o < u.length; o++)
|
|
1789
1785
|
if (u[o] && u[o].constructor === i) {
|
|
1790
|
-
var p =
|
|
1786
|
+
var p = Je(e, u[o], n);
|
|
1791
1787
|
for (s in p)
|
|
1792
1788
|
r[s] = p[s];
|
|
1793
1789
|
}
|
|
1794
1790
|
} else if (u.constructor === i)
|
|
1795
|
-
for (s in p =
|
|
1791
|
+
for (s in p = Je(e, u, n), p)
|
|
1796
1792
|
r[s] = p[s];
|
|
1797
1793
|
}
|
|
1798
1794
|
}
|
|
@@ -1803,7 +1799,7 @@ function ze(e, t, n) {
|
|
|
1803
1799
|
r[s] === !0 ? e.g(n.object, s, void 0, Kn) : e.g(n.object, s, Qt(e, r[s], n), Kn);
|
|
1804
1800
|
return r;
|
|
1805
1801
|
}
|
|
1806
|
-
function
|
|
1802
|
+
function me(e) {
|
|
1807
1803
|
return e.o[e.o.length - 1].isConstructor;
|
|
1808
1804
|
}
|
|
1809
1805
|
function rn(e, t) {
|
|
@@ -1813,7 +1809,7 @@ function on(e, t, n) {
|
|
|
1813
1809
|
return t[0] === Ne ? vr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1814
1810
|
}
|
|
1815
1811
|
function w(e, t, n) {
|
|
1816
|
-
throw e.N ? (n !== void 0 && t instanceof
|
|
1812
|
+
throw e.N ? (n !== void 0 && t instanceof j && (t = e.Aa(t), _t(e, t, n)), qe(e, 4, t), gr) : n === void 0 ? t : n;
|
|
1817
1813
|
}
|
|
1818
1814
|
function qe(e, t, n, r) {
|
|
1819
1815
|
if (t === 0)
|
|
@@ -1851,7 +1847,7 @@ function qe(e, t, n, r) {
|
|
|
1851
1847
|
} else if (t === 2 && (r ? i.labels && i.labels.indexOf(r) !== -1 : i.W))
|
|
1852
1848
|
return;
|
|
1853
1849
|
}
|
|
1854
|
-
throw
|
|
1850
|
+
throw K(e, n, e.D) ? (t = {
|
|
1855
1851
|
EvalError,
|
|
1856
1852
|
RangeError,
|
|
1857
1853
|
ReferenceError,
|
|
@@ -1860,34 +1856,34 @@ function qe(e, t, n, r) {
|
|
|
1860
1856
|
URIError
|
|
1861
1857
|
}, r = String(e.G(n, "name")), o = e.G(n, "message").valueOf(), t = (t[r] || Error)(o), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
|
|
1862
1858
|
}
|
|
1863
|
-
function
|
|
1859
|
+
function J(e, t) {
|
|
1864
1860
|
switch (t.type) {
|
|
1865
1861
|
case "ArrayExpression":
|
|
1866
1862
|
return "[...]";
|
|
1867
1863
|
case "BinaryExpression":
|
|
1868
1864
|
case "LogicalExpression":
|
|
1869
|
-
return
|
|
1865
|
+
return J(e, t.left) + " " + t.operator + " " + J(e, t.right);
|
|
1870
1866
|
case "CallExpression":
|
|
1871
|
-
return
|
|
1867
|
+
return J(e, t.callee) + "(...)";
|
|
1872
1868
|
case "ConditionalExpression":
|
|
1873
|
-
return
|
|
1869
|
+
return J(e, t.test) + " ? " + J(e, t.da) + " : " + J(e, t.alternate);
|
|
1874
1870
|
case "Identifier":
|
|
1875
1871
|
return t.name;
|
|
1876
1872
|
case "Literal":
|
|
1877
1873
|
return t.raw;
|
|
1878
1874
|
case "MemberExpression":
|
|
1879
|
-
var n =
|
|
1880
|
-
return e =
|
|
1875
|
+
var n = J(e, t.object);
|
|
1876
|
+
return e = J(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
|
|
1881
1877
|
case "NewExpression":
|
|
1882
|
-
return "new " +
|
|
1878
|
+
return "new " + J(e, t.callee) + "(...)";
|
|
1883
1879
|
case "ObjectExpression":
|
|
1884
1880
|
return "{...}";
|
|
1885
1881
|
case "ThisExpression":
|
|
1886
1882
|
return "this";
|
|
1887
1883
|
case "UnaryExpression":
|
|
1888
|
-
return t.operator + " " +
|
|
1884
|
+
return t.operator + " " + J(e, t.K);
|
|
1889
1885
|
case "UpdateExpression":
|
|
1890
|
-
return n =
|
|
1886
|
+
return n = J(e, t.K), t.prefix ? t.operator + n : n + t.operator;
|
|
1891
1887
|
}
|
|
1892
1888
|
return "???";
|
|
1893
1889
|
}
|
|
@@ -1895,7 +1891,7 @@ function Xn(e, t, n) {
|
|
|
1895
1891
|
var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
|
|
1896
1892
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1897
1893
|
var s = e.ya();
|
|
1898
|
-
if (i instanceof
|
|
1894
|
+
if (i instanceof j && i.H === "Function") {
|
|
1899
1895
|
var u = i;
|
|
1900
1896
|
s.type = "CallExpression", r = r.scope;
|
|
1901
1897
|
} else {
|
|
@@ -1935,15 +1931,15 @@ function an(e, t, n, r) {
|
|
|
1935
1931
|
return o.type = "CallExpression", e = new S(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1936
1932
|
}
|
|
1937
1933
|
function Lt(e, t) {
|
|
1938
|
-
return t == null ? e.Na : t instanceof
|
|
1934
|
+
return t == null ? e.Na : t instanceof j ? t : (e = e.s(he(e, t)), e.data = t, e);
|
|
1939
1935
|
}
|
|
1940
|
-
|
|
1936
|
+
P.Xb = function() {
|
|
1941
1937
|
return this.N;
|
|
1942
1938
|
};
|
|
1943
|
-
|
|
1939
|
+
P.Yb = function() {
|
|
1944
1940
|
return this.o;
|
|
1945
1941
|
};
|
|
1946
|
-
|
|
1942
|
+
P.ec = function(e) {
|
|
1947
1943
|
this.o = e;
|
|
1948
1944
|
};
|
|
1949
1945
|
function S(e, t) {
|
|
@@ -1952,17 +1948,17 @@ function S(e, t) {
|
|
|
1952
1948
|
function Sr(e, t, n) {
|
|
1953
1949
|
this.Va = e, this.S = t, this.object = n;
|
|
1954
1950
|
}
|
|
1955
|
-
function
|
|
1951
|
+
function j(e) {
|
|
1956
1952
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1957
1953
|
}
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1954
|
+
P = j.prototype;
|
|
1955
|
+
P.xa = null;
|
|
1956
|
+
P.H = "Object";
|
|
1957
|
+
P.data = null;
|
|
1958
|
+
P.toString = function() {
|
|
1963
1959
|
if (!Xe)
|
|
1964
1960
|
return "[object Interpreter.Object]";
|
|
1965
|
-
if (!(this instanceof
|
|
1961
|
+
if (!(this instanceof j))
|
|
1966
1962
|
return String(this);
|
|
1967
1963
|
if (this.H === "Array") {
|
|
1968
1964
|
var e = Gn;
|
|
@@ -1972,7 +1968,7 @@ B.toString = function() {
|
|
|
1972
1968
|
1024 < n && (n = 1e3, r = !0);
|
|
1973
1969
|
for (var o = 0; o < n; o++) {
|
|
1974
1970
|
var i = this.h[o];
|
|
1975
|
-
t[o] = i instanceof
|
|
1971
|
+
t[o] = i instanceof j && e.indexOf(i) !== -1 ? "..." : i;
|
|
1976
1972
|
}
|
|
1977
1973
|
r && t.push("...");
|
|
1978
1974
|
} finally {
|
|
@@ -2007,7 +2003,7 @@ B.toString = function() {
|
|
|
2007
2003
|
}
|
|
2008
2004
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
2009
2005
|
};
|
|
2010
|
-
|
|
2006
|
+
P.valueOf = function() {
|
|
2011
2007
|
return !Xe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2012
2008
|
};
|
|
2013
2009
|
function _o(e, t, n, r, o) {
|
|
@@ -2144,10 +2140,10 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2144
2140
|
n = r >>> t;
|
|
2145
2141
|
break;
|
|
2146
2142
|
case "in":
|
|
2147
|
-
t instanceof
|
|
2143
|
+
t instanceof j || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = ht(this, t, r);
|
|
2148
2144
|
break;
|
|
2149
2145
|
case "instanceof":
|
|
2150
|
-
|
|
2146
|
+
K(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof j ? K(this, r, t) : !1;
|
|
2151
2147
|
break;
|
|
2152
2148
|
default:
|
|
2153
2149
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2184,7 +2180,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2184
2180
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2185
2181
|
return new S(n.arguments[t.A++], t.scope);
|
|
2186
2182
|
if (n.type === "NewExpression") {
|
|
2187
|
-
if (o instanceof
|
|
2183
|
+
if (o instanceof j && !o.Ab || w(this, this.j, J(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2188
2184
|
t.B = Pe(this);
|
|
2189
2185
|
else {
|
|
2190
2186
|
var i = o.h.prototype;
|
|
@@ -2197,12 +2193,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2197
2193
|
if (t.eb)
|
|
2198
2194
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2199
2195
|
else {
|
|
2200
|
-
if (t.eb = !0, o instanceof
|
|
2196
|
+
if (t.eb = !0, o instanceof j || w(this, this.j, J(this, n.callee) + " is not a function"), e = o.node) {
|
|
2201
2197
|
for (n = $t(this, e.body, o.Va), r = Pe(this), o = 0; o < t.F.length; o++)
|
|
2202
2198
|
this.g(r, o, t.F[o]);
|
|
2203
2199
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2204
2200
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2205
|
-
return n.S || (t.B = Lt(this, t.B)), this.g(n.object, "this", t.B,
|
|
2201
|
+
return n.S || (t.B = Lt(this, t.B)), this.g(n.object, "this", t.B, zt), t.value = void 0, new S(e.body, n);
|
|
2206
2202
|
}
|
|
2207
2203
|
if (o.eval)
|
|
2208
2204
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2213,7 +2209,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2213
2209
|
} catch (u) {
|
|
2214
2210
|
w(this, this.T, "Invalid code: " + u.message);
|
|
2215
2211
|
}
|
|
2216
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, pt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) :
|
|
2212
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, pt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : Je(this, r, n), this.value = void 0, new S(o, n);
|
|
2217
2213
|
}
|
|
2218
2214
|
else if (o.Ta)
|
|
2219
2215
|
t.scope.S || (t.B = Lt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
@@ -2223,7 +2219,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2223
2219
|
t.value = u, s.za = !1;
|
|
2224
2220
|
}), this.za = !0, t.scope.S || (t.B = Lt(this, t.B)), o.Za.apply(t.B, r);
|
|
2225
2221
|
} else
|
|
2226
|
-
w(this, this.j,
|
|
2222
|
+
w(this, this.j, J(this, n.callee) + " is not callable");
|
|
2227
2223
|
}
|
|
2228
2224
|
};
|
|
2229
2225
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
@@ -2275,7 +2271,7 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2275
2271
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2276
2272
|
e:
|
|
2277
2273
|
for (; ; ) {
|
|
2278
|
-
if (t.u instanceof
|
|
2274
|
+
if (t.u instanceof j)
|
|
2279
2275
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2280
2276
|
var r = t.wa.shift();
|
|
2281
2277
|
if (r === void 0)
|
|
@@ -2292,7 +2288,7 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2292
2288
|
break e;
|
|
2293
2289
|
}
|
|
2294
2290
|
}
|
|
2295
|
-
if (t.u =
|
|
2291
|
+
if (t.u = he(this, t.u), t.wa = null, t.u === null) {
|
|
2296
2292
|
e.pop();
|
|
2297
2293
|
return;
|
|
2298
2294
|
}
|
|
@@ -2332,7 +2328,7 @@ h.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2332
2328
|
e.pop();
|
|
2333
2329
|
};
|
|
2334
2330
|
h.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2335
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = tn(this, e)), t.value = Qt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value,
|
|
2331
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = tn(this, e)), t.value = Qt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, zt);
|
|
2336
2332
|
};
|
|
2337
2333
|
h.prototype.stepIdentifier = function(e, t, n) {
|
|
2338
2334
|
if (e.pop(), t.sa)
|
|
@@ -2399,7 +2395,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2399
2395
|
return t.Pa = i, new S(o.value, t.scope);
|
|
2400
2396
|
}
|
|
2401
2397
|
for (s in t.Ja)
|
|
2402
|
-
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s,
|
|
2398
|
+
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, ze, {
|
|
2403
2399
|
configurable: !0,
|
|
2404
2400
|
enumerable: !0,
|
|
2405
2401
|
get: n.get,
|
|
@@ -2560,7 +2556,7 @@ h.prototype.pseudoToNative = h.prototype.R;
|
|
|
2560
2556
|
h.prototype.getGlobalScope = h.prototype.Xb;
|
|
2561
2557
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2562
2558
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2563
|
-
h.VALUE_IN_DESCRIPTOR =
|
|
2559
|
+
h.VALUE_IN_DESCRIPTOR = ze;
|
|
2564
2560
|
const Ho = (e) => e.split(`
|
|
2565
2561
|
`).map((t) => {
|
|
2566
2562
|
const n = t.trim();
|
|
@@ -2574,7 +2570,7 @@ const Ho = (e) => e.split(`
|
|
|
2574
2570
|
${u}
|
|
2575
2571
|
`;
|
|
2576
2572
|
}).filter(Boolean).join(`
|
|
2577
|
-
`),
|
|
2573
|
+
`), zn = (e) => e + "JSON", Ko = ({
|
|
2578
2574
|
builder: e,
|
|
2579
2575
|
context: t,
|
|
2580
2576
|
event: n,
|
|
@@ -2591,13 +2587,13 @@ const Ho = (e) => e.split(`
|
|
|
2591
2587
|
context: t,
|
|
2592
2588
|
event: n,
|
|
2593
2589
|
state: u
|
|
2594
|
-
}), b = p.map(([
|
|
2595
|
-
const
|
|
2596
|
-
return `var ${
|
|
2590
|
+
}), b = p.map(([W]) => {
|
|
2591
|
+
const k = zn(W);
|
|
2592
|
+
return `var ${W} = ${k} === undefined ? undefined : JSON.parse(${k});`;
|
|
2597
2593
|
}).join(`
|
|
2598
2594
|
`), x = Ho(s);
|
|
2599
2595
|
if (x === "") {
|
|
2600
|
-
|
|
2596
|
+
te.warn("Skipping evaluation of empty code block.");
|
|
2601
2597
|
return;
|
|
2602
2598
|
}
|
|
2603
2599
|
const m = `
|
|
@@ -2607,36 +2603,28 @@ function theFunction() {
|
|
|
2607
2603
|
${x}
|
|
2608
2604
|
}
|
|
2609
2605
|
theFunction();
|
|
2610
|
-
`, O = (
|
|
2611
|
-
const
|
|
2612
|
-
i == null || i(
|
|
2613
|
-
},
|
|
2614
|
-
p.forEach(([
|
|
2615
|
-
const
|
|
2616
|
-
|
|
2617
|
-
}),
|
|
2618
|
-
};
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
return j.run(), j.pseudoToNative(j.value);
|
|
2622
|
-
} catch (j) {
|
|
2623
|
-
Z.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2624
|
-
e: j
|
|
2625
|
-
});
|
|
2626
|
-
return;
|
|
2627
|
-
}
|
|
2628
|
-
}, ie = (e) => e != null;
|
|
2606
|
+
`, O = (W, k) => {
|
|
2607
|
+
const g = mr(u, W, k);
|
|
2608
|
+
i == null || i(g);
|
|
2609
|
+
}, R = function(W, k) {
|
|
2610
|
+
p.forEach(([g, F]) => {
|
|
2611
|
+
const U = JSON.stringify(F);
|
|
2612
|
+
W.setProperty(k, zn(g), U);
|
|
2613
|
+
}), W.setProperty(k, "setRootState", W.createNativeFunction(O));
|
|
2614
|
+
}, B = new h(m, R);
|
|
2615
|
+
return B.run(), B.pseudoToNative(B.value);
|
|
2616
|
+
}, ae = (e) => e != null;
|
|
2629
2617
|
function Go() {
|
|
2630
2618
|
var e;
|
|
2631
|
-
return typeof process < "u" &&
|
|
2619
|
+
return typeof process < "u" && ae((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2632
2620
|
}
|
|
2633
2621
|
const Xo = () => {
|
|
2634
2622
|
var r;
|
|
2635
2623
|
if (!Go())
|
|
2636
2624
|
return !1;
|
|
2637
2625
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2638
|
-
return e && t && !n ? (
|
|
2639
|
-
}, Yo = (e) =>
|
|
2626
|
+
return e && t && !n ? (te.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;
|
|
2627
|
+
}, Yo = (e) => X() || Xo() ? To(e) : Ko(e), sn = class Oe {
|
|
2640
2628
|
static getCacheKey(t) {
|
|
2641
2629
|
return JSON.stringify({
|
|
2642
2630
|
...t,
|
|
@@ -2693,14 +2681,14 @@ function ln({
|
|
|
2693
2681
|
}
|
|
2694
2682
|
return b;
|
|
2695
2683
|
} catch (b) {
|
|
2696
|
-
|
|
2684
|
+
te.error("Failed code evaluation: " + b.message, {
|
|
2697
2685
|
code: e
|
|
2698
2686
|
});
|
|
2699
2687
|
return;
|
|
2700
2688
|
}
|
|
2701
2689
|
}
|
|
2702
2690
|
const mt = (e) => JSON.parse(JSON.stringify(e));
|
|
2703
|
-
const
|
|
2691
|
+
const zo = ({
|
|
2704
2692
|
block: e,
|
|
2705
2693
|
context: t,
|
|
2706
2694
|
localState: n,
|
|
@@ -2731,7 +2719,7 @@ const Jo = ({
|
|
|
2731
2719
|
}
|
|
2732
2720
|
return s;
|
|
2733
2721
|
};
|
|
2734
|
-
function
|
|
2722
|
+
function ft({
|
|
2735
2723
|
block: e,
|
|
2736
2724
|
context: t,
|
|
2737
2725
|
shouldEvaluateBindings: n,
|
|
@@ -2740,7 +2728,7 @@ function dt({
|
|
|
2740
2728
|
rootSetState: i
|
|
2741
2729
|
}) {
|
|
2742
2730
|
const s = e;
|
|
2743
|
-
return n ?
|
|
2731
|
+
return n ? zo({
|
|
2744
2732
|
block: s,
|
|
2745
2733
|
localState: r,
|
|
2746
2734
|
rootState: o,
|
|
@@ -2751,14 +2739,14 @@ function dt({
|
|
|
2751
2739
|
const cn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", wr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2752
2740
|
if (typeof r == "string")
|
|
2753
2741
|
return `${cn(n)}: ${r};`;
|
|
2754
|
-
}).filter(
|
|
2742
|
+
}).filter(ae), Jo = (e) => wr(e).join(`
|
|
2755
2743
|
`), ut = ({
|
|
2756
2744
|
mediaQuery: e,
|
|
2757
2745
|
className: t,
|
|
2758
2746
|
styles: n
|
|
2759
2747
|
}) => {
|
|
2760
2748
|
const r = `.${t} {
|
|
2761
|
-
${
|
|
2749
|
+
${Jo(n)}
|
|
2762
2750
|
}`;
|
|
2763
2751
|
return e ? `${e} {
|
|
2764
2752
|
${r}
|
|
@@ -2778,7 +2766,7 @@ const Zo = ({
|
|
|
2778
2766
|
block: e
|
|
2779
2767
|
}));
|
|
2780
2768
|
function xr(e) {
|
|
2781
|
-
switch (
|
|
2769
|
+
switch (Z) {
|
|
2782
2770
|
case "svelte":
|
|
2783
2771
|
case "vue":
|
|
2784
2772
|
case "solid":
|
|
@@ -2797,7 +2785,7 @@ const Qo = ({
|
|
|
2797
2785
|
registeredComponents: n
|
|
2798
2786
|
}) => {
|
|
2799
2787
|
var i;
|
|
2800
|
-
const r = (i =
|
|
2788
|
+
const r = (i = ft({
|
|
2801
2789
|
block: e,
|
|
2802
2790
|
localState: t.localState,
|
|
2803
2791
|
rootState: t.rootState,
|
|
@@ -2847,7 +2835,15 @@ const Qo = ({
|
|
|
2847
2835
|
},
|
|
2848
2836
|
block: r
|
|
2849
2837
|
}));
|
|
2850
|
-
}, ti = (e) => e && (e.isRSC
|
|
2838
|
+
}, ti = (e, t) => e && (e.isRSC && Z === "rsc" || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
|
|
2839
|
+
builderLinkComponent: t
|
|
2840
|
+
} : {}, ni = (e, t) => e && (e.isRSC && Z === "rsc" || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
|
|
2841
|
+
builderComponents: t
|
|
2842
|
+
} : {}, ri = (e, t) => e && (e.isRSC && Z === "rsc" || Z === "reactNative" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Image", "Video"].includes(e.name)) ? {
|
|
2843
|
+
builderBlock: t
|
|
2844
|
+
} : {}, oi = (e, t) => e && (e.isRSC && Z === "rsc" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Slot"].includes(e.name)) ? {
|
|
2845
|
+
builderContext: t
|
|
2846
|
+
} : {}, kr = {
|
|
2851
2847
|
small: {
|
|
2852
2848
|
min: 320,
|
|
2853
2849
|
default: 321,
|
|
@@ -2863,7 +2859,7 @@ const Qo = ({
|
|
|
2863
2859
|
default: 991,
|
|
2864
2860
|
max: 1200
|
|
2865
2861
|
}
|
|
2866
|
-
},
|
|
2862
|
+
}, Jn = (e, t = kr) => `@media (max-width: ${t[e].max}px)`, Cr = ({
|
|
2867
2863
|
small: e,
|
|
2868
2864
|
medium: t
|
|
2869
2865
|
}) => {
|
|
@@ -2891,7 +2887,7 @@ const Qo = ({
|
|
|
2891
2887
|
}, n;
|
|
2892
2888
|
};
|
|
2893
2889
|
function gt(e) {
|
|
2894
|
-
return /* @__PURE__ */
|
|
2890
|
+
return /* @__PURE__ */ T(
|
|
2895
2891
|
"style",
|
|
2896
2892
|
{
|
|
2897
2893
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -2899,9 +2895,9 @@ function gt(e) {
|
|
|
2899
2895
|
}
|
|
2900
2896
|
);
|
|
2901
2897
|
}
|
|
2902
|
-
function
|
|
2898
|
+
function ii(e) {
|
|
2903
2899
|
const t = function() {
|
|
2904
|
-
const o =
|
|
2900
|
+
const o = ft({
|
|
2905
2901
|
block: e.block,
|
|
2906
2902
|
localState: e.context.localState,
|
|
2907
2903
|
rootState: e.context.rootState,
|
|
@@ -2909,10 +2905,10 @@ function ri(e) {
|
|
|
2909
2905
|
context: e.context.context,
|
|
2910
2906
|
shouldEvaluateBindings: !0
|
|
2911
2907
|
});
|
|
2912
|
-
return
|
|
2908
|
+
return ae(o.hide) ? !o.hide : ae(o.show) ? o.show : !0;
|
|
2913
2909
|
}, n = function() {
|
|
2914
|
-
var
|
|
2915
|
-
const o =
|
|
2910
|
+
var k, g, F;
|
|
2911
|
+
const o = ft({
|
|
2916
2912
|
block: e.block,
|
|
2917
2913
|
localState: e.context.localState,
|
|
2918
2914
|
rootState: e.context.rootState,
|
|
@@ -2920,55 +2916,55 @@ function ri(e) {
|
|
|
2920
2916
|
context: e.context.context,
|
|
2921
2917
|
shouldEvaluateBindings: !0
|
|
2922
2918
|
}), i = o.responsiveStyles, s = e.context.content, u = Cr(
|
|
2923
|
-
((
|
|
2919
|
+
((k = s == null ? void 0 : s.meta) == null ? void 0 : k.breakpoints) || {}
|
|
2924
2920
|
), p = i == null ? void 0 : i.large, b = i == null ? void 0 : i.medium, x = i == null ? void 0 : i.small, m = o.id;
|
|
2925
2921
|
if (!m)
|
|
2926
2922
|
return "";
|
|
2927
2923
|
const O = p ? ut({
|
|
2928
2924
|
className: m,
|
|
2929
2925
|
styles: p
|
|
2930
|
-
}) : "",
|
|
2926
|
+
}) : "", R = b ? ut({
|
|
2931
2927
|
className: m,
|
|
2932
2928
|
styles: b,
|
|
2933
|
-
mediaQuery:
|
|
2929
|
+
mediaQuery: Jn(
|
|
2934
2930
|
"medium",
|
|
2935
2931
|
u
|
|
2936
2932
|
)
|
|
2937
|
-
}) : "",
|
|
2933
|
+
}) : "", B = x ? ut({
|
|
2938
2934
|
className: m,
|
|
2939
2935
|
styles: x,
|
|
2940
|
-
mediaQuery:
|
|
2936
|
+
mediaQuery: Jn(
|
|
2941
2937
|
"small",
|
|
2942
2938
|
u
|
|
2943
2939
|
)
|
|
2944
|
-
}) : "",
|
|
2945
|
-
let
|
|
2946
|
-
if (
|
|
2947
|
-
const
|
|
2948
|
-
|
|
2940
|
+
}) : "", N = o.animations && o.animations.find((U) => U.trigger === "hover");
|
|
2941
|
+
let W = "";
|
|
2942
|
+
if (N) {
|
|
2943
|
+
const U = ((F = (g = N.steps) == null ? void 0 : g[1]) == null ? void 0 : F.styles) || {};
|
|
2944
|
+
W = ut({
|
|
2949
2945
|
className: `${m}:hover`,
|
|
2950
2946
|
styles: {
|
|
2951
|
-
...
|
|
2952
|
-
transition: `all ${
|
|
2953
|
-
|
|
2947
|
+
...U,
|
|
2948
|
+
transition: `all ${N.duration}s ${cn(
|
|
2949
|
+
N.easing
|
|
2954
2950
|
)}`,
|
|
2955
|
-
transitionDelay:
|
|
2951
|
+
transitionDelay: N.delay ? `${N.delay}s` : "0s"
|
|
2956
2952
|
}
|
|
2957
2953
|
}) || "";
|
|
2958
2954
|
}
|
|
2959
2955
|
return [
|
|
2960
2956
|
O,
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2957
|
+
R,
|
|
2958
|
+
B,
|
|
2959
|
+
W
|
|
2964
2960
|
].join(" ");
|
|
2965
2961
|
};
|
|
2966
|
-
return /* @__PURE__ */
|
|
2962
|
+
return /* @__PURE__ */ T(ee, { children: n() && t() ? /* @__PURE__ */ T(ee, { children: /* @__PURE__ */ T(gt, { id: "builderio-block", styles: n() }) }) : null });
|
|
2967
2963
|
}
|
|
2968
|
-
function
|
|
2964
|
+
function ai(e) {
|
|
2969
2965
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2970
2966
|
}
|
|
2971
|
-
const
|
|
2967
|
+
const si = (e) => `on${ai(e)}`, li = (e, t) => (n) => ln({
|
|
2972
2968
|
code: e,
|
|
2973
2969
|
context: t.context,
|
|
2974
2970
|
localState: t.localState,
|
|
@@ -2978,15 +2974,15 @@ const ii = (e) => `on${oi(e)}`, ai = (e, t) => (n) => ln({
|
|
|
2978
2974
|
isExpression: !1,
|
|
2979
2975
|
enableCache: !0
|
|
2980
2976
|
});
|
|
2981
|
-
function
|
|
2977
|
+
function Za(e) {
|
|
2982
2978
|
const t = {}, n = e.block.actions ?? {};
|
|
2983
2979
|
for (const r in n) {
|
|
2984
2980
|
if (!n.hasOwnProperty(r))
|
|
2985
2981
|
continue;
|
|
2986
2982
|
const o = n[r];
|
|
2987
|
-
let i =
|
|
2983
|
+
let i = si(r);
|
|
2988
2984
|
if (e.stripPrefix)
|
|
2989
|
-
switch (
|
|
2985
|
+
switch (Z) {
|
|
2990
2986
|
case "vue":
|
|
2991
2987
|
i = i.replace("v-on:", "");
|
|
2992
2988
|
break;
|
|
@@ -2994,25 +2990,25 @@ function za(e) {
|
|
|
2994
2990
|
i = i.replace("on:", "");
|
|
2995
2991
|
break;
|
|
2996
2992
|
}
|
|
2997
|
-
t[i] =
|
|
2993
|
+
t[i] = li(o, e);
|
|
2998
2994
|
}
|
|
2999
2995
|
return t;
|
|
3000
2996
|
}
|
|
3001
|
-
function
|
|
2997
|
+
function ci({
|
|
3002
2998
|
properties: e
|
|
3003
2999
|
}) {
|
|
3004
3000
|
return e;
|
|
3005
3001
|
}
|
|
3006
|
-
const
|
|
3002
|
+
const ui = (e) => ({
|
|
3007
3003
|
href: e.href
|
|
3008
3004
|
});
|
|
3009
|
-
function
|
|
3005
|
+
function di({
|
|
3010
3006
|
block: e,
|
|
3011
3007
|
context: t
|
|
3012
3008
|
}) {
|
|
3013
3009
|
var r;
|
|
3014
3010
|
const n = {
|
|
3015
|
-
...
|
|
3011
|
+
...ui(e),
|
|
3016
3012
|
...e.properties,
|
|
3017
3013
|
"builder-id": e.id,
|
|
3018
3014
|
style: Zo({
|
|
@@ -3021,13 +3017,13 @@ function ci({
|
|
|
3021
3017
|
}),
|
|
3022
3018
|
[Yt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3023
3019
|
};
|
|
3024
|
-
return
|
|
3020
|
+
return ci({
|
|
3025
3021
|
properties: n,
|
|
3026
3022
|
context: t,
|
|
3027
3023
|
block: e
|
|
3028
3024
|
});
|
|
3029
3025
|
}
|
|
3030
|
-
const
|
|
3026
|
+
const fi = ({
|
|
3031
3027
|
componentOptions: e,
|
|
3032
3028
|
builderBlock: t,
|
|
3033
3029
|
context: n,
|
|
@@ -3043,7 +3039,7 @@ const ui = ({
|
|
|
3043
3039
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
3044
3040
|
*/
|
|
3045
3041
|
...o ? {
|
|
3046
|
-
attributes:
|
|
3042
|
+
attributes: di({
|
|
3047
3043
|
block: t,
|
|
3048
3044
|
context: s
|
|
3049
3045
|
})
|
|
@@ -3060,10 +3056,10 @@ const ui = ({
|
|
|
3060
3056
|
function qn(e) {
|
|
3061
3057
|
var n;
|
|
3062
3058
|
const t = e.isInteractive ? io : e.componentRef;
|
|
3063
|
-
return /* @__PURE__ */
|
|
3059
|
+
return /* @__PURE__ */ T(ee, { children: e.componentRef ? /* @__PURE__ */ T(ee, { children: /* @__PURE__ */ T(
|
|
3064
3060
|
t,
|
|
3065
3061
|
{
|
|
3066
|
-
...
|
|
3062
|
+
...fi({
|
|
3067
3063
|
componentOptions: e.componentOptions,
|
|
3068
3064
|
builderBlock: e.builderBlock,
|
|
3069
3065
|
context: e.context,
|
|
@@ -3073,7 +3069,7 @@ function qn(e) {
|
|
|
3073
3069
|
isInteractive: e.isInteractive,
|
|
3074
3070
|
contextValue: e.context
|
|
3075
3071
|
}),
|
|
3076
|
-
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */
|
|
3072
|
+
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ T(
|
|
3077
3073
|
yt,
|
|
3078
3074
|
{
|
|
3079
3075
|
block: r,
|
|
@@ -3086,9 +3082,9 @@ function qn(e) {
|
|
|
3086
3082
|
}
|
|
3087
3083
|
) }) : null });
|
|
3088
3084
|
}
|
|
3089
|
-
function
|
|
3085
|
+
function pi(e) {
|
|
3090
3086
|
const t = e.repeatContext;
|
|
3091
|
-
return /* @__PURE__ */
|
|
3087
|
+
return /* @__PURE__ */ T(
|
|
3092
3088
|
yt,
|
|
3093
3089
|
{
|
|
3094
3090
|
block: e.block,
|
|
@@ -3113,7 +3109,7 @@ function yt(e) {
|
|
|
3113
3109
|
});
|
|
3114
3110
|
}, r = function() {
|
|
3115
3111
|
var O;
|
|
3116
|
-
return (O = e.block.repeat) != null && O.collection ? e.block :
|
|
3112
|
+
return (O = e.block.repeat) != null && O.collection ? e.block : ft({
|
|
3117
3113
|
block: e.block,
|
|
3118
3114
|
localState: e.context.localState,
|
|
3119
3115
|
rootState: e.context.rootState,
|
|
@@ -3122,43 +3118,43 @@ function yt(e) {
|
|
|
3122
3118
|
shouldEvaluateBindings: !0
|
|
3123
3119
|
});
|
|
3124
3120
|
}, o = function() {
|
|
3125
|
-
var
|
|
3126
|
-
return e.block.tagName === "a" || ((
|
|
3121
|
+
var R;
|
|
3122
|
+
return e.block.tagName === "a" || ((R = r().properties) == null ? void 0 : R.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3127
3123
|
}, i = function() {
|
|
3128
|
-
var
|
|
3129
|
-
if ((
|
|
3130
|
-
return !!((
|
|
3124
|
+
var B, N;
|
|
3125
|
+
if ((B = e.block.repeat) != null && B.collection)
|
|
3126
|
+
return !!((N = n()) != null && N.length);
|
|
3131
3127
|
const O = "hide" in r() ? r().hide : !1;
|
|
3132
3128
|
return ("show" in r() ? r().show : !0) && !O;
|
|
3133
3129
|
}, s = function() {
|
|
3134
|
-
var
|
|
3135
|
-
return !((
|
|
3130
|
+
var R;
|
|
3131
|
+
return !((R = t()) != null && R.component) && !n() ? r().children ?? [] : [];
|
|
3136
3132
|
}, u = function() {
|
|
3137
|
-
var O,
|
|
3133
|
+
var O, R, B;
|
|
3138
3134
|
return {
|
|
3139
3135
|
blockChildren: r().children ?? [],
|
|
3140
3136
|
componentRef: (O = t()) == null ? void 0 : O.component,
|
|
3141
3137
|
componentOptions: {
|
|
3142
3138
|
...So(r()),
|
|
3143
|
-
|
|
3144
|
-
...
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3139
|
+
...ri(t(), r()),
|
|
3140
|
+
...oi(t(), e.context),
|
|
3141
|
+
...ti(t(), e.linkComponent),
|
|
3142
|
+
...ni(
|
|
3143
|
+
t(),
|
|
3144
|
+
e.registeredComponents
|
|
3145
|
+
)
|
|
3150
3146
|
},
|
|
3151
3147
|
context: e.context,
|
|
3152
3148
|
linkComponent: e.linkComponent,
|
|
3153
3149
|
registeredComponents: e.registeredComponents,
|
|
3154
3150
|
builderBlock: r(),
|
|
3155
|
-
includeBlockProps: ((
|
|
3156
|
-
isInteractive: !((
|
|
3151
|
+
includeBlockProps: ((R = t()) == null ? void 0 : R.noWrap) === !0,
|
|
3152
|
+
isInteractive: !((B = t()) != null && B.isRSC)
|
|
3157
3153
|
};
|
|
3158
3154
|
};
|
|
3159
|
-
return /* @__PURE__ */
|
|
3160
|
-
/* @__PURE__ */
|
|
3161
|
-
(p = t()) != null && p.noWrap ? /* @__PURE__ */
|
|
3155
|
+
return /* @__PURE__ */ T(ee, { children: i() ? /* @__PURE__ */ xe(ee, { children: [
|
|
3156
|
+
/* @__PURE__ */ T(ii, { block: e.block, context: e.context }),
|
|
3157
|
+
(p = t()) != null && p.noWrap ? /* @__PURE__ */ T(ee, { children: /* @__PURE__ */ T(
|
|
3162
3158
|
qn,
|
|
3163
3159
|
{
|
|
3164
3160
|
componentRef: u().componentRef,
|
|
@@ -3171,8 +3167,8 @@ function yt(e) {
|
|
|
3171
3167
|
includeBlockProps: u().includeBlockProps,
|
|
3172
3168
|
isInteractive: u().isInteractive
|
|
3173
3169
|
}
|
|
3174
|
-
) }) : /* @__PURE__ */
|
|
3175
|
-
|
|
3170
|
+
) }) : /* @__PURE__ */ T(ee, { children: n() ? /* @__PURE__ */ T(ee, { children: (x = n()) == null ? void 0 : x.map((m, O) => /* @__PURE__ */ T(
|
|
3171
|
+
pi,
|
|
3176
3172
|
{
|
|
3177
3173
|
repeatContext: m.context,
|
|
3178
3174
|
block: m.block,
|
|
@@ -3186,9 +3182,8 @@ function yt(e) {
|
|
|
3186
3182
|
Wrapper: o(),
|
|
3187
3183
|
block: r(),
|
|
3188
3184
|
context: e.context,
|
|
3189
|
-
linkComponent: e.linkComponent,
|
|
3190
3185
|
children: [
|
|
3191
|
-
/* @__PURE__ */
|
|
3186
|
+
/* @__PURE__ */ T(
|
|
3192
3187
|
qn,
|
|
3193
3188
|
{
|
|
3194
3189
|
componentRef: u().componentRef,
|
|
@@ -3202,7 +3197,7 @@ function yt(e) {
|
|
|
3202
3197
|
isInteractive: u().isInteractive
|
|
3203
3198
|
}
|
|
3204
3199
|
),
|
|
3205
|
-
(b = s()) == null ? void 0 : b.map((m) => /* @__PURE__ */
|
|
3200
|
+
(b = s()) == null ? void 0 : b.map((m) => /* @__PURE__ */ T(
|
|
3206
3201
|
yt,
|
|
3207
3202
|
{
|
|
3208
3203
|
block: m,
|
|
@@ -3219,7 +3214,7 @@ function yt(e) {
|
|
|
3219
3214
|
}
|
|
3220
3215
|
function un(e) {
|
|
3221
3216
|
var t, n, r;
|
|
3222
|
-
return /* @__PURE__ */
|
|
3217
|
+
return /* @__PURE__ */ T(
|
|
3223
3218
|
so,
|
|
3224
3219
|
{
|
|
3225
3220
|
blocks: e.blocks,
|
|
@@ -3228,7 +3223,7 @@ function un(e) {
|
|
|
3228
3223
|
styleProp: e.styleProp,
|
|
3229
3224
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3230
3225
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3231
|
-
children: e.blocks ? /* @__PURE__ */
|
|
3226
|
+
children: e.blocks ? /* @__PURE__ */ T(ee, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ T(
|
|
3232
3227
|
yt,
|
|
3233
3228
|
{
|
|
3234
3229
|
block: o,
|
|
@@ -3241,27 +3236,27 @@ function un(e) {
|
|
|
3241
3236
|
}
|
|
3242
3237
|
);
|
|
3243
3238
|
}
|
|
3244
|
-
const
|
|
3245
|
-
function
|
|
3246
|
-
var
|
|
3239
|
+
const hi = (e) => `builder-columns ${e}-breakpoints`;
|
|
3240
|
+
function mi(e) {
|
|
3241
|
+
var N, W;
|
|
3247
3242
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(g) {
|
|
3248
3243
|
return g.link ? e.builderLinkComponent || "a" : "div";
|
|
3249
3244
|
}, i = function(g) {
|
|
3250
|
-
var
|
|
3251
|
-
return ((
|
|
3245
|
+
var F;
|
|
3246
|
+
return ((F = n[g]) == null ? void 0 : F.width) || 100 / n.length;
|
|
3252
3247
|
}, s = function(g) {
|
|
3253
|
-
const
|
|
3254
|
-
return `calc(${i(g)}% - ${
|
|
3248
|
+
const F = t * (n.length - 1) / n.length;
|
|
3249
|
+
return `calc(${i(g)}% - ${F}px)`;
|
|
3255
3250
|
}, u = function({
|
|
3256
3251
|
stackedStyle: g,
|
|
3257
|
-
desktopStyle:
|
|
3252
|
+
desktopStyle: F
|
|
3258
3253
|
}) {
|
|
3259
|
-
return r === "tablet" ? g :
|
|
3254
|
+
return r === "tablet" ? g : F;
|
|
3260
3255
|
}, p = function({
|
|
3261
3256
|
stackedStyle: g,
|
|
3262
|
-
desktopStyle:
|
|
3257
|
+
desktopStyle: F
|
|
3263
3258
|
}) {
|
|
3264
|
-
return r === "never" ?
|
|
3259
|
+
return r === "never" ? F : g;
|
|
3265
3260
|
}, b = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", x = function() {
|
|
3266
3261
|
return {
|
|
3267
3262
|
"--flex-dir": b,
|
|
@@ -3271,38 +3266,38 @@ function pi(e) {
|
|
|
3271
3266
|
})
|
|
3272
3267
|
};
|
|
3273
3268
|
}, m = function(g) {
|
|
3274
|
-
const
|
|
3269
|
+
const F = g === 0 ? 0 : t, U = s(g), Y = `${F}px`, V = "100%", re = 0;
|
|
3275
3270
|
return {
|
|
3276
3271
|
...{
|
|
3277
3272
|
display: "flex",
|
|
3278
3273
|
flexDirection: "column",
|
|
3279
3274
|
alignItems: "stretch"
|
|
3280
3275
|
},
|
|
3281
|
-
width:
|
|
3282
|
-
["marginLeft"]:
|
|
3276
|
+
width: U,
|
|
3277
|
+
["marginLeft"]: Y,
|
|
3283
3278
|
"--column-width-mobile": p({
|
|
3284
3279
|
stackedStyle: V,
|
|
3285
|
-
desktopStyle:
|
|
3280
|
+
desktopStyle: U
|
|
3286
3281
|
}),
|
|
3287
3282
|
"--column-margin-left-mobile": p({
|
|
3288
|
-
stackedStyle:
|
|
3289
|
-
desktopStyle:
|
|
3283
|
+
stackedStyle: re,
|
|
3284
|
+
desktopStyle: Y
|
|
3290
3285
|
}),
|
|
3291
3286
|
"--column-width-tablet": u({
|
|
3292
3287
|
stackedStyle: V,
|
|
3293
|
-
desktopStyle:
|
|
3288
|
+
desktopStyle: U
|
|
3294
3289
|
}),
|
|
3295
3290
|
"--column-margin-left-tablet": u({
|
|
3296
|
-
stackedStyle:
|
|
3297
|
-
desktopStyle:
|
|
3291
|
+
stackedStyle: re,
|
|
3292
|
+
desktopStyle: Y
|
|
3298
3293
|
})
|
|
3299
3294
|
};
|
|
3300
3295
|
}, O = function(g) {
|
|
3301
|
-
var
|
|
3296
|
+
var U, Y;
|
|
3302
3297
|
return Cr(
|
|
3303
|
-
((
|
|
3298
|
+
((Y = (U = e.builderContext.content) == null ? void 0 : U.meta) == null ? void 0 : Y.breakpoints) || {}
|
|
3304
3299
|
)[g].max;
|
|
3305
|
-
},
|
|
3300
|
+
}, R = function() {
|
|
3306
3301
|
return `
|
|
3307
3302
|
@media (max-width: ${O("medium")}px) {
|
|
3308
3303
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3328,30 +3323,30 @@ function pi(e) {
|
|
|
3328
3323
|
}
|
|
3329
3324
|
},
|
|
3330
3325
|
`;
|
|
3331
|
-
},
|
|
3326
|
+
}, B = function(g, F) {
|
|
3332
3327
|
return {
|
|
3333
3328
|
...g.link ? {
|
|
3334
3329
|
href: g.link
|
|
3335
3330
|
} : {},
|
|
3336
3331
|
[Yt()]: "builder-column",
|
|
3337
|
-
style: xr(m(
|
|
3332
|
+
style: xr(m(F))
|
|
3338
3333
|
};
|
|
3339
3334
|
};
|
|
3340
3335
|
return /* @__PURE__ */ xe(ee, { children: [
|
|
3341
3336
|
/* @__PURE__ */ xe(
|
|
3342
3337
|
"div",
|
|
3343
3338
|
{
|
|
3344
|
-
className:
|
|
3339
|
+
className: hi((N = e.builderBlock) == null ? void 0 : N.id) + " div-eeca3604",
|
|
3345
3340
|
style: x(),
|
|
3346
3341
|
children: [
|
|
3347
|
-
/* @__PURE__ */
|
|
3348
|
-
(
|
|
3342
|
+
/* @__PURE__ */ T(gt, { id: "builderio-columns", styles: R() }),
|
|
3343
|
+
(W = e.columns) == null ? void 0 : W.map((k, g) => /* @__PURE__ */ T(
|
|
3349
3344
|
lo,
|
|
3350
3345
|
{
|
|
3351
|
-
TagName: o(
|
|
3346
|
+
TagName: o(k),
|
|
3352
3347
|
actionAttributes: {},
|
|
3353
|
-
attributes:
|
|
3354
|
-
children: /* @__PURE__ */
|
|
3348
|
+
attributes: B(k, g),
|
|
3349
|
+
children: /* @__PURE__ */ T(
|
|
3355
3350
|
un,
|
|
3356
3351
|
{
|
|
3357
3352
|
path: `component.options.columns.${g}.blocks`,
|
|
@@ -3362,7 +3357,7 @@ function pi(e) {
|
|
|
3362
3357
|
context: e.builderContext,
|
|
3363
3358
|
registeredComponents: e.builderComponents,
|
|
3364
3359
|
linkComponent: e.builderLinkComponent,
|
|
3365
|
-
blocks:
|
|
3360
|
+
blocks: k.blocks
|
|
3366
3361
|
}
|
|
3367
3362
|
)
|
|
3368
3363
|
},
|
|
@@ -3371,7 +3366,7 @@ function pi(e) {
|
|
|
3371
3366
|
]
|
|
3372
3367
|
}
|
|
3373
3368
|
),
|
|
3374
|
-
/* @__PURE__ */
|
|
3369
|
+
/* @__PURE__ */ T("style", { children: `.div-eeca3604 {
|
|
3375
3370
|
display: flex;
|
|
3376
3371
|
line-height: normal;
|
|
3377
3372
|
}` })
|
|
@@ -3380,11 +3375,11 @@ function pi(e) {
|
|
|
3380
3375
|
function Zn(e) {
|
|
3381
3376
|
return e.replace(/http(s)?:/, "");
|
|
3382
3377
|
}
|
|
3383
|
-
function
|
|
3378
|
+
function gi(e = "", t, n) {
|
|
3384
3379
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3385
3380
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3386
3381
|
}
|
|
3387
|
-
function
|
|
3382
|
+
function yi(e, t) {
|
|
3388
3383
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3389
3384
|
return e;
|
|
3390
3385
|
if (t === "master")
|
|
@@ -3396,18 +3391,18 @@ function mi(e, t) {
|
|
|
3396
3391
|
}
|
|
3397
3392
|
return null;
|
|
3398
3393
|
}
|
|
3399
|
-
function
|
|
3394
|
+
function Qa(e) {
|
|
3400
3395
|
if (!e)
|
|
3401
3396
|
return e;
|
|
3402
3397
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3403
3398
|
if (e.match(/builder\.io/)) {
|
|
3404
3399
|
let n = e;
|
|
3405
3400
|
const r = Number(e.split("?width=")[1]);
|
|
3406
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3401
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${gi(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3407
3402
|
}
|
|
3408
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3403
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [yi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3409
3404
|
}
|
|
3410
|
-
const
|
|
3405
|
+
const vi = (e) => {
|
|
3411
3406
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3412
3407
|
return e;
|
|
3413
3408
|
const t = e.split(".");
|
|
@@ -3420,16 +3415,16 @@ const gi = (e) => {
|
|
|
3420
3415
|
try {
|
|
3421
3416
|
return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
3422
3417
|
} catch (r) {
|
|
3423
|
-
|
|
3418
|
+
te.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3424
3419
|
return;
|
|
3425
3420
|
}
|
|
3426
|
-
}, Ir = async (e) => Er(e),
|
|
3421
|
+
}, Ir = async (e) => Er(e), bi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(ae).join("; "), Si = [["secure", ""], ["SameSite", "None"]], wi = ({
|
|
3427
3422
|
name: e,
|
|
3428
3423
|
value: t,
|
|
3429
3424
|
expires: n
|
|
3430
3425
|
}) => {
|
|
3431
|
-
const o = (
|
|
3432
|
-
return
|
|
3426
|
+
const o = (X() ? location.protocol === "https:" : !0) ? Si : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", vi(window.location.hostname)], ...o];
|
|
3427
|
+
return bi(s);
|
|
3433
3428
|
}, Tr = async ({
|
|
3434
3429
|
name: e,
|
|
3435
3430
|
value: t,
|
|
@@ -3439,33 +3434,33 @@ const gi = (e) => {
|
|
|
3439
3434
|
try {
|
|
3440
3435
|
if (!r)
|
|
3441
3436
|
return;
|
|
3442
|
-
const o =
|
|
3437
|
+
const o = wi({
|
|
3443
3438
|
name: e,
|
|
3444
3439
|
value: t,
|
|
3445
3440
|
expires: n
|
|
3446
3441
|
});
|
|
3447
3442
|
document.cookie = o;
|
|
3448
3443
|
} catch (o) {
|
|
3449
|
-
|
|
3444
|
+
te.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3450
3445
|
}
|
|
3451
|
-
},
|
|
3446
|
+
}, xi = "builder.tests", dn = (e) => `${xi}.${e}`, ki = ({
|
|
3452
3447
|
contentId: e
|
|
3453
3448
|
}) => Ir({
|
|
3454
|
-
name:
|
|
3449
|
+
name: dn(e),
|
|
3455
3450
|
canTrack: !0
|
|
3456
|
-
}),
|
|
3451
|
+
}), Ci = ({
|
|
3457
3452
|
contentId: e
|
|
3458
3453
|
}) => Er({
|
|
3459
|
-
name:
|
|
3454
|
+
name: dn(e),
|
|
3460
3455
|
canTrack: !0
|
|
3461
|
-
}),
|
|
3456
|
+
}), Ei = ({
|
|
3462
3457
|
contentId: e,
|
|
3463
3458
|
value: t
|
|
3464
3459
|
}) => Tr({
|
|
3465
|
-
name:
|
|
3460
|
+
name: dn(e),
|
|
3466
3461
|
value: t,
|
|
3467
3462
|
canTrack: !0
|
|
3468
|
-
}), Ar = (e) =>
|
|
3463
|
+
}), Ar = (e) => ae(e.id) && ae(e.variations) && Object.keys(e.variations).length > 0, Ii = ({
|
|
3469
3464
|
id: e,
|
|
3470
3465
|
variations: t
|
|
3471
3466
|
}) => {
|
|
@@ -3479,12 +3474,12 @@ const gi = (e) => {
|
|
|
3479
3474
|
}
|
|
3480
3475
|
return e;
|
|
3481
3476
|
}, Or = (e) => {
|
|
3482
|
-
const t =
|
|
3483
|
-
return
|
|
3477
|
+
const t = Ii(e);
|
|
3478
|
+
return Ei({
|
|
3484
3479
|
contentId: e.id,
|
|
3485
3480
|
value: t
|
|
3486
3481
|
}).catch((n) => {
|
|
3487
|
-
|
|
3482
|
+
te.error("could not store A/B test variation: ", n);
|
|
3488
3483
|
}), t;
|
|
3489
3484
|
}, jr = ({
|
|
3490
3485
|
item: e,
|
|
@@ -3500,7 +3495,7 @@ const gi = (e) => {
|
|
|
3500
3495
|
testVariationId: n.id,
|
|
3501
3496
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3502
3497
|
};
|
|
3503
|
-
},
|
|
3498
|
+
}, Ti = ({
|
|
3504
3499
|
item: e,
|
|
3505
3500
|
canTrack: t
|
|
3506
3501
|
}) => {
|
|
@@ -3510,7 +3505,7 @@ const gi = (e) => {
|
|
|
3510
3505
|
return;
|
|
3511
3506
|
if (!Ar(e))
|
|
3512
3507
|
return e;
|
|
3513
|
-
const n =
|
|
3508
|
+
const n = Ci({
|
|
3514
3509
|
contentId: e.id
|
|
3515
3510
|
}) || Or({
|
|
3516
3511
|
variations: e.variations,
|
|
@@ -3523,13 +3518,13 @@ const gi = (e) => {
|
|
|
3523
3518
|
...e,
|
|
3524
3519
|
...r
|
|
3525
3520
|
};
|
|
3526
|
-
},
|
|
3521
|
+
}, Ai = async ({
|
|
3527
3522
|
item: e,
|
|
3528
3523
|
canTrack: t
|
|
3529
3524
|
}) => {
|
|
3530
3525
|
if (!t || !Ar(e))
|
|
3531
3526
|
return e;
|
|
3532
|
-
const r = await
|
|
3527
|
+
const r = await ki({
|
|
3533
3528
|
contentId: e.id
|
|
3534
3529
|
}) || Or({
|
|
3535
3530
|
variations: e.variations,
|
|
@@ -3542,7 +3537,7 @@ const gi = (e) => {
|
|
|
3542
3537
|
...e,
|
|
3543
3538
|
...o
|
|
3544
3539
|
};
|
|
3545
|
-
}, Ht = (e) =>
|
|
3540
|
+
}, Ht = (e) => ae(e) ? e : !0, Oi = {
|
|
3546
3541
|
name: "Core:Button",
|
|
3547
3542
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3548
3543
|
defaultStyles: {
|
|
@@ -3575,7 +3570,7 @@ const gi = (e) => {
|
|
|
3575
3570
|
}],
|
|
3576
3571
|
static: !0,
|
|
3577
3572
|
noWrap: !0
|
|
3578
|
-
},
|
|
3573
|
+
}, ji = {
|
|
3579
3574
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3580
3575
|
name: "Columns",
|
|
3581
3576
|
isRSC: !0,
|
|
@@ -3776,13 +3771,13 @@ const gi = (e) => {
|
|
|
3776
3771
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3777
3772
|
advanced: !0
|
|
3778
3773
|
}]
|
|
3779
|
-
},
|
|
3774
|
+
}, Ri = {
|
|
3780
3775
|
name: "Fragment",
|
|
3781
3776
|
static: !0,
|
|
3782
3777
|
hidden: !0,
|
|
3783
3778
|
canHaveChildren: !0,
|
|
3784
3779
|
noWrap: !0
|
|
3785
|
-
},
|
|
3780
|
+
}, Pi = {
|
|
3786
3781
|
name: "Image",
|
|
3787
3782
|
static: !0,
|
|
3788
3783
|
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",
|
|
@@ -3875,6 +3870,11 @@ const gi = (e) => {
|
|
|
3875
3870
|
type: "boolean",
|
|
3876
3871
|
helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
|
|
3877
3872
|
defaultValue: !0
|
|
3873
|
+
}, {
|
|
3874
|
+
name: "highPriority",
|
|
3875
|
+
type: "boolean",
|
|
3876
|
+
advanced: !0,
|
|
3877
|
+
helperText: "Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."
|
|
3878
3878
|
}, {
|
|
3879
3879
|
name: "aspectRatio",
|
|
3880
3880
|
type: "number",
|
|
@@ -3882,7 +3882,7 @@ const gi = (e) => {
|
|
|
3882
3882
|
advanced: !0,
|
|
3883
3883
|
defaultValue: 0.7041
|
|
3884
3884
|
}]
|
|
3885
|
-
},
|
|
3885
|
+
}, Ni = {
|
|
3886
3886
|
name: "Core:Section",
|
|
3887
3887
|
static: !0,
|
|
3888
3888
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3921,7 +3921,7 @@ const gi = (e) => {
|
|
|
3921
3921
|
}
|
|
3922
3922
|
}
|
|
3923
3923
|
}]
|
|
3924
|
-
},
|
|
3924
|
+
}, Bi = {
|
|
3925
3925
|
name: "Slot",
|
|
3926
3926
|
isRSC: !0,
|
|
3927
3927
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3935,9 +3935,9 @@ const gi = (e) => {
|
|
|
3935
3935
|
defaultValue: "children"
|
|
3936
3936
|
}]
|
|
3937
3937
|
};
|
|
3938
|
-
function
|
|
3938
|
+
function Fi(e) {
|
|
3939
3939
|
var t, n, r;
|
|
3940
|
-
return /* @__PURE__ */
|
|
3940
|
+
return /* @__PURE__ */ T(
|
|
3941
3941
|
"div",
|
|
3942
3942
|
{
|
|
3943
3943
|
style: {
|
|
@@ -3946,7 +3946,7 @@ function Ni(e) {
|
|
|
3946
3946
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
3947
3947
|
"builder-slot": e.name
|
|
3948
3948
|
},
|
|
3949
|
-
children: /* @__PURE__ */
|
|
3949
|
+
children: /* @__PURE__ */ T(
|
|
3950
3950
|
un,
|
|
3951
3951
|
{
|
|
3952
3952
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -3958,7 +3958,7 @@ function Ni(e) {
|
|
|
3958
3958
|
}
|
|
3959
3959
|
);
|
|
3960
3960
|
}
|
|
3961
|
-
const
|
|
3961
|
+
const Ui = {
|
|
3962
3962
|
name: "Symbol",
|
|
3963
3963
|
noWrap: !0,
|
|
3964
3964
|
static: !0,
|
|
@@ -3991,7 +3991,7 @@ const Bi = {
|
|
|
3991
3991
|
hideFromUI: !0,
|
|
3992
3992
|
type: "boolean"
|
|
3993
3993
|
}]
|
|
3994
|
-
},
|
|
3994
|
+
}, Mi = {
|
|
3995
3995
|
name: "Text",
|
|
3996
3996
|
static: !0,
|
|
3997
3997
|
isRSC: !0,
|
|
@@ -4010,9 +4010,9 @@ const Bi = {
|
|
|
4010
4010
|
textAlign: "center"
|
|
4011
4011
|
}
|
|
4012
4012
|
};
|
|
4013
|
-
function
|
|
4013
|
+
function Vi(e) {
|
|
4014
4014
|
var t;
|
|
4015
|
-
return /* @__PURE__ */
|
|
4015
|
+
return /* @__PURE__ */ T(
|
|
4016
4016
|
"div",
|
|
4017
4017
|
{
|
|
4018
4018
|
className: "builder-text",
|
|
@@ -4023,7 +4023,7 @@ function Mi(e) {
|
|
|
4023
4023
|
}
|
|
4024
4024
|
);
|
|
4025
4025
|
}
|
|
4026
|
-
const
|
|
4026
|
+
const Di = {
|
|
4027
4027
|
name: "Custom Code",
|
|
4028
4028
|
static: !0,
|
|
4029
4029
|
requiredPermissions: ["editCode"],
|
|
@@ -4045,7 +4045,7 @@ const Fi = {
|
|
|
4045
4045
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
4046
4046
|
advanced: !0
|
|
4047
4047
|
}]
|
|
4048
|
-
},
|
|
4048
|
+
}, Li = {
|
|
4049
4049
|
name: "Embed",
|
|
4050
4050
|
static: !0,
|
|
4051
4051
|
inputs: [{
|
|
@@ -4070,7 +4070,7 @@ const Fi = {
|
|
|
4070
4070
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4071
4071
|
hideFromUI: !0
|
|
4072
4072
|
}]
|
|
4073
|
-
},
|
|
4073
|
+
}, Wi = ["text/javascript", "application/javascript", "application/ecmascript"], es = (e) => Wi.includes(e.type), _i = {
|
|
4074
4074
|
// friendlyName?
|
|
4075
4075
|
name: "Raw:Img",
|
|
4076
4076
|
hideFromInsertMenu: !0,
|
|
@@ -4084,7 +4084,7 @@ const Fi = {
|
|
|
4084
4084
|
}],
|
|
4085
4085
|
noWrap: !0,
|
|
4086
4086
|
static: !0
|
|
4087
|
-
},
|
|
4087
|
+
}, $i = {
|
|
4088
4088
|
name: "Video",
|
|
4089
4089
|
canHaveChildren: !0,
|
|
4090
4090
|
defaultStyles: {
|
|
@@ -4165,58 +4165,58 @@ const Fi = {
|
|
|
4165
4165
|
defaultValue: !0,
|
|
4166
4166
|
advanced: !0
|
|
4167
4167
|
}]
|
|
4168
|
-
},
|
|
4168
|
+
}, Hi = () => [{
|
|
4169
4169
|
component: co,
|
|
4170
|
-
...
|
|
4170
|
+
...Di
|
|
4171
4171
|
}, {
|
|
4172
4172
|
component: uo,
|
|
4173
|
-
...
|
|
4173
|
+
...Li
|
|
4174
4174
|
}, {
|
|
4175
4175
|
component: fo,
|
|
4176
|
-
...
|
|
4176
|
+
..._i
|
|
4177
4177
|
}, {
|
|
4178
4178
|
component: po,
|
|
4179
|
-
|
|
4179
|
+
...$i
|
|
4180
4180
|
}], Qn = () => [{
|
|
4181
4181
|
component: ho,
|
|
4182
|
-
...Ti
|
|
4183
|
-
}, {
|
|
4184
|
-
component: pi,
|
|
4185
|
-
...Ai
|
|
4186
|
-
}, {
|
|
4187
|
-
component: mo,
|
|
4188
4182
|
...Oi
|
|
4189
4183
|
}, {
|
|
4190
|
-
component:
|
|
4184
|
+
component: mi,
|
|
4191
4185
|
...ji
|
|
4192
4186
|
}, {
|
|
4193
|
-
component:
|
|
4187
|
+
component: mo,
|
|
4194
4188
|
...Ri
|
|
4195
4189
|
}, {
|
|
4196
|
-
component:
|
|
4190
|
+
component: go,
|
|
4197
4191
|
...Pi
|
|
4198
4192
|
}, {
|
|
4199
|
-
component:
|
|
4193
|
+
component: yo,
|
|
4194
|
+
...Ni
|
|
4195
|
+
}, {
|
|
4196
|
+
component: Fi,
|
|
4200
4197
|
...Bi
|
|
4201
4198
|
}, {
|
|
4202
|
-
component:
|
|
4199
|
+
component: Ka,
|
|
4203
4200
|
...Ui
|
|
4204
|
-
},
|
|
4201
|
+
}, {
|
|
4202
|
+
component: Vi,
|
|
4203
|
+
...Mi
|
|
4204
|
+
}, ...Hi()], ts = (e) => ({
|
|
4205
4205
|
type: "builder.registerComponent",
|
|
4206
4206
|
data: Kt(e)
|
|
4207
|
-
}),
|
|
4207
|
+
}), Ki = (e) => {
|
|
4208
4208
|
const t = e.toString().trim();
|
|
4209
4209
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4210
|
-
},
|
|
4210
|
+
}, Gi = (e) => typeof e == "function" ? Ki(e) : mt(e), Kt = ({
|
|
4211
4211
|
inputs: e,
|
|
4212
4212
|
...t
|
|
4213
4213
|
}) => ({
|
|
4214
4214
|
...mt(t),
|
|
4215
4215
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
4216
4216
|
...r,
|
|
4217
|
-
[o]:
|
|
4217
|
+
[o]: Gi(i)
|
|
4218
4218
|
}), {}))
|
|
4219
|
-
}),
|
|
4219
|
+
}), Xi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4220
4220
|
function getAndSetVariantId() {
|
|
4221
4221
|
function setCookie(name, value, days) {
|
|
4222
4222
|
let expires = '';
|
|
@@ -4272,7 +4272,7 @@ const Fi = {
|
|
|
4272
4272
|
}).join('');
|
|
4273
4273
|
styleEl.innerHTML = newStyleStr;
|
|
4274
4274
|
}
|
|
4275
|
-
}`,
|
|
4275
|
+
}`, Yi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4276
4276
|
if (!navigator.cookieEnabled) {
|
|
4277
4277
|
return;
|
|
4278
4278
|
}
|
|
@@ -4306,27 +4306,27 @@ const Fi = {
|
|
|
4306
4306
|
thisScriptEl?.remove();
|
|
4307
4307
|
}
|
|
4308
4308
|
return;
|
|
4309
|
-
}`, Rr = "builderIoAbTest", Pr = "builderIoRenderContent",
|
|
4309
|
+
}`, Rr = "builderIoAbTest", Pr = "builderIoRenderContent", dt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4310
4310
|
...t,
|
|
4311
4311
|
testVariationId: t.id,
|
|
4312
4312
|
id: e == null ? void 0 : e.id
|
|
4313
|
-
})),
|
|
4313
|
+
})), zi = ({
|
|
4314
4314
|
canTrack: e,
|
|
4315
4315
|
content: t
|
|
4316
|
-
}) => !(!(
|
|
4317
|
-
window.${Rr} = ${
|
|
4318
|
-
window.${Pr} = ${
|
|
4319
|
-
`,
|
|
4316
|
+
}) => !(!(dt(t).length > 0) || !e || X()), Ji = (e) => e === "react" || e === "reactNative", Nr = Ji(Z), qi = () => `
|
|
4317
|
+
window.${Rr} = ${Xi}
|
|
4318
|
+
window.${Pr} = ${Yi}
|
|
4319
|
+
`, Zi = (e, t) => `
|
|
4320
4320
|
window.${Rr}(
|
|
4321
4321
|
"${t}",${JSON.stringify(e)}, ${Nr}
|
|
4322
|
-
)`,
|
|
4322
|
+
)`, Qi = ({
|
|
4323
4323
|
contentId: e,
|
|
4324
4324
|
variationId: t
|
|
4325
4325
|
}) => `window.${Pr}(
|
|
4326
4326
|
"${t}", "${e}", ${Nr}
|
|
4327
4327
|
)`;
|
|
4328
4328
|
function Gt(e) {
|
|
4329
|
-
return /* @__PURE__ */
|
|
4329
|
+
return /* @__PURE__ */ T(
|
|
4330
4330
|
"script",
|
|
4331
4331
|
{
|
|
4332
4332
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -4334,33 +4334,33 @@ function Gt(e) {
|
|
|
4334
4334
|
}
|
|
4335
4335
|
);
|
|
4336
4336
|
}
|
|
4337
|
-
const
|
|
4337
|
+
const ea = (e) => {
|
|
4338
4338
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4339
|
-
return n ||
|
|
4339
|
+
return n || te.warn("No previewed ID found in search params."), n;
|
|
4340
4340
|
};
|
|
4341
|
-
function
|
|
4341
|
+
function ta() {
|
|
4342
4342
|
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new oo({
|
|
4343
4343
|
max: 500,
|
|
4344
4344
|
// how long to live in ms
|
|
4345
4345
|
ttl: 1e3 * 60 * 5
|
|
4346
4346
|
}));
|
|
4347
4347
|
}
|
|
4348
|
-
function
|
|
4349
|
-
|
|
4350
|
-
const t =
|
|
4348
|
+
function na(e) {
|
|
4349
|
+
ta();
|
|
4350
|
+
const t = ea(e);
|
|
4351
4351
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4352
4352
|
}
|
|
4353
|
-
function
|
|
4353
|
+
function ra() {
|
|
4354
4354
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4355
4355
|
}
|
|
4356
|
-
function
|
|
4357
|
-
const e =
|
|
4356
|
+
function oa() {
|
|
4357
|
+
const e = ra().fetch;
|
|
4358
4358
|
if (typeof e > "u")
|
|
4359
4359
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4360
4360
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4361
4361
|
return e;
|
|
4362
4362
|
}
|
|
4363
|
-
const
|
|
4363
|
+
const ia = oa();
|
|
4364
4364
|
function Xt(e, t = null, n = ".") {
|
|
4365
4365
|
return Object.keys(e).reduce((r, o) => {
|
|
4366
4366
|
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
@@ -4380,22 +4380,22 @@ function Br(e, t, n = {}) {
|
|
|
4380
4380
|
}
|
|
4381
4381
|
return n;
|
|
4382
4382
|
}
|
|
4383
|
-
const
|
|
4383
|
+
const aa = "v3", er = "builder.", sa = "options.", Fr = (e) => {
|
|
4384
4384
|
if (!e)
|
|
4385
4385
|
return {};
|
|
4386
4386
|
const t = cr(e), n = {};
|
|
4387
4387
|
return Object.keys(t).forEach((r) => {
|
|
4388
4388
|
if (r.startsWith(er)) {
|
|
4389
|
-
const o = r.replace(er, "").replace(
|
|
4389
|
+
const o = r.replace(er, "").replace(sa, "");
|
|
4390
4390
|
n[o] = t[r];
|
|
4391
4391
|
}
|
|
4392
4392
|
}), n;
|
|
4393
|
-
},
|
|
4394
|
-
if (!
|
|
4393
|
+
}, la = () => {
|
|
4394
|
+
if (!X())
|
|
4395
4395
|
return {};
|
|
4396
4396
|
const e = new URLSearchParams(window.location.search);
|
|
4397
|
-
return
|
|
4398
|
-
}, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0,
|
|
4397
|
+
return Fr(e);
|
|
4398
|
+
}, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fn = (e) => {
|
|
4399
4399
|
const {
|
|
4400
4400
|
limit: t = 30,
|
|
4401
4401
|
userAttributes: n,
|
|
@@ -4404,103 +4404,103 @@ const oa = "v3", er = "builder.", ia = "options.", Ur = (e) => {
|
|
|
4404
4404
|
apiKey: i,
|
|
4405
4405
|
enrich: s,
|
|
4406
4406
|
locale: u,
|
|
4407
|
-
apiVersion: p =
|
|
4407
|
+
apiVersion: p = aa,
|
|
4408
4408
|
fields: b,
|
|
4409
4409
|
omit: x,
|
|
4410
4410
|
offset: m,
|
|
4411
4411
|
cacheSeconds: O,
|
|
4412
|
-
staleCacheSeconds:
|
|
4413
|
-
sort:
|
|
4414
|
-
includeUnpublished:
|
|
4412
|
+
staleCacheSeconds: R,
|
|
4413
|
+
sort: B,
|
|
4414
|
+
includeUnpublished: N
|
|
4415
4415
|
} = e;
|
|
4416
4416
|
if (!i)
|
|
4417
4417
|
throw new Error("Missing API key");
|
|
4418
4418
|
if (!["v3"].includes(p))
|
|
4419
4419
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
|
|
4420
|
-
const
|
|
4421
|
-
if (
|
|
4422
|
-
const
|
|
4423
|
-
sort:
|
|
4420
|
+
const W = t !== 1, k = new URL(`https://cdn.builder.io/api/${p}/content/${o}`);
|
|
4421
|
+
if (k.searchParams.set("apiKey", i), k.searchParams.set("limit", String(t)), k.searchParams.set("noTraverse", String(W)), k.searchParams.set("includeRefs", String(!0)), u && k.searchParams.set("locale", u), s && k.searchParams.set("enrich", String(s)), k.searchParams.set("omit", x || "meta.componentsUsed"), b && k.searchParams.set("fields", b), Number.isFinite(m) && m > -1 && k.searchParams.set("offset", String(Math.floor(m))), typeof N == "boolean" && k.searchParams.set("includeUnpublished", String(N)), O && tr(O) && k.searchParams.set("cacheSeconds", String(O)), R && tr(R) && k.searchParams.set("staleCacheSeconds", String(R)), B) {
|
|
4422
|
+
const U = Xt({
|
|
4423
|
+
sort: B
|
|
4424
4424
|
});
|
|
4425
|
-
for (const
|
|
4426
|
-
|
|
4425
|
+
for (const Y in U)
|
|
4426
|
+
k.searchParams.set(Y, JSON.stringify(U[Y]));
|
|
4427
4427
|
}
|
|
4428
4428
|
const g = {
|
|
4429
|
-
...
|
|
4429
|
+
...la(),
|
|
4430
4430
|
...cr(e.options || {})
|
|
4431
|
-
},
|
|
4432
|
-
for (const
|
|
4433
|
-
|
|
4434
|
-
if (n &&
|
|
4435
|
-
const
|
|
4431
|
+
}, F = Xt(g);
|
|
4432
|
+
for (const U in F)
|
|
4433
|
+
k.searchParams.set(U, String(F[U]));
|
|
4434
|
+
if (n && k.searchParams.set("userAttributes", JSON.stringify(n)), r) {
|
|
4435
|
+
const U = Br({
|
|
4436
4436
|
query: r
|
|
4437
4437
|
});
|
|
4438
|
-
for (const
|
|
4439
|
-
|
|
4438
|
+
for (const Y in U)
|
|
4439
|
+
k.searchParams.set(Y, JSON.stringify(U[Y]));
|
|
4440
4440
|
}
|
|
4441
|
-
return
|
|
4442
|
-
},
|
|
4443
|
-
async function
|
|
4444
|
-
const t = await
|
|
4441
|
+
return k;
|
|
4442
|
+
}, ca = (e) => "results" in e;
|
|
4443
|
+
async function Ur(e) {
|
|
4444
|
+
const t = await fa({
|
|
4445
4445
|
...e,
|
|
4446
4446
|
limit: 1
|
|
4447
4447
|
});
|
|
4448
4448
|
return t && t[0] || null;
|
|
4449
4449
|
}
|
|
4450
|
-
const
|
|
4451
|
-
const t =
|
|
4452
|
-
return await (await (e.fetch ??
|
|
4453
|
-
},
|
|
4450
|
+
const ua = async (e) => {
|
|
4451
|
+
const t = fn(e);
|
|
4452
|
+
return await (await (e.fetch ?? ia)(t.href, e.fetchOptions)).json();
|
|
4453
|
+
}, da = async (e, t, n = fn(e)) => {
|
|
4454
4454
|
const r = Ht(e.canTrack);
|
|
4455
4455
|
if (n.search.includes("preview=")) {
|
|
4456
4456
|
const i = [];
|
|
4457
4457
|
for (const s of t.results) {
|
|
4458
|
-
const u =
|
|
4458
|
+
const u = na(n.searchParams);
|
|
4459
4459
|
i.push(u || s);
|
|
4460
4460
|
}
|
|
4461
4461
|
t.results = i;
|
|
4462
4462
|
}
|
|
4463
|
-
if (!r || !(
|
|
4463
|
+
if (!r || !(X() || Z === "reactNative"))
|
|
4464
4464
|
return t.results;
|
|
4465
4465
|
try {
|
|
4466
4466
|
const i = [];
|
|
4467
4467
|
for (const s of t.results)
|
|
4468
|
-
i.push(await
|
|
4468
|
+
i.push(await Ai({
|
|
4469
4469
|
item: s,
|
|
4470
4470
|
canTrack: r
|
|
4471
4471
|
}));
|
|
4472
4472
|
t.results = i;
|
|
4473
4473
|
} catch (i) {
|
|
4474
|
-
|
|
4474
|
+
te.error("Could not process A/B tests. ", i);
|
|
4475
4475
|
}
|
|
4476
4476
|
return t.results;
|
|
4477
4477
|
};
|
|
4478
|
-
async function
|
|
4478
|
+
async function fa(e) {
|
|
4479
4479
|
try {
|
|
4480
|
-
const t =
|
|
4481
|
-
return
|
|
4480
|
+
const t = fn(e), n = await ua(e);
|
|
4481
|
+
return ca(n) ? da(e, n) : (te.error("Error fetching data. ", {
|
|
4482
4482
|
url: t,
|
|
4483
4483
|
content: n,
|
|
4484
4484
|
options: e
|
|
4485
4485
|
}), null);
|
|
4486
4486
|
} catch (t) {
|
|
4487
|
-
return
|
|
4487
|
+
return te.error("Error fetching data. ", t), null;
|
|
4488
4488
|
}
|
|
4489
4489
|
}
|
|
4490
|
-
function
|
|
4491
|
-
const t = e || (
|
|
4490
|
+
function ns(e) {
|
|
4491
|
+
const t = e || (X() ? window.location.search : void 0);
|
|
4492
4492
|
return t ? ur(t).indexOf("builder.preview=") !== -1 : !1;
|
|
4493
4493
|
}
|
|
4494
|
-
function
|
|
4494
|
+
function pa() {
|
|
4495
4495
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4496
4496
|
const t = Math.random() * 16 | 0;
|
|
4497
4497
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4498
4498
|
});
|
|
4499
4499
|
}
|
|
4500
|
-
function
|
|
4501
|
-
return
|
|
4500
|
+
function Mr() {
|
|
4501
|
+
return pa().replace(/-/g, "");
|
|
4502
4502
|
}
|
|
4503
|
-
const Vr = "builderSessionId",
|
|
4503
|
+
const Vr = "builderSessionId", ha = async ({
|
|
4504
4504
|
canTrack: e
|
|
4505
4505
|
}) => {
|
|
4506
4506
|
if (!e)
|
|
@@ -4509,23 +4509,23 @@ const Vr = "builderSessionId", da = async ({
|
|
|
4509
4509
|
name: Vr,
|
|
4510
4510
|
canTrack: e
|
|
4511
4511
|
});
|
|
4512
|
-
if (
|
|
4512
|
+
if (ae(t))
|
|
4513
4513
|
return t;
|
|
4514
4514
|
{
|
|
4515
|
-
const n =
|
|
4516
|
-
return
|
|
4515
|
+
const n = ma();
|
|
4516
|
+
return ga({
|
|
4517
4517
|
id: n,
|
|
4518
4518
|
canTrack: e
|
|
4519
4519
|
}), n;
|
|
4520
4520
|
}
|
|
4521
|
-
},
|
|
4521
|
+
}, ma = () => Mr(), ga = ({
|
|
4522
4522
|
id: e,
|
|
4523
4523
|
canTrack: t
|
|
4524
4524
|
}) => Tr({
|
|
4525
4525
|
name: Vr,
|
|
4526
4526
|
value: e,
|
|
4527
4527
|
canTrack: t
|
|
4528
|
-
}), Dr = () =>
|
|
4528
|
+
}), Dr = () => X() && typeof localStorage < "u" ? localStorage : void 0, ya = ({
|
|
4529
4529
|
key: e,
|
|
4530
4530
|
canTrack: t
|
|
4531
4531
|
}) => {
|
|
@@ -4536,7 +4536,7 @@ const Vr = "builderSessionId", da = async ({
|
|
|
4536
4536
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4537
4537
|
return;
|
|
4538
4538
|
}
|
|
4539
|
-
},
|
|
4539
|
+
}, va = ({
|
|
4540
4540
|
key: e,
|
|
4541
4541
|
canTrack: t,
|
|
4542
4542
|
value: n
|
|
@@ -4547,32 +4547,32 @@ const Vr = "builderSessionId", da = async ({
|
|
|
4547
4547
|
} catch (o) {
|
|
4548
4548
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4549
4549
|
}
|
|
4550
|
-
}, Lr = "builderVisitorId",
|
|
4550
|
+
}, Lr = "builderVisitorId", ba = ({
|
|
4551
4551
|
canTrack: e
|
|
4552
4552
|
}) => {
|
|
4553
4553
|
if (!e)
|
|
4554
4554
|
return;
|
|
4555
|
-
const t =
|
|
4555
|
+
const t = ya({
|
|
4556
4556
|
key: Lr,
|
|
4557
4557
|
canTrack: e
|
|
4558
4558
|
});
|
|
4559
|
-
if (
|
|
4559
|
+
if (ae(t))
|
|
4560
4560
|
return t;
|
|
4561
4561
|
{
|
|
4562
|
-
const n =
|
|
4563
|
-
return
|
|
4562
|
+
const n = Sa();
|
|
4563
|
+
return wa({
|
|
4564
4564
|
id: n,
|
|
4565
4565
|
canTrack: e
|
|
4566
4566
|
}), n;
|
|
4567
4567
|
}
|
|
4568
|
-
},
|
|
4568
|
+
}, Sa = () => Mr(), wa = ({
|
|
4569
4569
|
id: e,
|
|
4570
4570
|
canTrack: t
|
|
4571
|
-
}) =>
|
|
4571
|
+
}) => va({
|
|
4572
4572
|
key: Lr,
|
|
4573
4573
|
value: e,
|
|
4574
4574
|
canTrack: t
|
|
4575
|
-
}),
|
|
4575
|
+
}), xa = async ({
|
|
4576
4576
|
canTrack: e
|
|
4577
4577
|
}) => {
|
|
4578
4578
|
if (!e)
|
|
@@ -4580,16 +4580,16 @@ const Vr = "builderSessionId", da = async ({
|
|
|
4580
4580
|
visitorId: void 0,
|
|
4581
4581
|
sessionId: void 0
|
|
4582
4582
|
};
|
|
4583
|
-
const t = await
|
|
4583
|
+
const t = await ha({
|
|
4584
4584
|
canTrack: e
|
|
4585
|
-
}), n =
|
|
4585
|
+
}), n = ba({
|
|
4586
4586
|
canTrack: e
|
|
4587
4587
|
});
|
|
4588
4588
|
return {
|
|
4589
4589
|
sessionId: t,
|
|
4590
4590
|
visitorId: n
|
|
4591
4591
|
};
|
|
4592
|
-
},
|
|
4592
|
+
}, ka = async ({
|
|
4593
4593
|
type: e,
|
|
4594
4594
|
canTrack: t,
|
|
4595
4595
|
apiKey: n,
|
|
@@ -4603,23 +4603,23 @@ const Vr = "builderSessionId", da = async ({
|
|
|
4603
4603
|
url: location.href,
|
|
4604
4604
|
...r
|
|
4605
4605
|
},
|
|
4606
|
-
...await
|
|
4606
|
+
...await xa({
|
|
4607
4607
|
canTrack: t
|
|
4608
4608
|
}),
|
|
4609
|
-
userAttributes:
|
|
4609
|
+
userAttributes: fr(),
|
|
4610
4610
|
ownerId: n
|
|
4611
4611
|
}
|
|
4612
4612
|
});
|
|
4613
|
-
async function
|
|
4613
|
+
async function Ca(e) {
|
|
4614
4614
|
if (!e.apiKey) {
|
|
4615
|
-
|
|
4615
|
+
te.error("Missing API key for track call. Please provide your API key.");
|
|
4616
4616
|
return;
|
|
4617
4617
|
}
|
|
4618
|
-
if (e.canTrack && !
|
|
4618
|
+
if (e.canTrack && !dr() && (X() || Z === "reactNative"))
|
|
4619
4619
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4620
4620
|
method: "POST",
|
|
4621
4621
|
body: JSON.stringify({
|
|
4622
|
-
events: [await
|
|
4622
|
+
events: [await ka(e)]
|
|
4623
4623
|
}),
|
|
4624
4624
|
headers: {
|
|
4625
4625
|
"content-type": "application/json"
|
|
@@ -4629,14 +4629,14 @@ async function xa(e) {
|
|
|
4629
4629
|
console.error("Failed to track: ", t);
|
|
4630
4630
|
});
|
|
4631
4631
|
}
|
|
4632
|
-
const
|
|
4632
|
+
const rs = (e) => Ca({
|
|
4633
4633
|
...e,
|
|
4634
4634
|
canTrack: !0
|
|
4635
4635
|
});
|
|
4636
4636
|
function nr(e) {
|
|
4637
4637
|
return Math.round(e * 1e3) / 1e3;
|
|
4638
4638
|
}
|
|
4639
|
-
const
|
|
4639
|
+
const Ea = (e, t, n = !0) => {
|
|
4640
4640
|
if (!(e instanceof HTMLElement))
|
|
4641
4641
|
return null;
|
|
4642
4642
|
let r = n ? e : e.parentElement;
|
|
@@ -4647,7 +4647,7 @@ const ka = (e, t, n = !0) => {
|
|
|
4647
4647
|
return r;
|
|
4648
4648
|
} while (r = r.parentElement);
|
|
4649
4649
|
return null;
|
|
4650
|
-
},
|
|
4650
|
+
}, Ia = (e) => Ea(e, (t) => {
|
|
4651
4651
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4652
4652
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4653
4653
|
}), rr = ({
|
|
@@ -4659,8 +4659,8 @@ const ka = (e, t, n = !0) => {
|
|
|
4659
4659
|
x: i,
|
|
4660
4660
|
y: s
|
|
4661
4661
|
};
|
|
4662
|
-
},
|
|
4663
|
-
const t = e.target, n = t &&
|
|
4662
|
+
}, os = (e) => {
|
|
4663
|
+
const t = e.target, n = t && Ia(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4664
4664
|
return {
|
|
4665
4665
|
targetBuilderElement: r || void 0,
|
|
4666
4666
|
metadata: {
|
|
@@ -4675,15 +4675,15 @@ const ka = (e, t, n = !0) => {
|
|
|
4675
4675
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4676
4676
|
}
|
|
4677
4677
|
};
|
|
4678
|
-
},
|
|
4678
|
+
}, Ta = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4679
4679
|
function Wr(e, t) {
|
|
4680
4680
|
const n = new URL(t.origin), r = n.hostname;
|
|
4681
|
-
return (e ||
|
|
4681
|
+
return (e || Ta).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4682
4682
|
}
|
|
4683
|
-
const
|
|
4684
|
-
function
|
|
4683
|
+
const Aa = "0.14.27", or = {};
|
|
4684
|
+
function Oa(e, t) {
|
|
4685
4685
|
let n = or[e];
|
|
4686
|
-
if (n || (n = or[e] = []), n.push(t),
|
|
4686
|
+
if (n || (n = or[e] = []), n.push(t), X()) {
|
|
4687
4687
|
const r = {
|
|
4688
4688
|
type: "builder.register",
|
|
4689
4689
|
data: {
|
|
@@ -4698,8 +4698,8 @@ function Ta(e, t) {
|
|
|
4698
4698
|
}
|
|
4699
4699
|
}
|
|
4700
4700
|
}
|
|
4701
|
-
const
|
|
4702
|
-
|
|
4701
|
+
const is = () => {
|
|
4702
|
+
Oa("insertMenu", {
|
|
4703
4703
|
name: "_default",
|
|
4704
4704
|
default: !0,
|
|
4705
4705
|
items: [{
|
|
@@ -4722,13 +4722,13 @@ const rs = () => {
|
|
|
4722
4722
|
});
|
|
4723
4723
|
};
|
|
4724
4724
|
let ir = !1;
|
|
4725
|
-
const
|
|
4725
|
+
const ja = (e = {}) => {
|
|
4726
4726
|
var t, n;
|
|
4727
|
-
ir || (ir = !0,
|
|
4727
|
+
ir || (ir = !0, X() && ((t = window.parent) == null || t.postMessage({
|
|
4728
4728
|
type: "builder.sdkInfo",
|
|
4729
4729
|
data: {
|
|
4730
|
-
target:
|
|
4731
|
-
version:
|
|
4730
|
+
target: Z,
|
|
4731
|
+
version: Aa,
|
|
4732
4732
|
supportsPatchUpdates: !1,
|
|
4733
4733
|
// Supports builder-model="..." attribute which is needed to
|
|
4734
4734
|
// scope our '+ add block' button styling
|
|
@@ -4754,8 +4754,8 @@ const Aa = (e = {}) => {
|
|
|
4754
4754
|
let m, O = null;
|
|
4755
4755
|
try {
|
|
4756
4756
|
m = x.apply(null, p);
|
|
4757
|
-
} catch (
|
|
4758
|
-
O =
|
|
4757
|
+
} catch (R) {
|
|
4758
|
+
O = R;
|
|
4759
4759
|
}
|
|
4760
4760
|
O ? (i = window.parent) == null || i.postMessage({
|
|
4761
4761
|
type: "builder.evaluateError",
|
|
@@ -4763,13 +4763,13 @@ const Aa = (e = {}) => {
|
|
|
4763
4763
|
id: b,
|
|
4764
4764
|
error: O.message
|
|
4765
4765
|
}
|
|
4766
|
-
}, "*") : m && typeof m.then == "function" ? m.then((
|
|
4767
|
-
var
|
|
4768
|
-
(
|
|
4766
|
+
}, "*") : m && typeof m.then == "function" ? m.then((R) => {
|
|
4767
|
+
var B;
|
|
4768
|
+
(B = window.parent) == null || B.postMessage({
|
|
4769
4769
|
type: "builder.evaluateResult",
|
|
4770
4770
|
data: {
|
|
4771
4771
|
id: b,
|
|
4772
|
-
result:
|
|
4772
|
+
result: R
|
|
4773
4773
|
}
|
|
4774
4774
|
}, "*");
|
|
4775
4775
|
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
@@ -4783,7 +4783,7 @@ const Aa = (e = {}) => {
|
|
|
4783
4783
|
}
|
|
4784
4784
|
}
|
|
4785
4785
|
})));
|
|
4786
|
-
},
|
|
4786
|
+
}, Ra = ({
|
|
4787
4787
|
model: e,
|
|
4788
4788
|
trustedHosts: t,
|
|
4789
4789
|
callbacks: n
|
|
@@ -4809,12 +4809,12 @@ const Aa = (e = {}) => {
|
|
|
4809
4809
|
break;
|
|
4810
4810
|
}
|
|
4811
4811
|
}
|
|
4812
|
-
},
|
|
4813
|
-
if (!
|
|
4814
|
-
return
|
|
4812
|
+
}, as = (e, t, n) => {
|
|
4813
|
+
if (!X)
|
|
4814
|
+
return te.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
4815
4815
|
};
|
|
4816
|
-
|
|
4817
|
-
const r =
|
|
4816
|
+
ja();
|
|
4817
|
+
const r = Ra({
|
|
4818
4818
|
callbacks: {
|
|
4819
4819
|
contentUpdate: t,
|
|
4820
4820
|
animation: () => {
|
|
@@ -4839,37 +4839,37 @@ function ar(e, ...t) {
|
|
|
4839
4839
|
}
|
|
4840
4840
|
return n;
|
|
4841
4841
|
}
|
|
4842
|
-
function
|
|
4842
|
+
function Pa(e) {
|
|
4843
4843
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
4844
4844
|
}
|
|
4845
|
-
function
|
|
4846
|
-
const n =
|
|
4845
|
+
function Na(e, t) {
|
|
4846
|
+
const n = Ba(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
4847
4847
|
for (const u of s)
|
|
4848
4848
|
for (const p of n)
|
|
4849
4849
|
p in u || (u[p] = r[p]);
|
|
4850
4850
|
}
|
|
4851
|
-
function
|
|
4851
|
+
function Ba(e) {
|
|
4852
4852
|
const t = [];
|
|
4853
4853
|
for (const n of e.steps)
|
|
4854
4854
|
for (const r in n.styles)
|
|
4855
4855
|
t.indexOf(r) === -1 && t.push(r);
|
|
4856
4856
|
return t;
|
|
4857
4857
|
}
|
|
4858
|
-
function
|
|
4858
|
+
function ss(e) {
|
|
4859
4859
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
4860
4860
|
if (!t.length) {
|
|
4861
|
-
|
|
4861
|
+
Pa(e.elementId || e.id || "");
|
|
4862
4862
|
return;
|
|
4863
4863
|
}
|
|
4864
4864
|
Array.from(t).forEach((n) => {
|
|
4865
|
-
|
|
4865
|
+
Na(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ar(n.style, e.steps[0].styles), setTimeout(() => {
|
|
4866
4866
|
n.style.transition = `all ${e.duration}s ${cn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ar(n.style, e.steps[1].styles), setTimeout(() => {
|
|
4867
4867
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
4868
4868
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
4869
4869
|
});
|
|
4870
4870
|
});
|
|
4871
4871
|
}
|
|
4872
|
-
const
|
|
4872
|
+
const Fa = (e) => {
|
|
4873
4873
|
var i;
|
|
4874
4874
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
4875
4875
|
let o = "";
|
|
@@ -4895,15 +4895,15 @@ font-weight: ${s};
|
|
|
4895
4895
|
`.trim());
|
|
4896
4896
|
}
|
|
4897
4897
|
return o;
|
|
4898
|
-
},
|
|
4898
|
+
}, Ua = ({
|
|
4899
4899
|
customFonts: e
|
|
4900
4900
|
}) => {
|
|
4901
4901
|
var t;
|
|
4902
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4903
|
-
},
|
|
4902
|
+
return ((t = e == null ? void 0 : e.map((n) => Fa(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4903
|
+
}, Ma = ({
|
|
4904
4904
|
cssCode: e,
|
|
4905
4905
|
contentId: t
|
|
4906
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4906
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Va = `
|
|
4907
4907
|
.builder-button {
|
|
4908
4908
|
all: unset;
|
|
4909
4909
|
}
|
|
@@ -4920,21 +4920,21 @@ font-weight: ${s};
|
|
|
4920
4920
|
text-align: inherit;
|
|
4921
4921
|
font-family: inherit;
|
|
4922
4922
|
}
|
|
4923
|
-
`,
|
|
4924
|
-
function
|
|
4923
|
+
`, Da = (e) => e ? "" : Va, ls = (e) => `variant-${e}`;
|
|
4924
|
+
function La(e) {
|
|
4925
4925
|
const t = `
|
|
4926
|
-
${
|
|
4926
|
+
${Ma({
|
|
4927
4927
|
cssCode: e.cssCode,
|
|
4928
4928
|
contentId: e.contentId
|
|
4929
4929
|
})}
|
|
4930
|
-
${
|
|
4930
|
+
${Ua({
|
|
4931
4931
|
customFonts: e.customFonts
|
|
4932
4932
|
})}
|
|
4933
|
-
${
|
|
4933
|
+
${Da(e.isNestedRender)}
|
|
4934
4934
|
`.trim();
|
|
4935
|
-
return /* @__PURE__ */
|
|
4935
|
+
return /* @__PURE__ */ T(gt, { id: "builderio-content", styles: t });
|
|
4936
4936
|
}
|
|
4937
|
-
const
|
|
4937
|
+
const Wa = ({
|
|
4938
4938
|
content: e,
|
|
4939
4939
|
data: t,
|
|
4940
4940
|
locale: n
|
|
@@ -4951,7 +4951,7 @@ const Da = ({
|
|
|
4951
4951
|
locale: n
|
|
4952
4952
|
} : {}
|
|
4953
4953
|
};
|
|
4954
|
-
},
|
|
4954
|
+
}, _a = ({
|
|
4955
4955
|
content: e,
|
|
4956
4956
|
data: t
|
|
4957
4957
|
}) => e ? {
|
|
@@ -4964,7 +4964,7 @@ const Da = ({
|
|
|
4964
4964
|
} : void 0;
|
|
4965
4965
|
function sr(e) {
|
|
4966
4966
|
var o, i, s, u, p, b, x, m, O;
|
|
4967
|
-
const t =
|
|
4967
|
+
const t = Qi({
|
|
4968
4968
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4969
4969
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4970
4970
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4973,36 +4973,37 @@ function sr(e) {
|
|
|
4973
4973
|
...Qn(),
|
|
4974
4974
|
...e.customComponents || []
|
|
4975
4975
|
].reduce(
|
|
4976
|
-
(
|
|
4977
|
-
...
|
|
4978
|
-
[
|
|
4979
|
-
component:
|
|
4980
|
-
...Kt(
|
|
4976
|
+
(R, { component: B, ...N }) => ({
|
|
4977
|
+
...R,
|
|
4978
|
+
[N.name]: {
|
|
4979
|
+
component: B,
|
|
4980
|
+
...Kt(N)
|
|
4981
4981
|
}
|
|
4982
4982
|
}),
|
|
4983
4983
|
{}
|
|
4984
4984
|
), r = {
|
|
4985
|
-
content:
|
|
4985
|
+
content: _a({
|
|
4986
4986
|
content: e.content,
|
|
4987
4987
|
data: e.data
|
|
4988
4988
|
}),
|
|
4989
4989
|
localState: void 0,
|
|
4990
|
-
rootState:
|
|
4990
|
+
rootState: Wa({
|
|
4991
4991
|
content: e.content,
|
|
4992
4992
|
data: e.data,
|
|
4993
4993
|
locale: e.locale
|
|
4994
4994
|
}),
|
|
4995
4995
|
rootSetState: void 0,
|
|
4996
4996
|
context: e.context || {},
|
|
4997
|
+
canTrack: e.canTrack,
|
|
4997
4998
|
apiKey: e.apiKey,
|
|
4998
4999
|
apiVersion: e.apiVersion,
|
|
4999
5000
|
componentInfos: [
|
|
5000
5001
|
...Qn(),
|
|
5001
5002
|
...e.customComponents || []
|
|
5002
5003
|
].reduce(
|
|
5003
|
-
(
|
|
5004
|
-
...
|
|
5005
|
-
[
|
|
5004
|
+
(R, { component: B, ...N }) => ({
|
|
5005
|
+
...R,
|
|
5006
|
+
[N.name]: Kt(N)
|
|
5006
5007
|
}),
|
|
5007
5008
|
{}
|
|
5008
5009
|
),
|
|
@@ -5025,18 +5026,17 @@ function sr(e) {
|
|
|
5025
5026
|
builderContextSignal: r,
|
|
5026
5027
|
contentWrapper: e.contentWrapper,
|
|
5027
5028
|
contentWrapperProps: e.contentWrapperProps,
|
|
5028
|
-
linkComponent: e.linkComponent,
|
|
5029
5029
|
trustedHosts: e.trustedHosts,
|
|
5030
5030
|
children: [
|
|
5031
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
5031
|
+
e.isSsrAbTest ? /* @__PURE__ */ T(
|
|
5032
5032
|
Gt,
|
|
5033
5033
|
{
|
|
5034
5034
|
id: "builderio-variant-visibility",
|
|
5035
5035
|
scriptStr: t
|
|
5036
5036
|
}
|
|
5037
5037
|
) : null,
|
|
5038
|
-
/* @__PURE__ */
|
|
5039
|
-
|
|
5038
|
+
/* @__PURE__ */ T(
|
|
5039
|
+
La,
|
|
5040
5040
|
{
|
|
5041
5041
|
isNestedRender: e.isNestedRender,
|
|
5042
5042
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
@@ -5044,7 +5044,7 @@ function sr(e) {
|
|
|
5044
5044
|
customFonts: (x = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : x.customFonts
|
|
5045
5045
|
}
|
|
5046
5046
|
),
|
|
5047
|
-
/* @__PURE__ */
|
|
5047
|
+
/* @__PURE__ */ T(
|
|
5048
5048
|
un,
|
|
5049
5049
|
{
|
|
5050
5050
|
blocks: (O = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : O.blocks,
|
|
@@ -5057,56 +5057,56 @@ function sr(e) {
|
|
|
5057
5057
|
}
|
|
5058
5058
|
);
|
|
5059
5059
|
}
|
|
5060
|
-
function
|
|
5060
|
+
function $a(e) {
|
|
5061
5061
|
var i;
|
|
5062
|
-
const t =
|
|
5062
|
+
const t = zi({
|
|
5063
5063
|
canTrack: Ht(e.canTrack),
|
|
5064
5064
|
content: e.content
|
|
5065
5065
|
}), n = function() {
|
|
5066
5066
|
var u;
|
|
5067
|
-
return
|
|
5068
|
-
|
|
5067
|
+
return Zi(
|
|
5068
|
+
dt(e.content).map((p) => ({
|
|
5069
5069
|
id: p.testVariationId,
|
|
5070
5070
|
testRatio: p.testRatio
|
|
5071
5071
|
})),
|
|
5072
5072
|
((u = e.content) == null ? void 0 : u.id) || ""
|
|
5073
5073
|
);
|
|
5074
5074
|
}, r = function() {
|
|
5075
|
-
return
|
|
5075
|
+
return dt(e.content).map((u) => `.variant-${u.testVariationId} { display: none; } `).join("");
|
|
5076
5076
|
}, o = function() {
|
|
5077
5077
|
var u;
|
|
5078
5078
|
return t ? {
|
|
5079
5079
|
...e.content,
|
|
5080
5080
|
testVariationId: (u = e.content) == null ? void 0 : u.id
|
|
5081
|
-
} :
|
|
5081
|
+
} : Ti({
|
|
5082
5082
|
item: e.content,
|
|
5083
5083
|
canTrack: Ht(e.canTrack)
|
|
5084
5084
|
});
|
|
5085
5085
|
};
|
|
5086
5086
|
return /* @__PURE__ */ xe(ee, { children: [
|
|
5087
|
-
!e.isNestedRender &&
|
|
5087
|
+
!e.isNestedRender && Z !== "reactNative" ? /* @__PURE__ */ T(
|
|
5088
5088
|
Gt,
|
|
5089
5089
|
{
|
|
5090
5090
|
id: "builderio-init-variants-fns",
|
|
5091
|
-
scriptStr:
|
|
5091
|
+
scriptStr: qi()
|
|
5092
5092
|
}
|
|
5093
5093
|
) : null,
|
|
5094
5094
|
t ? /* @__PURE__ */ xe(ee, { children: [
|
|
5095
|
-
/* @__PURE__ */
|
|
5095
|
+
/* @__PURE__ */ T(
|
|
5096
5096
|
gt,
|
|
5097
5097
|
{
|
|
5098
5098
|
id: "builderio-variants",
|
|
5099
5099
|
styles: r()
|
|
5100
5100
|
}
|
|
5101
5101
|
),
|
|
5102
|
-
/* @__PURE__ */
|
|
5102
|
+
/* @__PURE__ */ T(
|
|
5103
5103
|
Gt,
|
|
5104
5104
|
{
|
|
5105
5105
|
id: "builderio-variants-visibility",
|
|
5106
5106
|
scriptStr: n()
|
|
5107
5107
|
}
|
|
5108
5108
|
),
|
|
5109
|
-
(i =
|
|
5109
|
+
(i = dt(e.content)) == null ? void 0 : i.map((s) => /* @__PURE__ */ T(
|
|
5110
5110
|
sr,
|
|
5111
5111
|
{
|
|
5112
5112
|
isNestedRender: e.isNestedRender,
|
|
@@ -5132,7 +5132,7 @@ function Wa(e) {
|
|
|
5132
5132
|
s.testVariationId
|
|
5133
5133
|
))
|
|
5134
5134
|
] }) : null,
|
|
5135
|
-
/* @__PURE__ */
|
|
5135
|
+
/* @__PURE__ */ T(
|
|
5136
5136
|
sr,
|
|
5137
5137
|
{
|
|
5138
5138
|
isNestedRender: e.isNestedRender,
|
|
@@ -5158,13 +5158,13 @@ function Wa(e) {
|
|
|
5158
5158
|
)
|
|
5159
5159
|
] });
|
|
5160
5160
|
}
|
|
5161
|
-
const
|
|
5161
|
+
const Ha = async ({
|
|
5162
5162
|
builderContextValue: e,
|
|
5163
5163
|
symbol: t
|
|
5164
5164
|
}) => {
|
|
5165
5165
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5166
5166
|
(e != null && e.apiKey))
|
|
5167
|
-
return
|
|
5167
|
+
return Ur({
|
|
5168
5168
|
model: t.model,
|
|
5169
5169
|
apiKey: e.apiKey,
|
|
5170
5170
|
apiVersion: e.apiVersion,
|
|
@@ -5174,10 +5174,10 @@ const _a = async ({
|
|
|
5174
5174
|
}
|
|
5175
5175
|
}
|
|
5176
5176
|
}).catch((n) => {
|
|
5177
|
-
|
|
5177
|
+
te.error("Could not fetch symbol content: ", n);
|
|
5178
5178
|
});
|
|
5179
5179
|
};
|
|
5180
|
-
async function
|
|
5180
|
+
async function Ka(e) {
|
|
5181
5181
|
var i, s, u, p, b;
|
|
5182
5182
|
const t = function() {
|
|
5183
5183
|
return "div";
|
|
@@ -5191,12 +5191,12 @@ async function $a(e) {
|
|
|
5191
5191
|
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
5192
5192
|
(O = e.symbol) != null && O.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5193
5193
|
].filter(Boolean).join(" ");
|
|
5194
|
-
}, o = ((i = e.symbol) == null ? void 0 : i.content) || await
|
|
5194
|
+
}, o = ((i = e.symbol) == null ? void 0 : i.content) || await Ha({
|
|
5195
5195
|
symbol: e.symbol,
|
|
5196
5196
|
builderContextValue: e.builderContext
|
|
5197
5197
|
});
|
|
5198
|
-
return /* @__PURE__ */
|
|
5199
|
-
|
|
5198
|
+
return /* @__PURE__ */ T("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ T(
|
|
5199
|
+
$a,
|
|
5200
5200
|
{
|
|
5201
5201
|
isNestedRender: !0,
|
|
5202
5202
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5211,6 +5211,7 @@ async function $a(e) {
|
|
|
5211
5211
|
...e.builderContext.localState,
|
|
5212
5212
|
...(p = o == null ? void 0 : o.data) == null ? void 0 : p.state
|
|
5213
5213
|
},
|
|
5214
|
+
canTrack: e.builderContext.canTrack,
|
|
5214
5215
|
model: (b = e.symbol) == null ? void 0 : b.model,
|
|
5215
5216
|
content: o,
|
|
5216
5217
|
linkComponent: e.builderLinkComponent,
|
|
@@ -5220,8 +5221,8 @@ async function $a(e) {
|
|
|
5220
5221
|
) });
|
|
5221
5222
|
}
|
|
5222
5223
|
const lr = {};
|
|
5223
|
-
function
|
|
5224
|
-
if (
|
|
5224
|
+
function cs(e) {
|
|
5225
|
+
if (X()) {
|
|
5225
5226
|
Object.assign(lr, e);
|
|
5226
5227
|
const t = {
|
|
5227
5228
|
type: "builder.settingsChange",
|
|
@@ -5230,7 +5231,7 @@ function ss(e) {
|
|
|
5230
5231
|
parent.postMessage(t, "*");
|
|
5231
5232
|
}
|
|
5232
5233
|
}
|
|
5233
|
-
const
|
|
5234
|
+
const us = async (e) => {
|
|
5234
5235
|
var r, o, i;
|
|
5235
5236
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
5236
5237
|
...e,
|
|
@@ -5242,50 +5243,50 @@ const ls = async (e) => {
|
|
|
5242
5243
|
urlPath: t
|
|
5243
5244
|
} : {}
|
|
5244
5245
|
},
|
|
5245
|
-
options:
|
|
5246
|
+
options: Fr(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
5246
5247
|
};
|
|
5247
5248
|
return {
|
|
5248
5249
|
apiKey: n.apiKey,
|
|
5249
5250
|
model: n.model,
|
|
5250
|
-
content: await
|
|
5251
|
+
content: await Ur(n)
|
|
5251
5252
|
};
|
|
5252
5253
|
};
|
|
5253
5254
|
export {
|
|
5254
|
-
|
|
5255
|
+
Fr as A,
|
|
5255
5256
|
un as B,
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5257
|
+
mi as C,
|
|
5258
|
+
rs as D,
|
|
5259
|
+
as as E,
|
|
5260
|
+
us as F,
|
|
5261
|
+
da as G,
|
|
5262
|
+
fa as H,
|
|
5263
|
+
Ka as S,
|
|
5264
|
+
Vi as T,
|
|
5265
|
+
Ca as _,
|
|
5266
|
+
di as a,
|
|
5267
|
+
Za as b,
|
|
5268
|
+
dr as c,
|
|
5269
|
+
Qa as d,
|
|
5270
|
+
es as e,
|
|
5271
|
+
X as f,
|
|
5271
5272
|
Yt as g,
|
|
5272
5273
|
Ht as h,
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5274
|
+
qa as i,
|
|
5275
|
+
ns as j,
|
|
5276
|
+
ls as k,
|
|
5277
|
+
te as l,
|
|
5278
|
+
Ra as m,
|
|
5278
5279
|
ln as n,
|
|
5279
|
-
|
|
5280
|
-
|
|
5280
|
+
os as o,
|
|
5281
|
+
ia as p,
|
|
5281
5282
|
mt as q,
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5283
|
+
is as r,
|
|
5284
|
+
ja as s,
|
|
5285
|
+
ss as t,
|
|
5286
|
+
ts as u,
|
|
5287
|
+
Ur as v,
|
|
5288
|
+
ta as w,
|
|
5289
|
+
$a as x,
|
|
5290
|
+
Oa as y,
|
|
5291
|
+
cs as z
|
|
5291
5292
|
};
|