@builder.io/sdk-react-nextjs 0.14.15 → 0.14.16
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/{node/USE_CLIENT_BUNDLE-85565442.cjs → browser/USE_CLIENT_BUNDLE-026b8026.cjs} +3 -3
- package/lib/browser/{USE_CLIENT_BUNDLE-619fca6f.js → USE_CLIENT_BUNDLE-30c6c6c1.js} +15 -15
- package/lib/{edge/USE_SERVER_BUNDLE-54c1fcea.js → browser/USE_SERVER_BUNDLE-685e6983.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-b436e323.cjs → browser/USE_SERVER_BUNDLE-ce31724e.cjs} +1 -1
- package/lib/browser/{bundle-62dcf48b.js → bundle-5c0a9d7a.js} +555 -538
- package/lib/browser/bundle-9744b895.cjs +169 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-c0730eab.js → edge/USE_CLIENT_BUNDLE-5b0b3e9b.js} +15 -15
- package/lib/{browser/USE_CLIENT_BUNDLE-d44f1d9a.cjs → edge/USE_CLIENT_BUNDLE-9b110136.cjs} +3 -3
- package/lib/{node/USE_SERVER_BUNDLE-558179bb.js → edge/USE_SERVER_BUNDLE-0f9fd6f2.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-81427dab.cjs → edge/USE_SERVER_BUNDLE-b3d619da.cjs} +1 -1
- package/lib/edge/{bundle-67ad9183.js → bundle-b24e7c9b.js} +1049 -1032
- package/lib/edge/{bundle-fbc6c22e.cjs → bundle-f1760904.cjs} +29 -29
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-84dff6eb.js → node/USE_CLIENT_BUNDLE-f8067984.js} +15 -15
- package/lib/{edge/USE_CLIENT_BUNDLE-97b90370.cjs → node/USE_CLIENT_BUNDLE-f9ebade4.cjs} +3 -3
- package/lib/{browser/USE_SERVER_BUNDLE-b4db53a9.js → node/USE_SERVER_BUNDLE-4b52a0c0.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-72579b21.cjs → node/USE_SERVER_BUNDLE-e1e73ba6.cjs} +1 -1
- package/lib/node/{bundle-3fe2b5da.cjs → bundle-0fc157c8.cjs} +9 -9
- package/lib/node/{bundle-5f638f04.js → bundle-8d3cab60.js} +169 -152
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/components/block/animator.d.ts +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/is-previewing.d.ts +1 -1
- package/types/esm/components/block/animator.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/is-previewing.d.ts +1 -1
- package/lib/browser/bundle-df3df109.cjs +0 -169
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as A, Fragment as
|
|
1
|
+
import { jsx as A, Fragment as Q, jsxs as xe } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { I as
|
|
4
|
-
import { LRUCache as
|
|
3
|
+
import { I as ro, B as oo, a as io, D as ao, C as so, E as lo, b as co, V as uo, c as fo, F as po, d as ho, S as mo, e as go } from "./USE_CLIENT_BUNDLE-5b0b3e9b.js";
|
|
4
|
+
import { LRUCache as yo } from "lru-cache";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const
|
|
6
|
+
const vo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ga = (e) => typeof e == "string" && vo.has(e.toLowerCase()), he = "rsc", Yt = () => {
|
|
7
7
|
switch (he) {
|
|
8
8
|
case "react":
|
|
9
9
|
case "reactNative":
|
|
@@ -16,7 +16,7 @@ const yo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
|
|
|
16
16
|
return "class";
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
function
|
|
19
|
+
function bo(e) {
|
|
20
20
|
var t;
|
|
21
21
|
return {
|
|
22
22
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -27,7 +27,7 @@ function vo(e) {
|
|
|
27
27
|
builderBlock: e
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
const st = "[Builder.io]: ",
|
|
30
|
+
const st = "[Builder.io]: ", Y = {
|
|
31
31
|
log: (...e) => console.log(st, ...e),
|
|
32
32
|
error: (...e) => console.error(st, ...e),
|
|
33
33
|
warn: (...e) => console.warn(st, ...e),
|
|
@@ -36,26 +36,27 @@ const st = "[Builder.io]: ", X = {
|
|
|
36
36
|
function G() {
|
|
37
37
|
return typeof window < "u" && typeof document < "u";
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const So = (e) => {
|
|
40
40
|
const t = {};
|
|
41
41
|
return e.forEach((n, r) => {
|
|
42
42
|
t[r] = n;
|
|
43
43
|
}), t;
|
|
44
|
-
},
|
|
45
|
-
function
|
|
44
|
+
}, lr = (e) => e instanceof URLSearchParams ? So(e) : e, cr = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
45
|
+
function wo() {
|
|
46
46
|
return G() && window.self !== window.top;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
48
|
+
function ur(e) {
|
|
49
|
+
return wo() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
50
|
+
cr(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
50
51
|
}
|
|
51
|
-
const
|
|
52
|
+
const xo = () => {
|
|
52
53
|
if (G()) {
|
|
53
54
|
const e = new URL(location.href);
|
|
54
55
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
55
56
|
} else
|
|
56
57
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
57
|
-
},
|
|
58
|
-
const e =
|
|
58
|
+
}, ko = () => typeof navigator == "object" && navigator.userAgent || "", fr = () => {
|
|
59
|
+
const e = ko(), t = {
|
|
59
60
|
Android() {
|
|
60
61
|
return e.match(/Android/i);
|
|
61
62
|
},
|
|
@@ -74,7 +75,7 @@ const wo = () => {
|
|
|
74
75
|
any() {
|
|
75
76
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || he === "reactNative";
|
|
76
77
|
}
|
|
77
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
78
|
+
}, n = e.match(/Tablet|iPad/i), r = xo();
|
|
78
79
|
return {
|
|
79
80
|
urlPath: r == null ? void 0 : r.pathname,
|
|
80
81
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
@@ -92,14 +93,14 @@ const wo = () => {
|
|
|
92
93
|
builder: e,
|
|
93
94
|
context: t,
|
|
94
95
|
event: n
|
|
95
|
-
}),
|
|
96
|
-
isEditing:
|
|
96
|
+
}), Co = () => ({
|
|
97
|
+
isEditing: ur(),
|
|
97
98
|
isBrowser: G(),
|
|
98
99
|
isServer: !G(),
|
|
99
100
|
getUserAttributes: () => fr()
|
|
100
|
-
}),
|
|
101
|
+
}), Eo = (e, {
|
|
101
102
|
isExpression: t = !0
|
|
102
|
-
}) => /* 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,
|
|
103
|
+
}) => /* 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, Io = ({
|
|
103
104
|
code: e,
|
|
104
105
|
builder: t,
|
|
105
106
|
context: n,
|
|
@@ -151,19 +152,19 @@ const hr = (e, t, n) => {
|
|
|
151
152
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
152
153
|
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;
|
|
153
154
|
};
|
|
154
|
-
var U,
|
|
155
|
+
var U, To = function(e) {
|
|
155
156
|
function t(a) {
|
|
156
|
-
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
157
|
+
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && to.test(String.fromCharCode(a));
|
|
157
158
|
}
|
|
158
159
|
function n(a) {
|
|
159
|
-
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
160
|
+
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Wn.test(String.fromCharCode(a));
|
|
160
161
|
}
|
|
161
162
|
function r(a, l) {
|
|
162
163
|
for (var c = g, d = 1, I = 0; ; ) {
|
|
163
164
|
at.lastIndex = I;
|
|
164
|
-
var
|
|
165
|
-
if (
|
|
166
|
-
++d, I =
|
|
165
|
+
var W = at.exec(c);
|
|
166
|
+
if (W && W.index < a)
|
|
167
|
+
++d, I = W.index + W[0].length;
|
|
167
168
|
else
|
|
168
169
|
break;
|
|
169
170
|
}
|
|
@@ -184,7 +185,7 @@ var U, Io = function(e) {
|
|
|
184
185
|
this.line = Se, this.ab = f - se;
|
|
185
186
|
}
|
|
186
187
|
function s(a, l) {
|
|
187
|
-
Ce = f, O.C && (
|
|
188
|
+
Ce = f, O.C && (Tt = new i()), E = a, p(), te = l, Me = a.m;
|
|
188
189
|
}
|
|
189
190
|
function u() {
|
|
190
191
|
for (var a = f, l = O.va && O.C && new i(), c = g.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
@@ -216,16 +217,16 @@ var U, Io = function(e) {
|
|
|
216
217
|
break;
|
|
217
218
|
else if (a === 160)
|
|
218
219
|
++f;
|
|
219
|
-
else if (5760 <= a &&
|
|
220
|
+
else if (5760 <= a && eo.test(String.fromCharCode(a)))
|
|
220
221
|
++f;
|
|
221
222
|
else
|
|
222
223
|
break;
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
|
-
function
|
|
226
|
+
function S(a) {
|
|
226
227
|
switch (a) {
|
|
227
228
|
case 46:
|
|
228
|
-
a = g.charCodeAt(f + 1), 48 <= a && 57 >= a ?
|
|
229
|
+
a = g.charCodeAt(f + 1), 48 <= a && 57 >= a ? C(!0) : (++f, s(Un));
|
|
229
230
|
return;
|
|
230
231
|
case 40:
|
|
231
232
|
return ++f, s(le);
|
|
@@ -236,9 +237,9 @@ var U, Io = function(e) {
|
|
|
236
237
|
case 44:
|
|
237
238
|
return ++f, s(ye);
|
|
238
239
|
case 91:
|
|
239
|
-
return ++f, s(Ft);
|
|
240
|
-
case 93:
|
|
241
240
|
return ++f, s(Mt);
|
|
241
|
+
case 93:
|
|
242
|
+
return ++f, s(Vt);
|
|
242
243
|
case 123:
|
|
243
244
|
return ++f, s(Le);
|
|
244
245
|
case 125:
|
|
@@ -246,10 +247,10 @@ var U, Io = function(e) {
|
|
|
246
247
|
case 58:
|
|
247
248
|
return ++f, s(_e);
|
|
248
249
|
case 63:
|
|
249
|
-
return ++f, s(
|
|
250
|
+
return ++f, s(Bn);
|
|
250
251
|
case 48:
|
|
251
252
|
if (a = g.charCodeAt(f + 1), a === 120 || a === 88) {
|
|
252
|
-
f += 2, a =
|
|
253
|
+
f += 2, a = P(16), a === null && r(L + 2, "Expected hexadecimal number"), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), s(De, a);
|
|
253
254
|
return;
|
|
254
255
|
}
|
|
255
256
|
case 49:
|
|
@@ -261,12 +262,12 @@ var U, Io = function(e) {
|
|
|
261
262
|
case 55:
|
|
262
263
|
case 56:
|
|
263
264
|
case 57:
|
|
264
|
-
return
|
|
265
|
+
return C(!1);
|
|
265
266
|
case 34:
|
|
266
267
|
case 39:
|
|
267
268
|
f++;
|
|
268
269
|
for (var l = ""; ; ) {
|
|
269
|
-
f >= ke && r(
|
|
270
|
+
f >= ke && r(L, "Unterminated string constant");
|
|
270
271
|
var c = g.charCodeAt(f);
|
|
271
272
|
if (c === a) {
|
|
272
273
|
++f, s(nt, l);
|
|
@@ -278,7 +279,7 @@ var U, Io = function(e) {
|
|
|
278
279
|
for (d && (d = d[0]); d && 255 < parseInt(d, 8); )
|
|
279
280
|
d = d.slice(0, -1);
|
|
280
281
|
if (d === "0" && (d = null), ++f, d)
|
|
281
|
-
|
|
282
|
+
Z && r(f - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(d, 8)), f += d.length - 1;
|
|
282
283
|
else
|
|
283
284
|
switch (c) {
|
|
284
285
|
case 110:
|
|
@@ -289,13 +290,13 @@ var U, Io = function(e) {
|
|
|
289
290
|
l += "\r";
|
|
290
291
|
break;
|
|
291
292
|
case 120:
|
|
292
|
-
l += String.fromCharCode(
|
|
293
|
+
l += String.fromCharCode(v(2));
|
|
293
294
|
break;
|
|
294
295
|
case 117:
|
|
295
|
-
l += String.fromCharCode(
|
|
296
|
+
l += String.fromCharCode(v(4));
|
|
296
297
|
break;
|
|
297
298
|
case 85:
|
|
298
|
-
l += String.fromCharCode(
|
|
299
|
+
l += String.fromCharCode(v(8));
|
|
299
300
|
break;
|
|
300
301
|
case 116:
|
|
301
302
|
l += " ";
|
|
@@ -321,50 +322,50 @@ var U, Io = function(e) {
|
|
|
321
322
|
l += String.fromCharCode(c);
|
|
322
323
|
}
|
|
323
324
|
} else
|
|
324
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(
|
|
325
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(L, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
|
|
325
326
|
}
|
|
326
327
|
return;
|
|
327
328
|
case 47:
|
|
328
|
-
a = g.charCodeAt(f + 1), Me ? (++f,
|
|
329
|
+
a = g.charCodeAt(f + 1), Me ? (++f, R()) : a === 61 ? m(we, 2) : m(Fn, 1);
|
|
329
330
|
return;
|
|
330
331
|
case 37:
|
|
331
332
|
case 42:
|
|
332
|
-
g.charCodeAt(f + 1) === 61 ? m(we, 2) : m(
|
|
333
|
+
g.charCodeAt(f + 1) === 61 ? m(we, 2) : m(qr, 1);
|
|
333
334
|
return;
|
|
334
335
|
case 124:
|
|
335
336
|
case 38:
|
|
336
|
-
l = g.charCodeAt(f + 1), l === a ? m(a === 124 ?
|
|
337
|
+
l = g.charCodeAt(f + 1), l === a ? m(a === 124 ? Dn : Ln, 2) : l === 61 ? m(we, 2) : m(a === 124 ? Hr : Gr, 1);
|
|
337
338
|
return;
|
|
338
339
|
case 94:
|
|
339
|
-
g.charCodeAt(f + 1) === 61 ? m(we, 2) : m(
|
|
340
|
+
g.charCodeAt(f + 1) === 61 ? m(we, 2) : m(Kr, 1);
|
|
340
341
|
return;
|
|
341
342
|
case 43:
|
|
342
343
|
case 45:
|
|
343
|
-
l = g.charCodeAt(f + 1), l === a ? l === 45 && g.charCodeAt(f + 2) === 62 && it.test(g.slice(ge, f)) ? (f += 3, u(), p(),
|
|
344
|
+
l = g.charCodeAt(f + 1), l === a ? l === 45 && g.charCodeAt(f + 2) === 62 && it.test(g.slice(ge, f)) ? (f += 3, u(), p(), k()) : m($r, 2) : l === 61 ? m(we, 2) : m(zr, 1);
|
|
344
345
|
return;
|
|
345
346
|
case 60:
|
|
346
347
|
case 62:
|
|
347
|
-
l = g.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? m(we, c + 1) : m(
|
|
348
|
+
l = g.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? m(we, c + 1) : m(Jr, c)) : l === 33 && a === 60 && g.charCodeAt(f + 2) === 45 && g.charCodeAt(f + 3) === 45 ? (f += 4, u(), p(), k()) : (l === 61 && (c = g.charCodeAt(f + 2) === 61 ? 3 : 2), m(Yr, c));
|
|
348
349
|
return;
|
|
349
350
|
case 61:
|
|
350
351
|
case 33:
|
|
351
|
-
g.charCodeAt(f + 1) === 61 ? m(
|
|
352
|
+
g.charCodeAt(f + 1) === 61 ? m(Xr, g.charCodeAt(f + 2) === 61 ? 3 : 2) : m(a === 61 ? Mn : Vn, 1);
|
|
352
353
|
return;
|
|
353
354
|
case 126:
|
|
354
|
-
return m(
|
|
355
|
+
return m(Vn, 1);
|
|
355
356
|
}
|
|
356
357
|
return !1;
|
|
357
358
|
}
|
|
358
|
-
function
|
|
359
|
-
if (a ? f =
|
|
360
|
-
return
|
|
359
|
+
function k(a) {
|
|
360
|
+
if (a ? f = L + 1 : L = f, O.C && (It = new i()), a)
|
|
361
|
+
return R();
|
|
361
362
|
if (f >= ke)
|
|
362
|
-
return s(
|
|
363
|
+
return s(jt);
|
|
363
364
|
if (a = g.charCodeAt(f), n(a) || a === 92)
|
|
364
|
-
return
|
|
365
|
-
if (
|
|
366
|
-
if (a = String.fromCharCode(a), a === "\\" ||
|
|
367
|
-
return
|
|
365
|
+
return j();
|
|
366
|
+
if (S(a) === !1) {
|
|
367
|
+
if (a = String.fromCharCode(a), a === "\\" || Wn.test(a))
|
|
368
|
+
return j();
|
|
368
369
|
r(f, "Unexpected character '" + a + "'");
|
|
369
370
|
}
|
|
370
371
|
}
|
|
@@ -372,7 +373,7 @@ var U, Io = function(e) {
|
|
|
372
373
|
var c = g.slice(f, f + l);
|
|
373
374
|
f += l, s(a, c);
|
|
374
375
|
}
|
|
375
|
-
function
|
|
376
|
+
function R() {
|
|
376
377
|
for (var a, l, c = f; ; ) {
|
|
377
378
|
f >= ke && r(c, "Unterminated regexp");
|
|
378
379
|
var d = g.charAt(f);
|
|
@@ -392,28 +393,28 @@ var U, Io = function(e) {
|
|
|
392
393
|
a = g.slice(c, f), ++f, (l = B()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
393
394
|
try {
|
|
394
395
|
var I = new RegExp(a, l);
|
|
395
|
-
} catch (
|
|
396
|
-
throw
|
|
396
|
+
} catch (W) {
|
|
397
|
+
throw W instanceof SyntaxError && r(c, W.message), W;
|
|
397
398
|
}
|
|
398
|
-
s(
|
|
399
|
+
s(mn, I);
|
|
399
400
|
}
|
|
400
|
-
function
|
|
401
|
-
for (var c = f, d = 0, I = l === void 0 ? 1 / 0 : l,
|
|
402
|
-
var
|
|
403
|
-
if (
|
|
401
|
+
function P(a, l) {
|
|
402
|
+
for (var c = f, d = 0, I = l === void 0 ? 1 / 0 : l, W = 0; W < I; ++W) {
|
|
403
|
+
var J = g.charCodeAt(f);
|
|
404
|
+
if (J = 97 <= J ? J - 97 + 10 : 65 <= J ? J - 65 + 10 : 48 <= J && 57 >= J ? J - 48 : 1 / 0, J >= a)
|
|
404
405
|
break;
|
|
405
|
-
++f, d = d * a +
|
|
406
|
+
++f, d = d * a + J;
|
|
406
407
|
}
|
|
407
408
|
return f === c || l !== void 0 && f - c !== l ? null : d;
|
|
408
409
|
}
|
|
409
|
-
function
|
|
410
|
+
function C(a) {
|
|
410
411
|
var l = f, c = !1, d = g.charCodeAt(f) === 48;
|
|
411
|
-
a ||
|
|
412
|
+
a || P(10) !== null || r(l, "Invalid number"), g.charCodeAt(f) === 46 && (++f, P(10), c = !0), a = g.charCodeAt(f), (a === 69 || a === 101) && (a = g.charCodeAt(++f), a !== 43 && a !== 45 || ++f, P(10) === null && r(l, "Invalid number"), c = !0), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), a = g.slice(l, f);
|
|
412
413
|
var I;
|
|
413
|
-
c ? I = parseFloat(a) : d && a.length !== 1 ? /[89]/.test(a) ||
|
|
414
|
+
c ? I = parseFloat(a) : d && a.length !== 1 ? /[89]/.test(a) || Z ? r(l, "Invalid number") : I = parseInt(a, 8) : I = parseInt(a, 10), s(De, I);
|
|
414
415
|
}
|
|
415
|
-
function
|
|
416
|
-
return a =
|
|
416
|
+
function v(a) {
|
|
417
|
+
return a = P(16, a), a === null && r(L, "Bad character escape sequence"), a;
|
|
417
418
|
}
|
|
418
419
|
function B() {
|
|
419
420
|
Te = !1;
|
|
@@ -422,7 +423,7 @@ var U, Io = function(e) {
|
|
|
422
423
|
if (t(d))
|
|
423
424
|
Te && (a += g.charAt(f)), ++f;
|
|
424
425
|
else if (d === 92) {
|
|
425
|
-
Te || (a = g.slice(c, f)), Te = !0, g.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, d =
|
|
426
|
+
Te || (a = g.slice(c, f)), Te = !0, g.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, d = v(4);
|
|
426
427
|
var I = String.fromCharCode(d);
|
|
427
428
|
I || r(f - 1, "Invalid Unicode escape"), (l ? n(d) : t(d)) || r(f - 4, "Invalid Unicode escape"), a += I;
|
|
428
429
|
} else
|
|
@@ -431,281 +432,281 @@ var U, Io = function(e) {
|
|
|
431
432
|
}
|
|
432
433
|
return Te ? a : g.slice(c, f);
|
|
433
434
|
}
|
|
434
|
-
function
|
|
435
|
+
function j() {
|
|
435
436
|
var a = B(), l = Ee;
|
|
436
|
-
!Te &&
|
|
437
|
+
!Te && Qr(a) && (l = Wr[a]), s(l, a);
|
|
437
438
|
}
|
|
438
|
-
function
|
|
439
|
-
|
|
439
|
+
function w() {
|
|
440
|
+
At = L, ge = Ce, Ot = Tt, k();
|
|
440
441
|
}
|
|
441
|
-
function
|
|
442
|
-
if (
|
|
442
|
+
function X(a) {
|
|
443
|
+
if (Z = a, f = L, O.C)
|
|
443
444
|
for (; f < se; )
|
|
444
445
|
se = g.lastIndexOf(`
|
|
445
446
|
`, se - 2) + 1, --Se;
|
|
446
|
-
p(),
|
|
447
|
+
p(), k();
|
|
447
448
|
}
|
|
448
|
-
function
|
|
449
|
-
this.type = null, this.start =
|
|
449
|
+
function M() {
|
|
450
|
+
this.type = null, this.start = L, this.end = null;
|
|
450
451
|
}
|
|
451
452
|
function ee() {
|
|
452
|
-
this.start =
|
|
453
|
+
this.start = It, this.end = null, Et && (this.source = Et);
|
|
453
454
|
}
|
|
454
|
-
function
|
|
455
|
-
var a = new
|
|
456
|
-
return O.C && (a.X = new ee()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [
|
|
455
|
+
function _() {
|
|
456
|
+
var a = new M();
|
|
457
|
+
return O.C && (a.X = new ee()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [L, 0]), a;
|
|
457
458
|
}
|
|
458
459
|
function me(a) {
|
|
459
|
-
var l = new
|
|
460
|
+
var l = new M();
|
|
460
461
|
return l.start = a.start, O.C && (l.X = new ee(), l.X.start = a.X.start), O.Xa && (l.j = [a.j[0], 0]), l;
|
|
461
462
|
}
|
|
462
463
|
function T(a, l) {
|
|
463
|
-
return a.type = l, a.end = ge, O.C && (a.X.end =
|
|
464
|
+
return a.type = l, a.end = ge, O.C && (a.X.end = Ot), O.Xa && (a.j[1] = ge), a;
|
|
464
465
|
}
|
|
465
|
-
function
|
|
466
|
+
function vt(a) {
|
|
466
467
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
467
468
|
}
|
|
468
469
|
function F(a) {
|
|
469
|
-
return E === a ? (
|
|
470
|
+
return E === a ? (w(), !0) : !1;
|
|
470
471
|
}
|
|
471
472
|
function Qe() {
|
|
472
|
-
return !O.fc && (E ===
|
|
473
|
+
return !O.fc && (E === jt || E === Ie || it.test(g.slice(ge, L)));
|
|
473
474
|
}
|
|
474
475
|
function be() {
|
|
475
476
|
F(ce) || Qe() || ie();
|
|
476
477
|
}
|
|
477
|
-
function
|
|
478
|
-
E === a ?
|
|
478
|
+
function V(a) {
|
|
479
|
+
E === a ? w() : ie();
|
|
479
480
|
}
|
|
480
481
|
function ie() {
|
|
481
|
-
r(
|
|
482
|
+
r(L, "Unexpected token");
|
|
482
483
|
}
|
|
483
484
|
function et(a) {
|
|
484
|
-
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"),
|
|
485
|
+
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), Z && a.type === "Identifier" && ot(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
485
486
|
}
|
|
486
487
|
function ne() {
|
|
487
|
-
(E ===
|
|
488
|
-
var a = E, l =
|
|
488
|
+
(E === Fn || E === we && te === "/=") && k(!0);
|
|
489
|
+
var a = E, l = _();
|
|
489
490
|
switch (a) {
|
|
490
|
-
case
|
|
491
|
-
case
|
|
492
|
-
|
|
493
|
-
var c = a ===
|
|
491
|
+
case Rt:
|
|
492
|
+
case yn:
|
|
493
|
+
w();
|
|
494
|
+
var c = a === Rt;
|
|
494
495
|
F(ce) || Qe() ? l.label = null : E !== Ee ? ie() : (l.label = ae(), be());
|
|
495
|
-
for (var d = 0; d <
|
|
496
|
-
var I =
|
|
496
|
+
for (var d = 0; d < D.length; ++d) {
|
|
497
|
+
var I = D[d];
|
|
497
498
|
if ((l.label === null || I.name === l.label.name) && (I.kind !== null && (c || I.kind === "loop") || l.label && c))
|
|
498
499
|
break;
|
|
499
500
|
}
|
|
500
|
-
return d ===
|
|
501
|
-
case
|
|
502
|
-
return
|
|
503
|
-
case
|
|
504
|
-
return
|
|
501
|
+
return d === D.length && r(l.start, "Unsyntactic " + a.l), T(l, c ? "BreakStatement" : "ContinueStatement");
|
|
502
|
+
case vn:
|
|
503
|
+
return w(), be(), T(l, "DebuggerStatement");
|
|
504
|
+
case Sn:
|
|
505
|
+
return w(), D.push(Dt), l.body = ne(), D.pop(), V(Ft), l.test = Ue(), be(), T(l, "DoWhileStatement");
|
|
506
|
+
case kn:
|
|
507
|
+
return w(), D.push(Dt), V(le), E === ce ? bt(l, null) : E === Bt ? (a = _(), w(), pn(a, !0), T(a, "VariableDeclaration"), a.fa.length === 1 && F(rt) ? dn(l, a) : bt(l, a)) : (a = K(!1, !0), F(rt) ? (et(a), dn(l, a)) : bt(l, a));
|
|
508
|
+
case Nt:
|
|
509
|
+
return w(), kt(l, !0);
|
|
505
510
|
case Cn:
|
|
506
|
-
return
|
|
507
|
-
case Pt:
|
|
508
|
-
return C(), xt(l, !0);
|
|
511
|
+
return w(), l.test = Ue(), l.da = ne(), l.alternate = F(wn) ? ne() : null, T(l, "IfStatement");
|
|
509
512
|
case En:
|
|
510
|
-
return
|
|
513
|
+
return Ve || O.Ib || r(L, "'return' outside of function"), w(), F(ce) || Qe() ? l.K = null : (l.K = K(), be()), T(l, "ReturnStatement");
|
|
514
|
+
case Ut:
|
|
515
|
+
for (w(), l.Qb = Ue(), l.tb = [], V(Le), D.push(no); E !== Ie; )
|
|
516
|
+
E === Pt || E === bn ? (a = E === Pt, d && T(d, "SwitchCase"), l.tb.push(d = _()), d.da = [], w(), a ? d.test = K() : (c && r(At, "Multiple default clauses"), c = !0, d.test = null), V(_e)) : (d || ie(), d.da.push(ne()));
|
|
517
|
+
return d && T(d, "SwitchCase"), w(), D.pop(), T(l, "SwitchStatement");
|
|
511
518
|
case In:
|
|
512
|
-
return
|
|
513
|
-
case Nt:
|
|
514
|
-
for (C(), l.Qb = Ue(), l.tb = [], M(Le), V.push(to); E !== Ie; )
|
|
515
|
-
E === Rt || E === Sn ? (a = E === Rt, d && T(d, "SwitchCase"), l.tb.push(d = L()), d.da = [], C(), a ? d.test = K() : (c && r(Tt, "Multiple default clauses"), c = !0, d.test = null), M(_e)) : (d || ie(), d.da.push(ne()));
|
|
516
|
-
return d && T(d, "SwitchCase"), C(), V.pop(), T(l, "SwitchStatement");
|
|
519
|
+
return w(), it.test(g.slice(ge, L)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), T(l, "ThrowStatement");
|
|
517
520
|
case Tn:
|
|
518
|
-
return
|
|
519
|
-
case An:
|
|
520
|
-
return C(), l.block = Be(), l.Ea = null, E === yn && (a = L(), C(), M(le), a.Ua = ae(), q && ot(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), M(re), a.body = Be(), l.Ea = T(a, "CatchClause")), l.fb = F(kn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
521
|
-
case Ut:
|
|
522
|
-
return C(), hn(l), be(), T(l, "VariableDeclaration");
|
|
521
|
+
return w(), l.block = Be(), l.Ea = null, E === gn && (a = _(), w(), V(le), a.Ua = ae(), Z && ot(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), V(re), a.body = Be(), l.Ea = T(a, "CatchClause")), l.fb = F(xn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
523
522
|
case Bt:
|
|
524
|
-
return
|
|
525
|
-
case
|
|
526
|
-
return
|
|
523
|
+
return w(), pn(l), be(), T(l, "VariableDeclaration");
|
|
524
|
+
case Ft:
|
|
525
|
+
return w(), l.test = Ue(), D.push(Dt), l.body = ne(), D.pop(), T(l, "WhileStatement");
|
|
526
|
+
case An:
|
|
527
|
+
return Z && r(L, "'with' in strict mode"), w(), l.object = Ue(), l.body = ne(), T(l, "WithStatement");
|
|
527
528
|
case Le:
|
|
528
529
|
return Be();
|
|
529
530
|
case ce:
|
|
530
|
-
return
|
|
531
|
+
return w(), T(l, "EmptyStatement");
|
|
531
532
|
default:
|
|
532
533
|
if (c = te, I = K(), a === Ee && I.type === "Identifier" && F(_e)) {
|
|
533
|
-
for (d = 0; d <
|
|
534
|
-
|
|
535
|
-
return
|
|
534
|
+
for (d = 0; d < D.length; ++d)
|
|
535
|
+
D[d].name === c && r(I.start, "Label '" + c + "' is already declared");
|
|
536
|
+
return D.push({
|
|
536
537
|
name: c,
|
|
537
|
-
kind: E.W ? "loop" : E ===
|
|
538
|
-
}), l.body = ne(),
|
|
538
|
+
kind: E.W ? "loop" : E === Ut ? "switch" : null
|
|
539
|
+
}), l.body = ne(), D.pop(), l.label = I, T(l, "LabeledStatement");
|
|
539
540
|
}
|
|
540
541
|
return l.la = I, be(), T(l, "ExpressionStatement");
|
|
541
542
|
}
|
|
542
543
|
}
|
|
543
544
|
function Ue() {
|
|
544
|
-
|
|
545
|
+
V(le);
|
|
545
546
|
var a = K();
|
|
546
|
-
return
|
|
547
|
+
return V(re), a;
|
|
547
548
|
}
|
|
548
549
|
function Be(a) {
|
|
549
|
-
var l =
|
|
550
|
-
for (l.body = [],
|
|
550
|
+
var l = _(), c = !0, d = !1;
|
|
551
|
+
for (l.body = [], V(Le); !F(Ie); ) {
|
|
551
552
|
var I = ne();
|
|
552
|
-
if (l.body.push(I), c && a &&
|
|
553
|
-
var
|
|
554
|
-
|
|
553
|
+
if (l.body.push(I), c && a && vt(I)) {
|
|
554
|
+
var W = d;
|
|
555
|
+
X(d = !0);
|
|
555
556
|
}
|
|
556
557
|
c = !1;
|
|
557
558
|
}
|
|
558
|
-
return d && !
|
|
559
|
+
return d && !W && X(!1), T(l, "BlockStatement");
|
|
559
560
|
}
|
|
560
|
-
function
|
|
561
|
-
return a.ua = l,
|
|
561
|
+
function bt(a, l) {
|
|
562
|
+
return a.ua = l, V(ce), a.test = E === ce ? null : K(), V(ce), a.update = E === re ? null : K(), V(re), a.body = ne(), D.pop(), T(a, "ForStatement");
|
|
562
563
|
}
|
|
563
|
-
function
|
|
564
|
-
return a.left = l, a.right = K(),
|
|
564
|
+
function dn(a, l) {
|
|
565
|
+
return a.left = l, a.right = K(), V(re), a.body = ne(), D.pop(), T(a, "ForInStatement");
|
|
565
566
|
}
|
|
566
|
-
function
|
|
567
|
+
function pn(a, l) {
|
|
567
568
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
568
|
-
var c =
|
|
569
|
-
if (c.id = ae(),
|
|
569
|
+
var c = _();
|
|
570
|
+
if (c.id = ae(), Z && ot(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = F(Mn) ? K(!0, l) : null, a.fa.push(T(c, "VariableDeclarator")), !F(ye))
|
|
570
571
|
break;
|
|
571
572
|
}
|
|
572
573
|
}
|
|
573
574
|
function K(a, l) {
|
|
574
|
-
var c =
|
|
575
|
+
var c = St(l);
|
|
575
576
|
if (!a && E === ye) {
|
|
576
577
|
for (a = me(c), a.xb = [c]; F(ye); )
|
|
577
|
-
a.xb.push(
|
|
578
|
+
a.xb.push(St(l));
|
|
578
579
|
return T(a, "SequenceExpression");
|
|
579
580
|
}
|
|
580
581
|
return c;
|
|
581
582
|
}
|
|
582
|
-
function
|
|
583
|
-
var l =
|
|
584
|
-
if (F(
|
|
583
|
+
function St(a) {
|
|
584
|
+
var l = wt(xt(), -1, a);
|
|
585
|
+
if (F(Bn)) {
|
|
585
586
|
var c = me(l);
|
|
586
|
-
c.test = l, c.da = K(!0),
|
|
587
|
+
c.test = l, c.da = K(!0), V(_e), c.alternate = K(!0, a), l = T(c, "ConditionalExpression");
|
|
587
588
|
}
|
|
588
|
-
return E.Cb ? (c = me(l), c.operator = te, c.left = l,
|
|
589
|
+
return E.Cb ? (c = me(l), c.operator = te, c.left = l, w(), c.right = St(a), et(l), T(c, "AssignmentExpression")) : l;
|
|
589
590
|
}
|
|
590
|
-
function
|
|
591
|
+
function wt(a, l, c) {
|
|
591
592
|
var d = E.L;
|
|
592
593
|
if (d !== null && (!c || E !== rt) && d > l) {
|
|
593
594
|
var I = me(a);
|
|
594
|
-
return I.left = a, I.operator = te, a = E,
|
|
595
|
+
return I.left = a, I.operator = te, a = E, w(), I.right = wt(xt(), d, c), d = T(I, a === Dn || a === Ln ? "LogicalExpression" : "BinaryExpression"), wt(d, l, c);
|
|
595
596
|
}
|
|
596
597
|
return a;
|
|
597
598
|
}
|
|
598
|
-
function
|
|
599
|
+
function xt() {
|
|
599
600
|
if (E.prefix) {
|
|
600
|
-
var a =
|
|
601
|
-
return a.operator = te, Me = a.prefix = !0,
|
|
601
|
+
var a = _(), l = E.$b;
|
|
602
|
+
return a.operator = te, Me = a.prefix = !0, w(), a.K = xt(), l ? et(a.K) : Z && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), T(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
602
603
|
}
|
|
603
604
|
for (l = Fe(tt()); E.cc && !Qe(); )
|
|
604
|
-
a = me(l), a.operator = te, a.prefix = !1, a.K = l, et(l),
|
|
605
|
+
a = me(l), a.operator = te, a.prefix = !1, a.K = l, et(l), w(), l = T(a, "UpdateExpression");
|
|
605
606
|
return l;
|
|
606
607
|
}
|
|
607
608
|
function Fe(a, l) {
|
|
608
|
-
if (F(
|
|
609
|
+
if (F(Un)) {
|
|
609
610
|
var c = me(a);
|
|
610
611
|
return c.object = a, c.Wa = ae(!0), c.bb = !1, Fe(T(c, "MemberExpression"), l);
|
|
611
612
|
}
|
|
612
|
-
return F(
|
|
613
|
+
return F(Mt) ? (c = me(a), c.object = a, c.Wa = K(), c.bb = !0, V(Vt), Fe(T(c, "MemberExpression"), l)) : !l && F(le) ? (c = me(a), c.callee = a, c.arguments = Ct(re, !1), Fe(T(c, "CallExpression"), l)) : a;
|
|
613
614
|
}
|
|
614
615
|
function tt() {
|
|
615
616
|
switch (E) {
|
|
616
|
-
case
|
|
617
|
-
var a =
|
|
618
|
-
return
|
|
617
|
+
case jn:
|
|
618
|
+
var a = _();
|
|
619
|
+
return w(), T(a, "ThisExpression");
|
|
619
620
|
case Ee:
|
|
620
621
|
return ae();
|
|
621
622
|
case De:
|
|
622
623
|
case nt:
|
|
623
|
-
case
|
|
624
|
-
return a =
|
|
624
|
+
case mn:
|
|
625
|
+
return a = _(), a.value = te, a.raw = g.slice(L, Ce), w(), T(a, "Literal");
|
|
626
|
+
case Rn:
|
|
625
627
|
case Pn:
|
|
626
628
|
case Nn:
|
|
627
|
-
|
|
628
|
-
return a = L(), a.value = E.$a, a.raw = E.l, C(), T(a, "Literal");
|
|
629
|
+
return a = _(), a.value = E.$a, a.raw = E.l, w(), T(a, "Literal");
|
|
629
630
|
case le:
|
|
630
|
-
a =
|
|
631
|
-
var l =
|
|
632
|
-
|
|
631
|
+
a = It;
|
|
632
|
+
var l = L;
|
|
633
|
+
w();
|
|
633
634
|
var c = K();
|
|
634
|
-
return c.start = l, c.end = Ce, O.C && (c.X.start = a, c.X.end =
|
|
635
|
-
case
|
|
636
|
-
return a =
|
|
635
|
+
return c.start = l, c.end = Ce, O.C && (c.X.start = a, c.X.end = Tt), O.Xa && (c.j = [l, Ce]), V(re), c;
|
|
636
|
+
case Mt:
|
|
637
|
+
return a = _(), w(), a.elements = Ct(Vt, !0, !0), T(a, "ArrayExpression");
|
|
637
638
|
case Le:
|
|
638
|
-
for (a =
|
|
639
|
+
for (a = _(), l = !0, c = !1, a.h = [], w(); !F(Ie); ) {
|
|
639
640
|
if (l)
|
|
640
641
|
l = !1;
|
|
641
|
-
else if (
|
|
642
|
+
else if (V(ye), O.sb && F(Ie))
|
|
642
643
|
break;
|
|
643
644
|
var d = {
|
|
644
645
|
key: E === De || E === nt ? tt() : ae(!0)
|
|
645
646
|
}, I = !1;
|
|
646
647
|
if (F(_e)) {
|
|
647
648
|
d.value = K(!0);
|
|
648
|
-
var
|
|
649
|
+
var W = d.kind = "init";
|
|
649
650
|
} else
|
|
650
|
-
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ie() : (I = c = !0,
|
|
651
|
-
if (d.key.type === "Identifier" && (
|
|
652
|
-
for (var
|
|
653
|
-
var Ae = a.h[
|
|
651
|
+
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ie() : (I = c = !0, W = d.kind = d.key.name, d.key = E === De || E === nt ? tt() : ae(!0), E !== le && ie(), d.value = kt(_(), !1));
|
|
652
|
+
if (d.key.type === "Identifier" && (Z || c))
|
|
653
|
+
for (var J = 0; J < a.h.length; ++J) {
|
|
654
|
+
var Ae = a.h[J];
|
|
654
655
|
if (Ae.key.name === d.key.name) {
|
|
655
|
-
var
|
|
656
|
-
|
|
656
|
+
var Lt = W === Ae.kind || I && Ae.kind === "init" || W === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
657
|
+
Lt && !Z && W === "init" && Ae.kind === "init" && (Lt = !1), Lt && r(d.key.start, "Redefinition of property");
|
|
657
658
|
}
|
|
658
659
|
}
|
|
659
660
|
a.h.push(d);
|
|
660
661
|
}
|
|
661
662
|
return T(a, "ObjectExpression");
|
|
662
|
-
case
|
|
663
|
-
return a =
|
|
664
|
-
case
|
|
665
|
-
return a =
|
|
663
|
+
case Nt:
|
|
664
|
+
return a = _(), w(), kt(a, !1);
|
|
665
|
+
case On:
|
|
666
|
+
return a = _(), w(), a.callee = Fe(tt(), !0), a.arguments = F(le) ? Ct(re, !1) : _r, T(a, "NewExpression");
|
|
666
667
|
}
|
|
667
668
|
ie();
|
|
668
669
|
}
|
|
669
|
-
function
|
|
670
|
+
function kt(a, l) {
|
|
670
671
|
E === Ee ? a.id = ae() : l ? ie() : a.id = null, a.oa = [];
|
|
671
672
|
var c = !0;
|
|
672
|
-
for (
|
|
673
|
-
c ? c = !1 :
|
|
673
|
+
for (V(le); !F(re); )
|
|
674
|
+
c ? c = !1 : V(ye), a.oa.push(ae());
|
|
674
675
|
c = Ve;
|
|
675
|
-
var d =
|
|
676
|
-
if (Ve = !0,
|
|
676
|
+
var d = D;
|
|
677
|
+
if (Ve = !0, D = [], a.body = Be(!0), Ve = c, D = d, Z || a.body.body.length && vt(a.body.body[0])) {
|
|
677
678
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
678
|
-
if (d = 0 > c ? a.id : a.oa[c], (
|
|
679
|
+
if (d = 0 > c ? a.id : a.oa[c], (_n(d.name) || ot(d.name)) && r(d.start, "Defining '" + d.name + "' in strict mode"), 0 <= c)
|
|
679
680
|
for (var I = 0; I < c; ++I)
|
|
680
681
|
d.name === a.oa[I].name && r(d.start, "Argument name clash in strict mode");
|
|
681
682
|
}
|
|
682
683
|
return T(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
683
684
|
}
|
|
684
|
-
function
|
|
685
|
+
function Ct(a, l, c) {
|
|
685
686
|
for (var d = [], I = !0; !F(a); ) {
|
|
686
687
|
if (I)
|
|
687
688
|
I = !1;
|
|
688
|
-
else if (
|
|
689
|
+
else if (V(ye), l && O.sb && F(a))
|
|
689
690
|
break;
|
|
690
691
|
d.push(c && E === ye ? null : K(!0));
|
|
691
692
|
}
|
|
692
693
|
return d;
|
|
693
694
|
}
|
|
694
695
|
function ae(a) {
|
|
695
|
-
var l =
|
|
696
|
-
return a && O.yb === "everywhere" && (a = !1), E === Ee ? (!a && (O.yb &&
|
|
696
|
+
var l = _();
|
|
697
|
+
return a && O.yb === "everywhere" && (a = !1), E === Ee ? (!a && (O.yb && Zr(te) || Z && _n(te)) && g.slice(L, Ce).indexOf("\\") === -1 && r(L, "The keyword '" + te + "' is reserved"), l.name = te) : a && E.l ? l.name = E.l : ie(), Me = !1, w(), T(l, "Identifier");
|
|
697
698
|
}
|
|
698
699
|
e.version = "0.5.0";
|
|
699
|
-
var O, g = "", ke,
|
|
700
|
+
var O, g = "", ke, Et;
|
|
700
701
|
e.parse = function(a, l) {
|
|
701
702
|
g = String(a), ke = g.length, O = l || {};
|
|
702
|
-
for (var c in
|
|
703
|
-
Object.prototype.hasOwnProperty.call(O, c) || (O[c] =
|
|
704
|
-
for (
|
|
705
|
-
c = ne(), a.body.push(c), l &&
|
|
703
|
+
for (var c in hn)
|
|
704
|
+
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = hn[c]);
|
|
705
|
+
for (Et = O.sourceFile, Se = 1, f = se = 0, Me = !0, p(), c = O.dc, At = ge = f, O.C && (Ot = new i()), Ve = Z = !1, D = [], k(), a = c || _(), l = !0, c || (a.body = []); E !== jt; )
|
|
706
|
+
c = ne(), a.body.push(c), l && vt(c) && X(!0), l = !1;
|
|
706
707
|
return T(a, "Program");
|
|
707
708
|
};
|
|
708
|
-
var
|
|
709
|
+
var hn = {
|
|
709
710
|
fc: !1,
|
|
710
711
|
sb: !0,
|
|
711
712
|
yb: !1,
|
|
@@ -716,110 +717,110 @@ var U, Io = function(e) {
|
|
|
716
717
|
dc: null,
|
|
717
718
|
sourceFile: null,
|
|
718
719
|
vb: null
|
|
719
|
-
}, f = 0,
|
|
720
|
+
}, f = 0, L = 0, Ce = 0, It, Tt, E, te, Me, Se, se, At = 0, ge = 0, Ot, Ve, D, Z, _r = [], De = {
|
|
720
721
|
type: "num"
|
|
721
|
-
},
|
|
722
|
+
}, mn = {
|
|
722
723
|
type: "regexp"
|
|
723
724
|
}, nt = {
|
|
724
725
|
type: "string"
|
|
725
726
|
}, Ee = {
|
|
726
727
|
type: "name"
|
|
727
|
-
}, Ot = {
|
|
728
|
-
type: "eof"
|
|
729
728
|
}, jt = {
|
|
730
|
-
|
|
729
|
+
type: "eof"
|
|
731
730
|
}, Rt = {
|
|
731
|
+
l: "break"
|
|
732
|
+
}, Pt = {
|
|
732
733
|
l: "case",
|
|
733
734
|
m: !0
|
|
734
|
-
},
|
|
735
|
+
}, gn = {
|
|
735
736
|
l: "catch"
|
|
736
|
-
},
|
|
737
|
+
}, yn = {
|
|
737
738
|
l: "continue"
|
|
738
|
-
},
|
|
739
|
+
}, vn = {
|
|
739
740
|
l: "debugger"
|
|
740
|
-
},
|
|
741
|
+
}, bn = {
|
|
741
742
|
l: "default"
|
|
742
|
-
},
|
|
743
|
+
}, Sn = {
|
|
743
744
|
l: "do",
|
|
744
745
|
W: !0
|
|
745
|
-
},
|
|
746
|
+
}, wn = {
|
|
746
747
|
l: "else",
|
|
747
748
|
m: !0
|
|
748
|
-
},
|
|
749
|
+
}, xn = {
|
|
749
750
|
l: "finally"
|
|
750
|
-
},
|
|
751
|
+
}, kn = {
|
|
751
752
|
l: "for",
|
|
752
753
|
W: !0
|
|
753
|
-
},
|
|
754
|
+
}, Nt = {
|
|
754
755
|
l: "function"
|
|
755
|
-
},
|
|
756
|
+
}, Cn = {
|
|
756
757
|
l: "if"
|
|
757
|
-
},
|
|
758
|
+
}, En = {
|
|
758
759
|
l: "return",
|
|
759
760
|
m: !0
|
|
760
|
-
},
|
|
761
|
+
}, Ut = {
|
|
761
762
|
l: "switch"
|
|
762
|
-
},
|
|
763
|
+
}, In = {
|
|
763
764
|
l: "throw",
|
|
764
765
|
m: !0
|
|
765
|
-
},
|
|
766
|
+
}, Tn = {
|
|
766
767
|
l: "try"
|
|
767
|
-
}, Ut = {
|
|
768
|
-
l: "var"
|
|
769
768
|
}, Bt = {
|
|
769
|
+
l: "var"
|
|
770
|
+
}, Ft = {
|
|
770
771
|
l: "while",
|
|
771
772
|
W: !0
|
|
772
|
-
},
|
|
773
|
+
}, An = {
|
|
773
774
|
l: "with"
|
|
774
|
-
},
|
|
775
|
+
}, On = {
|
|
775
776
|
l: "new",
|
|
776
777
|
m: !0
|
|
777
|
-
},
|
|
778
|
+
}, jn = {
|
|
778
779
|
l: "this"
|
|
779
|
-
},
|
|
780
|
+
}, Rn = {
|
|
780
781
|
l: "null",
|
|
781
782
|
$a: null
|
|
782
|
-
},
|
|
783
|
+
}, Pn = {
|
|
783
784
|
l: "true",
|
|
784
785
|
$a: !0
|
|
785
|
-
},
|
|
786
|
+
}, Nn = {
|
|
786
787
|
l: "false",
|
|
787
788
|
$a: !1
|
|
788
789
|
}, rt = {
|
|
789
790
|
l: "in",
|
|
790
791
|
L: 7,
|
|
791
792
|
m: !0
|
|
792
|
-
},
|
|
793
|
-
break:
|
|
794
|
-
case:
|
|
795
|
-
catch:
|
|
796
|
-
continue:
|
|
797
|
-
debugger:
|
|
798
|
-
default:
|
|
799
|
-
do:
|
|
800
|
-
else:
|
|
801
|
-
finally:
|
|
802
|
-
for:
|
|
803
|
-
function:
|
|
804
|
-
if:
|
|
805
|
-
return:
|
|
806
|
-
switch:
|
|
807
|
-
throw:
|
|
808
|
-
try:
|
|
809
|
-
var:
|
|
810
|
-
while:
|
|
811
|
-
with:
|
|
812
|
-
null:
|
|
813
|
-
true:
|
|
814
|
-
false:
|
|
815
|
-
new:
|
|
793
|
+
}, Wr = {
|
|
794
|
+
break: Rt,
|
|
795
|
+
case: Pt,
|
|
796
|
+
catch: gn,
|
|
797
|
+
continue: yn,
|
|
798
|
+
debugger: vn,
|
|
799
|
+
default: bn,
|
|
800
|
+
do: Sn,
|
|
801
|
+
else: wn,
|
|
802
|
+
finally: xn,
|
|
803
|
+
for: kn,
|
|
804
|
+
function: Nt,
|
|
805
|
+
if: Cn,
|
|
806
|
+
return: En,
|
|
807
|
+
switch: Ut,
|
|
808
|
+
throw: In,
|
|
809
|
+
try: Tn,
|
|
810
|
+
var: Bt,
|
|
811
|
+
while: Ft,
|
|
812
|
+
with: An,
|
|
813
|
+
null: Rn,
|
|
814
|
+
true: Pn,
|
|
815
|
+
false: Nn,
|
|
816
|
+
new: On,
|
|
816
817
|
in: rt,
|
|
817
818
|
instanceof: {
|
|
818
819
|
l: "instanceof",
|
|
819
820
|
L: 7,
|
|
820
821
|
m: !0
|
|
821
822
|
},
|
|
822
|
-
this:
|
|
823
|
+
this: jn,
|
|
823
824
|
typeof: {
|
|
824
825
|
l: "typeof",
|
|
825
826
|
prefix: !0,
|
|
@@ -835,10 +836,10 @@ var U, Io = function(e) {
|
|
|
835
836
|
prefix: !0,
|
|
836
837
|
m: !0
|
|
837
838
|
}
|
|
838
|
-
},
|
|
839
|
+
}, Mt = {
|
|
839
840
|
type: "[",
|
|
840
841
|
m: !0
|
|
841
|
-
},
|
|
842
|
+
}, Vt = {
|
|
842
843
|
type: "]"
|
|
843
844
|
}, Le = {
|
|
844
845
|
type: "{",
|
|
@@ -859,65 +860,65 @@ var U, Io = function(e) {
|
|
|
859
860
|
}, _e = {
|
|
860
861
|
type: ":",
|
|
861
862
|
m: !0
|
|
862
|
-
},
|
|
863
|
+
}, Un = {
|
|
863
864
|
type: "."
|
|
864
|
-
},
|
|
865
|
+
}, Bn = {
|
|
865
866
|
type: "?",
|
|
866
867
|
m: !0
|
|
867
|
-
},
|
|
868
|
+
}, Fn = {
|
|
868
869
|
L: 10,
|
|
869
870
|
m: !0
|
|
870
|
-
},
|
|
871
|
+
}, Mn = {
|
|
871
872
|
Cb: !0,
|
|
872
873
|
m: !0
|
|
873
874
|
}, we = {
|
|
874
875
|
Cb: !0,
|
|
875
876
|
m: !0
|
|
876
|
-
},
|
|
877
|
+
}, $r = {
|
|
877
878
|
cc: !0,
|
|
878
879
|
prefix: !0,
|
|
879
880
|
$b: !0
|
|
880
|
-
},
|
|
881
|
+
}, Vn = {
|
|
881
882
|
prefix: !0,
|
|
882
883
|
m: !0
|
|
883
|
-
},
|
|
884
|
+
}, Dn = {
|
|
884
885
|
L: 1,
|
|
885
886
|
m: !0
|
|
886
|
-
},
|
|
887
|
+
}, Ln = {
|
|
887
888
|
L: 2,
|
|
888
889
|
m: !0
|
|
889
|
-
},
|
|
890
|
+
}, Hr = {
|
|
890
891
|
L: 3,
|
|
891
892
|
m: !0
|
|
892
|
-
},
|
|
893
|
+
}, Kr = {
|
|
893
894
|
L: 4,
|
|
894
895
|
m: !0
|
|
895
|
-
},
|
|
896
|
+
}, Gr = {
|
|
896
897
|
L: 5,
|
|
897
898
|
m: !0
|
|
898
|
-
},
|
|
899
|
+
}, Xr = {
|
|
899
900
|
L: 6,
|
|
900
901
|
m: !0
|
|
901
|
-
},
|
|
902
|
+
}, Yr = {
|
|
902
903
|
L: 7,
|
|
903
904
|
m: !0
|
|
904
|
-
},
|
|
905
|
+
}, Jr = {
|
|
905
906
|
L: 8,
|
|
906
907
|
m: !0
|
|
907
|
-
},
|
|
908
|
+
}, zr = {
|
|
908
909
|
L: 9,
|
|
909
910
|
prefix: !0,
|
|
910
911
|
m: !0
|
|
911
|
-
},
|
|
912
|
+
}, qr = {
|
|
912
913
|
L: 10,
|
|
913
914
|
m: !0
|
|
914
|
-
},
|
|
915
|
+
}, Zr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), ot = o("eval arguments"), Qr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), eo = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Wn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), to = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), it = /[\n\r\u2028\u2029]/, at = /\r\n|[\n\r\u2028\u2029]/g, Te, Dt = {
|
|
915
916
|
kind: "loop"
|
|
916
|
-
},
|
|
917
|
+
}, no = {
|
|
917
918
|
kind: "switch"
|
|
918
919
|
};
|
|
919
920
|
}, Wt = Wt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
920
|
-
|
|
921
|
+
To(Wt.j || (Wt.j = {}));
|
|
921
922
|
function h(e, t) {
|
|
922
923
|
typeof e == "string" && (e = Re(e, "code"));
|
|
923
924
|
var n = e.constructor;
|
|
@@ -934,12 +935,12 @@ function h(e, t) {
|
|
|
934
935
|
for (s in this)
|
|
935
936
|
typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this));
|
|
936
937
|
this.N = Ht(this, this.ra, null), this.Na = this.N.object, this.ra = Re(this.ba.join(`
|
|
937
|
-
`), "polyfills"), this.ba = void 0,
|
|
938
|
+
`), "polyfills"), this.ba = void 0, pt(this.ra), i = new b(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new b(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
938
939
|
}
|
|
939
|
-
var
|
|
940
|
+
var $n = {
|
|
940
941
|
C: !0,
|
|
941
942
|
kc: 5
|
|
942
|
-
},
|
|
943
|
+
}, Jt = {
|
|
943
944
|
configurable: !0,
|
|
944
945
|
enumerable: !0,
|
|
945
946
|
writable: !1
|
|
@@ -947,7 +948,7 @@ var Hn = {
|
|
|
947
948
|
configurable: !0,
|
|
948
949
|
enumerable: !1,
|
|
949
950
|
writable: !0
|
|
950
|
-
},
|
|
951
|
+
}, q = {
|
|
951
952
|
configurable: !0,
|
|
952
953
|
enumerable: !1,
|
|
953
954
|
writable: !1
|
|
@@ -955,7 +956,7 @@ var Hn = {
|
|
|
955
956
|
configurable: !1,
|
|
956
957
|
enumerable: !1,
|
|
957
958
|
writable: !1
|
|
958
|
-
},
|
|
959
|
+
}, Hn = {
|
|
959
960
|
configurable: !1,
|
|
960
961
|
enumerable: !0,
|
|
961
962
|
writable: !0
|
|
@@ -967,8 +968,8 @@ var Hn = {
|
|
|
967
968
|
VALUE_IN_DESCRIPTOR: !0
|
|
968
969
|
}, je = {
|
|
969
970
|
REGEXP_TIMEOUT: !0
|
|
970
|
-
},
|
|
971
|
-
function
|
|
971
|
+
}, Kn = [], fe = null, Xe = null, ve = typeof globalThis > "u" ? void 0 : globalThis, Ao = ["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();", "};"];
|
|
972
|
+
function zt(e) {
|
|
972
973
|
var t = e >>> 0;
|
|
973
974
|
return t === Number(e) ? t : NaN;
|
|
974
975
|
}
|
|
@@ -976,12 +977,12 @@ function Ye(e) {
|
|
|
976
977
|
var t = e >>> 0;
|
|
977
978
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
978
979
|
}
|
|
979
|
-
function
|
|
980
|
+
function pt(e, t, n) {
|
|
980
981
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
981
982
|
for (var r in e)
|
|
982
983
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
983
984
|
var o = e[r];
|
|
984
|
-
o && typeof o == "object" &&
|
|
985
|
+
o && typeof o == "object" && pt(o, t, n);
|
|
985
986
|
}
|
|
986
987
|
}
|
|
987
988
|
h.prototype.REGEXP_MODE = 2;
|
|
@@ -994,8 +995,8 @@ U.Kb = 0;
|
|
|
994
995
|
U.ic = 0;
|
|
995
996
|
function Re(e, t) {
|
|
996
997
|
var n = {}, r;
|
|
997
|
-
for (r in
|
|
998
|
-
n[r] =
|
|
998
|
+
for (r in $n)
|
|
999
|
+
n[r] = $n[r];
|
|
999
1000
|
return n.sourceFile = t, ve.j.parse(e, n);
|
|
1000
1001
|
}
|
|
1001
1002
|
U.Jb = function(e) {
|
|
@@ -1019,7 +1020,7 @@ U.lb = function() {
|
|
|
1019
1020
|
n = null;
|
|
1020
1021
|
else {
|
|
1021
1022
|
this.ca.shift(), 0 <= n.interval && vr(this, n, n.interval);
|
|
1022
|
-
var r = new
|
|
1023
|
+
var r = new b(n.node, n.scope);
|
|
1023
1024
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1024
1025
|
}
|
|
1025
1026
|
if (!n)
|
|
@@ -1049,8 +1050,8 @@ U.Eb = function() {
|
|
|
1049
1050
|
;
|
|
1050
1051
|
return this.za;
|
|
1051
1052
|
};
|
|
1052
|
-
function
|
|
1053
|
-
e.g(t, "NaN", NaN, We), e.g(t, "Infinity", 1 / 0, We), e.g(t, "undefined", void 0, We), e.g(t, "window", t,
|
|
1053
|
+
function Oo(e, t) {
|
|
1054
|
+
e.g(t, "NaN", NaN, We), e.g(t, "Infinity", 1 / 0, We), e.g(t, "undefined", void 0, We), e.g(t, "window", t, Jt), e.g(t, "this", t, We), e.g(t, "self", t), e.M = new N(null), e.Z = new N(e.M), jo(e, t), Ro(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Po(e, t), No(e, t), Uo(e, t), Bo(e, t), Fo(e, t), Mo(e, t), Vo(e, t), Do(e, t), Lo(e, t);
|
|
1054
1055
|
var n = e.i(function() {
|
|
1055
1056
|
throw EvalError("Can't happen");
|
|
1056
1057
|
}, !1);
|
|
@@ -1061,78 +1062,78 @@ function Ao(e, t) {
|
|
|
1061
1062
|
try {
|
|
1062
1063
|
return i(s);
|
|
1063
1064
|
} catch (u) {
|
|
1064
|
-
|
|
1065
|
+
x(e, e.Gb, u.message);
|
|
1065
1066
|
}
|
|
1066
1067
|
};
|
|
1067
1068
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), y);
|
|
1068
1069
|
n = function(i) {
|
|
1069
|
-
return
|
|
1070
|
+
return Gn(e, !1, arguments);
|
|
1070
1071
|
}, e.g(t, "setTimeout", e.i(n, !1), y), n = function(i) {
|
|
1071
|
-
return
|
|
1072
|
+
return Gn(e, !0, arguments);
|
|
1072
1073
|
}, e.g(t, "setInterval", e.i(n, !1), y), n = function(i) {
|
|
1073
|
-
|
|
1074
|
+
Xn(e, i);
|
|
1074
1075
|
}, e.g(t, "clearTimeout", e.i(n, !1), y), n = function(i) {
|
|
1075
|
-
|
|
1076
|
+
Xn(e, i);
|
|
1076
1077
|
}, e.g(t, "clearInterval", e.i(n, !1), y), 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);
|
|
1077
1078
|
}
|
|
1078
1079
|
U.Wb = 0;
|
|
1079
|
-
function
|
|
1080
|
+
function jo(e, t) {
|
|
1080
1081
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1081
1082
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1082
1083
|
if (s) {
|
|
1083
1084
|
s = s.split(/\s*,\s*/);
|
|
1084
1085
|
for (var u = 0; u < s.length; u++) {
|
|
1085
1086
|
var p = s[u];
|
|
1086
|
-
n.test(p) ||
|
|
1087
|
+
n.test(p) || x(e, e.T, "Invalid function argument: " + p);
|
|
1087
1088
|
}
|
|
1088
1089
|
s = s.join(", ");
|
|
1089
1090
|
}
|
|
1090
1091
|
try {
|
|
1091
|
-
var
|
|
1092
|
-
} catch (
|
|
1093
|
-
|
|
1092
|
+
var S = Re("(function(" + s + ") {" + i + "})", "function" + e.Wb++);
|
|
1093
|
+
} catch (k) {
|
|
1094
|
+
x(e, e.T, "Invalid code: " + k.message);
|
|
1094
1095
|
}
|
|
1095
|
-
return
|
|
1096
|
+
return S.body.length !== 1 && x(e, e.T, "Invalid code in function body"), Qt(e, S.body[0].la, e.N, "anonymous");
|
|
1096
1097
|
};
|
|
1097
1098
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
|
|
1098
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1099
|
+
}, 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) {
|
|
1099
1100
|
var s = e.o[e.o.length - 1];
|
|
1100
|
-
s.U = this, s.B = o, s.F = [], i != null && (i instanceof
|
|
1101
|
-
},
|
|
1101
|
+
s.U = this, s.B = o, s.F = [], i != null && (i instanceof N ? s.F = gr(e, i) : x(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1102
|
+
}, $(e, e.O, "apply", r), r = function(o) {
|
|
1102
1103
|
var i = e.o[e.o.length - 1];
|
|
1103
1104
|
i.U = this, i.B = o, i.F = [];
|
|
1104
1105
|
for (var s = 1; s < arguments.length; s++)
|
|
1105
1106
|
i.F.push(arguments[s]);
|
|
1106
1107
|
i.eb = !1;
|
|
1107
|
-
},
|
|
1108
|
+
}, $(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() {
|
|
1108
1109
|
return String(this);
|
|
1109
|
-
},
|
|
1110
|
+
}, $(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), y), r = function() {
|
|
1110
1111
|
return this.valueOf();
|
|
1111
|
-
},
|
|
1112
|
+
}, $(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
|
|
1112
1113
|
}
|
|
1113
|
-
function
|
|
1114
|
+
function Ro(e, t) {
|
|
1114
1115
|
function n(o) {
|
|
1115
|
-
o != null ||
|
|
1116
|
+
o != null || x(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1116
1117
|
}
|
|
1117
1118
|
var r = function(o) {
|
|
1118
1119
|
if (o == null)
|
|
1119
1120
|
return pe(e) ? this : e.s(e.M);
|
|
1120
|
-
if (!(o instanceof
|
|
1121
|
+
if (!(o instanceof N)) {
|
|
1121
1122
|
var i = e.s(de(e, o));
|
|
1122
1123
|
return i.data = o, i;
|
|
1123
1124
|
}
|
|
1124
1125
|
return o;
|
|
1125
1126
|
};
|
|
1126
1127
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, y), e.g(e.M, "constructor", e.v, y), e.g(t, "Object", e.v, y), r = function(o) {
|
|
1127
|
-
return n(o), ue(e, Object.getOwnPropertyNames(o instanceof
|
|
1128
|
+
return n(o), ue(e, Object.getOwnPropertyNames(o instanceof N ? o.h : o));
|
|
1128
1129
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(o) {
|
|
1129
|
-
return n(o), o instanceof
|
|
1130
|
+
return n(o), o instanceof N && (o = o.h), ue(e, Object.keys(o));
|
|
1130
1131
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1131
|
-
return o === null ? e.s(null) : (o instanceof
|
|
1132
|
+
return o === null ? e.s(null) : (o instanceof N || x(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1132
1133
|
}, e.g(e.v, "create", e.i(r, !1), y), 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) {
|
|
1133
|
-
return i = String(i), o instanceof
|
|
1134
|
+
return i = String(i), o instanceof N || x(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof N || x(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || x(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, Je, s.h), o;
|
|
1134
1135
|
}, e.g(e.v, "defineProperty", e.i(r, !1), y), 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) {
|
|
1135
|
-
if (o instanceof
|
|
1136
|
+
if (o instanceof N || x(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
|
|
1136
1137
|
var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
|
|
1137
1138
|
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;
|
|
1138
1139
|
}
|
|
@@ -1141,25 +1142,25 @@ function jo(e, t) {
|
|
|
1141
1142
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), y), r = function(o) {
|
|
1142
1143
|
return !!o && !o.preventExtensions;
|
|
1143
1144
|
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
|
|
1144
|
-
return o instanceof
|
|
1145
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), y),
|
|
1146
|
-
return n(this), this instanceof
|
|
1147
|
-
},
|
|
1148
|
-
return n(this), this instanceof
|
|
1149
|
-
},
|
|
1145
|
+
return o instanceof N && (o.preventExtensions = !0), o;
|
|
1146
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), y), $(e, e.v, "toString", N.prototype.toString), $(e, e.v, "toLocaleString", N.prototype.toString), $(e, e.v, "valueOf", N.prototype.valueOf), r = function(o) {
|
|
1147
|
+
return n(this), this instanceof N ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1148
|
+
}, $(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1149
|
+
return n(this), this instanceof N ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1150
|
+
}, $(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1150
1151
|
for (; ; ) {
|
|
1151
1152
|
if (o = de(e, o), !o)
|
|
1152
1153
|
return !1;
|
|
1153
1154
|
if (o === this)
|
|
1154
1155
|
return !0;
|
|
1155
1156
|
}
|
|
1156
|
-
},
|
|
1157
|
+
}, $(e, e.v, "isPrototypeOf", r);
|
|
1157
1158
|
}
|
|
1158
|
-
function
|
|
1159
|
+
function Po(e, t) {
|
|
1159
1160
|
var n = function(r) {
|
|
1160
1161
|
var o = pe(e) ? this : Pe(e), i = arguments[0];
|
|
1161
1162
|
if (arguments.length === 1 && typeof i == "number")
|
|
1162
|
-
isNaN(
|
|
1163
|
+
isNaN(zt(i)) && x(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1163
1164
|
else {
|
|
1164
1165
|
for (i = 0; i < arguments.length; i++)
|
|
1165
1166
|
o.h[i] = arguments[i];
|
|
@@ -1175,20 +1176,20 @@ function Ro(e, t) {
|
|
|
1175
1176
|
writable: !0
|
|
1176
1177
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1177
1178
|
}
|
|
1178
|
-
function
|
|
1179
|
+
function No(e, t) {
|
|
1179
1180
|
var n = function(r) {
|
|
1180
1181
|
return r = arguments.length ? ve.String(r) : "", pe(e) ? (this.data = r, this) : r;
|
|
1181
1182
|
};
|
|
1182
1183
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1183
|
-
|
|
1184
|
+
$(e, e.J, t[n], String.prototype[t[n]]);
|
|
1184
1185
|
n = function(r, o, i) {
|
|
1185
1186
|
o = e.R(o), i = e.R(i);
|
|
1186
1187
|
try {
|
|
1187
1188
|
return String(this).localeCompare(r, o, i);
|
|
1188
1189
|
} catch (s) {
|
|
1189
|
-
|
|
1190
|
+
x(e, e.D, "localeCompare: " + s.message);
|
|
1190
1191
|
}
|
|
1191
|
-
},
|
|
1192
|
+
}, $(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1192
1193
|
var s = String(this);
|
|
1193
1194
|
if (o = o ? Number(o) : void 0, H(e, r, e.I) && (r = r.data, He(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1194
1195
|
if (fe)
|
|
@@ -1199,8 +1200,8 @@ function Po(e, t) {
|
|
|
1199
1200
|
}, r, i), r !== je && i(ue(e, r));
|
|
1200
1201
|
else {
|
|
1201
1202
|
var u = e.ha(), p = Ke(e, r, u, i);
|
|
1202
|
-
u.onmessage = function(
|
|
1203
|
-
clearTimeout(p), i(ue(e,
|
|
1203
|
+
u.onmessage = function(S) {
|
|
1204
|
+
clearTimeout(p), i(ue(e, S.data));
|
|
1204
1205
|
}, u.postMessage(["split", s, r, o]);
|
|
1205
1206
|
}
|
|
1206
1207
|
return;
|
|
@@ -1249,8 +1250,8 @@ function Po(e, t) {
|
|
|
1249
1250
|
}, r, i), r !== je && i(r);
|
|
1250
1251
|
else {
|
|
1251
1252
|
var u = e.ha(), p = Ke(e, r, u, i);
|
|
1252
|
-
u.onmessage = function(
|
|
1253
|
-
clearTimeout(p), i(
|
|
1253
|
+
u.onmessage = function(S) {
|
|
1254
|
+
clearTimeout(p), i(S.data);
|
|
1254
1255
|
}, u.postMessage(["replace", s, r, o]);
|
|
1255
1256
|
}
|
|
1256
1257
|
return;
|
|
@@ -1258,12 +1259,12 @@ function Po(e, t) {
|
|
|
1258
1259
|
i(s.replace(r, o));
|
|
1259
1260
|
}, 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;", "};", "})();", "");
|
|
1260
1261
|
}
|
|
1261
|
-
function
|
|
1262
|
+
function Uo(e, t) {
|
|
1262
1263
|
e.mb = e.i(function(n) {
|
|
1263
1264
|
return n = ve.Boolean(n), pe(e) ? (this.data = n, this) : n;
|
|
1264
1265
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1265
1266
|
}
|
|
1266
|
-
function
|
|
1267
|
+
function Bo(e, t) {
|
|
1267
1268
|
var n = function(r) {
|
|
1268
1269
|
return r = arguments.length ? ve.Number(r) : 0, pe(e) ? (this.data = r, this) : r;
|
|
1269
1270
|
};
|
|
@@ -1273,36 +1274,36 @@ function Uo(e, t) {
|
|
|
1273
1274
|
try {
|
|
1274
1275
|
return Number(this).toExponential(r);
|
|
1275
1276
|
} catch (o) {
|
|
1276
|
-
|
|
1277
|
+
x(e, e.D, o.message);
|
|
1277
1278
|
}
|
|
1278
|
-
},
|
|
1279
|
+
}, $(e, e.aa, "toExponential", n), n = function(r) {
|
|
1279
1280
|
try {
|
|
1280
1281
|
return Number(this).toFixed(r);
|
|
1281
1282
|
} catch (o) {
|
|
1282
|
-
|
|
1283
|
+
x(e, e.D, o.message);
|
|
1283
1284
|
}
|
|
1284
|
-
},
|
|
1285
|
+
}, $(e, e.aa, "toFixed", n), n = function(r) {
|
|
1285
1286
|
try {
|
|
1286
1287
|
return Number(this).toPrecision(r);
|
|
1287
1288
|
} catch (o) {
|
|
1288
|
-
|
|
1289
|
+
x(e, e.D, o.message);
|
|
1289
1290
|
}
|
|
1290
|
-
},
|
|
1291
|
+
}, $(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1291
1292
|
try {
|
|
1292
1293
|
return Number(this).toString(r);
|
|
1293
1294
|
} catch (o) {
|
|
1294
|
-
|
|
1295
|
+
x(e, e.D, o.message);
|
|
1295
1296
|
}
|
|
1296
|
-
},
|
|
1297
|
+
}, $(e, e.aa, "toString", n), n = function(r, o) {
|
|
1297
1298
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1298
1299
|
try {
|
|
1299
1300
|
return Number(this).toLocaleString(r, o);
|
|
1300
1301
|
} catch (i) {
|
|
1301
|
-
|
|
1302
|
+
x(e, e.D, "toLocaleString: " + i.message);
|
|
1302
1303
|
}
|
|
1303
|
-
},
|
|
1304
|
+
}, $(e, e.aa, "toLocaleString", n);
|
|
1304
1305
|
}
|
|
1305
|
-
function
|
|
1306
|
+
function Fo(e, t) {
|
|
1306
1307
|
var n = function(o, i) {
|
|
1307
1308
|
if (!pe(e))
|
|
1308
1309
|
return ve.Date();
|
|
@@ -1314,14 +1315,14 @@ function Bo(e, t) {
|
|
|
1314
1315
|
n = function(o) {
|
|
1315
1316
|
return function(i) {
|
|
1316
1317
|
var s = this.data;
|
|
1317
|
-
s instanceof Date ||
|
|
1318
|
+
s instanceof Date || x(e, e.j, o + " not called on a Date");
|
|
1318
1319
|
for (var u = [], p = 0; p < arguments.length; p++)
|
|
1319
1320
|
u[p] = e.R(arguments[p]);
|
|
1320
1321
|
return s[o].apply(s, u);
|
|
1321
1322
|
};
|
|
1322
|
-
}(t[r]),
|
|
1323
|
+
}(t[r]), $(e, e.$, t[r], n);
|
|
1323
1324
|
}
|
|
1324
|
-
function
|
|
1325
|
+
function Mo(e, t) {
|
|
1325
1326
|
var n = function(r, o) {
|
|
1326
1327
|
if (pe(e))
|
|
1327
1328
|
var i = this;
|
|
@@ -1330,19 +1331,19 @@ function Fo(e, t) {
|
|
|
1330
1331
|
return r;
|
|
1331
1332
|
i = e.s(e.Ma);
|
|
1332
1333
|
}
|
|
1333
|
-
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) ||
|
|
1334
|
+
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || x(e, e.T, "Invalid regexp flag: " + o);
|
|
1334
1335
|
try {
|
|
1335
1336
|
var s = new ve.RegExp(r, o);
|
|
1336
1337
|
} catch (u) {
|
|
1337
|
-
|
|
1338
|
+
x(e, e.T, u.message);
|
|
1338
1339
|
}
|
|
1339
|
-
return
|
|
1340
|
+
return qt(e, i, s), i;
|
|
1340
1341
|
};
|
|
1341
|
-
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0,
|
|
1342
|
-
function i(
|
|
1343
|
-
if (
|
|
1344
|
-
var m = ue(e,
|
|
1345
|
-
return e.g(m, "index",
|
|
1342
|
+
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, q), e.g(e.I.h.prototype, "ignoreCase", void 0, q), e.g(e.I.h.prototype, "multiline", void 0, q), e.g(e.I.h.prototype, "source", "(?:)", q), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1343
|
+
function i(k) {
|
|
1344
|
+
if (k) {
|
|
1345
|
+
var m = ue(e, k);
|
|
1346
|
+
return e.g(m, "index", k.index), e.g(m, "input", k.input), m;
|
|
1346
1347
|
}
|
|
1347
1348
|
return null;
|
|
1348
1349
|
}
|
|
@@ -1354,16 +1355,16 @@ function Fo(e, t) {
|
|
|
1354
1355
|
regexp: s
|
|
1355
1356
|
}, s, o), r !== je && (e.g(this, "lastIndex", s.lastIndex), o(i(r)));
|
|
1356
1357
|
else {
|
|
1357
|
-
var u = e.ha(), p = Ke(e, s, u, o),
|
|
1358
|
-
u.onmessage = function(
|
|
1359
|
-
clearTimeout(p), e.g(
|
|
1358
|
+
var u = e.ha(), p = Ke(e, s, u, o), S = this;
|
|
1359
|
+
u.onmessage = function(k) {
|
|
1360
|
+
clearTimeout(p), e.g(S, "lastIndex", k.data[1]), o(i(k.data[0]));
|
|
1360
1361
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1361
1362
|
}
|
|
1362
1363
|
else
|
|
1363
1364
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
|
|
1364
1365
|
}, Ge(e, e.I, "exec", n);
|
|
1365
1366
|
}
|
|
1366
|
-
function
|
|
1367
|
+
function Vo(e, t) {
|
|
1367
1368
|
function n(r) {
|
|
1368
1369
|
var o = e.i(function(i) {
|
|
1369
1370
|
var s = pe(e) ? this : e.Aa(o);
|
|
@@ -1376,32 +1377,32 @@ function Mo(e, t) {
|
|
|
1376
1377
|
return $t(e, o, r), o;
|
|
1377
1378
|
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1378
1379
|
}
|
|
1379
|
-
function
|
|
1380
|
+
function Do(e, t) {
|
|
1380
1381
|
var n = e.s(e.M);
|
|
1381
1382
|
e.g(t, "Math", n, y);
|
|
1382
1383
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1383
1384
|
for (t = 0; t < r.length; t++)
|
|
1384
|
-
e.g(n, r[t], Math[r[t]],
|
|
1385
|
+
e.g(n, r[t], Math[r[t]], q);
|
|
1385
1386
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1386
1387
|
e.g(n, r[t], e.i(Math[r[t]], !1), y);
|
|
1387
1388
|
}
|
|
1388
|
-
function
|
|
1389
|
+
function Lo(e, t) {
|
|
1389
1390
|
var n = e.s(e.M);
|
|
1390
1391
|
e.g(t, "JSON", n, y), t = function(r) {
|
|
1391
1392
|
try {
|
|
1392
1393
|
var o = JSON.parse(String(r));
|
|
1393
1394
|
} catch (i) {
|
|
1394
|
-
|
|
1395
|
+
x(e, e.T, i.message);
|
|
1395
1396
|
}
|
|
1396
1397
|
return e.Ia(o);
|
|
1397
1398
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1398
|
-
o && o.H === "Function" ?
|
|
1399
|
+
o && o.H === "Function" ? x(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = gr(e, o), o = o.filter(function(u) {
|
|
1399
1400
|
return typeof u == "string" || typeof u == "number";
|
|
1400
1401
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1401
1402
|
try {
|
|
1402
1403
|
var s = JSON.stringify(r, o, i);
|
|
1403
1404
|
} catch (u) {
|
|
1404
|
-
|
|
1405
|
+
x(e, e.j, u.message);
|
|
1405
1406
|
}
|
|
1406
1407
|
return s;
|
|
1407
1408
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1418,8 +1419,8 @@ function H(e, t, n) {
|
|
|
1418
1419
|
}
|
|
1419
1420
|
return !1;
|
|
1420
1421
|
}
|
|
1421
|
-
function
|
|
1422
|
-
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source,
|
|
1422
|
+
function qt(e, t, n) {
|
|
1423
|
+
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, q), e.g(t, "global", n.global, q), e.g(t, "ignoreCase", n.ignoreCase, q), e.g(t, "multiline", n.multiline, q);
|
|
1423
1424
|
}
|
|
1424
1425
|
function $t(e, t, n) {
|
|
1425
1426
|
n && e.g(t, "message", String(n), y), n = [];
|
|
@@ -1440,7 +1441,7 @@ function $t(e, t, n) {
|
|
|
1440
1441
|
}
|
|
1441
1442
|
U.ha = function() {
|
|
1442
1443
|
var e = this.ha.Mb;
|
|
1443
|
-
return e || (e = new Blob([
|
|
1444
|
+
return e || (e = new Blob([Ao.join(`
|
|
1444
1445
|
`)], {
|
|
1445
1446
|
type: "application/javascript"
|
|
1446
1447
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1452,7 +1453,7 @@ function $e(e, t, n, r, o) {
|
|
|
1452
1453
|
try {
|
|
1453
1454
|
return fe.runInNewContext(t, n, i);
|
|
1454
1455
|
} catch {
|
|
1455
|
-
o(null),
|
|
1456
|
+
o(null), x(e, e.D, "RegExp Timeout: " + r);
|
|
1456
1457
|
}
|
|
1457
1458
|
return je;
|
|
1458
1459
|
}
|
|
@@ -1473,13 +1474,13 @@ function He(e, t, n) {
|
|
|
1473
1474
|
r = !!fe;
|
|
1474
1475
|
} else
|
|
1475
1476
|
r = !1;
|
|
1476
|
-
r || (n(null),
|
|
1477
|
+
r || (n(null), x(e, e.D, "Regular expressions not supported: " + t));
|
|
1477
1478
|
}
|
|
1478
1479
|
function Ke(e, t, n, r) {
|
|
1479
1480
|
return setTimeout(function() {
|
|
1480
1481
|
n.terminate(), r(null);
|
|
1481
1482
|
try {
|
|
1482
|
-
|
|
1483
|
+
x(e, e.D, "RegExp Timeout: " + t);
|
|
1483
1484
|
} catch {
|
|
1484
1485
|
}
|
|
1485
1486
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
@@ -1490,7 +1491,7 @@ U.Aa = function(e) {
|
|
|
1490
1491
|
U.s = function(e) {
|
|
1491
1492
|
if (typeof e != "object")
|
|
1492
1493
|
throw Error("Non object prototype");
|
|
1493
|
-
return e = new
|
|
1494
|
+
return e = new N(e), H(this, e, this.D) && (e.H = "Error"), e;
|
|
1494
1495
|
};
|
|
1495
1496
|
function Pe(e) {
|
|
1496
1497
|
var t = e.s(e.La);
|
|
@@ -1500,29 +1501,29 @@ function Pe(e) {
|
|
|
1500
1501
|
writable: !0
|
|
1501
1502
|
}), t.H = "Array", t;
|
|
1502
1503
|
}
|
|
1503
|
-
function
|
|
1504
|
+
function Zt(e, t, n) {
|
|
1504
1505
|
var r = e.s(e.Z);
|
|
1505
|
-
return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t,
|
|
1506
|
+
return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, q), r.H = "Function", r;
|
|
1506
1507
|
}
|
|
1507
|
-
function
|
|
1508
|
-
var o =
|
|
1509
|
-
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "",
|
|
1508
|
+
function Qt(e, t, n, r) {
|
|
1509
|
+
var o = Zt(e, t.oa.length, !0);
|
|
1510
|
+
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", q), o;
|
|
1510
1511
|
}
|
|
1511
1512
|
U.i = function(e, t) {
|
|
1512
|
-
return t =
|
|
1513
|
+
return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, q), t;
|
|
1513
1514
|
};
|
|
1514
1515
|
U.ub = function(e) {
|
|
1515
|
-
var t =
|
|
1516
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1516
|
+
var t = Zt(this, e.length, !0);
|
|
1517
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, q), t;
|
|
1517
1518
|
};
|
|
1518
1519
|
U.Ia = function(e) {
|
|
1519
|
-
if (e instanceof
|
|
1520
|
+
if (e instanceof N)
|
|
1520
1521
|
throw Error("Object is already pseudo");
|
|
1521
1522
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1522
1523
|
return e;
|
|
1523
1524
|
if (e instanceof RegExp) {
|
|
1524
1525
|
var t = this.s(this.Ma);
|
|
1525
|
-
return
|
|
1526
|
+
return qt(this, t, e), t;
|
|
1526
1527
|
}
|
|
1527
1528
|
if (e instanceof Date)
|
|
1528
1529
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1549,7 +1550,7 @@ U.Ia = function(e) {
|
|
|
1549
1550
|
U.R = function(e, t) {
|
|
1550
1551
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1551
1552
|
return e;
|
|
1552
|
-
if (!(e instanceof
|
|
1553
|
+
if (!(e instanceof N))
|
|
1553
1554
|
throw Error("Object is not pseudo");
|
|
1554
1555
|
if (H(this, e, this.I))
|
|
1555
1556
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1565,7 +1566,7 @@ U.R = function(e, t) {
|
|
|
1565
1566
|
if (t.hb.push(e), H(this, e, this.qa)) {
|
|
1566
1567
|
n = [], t.Sa.push(n);
|
|
1567
1568
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1568
|
-
|
|
1569
|
+
ht(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1569
1570
|
} else
|
|
1570
1571
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1571
1572
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1585,7 +1586,7 @@ function gr(e, t) {
|
|
|
1585
1586
|
var n = [], r;
|
|
1586
1587
|
for (r in t.h)
|
|
1587
1588
|
n[r] = e.G(t, r);
|
|
1588
|
-
return n.length =
|
|
1589
|
+
return n.length = zt(e.G(t, "length")) || 0, n;
|
|
1589
1590
|
}
|
|
1590
1591
|
function de(e, t) {
|
|
1591
1592
|
switch (typeof t) {
|
|
@@ -1601,7 +1602,7 @@ function de(e, t) {
|
|
|
1601
1602
|
U.G = function(e, t) {
|
|
1602
1603
|
if (this.P)
|
|
1603
1604
|
throw Error("Getter not supported in that context");
|
|
1604
|
-
if (t = String(t), e != null ||
|
|
1605
|
+
if (t = String(t), e != null || x(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1605
1606
|
throw TypeError("Expecting native value or pseudo object");
|
|
1606
1607
|
if (t === "length") {
|
|
1607
1608
|
if (H(this, e, this.J))
|
|
@@ -1616,8 +1617,8 @@ U.G = function(e, t) {
|
|
|
1616
1617
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1617
1618
|
while (e = de(this, e));
|
|
1618
1619
|
};
|
|
1619
|
-
function
|
|
1620
|
-
if (!(t instanceof
|
|
1620
|
+
function ht(e, t, n) {
|
|
1621
|
+
if (!(t instanceof N))
|
|
1621
1622
|
throw TypeError("Primitive data type has no properties");
|
|
1622
1623
|
if (n = String(n), n === "length" && H(e, t, e.J))
|
|
1623
1624
|
return !0;
|
|
@@ -1635,15 +1636,15 @@ function pt(e, t, n) {
|
|
|
1635
1636
|
U.g = function(e, t, n, r) {
|
|
1636
1637
|
if (this.Ka)
|
|
1637
1638
|
throw Error("Setter not supported in that context");
|
|
1638
|
-
if (t = String(t), e != null ||
|
|
1639
|
+
if (t = String(t), e != null || x(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1639
1640
|
throw TypeError("Expecting native value or pseudo object");
|
|
1640
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1641
|
-
var o = !this.o ||
|
|
1642
|
-
if (e instanceof
|
|
1641
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && x(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1642
|
+
var o = !this.o || en(this).S;
|
|
1643
|
+
if (e instanceof N) {
|
|
1643
1644
|
if (H(this, e, this.J)) {
|
|
1644
1645
|
var i = Ye(t);
|
|
1645
1646
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1646
|
-
o &&
|
|
1647
|
+
o && x(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1647
1648
|
return;
|
|
1648
1649
|
}
|
|
1649
1650
|
}
|
|
@@ -1654,7 +1655,7 @@ U.g = function(e, t, n, r) {
|
|
|
1654
1655
|
return;
|
|
1655
1656
|
n = r.value;
|
|
1656
1657
|
}
|
|
1657
|
-
if (n =
|
|
1658
|
+
if (n = zt(n), isNaN(n) && x(this, this.ob, "Invalid array length"), n < i)
|
|
1658
1659
|
for (s in e.h) {
|
|
1659
1660
|
var s = Ye(s);
|
|
1660
1661
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1667,7 +1668,7 @@ U.g = function(e, t, n, r) {
|
|
|
1667
1668
|
try {
|
|
1668
1669
|
Object.defineProperty(e.h, t, o);
|
|
1669
1670
|
} catch {
|
|
1670
|
-
|
|
1671
|
+
x(this, this.j, "Cannot redefine property: " + t);
|
|
1671
1672
|
}
|
|
1672
1673
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1673
1674
|
} else {
|
|
@@ -1681,18 +1682,18 @@ U.g = function(e, t, n, r) {
|
|
|
1681
1682
|
if (r.Y && r.Y[t])
|
|
1682
1683
|
return this.Ka = !0, r.Y[t];
|
|
1683
1684
|
if (r.V && r.V[t])
|
|
1684
|
-
o &&
|
|
1685
|
+
o && x(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1685
1686
|
else
|
|
1686
1687
|
try {
|
|
1687
1688
|
e.h[t] = n;
|
|
1688
1689
|
} catch {
|
|
1689
|
-
o &&
|
|
1690
|
+
o && x(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1690
1691
|
}
|
|
1691
1692
|
}
|
|
1692
1693
|
else
|
|
1693
|
-
o &&
|
|
1694
|
+
o && x(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1694
1695
|
} else
|
|
1695
|
-
o &&
|
|
1696
|
+
o && x(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1696
1697
|
};
|
|
1697
1698
|
U.g.ac = function() {
|
|
1698
1699
|
throw Error("Placeholder getter");
|
|
@@ -1700,13 +1701,13 @@ U.g.ac = function() {
|
|
|
1700
1701
|
U.g.bc = function() {
|
|
1701
1702
|
throw Error("Placeholder setter");
|
|
1702
1703
|
};
|
|
1703
|
-
function
|
|
1704
|
+
function $(e, t, n, r) {
|
|
1704
1705
|
e.g(t.h.prototype, n, e.i(r, !1), y);
|
|
1705
1706
|
}
|
|
1706
1707
|
function Ge(e, t, n, r) {
|
|
1707
1708
|
e.g(t.h.prototype, n, e.ub(r), y);
|
|
1708
1709
|
}
|
|
1709
|
-
function
|
|
1710
|
+
function en(e) {
|
|
1710
1711
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1711
1712
|
throw Error("No scope found");
|
|
1712
1713
|
return e;
|
|
@@ -1719,38 +1720,38 @@ function Ht(e, t, n) {
|
|
|
1719
1720
|
var o = t.body && t.body[0];
|
|
1720
1721
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1721
1722
|
}
|
|
1722
|
-
return o = e.s(null), r = new br(n, r, o), n ||
|
|
1723
|
+
return o = e.s(null), r = new br(n, r, o), n || Oo(e, r.object), ze(e, t, r), r;
|
|
1723
1724
|
}
|
|
1724
|
-
function
|
|
1725
|
+
function tn(e, t, n) {
|
|
1725
1726
|
if (!t)
|
|
1726
1727
|
throw Error("parentScope required");
|
|
1727
1728
|
return e = n || e.s(null), new br(t, t.S, e);
|
|
1728
1729
|
}
|
|
1729
|
-
function
|
|
1730
|
-
for (var n =
|
|
1730
|
+
function nn(e, t) {
|
|
1731
|
+
for (var n = en(e); n && n !== e.N; ) {
|
|
1731
1732
|
if (t in n.object.h)
|
|
1732
1733
|
return n.object.h[t];
|
|
1733
1734
|
n = n.Va;
|
|
1734
1735
|
}
|
|
1735
|
-
if (n === e.N &&
|
|
1736
|
+
if (n === e.N && ht(e, n.object, t))
|
|
1736
1737
|
return e.G(n.object, t);
|
|
1737
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
1738
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || x(e, e.pb, t + " is not defined");
|
|
1738
1739
|
}
|
|
1739
1740
|
function yr(e, t, n) {
|
|
1740
|
-
for (var r =
|
|
1741
|
+
for (var r = en(e), o = r.S; r && r !== e.N; ) {
|
|
1741
1742
|
if (t in r.object.h) {
|
|
1742
1743
|
try {
|
|
1743
1744
|
r.object.h[t] = n;
|
|
1744
1745
|
} catch {
|
|
1745
|
-
o &&
|
|
1746
|
+
o && x(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1746
1747
|
}
|
|
1747
1748
|
return;
|
|
1748
1749
|
}
|
|
1749
1750
|
r = r.Va;
|
|
1750
1751
|
}
|
|
1751
|
-
if (r === e.N && (!o ||
|
|
1752
|
+
if (r === e.N && (!o || ht(e, r.object, t)))
|
|
1752
1753
|
return e.g(r.object, t, n);
|
|
1753
|
-
|
|
1754
|
+
x(e, e.pb, t + " is not defined");
|
|
1754
1755
|
}
|
|
1755
1756
|
function ze(e, t, n) {
|
|
1756
1757
|
if (t.jb)
|
|
@@ -1798,20 +1799,20 @@ function ze(e, t, n) {
|
|
|
1798
1799
|
t.jb = r;
|
|
1799
1800
|
}
|
|
1800
1801
|
for (s in r)
|
|
1801
|
-
r[s] === !0 ? e.g(n.object, s, void 0,
|
|
1802
|
+
r[s] === !0 ? e.g(n.object, s, void 0, Hn) : e.g(n.object, s, Qt(e, r[s], n), Hn);
|
|
1802
1803
|
return r;
|
|
1803
1804
|
}
|
|
1804
1805
|
function pe(e) {
|
|
1805
1806
|
return e.o[e.o.length - 1].isConstructor;
|
|
1806
1807
|
}
|
|
1807
|
-
function
|
|
1808
|
-
return t[0] === Ne ?
|
|
1808
|
+
function rn(e, t) {
|
|
1809
|
+
return t[0] === Ne ? nn(e, t[1]) : e.G(t[0], t[1]);
|
|
1809
1810
|
}
|
|
1810
|
-
function
|
|
1811
|
+
function on(e, t, n) {
|
|
1811
1812
|
return t[0] === Ne ? yr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1812
1813
|
}
|
|
1813
|
-
function
|
|
1814
|
-
throw e.N ? (n !== void 0 && t instanceof
|
|
1814
|
+
function x(e, t, n) {
|
|
1815
|
+
throw e.N ? (n !== void 0 && t instanceof N && (t = e.Aa(t), $t(e, t, n)), qe(e, 4, t), mr) : n === void 0 ? t : n;
|
|
1815
1816
|
}
|
|
1816
1817
|
function qe(e, t, n, r) {
|
|
1817
1818
|
if (t === 0)
|
|
@@ -1858,60 +1859,60 @@ function qe(e, t, n, r) {
|
|
|
1858
1859
|
URIError
|
|
1859
1860
|
}, 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;
|
|
1860
1861
|
}
|
|
1861
|
-
function
|
|
1862
|
+
function z(e, t) {
|
|
1862
1863
|
switch (t.type) {
|
|
1863
1864
|
case "ArrayExpression":
|
|
1864
1865
|
return "[...]";
|
|
1865
1866
|
case "BinaryExpression":
|
|
1866
1867
|
case "LogicalExpression":
|
|
1867
|
-
return
|
|
1868
|
+
return z(e, t.left) + " " + t.operator + " " + z(e, t.right);
|
|
1868
1869
|
case "CallExpression":
|
|
1869
|
-
return
|
|
1870
|
+
return z(e, t.callee) + "(...)";
|
|
1870
1871
|
case "ConditionalExpression":
|
|
1871
|
-
return
|
|
1872
|
+
return z(e, t.test) + " ? " + z(e, t.da) + " : " + z(e, t.alternate);
|
|
1872
1873
|
case "Identifier":
|
|
1873
1874
|
return t.name;
|
|
1874
1875
|
case "Literal":
|
|
1875
1876
|
return t.raw;
|
|
1876
1877
|
case "MemberExpression":
|
|
1877
|
-
var n =
|
|
1878
|
-
return e =
|
|
1878
|
+
var n = z(e, t.object);
|
|
1879
|
+
return e = z(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
|
|
1879
1880
|
case "NewExpression":
|
|
1880
|
-
return "new " +
|
|
1881
|
+
return "new " + z(e, t.callee) + "(...)";
|
|
1881
1882
|
case "ObjectExpression":
|
|
1882
1883
|
return "{...}";
|
|
1883
1884
|
case "ThisExpression":
|
|
1884
1885
|
return "this";
|
|
1885
1886
|
case "UnaryExpression":
|
|
1886
|
-
return t.operator + " " +
|
|
1887
|
+
return t.operator + " " + z(e, t.K);
|
|
1887
1888
|
case "UpdateExpression":
|
|
1888
|
-
return n =
|
|
1889
|
+
return n = z(e, t.K), t.prefix ? t.operator + n : n + t.operator;
|
|
1889
1890
|
}
|
|
1890
1891
|
return "???";
|
|
1891
1892
|
}
|
|
1892
|
-
function
|
|
1893
|
+
function Gn(e, t, n) {
|
|
1893
1894
|
var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
|
|
1894
1895
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1895
1896
|
var s = e.ya();
|
|
1896
|
-
if (i instanceof
|
|
1897
|
+
if (i instanceof N && i.H === "Function") {
|
|
1897
1898
|
var u = i;
|
|
1898
1899
|
s.type = "CallExpression", r = r.scope;
|
|
1899
1900
|
} else {
|
|
1900
1901
|
try {
|
|
1901
1902
|
var p = Re(String(i), "taskCode" + e.ic++);
|
|
1902
|
-
} catch (
|
|
1903
|
-
|
|
1903
|
+
} catch (S) {
|
|
1904
|
+
x(e, e.T, "Invalid code: " + S.message);
|
|
1904
1905
|
}
|
|
1905
|
-
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0],
|
|
1906
|
+
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0], pt(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1906
1907
|
}
|
|
1907
|
-
return t = new
|
|
1908
|
+
return t = new _o(u, o, r, s, t ? n : -1), vr(e, t, n), t.Db;
|
|
1908
1909
|
}
|
|
1909
1910
|
function vr(e, t, n) {
|
|
1910
1911
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
1911
1912
|
return r.time - o.time;
|
|
1912
1913
|
});
|
|
1913
1914
|
}
|
|
1914
|
-
function
|
|
1915
|
+
function Xn(e, t) {
|
|
1915
1916
|
for (var n = 0; n < e.ca.length; n++)
|
|
1916
1917
|
if (e.ca[n].Db == t) {
|
|
1917
1918
|
e.ca.splice(n, 1);
|
|
@@ -1923,17 +1924,17 @@ function Ze(e, t, n) {
|
|
|
1923
1924
|
throw Error("Unexpected call to createGetter");
|
|
1924
1925
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
1925
1926
|
var r = e.ya();
|
|
1926
|
-
return r.type = "CallExpression", e = new
|
|
1927
|
+
return r.type = "CallExpression", e = new b(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1927
1928
|
}
|
|
1928
|
-
function
|
|
1929
|
+
function an(e, t, n, r) {
|
|
1929
1930
|
if (!e.Ka)
|
|
1930
1931
|
throw Error("Unexpected call to createSetter");
|
|
1931
1932
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1932
1933
|
var o = e.ya();
|
|
1933
|
-
return o.type = "CallExpression", e = new
|
|
1934
|
+
return o.type = "CallExpression", e = new b(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1934
1935
|
}
|
|
1935
|
-
function
|
|
1936
|
-
return t == null ? e.Na : t instanceof
|
|
1936
|
+
function _t(e, t) {
|
|
1937
|
+
return t == null ? e.Na : t instanceof N ? t : (e = e.s(de(e, t)), e.data = t, e);
|
|
1937
1938
|
}
|
|
1938
1939
|
U.Xb = function() {
|
|
1939
1940
|
return this.N;
|
|
@@ -1944,33 +1945,33 @@ U.Yb = function() {
|
|
|
1944
1945
|
U.ec = function(e) {
|
|
1945
1946
|
this.o = e;
|
|
1946
1947
|
};
|
|
1947
|
-
function
|
|
1948
|
+
function b(e, t) {
|
|
1948
1949
|
this.node = e, this.scope = t;
|
|
1949
1950
|
}
|
|
1950
1951
|
function br(e, t, n) {
|
|
1951
1952
|
this.Va = e, this.S = t, this.object = n;
|
|
1952
1953
|
}
|
|
1953
|
-
function
|
|
1954
|
+
function N(e) {
|
|
1954
1955
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1955
1956
|
}
|
|
1956
|
-
U =
|
|
1957
|
+
U = N.prototype;
|
|
1957
1958
|
U.xa = null;
|
|
1958
1959
|
U.H = "Object";
|
|
1959
1960
|
U.data = null;
|
|
1960
1961
|
U.toString = function() {
|
|
1961
1962
|
if (!Xe)
|
|
1962
1963
|
return "[object Interpreter.Object]";
|
|
1963
|
-
if (!(this instanceof
|
|
1964
|
+
if (!(this instanceof N))
|
|
1964
1965
|
return String(this);
|
|
1965
1966
|
if (this.H === "Array") {
|
|
1966
|
-
var e =
|
|
1967
|
+
var e = Kn;
|
|
1967
1968
|
e.push(this);
|
|
1968
1969
|
try {
|
|
1969
1970
|
var t = [], n = this.h.length, r = !1;
|
|
1970
1971
|
1024 < n && (n = 1e3, r = !0);
|
|
1971
1972
|
for (var o = 0; o < n; o++) {
|
|
1972
1973
|
var i = this.h[o];
|
|
1973
|
-
t[o] = i instanceof
|
|
1974
|
+
t[o] = i instanceof N && e.indexOf(i) !== -1 ? "..." : i;
|
|
1974
1975
|
}
|
|
1975
1976
|
r && t.push("...");
|
|
1976
1977
|
} finally {
|
|
@@ -1979,7 +1980,7 @@ U.toString = function() {
|
|
|
1979
1980
|
return t.join(",");
|
|
1980
1981
|
}
|
|
1981
1982
|
if (this.H === "Error") {
|
|
1982
|
-
if (e =
|
|
1983
|
+
if (e = Kn, e.indexOf(this) !== -1)
|
|
1983
1984
|
return "[object Error]";
|
|
1984
1985
|
n = this;
|
|
1985
1986
|
do
|
|
@@ -2008,25 +2009,25 @@ U.toString = function() {
|
|
|
2008
2009
|
U.valueOf = function() {
|
|
2009
2010
|
return !Xe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2010
2011
|
};
|
|
2011
|
-
function
|
|
2012
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
2012
|
+
function _o(e, t, n, r, o) {
|
|
2013
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Wo, this.time = 0;
|
|
2013
2014
|
}
|
|
2014
|
-
var
|
|
2015
|
+
var Wo = 0;
|
|
2015
2016
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
2016
2017
|
n = n.elements;
|
|
2017
2018
|
var r = t.A || 0;
|
|
2018
2019
|
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Pe(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
2019
2020
|
if (n[r])
|
|
2020
|
-
return t.A = r, new
|
|
2021
|
+
return t.A = r, new b(n[r], t.scope);
|
|
2021
2022
|
r++;
|
|
2022
2023
|
}
|
|
2023
2024
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
2024
2025
|
};
|
|
2025
2026
|
h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
2026
2027
|
if (!t.ja)
|
|
2027
|
-
return t.ja = !0, t = new
|
|
2028
|
+
return t.ja = !0, t = new b(n.left, t.scope), t.sa = !0, t;
|
|
2028
2029
|
if (!t.Da)
|
|
2029
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
2030
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = rn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ze(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new b(n.right, t.scope));
|
|
2030
2031
|
if (t.ta)
|
|
2031
2032
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2032
2033
|
else {
|
|
@@ -2071,16 +2072,16 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2071
2072
|
default:
|
|
2072
2073
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2073
2074
|
}
|
|
2074
|
-
if (n =
|
|
2075
|
-
return t.ta = !0, t.ib = r,
|
|
2075
|
+
if (n = on(this, t.Fa, r))
|
|
2076
|
+
return t.ta = !0, t.ib = r, an(this, n, t.Fa, r);
|
|
2076
2077
|
e.pop(), e[e.length - 1].value = r;
|
|
2077
2078
|
}
|
|
2078
2079
|
};
|
|
2079
2080
|
h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
2080
2081
|
if (!t.ja)
|
|
2081
|
-
return t.ja = !0, new
|
|
2082
|
+
return t.ja = !0, new b(n.left, t.scope);
|
|
2082
2083
|
if (!t.Da)
|
|
2083
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2084
|
+
return t.Da = !0, t.ma = t.value, new b(n.right, t.scope);
|
|
2084
2085
|
e.pop();
|
|
2085
2086
|
var r = t.ma;
|
|
2086
2087
|
switch (t = t.value, n.operator) {
|
|
@@ -2142,10 +2143,10 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2142
2143
|
n = r >>> t;
|
|
2143
2144
|
break;
|
|
2144
2145
|
case "in":
|
|
2145
|
-
t instanceof
|
|
2146
|
+
t instanceof N || x(this, this.j, "'in' expects an object, not '" + t + "'"), n = ht(this, t, r);
|
|
2146
2147
|
break;
|
|
2147
2148
|
case "instanceof":
|
|
2148
|
-
H(this, t, this.O) ||
|
|
2149
|
+
H(this, t, this.O) || x(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof N ? H(this, r, t) : !1;
|
|
2149
2150
|
break;
|
|
2150
2151
|
default:
|
|
2151
2152
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2155,7 +2156,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2155
2156
|
h.prototype.stepBlockStatement = function(e, t, n) {
|
|
2156
2157
|
var r = t.A || 0;
|
|
2157
2158
|
if (n = n.body[r])
|
|
2158
|
-
return t.A = r + 1, new
|
|
2159
|
+
return t.A = r + 1, new b(n, t.scope);
|
|
2159
2160
|
e.pop();
|
|
2160
2161
|
};
|
|
2161
2162
|
h.prototype.stepBreakStatement = function(e, t, n) {
|
|
@@ -2165,14 +2166,14 @@ h.prototype.Hb = 0;
|
|
|
2165
2166
|
h.prototype.stepCallExpression = function(e, t, n) {
|
|
2166
2167
|
if (!t.ia) {
|
|
2167
2168
|
t.ia = 1;
|
|
2168
|
-
var r = new
|
|
2169
|
+
var r = new b(n.callee, t.scope);
|
|
2169
2170
|
return r.sa = !0, r;
|
|
2170
2171
|
}
|
|
2171
2172
|
if (t.ia === 1) {
|
|
2172
2173
|
t.ia = 2;
|
|
2173
2174
|
var o = t.value;
|
|
2174
2175
|
if (Array.isArray(o)) {
|
|
2175
|
-
if (t.U =
|
|
2176
|
+
if (t.U = rn(this, o), o[0] === Ne ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2176
2177
|
return t.ia = 1, Ze(this, o, t.value);
|
|
2177
2178
|
} else
|
|
2178
2179
|
t.U = o;
|
|
@@ -2180,9 +2181,9 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2180
2181
|
}
|
|
2181
2182
|
if (o = t.U, !t.Qa) {
|
|
2182
2183
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2183
|
-
return new
|
|
2184
|
+
return new b(n.arguments[t.A++], t.scope);
|
|
2184
2185
|
if (n.type === "NewExpression") {
|
|
2185
|
-
if (o instanceof
|
|
2186
|
+
if (o instanceof N && !o.Ab || x(this, this.j, z(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2186
2187
|
t.B = Pe(this);
|
|
2187
2188
|
else {
|
|
2188
2189
|
var i = o.h.prototype;
|
|
@@ -2195,12 +2196,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2195
2196
|
if (t.eb)
|
|
2196
2197
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2197
2198
|
else {
|
|
2198
|
-
if (t.eb = !0, o instanceof
|
|
2199
|
+
if (t.eb = !0, o instanceof N || x(this, this.j, z(this, n.callee) + " is not a function"), e = o.node) {
|
|
2199
2200
|
for (n = Ht(this, e.body, o.Va), r = Pe(this), o = 0; o < t.F.length; o++)
|
|
2200
2201
|
this.g(r, o, t.F[o]);
|
|
2201
2202
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2202
2203
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2203
|
-
return n.S || (t.B =
|
|
2204
|
+
return n.S || (t.B = _t(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new b(e.body, n);
|
|
2204
2205
|
}
|
|
2205
2206
|
if (o.eval)
|
|
2206
2207
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2209,30 +2210,30 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2209
2210
|
try {
|
|
2210
2211
|
r = Re(String(o), "eval" + this.Hb++);
|
|
2211
2212
|
} catch (u) {
|
|
2212
|
-
|
|
2213
|
+
x(this, this.T, "Invalid code: " + u.message);
|
|
2213
2214
|
}
|
|
2214
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body,
|
|
2215
|
+
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 = Ht(this, r, n) : ze(this, r, n), this.value = void 0, new b(o, n);
|
|
2215
2216
|
}
|
|
2216
2217
|
else if (o.Ta)
|
|
2217
|
-
t.scope.S || (t.B =
|
|
2218
|
+
t.scope.S || (t.B = _t(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2218
2219
|
else if (o.Za) {
|
|
2219
2220
|
var s = this;
|
|
2220
2221
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2221
2222
|
t.value = u, s.za = !1;
|
|
2222
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2223
|
+
}), this.za = !0, t.scope.S || (t.B = _t(this, t.B)), o.Za.apply(t.B, r);
|
|
2223
2224
|
} else
|
|
2224
|
-
|
|
2225
|
+
x(this, this.j, z(this, n.callee) + " is not callable");
|
|
2225
2226
|
}
|
|
2226
2227
|
};
|
|
2227
2228
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
2228
2229
|
var r = t.na || 0;
|
|
2229
2230
|
if (r === 0)
|
|
2230
|
-
return t.na = 1, new
|
|
2231
|
+
return t.na = 1, new b(n.test, t.scope);
|
|
2231
2232
|
if (r === 1) {
|
|
2232
2233
|
if (t.na = 2, (r = !!t.value) && n.da)
|
|
2233
|
-
return new
|
|
2234
|
+
return new b(n.da, t.scope);
|
|
2234
2235
|
if (!r && n.alternate)
|
|
2235
|
-
return new
|
|
2236
|
+
return new b(n.alternate, t.scope);
|
|
2236
2237
|
this.value = void 0;
|
|
2237
2238
|
}
|
|
2238
2239
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
@@ -2245,11 +2246,11 @@ h.prototype.stepDebuggerStatement = function(e) {
|
|
|
2245
2246
|
};
|
|
2246
2247
|
h.prototype.stepDoWhileStatement = function(e, t, n) {
|
|
2247
2248
|
if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2248
|
-
return t.ga = !0, new
|
|
2249
|
+
return t.ga = !0, new b(n.test, t.scope);
|
|
2249
2250
|
if (!t.value)
|
|
2250
2251
|
e.pop();
|
|
2251
2252
|
else if (n.body)
|
|
2252
|
-
return t.ga = !1, t.W = !0, new
|
|
2253
|
+
return t.ga = !1, t.W = !0, new b(n.body, t.scope);
|
|
2253
2254
|
};
|
|
2254
2255
|
h.prototype.stepEmptyStatement = function(e) {
|
|
2255
2256
|
e.pop();
|
|
@@ -2257,23 +2258,23 @@ h.prototype.stepEmptyStatement = function(e) {
|
|
|
2257
2258
|
h.prototype.stepEvalProgram_ = function(e, t, n) {
|
|
2258
2259
|
var r = t.A || 0;
|
|
2259
2260
|
if (n = n.body[r])
|
|
2260
|
-
return t.A = r + 1, new
|
|
2261
|
+
return t.A = r + 1, new b(n, t.scope);
|
|
2261
2262
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2262
2263
|
};
|
|
2263
2264
|
h.prototype.stepExpressionStatement = function(e, t, n) {
|
|
2264
2265
|
if (!t.ka)
|
|
2265
|
-
return this.value = void 0, t.ka = !0, new
|
|
2266
|
+
return this.value = void 0, t.ka = !0, new b(n.la, t.scope);
|
|
2266
2267
|
e.pop(), this.value = t.value;
|
|
2267
2268
|
};
|
|
2268
2269
|
h.prototype.stepForInStatement = function(e, t, n) {
|
|
2269
2270
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2270
|
-
return t.scope.S &&
|
|
2271
|
+
return t.scope.S && x(this, this.T, "for-in loop variable declaration may not have an initializer"), new b(n.left, t.scope);
|
|
2271
2272
|
if (!t.Ca)
|
|
2272
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2273
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new b(n.right, t.scope);
|
|
2273
2274
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2274
2275
|
e:
|
|
2275
2276
|
for (; ; ) {
|
|
2276
|
-
if (t.u instanceof
|
|
2277
|
+
if (t.u instanceof N)
|
|
2277
2278
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2278
2279
|
var r = t.wa.shift();
|
|
2279
2280
|
if (r === void 0)
|
|
@@ -2299,75 +2300,75 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2299
2300
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2300
2301
|
t.pa = [Ne, e.fa[0].id.name];
|
|
2301
2302
|
else
|
|
2302
|
-
return t.pa = null, t = new
|
|
2303
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2304
|
-
return
|
|
2303
|
+
return t.pa = null, t = new b(e, t.scope), t.sa = !0, t;
|
|
2304
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = on(this, t.pa, e)))
|
|
2305
|
+
return an(this, r, t.pa, e);
|
|
2305
2306
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2306
|
-
return new
|
|
2307
|
+
return new b(n.body, t.scope);
|
|
2307
2308
|
};
|
|
2308
2309
|
h.prototype.stepForStatement = function(e, t, n) {
|
|
2309
2310
|
switch (t.na) {
|
|
2310
2311
|
default:
|
|
2311
2312
|
if (t.na = 1, n.ua)
|
|
2312
|
-
return new
|
|
2313
|
+
return new b(n.ua, t.scope);
|
|
2313
2314
|
break;
|
|
2314
2315
|
case 1:
|
|
2315
2316
|
if (t.na = 2, n.test)
|
|
2316
|
-
return new
|
|
2317
|
+
return new b(n.test, t.scope);
|
|
2317
2318
|
break;
|
|
2318
2319
|
case 2:
|
|
2319
2320
|
if (t.na = 3, n.test && !t.value)
|
|
2320
2321
|
e.pop();
|
|
2321
2322
|
else
|
|
2322
|
-
return t.W = !0, new
|
|
2323
|
+
return t.W = !0, new b(n.body, t.scope);
|
|
2323
2324
|
break;
|
|
2324
2325
|
case 3:
|
|
2325
2326
|
if (t.na = 1, n.update)
|
|
2326
|
-
return new
|
|
2327
|
+
return new b(n.update, t.scope);
|
|
2327
2328
|
}
|
|
2328
2329
|
};
|
|
2329
2330
|
h.prototype.stepFunctionDeclaration = function(e) {
|
|
2330
2331
|
e.pop();
|
|
2331
2332
|
};
|
|
2332
2333
|
h.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2333
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2334
|
+
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, Jt);
|
|
2334
2335
|
};
|
|
2335
2336
|
h.prototype.stepIdentifier = function(e, t, n) {
|
|
2336
2337
|
if (e.pop(), t.sa)
|
|
2337
2338
|
e[e.length - 1].value = [Ne, n.name];
|
|
2338
2339
|
else {
|
|
2339
|
-
if (t =
|
|
2340
|
+
if (t = nn(this, n.name), this.P)
|
|
2340
2341
|
return Ze(this, t, this.Na);
|
|
2341
2342
|
e[e.length - 1].value = t;
|
|
2342
2343
|
}
|
|
2343
2344
|
};
|
|
2344
2345
|
h.prototype.stepIfStatement = h.prototype.stepConditionalExpression;
|
|
2345
2346
|
h.prototype.stepLabeledStatement = function(e, t, n) {
|
|
2346
|
-
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new
|
|
2347
|
+
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new b(n.body, t.scope), t.labels = e, t;
|
|
2347
2348
|
};
|
|
2348
2349
|
h.prototype.stepLiteral = function(e, t, n) {
|
|
2349
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2350
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), qt(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2350
2351
|
};
|
|
2351
2352
|
h.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2352
2353
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
2353
2354
|
throw SyntaxError("Unknown logical operator: " + n.operator);
|
|
2354
2355
|
if (!t.ja)
|
|
2355
|
-
return t.ja = !0, new
|
|
2356
|
+
return t.ja = !0, new b(n.left, t.scope);
|
|
2356
2357
|
if (t.Da)
|
|
2357
2358
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2358
2359
|
else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
|
|
2359
2360
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2360
2361
|
else
|
|
2361
|
-
return t.Da = !0, new
|
|
2362
|
+
return t.Da = !0, new b(n.right, t.scope);
|
|
2362
2363
|
};
|
|
2363
2364
|
h.prototype.stepMemberExpression = function(e, t, n) {
|
|
2364
2365
|
if (!t.Ca)
|
|
2365
|
-
return t.Ca = !0, new
|
|
2366
|
+
return t.Ca = !0, new b(n.object, t.scope);
|
|
2366
2367
|
if (n.bb)
|
|
2367
2368
|
if (t.Vb)
|
|
2368
2369
|
n = t.value;
|
|
2369
2370
|
else
|
|
2370
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2371
|
+
return t.u = t.value, t.Vb = !0, new b(n.Wa, t.scope);
|
|
2371
2372
|
else
|
|
2372
2373
|
t.u = t.value, n = n.Wa.name;
|
|
2373
2374
|
if (e.pop(), t.sa)
|
|
@@ -2394,7 +2395,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2394
2395
|
i = s.value;
|
|
2395
2396
|
else
|
|
2396
2397
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2397
|
-
return t.Pa = i, new
|
|
2398
|
+
return t.Pa = i, new b(o.value, t.scope);
|
|
2398
2399
|
}
|
|
2399
2400
|
for (s in t.Ja)
|
|
2400
2401
|
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, Je, {
|
|
@@ -2407,35 +2408,35 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2407
2408
|
};
|
|
2408
2409
|
h.prototype.stepProgram = function(e, t, n) {
|
|
2409
2410
|
if (e = n.body.shift())
|
|
2410
|
-
return t.done = !1, new
|
|
2411
|
+
return t.done = !1, new b(e, t.scope);
|
|
2411
2412
|
t.done = !0;
|
|
2412
2413
|
};
|
|
2413
2414
|
h.prototype.stepReturnStatement = function(e, t, n) {
|
|
2414
2415
|
if (n.K && !t.ka)
|
|
2415
|
-
return t.ka = !0, new
|
|
2416
|
+
return t.ka = !0, new b(n.K, t.scope);
|
|
2416
2417
|
qe(this, 3, t.value);
|
|
2417
2418
|
};
|
|
2418
2419
|
h.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2419
2420
|
var r = t.A || 0;
|
|
2420
2421
|
if (n = n.xb[r])
|
|
2421
|
-
return t.A = r + 1, new
|
|
2422
|
+
return t.A = r + 1, new b(n, t.scope);
|
|
2422
2423
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2423
2424
|
};
|
|
2424
2425
|
h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
2425
2426
|
if (!t.ga)
|
|
2426
|
-
return t.ga = 1, new
|
|
2427
|
+
return t.ga = 1, new b(n.Qb, t.scope);
|
|
2427
2428
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2428
2429
|
var r = t.gb || 0, o = n.tb[r];
|
|
2429
2430
|
if (t.Ha || !o || o.test)
|
|
2430
2431
|
if (o || t.Ha || t.cb === -1)
|
|
2431
2432
|
if (o) {
|
|
2432
2433
|
if (!t.Ha && !t.Fb && o.test)
|
|
2433
|
-
return t.Fb = !0, new
|
|
2434
|
+
return t.Fb = !0, new b(o.test, t.scope);
|
|
2434
2435
|
if (t.Ha || t.value === t.hc) {
|
|
2435
2436
|
t.Ha = !0;
|
|
2436
2437
|
var i = t.A || 0;
|
|
2437
2438
|
if (o.da[i])
|
|
2438
|
-
return t.Zb = !0, t.A = i + 1, new
|
|
2439
|
+
return t.Zb = !0, t.A = i + 1, new b(o.da[i], t.scope);
|
|
2439
2440
|
}
|
|
2440
2441
|
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2441
2442
|
} else {
|
|
@@ -2449,26 +2450,26 @@ h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2449
2450
|
}
|
|
2450
2451
|
};
|
|
2451
2452
|
h.prototype.stepThisExpression = function(e) {
|
|
2452
|
-
e.pop(), e[e.length - 1].value =
|
|
2453
|
+
e.pop(), e[e.length - 1].value = nn(this, "this");
|
|
2453
2454
|
};
|
|
2454
2455
|
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2455
2456
|
if (t.ka)
|
|
2456
|
-
|
|
2457
|
+
x(this, t.value);
|
|
2457
2458
|
else
|
|
2458
|
-
return t.ka = !0, new
|
|
2459
|
+
return t.ka = !0, new b(n.K, t.scope);
|
|
2459
2460
|
};
|
|
2460
2461
|
h.prototype.stepTryStatement = function(e, t, n) {
|
|
2461
2462
|
if (!t.Rb)
|
|
2462
|
-
return t.Rb = !0, new
|
|
2463
|
+
return t.Rb = !0, new b(n.block, t.scope);
|
|
2463
2464
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2464
|
-
return t.Tb = !0, e =
|
|
2465
|
+
return t.Tb = !0, e = tn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new b(n.Ea.body, e);
|
|
2465
2466
|
if (!t.Sb && n.fb)
|
|
2466
|
-
return t.Sb = !0, new
|
|
2467
|
+
return t.Sb = !0, new b(n.fb, t.scope);
|
|
2467
2468
|
e.pop(), t.ea && qe(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2468
2469
|
};
|
|
2469
2470
|
h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2470
2471
|
if (!t.ka)
|
|
2471
|
-
return t.ka = !0, e = new
|
|
2472
|
+
return t.ka = !0, e = new b(n.K, t.scope), e.sa = n.operator === "delete", e;
|
|
2472
2473
|
e.pop();
|
|
2473
2474
|
var r = t.value;
|
|
2474
2475
|
switch (n.operator) {
|
|
@@ -2491,7 +2492,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2491
2492
|
try {
|
|
2492
2493
|
delete o.h[r];
|
|
2493
2494
|
} catch {
|
|
2494
|
-
t.scope.S ?
|
|
2495
|
+
t.scope.S ? x(this, this.j, "Cannot delete property '" + r + "' of '" + o + "'") : n = !1;
|
|
2495
2496
|
}
|
|
2496
2497
|
}
|
|
2497
2498
|
r = n;
|
|
@@ -2509,9 +2510,9 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2509
2510
|
};
|
|
2510
2511
|
h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
2511
2512
|
if (!t.ja)
|
|
2512
|
-
return t.ja = !0, e = new
|
|
2513
|
+
return t.ja = !0, e = new b(n.K, t.scope), e.sa = !0, e;
|
|
2513
2514
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2514
|
-
var r =
|
|
2515
|
+
var r = rn(this, t.Ga);
|
|
2515
2516
|
if (t.ma = r, this.P)
|
|
2516
2517
|
return t.Ba = !0, Ze(this, r, t.Ga);
|
|
2517
2518
|
}
|
|
@@ -2524,8 +2525,8 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2524
2525
|
o = r - 1;
|
|
2525
2526
|
else
|
|
2526
2527
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2527
|
-
if (n = n.prefix ? o : r, r =
|
|
2528
|
-
return t.ta = !0, t.ib = n,
|
|
2528
|
+
if (n = n.prefix ? o : r, r = on(this, t.Ga, o))
|
|
2529
|
+
return t.ta = !0, t.ib = n, an(this, r, t.Ga, o);
|
|
2529
2530
|
e.pop(), e[e.length - 1].value = n;
|
|
2530
2531
|
}
|
|
2531
2532
|
};
|
|
@@ -2534,13 +2535,13 @@ h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2534
2535
|
var r = t.A || 0, o = n[r];
|
|
2535
2536
|
for (t.Bb && o && (yr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2536
2537
|
if (o.ua)
|
|
2537
|
-
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new
|
|
2538
|
+
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new b(o.ua, t.scope);
|
|
2538
2539
|
o = n[++r];
|
|
2539
2540
|
}
|
|
2540
2541
|
e.pop();
|
|
2541
2542
|
};
|
|
2542
2543
|
h.prototype.stepWithStatement = function(e, t, n) {
|
|
2543
|
-
return t.Ca ? (e.pop(), e =
|
|
2544
|
+
return t.Ca ? (e.pop(), e = tn(this, t.scope, t.value), new b(n.body, e)) : (t.Ca = !0, new b(n.object, t.scope));
|
|
2544
2545
|
};
|
|
2545
2546
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2546
2547
|
ve.Interpreter = h;
|
|
@@ -2559,7 +2560,7 @@ h.prototype.getGlobalScope = h.prototype.Xb;
|
|
|
2559
2560
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2560
2561
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2561
2562
|
h.VALUE_IN_DESCRIPTOR = Je;
|
|
2562
|
-
const
|
|
2563
|
+
const $o = (e) => e.split(`
|
|
2563
2564
|
`).map((t) => {
|
|
2564
2565
|
const n = t.trim();
|
|
2565
2566
|
if (t.includes("__awaiter"))
|
|
@@ -2572,7 +2573,7 @@ const Wo = (e) => e.split(`
|
|
|
2572
2573
|
${u}
|
|
2573
2574
|
`;
|
|
2574
2575
|
}).filter(Boolean).join(`
|
|
2575
|
-
`),
|
|
2576
|
+
`), Yn = (e) => e + "JSON", Ho = ({
|
|
2576
2577
|
builder: e,
|
|
2577
2578
|
context: t,
|
|
2578
2579
|
event: n,
|
|
@@ -2589,52 +2590,52 @@ const Wo = (e) => e.split(`
|
|
|
2589
2590
|
context: t,
|
|
2590
2591
|
event: n,
|
|
2591
2592
|
state: u
|
|
2592
|
-
}),
|
|
2593
|
-
const
|
|
2594
|
-
return `var ${
|
|
2593
|
+
}), S = p.map(([C]) => {
|
|
2594
|
+
const v = Yn(C);
|
|
2595
|
+
return `var ${C} = ${v} === undefined ? undefined : JSON.parse(${v});`;
|
|
2595
2596
|
}).join(`
|
|
2596
|
-
`),
|
|
2597
|
-
if (
|
|
2598
|
-
|
|
2597
|
+
`), k = $o(s);
|
|
2598
|
+
if (k === "") {
|
|
2599
|
+
Y.warn("Skipping evaluation of empty code block.");
|
|
2599
2600
|
return;
|
|
2600
2601
|
}
|
|
2601
2602
|
const m = `
|
|
2602
2603
|
function theFunction() {
|
|
2603
|
-
${
|
|
2604
|
+
${S}
|
|
2604
2605
|
|
|
2605
|
-
${
|
|
2606
|
+
${k}
|
|
2606
2607
|
}
|
|
2607
2608
|
theFunction();
|
|
2608
|
-
`,
|
|
2609
|
-
const B = hr(u,
|
|
2609
|
+
`, R = (C, v) => {
|
|
2610
|
+
const B = hr(u, C, v);
|
|
2610
2611
|
i == null || i(B);
|
|
2611
|
-
},
|
|
2612
|
-
p.forEach(([B,
|
|
2613
|
-
const
|
|
2614
|
-
|
|
2615
|
-
}),
|
|
2612
|
+
}, P = function(C, v) {
|
|
2613
|
+
p.forEach(([B, j]) => {
|
|
2614
|
+
const w = JSON.stringify(j);
|
|
2615
|
+
C.setProperty(v, Yn(B), w);
|
|
2616
|
+
}), C.setProperty(v, "setRootState", C.createNativeFunction(R));
|
|
2616
2617
|
};
|
|
2617
2618
|
try {
|
|
2618
|
-
const
|
|
2619
|
-
return
|
|
2620
|
-
} catch (
|
|
2621
|
-
|
|
2622
|
-
e:
|
|
2619
|
+
const C = new h(m, P);
|
|
2620
|
+
return C.run(), C.pseudoToNative(C.value);
|
|
2621
|
+
} catch (C) {
|
|
2622
|
+
Y.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2623
|
+
e: C
|
|
2623
2624
|
});
|
|
2624
2625
|
return;
|
|
2625
2626
|
}
|
|
2626
2627
|
}, oe = (e) => e != null;
|
|
2627
|
-
function
|
|
2628
|
+
function Ko() {
|
|
2628
2629
|
var e;
|
|
2629
2630
|
return typeof process < "u" && oe((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2630
2631
|
}
|
|
2631
|
-
const
|
|
2632
|
+
const Go = () => {
|
|
2632
2633
|
var r;
|
|
2633
|
-
if (!
|
|
2634
|
+
if (!Ko())
|
|
2634
2635
|
return !1;
|
|
2635
2636
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2636
|
-
return e && t && !n ? (
|
|
2637
|
-
},
|
|
2637
|
+
return e && t && !n ? (Y.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;
|
|
2638
|
+
}, Xo = (e) => G() || Go() ? Io(e) : Ho(e), sn = class Oe {
|
|
2638
2639
|
static getCacheKey(t) {
|
|
2639
2640
|
return JSON.stringify({
|
|
2640
2641
|
...t,
|
|
@@ -2652,10 +2653,10 @@ const Ko = () => {
|
|
|
2652
2653
|
});
|
|
2653
2654
|
}
|
|
2654
2655
|
};
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
let lt =
|
|
2658
|
-
function
|
|
2656
|
+
sn.cacheLimit = 20;
|
|
2657
|
+
sn.cache = /* @__PURE__ */ new Map();
|
|
2658
|
+
let lt = sn;
|
|
2659
|
+
function ln({
|
|
2659
2660
|
code: e,
|
|
2660
2661
|
context: t,
|
|
2661
2662
|
localState: n,
|
|
@@ -2666,14 +2667,14 @@ function cn({
|
|
|
2666
2667
|
enableCache: u
|
|
2667
2668
|
}) {
|
|
2668
2669
|
if (e === "") {
|
|
2669
|
-
|
|
2670
|
+
Y.warn("Skipping evaluation of empty code block.");
|
|
2670
2671
|
return;
|
|
2671
2672
|
}
|
|
2672
2673
|
const p = {
|
|
2673
|
-
code:
|
|
2674
|
+
code: Eo(e, {
|
|
2674
2675
|
isExpression: s
|
|
2675
2676
|
}),
|
|
2676
|
-
builder:
|
|
2677
|
+
builder: Co(),
|
|
2677
2678
|
context: t,
|
|
2678
2679
|
event: i,
|
|
2679
2680
|
rootSetState: o,
|
|
@@ -2681,26 +2682,26 @@ function cn({
|
|
|
2681
2682
|
localState: n
|
|
2682
2683
|
};
|
|
2683
2684
|
if (u) {
|
|
2684
|
-
const
|
|
2685
|
-
if (
|
|
2686
|
-
return
|
|
2685
|
+
const S = lt.getCacheKey(p), k = lt.getCachedValue(S);
|
|
2686
|
+
if (k)
|
|
2687
|
+
return k.value;
|
|
2687
2688
|
}
|
|
2688
2689
|
try {
|
|
2689
|
-
const
|
|
2690
|
+
const S = Xo(p);
|
|
2690
2691
|
if (u) {
|
|
2691
|
-
const
|
|
2692
|
-
lt.setCachedValue(
|
|
2692
|
+
const k = lt.getCacheKey(p);
|
|
2693
|
+
lt.setCachedValue(k, S);
|
|
2693
2694
|
}
|
|
2694
|
-
return
|
|
2695
|
-
} catch (
|
|
2696
|
-
|
|
2695
|
+
return S;
|
|
2696
|
+
} catch (S) {
|
|
2697
|
+
Y.error("Failed code evaluation: " + S.message, {
|
|
2697
2698
|
code: e
|
|
2698
2699
|
});
|
|
2699
2700
|
return;
|
|
2700
2701
|
}
|
|
2701
2702
|
}
|
|
2702
|
-
const
|
|
2703
|
-
const
|
|
2703
|
+
const mt = (e) => JSON.parse(JSON.stringify(e));
|
|
2704
|
+
const Yo = ({
|
|
2704
2705
|
block: e,
|
|
2705
2706
|
context: t,
|
|
2706
2707
|
localState: n,
|
|
@@ -2709,7 +2710,7 @@ const Xo = ({
|
|
|
2709
2710
|
}) => {
|
|
2710
2711
|
if (!e.bindings)
|
|
2711
2712
|
return e;
|
|
2712
|
-
const i =
|
|
2713
|
+
const i = mt(e), s = {
|
|
2713
2714
|
...i,
|
|
2714
2715
|
properties: {
|
|
2715
2716
|
...i.properties
|
|
@@ -2719,7 +2720,7 @@ const Xo = ({
|
|
|
2719
2720
|
}
|
|
2720
2721
|
};
|
|
2721
2722
|
for (const u in e.bindings) {
|
|
2722
|
-
const p = e.bindings[u],
|
|
2723
|
+
const p = e.bindings[u], S = ln({
|
|
2723
2724
|
code: p,
|
|
2724
2725
|
localState: n,
|
|
2725
2726
|
rootState: r,
|
|
@@ -2727,11 +2728,11 @@ const Xo = ({
|
|
|
2727
2728
|
context: t,
|
|
2728
2729
|
enableCache: !0
|
|
2729
2730
|
});
|
|
2730
|
-
hr(s, u,
|
|
2731
|
+
hr(s, u, S);
|
|
2731
2732
|
}
|
|
2732
2733
|
return s;
|
|
2733
2734
|
};
|
|
2734
|
-
function
|
|
2735
|
+
function dt({
|
|
2735
2736
|
block: e,
|
|
2736
2737
|
context: t,
|
|
2737
2738
|
shouldEvaluateBindings: n,
|
|
@@ -2740,7 +2741,7 @@ function ft({
|
|
|
2740
2741
|
rootSetState: i
|
|
2741
2742
|
}) {
|
|
2742
2743
|
const s = e;
|
|
2743
|
-
return n ?
|
|
2744
|
+
return n ? Yo({
|
|
2744
2745
|
block: s,
|
|
2745
2746
|
localState: r,
|
|
2746
2747
|
rootState: o,
|
|
@@ -2748,31 +2749,31 @@ function ft({
|
|
|
2748
2749
|
context: t
|
|
2749
2750
|
}) : s;
|
|
2750
2751
|
}
|
|
2751
|
-
const
|
|
2752
|
+
const Jo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Sr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2752
2753
|
if (typeof r == "string")
|
|
2753
|
-
return `${
|
|
2754
|
-
}).filter(oe),
|
|
2755
|
-
`),
|
|
2754
|
+
return `${Jo(n)}: ${r};`;
|
|
2755
|
+
}).filter(oe), zo = (e) => Sr(e).join(`
|
|
2756
|
+
`), ct = ({
|
|
2756
2757
|
mediaQuery: e,
|
|
2757
2758
|
className: t,
|
|
2758
2759
|
styles: n
|
|
2759
2760
|
}) => {
|
|
2760
2761
|
const r = `.${t} {
|
|
2761
|
-
${
|
|
2762
|
+
${zo(n)}
|
|
2762
2763
|
}`;
|
|
2763
2764
|
return e ? `${e} {
|
|
2764
2765
|
${r}
|
|
2765
2766
|
}` : r;
|
|
2766
2767
|
};
|
|
2767
|
-
function
|
|
2768
|
+
function qo({
|
|
2768
2769
|
style: e
|
|
2769
2770
|
}) {
|
|
2770
2771
|
return e;
|
|
2771
2772
|
}
|
|
2772
|
-
const
|
|
2773
|
+
const Zo = ({
|
|
2773
2774
|
block: e,
|
|
2774
2775
|
context: t
|
|
2775
|
-
}) => wr(
|
|
2776
|
+
}) => wr(qo({
|
|
2776
2777
|
style: e.style || {},
|
|
2777
2778
|
context: t,
|
|
2778
2779
|
block: e
|
|
@@ -2790,13 +2791,13 @@ function wr(e) {
|
|
|
2790
2791
|
return e;
|
|
2791
2792
|
}
|
|
2792
2793
|
}
|
|
2793
|
-
const
|
|
2794
|
+
const Qo = ({
|
|
2794
2795
|
block: e,
|
|
2795
2796
|
context: t,
|
|
2796
2797
|
registeredComponents: n
|
|
2797
2798
|
}) => {
|
|
2798
2799
|
var i;
|
|
2799
|
-
const r = (i =
|
|
2800
|
+
const r = (i = dt({
|
|
2800
2801
|
block: e,
|
|
2801
2802
|
localState: t.localState,
|
|
2802
2803
|
rootState: t.rootState,
|
|
@@ -2812,7 +2813,7 @@ const Zo = ({
|
|
|
2812
2813
|
console.warn(`
|
|
2813
2814
|
Could not find a registered component named "${r}".
|
|
2814
2815
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2815
|
-
},
|
|
2816
|
+
}, ei = ({
|
|
2816
2817
|
block: e,
|
|
2817
2818
|
context: t
|
|
2818
2819
|
}) => {
|
|
@@ -2822,7 +2823,7 @@ const Zo = ({
|
|
|
2822
2823
|
} = e;
|
|
2823
2824
|
if (!(n != null && n.collection))
|
|
2824
2825
|
return;
|
|
2825
|
-
const o =
|
|
2826
|
+
const o = ln({
|
|
2826
2827
|
code: n.collection,
|
|
2827
2828
|
localState: t.localState,
|
|
2828
2829
|
rootState: t.rootState,
|
|
@@ -2833,15 +2834,15 @@ const Zo = ({
|
|
|
2833
2834
|
if (!Array.isArray(o))
|
|
2834
2835
|
return;
|
|
2835
2836
|
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
2836
|
-
return o.map((p,
|
|
2837
|
+
return o.map((p, S) => ({
|
|
2837
2838
|
context: {
|
|
2838
2839
|
...t,
|
|
2839
2840
|
localState: {
|
|
2840
2841
|
...t.localState,
|
|
2841
|
-
$index:
|
|
2842
|
+
$index: S,
|
|
2842
2843
|
$item: p,
|
|
2843
2844
|
[s]: p,
|
|
2844
|
-
[`$${s}Index`]:
|
|
2845
|
+
[`$${s}Index`]: S
|
|
2845
2846
|
}
|
|
2846
2847
|
},
|
|
2847
2848
|
block: r
|
|
@@ -2862,11 +2863,11 @@ const Zo = ({
|
|
|
2862
2863
|
default: 991,
|
|
2863
2864
|
max: 1200
|
|
2864
2865
|
}
|
|
2865
|
-
},
|
|
2866
|
+
}, Jn = (e, t = xr) => `@media (max-width: ${t[e].max}px)`, kr = ({
|
|
2866
2867
|
small: e,
|
|
2867
2868
|
medium: t
|
|
2868
2869
|
}) => {
|
|
2869
|
-
const n =
|
|
2870
|
+
const n = mt(xr);
|
|
2870
2871
|
if (!e || !t)
|
|
2871
2872
|
return n;
|
|
2872
2873
|
const r = Math.floor(e / 2);
|
|
@@ -2889,7 +2890,7 @@ const Zo = ({
|
|
|
2889
2890
|
default: i + 1
|
|
2890
2891
|
}, n;
|
|
2891
2892
|
};
|
|
2892
|
-
function
|
|
2893
|
+
function gt(e) {
|
|
2893
2894
|
return /* @__PURE__ */ A(
|
|
2894
2895
|
"style",
|
|
2895
2896
|
{
|
|
@@ -2898,9 +2899,50 @@ function mt(e) {
|
|
|
2898
2899
|
}
|
|
2899
2900
|
);
|
|
2900
2901
|
}
|
|
2901
|
-
function
|
|
2902
|
+
function zn(e, ...t) {
|
|
2903
|
+
const n = Object(e);
|
|
2904
|
+
for (let r = 1; r < arguments.length; r++) {
|
|
2905
|
+
const o = arguments[r];
|
|
2906
|
+
if (o != null)
|
|
2907
|
+
for (const i in o)
|
|
2908
|
+
Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]);
|
|
2909
|
+
}
|
|
2910
|
+
return n;
|
|
2911
|
+
}
|
|
2912
|
+
const Cr = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
2913
|
+
function ti(e) {
|
|
2914
|
+
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2915
|
+
}
|
|
2916
|
+
function ni(e, t) {
|
|
2917
|
+
const n = ri(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
2918
|
+
for (const u of s)
|
|
2919
|
+
for (const p of n)
|
|
2920
|
+
p in u || (u[p] = r[p]);
|
|
2921
|
+
}
|
|
2922
|
+
function ri(e) {
|
|
2923
|
+
const t = [];
|
|
2924
|
+
for (const n of e.steps)
|
|
2925
|
+
for (const r in n.styles)
|
|
2926
|
+
t.indexOf(r) === -1 && t.push(r);
|
|
2927
|
+
return t;
|
|
2928
|
+
}
|
|
2929
|
+
function Xa(e) {
|
|
2930
|
+
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2931
|
+
if (!t.length) {
|
|
2932
|
+
ti(e.elementId || e.id || "");
|
|
2933
|
+
return;
|
|
2934
|
+
}
|
|
2935
|
+
Array.from(t).forEach((n) => {
|
|
2936
|
+
ni(e, n), n.style.transition = "none", n.style.transitionDelay = "0", zn(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2937
|
+
n.style.transition = `all ${e.duration}s ${Cr(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), zn(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2938
|
+
n.style.transition = "", n.style.transitionDelay = "";
|
|
2939
|
+
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2940
|
+
});
|
|
2941
|
+
});
|
|
2942
|
+
}
|
|
2943
|
+
function oi(e) {
|
|
2902
2944
|
const t = function() {
|
|
2903
|
-
const o =
|
|
2945
|
+
const o = dt({
|
|
2904
2946
|
block: e.block,
|
|
2905
2947
|
localState: e.context.localState,
|
|
2906
2948
|
rootState: e.context.rootState,
|
|
@@ -2910,8 +2952,8 @@ function ei(e) {
|
|
|
2910
2952
|
});
|
|
2911
2953
|
return oe(o.hide) ? !o.hide : oe(o.show) ? o.show : !0;
|
|
2912
2954
|
}, n = function() {
|
|
2913
|
-
var w;
|
|
2914
|
-
const o =
|
|
2955
|
+
var j, w, X;
|
|
2956
|
+
const o = dt({
|
|
2915
2957
|
block: e.block,
|
|
2916
2958
|
localState: e.context.localState,
|
|
2917
2959
|
rootState: e.context.rootState,
|
|
@@ -2919,36 +2961,55 @@ function ei(e) {
|
|
|
2919
2961
|
context: e.context.context,
|
|
2920
2962
|
shouldEvaluateBindings: !0
|
|
2921
2963
|
}), i = o.responsiveStyles, s = e.context.content, u = kr(
|
|
2922
|
-
((
|
|
2923
|
-
), p = i == null ? void 0 : i.large,
|
|
2964
|
+
((j = s == null ? void 0 : s.meta) == null ? void 0 : j.breakpoints) || {}
|
|
2965
|
+
), p = i == null ? void 0 : i.large, S = i == null ? void 0 : i.medium, k = i == null ? void 0 : i.small, m = o.id;
|
|
2924
2966
|
if (!m)
|
|
2925
2967
|
return "";
|
|
2926
|
-
const
|
|
2968
|
+
const R = p ? ct({
|
|
2927
2969
|
className: m,
|
|
2928
2970
|
styles: p
|
|
2929
|
-
}) : "",
|
|
2971
|
+
}) : "", P = S ? ct({
|
|
2930
2972
|
className: m,
|
|
2931
|
-
styles:
|
|
2932
|
-
mediaQuery:
|
|
2973
|
+
styles: S,
|
|
2974
|
+
mediaQuery: Jn(
|
|
2933
2975
|
"medium",
|
|
2934
2976
|
u
|
|
2935
2977
|
)
|
|
2936
|
-
}) : "",
|
|
2978
|
+
}) : "", C = k ? ct({
|
|
2937
2979
|
className: m,
|
|
2938
|
-
styles:
|
|
2939
|
-
mediaQuery:
|
|
2980
|
+
styles: k,
|
|
2981
|
+
mediaQuery: Jn(
|
|
2940
2982
|
"small",
|
|
2941
2983
|
u
|
|
2942
2984
|
)
|
|
2943
|
-
}) : "";
|
|
2944
|
-
|
|
2985
|
+
}) : "", v = o.animations && o.animations.find((M) => M.trigger === "hover");
|
|
2986
|
+
let B = "";
|
|
2987
|
+
if (v) {
|
|
2988
|
+
const M = ((X = (w = v.steps) == null ? void 0 : w[1]) == null ? void 0 : X.styles) || {};
|
|
2989
|
+
B = ct({
|
|
2990
|
+
className: `${m}:hover`,
|
|
2991
|
+
styles: {
|
|
2992
|
+
...M,
|
|
2993
|
+
transition: `all ${v.duration}s ${Cr(
|
|
2994
|
+
v.easing
|
|
2995
|
+
)}`,
|
|
2996
|
+
transitionDelay: v.delay ? `${v.delay}s` : "0s"
|
|
2997
|
+
}
|
|
2998
|
+
}) || "";
|
|
2999
|
+
}
|
|
3000
|
+
return [
|
|
3001
|
+
R,
|
|
3002
|
+
P,
|
|
3003
|
+
C,
|
|
3004
|
+
B
|
|
3005
|
+
].join(" ");
|
|
2945
3006
|
};
|
|
2946
|
-
return /* @__PURE__ */ A(
|
|
3007
|
+
return /* @__PURE__ */ A(Q, { children: n() && t() ? /* @__PURE__ */ A(Q, { children: /* @__PURE__ */ A(gt, { id: "builderio-block", styles: n() }) }) : null });
|
|
2947
3008
|
}
|
|
2948
|
-
function
|
|
3009
|
+
function ii(e) {
|
|
2949
3010
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2950
3011
|
}
|
|
2951
|
-
const
|
|
3012
|
+
const ai = (e) => `on${ii(e)}`, si = (e, t) => (n) => ln({
|
|
2952
3013
|
code: e,
|
|
2953
3014
|
context: t.context,
|
|
2954
3015
|
localState: t.localState,
|
|
@@ -2958,13 +3019,13 @@ const ni = (e) => `on${ti(e)}`, ri = (e, t) => (n) => cn({
|
|
|
2958
3019
|
isExpression: !1,
|
|
2959
3020
|
enableCache: !0
|
|
2960
3021
|
});
|
|
2961
|
-
function
|
|
3022
|
+
function Ya(e) {
|
|
2962
3023
|
const t = {}, n = e.block.actions ?? {};
|
|
2963
3024
|
for (const r in n) {
|
|
2964
3025
|
if (!n.hasOwnProperty(r))
|
|
2965
3026
|
continue;
|
|
2966
3027
|
const o = n[r];
|
|
2967
|
-
let i =
|
|
3028
|
+
let i = ai(r);
|
|
2968
3029
|
if (e.stripPrefix)
|
|
2969
3030
|
switch (he) {
|
|
2970
3031
|
case "vue":
|
|
@@ -2974,40 +3035,40 @@ function Xa(e) {
|
|
|
2974
3035
|
i = i.replace("on:", "");
|
|
2975
3036
|
break;
|
|
2976
3037
|
}
|
|
2977
|
-
t[i] =
|
|
3038
|
+
t[i] = si(o, e);
|
|
2978
3039
|
}
|
|
2979
3040
|
return t;
|
|
2980
3041
|
}
|
|
2981
|
-
function
|
|
3042
|
+
function li({
|
|
2982
3043
|
properties: e
|
|
2983
3044
|
}) {
|
|
2984
3045
|
return e;
|
|
2985
3046
|
}
|
|
2986
|
-
const
|
|
3047
|
+
const ci = (e) => ({
|
|
2987
3048
|
href: e.href
|
|
2988
3049
|
});
|
|
2989
|
-
function
|
|
3050
|
+
function ui({
|
|
2990
3051
|
block: e,
|
|
2991
3052
|
context: t
|
|
2992
3053
|
}) {
|
|
2993
3054
|
var r;
|
|
2994
3055
|
const n = {
|
|
2995
|
-
...
|
|
3056
|
+
...ci(e),
|
|
2996
3057
|
...e.properties,
|
|
2997
3058
|
"builder-id": e.id,
|
|
2998
|
-
style:
|
|
3059
|
+
style: Zo({
|
|
2999
3060
|
block: e,
|
|
3000
3061
|
context: t
|
|
3001
3062
|
}),
|
|
3002
3063
|
[Yt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3003
3064
|
};
|
|
3004
|
-
return
|
|
3065
|
+
return li({
|
|
3005
3066
|
properties: n,
|
|
3006
3067
|
context: t,
|
|
3007
3068
|
block: e
|
|
3008
3069
|
});
|
|
3009
3070
|
}
|
|
3010
|
-
const
|
|
3071
|
+
const fi = ({
|
|
3011
3072
|
componentOptions: e,
|
|
3012
3073
|
builderBlock: t,
|
|
3013
3074
|
context: n,
|
|
@@ -3023,7 +3084,7 @@ const si = ({
|
|
|
3023
3084
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
3024
3085
|
*/
|
|
3025
3086
|
...o ? {
|
|
3026
|
-
attributes:
|
|
3087
|
+
attributes: ui({
|
|
3027
3088
|
block: t,
|
|
3028
3089
|
context: s
|
|
3029
3090
|
})
|
|
@@ -3039,11 +3100,11 @@ const si = ({
|
|
|
3039
3100
|
};
|
|
3040
3101
|
function qn(e) {
|
|
3041
3102
|
var n;
|
|
3042
|
-
const t = e.isInteractive ?
|
|
3043
|
-
return /* @__PURE__ */ A(
|
|
3103
|
+
const t = e.isInteractive ? ro : e.componentRef;
|
|
3104
|
+
return /* @__PURE__ */ A(Q, { children: e.componentRef ? /* @__PURE__ */ A(Q, { children: /* @__PURE__ */ A(
|
|
3044
3105
|
t,
|
|
3045
3106
|
{
|
|
3046
|
-
...
|
|
3107
|
+
...fi({
|
|
3047
3108
|
componentOptions: e.componentOptions,
|
|
3048
3109
|
builderBlock: e.builderBlock,
|
|
3049
3110
|
context: e.context,
|
|
@@ -3054,7 +3115,7 @@ function qn(e) {
|
|
|
3054
3115
|
contextValue: e.context
|
|
3055
3116
|
}),
|
|
3056
3117
|
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ A(
|
|
3057
|
-
|
|
3118
|
+
yt,
|
|
3058
3119
|
{
|
|
3059
3120
|
block: r,
|
|
3060
3121
|
context: e.context,
|
|
@@ -3066,10 +3127,10 @@ function qn(e) {
|
|
|
3066
3127
|
}
|
|
3067
3128
|
) }) : null });
|
|
3068
3129
|
}
|
|
3069
|
-
function
|
|
3130
|
+
function di(e) {
|
|
3070
3131
|
const t = e.repeatContext;
|
|
3071
3132
|
return /* @__PURE__ */ A(
|
|
3072
|
-
|
|
3133
|
+
yt,
|
|
3073
3134
|
{
|
|
3074
3135
|
block: e.block,
|
|
3075
3136
|
context: t,
|
|
@@ -3078,22 +3139,22 @@ function li(e) {
|
|
|
3078
3139
|
}
|
|
3079
3140
|
);
|
|
3080
3141
|
}
|
|
3081
|
-
function
|
|
3082
|
-
var p,
|
|
3142
|
+
function yt(e) {
|
|
3143
|
+
var p, S, k;
|
|
3083
3144
|
const t = function() {
|
|
3084
|
-
return
|
|
3145
|
+
return Qo({
|
|
3085
3146
|
block: e.block,
|
|
3086
3147
|
context: e.context,
|
|
3087
3148
|
registeredComponents: e.registeredComponents
|
|
3088
3149
|
});
|
|
3089
3150
|
}, n = function() {
|
|
3090
|
-
return
|
|
3151
|
+
return ei({
|
|
3091
3152
|
block: e.block,
|
|
3092
3153
|
context: e.context
|
|
3093
3154
|
});
|
|
3094
3155
|
}, r = function() {
|
|
3095
|
-
var
|
|
3096
|
-
return (
|
|
3156
|
+
var R;
|
|
3157
|
+
return (R = e.block.repeat) != null && R.collection ? e.block : dt({
|
|
3097
3158
|
block: e.block,
|
|
3098
3159
|
localState: e.context.localState,
|
|
3099
3160
|
rootState: e.context.rootState,
|
|
@@ -3102,29 +3163,29 @@ function gt(e) {
|
|
|
3102
3163
|
shouldEvaluateBindings: !0
|
|
3103
3164
|
});
|
|
3104
3165
|
}, o = function() {
|
|
3105
|
-
var
|
|
3106
|
-
return e.block.tagName === "a" || ((
|
|
3166
|
+
var P;
|
|
3167
|
+
return e.block.tagName === "a" || ((P = r().properties) == null ? void 0 : P.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3107
3168
|
}, i = function() {
|
|
3108
|
-
var
|
|
3109
|
-
if ((
|
|
3110
|
-
return !!((
|
|
3111
|
-
const
|
|
3112
|
-
return ("show" in r() ? r().show : !0) && !
|
|
3169
|
+
var C, v;
|
|
3170
|
+
if ((C = e.block.repeat) != null && C.collection)
|
|
3171
|
+
return !!((v = n()) != null && v.length);
|
|
3172
|
+
const R = "hide" in r() ? r().hide : !1;
|
|
3173
|
+
return ("show" in r() ? r().show : !0) && !R;
|
|
3113
3174
|
}, s = function() {
|
|
3114
|
-
var
|
|
3115
|
-
return !((
|
|
3175
|
+
var P;
|
|
3176
|
+
return !((P = t()) != null && P.component) && !n() ? r().children ?? [] : [];
|
|
3116
3177
|
}, u = function() {
|
|
3117
|
-
var
|
|
3178
|
+
var R, P, C, v, B, j, w, X, M, ee;
|
|
3118
3179
|
return {
|
|
3119
3180
|
blockChildren: r().children ?? [],
|
|
3120
|
-
componentRef: (
|
|
3181
|
+
componentRef: (R = t()) == null ? void 0 : R.component,
|
|
3121
3182
|
componentOptions: {
|
|
3122
|
-
...
|
|
3183
|
+
...bo(r()),
|
|
3123
3184
|
builderContext: e.context,
|
|
3124
|
-
...((
|
|
3185
|
+
...((P = t()) == null ? void 0 : P.name) === "Core:Button" || ((C = t()) == null ? void 0 : C.name) === "Symbol" || ((v = t()) == null ? void 0 : v.name) === "Columns" || ((B = t()) == null ? void 0 : B.name) === "Form:Form" ? {
|
|
3125
3186
|
builderLinkComponent: e.linkComponent
|
|
3126
3187
|
} : {},
|
|
3127
|
-
...((
|
|
3188
|
+
...((j = t()) == null ? void 0 : j.name) === "Symbol" || ((w = t()) == null ? void 0 : w.name) === "Columns" || ((X = t()) == null ? void 0 : X.name) === "Form:Form" ? {
|
|
3128
3189
|
builderComponents: e.registeredComponents
|
|
3129
3190
|
} : {}
|
|
3130
3191
|
},
|
|
@@ -3132,13 +3193,13 @@ function gt(e) {
|
|
|
3132
3193
|
linkComponent: e.linkComponent,
|
|
3133
3194
|
registeredComponents: e.registeredComponents,
|
|
3134
3195
|
builderBlock: r(),
|
|
3135
|
-
includeBlockProps: ((
|
|
3196
|
+
includeBlockProps: ((M = t()) == null ? void 0 : M.noWrap) === !0,
|
|
3136
3197
|
isInteractive: !((ee = t()) != null && ee.isRSC)
|
|
3137
3198
|
};
|
|
3138
3199
|
};
|
|
3139
|
-
return /* @__PURE__ */ A(
|
|
3140
|
-
/* @__PURE__ */ A(
|
|
3141
|
-
(p = t()) != null && p.noWrap ? /* @__PURE__ */ A(
|
|
3200
|
+
return /* @__PURE__ */ A(Q, { children: i() ? /* @__PURE__ */ xe(Q, { children: [
|
|
3201
|
+
/* @__PURE__ */ A(oi, { block: e.block, context: e.context }),
|
|
3202
|
+
(p = t()) != null && p.noWrap ? /* @__PURE__ */ A(Q, { children: /* @__PURE__ */ A(
|
|
3142
3203
|
qn,
|
|
3143
3204
|
{
|
|
3144
3205
|
componentRef: u().componentRef,
|
|
@@ -3151,17 +3212,17 @@ function gt(e) {
|
|
|
3151
3212
|
includeBlockProps: u().includeBlockProps,
|
|
3152
3213
|
isInteractive: u().isInteractive
|
|
3153
3214
|
}
|
|
3154
|
-
) }) : /* @__PURE__ */ A(
|
|
3155
|
-
|
|
3215
|
+
) }) : /* @__PURE__ */ A(Q, { children: n() ? /* @__PURE__ */ A(Q, { children: (k = n()) == null ? void 0 : k.map((m, R) => /* @__PURE__ */ A(
|
|
3216
|
+
di,
|
|
3156
3217
|
{
|
|
3157
3218
|
repeatContext: m.context,
|
|
3158
3219
|
block: m.block,
|
|
3159
3220
|
registeredComponents: e.registeredComponents,
|
|
3160
3221
|
linkComponent: e.linkComponent
|
|
3161
3222
|
},
|
|
3162
|
-
|
|
3223
|
+
R
|
|
3163
3224
|
)) }) : /* @__PURE__ */ xe(
|
|
3164
|
-
|
|
3225
|
+
oo,
|
|
3165
3226
|
{
|
|
3166
3227
|
Wrapper: o(),
|
|
3167
3228
|
block: r(),
|
|
@@ -3182,8 +3243,8 @@ function gt(e) {
|
|
|
3182
3243
|
isInteractive: u().isInteractive
|
|
3183
3244
|
}
|
|
3184
3245
|
),
|
|
3185
|
-
(
|
|
3186
|
-
|
|
3246
|
+
(S = s()) == null ? void 0 : S.map((m) => /* @__PURE__ */ A(
|
|
3247
|
+
yt,
|
|
3187
3248
|
{
|
|
3188
3249
|
block: m,
|
|
3189
3250
|
registeredComponents: e.registeredComponents,
|
|
@@ -3197,10 +3258,10 @@ function gt(e) {
|
|
|
3197
3258
|
) })
|
|
3198
3259
|
] }) : null });
|
|
3199
3260
|
}
|
|
3200
|
-
function
|
|
3261
|
+
function cn(e) {
|
|
3201
3262
|
var t, n, r;
|
|
3202
3263
|
return /* @__PURE__ */ A(
|
|
3203
|
-
|
|
3264
|
+
io,
|
|
3204
3265
|
{
|
|
3205
3266
|
blocks: e.blocks,
|
|
3206
3267
|
parent: e.parent,
|
|
@@ -3208,8 +3269,8 @@ function un(e) {
|
|
|
3208
3269
|
styleProp: e.styleProp,
|
|
3209
3270
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3210
3271
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3211
|
-
children: e.blocks ? /* @__PURE__ */ A(
|
|
3212
|
-
|
|
3272
|
+
children: e.blocks ? /* @__PURE__ */ A(Q, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ A(
|
|
3273
|
+
yt,
|
|
3213
3274
|
{
|
|
3214
3275
|
block: o,
|
|
3215
3276
|
linkComponent: e.linkComponent,
|
|
@@ -3221,25 +3282,25 @@ function un(e) {
|
|
|
3221
3282
|
}
|
|
3222
3283
|
);
|
|
3223
3284
|
}
|
|
3224
|
-
function
|
|
3225
|
-
var
|
|
3226
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(
|
|
3285
|
+
function pi(e) {
|
|
3286
|
+
var P;
|
|
3287
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(v) {
|
|
3227
3288
|
var B;
|
|
3228
|
-
return ((B = n[
|
|
3229
|
-
}, i = function(
|
|
3289
|
+
return ((B = n[v]) == null ? void 0 : B.width) || 100 / n.length;
|
|
3290
|
+
}, i = function(v) {
|
|
3230
3291
|
const B = t * (n.length - 1) / n.length;
|
|
3231
|
-
return `calc(${o(
|
|
3292
|
+
return `calc(${o(v)}% - ${B}px)`;
|
|
3232
3293
|
}, s = function({
|
|
3233
|
-
stackedStyle:
|
|
3294
|
+
stackedStyle: v,
|
|
3234
3295
|
desktopStyle: B
|
|
3235
3296
|
}) {
|
|
3236
|
-
return r === "tablet" ?
|
|
3297
|
+
return r === "tablet" ? v : B;
|
|
3237
3298
|
}, u = function({
|
|
3238
|
-
stackedStyle:
|
|
3299
|
+
stackedStyle: v,
|
|
3239
3300
|
desktopStyle: B
|
|
3240
3301
|
}) {
|
|
3241
|
-
return r === "never" ? B :
|
|
3242
|
-
}, p = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
3302
|
+
return r === "never" ? B : v;
|
|
3303
|
+
}, p = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", S = function() {
|
|
3243
3304
|
return {
|
|
3244
3305
|
"--flex-dir": p,
|
|
3245
3306
|
"--flex-dir-tablet": s({
|
|
@@ -3247,39 +3308,39 @@ function ci(e) {
|
|
|
3247
3308
|
desktopStyle: "row"
|
|
3248
3309
|
})
|
|
3249
3310
|
};
|
|
3250
|
-
},
|
|
3251
|
-
const B =
|
|
3311
|
+
}, k = function(v) {
|
|
3312
|
+
const B = v === 0 ? 0 : t, j = i(v), w = `${B}px`, X = "100%", M = 0;
|
|
3252
3313
|
return {
|
|
3253
3314
|
...{
|
|
3254
3315
|
display: "flex",
|
|
3255
3316
|
flexDirection: "column",
|
|
3256
3317
|
alignItems: "stretch"
|
|
3257
3318
|
},
|
|
3258
|
-
width:
|
|
3259
|
-
["marginLeft"]:
|
|
3319
|
+
width: j,
|
|
3320
|
+
["marginLeft"]: w,
|
|
3260
3321
|
"--column-width-mobile": u({
|
|
3261
|
-
stackedStyle:
|
|
3262
|
-
desktopStyle:
|
|
3322
|
+
stackedStyle: X,
|
|
3323
|
+
desktopStyle: j
|
|
3263
3324
|
}),
|
|
3264
3325
|
"--column-margin-left-mobile": u({
|
|
3265
|
-
stackedStyle:
|
|
3266
|
-
desktopStyle:
|
|
3326
|
+
stackedStyle: M,
|
|
3327
|
+
desktopStyle: w
|
|
3267
3328
|
}),
|
|
3268
3329
|
"--column-width-tablet": s({
|
|
3269
|
-
stackedStyle:
|
|
3270
|
-
desktopStyle:
|
|
3330
|
+
stackedStyle: X,
|
|
3331
|
+
desktopStyle: j
|
|
3271
3332
|
}),
|
|
3272
3333
|
"--column-margin-left-tablet": s({
|
|
3273
|
-
stackedStyle:
|
|
3274
|
-
desktopStyle:
|
|
3334
|
+
stackedStyle: M,
|
|
3335
|
+
desktopStyle: w
|
|
3275
3336
|
})
|
|
3276
3337
|
};
|
|
3277
|
-
}, m = function(
|
|
3278
|
-
var
|
|
3338
|
+
}, m = function(v) {
|
|
3339
|
+
var j, w;
|
|
3279
3340
|
return kr(
|
|
3280
|
-
((
|
|
3281
|
-
)[
|
|
3282
|
-
},
|
|
3341
|
+
((w = (j = e.builderContext.content) == null ? void 0 : j.meta) == null ? void 0 : w.breakpoints) || {}
|
|
3342
|
+
)[v].max;
|
|
3343
|
+
}, R = function() {
|
|
3283
3344
|
return `
|
|
3284
3345
|
@media (max-width: ${m("medium")}px) {
|
|
3285
3346
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3306,30 +3367,30 @@ function ci(e) {
|
|
|
3306
3367
|
},
|
|
3307
3368
|
`;
|
|
3308
3369
|
};
|
|
3309
|
-
return /* @__PURE__ */ xe(
|
|
3370
|
+
return /* @__PURE__ */ xe(Q, { children: [
|
|
3310
3371
|
/* @__PURE__ */ xe(
|
|
3311
3372
|
"div",
|
|
3312
3373
|
{
|
|
3313
3374
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-664216e4`,
|
|
3314
|
-
style:
|
|
3375
|
+
style: S(),
|
|
3315
3376
|
children: [
|
|
3316
|
-
/* @__PURE__ */ A(
|
|
3317
|
-
(
|
|
3318
|
-
|
|
3377
|
+
/* @__PURE__ */ A(gt, { id: "builderio-columns", styles: R() }),
|
|
3378
|
+
(P = e.columns) == null ? void 0 : P.map((C, v) => /* @__PURE__ */ A(
|
|
3379
|
+
ao,
|
|
3319
3380
|
{
|
|
3320
|
-
TagName:
|
|
3381
|
+
TagName: C.link ? e.builderLinkComponent || "a" : "div",
|
|
3321
3382
|
actionAttributes: {},
|
|
3322
3383
|
attributes: {
|
|
3323
|
-
...
|
|
3324
|
-
href:
|
|
3384
|
+
...C.link ? {
|
|
3385
|
+
href: C.link
|
|
3325
3386
|
} : {},
|
|
3326
3387
|
[Yt()]: "builder-column",
|
|
3327
|
-
style: wr(
|
|
3388
|
+
style: wr(k(v))
|
|
3328
3389
|
},
|
|
3329
3390
|
children: /* @__PURE__ */ A(
|
|
3330
|
-
|
|
3391
|
+
cn,
|
|
3331
3392
|
{
|
|
3332
|
-
path: `component.options.columns.${
|
|
3393
|
+
path: `component.options.columns.${v}.blocks`,
|
|
3333
3394
|
parent: e.builderBlock.id,
|
|
3334
3395
|
styleProp: {
|
|
3335
3396
|
flexGrow: "1"
|
|
@@ -3337,11 +3398,11 @@ function ci(e) {
|
|
|
3337
3398
|
context: e.builderContext,
|
|
3338
3399
|
registeredComponents: e.builderComponents,
|
|
3339
3400
|
linkComponent: e.builderLinkComponent,
|
|
3340
|
-
blocks:
|
|
3401
|
+
blocks: C.blocks
|
|
3341
3402
|
}
|
|
3342
3403
|
)
|
|
3343
3404
|
},
|
|
3344
|
-
|
|
3405
|
+
v
|
|
3345
3406
|
))
|
|
3346
3407
|
]
|
|
3347
3408
|
}
|
|
@@ -3355,11 +3416,11 @@ function ci(e) {
|
|
|
3355
3416
|
function Zn(e) {
|
|
3356
3417
|
return e.replace(/http(s)?:/, "");
|
|
3357
3418
|
}
|
|
3358
|
-
function
|
|
3419
|
+
function hi(e = "", t, n) {
|
|
3359
3420
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3360
3421
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3361
3422
|
}
|
|
3362
|
-
function
|
|
3423
|
+
function mi(e, t) {
|
|
3363
3424
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3364
3425
|
return e;
|
|
3365
3426
|
if (t === "master")
|
|
@@ -3371,23 +3432,23 @@ function fi(e, t) {
|
|
|
3371
3432
|
}
|
|
3372
3433
|
return null;
|
|
3373
3434
|
}
|
|
3374
|
-
function
|
|
3435
|
+
function Ja(e) {
|
|
3375
3436
|
if (!e)
|
|
3376
3437
|
return e;
|
|
3377
3438
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3378
3439
|
if (e.match(/builder\.io/)) {
|
|
3379
3440
|
let n = e;
|
|
3380
3441
|
const r = Number(e.split("?width=")[1]);
|
|
3381
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3442
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${hi(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3382
3443
|
}
|
|
3383
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3444
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [mi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3384
3445
|
}
|
|
3385
|
-
const
|
|
3446
|
+
const gi = (e) => {
|
|
3386
3447
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3387
3448
|
return e;
|
|
3388
3449
|
const t = e.split(".");
|
|
3389
3450
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3390
|
-
},
|
|
3451
|
+
}, Er = ({
|
|
3391
3452
|
name: e,
|
|
3392
3453
|
canTrack: t
|
|
3393
3454
|
}) => {
|
|
@@ -3395,17 +3456,17 @@ const di = (e) => {
|
|
|
3395
3456
|
try {
|
|
3396
3457
|
return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
3397
3458
|
} catch (r) {
|
|
3398
|
-
|
|
3459
|
+
Y.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3399
3460
|
return;
|
|
3400
3461
|
}
|
|
3401
|
-
},
|
|
3462
|
+
}, Ir = async (e) => Er(e), yi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(oe).join("; "), vi = [["secure", ""], ["SameSite", "None"]], bi = ({
|
|
3402
3463
|
name: e,
|
|
3403
3464
|
value: t,
|
|
3404
3465
|
expires: n
|
|
3405
3466
|
}) => {
|
|
3406
|
-
const o = (G() ? location.protocol === "https:" : !0) ?
|
|
3407
|
-
return
|
|
3408
|
-
},
|
|
3467
|
+
const o = (G() ? location.protocol === "https:" : !0) ? vi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", gi(window.location.hostname)], ...o];
|
|
3468
|
+
return yi(s);
|
|
3469
|
+
}, Tr = async ({
|
|
3409
3470
|
name: e,
|
|
3410
3471
|
value: t,
|
|
3411
3472
|
expires: n,
|
|
@@ -3414,33 +3475,33 @@ const di = (e) => {
|
|
|
3414
3475
|
try {
|
|
3415
3476
|
if (!r)
|
|
3416
3477
|
return;
|
|
3417
|
-
const o =
|
|
3478
|
+
const o = bi({
|
|
3418
3479
|
name: e,
|
|
3419
3480
|
value: t,
|
|
3420
3481
|
expires: n
|
|
3421
3482
|
});
|
|
3422
3483
|
document.cookie = o;
|
|
3423
3484
|
} catch (o) {
|
|
3424
|
-
|
|
3485
|
+
Y.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3425
3486
|
}
|
|
3426
|
-
},
|
|
3487
|
+
}, Si = "builder.tests", un = (e) => `${Si}.${e}`, wi = ({
|
|
3427
3488
|
contentId: e
|
|
3428
|
-
}) =>
|
|
3429
|
-
name:
|
|
3489
|
+
}) => Ir({
|
|
3490
|
+
name: un(e),
|
|
3430
3491
|
canTrack: !0
|
|
3431
|
-
}),
|
|
3492
|
+
}), xi = ({
|
|
3432
3493
|
contentId: e
|
|
3433
|
-
}) =>
|
|
3434
|
-
name:
|
|
3494
|
+
}) => Er({
|
|
3495
|
+
name: un(e),
|
|
3435
3496
|
canTrack: !0
|
|
3436
|
-
}),
|
|
3497
|
+
}), ki = ({
|
|
3437
3498
|
contentId: e,
|
|
3438
3499
|
value: t
|
|
3439
|
-
}) =>
|
|
3440
|
-
name:
|
|
3500
|
+
}) => Tr({
|
|
3501
|
+
name: un(e),
|
|
3441
3502
|
value: t,
|
|
3442
3503
|
canTrack: !0
|
|
3443
|
-
}),
|
|
3504
|
+
}), Ar = (e) => oe(e.id) && oe(e.variations) && Object.keys(e.variations).length > 0, Ci = ({
|
|
3444
3505
|
id: e,
|
|
3445
3506
|
variations: t
|
|
3446
3507
|
}) => {
|
|
@@ -3453,15 +3514,15 @@ const di = (e) => {
|
|
|
3453
3514
|
return i;
|
|
3454
3515
|
}
|
|
3455
3516
|
return e;
|
|
3456
|
-
},
|
|
3457
|
-
const t =
|
|
3458
|
-
return
|
|
3517
|
+
}, Or = (e) => {
|
|
3518
|
+
const t = Ci(e);
|
|
3519
|
+
return ki({
|
|
3459
3520
|
contentId: e.id,
|
|
3460
3521
|
value: t
|
|
3461
3522
|
}).catch((n) => {
|
|
3462
|
-
|
|
3523
|
+
Y.error("could not store A/B test variation: ", n);
|
|
3463
3524
|
}), t;
|
|
3464
|
-
},
|
|
3525
|
+
}, jr = ({
|
|
3465
3526
|
item: e,
|
|
3466
3527
|
testGroupId: t
|
|
3467
3528
|
}) => {
|
|
@@ -3475,7 +3536,7 @@ const di = (e) => {
|
|
|
3475
3536
|
testVariationId: n.id,
|
|
3476
3537
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3477
3538
|
};
|
|
3478
|
-
},
|
|
3539
|
+
}, Ei = ({
|
|
3479
3540
|
item: e,
|
|
3480
3541
|
canTrack: t
|
|
3481
3542
|
}) => {
|
|
@@ -3483,14 +3544,14 @@ const di = (e) => {
|
|
|
3483
3544
|
return e;
|
|
3484
3545
|
if (!e)
|
|
3485
3546
|
return;
|
|
3486
|
-
if (!
|
|
3547
|
+
if (!Ar(e))
|
|
3487
3548
|
return e;
|
|
3488
|
-
const n =
|
|
3549
|
+
const n = xi({
|
|
3489
3550
|
contentId: e.id
|
|
3490
|
-
}) ||
|
|
3551
|
+
}) || Or({
|
|
3491
3552
|
variations: e.variations,
|
|
3492
3553
|
id: e.id
|
|
3493
|
-
}), r =
|
|
3554
|
+
}), r = jr({
|
|
3494
3555
|
item: e,
|
|
3495
3556
|
testGroupId: n
|
|
3496
3557
|
});
|
|
@@ -3498,18 +3559,18 @@ const di = (e) => {
|
|
|
3498
3559
|
...e,
|
|
3499
3560
|
...r
|
|
3500
3561
|
};
|
|
3501
|
-
},
|
|
3562
|
+
}, Ii = async ({
|
|
3502
3563
|
item: e,
|
|
3503
3564
|
canTrack: t
|
|
3504
3565
|
}) => {
|
|
3505
|
-
if (!t || !
|
|
3566
|
+
if (!t || !Ar(e))
|
|
3506
3567
|
return e;
|
|
3507
|
-
const r = await
|
|
3568
|
+
const r = await wi({
|
|
3508
3569
|
contentId: e.id
|
|
3509
|
-
}) ||
|
|
3570
|
+
}) || Or({
|
|
3510
3571
|
variations: e.variations,
|
|
3511
3572
|
id: e.id
|
|
3512
|
-
}), o =
|
|
3573
|
+
}), o = jr({
|
|
3513
3574
|
item: e,
|
|
3514
3575
|
testGroupId: r
|
|
3515
3576
|
});
|
|
@@ -3517,7 +3578,7 @@ const di = (e) => {
|
|
|
3517
3578
|
...e,
|
|
3518
3579
|
...o
|
|
3519
3580
|
};
|
|
3520
|
-
}, Kt = (e) => oe(e) ? e : !0,
|
|
3581
|
+
}, Kt = (e) => oe(e) ? e : !0, Ti = {
|
|
3521
3582
|
name: "Core:Button",
|
|
3522
3583
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3523
3584
|
defaultStyles: {
|
|
@@ -3550,7 +3611,7 @@ const di = (e) => {
|
|
|
3550
3611
|
}],
|
|
3551
3612
|
static: !0,
|
|
3552
3613
|
noWrap: !0
|
|
3553
|
-
},
|
|
3614
|
+
}, Ai = {
|
|
3554
3615
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3555
3616
|
name: "Columns",
|
|
3556
3617
|
isRSC: !0,
|
|
@@ -3751,13 +3812,13 @@ const di = (e) => {
|
|
|
3751
3812
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3752
3813
|
advanced: !0
|
|
3753
3814
|
}]
|
|
3754
|
-
},
|
|
3815
|
+
}, Oi = {
|
|
3755
3816
|
name: "Fragment",
|
|
3756
3817
|
static: !0,
|
|
3757
3818
|
hidden: !0,
|
|
3758
3819
|
canHaveChildren: !0,
|
|
3759
3820
|
noWrap: !0
|
|
3760
|
-
},
|
|
3821
|
+
}, ji = {
|
|
3761
3822
|
name: "Image",
|
|
3762
3823
|
static: !0,
|
|
3763
3824
|
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",
|
|
@@ -3778,15 +3839,15 @@ const di = (e) => {
|
|
|
3778
3839
|
onChange: (e) => {
|
|
3779
3840
|
e.delete("srcset"), e.delete("noWebp");
|
|
3780
3841
|
function n(s, u = 6e4) {
|
|
3781
|
-
return new Promise((p,
|
|
3782
|
-
const
|
|
3842
|
+
return new Promise((p, S) => {
|
|
3843
|
+
const k = document.createElement("img");
|
|
3783
3844
|
let m = !1;
|
|
3784
|
-
|
|
3785
|
-
m = !0, p(
|
|
3786
|
-
},
|
|
3787
|
-
console.warn("Image load failed",
|
|
3788
|
-
}),
|
|
3789
|
-
m ||
|
|
3845
|
+
k.onload = () => {
|
|
3846
|
+
m = !0, p(k);
|
|
3847
|
+
}, k.addEventListener("error", (R) => {
|
|
3848
|
+
console.warn("Image load failed", R.error), S(R.error);
|
|
3849
|
+
}), k.src = s, setTimeout(() => {
|
|
3850
|
+
m || S(new Error("Image load timed out"));
|
|
3790
3851
|
}, u);
|
|
3791
3852
|
});
|
|
3792
3853
|
}
|
|
@@ -3857,7 +3918,7 @@ const di = (e) => {
|
|
|
3857
3918
|
advanced: !0,
|
|
3858
3919
|
defaultValue: 0.7041
|
|
3859
3920
|
}]
|
|
3860
|
-
},
|
|
3921
|
+
}, Ri = {
|
|
3861
3922
|
name: "Core:Section",
|
|
3862
3923
|
static: !0,
|
|
3863
3924
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3896,7 +3957,7 @@ const di = (e) => {
|
|
|
3896
3957
|
}
|
|
3897
3958
|
}
|
|
3898
3959
|
}]
|
|
3899
|
-
},
|
|
3960
|
+
}, Pi = {
|
|
3900
3961
|
name: "Slot",
|
|
3901
3962
|
isRSC: !0,
|
|
3902
3963
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3910,7 +3971,7 @@ const di = (e) => {
|
|
|
3910
3971
|
defaultValue: "children"
|
|
3911
3972
|
}]
|
|
3912
3973
|
};
|
|
3913
|
-
function
|
|
3974
|
+
function Ni(e) {
|
|
3914
3975
|
var t, n, r;
|
|
3915
3976
|
return /* @__PURE__ */ A(
|
|
3916
3977
|
"div",
|
|
@@ -3922,7 +3983,7 @@ function Oi(e) {
|
|
|
3922
3983
|
"builder-slot": e.name
|
|
3923
3984
|
},
|
|
3924
3985
|
children: /* @__PURE__ */ A(
|
|
3925
|
-
|
|
3986
|
+
cn,
|
|
3926
3987
|
{
|
|
3927
3988
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
3928
3989
|
path: `symbol.data.${e.name}`,
|
|
@@ -3933,7 +3994,7 @@ function Oi(e) {
|
|
|
3933
3994
|
}
|
|
3934
3995
|
);
|
|
3935
3996
|
}
|
|
3936
|
-
const
|
|
3997
|
+
const Ui = {
|
|
3937
3998
|
name: "Symbol",
|
|
3938
3999
|
noWrap: !0,
|
|
3939
4000
|
static: !0,
|
|
@@ -3966,7 +4027,7 @@ const ji = {
|
|
|
3966
4027
|
hideFromUI: !0,
|
|
3967
4028
|
type: "boolean"
|
|
3968
4029
|
}]
|
|
3969
|
-
},
|
|
4030
|
+
}, Bi = {
|
|
3970
4031
|
name: "Text",
|
|
3971
4032
|
static: !0,
|
|
3972
4033
|
isRSC: !0,
|
|
@@ -3985,7 +4046,7 @@ const ji = {
|
|
|
3985
4046
|
textAlign: "center"
|
|
3986
4047
|
}
|
|
3987
4048
|
};
|
|
3988
|
-
function
|
|
4049
|
+
function Fi(e) {
|
|
3989
4050
|
var t;
|
|
3990
4051
|
return /* @__PURE__ */ A(
|
|
3991
4052
|
"div",
|
|
@@ -3998,7 +4059,7 @@ function Pi(e) {
|
|
|
3998
4059
|
}
|
|
3999
4060
|
);
|
|
4000
4061
|
}
|
|
4001
|
-
const
|
|
4062
|
+
const Mi = {
|
|
4002
4063
|
name: "Custom Code",
|
|
4003
4064
|
static: !0,
|
|
4004
4065
|
requiredPermissions: ["editCode"],
|
|
@@ -4020,7 +4081,7 @@ const Ni = {
|
|
|
4020
4081
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
4021
4082
|
advanced: !0
|
|
4022
4083
|
}]
|
|
4023
|
-
},
|
|
4084
|
+
}, Vi = {
|
|
4024
4085
|
name: "Embed",
|
|
4025
4086
|
static: !0,
|
|
4026
4087
|
inputs: [{
|
|
@@ -4045,7 +4106,7 @@ const Ni = {
|
|
|
4045
4106
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4046
4107
|
hideFromUI: !0
|
|
4047
4108
|
}]
|
|
4048
|
-
},
|
|
4109
|
+
}, Di = ["text/javascript", "application/javascript", "application/ecmascript"], za = (e) => Di.includes(e.type), Li = {
|
|
4049
4110
|
// friendlyName?
|
|
4050
4111
|
name: "Raw:Img",
|
|
4051
4112
|
hideFromInsertMenu: !0,
|
|
@@ -4059,7 +4120,7 @@ const Ni = {
|
|
|
4059
4120
|
}],
|
|
4060
4121
|
noWrap: !0,
|
|
4061
4122
|
static: !0
|
|
4062
|
-
},
|
|
4123
|
+
}, _i = {
|
|
4063
4124
|
name: "Video",
|
|
4064
4125
|
canHaveChildren: !0,
|
|
4065
4126
|
defaultStyles: {
|
|
@@ -4140,58 +4201,58 @@ const Ni = {
|
|
|
4140
4201
|
defaultValue: !0,
|
|
4141
4202
|
advanced: !0
|
|
4142
4203
|
}]
|
|
4143
|
-
},
|
|
4144
|
-
component: ao,
|
|
4145
|
-
...Ni
|
|
4146
|
-
}, {
|
|
4204
|
+
}, Wi = () => [{
|
|
4147
4205
|
component: so,
|
|
4148
|
-
...
|
|
4206
|
+
...Mi
|
|
4149
4207
|
}, {
|
|
4150
4208
|
component: lo,
|
|
4151
|
-
...
|
|
4209
|
+
...Vi
|
|
4152
4210
|
}, {
|
|
4153
4211
|
component: co,
|
|
4154
|
-
...
|
|
4155
|
-
}], Qn = () => [{
|
|
4156
|
-
component: uo,
|
|
4157
|
-
...ki
|
|
4158
|
-
}, {
|
|
4159
|
-
component: ci,
|
|
4160
|
-
...Ci
|
|
4212
|
+
...Li
|
|
4161
4213
|
}, {
|
|
4214
|
+
component: uo,
|
|
4215
|
+
..._i
|
|
4216
|
+
}], Qn = () => [{
|
|
4162
4217
|
component: fo,
|
|
4163
|
-
...
|
|
4218
|
+
...Ti
|
|
4219
|
+
}, {
|
|
4220
|
+
component: pi,
|
|
4221
|
+
...Ai
|
|
4164
4222
|
}, {
|
|
4165
4223
|
component: po,
|
|
4166
|
-
...
|
|
4224
|
+
...Oi
|
|
4167
4225
|
}, {
|
|
4168
4226
|
component: ho,
|
|
4169
|
-
...
|
|
4227
|
+
...ji
|
|
4170
4228
|
}, {
|
|
4171
|
-
component:
|
|
4172
|
-
...
|
|
4229
|
+
component: mo,
|
|
4230
|
+
...Ri
|
|
4231
|
+
}, {
|
|
4232
|
+
component: Ni,
|
|
4233
|
+
...Pi
|
|
4173
4234
|
}, {
|
|
4174
4235
|
component: La,
|
|
4175
|
-
...
|
|
4236
|
+
...Ui
|
|
4176
4237
|
}, {
|
|
4177
|
-
component:
|
|
4178
|
-
...
|
|
4179
|
-
}, ...
|
|
4238
|
+
component: Fi,
|
|
4239
|
+
...Bi
|
|
4240
|
+
}, ...Wi()], qa = (e) => ({
|
|
4180
4241
|
type: "builder.registerComponent",
|
|
4181
4242
|
data: Gt(e)
|
|
4182
|
-
}),
|
|
4243
|
+
}), $i = (e) => {
|
|
4183
4244
|
const t = e.toString().trim();
|
|
4184
4245
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4185
|
-
},
|
|
4246
|
+
}, Hi = (e) => typeof e == "function" ? $i(e) : mt(e), Gt = ({
|
|
4186
4247
|
inputs: e,
|
|
4187
4248
|
...t
|
|
4188
4249
|
}) => ({
|
|
4189
|
-
...
|
|
4250
|
+
...mt(t),
|
|
4190
4251
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
4191
4252
|
...r,
|
|
4192
|
-
[o]:
|
|
4253
|
+
[o]: Hi(i)
|
|
4193
4254
|
}), {}))
|
|
4194
|
-
}),
|
|
4255
|
+
}), Ki = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4195
4256
|
function getAndSetVariantId() {
|
|
4196
4257
|
function setCookie(name, value, days) {
|
|
4197
4258
|
let expires = '';
|
|
@@ -4247,7 +4308,7 @@ const Ni = {
|
|
|
4247
4308
|
}).join('');
|
|
4248
4309
|
styleEl.innerHTML = newStyleStr;
|
|
4249
4310
|
}
|
|
4250
|
-
}`,
|
|
4311
|
+
}`, Gi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4251
4312
|
if (!navigator.cookieEnabled) {
|
|
4252
4313
|
return;
|
|
4253
4314
|
}
|
|
@@ -4281,24 +4342,24 @@ const Ni = {
|
|
|
4281
4342
|
thisScriptEl?.remove();
|
|
4282
4343
|
}
|
|
4283
4344
|
return;
|
|
4284
|
-
}`,
|
|
4345
|
+
}`, Rr = "builderIoAbTest", Pr = "builderIoRenderContent", ut = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4285
4346
|
...t,
|
|
4286
4347
|
testVariationId: t.id,
|
|
4287
4348
|
id: e == null ? void 0 : e.id
|
|
4288
|
-
})),
|
|
4349
|
+
})), Xi = ({
|
|
4289
4350
|
canTrack: e,
|
|
4290
4351
|
content: t
|
|
4291
|
-
}) => !(!(
|
|
4292
|
-
window.${
|
|
4293
|
-
window.${
|
|
4294
|
-
`,
|
|
4295
|
-
window.${
|
|
4296
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4297
|
-
)`,
|
|
4352
|
+
}) => !(!(ut(t).length > 0) || !e || G()), Yi = (e) => e === "react" || e === "reactNative", Nr = Yi(he), Ji = () => `
|
|
4353
|
+
window.${Rr} = ${Ki}
|
|
4354
|
+
window.${Pr} = ${Gi}
|
|
4355
|
+
`, zi = (e, t) => `
|
|
4356
|
+
window.${Rr}(
|
|
4357
|
+
"${t}",${JSON.stringify(e)}, ${Nr}
|
|
4358
|
+
)`, qi = ({
|
|
4298
4359
|
contentId: e,
|
|
4299
4360
|
variationId: t
|
|
4300
|
-
}) => `window.${
|
|
4301
|
-
"${t}", "${e}", ${
|
|
4361
|
+
}) => `window.${Pr}(
|
|
4362
|
+
"${t}", "${e}", ${Nr}
|
|
4302
4363
|
)`;
|
|
4303
4364
|
function Xt(e) {
|
|
4304
4365
|
return /* @__PURE__ */ A(
|
|
@@ -4309,61 +4370,61 @@ function Xt(e) {
|
|
|
4309
4370
|
}
|
|
4310
4371
|
);
|
|
4311
4372
|
}
|
|
4312
|
-
const
|
|
4373
|
+
const Zi = (e) => {
|
|
4313
4374
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4314
|
-
return n ||
|
|
4375
|
+
return n || Y.warn("No previewed ID found in search params."), n;
|
|
4315
4376
|
};
|
|
4316
|
-
function
|
|
4317
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
4377
|
+
function Qi() {
|
|
4378
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new yo({
|
|
4318
4379
|
max: 500,
|
|
4319
4380
|
// how long to live in ms
|
|
4320
4381
|
ttl: 1e3 * 60 * 5
|
|
4321
4382
|
}));
|
|
4322
4383
|
}
|
|
4323
|
-
function
|
|
4324
|
-
|
|
4325
|
-
const t =
|
|
4384
|
+
function ea(e) {
|
|
4385
|
+
Qi();
|
|
4386
|
+
const t = Zi(e);
|
|
4326
4387
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4327
4388
|
}
|
|
4328
|
-
function
|
|
4389
|
+
function ta() {
|
|
4329
4390
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4330
4391
|
}
|
|
4331
|
-
function
|
|
4332
|
-
const e =
|
|
4392
|
+
function na() {
|
|
4393
|
+
const e = ta().fetch;
|
|
4333
4394
|
if (typeof e > "u")
|
|
4334
4395
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4335
4396
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4336
4397
|
return e;
|
|
4337
4398
|
}
|
|
4338
|
-
const
|
|
4339
|
-
function
|
|
4399
|
+
const ra = na();
|
|
4400
|
+
function ft(e, t = null, n = ".") {
|
|
4340
4401
|
return Object.keys(e).reduce((r, o) => {
|
|
4341
4402
|
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
4342
4403
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
4343
4404
|
...r,
|
|
4344
|
-
...
|
|
4405
|
+
...ft(i, s, n)
|
|
4345
4406
|
} : {
|
|
4346
4407
|
...r,
|
|
4347
4408
|
[s]: i
|
|
4348
4409
|
};
|
|
4349
4410
|
}, {});
|
|
4350
4411
|
}
|
|
4351
|
-
const
|
|
4412
|
+
const oa = "v3", er = "builder.", ia = "options.", Ur = (e) => {
|
|
4352
4413
|
if (!e)
|
|
4353
4414
|
return {};
|
|
4354
|
-
const t =
|
|
4415
|
+
const t = lr(e), n = {};
|
|
4355
4416
|
return Object.keys(t).forEach((r) => {
|
|
4356
4417
|
if (r.startsWith(er)) {
|
|
4357
|
-
const o = r.replace(er, "").replace(
|
|
4418
|
+
const o = r.replace(er, "").replace(ia, "");
|
|
4358
4419
|
n[o] = t[r];
|
|
4359
4420
|
}
|
|
4360
4421
|
}), n;
|
|
4361
|
-
},
|
|
4422
|
+
}, aa = () => {
|
|
4362
4423
|
if (!G())
|
|
4363
4424
|
return {};
|
|
4364
4425
|
const e = new URLSearchParams(window.location.search);
|
|
4365
|
-
return
|
|
4366
|
-
}, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0,
|
|
4426
|
+
return Ur(e);
|
|
4427
|
+
}, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fn = (e) => {
|
|
4367
4428
|
const {
|
|
4368
4429
|
limit: t = 30,
|
|
4369
4430
|
userAttributes: n,
|
|
@@ -4372,58 +4433,58 @@ const ea = "v3", er = "builder.", ta = "options.", Nr = (e) => {
|
|
|
4372
4433
|
apiKey: i,
|
|
4373
4434
|
enrich: s,
|
|
4374
4435
|
locale: u,
|
|
4375
|
-
apiVersion: p =
|
|
4376
|
-
fields:
|
|
4377
|
-
omit:
|
|
4436
|
+
apiVersion: p = oa,
|
|
4437
|
+
fields: S,
|
|
4438
|
+
omit: k,
|
|
4378
4439
|
offset: m,
|
|
4379
|
-
cacheSeconds:
|
|
4380
|
-
staleCacheSeconds:
|
|
4381
|
-
sort:
|
|
4382
|
-
includeUnpublished:
|
|
4440
|
+
cacheSeconds: R,
|
|
4441
|
+
staleCacheSeconds: P,
|
|
4442
|
+
sort: C,
|
|
4443
|
+
includeUnpublished: v
|
|
4383
4444
|
} = e;
|
|
4384
4445
|
if (!i)
|
|
4385
4446
|
throw new Error("Missing API key");
|
|
4386
4447
|
if (!["v3"].includes(p))
|
|
4387
4448
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
|
|
4388
|
-
const B = t !== 1,
|
|
4389
|
-
if (
|
|
4390
|
-
const
|
|
4391
|
-
sort:
|
|
4449
|
+
const B = t !== 1, j = new URL(`https://cdn.builder.io/api/${p}/content/${o}`);
|
|
4450
|
+
if (j.searchParams.set("apiKey", i), j.searchParams.set("limit", String(t)), j.searchParams.set("noTraverse", String(B)), j.searchParams.set("includeRefs", String(!0)), u && j.searchParams.set("locale", u), s && j.searchParams.set("enrich", String(s)), j.searchParams.set("omit", k || "meta.componentsUsed"), S && j.searchParams.set("fields", S), Number.isFinite(m) && m > -1 && j.searchParams.set("offset", String(Math.floor(m))), typeof v == "boolean" && j.searchParams.set("includeUnpublished", String(v)), R && tr(R) && j.searchParams.set("cacheSeconds", String(R)), P && tr(P) && j.searchParams.set("staleCacheSeconds", String(P)), C) {
|
|
4451
|
+
const M = ft({
|
|
4452
|
+
sort: C
|
|
4392
4453
|
});
|
|
4393
|
-
for (const ee in
|
|
4394
|
-
|
|
4454
|
+
for (const ee in M)
|
|
4455
|
+
j.searchParams.set(ee, JSON.stringify(M[ee]));
|
|
4395
4456
|
}
|
|
4396
|
-
const
|
|
4397
|
-
...
|
|
4398
|
-
...
|
|
4399
|
-
},
|
|
4400
|
-
for (const
|
|
4401
|
-
|
|
4402
|
-
if (n &&
|
|
4403
|
-
const
|
|
4457
|
+
const w = {
|
|
4458
|
+
...aa(),
|
|
4459
|
+
...lr(e.options || {})
|
|
4460
|
+
}, X = ft(w);
|
|
4461
|
+
for (const M in X)
|
|
4462
|
+
j.searchParams.set(M, String(X[M]));
|
|
4463
|
+
if (n && j.searchParams.set("userAttributes", JSON.stringify(n)), r) {
|
|
4464
|
+
const M = ft({
|
|
4404
4465
|
query: r
|
|
4405
4466
|
});
|
|
4406
|
-
for (const ee in
|
|
4407
|
-
|
|
4467
|
+
for (const ee in M)
|
|
4468
|
+
j.searchParams.set(ee, JSON.stringify(M[ee]));
|
|
4408
4469
|
}
|
|
4409
|
-
return
|
|
4410
|
-
},
|
|
4411
|
-
async function
|
|
4412
|
-
const t = await
|
|
4470
|
+
return j;
|
|
4471
|
+
}, sa = (e) => "results" in e;
|
|
4472
|
+
async function Br(e) {
|
|
4473
|
+
const t = await ua({
|
|
4413
4474
|
...e,
|
|
4414
4475
|
limit: 1
|
|
4415
4476
|
});
|
|
4416
4477
|
return t && t[0] || null;
|
|
4417
4478
|
}
|
|
4418
|
-
const
|
|
4419
|
-
const t =
|
|
4420
|
-
return await (await (e.fetch ??
|
|
4421
|
-
},
|
|
4479
|
+
const la = async (e) => {
|
|
4480
|
+
const t = fn(e);
|
|
4481
|
+
return await (await (e.fetch ?? ra)(t.href, e.fetchOptions)).json();
|
|
4482
|
+
}, ca = async (e, t, n = fn(e)) => {
|
|
4422
4483
|
const r = Kt(e.canTrack);
|
|
4423
4484
|
if (n.search.includes("preview=")) {
|
|
4424
4485
|
const i = [];
|
|
4425
4486
|
for (const s of t.results) {
|
|
4426
|
-
const u =
|
|
4487
|
+
const u = ea(n.searchParams);
|
|
4427
4488
|
i.push(u || s);
|
|
4428
4489
|
}
|
|
4429
4490
|
t.results = i;
|
|
@@ -4433,116 +4494,114 @@ const oa = async (e) => {
|
|
|
4433
4494
|
try {
|
|
4434
4495
|
const i = [];
|
|
4435
4496
|
for (const s of t.results)
|
|
4436
|
-
i.push(await
|
|
4497
|
+
i.push(await Ii({
|
|
4437
4498
|
item: s,
|
|
4438
4499
|
canTrack: r
|
|
4439
4500
|
}));
|
|
4440
4501
|
t.results = i;
|
|
4441
4502
|
} catch (i) {
|
|
4442
|
-
|
|
4503
|
+
Y.error("Could not process A/B tests. ", i);
|
|
4443
4504
|
}
|
|
4444
4505
|
return t.results;
|
|
4445
4506
|
};
|
|
4446
|
-
async function
|
|
4507
|
+
async function ua(e) {
|
|
4447
4508
|
try {
|
|
4448
|
-
const t =
|
|
4449
|
-
return
|
|
4509
|
+
const t = fn(e), n = await la(e);
|
|
4510
|
+
return sa(n) ? ca(e, n) : (Y.error("Error fetching data. ", {
|
|
4450
4511
|
url: t,
|
|
4451
4512
|
content: n,
|
|
4452
4513
|
options: e
|
|
4453
4514
|
}), null);
|
|
4454
4515
|
} catch (t) {
|
|
4455
|
-
return
|
|
4516
|
+
return Y.error("Error fetching data. ", t), null;
|
|
4456
4517
|
}
|
|
4457
4518
|
}
|
|
4458
|
-
function
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
const t = ur(e || window.location.search);
|
|
4462
|
-
return Jt(t) ? !1 : t.indexOf("builder.preview=") !== -1;
|
|
4519
|
+
function Za(e) {
|
|
4520
|
+
const t = e || (G() ? window.location.search : void 0);
|
|
4521
|
+
return t ? cr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
4463
4522
|
}
|
|
4464
|
-
function
|
|
4523
|
+
function fa() {
|
|
4465
4524
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4466
4525
|
const t = Math.random() * 16 | 0;
|
|
4467
4526
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4468
4527
|
});
|
|
4469
4528
|
}
|
|
4470
|
-
function
|
|
4471
|
-
return
|
|
4529
|
+
function Fr() {
|
|
4530
|
+
return fa().replace(/-/g, "");
|
|
4472
4531
|
}
|
|
4473
|
-
const
|
|
4532
|
+
const Mr = "builderSessionId", da = async ({
|
|
4474
4533
|
canTrack: e
|
|
4475
4534
|
}) => {
|
|
4476
4535
|
if (!e)
|
|
4477
4536
|
return;
|
|
4478
|
-
const t = await
|
|
4479
|
-
name:
|
|
4537
|
+
const t = await Ir({
|
|
4538
|
+
name: Mr,
|
|
4480
4539
|
canTrack: e
|
|
4481
4540
|
});
|
|
4482
4541
|
if (oe(t))
|
|
4483
4542
|
return t;
|
|
4484
4543
|
{
|
|
4485
|
-
const n =
|
|
4486
|
-
return
|
|
4544
|
+
const n = pa();
|
|
4545
|
+
return ha({
|
|
4487
4546
|
id: n,
|
|
4488
4547
|
canTrack: e
|
|
4489
4548
|
}), n;
|
|
4490
4549
|
}
|
|
4491
|
-
},
|
|
4550
|
+
}, pa = () => Fr(), ha = ({
|
|
4492
4551
|
id: e,
|
|
4493
4552
|
canTrack: t
|
|
4494
|
-
}) =>
|
|
4495
|
-
name:
|
|
4553
|
+
}) => Tr({
|
|
4554
|
+
name: Mr,
|
|
4496
4555
|
value: e,
|
|
4497
4556
|
canTrack: t
|
|
4498
|
-
}),
|
|
4557
|
+
}), Vr = () => G() && typeof localStorage < "u" ? localStorage : void 0, ma = ({
|
|
4499
4558
|
key: e,
|
|
4500
4559
|
canTrack: t
|
|
4501
4560
|
}) => {
|
|
4502
4561
|
var n;
|
|
4503
4562
|
try {
|
|
4504
|
-
return t ? (n =
|
|
4563
|
+
return t ? (n = Vr()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4505
4564
|
} catch (r) {
|
|
4506
4565
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4507
4566
|
return;
|
|
4508
4567
|
}
|
|
4509
|
-
},
|
|
4568
|
+
}, ga = ({
|
|
4510
4569
|
key: e,
|
|
4511
4570
|
canTrack: t,
|
|
4512
4571
|
value: n
|
|
4513
4572
|
}) => {
|
|
4514
4573
|
var r;
|
|
4515
4574
|
try {
|
|
4516
|
-
t && ((r =
|
|
4575
|
+
t && ((r = Vr()) == null || r.setItem(e, n));
|
|
4517
4576
|
} catch (o) {
|
|
4518
4577
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4519
4578
|
}
|
|
4520
|
-
},
|
|
4579
|
+
}, Dr = "builderVisitorId", ya = ({
|
|
4521
4580
|
canTrack: e
|
|
4522
4581
|
}) => {
|
|
4523
4582
|
if (!e)
|
|
4524
4583
|
return;
|
|
4525
|
-
const t =
|
|
4526
|
-
key:
|
|
4584
|
+
const t = ma({
|
|
4585
|
+
key: Dr,
|
|
4527
4586
|
canTrack: e
|
|
4528
4587
|
});
|
|
4529
4588
|
if (oe(t))
|
|
4530
4589
|
return t;
|
|
4531
4590
|
{
|
|
4532
|
-
const n =
|
|
4533
|
-
return
|
|
4591
|
+
const n = va();
|
|
4592
|
+
return ba({
|
|
4534
4593
|
id: n,
|
|
4535
4594
|
canTrack: e
|
|
4536
4595
|
}), n;
|
|
4537
4596
|
}
|
|
4538
|
-
},
|
|
4597
|
+
}, va = () => Fr(), ba = ({
|
|
4539
4598
|
id: e,
|
|
4540
4599
|
canTrack: t
|
|
4541
|
-
}) =>
|
|
4542
|
-
key:
|
|
4600
|
+
}) => ga({
|
|
4601
|
+
key: Dr,
|
|
4543
4602
|
value: e,
|
|
4544
4603
|
canTrack: t
|
|
4545
|
-
}),
|
|
4604
|
+
}), Sa = async ({
|
|
4546
4605
|
canTrack: e
|
|
4547
4606
|
}) => {
|
|
4548
4607
|
if (!e)
|
|
@@ -4550,16 +4609,16 @@ const Fr = "builderSessionId", la = async ({
|
|
|
4550
4609
|
visitorId: void 0,
|
|
4551
4610
|
sessionId: void 0
|
|
4552
4611
|
};
|
|
4553
|
-
const t = await
|
|
4612
|
+
const t = await da({
|
|
4554
4613
|
canTrack: e
|
|
4555
|
-
}), n =
|
|
4614
|
+
}), n = ya({
|
|
4556
4615
|
canTrack: e
|
|
4557
4616
|
});
|
|
4558
4617
|
return {
|
|
4559
4618
|
sessionId: t,
|
|
4560
4619
|
visitorId: n
|
|
4561
4620
|
};
|
|
4562
|
-
},
|
|
4621
|
+
}, wa = async ({
|
|
4563
4622
|
type: e,
|
|
4564
4623
|
canTrack: t,
|
|
4565
4624
|
apiKey: n,
|
|
@@ -4573,23 +4632,23 @@ const Fr = "builderSessionId", la = async ({
|
|
|
4573
4632
|
url: location.href,
|
|
4574
4633
|
...r
|
|
4575
4634
|
},
|
|
4576
|
-
...await
|
|
4635
|
+
...await Sa({
|
|
4577
4636
|
canTrack: t
|
|
4578
4637
|
}),
|
|
4579
4638
|
userAttributes: fr(),
|
|
4580
4639
|
ownerId: n
|
|
4581
4640
|
}
|
|
4582
4641
|
});
|
|
4583
|
-
async function
|
|
4642
|
+
async function xa(e) {
|
|
4584
4643
|
if (!e.apiKey) {
|
|
4585
|
-
|
|
4644
|
+
Y.error("Missing API key for track call. Please provide your API key.");
|
|
4586
4645
|
return;
|
|
4587
4646
|
}
|
|
4588
|
-
if (e.canTrack && !
|
|
4647
|
+
if (e.canTrack && !ur() && (G() || he === "reactNative"))
|
|
4589
4648
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4590
4649
|
method: "POST",
|
|
4591
4650
|
body: JSON.stringify({
|
|
4592
|
-
events: [await
|
|
4651
|
+
events: [await wa(e)]
|
|
4593
4652
|
}),
|
|
4594
4653
|
headers: {
|
|
4595
4654
|
"content-type": "application/json"
|
|
@@ -4599,14 +4658,14 @@ async function va(e) {
|
|
|
4599
4658
|
console.error("Failed to track: ", t);
|
|
4600
4659
|
});
|
|
4601
4660
|
}
|
|
4602
|
-
const
|
|
4661
|
+
const Qa = (e) => xa({
|
|
4603
4662
|
...e,
|
|
4604
4663
|
canTrack: !0
|
|
4605
4664
|
});
|
|
4606
4665
|
function nr(e) {
|
|
4607
4666
|
return Math.round(e * 1e3) / 1e3;
|
|
4608
4667
|
}
|
|
4609
|
-
const
|
|
4668
|
+
const ka = (e, t, n = !0) => {
|
|
4610
4669
|
if (!(e instanceof HTMLElement))
|
|
4611
4670
|
return null;
|
|
4612
4671
|
let r = n ? e : e.parentElement;
|
|
@@ -4617,7 +4676,7 @@ const ba = (e, t, n = !0) => {
|
|
|
4617
4676
|
return r;
|
|
4618
4677
|
} while (r = r.parentElement);
|
|
4619
4678
|
return null;
|
|
4620
|
-
},
|
|
4679
|
+
}, Ca = (e) => ka(e, (t) => {
|
|
4621
4680
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4622
4681
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4623
4682
|
}), rr = ({
|
|
@@ -4629,8 +4688,8 @@ const ba = (e, t, n = !0) => {
|
|
|
4629
4688
|
x: i,
|
|
4630
4689
|
y: s
|
|
4631
4690
|
};
|
|
4632
|
-
},
|
|
4633
|
-
const t = e.target, n = t &&
|
|
4691
|
+
}, es = (e) => {
|
|
4692
|
+
const t = e.target, n = t && Ca(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4634
4693
|
return {
|
|
4635
4694
|
targetBuilderElement: r || void 0,
|
|
4636
4695
|
metadata: {
|
|
@@ -4645,13 +4704,13 @@ const ba = (e, t, n = !0) => {
|
|
|
4645
4704
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4646
4705
|
}
|
|
4647
4706
|
};
|
|
4648
|
-
},
|
|
4649
|
-
function
|
|
4707
|
+
}, Ea = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4708
|
+
function Lr(e, t) {
|
|
4650
4709
|
const n = new URL(t.origin), r = n.hostname;
|
|
4651
|
-
return (e ||
|
|
4710
|
+
return (e || Ea).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4652
4711
|
}
|
|
4653
|
-
const
|
|
4654
|
-
function
|
|
4712
|
+
const Ia = "0.14.16", or = {};
|
|
4713
|
+
function Ta(e, t) {
|
|
4655
4714
|
let n = or[e];
|
|
4656
4715
|
if (n || (n = or[e] = []), n.push(t), G()) {
|
|
4657
4716
|
const r = {
|
|
@@ -4668,8 +4727,8 @@ function ka(e, t) {
|
|
|
4668
4727
|
}
|
|
4669
4728
|
}
|
|
4670
4729
|
}
|
|
4671
|
-
const
|
|
4672
|
-
|
|
4730
|
+
const ts = () => {
|
|
4731
|
+
Ta("insertMenu", {
|
|
4673
4732
|
name: "_default",
|
|
4674
4733
|
default: !0,
|
|
4675
4734
|
items: [{
|
|
@@ -4692,13 +4751,13 @@ const es = () => {
|
|
|
4692
4751
|
});
|
|
4693
4752
|
};
|
|
4694
4753
|
let ir = !1;
|
|
4695
|
-
const
|
|
4754
|
+
const Aa = (e = {}) => {
|
|
4696
4755
|
var t, n;
|
|
4697
4756
|
ir || (ir = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
4698
4757
|
type: "builder.sdkInfo",
|
|
4699
4758
|
data: {
|
|
4700
4759
|
target: he,
|
|
4701
|
-
version:
|
|
4760
|
+
version: Ia,
|
|
4702
4761
|
supportsPatchUpdates: !1,
|
|
4703
4762
|
// Supports builder-model="..." attribute which is needed to
|
|
4704
4763
|
// scope our '+ add block' button styling
|
|
@@ -4712,7 +4771,7 @@ const Ca = (e = {}) => {
|
|
|
4712
4771
|
}
|
|
4713
4772
|
}, "*"), window.addEventListener("message", (r) => {
|
|
4714
4773
|
var i, s;
|
|
4715
|
-
if (!
|
|
4774
|
+
if (!Lr(e.trustedHosts, r))
|
|
4716
4775
|
return;
|
|
4717
4776
|
const {
|
|
4718
4777
|
data: o
|
|
@@ -4720,45 +4779,45 @@ const Ca = (e = {}) => {
|
|
|
4720
4779
|
if (o != null && o.type)
|
|
4721
4780
|
switch (o.type) {
|
|
4722
4781
|
case "builder.evaluate": {
|
|
4723
|
-
const u = o.data.text, p = o.data.arguments || [],
|
|
4724
|
-
let m,
|
|
4782
|
+
const u = o.data.text, p = o.data.arguments || [], S = o.data.id, k = new Function(u);
|
|
4783
|
+
let m, R = null;
|
|
4725
4784
|
try {
|
|
4726
|
-
m =
|
|
4727
|
-
} catch (
|
|
4728
|
-
|
|
4785
|
+
m = k.apply(null, p);
|
|
4786
|
+
} catch (P) {
|
|
4787
|
+
R = P;
|
|
4729
4788
|
}
|
|
4730
|
-
|
|
4789
|
+
R ? (i = window.parent) == null || i.postMessage({
|
|
4731
4790
|
type: "builder.evaluateError",
|
|
4732
4791
|
data: {
|
|
4733
|
-
id:
|
|
4734
|
-
error:
|
|
4792
|
+
id: S,
|
|
4793
|
+
error: R.message
|
|
4735
4794
|
}
|
|
4736
|
-
}, "*") : m && typeof m.then == "function" ? m.then((
|
|
4737
|
-
var
|
|
4738
|
-
(
|
|
4795
|
+
}, "*") : m && typeof m.then == "function" ? m.then((P) => {
|
|
4796
|
+
var C;
|
|
4797
|
+
(C = window.parent) == null || C.postMessage({
|
|
4739
4798
|
type: "builder.evaluateResult",
|
|
4740
4799
|
data: {
|
|
4741
|
-
id:
|
|
4742
|
-
result:
|
|
4800
|
+
id: S,
|
|
4801
|
+
result: P
|
|
4743
4802
|
}
|
|
4744
4803
|
}, "*");
|
|
4745
4804
|
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
4746
4805
|
type: "builder.evaluateResult",
|
|
4747
4806
|
data: {
|
|
4748
4807
|
result: m,
|
|
4749
|
-
id:
|
|
4808
|
+
id: S
|
|
4750
4809
|
}
|
|
4751
4810
|
}, "*");
|
|
4752
4811
|
break;
|
|
4753
4812
|
}
|
|
4754
4813
|
}
|
|
4755
4814
|
})));
|
|
4756
|
-
},
|
|
4815
|
+
}, Oa = ({
|
|
4757
4816
|
model: e,
|
|
4758
4817
|
trustedHosts: t,
|
|
4759
4818
|
callbacks: n
|
|
4760
4819
|
}) => (r) => {
|
|
4761
|
-
if (!
|
|
4820
|
+
if (!Lr(t, r))
|
|
4762
4821
|
return;
|
|
4763
4822
|
const {
|
|
4764
4823
|
data: o
|
|
@@ -4779,12 +4838,12 @@ const Ca = (e = {}) => {
|
|
|
4779
4838
|
break;
|
|
4780
4839
|
}
|
|
4781
4840
|
}
|
|
4782
|
-
},
|
|
4841
|
+
}, ns = (e, t, n) => {
|
|
4783
4842
|
if (!G)
|
|
4784
|
-
return
|
|
4843
|
+
return Y.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
4785
4844
|
};
|
|
4786
|
-
|
|
4787
|
-
const r =
|
|
4845
|
+
Aa();
|
|
4846
|
+
const r = Oa({
|
|
4788
4847
|
callbacks: {
|
|
4789
4848
|
contentUpdate: t,
|
|
4790
4849
|
animation: () => {
|
|
@@ -4798,49 +4857,7 @@ const Ca = (e = {}) => {
|
|
|
4798
4857
|
return window.addEventListener("message", r), () => {
|
|
4799
4858
|
window.removeEventListener("message", r);
|
|
4800
4859
|
};
|
|
4801
|
-
}
|
|
4802
|
-
function ar(e, ...t) {
|
|
4803
|
-
const n = Object(e);
|
|
4804
|
-
for (let r = 1; r < arguments.length; r++) {
|
|
4805
|
-
const o = arguments[r];
|
|
4806
|
-
if (o != null)
|
|
4807
|
-
for (const i in o)
|
|
4808
|
-
Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]);
|
|
4809
|
-
}
|
|
4810
|
-
return n;
|
|
4811
|
-
}
|
|
4812
|
-
const Ia = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
4813
|
-
function Ta(e) {
|
|
4814
|
-
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
4815
|
-
}
|
|
4816
|
-
function Aa(e, t) {
|
|
4817
|
-
const n = Oa(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
4818
|
-
for (const u of s)
|
|
4819
|
-
for (const p of n)
|
|
4820
|
-
p in u || (u[p] = r[p]);
|
|
4821
|
-
}
|
|
4822
|
-
function Oa(e) {
|
|
4823
|
-
const t = [];
|
|
4824
|
-
for (const n of e.steps)
|
|
4825
|
-
for (const r in n.styles)
|
|
4826
|
-
t.indexOf(r) === -1 && t.push(r);
|
|
4827
|
-
return t;
|
|
4828
|
-
}
|
|
4829
|
-
function ns(e) {
|
|
4830
|
-
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
4831
|
-
if (!t.length) {
|
|
4832
|
-
Ta(e.elementId || e.id || "");
|
|
4833
|
-
return;
|
|
4834
|
-
}
|
|
4835
|
-
Array.from(t).forEach((n) => {
|
|
4836
|
-
Aa(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ar(n.style, e.steps[0].styles), setTimeout(() => {
|
|
4837
|
-
n.style.transition = `all ${e.duration}s ${Ia(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ar(n.style, e.steps[1].styles), setTimeout(() => {
|
|
4838
|
-
n.style.transition = "", n.style.transitionDelay = "";
|
|
4839
|
-
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
4840
|
-
});
|
|
4841
|
-
});
|
|
4842
|
-
}
|
|
4843
|
-
const ja = (e) => {
|
|
4860
|
+
}, ja = (e) => {
|
|
4844
4861
|
var i;
|
|
4845
4862
|
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);
|
|
4846
4863
|
let o = "";
|
|
@@ -4903,7 +4920,7 @@ ${Ra({
|
|
|
4903
4920
|
})}
|
|
4904
4921
|
${Ua(e.isNestedRender)}
|
|
4905
4922
|
`.trim();
|
|
4906
|
-
return /* @__PURE__ */ A(
|
|
4923
|
+
return /* @__PURE__ */ A(gt, { id: "builderio-content", styles: t });
|
|
4907
4924
|
}
|
|
4908
4925
|
const Fa = ({
|
|
4909
4926
|
content: e,
|
|
@@ -4933,9 +4950,9 @@ const Fa = ({
|
|
|
4933
4950
|
},
|
|
4934
4951
|
meta: e == null ? void 0 : e.meta
|
|
4935
4952
|
} : void 0;
|
|
4936
|
-
function
|
|
4937
|
-
var o, i, s, u, p,
|
|
4938
|
-
const t =
|
|
4953
|
+
function ar(e) {
|
|
4954
|
+
var o, i, s, u, p, S, k, m, R;
|
|
4955
|
+
const t = qi({
|
|
4939
4956
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4940
4957
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4941
4958
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4944,11 +4961,11 @@ function sr(e) {
|
|
|
4944
4961
|
...Qn(),
|
|
4945
4962
|
...e.customComponents || []
|
|
4946
4963
|
].reduce(
|
|
4947
|
-
(
|
|
4948
|
-
...
|
|
4949
|
-
[
|
|
4950
|
-
component:
|
|
4951
|
-
...Gt(
|
|
4964
|
+
(P, { component: C, ...v }) => ({
|
|
4965
|
+
...P,
|
|
4966
|
+
[v.name]: {
|
|
4967
|
+
component: C,
|
|
4968
|
+
...Gt(v)
|
|
4952
4969
|
}
|
|
4953
4970
|
}),
|
|
4954
4971
|
{}
|
|
@@ -4971,9 +4988,9 @@ function sr(e) {
|
|
|
4971
4988
|
...Qn(),
|
|
4972
4989
|
...e.customComponents || []
|
|
4973
4990
|
].reduce(
|
|
4974
|
-
(
|
|
4975
|
-
...
|
|
4976
|
-
[
|
|
4991
|
+
(P, { component: C, ...v }) => ({
|
|
4992
|
+
...P,
|
|
4993
|
+
[v.name]: Gt(v)
|
|
4977
4994
|
}),
|
|
4978
4995
|
{}
|
|
4979
4996
|
),
|
|
@@ -4982,7 +4999,7 @@ function sr(e) {
|
|
|
4982
4999
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4983
5000
|
};
|
|
4984
5001
|
return /* @__PURE__ */ xe(
|
|
4985
|
-
|
|
5002
|
+
go,
|
|
4986
5003
|
{
|
|
4987
5004
|
content: e.content,
|
|
4988
5005
|
data: e.data,
|
|
@@ -5012,13 +5029,13 @@ function sr(e) {
|
|
|
5012
5029
|
isNestedRender: e.isNestedRender,
|
|
5013
5030
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
5014
5031
|
cssCode: (p = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : p.cssCode,
|
|
5015
|
-
customFonts: (
|
|
5032
|
+
customFonts: (k = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : k.customFonts
|
|
5016
5033
|
}
|
|
5017
5034
|
),
|
|
5018
5035
|
/* @__PURE__ */ A(
|
|
5019
|
-
|
|
5036
|
+
cn,
|
|
5020
5037
|
{
|
|
5021
|
-
blocks: (
|
|
5038
|
+
blocks: (R = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : R.blocks,
|
|
5022
5039
|
context: r,
|
|
5023
5040
|
registeredComponents: n,
|
|
5024
5041
|
linkComponent: e.linkComponent
|
|
@@ -5030,41 +5047,41 @@ function sr(e) {
|
|
|
5030
5047
|
}
|
|
5031
5048
|
function Va(e) {
|
|
5032
5049
|
var i;
|
|
5033
|
-
const t =
|
|
5050
|
+
const t = Xi({
|
|
5034
5051
|
canTrack: Kt(e.canTrack),
|
|
5035
5052
|
content: e.content
|
|
5036
5053
|
}), n = function() {
|
|
5037
5054
|
var u;
|
|
5038
|
-
return
|
|
5039
|
-
|
|
5055
|
+
return zi(
|
|
5056
|
+
ut(e.content).map((p) => ({
|
|
5040
5057
|
id: p.testVariationId,
|
|
5041
5058
|
testRatio: p.testRatio
|
|
5042
5059
|
})),
|
|
5043
5060
|
((u = e.content) == null ? void 0 : u.id) || ""
|
|
5044
5061
|
);
|
|
5045
5062
|
}, r = function() {
|
|
5046
|
-
return
|
|
5063
|
+
return ut(e.content).map((u) => `.variant-${u.testVariationId} { display: none; } `).join("");
|
|
5047
5064
|
}, o = function() {
|
|
5048
5065
|
var u;
|
|
5049
5066
|
return t ? {
|
|
5050
5067
|
...e.content,
|
|
5051
5068
|
testVariationId: (u = e.content) == null ? void 0 : u.id
|
|
5052
|
-
} :
|
|
5069
|
+
} : Ei({
|
|
5053
5070
|
item: e.content,
|
|
5054
5071
|
canTrack: Kt(e.canTrack)
|
|
5055
5072
|
});
|
|
5056
5073
|
};
|
|
5057
|
-
return /* @__PURE__ */ xe(
|
|
5074
|
+
return /* @__PURE__ */ xe(Q, { children: [
|
|
5058
5075
|
!e.isNestedRender && he !== "reactNative" ? /* @__PURE__ */ A(
|
|
5059
5076
|
Xt,
|
|
5060
5077
|
{
|
|
5061
5078
|
id: "builderio-init-variants-fns",
|
|
5062
|
-
scriptStr:
|
|
5079
|
+
scriptStr: Ji()
|
|
5063
5080
|
}
|
|
5064
5081
|
) : null,
|
|
5065
|
-
t ? /* @__PURE__ */ xe(
|
|
5082
|
+
t ? /* @__PURE__ */ xe(Q, { children: [
|
|
5066
5083
|
/* @__PURE__ */ A(
|
|
5067
|
-
|
|
5084
|
+
gt,
|
|
5068
5085
|
{
|
|
5069
5086
|
id: "builderio-variants",
|
|
5070
5087
|
styles: r()
|
|
@@ -5077,8 +5094,8 @@ function Va(e) {
|
|
|
5077
5094
|
scriptStr: n()
|
|
5078
5095
|
}
|
|
5079
5096
|
),
|
|
5080
|
-
(i =
|
|
5081
|
-
|
|
5097
|
+
(i = ut(e.content)) == null ? void 0 : i.map((s) => /* @__PURE__ */ A(
|
|
5098
|
+
ar,
|
|
5082
5099
|
{
|
|
5083
5100
|
isNestedRender: e.isNestedRender,
|
|
5084
5101
|
content: s,
|
|
@@ -5104,7 +5121,7 @@ function Va(e) {
|
|
|
5104
5121
|
))
|
|
5105
5122
|
] }) : null,
|
|
5106
5123
|
/* @__PURE__ */ A(
|
|
5107
|
-
|
|
5124
|
+
ar,
|
|
5108
5125
|
{
|
|
5109
5126
|
isNestedRender: e.isNestedRender,
|
|
5110
5127
|
content: o(),
|
|
@@ -5135,7 +5152,7 @@ const Da = async ({
|
|
|
5135
5152
|
}) => {
|
|
5136
5153
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5137
5154
|
(e != null && e.apiKey))
|
|
5138
|
-
return
|
|
5155
|
+
return Br({
|
|
5139
5156
|
model: t.model,
|
|
5140
5157
|
apiKey: e.apiKey,
|
|
5141
5158
|
apiVersion: e.apiVersion,
|
|
@@ -5145,18 +5162,18 @@ const Da = async ({
|
|
|
5145
5162
|
}
|
|
5146
5163
|
}
|
|
5147
5164
|
}).catch((n) => {
|
|
5148
|
-
|
|
5165
|
+
Y.error("Could not fetch symbol content: ", n);
|
|
5149
5166
|
});
|
|
5150
5167
|
};
|
|
5151
5168
|
async function La(e) {
|
|
5152
5169
|
var r, o, i, s, u;
|
|
5153
5170
|
const t = function() {
|
|
5154
|
-
var
|
|
5171
|
+
var S, k;
|
|
5155
5172
|
return [
|
|
5156
5173
|
e.attributes[Yt()],
|
|
5157
5174
|
"builder-symbol",
|
|
5158
|
-
(
|
|
5159
|
-
(
|
|
5175
|
+
(S = e.symbol) != null && S.inline ? "builder-inline-symbol" : void 0,
|
|
5176
|
+
(k = e.symbol) != null && k.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5160
5177
|
].filter(Boolean).join(" ");
|
|
5161
5178
|
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await Da({
|
|
5162
5179
|
symbol: e.symbol,
|
|
@@ -5186,13 +5203,13 @@ async function La(e) {
|
|
|
5186
5203
|
}
|
|
5187
5204
|
) });
|
|
5188
5205
|
}
|
|
5189
|
-
const
|
|
5206
|
+
const sr = {};
|
|
5190
5207
|
function rs(e) {
|
|
5191
5208
|
if (G()) {
|
|
5192
|
-
Object.assign(
|
|
5209
|
+
Object.assign(sr, e);
|
|
5193
5210
|
const t = {
|
|
5194
5211
|
type: "builder.settingsChange",
|
|
5195
|
-
data:
|
|
5212
|
+
data: sr
|
|
5196
5213
|
};
|
|
5197
5214
|
parent.postMessage(t, "*");
|
|
5198
5215
|
}
|
|
@@ -5209,49 +5226,49 @@ const os = async (e) => {
|
|
|
5209
5226
|
urlPath: t
|
|
5210
5227
|
} : {}
|
|
5211
5228
|
},
|
|
5212
|
-
options:
|
|
5229
|
+
options: Ur(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
5213
5230
|
};
|
|
5214
5231
|
return {
|
|
5215
5232
|
apiKey: n.apiKey,
|
|
5216
5233
|
model: n.model,
|
|
5217
|
-
content: await
|
|
5234
|
+
content: await Br(n)
|
|
5218
5235
|
};
|
|
5219
5236
|
};
|
|
5220
5237
|
export {
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5238
|
+
Qa as A,
|
|
5239
|
+
cn as B,
|
|
5240
|
+
pi as C,
|
|
5241
|
+
ns as D,
|
|
5225
5242
|
os as E,
|
|
5226
|
-
|
|
5227
|
-
|
|
5243
|
+
ca as F,
|
|
5244
|
+
ua as G,
|
|
5228
5245
|
La as S,
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5246
|
+
Fi as T,
|
|
5247
|
+
xa as _,
|
|
5248
|
+
ui as a,
|
|
5249
|
+
Ya as b,
|
|
5250
|
+
ur as c,
|
|
5251
|
+
Ja as d,
|
|
5252
|
+
za as e,
|
|
5236
5253
|
G as f,
|
|
5237
5254
|
Yt as g,
|
|
5238
5255
|
Kt as h,
|
|
5239
5256
|
Ga as i,
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5257
|
+
Za as j,
|
|
5258
|
+
Oa as k,
|
|
5259
|
+
Y as l,
|
|
5260
|
+
ln as m,
|
|
5261
|
+
es as n,
|
|
5262
|
+
ra as o,
|
|
5263
|
+
mt as p,
|
|
5264
|
+
qa as q,
|
|
5265
|
+
ts as r,
|
|
5266
|
+
Aa as s,
|
|
5267
|
+
Xa as t,
|
|
5268
|
+
Br as u,
|
|
5269
|
+
Qi as v,
|
|
5253
5270
|
Va as w,
|
|
5254
|
-
|
|
5271
|
+
Ta as x,
|
|
5255
5272
|
rs as y,
|
|
5256
|
-
|
|
5273
|
+
Ur as z
|
|
5257
5274
|
};
|