@builder.io/sdk-react-nextjs 0.6.3 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/USE_CLIENT_BUNDLE-3a41b1ba.js +23 -0
- package/lib/browser/{USE_CLIENT_BUNDLE-7df521d2.mjs → USE_CLIENT_BUNDLE-fc8c1bc0.mjs} +177 -179
- package/lib/{edge/USE_SERVER_BUNDLE-6554eb5e.mjs → browser/USE_SERVER_BUNDLE-226a15ac.mjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-b339a170.js → browser/USE_SERVER_BUNDLE-d8c698c8.js} +1 -1
- package/lib/browser/{bundle-a1b650c9.js → bundle-0fae602b.js} +8 -8
- package/lib/browser/{bundle-c727cf36.mjs → bundle-3b073b16.mjs} +24 -20
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +7 -7
- package/lib/{node/USE_CLIENT_BUNDLE-7df521d2.mjs → edge/USE_CLIENT_BUNDLE-0e9f8e67.mjs} +177 -179
- package/lib/edge/USE_CLIENT_BUNDLE-d48583e8.js +23 -0
- package/lib/{node/USE_SERVER_BUNDLE-7d2b1f4f.js → edge/USE_SERVER_BUNDLE-105e9ef3.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-4eda8de6.mjs → edge/USE_SERVER_BUNDLE-f6a1e321.mjs} +1 -1
- package/lib/edge/{bundle-56d2ffe3.js → bundle-0c1d9099.js} +24 -24
- package/lib/edge/{bundle-75be1e37.mjs → bundle-ed178c62.mjs} +878 -874
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +7 -7
- package/lib/node/USE_CLIENT_BUNDLE-3a41b1ba.js +23 -0
- package/lib/{edge/USE_CLIENT_BUNDLE-88bd3402.mjs → node/USE_CLIENT_BUNDLE-fc8c1bc0.mjs} +177 -179
- package/lib/{browser/USE_SERVER_BUNDLE-4eda8de6.mjs → node/USE_SERVER_BUNDLE-226a15ac.mjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-7d2b1f4f.js → node/USE_SERVER_BUNDLE-d8c698c8.js} +1 -1
- package/lib/node/{bundle-a1b650c9.js → bundle-0fae602b.js} +8 -8
- package/lib/node/{bundle-c727cf36.mjs → bundle-3b073b16.mjs} +24 -20
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +7 -7
- package/package.json +2 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/browser/USE_CLIENT_BUNDLE-ba140db3.js +0 -23
- package/lib/edge/USE_CLIENT_BUNDLE-c1e8e1b1.js +0 -23
- package/lib/node/USE_CLIENT_BUNDLE-ba140db3.js +0 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LRUCache as qr } from "lru-cache";
|
|
2
2
|
import { jsx as I, Fragment as _, jsxs as ce } from "react/jsx-runtime";
|
|
3
3
|
import { createElement as Zr } from "react";
|
|
4
|
-
import { I as Qr, B as Wn, a as eo, b as to, C as no, E as ro, F as oo, c as io, d as ao, S as so, V as lo, e as co } from "./USE_CLIENT_BUNDLE-
|
|
4
|
+
import { I as Qr, B as Wn, a as eo, b as to, C as no, E as ro, F as oo, c as io, d as ao, S as so, V as lo, e as co } from "./USE_CLIENT_BUNDLE-0e9f8e67.mjs";
|
|
5
5
|
import "next/navigation";
|
|
6
6
|
const lt = (e) => JSON.parse(JSON.stringify(e)), lr = {
|
|
7
7
|
small: {
|
|
@@ -23,28 +23,28 @@ const lt = (e) => JSON.parse(JSON.stringify(e)), lr = {
|
|
|
23
23
|
small: e,
|
|
24
24
|
medium: t
|
|
25
25
|
}) => {
|
|
26
|
-
const
|
|
26
|
+
const r = lt(lr);
|
|
27
27
|
if (!e || !t)
|
|
28
|
-
return
|
|
29
|
-
const
|
|
30
|
-
|
|
28
|
+
return r;
|
|
29
|
+
const n = Math.floor(e / 2);
|
|
30
|
+
r.small = {
|
|
31
31
|
max: e,
|
|
32
|
-
min:
|
|
33
|
-
default:
|
|
32
|
+
min: n,
|
|
33
|
+
default: n + 1
|
|
34
34
|
};
|
|
35
|
-
const o =
|
|
36
|
-
|
|
35
|
+
const o = r.small.max + 1;
|
|
36
|
+
r.medium = {
|
|
37
37
|
max: t,
|
|
38
38
|
min: o,
|
|
39
39
|
default: o + 1
|
|
40
40
|
};
|
|
41
|
-
const a =
|
|
42
|
-
return
|
|
41
|
+
const a = r.medium.max + 1;
|
|
42
|
+
return r.large = {
|
|
43
43
|
max: 2e3,
|
|
44
44
|
// TODO: decide upper limit
|
|
45
45
|
min: a,
|
|
46
46
|
default: a + 1
|
|
47
|
-
},
|
|
47
|
+
}, r;
|
|
48
48
|
}, ge = "rsc", it = "[Builder.io]: ", q = {
|
|
49
49
|
log: (...e) => console.log(it, ...e),
|
|
50
50
|
error: (...e) => console.error(it, ...e),
|
|
@@ -86,26 +86,26 @@ const fo = () => {
|
|
|
86
86
|
any() {
|
|
87
87
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || ge === "reactNative";
|
|
88
88
|
}
|
|
89
|
-
},
|
|
89
|
+
}, r = e.match(/Tablet|iPad/i), n = fo();
|
|
90
90
|
return {
|
|
91
|
-
urlPath:
|
|
92
|
-
host: (
|
|
93
|
-
device:
|
|
91
|
+
urlPath: n == null ? void 0 : n.pathname,
|
|
92
|
+
host: (n == null ? void 0 : n.host) || (n == null ? void 0 : n.hostname),
|
|
93
|
+
device: r ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
94
94
|
};
|
|
95
|
-
}, fr = (e, t,
|
|
95
|
+
}, fr = (e, t, r) => {
|
|
96
96
|
if (Object(e) !== e)
|
|
97
97
|
return e;
|
|
98
|
-
const
|
|
99
|
-
return
|
|
98
|
+
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
99
|
+
return n.slice(0, -1).reduce((o, a, s) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(n[s + 1])) >> 0 === +n[s + 1] ? [] : {}, e)[n[n.length - 1]] = r, e;
|
|
100
100
|
};
|
|
101
101
|
var M, ho = function(e) {
|
|
102
102
|
function t(i) {
|
|
103
103
|
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Jr.test(String.fromCharCode(i));
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function r(i) {
|
|
106
106
|
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Dn.test(String.fromCharCode(i));
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function n(i, l) {
|
|
109
109
|
for (var c = w, p = 1, A = 0; ; ) {
|
|
110
110
|
ot.lastIndex = A;
|
|
111
111
|
var $ = ot.exec(c);
|
|
@@ -153,7 +153,7 @@ var M, ho = function(e) {
|
|
|
153
153
|
if (i = w.charCodeAt(u + 1), i === 42) {
|
|
154
154
|
i = void 0;
|
|
155
155
|
var l = O.va && O.C && new a(), c = u, p = w.indexOf("*/", u += 2);
|
|
156
|
-
if (p === -1 &&
|
|
156
|
+
if (p === -1 && n(u - 2, "Unterminated comment"), u = p + 2, O.C)
|
|
157
157
|
for (ot.lastIndex = c; (i = ot.exec(w)) && i.index < u; )
|
|
158
158
|
++ve, re = i.index + i[0].length;
|
|
159
159
|
O.va && O.va(!0, w.slice(c + 2, p), c, u, l, O.C && new a());
|
|
@@ -196,7 +196,7 @@ var M, ho = function(e) {
|
|
|
196
196
|
return ++u, s(Fn);
|
|
197
197
|
case 48:
|
|
198
198
|
if (i = w.charCodeAt(u + 1), i === 120 || i === 88) {
|
|
199
|
-
u += 2, i = E(16), i === null &&
|
|
199
|
+
u += 2, i = E(16), i === null && n(L + 2, "Expected hexadecimal number"), r(w.charCodeAt(u)) && n(u, "Identifier directly after number"), s(Be, i);
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
202
|
case 49:
|
|
@@ -213,7 +213,7 @@ var M, ho = function(e) {
|
|
|
213
213
|
case 39:
|
|
214
214
|
u++;
|
|
215
215
|
for (var l = ""; ; ) {
|
|
216
|
-
u >= Se &&
|
|
216
|
+
u >= Se && n(L, "Unterminated string constant");
|
|
217
217
|
var c = w.charCodeAt(u);
|
|
218
218
|
if (c === i) {
|
|
219
219
|
++u, s(et, l);
|
|
@@ -225,7 +225,7 @@ var M, ho = function(e) {
|
|
|
225
225
|
for (p && (p = p[0]); p && 255 < parseInt(p, 8); )
|
|
226
226
|
p = p.slice(0, -1);
|
|
227
227
|
if (p === "0" && (p = null), ++u, p)
|
|
228
|
-
Y &&
|
|
228
|
+
Y && n(u - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(p, 8)), u += p.length - 1;
|
|
229
229
|
else
|
|
230
230
|
switch (c) {
|
|
231
231
|
case 110:
|
|
@@ -268,7 +268,7 @@ var M, ho = function(e) {
|
|
|
268
268
|
l += String.fromCharCode(c);
|
|
269
269
|
}
|
|
270
270
|
} else
|
|
271
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 ||
|
|
271
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || n(L, "Unterminated string constant"), l += String.fromCharCode(c), ++u;
|
|
272
272
|
}
|
|
273
273
|
return;
|
|
274
274
|
case 47:
|
|
@@ -307,12 +307,12 @@ var M, ho = function(e) {
|
|
|
307
307
|
return P();
|
|
308
308
|
if (u >= Se)
|
|
309
309
|
return s(It);
|
|
310
|
-
if (i = w.charCodeAt(u),
|
|
310
|
+
if (i = w.charCodeAt(u), r(i) || i === 92)
|
|
311
311
|
return U();
|
|
312
312
|
if (m(i) === !1) {
|
|
313
313
|
if (i = String.fromCharCode(i), i === "\\" || Dn.test(i))
|
|
314
314
|
return U();
|
|
315
|
-
|
|
315
|
+
n(u, "Unexpected character '" + i + "'");
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
function y(i, l) {
|
|
@@ -321,9 +321,9 @@ var M, ho = function(e) {
|
|
|
321
321
|
}
|
|
322
322
|
function P() {
|
|
323
323
|
for (var i, l, c = u; ; ) {
|
|
324
|
-
u >= Se &&
|
|
324
|
+
u >= Se && n(c, "Unterminated regexp");
|
|
325
325
|
var p = w.charAt(u);
|
|
326
|
-
if (rt.test(p) &&
|
|
326
|
+
if (rt.test(p) && n(c, "Unterminated regexp"), i)
|
|
327
327
|
i = !1;
|
|
328
328
|
else {
|
|
329
329
|
if (p === "[")
|
|
@@ -336,11 +336,11 @@ var M, ho = function(e) {
|
|
|
336
336
|
}
|
|
337
337
|
++u;
|
|
338
338
|
}
|
|
339
|
-
i = w.slice(c, u), ++u, (l = N()) && !/^[gmi]*$/.test(l) &&
|
|
339
|
+
i = w.slice(c, u), ++u, (l = N()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
340
340
|
try {
|
|
341
341
|
var A = new RegExp(i, l);
|
|
342
342
|
} catch ($) {
|
|
343
|
-
throw $ instanceof SyntaxError &&
|
|
343
|
+
throw $ instanceof SyntaxError && n(c, $.message), $;
|
|
344
344
|
}
|
|
345
345
|
s(mn, A);
|
|
346
346
|
}
|
|
@@ -355,12 +355,12 @@ var M, ho = function(e) {
|
|
|
355
355
|
}
|
|
356
356
|
function S(i) {
|
|
357
357
|
var l = u, c = !1, p = w.charCodeAt(u) === 48;
|
|
358
|
-
i || E(10) !== null ||
|
|
358
|
+
i || E(10) !== null || n(l, "Invalid number"), w.charCodeAt(u) === 46 && (++u, E(10), c = !0), i = w.charCodeAt(u), (i === 69 || i === 101) && (i = w.charCodeAt(++u), i !== 43 && i !== 45 || ++u, E(10) === null && n(l, "Invalid number"), c = !0), r(w.charCodeAt(u)) && n(u, "Identifier directly after number"), i = w.slice(l, u);
|
|
359
359
|
var A;
|
|
360
|
-
c ? A = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || Y ?
|
|
360
|
+
c ? A = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || Y ? n(l, "Invalid number") : A = parseInt(i, 8) : A = parseInt(i, 10), s(Be, A);
|
|
361
361
|
}
|
|
362
362
|
function v(i) {
|
|
363
|
-
return i = E(16, i), i === null &&
|
|
363
|
+
return i = E(16, i), i === null && n(L, "Bad character escape sequence"), i;
|
|
364
364
|
}
|
|
365
365
|
function N() {
|
|
366
366
|
Ee = !1;
|
|
@@ -369,9 +369,9 @@ var M, ho = function(e) {
|
|
|
369
369
|
if (t(p))
|
|
370
370
|
Ee && (i += w.charAt(u)), ++u;
|
|
371
371
|
else if (p === 92) {
|
|
372
|
-
Ee || (i = w.slice(c, u)), Ee = !0, w.charCodeAt(++u) !== 117 &&
|
|
372
|
+
Ee || (i = w.slice(c, u)), Ee = !0, w.charCodeAt(++u) !== 117 && n(u, "Expecting Unicode escape sequence \\uXXXX"), ++u, p = v(4);
|
|
373
373
|
var A = String.fromCharCode(p);
|
|
374
|
-
A ||
|
|
374
|
+
A || n(u - 1, "Invalid Unicode escape"), (l ? r(p) : t(p)) || n(u - 4, "Invalid Unicode escape"), i += A;
|
|
375
375
|
} else
|
|
376
376
|
break;
|
|
377
377
|
l = !1;
|
|
@@ -425,10 +425,10 @@ var M, ho = function(e) {
|
|
|
425
425
|
T === i ? x() : te();
|
|
426
426
|
}
|
|
427
427
|
function te() {
|
|
428
|
-
|
|
428
|
+
n(L, "Unexpected token");
|
|
429
429
|
}
|
|
430
430
|
function Ze(i) {
|
|
431
|
-
i.type !== "Identifier" && i.type !== "MemberExpression" &&
|
|
431
|
+
i.type !== "Identifier" && i.type !== "MemberExpression" && n(i.start, "Assigning to rvalue"), Y && i.type === "Identifier" && nt(i.name) && n(i.start, "Assigning to " + i.name + " in strict mode");
|
|
432
432
|
}
|
|
433
433
|
function Q() {
|
|
434
434
|
(T === Un || T === xe && Z === "/=") && g(!0);
|
|
@@ -444,7 +444,7 @@ var M, ho = function(e) {
|
|
|
444
444
|
if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (c || A.kind === "loop") || l.label && c))
|
|
445
445
|
break;
|
|
446
446
|
}
|
|
447
|
-
return p === V.length &&
|
|
447
|
+
return p === V.length && n(l.start, "Unsyntactic " + i.l), j(l, c ? "BreakStatement" : "ContinueStatement");
|
|
448
448
|
case vn:
|
|
449
449
|
return x(), ye(), j(l, "DebuggerStatement");
|
|
450
450
|
case wn:
|
|
@@ -456,21 +456,21 @@ var M, ho = function(e) {
|
|
|
456
456
|
case Cn:
|
|
457
457
|
return x(), l.test = Pe(), l.da = Q(), l.alternate = F(Sn) ? Q() : null, j(l, "IfStatement");
|
|
458
458
|
case En:
|
|
459
|
-
return Ue || O.Ib ||
|
|
459
|
+
return Ue || O.Ib || n(L, "'return' outside of function"), x(), F(ie) || qe() ? l.K = null : (l.K = K(), ye()), j(l, "ReturnStatement");
|
|
460
460
|
case Ot:
|
|
461
461
|
for (x(), l.Qb = Pe(), l.tb = [], B(Ve), V.push(Yr); T !== Ce; )
|
|
462
|
-
T === At || T === xn ? (i = T === At, p && j(p, "SwitchCase"), l.tb.push(p = W()), p.da = [], x(), i ? p.test = K() : (c &&
|
|
462
|
+
T === At || T === xn ? (i = T === At, p && j(p, "SwitchCase"), l.tb.push(p = W()), p.da = [], x(), i ? p.test = K() : (c && n(Ct, "Multiple default clauses"), c = !0, p.test = null), B(_e)) : (p || te(), p.da.push(Q()));
|
|
463
463
|
return p && j(p, "SwitchCase"), x(), V.pop(), j(l, "SwitchStatement");
|
|
464
464
|
case In:
|
|
465
|
-
return x(), rt.test(w.slice(he, L)) &&
|
|
465
|
+
return x(), rt.test(w.slice(he, L)) && n(he, "Illegal newline after throw"), l.K = K(), ye(), j(l, "ThrowStatement");
|
|
466
466
|
case Tn:
|
|
467
|
-
return x(), l.block = Ne(), l.Ea = null, T === gn && (i = W(), x(), B(oe), i.Ua = ne(), Y && nt(i.Ua.name) &&
|
|
467
|
+
return x(), l.block = Ne(), l.Ea = null, T === gn && (i = W(), x(), B(oe), i.Ua = ne(), Y && nt(i.Ua.name) && n(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), B(ee), i.body = Ne(), l.Ea = j(i, "CatchClause")), l.fb = F(bn) ? Ne() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), j(l, "TryStatement");
|
|
468
468
|
case Rt:
|
|
469
469
|
return x(), hn(l), ye(), j(l, "VariableDeclaration");
|
|
470
470
|
case Pt:
|
|
471
471
|
return x(), l.test = Pe(), V.push(Ft), l.body = Q(), V.pop(), j(l, "WhileStatement");
|
|
472
472
|
case An:
|
|
473
|
-
return Y &&
|
|
473
|
+
return Y && n(L, "'with' in strict mode"), x(), l.object = Pe(), l.body = Q(), j(l, "WithStatement");
|
|
474
474
|
case Ve:
|
|
475
475
|
return Ne();
|
|
476
476
|
case ie:
|
|
@@ -478,7 +478,7 @@ var M, ho = function(e) {
|
|
|
478
478
|
default:
|
|
479
479
|
if (c = Z, A = K(), i === ke && A.type === "Identifier" && F(_e)) {
|
|
480
480
|
for (p = 0; p < V.length; ++p)
|
|
481
|
-
V[p].name === c &&
|
|
481
|
+
V[p].name === c && n(A.start, "Label '" + c + "' is already declared");
|
|
482
482
|
return V.push({
|
|
483
483
|
name: c,
|
|
484
484
|
kind: T.W ? "loop" : T === Ot ? "switch" : null
|
|
@@ -513,7 +513,7 @@ var M, ho = function(e) {
|
|
|
513
513
|
function hn(i, l) {
|
|
514
514
|
for (i.fa = [], i.kind = "var"; ; ) {
|
|
515
515
|
var c = W();
|
|
516
|
-
if (c.id = ne(), Y && nt(c.id.name) &&
|
|
516
|
+
if (c.id = ne(), Y && nt(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = F(Bn) ? K(!0, l) : null, i.fa.push(j(c, "VariableDeclarator")), !F(de))
|
|
517
517
|
break;
|
|
518
518
|
}
|
|
519
519
|
}
|
|
@@ -545,7 +545,7 @@ var M, ho = function(e) {
|
|
|
545
545
|
function vt() {
|
|
546
546
|
if (T.prefix) {
|
|
547
547
|
var i = W(), l = T.$b;
|
|
548
|
-
return i.operator = Z, Fe = i.prefix = !0, x(), i.K = vt(), l ? Ze(i.K) : Y && i.operator === "delete" && i.K.type === "Identifier" &&
|
|
548
|
+
return i.operator = Z, Fe = i.prefix = !0, x(), i.K = vt(), l ? Ze(i.K) : Y && i.operator === "delete" && i.K.type === "Identifier" && n(i.start, "Deleting local variable in strict mode"), j(i, l ? "UpdateExpression" : "UnaryExpression");
|
|
549
549
|
}
|
|
550
550
|
for (l = Me(Qe()); T.cc && !qe(); )
|
|
551
551
|
i = pe(l), i.operator = Z, i.prefix = !1, i.K = l, Ze(l), x(), l = j(i, "UpdateExpression");
|
|
@@ -600,7 +600,7 @@ var M, ho = function(e) {
|
|
|
600
600
|
var Ie = i.h[G];
|
|
601
601
|
if (Ie.key.name === p.key.name) {
|
|
602
602
|
var Ut = $ === Ie.kind || A && Ie.kind === "init" || $ === "init" && (Ie.kind === "get" || Ie.kind === "set");
|
|
603
|
-
Ut && !Y && $ === "init" && Ie.kind === "init" && (Ut = !1), Ut &&
|
|
603
|
+
Ut && !Y && $ === "init" && Ie.kind === "init" && (Ut = !1), Ut && n(p.key.start, "Redefinition of property");
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
606
|
i.h.push(p);
|
|
@@ -622,9 +622,9 @@ var M, ho = function(e) {
|
|
|
622
622
|
var p = V;
|
|
623
623
|
if (Ue = !0, V = [], i.body = Ne(!0), Ue = c, V = p, Y || i.body.body.length && dt(i.body.body[0])) {
|
|
624
624
|
for (c = i.id ? -1 : 0; c < i.oa.length; ++c)
|
|
625
|
-
if (p = 0 > c ? i.id : i.oa[c], ($n(p.name) || nt(p.name)) &&
|
|
625
|
+
if (p = 0 > c ? i.id : i.oa[c], ($n(p.name) || nt(p.name)) && n(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= c)
|
|
626
626
|
for (var A = 0; A < c; ++A)
|
|
627
|
-
p.name === i.oa[A].name &&
|
|
627
|
+
p.name === i.oa[A].name && n(p.start, "Argument name clash in strict mode");
|
|
628
628
|
}
|
|
629
629
|
return j(i, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
630
630
|
}
|
|
@@ -640,7 +640,7 @@ var M, ho = function(e) {
|
|
|
640
640
|
}
|
|
641
641
|
function ne(i) {
|
|
642
642
|
var l = W();
|
|
643
|
-
return i && O.yb === "everywhere" && (i = !1), T === ke ? (!i && (O.yb && Gr(Z) || Y && $n(Z)) && w.slice(L, be).indexOf("\\") === -1 &&
|
|
643
|
+
return i && O.yb === "everywhere" && (i = !1), T === ke ? (!i && (O.yb && Gr(Z) || Y && $n(Z)) && w.slice(L, be).indexOf("\\") === -1 && n(L, "The keyword '" + Z + "' is reserved"), l.name = Z) : i && T.l ? l.name = T.l : te(), Fe = !1, x(), j(l, "Identifier");
|
|
644
644
|
}
|
|
645
645
|
e.version = "0.5.0";
|
|
646
646
|
var O, w = "", Se, St;
|
|
@@ -867,21 +867,21 @@ var M, ho = function(e) {
|
|
|
867
867
|
ho(Lt.j || (Lt.j = {}));
|
|
868
868
|
function d(e, t) {
|
|
869
869
|
typeof e == "string" && (e = Ae(e, "code"));
|
|
870
|
-
var
|
|
870
|
+
var r = e.constructor;
|
|
871
871
|
this.ya = function() {
|
|
872
|
-
return new
|
|
872
|
+
return new r({
|
|
873
873
|
options: {}
|
|
874
874
|
});
|
|
875
875
|
};
|
|
876
|
-
var
|
|
876
|
+
var n = this.ya(), o;
|
|
877
877
|
for (o in e)
|
|
878
|
-
|
|
879
|
-
this.ra =
|
|
878
|
+
n[o] = o === "body" ? e[o].slice() : e[o];
|
|
879
|
+
this.ra = n, this.ca = [], this.qb = t, this.za = !1, this.ba = [], this.Ya = 0, this.rb = /* @__PURE__ */ Object.create(null), e = /^step([A-Z]\w*)$/;
|
|
880
880
|
var a, s;
|
|
881
881
|
for (s in this)
|
|
882
882
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
883
883
|
this.N = Dt(this, this.ra, null), this.Na = this.N.object, this.ra = Ae(this.ba.join(`
|
|
884
|
-
`), "polyfills"), this.ba = void 0, ct(this.ra), a = new k(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra =
|
|
884
|
+
`), "polyfills"), this.ba = void 0, ct(this.ra), a = new k(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = n, a = new k(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
885
885
|
}
|
|
886
886
|
var Kn = {
|
|
887
887
|
C: !0,
|
|
@@ -923,12 +923,12 @@ function Ge(e) {
|
|
|
923
923
|
var t = e >>> 0;
|
|
924
924
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
925
925
|
}
|
|
926
|
-
function ct(e, t,
|
|
927
|
-
t ? e.start = t : delete e.start,
|
|
928
|
-
for (var
|
|
929
|
-
if (
|
|
930
|
-
var o = e[
|
|
931
|
-
o && typeof o == "object" && ct(o, t,
|
|
926
|
+
function ct(e, t, r) {
|
|
927
|
+
t ? e.start = t : delete e.start, r ? e.end = r : delete e.end;
|
|
928
|
+
for (var n in e)
|
|
929
|
+
if (n !== "loc" && e.hasOwnProperty(n)) {
|
|
930
|
+
var o = e[n];
|
|
931
|
+
o && typeof o == "object" && ct(o, t, r);
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
d.prototype.REGEXP_MODE = 2;
|
|
@@ -940,10 +940,10 @@ M.Ka = !1;
|
|
|
940
940
|
M.Kb = 0;
|
|
941
941
|
M.ic = 0;
|
|
942
942
|
function Ae(e, t) {
|
|
943
|
-
var
|
|
944
|
-
for (
|
|
945
|
-
n
|
|
946
|
-
return
|
|
943
|
+
var r = {}, n;
|
|
944
|
+
for (n in Kn)
|
|
945
|
+
r[n] = Kn[n];
|
|
946
|
+
return r.sourceFile = t, me.j.parse(e, r);
|
|
947
947
|
}
|
|
948
948
|
M.Jb = function(e) {
|
|
949
949
|
var t = this.o[0];
|
|
@@ -956,27 +956,27 @@ M.Jb = function(e) {
|
|
|
956
956
|
M.lb = function() {
|
|
957
957
|
var e = this.o, t;
|
|
958
958
|
do {
|
|
959
|
-
var
|
|
959
|
+
var r = e[e.length - 1];
|
|
960
960
|
if (this.za)
|
|
961
961
|
break;
|
|
962
|
-
if (!
|
|
962
|
+
if (!r || r.node.type === "Program" && r.done) {
|
|
963
963
|
if (!this.ca.length)
|
|
964
964
|
return !1;
|
|
965
|
-
if (
|
|
966
|
-
|
|
965
|
+
if (r = this.ca[0], !r || r.time > Date.now())
|
|
966
|
+
r = null;
|
|
967
967
|
else {
|
|
968
|
-
this.ca.shift(), 0 <=
|
|
969
|
-
var
|
|
970
|
-
|
|
968
|
+
this.ca.shift(), 0 <= r.interval && mr(this, r, r.interval);
|
|
969
|
+
var n = new k(r.node, r.scope);
|
|
970
|
+
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
971
971
|
}
|
|
972
|
-
if (!
|
|
972
|
+
if (!r)
|
|
973
973
|
break;
|
|
974
974
|
}
|
|
975
|
-
|
|
975
|
+
n = r.node;
|
|
976
976
|
var o = Ke;
|
|
977
977
|
Ke = this;
|
|
978
978
|
try {
|
|
979
|
-
var a = this.rb[
|
|
979
|
+
var a = this.rb[n.type](e, r, n);
|
|
980
980
|
} catch (s) {
|
|
981
981
|
if (s !== pr)
|
|
982
982
|
throw this.value !== s && (this.value = void 0), s;
|
|
@@ -987,8 +987,8 @@ M.lb = function() {
|
|
|
987
987
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
988
988
|
if (this.Ka)
|
|
989
989
|
throw this.value = void 0, Error("Setter not supported in this context");
|
|
990
|
-
t ||
|
|
991
|
-
} while (!
|
|
990
|
+
t || n.end || (t = Date.now() + this.POLYFILL_TIMEOUT);
|
|
991
|
+
} while (!n.end && t > Date.now());
|
|
992
992
|
return !0;
|
|
993
993
|
};
|
|
994
994
|
M.Eb = function() {
|
|
@@ -998,12 +998,12 @@ M.Eb = function() {
|
|
|
998
998
|
};
|
|
999
999
|
function go(e, t) {
|
|
1000
1000
|
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, zt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), yo(e, t), vo(e, t), t.xa = e.M, e.g(t, "constructor", e.v, b), xo(e, t), wo(e, t), So(e, t), bo(e, t), ko(e, t), Co(e, t), Eo(e, t), Io(e, t), To(e, t);
|
|
1001
|
-
var
|
|
1001
|
+
var r = e.i(function() {
|
|
1002
1002
|
throw EvalError("Can't happen");
|
|
1003
1003
|
}, !1);
|
|
1004
|
-
|
|
1005
|
-
for (var
|
|
1006
|
-
|
|
1004
|
+
r.eval = !0, e.g(t, "eval", r, b), e.g(t, "parseInt", e.i(parseInt, !1), b), e.g(t, "parseFloat", e.i(parseFloat, !1), b), e.g(t, "isNaN", e.i(isNaN, !1), b), e.g(t, "isFinite", e.i(isFinite, !1), b);
|
|
1005
|
+
for (var n = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], o = 0; o < n.length; o++)
|
|
1006
|
+
r = function(a) {
|
|
1007
1007
|
return function(s) {
|
|
1008
1008
|
try {
|
|
1009
1009
|
return a(s);
|
|
@@ -1011,26 +1011,26 @@ function go(e, t) {
|
|
|
1011
1011
|
C(e, e.Gb, f.message);
|
|
1012
1012
|
}
|
|
1013
1013
|
};
|
|
1014
|
-
}(
|
|
1015
|
-
|
|
1014
|
+
}(n[o][0]), e.g(t, n[o][1], e.i(r, !1), b);
|
|
1015
|
+
r = function(a) {
|
|
1016
1016
|
return zn(e, !1, arguments);
|
|
1017
|
-
}, e.g(t, "setTimeout", e.i(
|
|
1017
|
+
}, e.g(t, "setTimeout", e.i(r, !1), b), r = function(a) {
|
|
1018
1018
|
return zn(e, !0, arguments);
|
|
1019
|
-
}, e.g(t, "setInterval", e.i(
|
|
1019
|
+
}, e.g(t, "setInterval", e.i(r, !1), b), r = function(a) {
|
|
1020
1020
|
Jn(e, a);
|
|
1021
|
-
}, e.g(t, "clearTimeout", e.i(
|
|
1021
|
+
}, e.g(t, "clearTimeout", e.i(r, !1), b), r = function(a) {
|
|
1022
1022
|
Jn(e, a);
|
|
1023
|
-
}, e.g(t, "clearInterval", e.i(
|
|
1023
|
+
}, e.g(t, "clearInterval", e.i(r, !1), b), 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);
|
|
1024
1024
|
}
|
|
1025
1025
|
M.Wb = 0;
|
|
1026
1026
|
function yo(e, t) {
|
|
1027
|
-
var
|
|
1027
|
+
var r = /^[A-Za-z_$][\w$]*$/, n = function(o) {
|
|
1028
1028
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1029
1029
|
if (s) {
|
|
1030
1030
|
s = s.split(/\s*,\s*/);
|
|
1031
1031
|
for (var f = 0; f < s.length; f++) {
|
|
1032
1032
|
var h = s[f];
|
|
1033
|
-
|
|
1033
|
+
r.test(h) || C(e, e.T, "Invalid function argument: " + h);
|
|
1034
1034
|
}
|
|
1035
1035
|
s = s.join(", ");
|
|
1036
1036
|
}
|
|
@@ -1041,27 +1041,27 @@ function yo(e, t) {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
return m.body.length !== 1 && C(e, e.T, "Invalid code in function body"), Zt(e, m.body[0].la, e.N, "anonymous");
|
|
1043
1043
|
};
|
|
1044
|
-
e.O = e.i(
|
|
1045
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, z), e.Z.H = "Function",
|
|
1044
|
+
e.O = e.i(n, !0), e.g(t, "Function", e.O, b), e.g(e.O, "prototype", e.Z, b), e.g(e.Z, "constructor", e.O, b), e.Z.Ta = function() {
|
|
1045
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, z), e.Z.H = "Function", n = function(o, a) {
|
|
1046
1046
|
var s = e.o[e.o.length - 1];
|
|
1047
1047
|
s.U = this, s.B = o, s.F = [], a != null && (a instanceof R ? s.F = hr(e, a) : C(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1048
|
-
}, D(e, e.O, "apply",
|
|
1048
|
+
}, D(e, e.O, "apply", n), n = function(o) {
|
|
1049
1049
|
var a = e.o[e.o.length - 1];
|
|
1050
1050
|
a.U = this, a.B = o, a.F = [];
|
|
1051
1051
|
for (var s = 1; s < arguments.length; s++)
|
|
1052
1052
|
a.F.push(arguments[s]);
|
|
1053
1053
|
a.eb = !1;
|
|
1054
|
-
}, D(e, e.O, "call",
|
|
1054
|
+
}, D(e, e.O, "call", n), 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;", "}", "});", ""), n = function() {
|
|
1055
1055
|
return String(this);
|
|
1056
|
-
}, D(e, e.O, "toString",
|
|
1056
|
+
}, D(e, e.O, "toString", n), e.g(e.O, "toString", e.i(n, !1), b), n = function() {
|
|
1057
1057
|
return this.valueOf();
|
|
1058
|
-
}, D(e, e.O, "valueOf",
|
|
1058
|
+
}, D(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), b);
|
|
1059
1059
|
}
|
|
1060
1060
|
function vo(e, t) {
|
|
1061
|
-
function
|
|
1061
|
+
function r(o) {
|
|
1062
1062
|
o != null || C(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1063
1063
|
}
|
|
1064
|
-
var
|
|
1064
|
+
var n = function(o) {
|
|
1065
1065
|
if (o == null)
|
|
1066
1066
|
return ue(e) ? this : e.s(e.M);
|
|
1067
1067
|
if (!(o instanceof R)) {
|
|
@@ -1070,40 +1070,40 @@ function vo(e, t) {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
return o;
|
|
1072
1072
|
};
|
|
1073
|
-
e.v = e.i(
|
|
1074
|
-
return
|
|
1075
|
-
}, e.g(e.v, "getOwnPropertyNames", e.i(
|
|
1076
|
-
return
|
|
1077
|
-
}, e.g(e.v, "keys", e.i(
|
|
1073
|
+
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M, b), e.g(e.M, "constructor", e.v, b), e.g(t, "Object", e.v, b), n = function(o) {
|
|
1074
|
+
return r(o), ae(e, Object.getOwnPropertyNames(o instanceof R ? o.h : o));
|
|
1075
|
+
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1), b), n = function(o) {
|
|
1076
|
+
return r(o), o instanceof R && (o = o.h), ae(e, Object.keys(o));
|
|
1077
|
+
}, e.g(e.v, "keys", e.i(n, !1), b), n = function(o) {
|
|
1078
1078
|
return o === null ? e.s(null) : (o instanceof R || C(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1079
|
-
}, e.g(e.v, "create", e.i(
|
|
1079
|
+
}, e.g(e.v, "create", e.i(n, !1), b), 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;", "};", "})();", ""), n = function(o, a, s) {
|
|
1080
1080
|
return a = String(a), o instanceof R || C(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof R || C(e, e.j, "Property description must be an object"), !o.preventExtensions || a in o.h || C(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(o, a, Xe, s.h), o;
|
|
1081
|
-
}, e.g(e.v, "defineProperty", e.i(
|
|
1081
|
+
}, e.g(e.v, "defineProperty", e.i(n, !1), b), 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;", "}", "});", ""), n = function(o, a) {
|
|
1082
1082
|
if (o instanceof R || C(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), a = String(a), a in o.h) {
|
|
1083
1083
|
var s = Object.getOwnPropertyDescriptor(o.h, a), f = o.V[a];
|
|
1084
1084
|
return o = o.Y[a], a = e.s(e.M), f || o ? (e.g(a, "get", f), e.g(a, "set", o)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1085
1085
|
}
|
|
1086
|
-
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(
|
|
1087
|
-
return
|
|
1088
|
-
}, e.g(e.v, "getPrototypeOf", e.i(
|
|
1086
|
+
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1), b), n = function(o) {
|
|
1087
|
+
return r(o), le(e, o);
|
|
1088
|
+
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), b), n = function(o) {
|
|
1089
1089
|
return !!o && !o.preventExtensions;
|
|
1090
|
-
}, e.g(e.v, "isExtensible", e.i(
|
|
1090
|
+
}, e.g(e.v, "isExtensible", e.i(n, !1), b), n = function(o) {
|
|
1091
1091
|
return o instanceof R && (o.preventExtensions = !0), o;
|
|
1092
|
-
}, e.g(e.v, "preventExtensions", e.i(
|
|
1093
|
-
return
|
|
1094
|
-
}, D(e, e.v, "hasOwnProperty",
|
|
1095
|
-
return
|
|
1096
|
-
}, D(e, e.v, "propertyIsEnumerable",
|
|
1092
|
+
}, e.g(e.v, "preventExtensions", e.i(n, !1), b), D(e, e.v, "toString", R.prototype.toString), D(e, e.v, "toLocaleString", R.prototype.toString), D(e, e.v, "valueOf", R.prototype.valueOf), n = function(o) {
|
|
1093
|
+
return r(this), this instanceof R ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1094
|
+
}, D(e, e.v, "hasOwnProperty", n), n = function(o) {
|
|
1095
|
+
return r(this), this instanceof R ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1096
|
+
}, D(e, e.v, "propertyIsEnumerable", n), n = function(o) {
|
|
1097
1097
|
for (; ; ) {
|
|
1098
1098
|
if (o = le(e, o), !o)
|
|
1099
1099
|
return !1;
|
|
1100
1100
|
if (o === this)
|
|
1101
1101
|
return !0;
|
|
1102
1102
|
}
|
|
1103
|
-
}, D(e, e.v, "isPrototypeOf",
|
|
1103
|
+
}, D(e, e.v, "isPrototypeOf", n);
|
|
1104
1104
|
}
|
|
1105
1105
|
function xo(e, t) {
|
|
1106
|
-
var
|
|
1106
|
+
var r = function(n) {
|
|
1107
1107
|
var o = ue(e) ? this : je(e), a = arguments[0];
|
|
1108
1108
|
if (arguments.length === 1 && typeof a == "number")
|
|
1109
1109
|
isNaN(Jt(a)) && C(e, e.ob, "Invalid array length: " + a), o.h.length = a;
|
|
@@ -1114,151 +1114,151 @@ function xo(e, t) {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
return o;
|
|
1116
1116
|
};
|
|
1117
|
-
e.qa = e.i(
|
|
1118
|
-
return
|
|
1119
|
-
}, e.g(e.qa, "isArray", e.i(
|
|
1117
|
+
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, b), r = function(n) {
|
|
1118
|
+
return n && n.H === "Array";
|
|
1119
|
+
}, e.g(e.qa, "isArray", e.i(r, !1), b), e.g(e.La, "length", 0, {
|
|
1120
1120
|
configurable: !1,
|
|
1121
1121
|
enumerable: !1,
|
|
1122
1122
|
writable: !0
|
|
1123
1123
|
}), 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(',');", "}", ");", "})();", "");
|
|
1124
1124
|
}
|
|
1125
1125
|
function wo(e, t) {
|
|
1126
|
-
var
|
|
1127
|
-
return
|
|
1126
|
+
var r = function(n) {
|
|
1127
|
+
return n = arguments.length ? me.String(n) : "", ue(e) ? (this.data = n, this) : n;
|
|
1128
1128
|
};
|
|
1129
|
-
for (e.J = e.i(
|
|
1130
|
-
D(e, e.J, t[
|
|
1131
|
-
|
|
1129
|
+
for (e.J = e.i(r, !0), e.g(t, "String", e.J, b), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), b), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), r = 0; r < t.length; r++)
|
|
1130
|
+
D(e, e.J, t[r], String.prototype[t[r]]);
|
|
1131
|
+
r = function(n, o, a) {
|
|
1132
1132
|
o = e.R(o), a = e.R(a);
|
|
1133
1133
|
try {
|
|
1134
|
-
return String(this).localeCompare(
|
|
1134
|
+
return String(this).localeCompare(n, o, a);
|
|
1135
1135
|
} catch (s) {
|
|
1136
1136
|
C(e, e.D, "localeCompare: " + s.message);
|
|
1137
1137
|
}
|
|
1138
|
-
}, D(e, e.J, "localeCompare",
|
|
1138
|
+
}, D(e, e.J, "localeCompare", r), r = function(n, o, a) {
|
|
1139
1139
|
var s = String(this);
|
|
1140
|
-
if (o = o ? Number(o) : void 0, H(e,
|
|
1140
|
+
if (o = o ? Number(o) : void 0, H(e, n, e.I) && (n = n.data, De(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1141
1141
|
if (se)
|
|
1142
|
-
|
|
1142
|
+
n = $e(e, "string.split(separator, limit)", {
|
|
1143
1143
|
string: s,
|
|
1144
|
-
separator:
|
|
1144
|
+
separator: n,
|
|
1145
1145
|
limit: o
|
|
1146
|
-
},
|
|
1146
|
+
}, n, a), n !== Te && a(ae(e, n));
|
|
1147
1147
|
else {
|
|
1148
|
-
var f = e.ha(), h = We(e,
|
|
1148
|
+
var f = e.ha(), h = We(e, n, f, a);
|
|
1149
1149
|
f.onmessage = function(m) {
|
|
1150
1150
|
clearTimeout(h), a(ae(e, m.data));
|
|
1151
|
-
}, f.postMessage(["split", s,
|
|
1151
|
+
}, f.postMessage(["split", s, n, o]);
|
|
1152
1152
|
}
|
|
1153
1153
|
return;
|
|
1154
1154
|
}
|
|
1155
|
-
|
|
1156
|
-
}, He(e, e.J, "split",
|
|
1155
|
+
n = s.split(n, o), a(ae(e, n));
|
|
1156
|
+
}, He(e, e.J, "split", r), r = function(n, o) {
|
|
1157
1157
|
var a = String(this);
|
|
1158
|
-
if (
|
|
1158
|
+
if (n = H(e, n, e.I) ? n.data : new RegExp(n), De(e, n, o), e.REGEXP_MODE === 2)
|
|
1159
1159
|
if (se)
|
|
1160
|
-
|
|
1160
|
+
n = $e(e, "string.match(regexp)", {
|
|
1161
1161
|
string: a,
|
|
1162
|
-
regexp:
|
|
1163
|
-
},
|
|
1162
|
+
regexp: n
|
|
1163
|
+
}, n, o), n !== Te && o(n && ae(e, n));
|
|
1164
1164
|
else {
|
|
1165
|
-
var s = e.ha(), f = We(e,
|
|
1165
|
+
var s = e.ha(), f = We(e, n, s, o);
|
|
1166
1166
|
s.onmessage = function(h) {
|
|
1167
1167
|
clearTimeout(f), o(h.data && ae(e, h.data));
|
|
1168
|
-
}, s.postMessage(["match", a,
|
|
1168
|
+
}, s.postMessage(["match", a, n]);
|
|
1169
1169
|
}
|
|
1170
1170
|
else
|
|
1171
|
-
|
|
1172
|
-
}, He(e, e.J, "match",
|
|
1171
|
+
n = a.match(n), o(n && ae(e, n));
|
|
1172
|
+
}, He(e, e.J, "match", r), r = function(n, o) {
|
|
1173
1173
|
var a = String(this);
|
|
1174
|
-
if (H(e,
|
|
1174
|
+
if (H(e, n, e.I) ? n = n.data : n = new RegExp(n), De(e, n, o), e.REGEXP_MODE === 2)
|
|
1175
1175
|
if (se)
|
|
1176
|
-
|
|
1176
|
+
n = $e(e, "string.search(regexp)", {
|
|
1177
1177
|
string: a,
|
|
1178
|
-
regexp:
|
|
1179
|
-
},
|
|
1178
|
+
regexp: n
|
|
1179
|
+
}, n, o), n !== Te && o(n);
|
|
1180
1180
|
else {
|
|
1181
|
-
var s = e.ha(), f = We(e,
|
|
1181
|
+
var s = e.ha(), f = We(e, n, s, o);
|
|
1182
1182
|
s.onmessage = function(h) {
|
|
1183
1183
|
clearTimeout(f), o(h.data);
|
|
1184
|
-
}, s.postMessage(["search", a,
|
|
1184
|
+
}, s.postMessage(["search", a, n]);
|
|
1185
1185
|
}
|
|
1186
1186
|
else
|
|
1187
|
-
o(a.search(
|
|
1188
|
-
}, He(e, e.J, "search",
|
|
1187
|
+
o(a.search(n));
|
|
1188
|
+
}, He(e, e.J, "search", r), r = function(n, o, a) {
|
|
1189
1189
|
var s = String(this);
|
|
1190
|
-
if (o = String(o), H(e,
|
|
1190
|
+
if (o = String(o), H(e, n, e.I) && (n = n.data, De(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1191
1191
|
if (se)
|
|
1192
|
-
|
|
1192
|
+
n = $e(e, "string.replace(substr, newSubstr)", {
|
|
1193
1193
|
string: s,
|
|
1194
|
-
substr:
|
|
1194
|
+
substr: n,
|
|
1195
1195
|
newSubstr: o
|
|
1196
|
-
},
|
|
1196
|
+
}, n, a), n !== Te && a(n);
|
|
1197
1197
|
else {
|
|
1198
|
-
var f = e.ha(), h = We(e,
|
|
1198
|
+
var f = e.ha(), h = We(e, n, f, a);
|
|
1199
1199
|
f.onmessage = function(m) {
|
|
1200
1200
|
clearTimeout(h), a(m.data);
|
|
1201
|
-
}, f.postMessage(["replace", s,
|
|
1201
|
+
}, f.postMessage(["replace", s, n, o]);
|
|
1202
1202
|
}
|
|
1203
1203
|
return;
|
|
1204
1204
|
}
|
|
1205
|
-
a(s.replace(
|
|
1206
|
-
}, He(e, e.J, "replace",
|
|
1205
|
+
a(s.replace(n, o));
|
|
1206
|
+
}, He(e, e.J, "replace", r), 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;", "};", "})();", "");
|
|
1207
1207
|
}
|
|
1208
1208
|
function So(e, t) {
|
|
1209
|
-
e.mb = e.i(function(
|
|
1210
|
-
return
|
|
1209
|
+
e.mb = e.i(function(r) {
|
|
1210
|
+
return r = me.Boolean(r), ue(e) ? (this.data = r, this) : r;
|
|
1211
1211
|
}, !0), e.g(t, "Boolean", e.mb, b);
|
|
1212
1212
|
}
|
|
1213
1213
|
function bo(e, t) {
|
|
1214
|
-
var
|
|
1215
|
-
return
|
|
1214
|
+
var r = function(n) {
|
|
1215
|
+
return n = arguments.length ? me.Number(n) : 0, ue(e) ? (this.data = n, this) : n;
|
|
1216
1216
|
};
|
|
1217
|
-
for (e.aa = e.i(
|
|
1218
|
-
e.g(e.aa, t[
|
|
1219
|
-
|
|
1217
|
+
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa, b), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], r = 0; r < t.length; r++)
|
|
1218
|
+
e.g(e.aa, t[r], Number[t[r]], Le);
|
|
1219
|
+
r = function(n) {
|
|
1220
1220
|
try {
|
|
1221
|
-
return Number(this).toExponential(
|
|
1221
|
+
return Number(this).toExponential(n);
|
|
1222
1222
|
} catch (o) {
|
|
1223
1223
|
C(e, e.D, o.message);
|
|
1224
1224
|
}
|
|
1225
|
-
}, D(e, e.aa, "toExponential",
|
|
1225
|
+
}, D(e, e.aa, "toExponential", r), r = function(n) {
|
|
1226
1226
|
try {
|
|
1227
|
-
return Number(this).toFixed(
|
|
1227
|
+
return Number(this).toFixed(n);
|
|
1228
1228
|
} catch (o) {
|
|
1229
1229
|
C(e, e.D, o.message);
|
|
1230
1230
|
}
|
|
1231
|
-
}, D(e, e.aa, "toFixed",
|
|
1231
|
+
}, D(e, e.aa, "toFixed", r), r = function(n) {
|
|
1232
1232
|
try {
|
|
1233
|
-
return Number(this).toPrecision(
|
|
1233
|
+
return Number(this).toPrecision(n);
|
|
1234
1234
|
} catch (o) {
|
|
1235
1235
|
C(e, e.D, o.message);
|
|
1236
1236
|
}
|
|
1237
|
-
}, D(e, e.aa, "toPrecision",
|
|
1237
|
+
}, D(e, e.aa, "toPrecision", r), r = function(n) {
|
|
1238
1238
|
try {
|
|
1239
|
-
return Number(this).toString(
|
|
1239
|
+
return Number(this).toString(n);
|
|
1240
1240
|
} catch (o) {
|
|
1241
1241
|
C(e, e.D, o.message);
|
|
1242
1242
|
}
|
|
1243
|
-
}, D(e, e.aa, "toString",
|
|
1244
|
-
|
|
1243
|
+
}, D(e, e.aa, "toString", r), r = function(n, o) {
|
|
1244
|
+
n = n ? e.R(n) : void 0, o = o ? e.R(o) : void 0;
|
|
1245
1245
|
try {
|
|
1246
|
-
return Number(this).toLocaleString(
|
|
1246
|
+
return Number(this).toLocaleString(n, o);
|
|
1247
1247
|
} catch (a) {
|
|
1248
1248
|
C(e, e.D, "toLocaleString: " + a.message);
|
|
1249
1249
|
}
|
|
1250
|
-
}, D(e, e.aa, "toLocaleString",
|
|
1250
|
+
}, D(e, e.aa, "toLocaleString", r);
|
|
1251
1251
|
}
|
|
1252
1252
|
function ko(e, t) {
|
|
1253
|
-
var
|
|
1253
|
+
var r = function(o, a) {
|
|
1254
1254
|
if (!ue(e))
|
|
1255
1255
|
return me.Date();
|
|
1256
1256
|
var s = [null].concat(Array.from(arguments));
|
|
1257
1257
|
return this.data = new (Function.prototype.bind.apply(me.Date, s))(), this;
|
|
1258
1258
|
};
|
|
1259
|
-
e.$ = e.i(
|
|
1260
|
-
for (var
|
|
1261
|
-
|
|
1259
|
+
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, b), e.g(e.$, "now", e.i(Date.now, !1), b), e.g(e.$, "parse", e.i(Date.parse, !1), b), e.g(e.$, "UTC", e.i(Date.UTC, !1), b), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
|
|
1260
|
+
for (var n = 0; n < t.length; n++)
|
|
1261
|
+
r = function(o) {
|
|
1262
1262
|
return function(a) {
|
|
1263
1263
|
var s = this.data;
|
|
1264
1264
|
s instanceof Date || C(e, e.j, o + " not called on a Date");
|
|
@@ -1266,26 +1266,26 @@ function ko(e, t) {
|
|
|
1266
1266
|
f[h] = e.R(arguments[h]);
|
|
1267
1267
|
return s[o].apply(s, f);
|
|
1268
1268
|
};
|
|
1269
|
-
}(t[
|
|
1269
|
+
}(t[n]), D(e, e.$, t[n], r);
|
|
1270
1270
|
}
|
|
1271
1271
|
function Co(e, t) {
|
|
1272
|
-
var
|
|
1272
|
+
var r = function(n, o) {
|
|
1273
1273
|
if (ue(e))
|
|
1274
1274
|
var a = this;
|
|
1275
1275
|
else {
|
|
1276
|
-
if (o === void 0 && H(e,
|
|
1277
|
-
return
|
|
1276
|
+
if (o === void 0 && H(e, n, e.I))
|
|
1277
|
+
return n;
|
|
1278
1278
|
a = e.s(e.Ma);
|
|
1279
1279
|
}
|
|
1280
|
-
|
|
1280
|
+
n = n === void 0 ? "" : String(n), o = o ? String(o) : "", /^[gmi]*$/.test(o) || C(e, e.T, "Invalid regexp flag: " + o);
|
|
1281
1281
|
try {
|
|
1282
|
-
var s = new me.RegExp(
|
|
1282
|
+
var s = new me.RegExp(n, o);
|
|
1283
1283
|
} catch (f) {
|
|
1284
1284
|
C(e, e.T, f.message);
|
|
1285
1285
|
}
|
|
1286
1286
|
return Yt(e, a, s), a;
|
|
1287
1287
|
};
|
|
1288
|
-
e.I = e.i(
|
|
1288
|
+
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, b), e.g(e.I.h.prototype, "global", void 0, z), e.g(e.I.h.prototype, "ignoreCase", void 0, z), e.g(e.I.h.prototype, "multiline", void 0, z), e.g(e.I.h.prototype, "source", "(?:)", z), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, o) {
|
|
1289
1289
|
function a(g) {
|
|
1290
1290
|
if (g) {
|
|
1291
1291
|
var y = ae(e, g);
|
|
@@ -1294,92 +1294,92 @@ function Co(e, t) {
|
|
|
1294
1294
|
return null;
|
|
1295
1295
|
}
|
|
1296
1296
|
var s = this.data;
|
|
1297
|
-
if (
|
|
1297
|
+
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")), De(e, s, o), e.REGEXP_MODE === 2)
|
|
1298
1298
|
if (se)
|
|
1299
|
-
|
|
1300
|
-
string:
|
|
1299
|
+
n = $e(e, "regexp.exec(string)", {
|
|
1300
|
+
string: n,
|
|
1301
1301
|
regexp: s
|
|
1302
|
-
}, s, o),
|
|
1302
|
+
}, s, o), n !== Te && (e.g(this, "lastIndex", s.lastIndex), o(a(n)));
|
|
1303
1303
|
else {
|
|
1304
1304
|
var f = e.ha(), h = We(e, s, f, o), m = this;
|
|
1305
1305
|
f.onmessage = function(g) {
|
|
1306
1306
|
clearTimeout(h), e.g(m, "lastIndex", g.data[1]), o(a(g.data[0]));
|
|
1307
|
-
}, f.postMessage(["exec", s, s.lastIndex,
|
|
1307
|
+
}, f.postMessage(["exec", s, s.lastIndex, n]);
|
|
1308
1308
|
}
|
|
1309
1309
|
else
|
|
1310
|
-
|
|
1311
|
-
}, He(e, e.I, "exec",
|
|
1310
|
+
n = s.exec(n), e.g(this, "lastIndex", s.lastIndex), o(a(n));
|
|
1311
|
+
}, He(e, e.I, "exec", r);
|
|
1312
1312
|
}
|
|
1313
1313
|
function Eo(e, t) {
|
|
1314
|
-
function n
|
|
1314
|
+
function r(n) {
|
|
1315
1315
|
var o = e.i(function(a) {
|
|
1316
1316
|
var s = ue(e) ? this : e.Aa(o);
|
|
1317
1317
|
return $t(e, s, a), s;
|
|
1318
1318
|
}, !0);
|
|
1319
|
-
return e.g(o, "prototype", e.Aa(e.D), b), e.g(o.h.prototype, "name",
|
|
1319
|
+
return e.g(o, "prototype", e.Aa(e.D), b), e.g(o.h.prototype, "name", n, b), e.g(t, n, o, b), o;
|
|
1320
1320
|
}
|
|
1321
|
-
e.D = e.i(function(
|
|
1321
|
+
e.D = e.i(function(n) {
|
|
1322
1322
|
var o = ue(e) ? this : e.Aa(e.D);
|
|
1323
|
-
return $t(e, o,
|
|
1324
|
-
}, !0), e.g(t, "Error", e.D, b), e.g(e.D.h.prototype, "message", "", b), e.g(e.D.h.prototype, "name", "Error", b),
|
|
1323
|
+
return $t(e, o, n), o;
|
|
1324
|
+
}, !0), e.g(t, "Error", e.D, b), e.g(e.D.h.prototype, "message", "", b), e.g(e.D.h.prototype, "name", "Error", b), r("EvalError"), e.ob = r("RangeError"), e.pb = r("ReferenceError"), e.T = r("SyntaxError"), e.j = r("TypeError"), e.Gb = r("URIError");
|
|
1325
1325
|
}
|
|
1326
1326
|
function Io(e, t) {
|
|
1327
|
-
var
|
|
1328
|
-
e.g(t, "Math",
|
|
1329
|
-
var
|
|
1330
|
-
for (t = 0; t <
|
|
1331
|
-
e.g(
|
|
1332
|
-
for (
|
|
1333
|
-
e.g(
|
|
1327
|
+
var r = e.s(e.M);
|
|
1328
|
+
e.g(t, "Math", r, b);
|
|
1329
|
+
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1330
|
+
for (t = 0; t < n.length; t++)
|
|
1331
|
+
e.g(r, n[t], Math[n[t]], z);
|
|
1332
|
+
for (n = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < n.length; t++)
|
|
1333
|
+
e.g(r, n[t], e.i(Math[n[t]], !1), b);
|
|
1334
1334
|
}
|
|
1335
1335
|
function To(e, t) {
|
|
1336
|
-
var
|
|
1337
|
-
e.g(t, "JSON",
|
|
1336
|
+
var r = e.s(e.M);
|
|
1337
|
+
e.g(t, "JSON", r, b), t = function(n) {
|
|
1338
1338
|
try {
|
|
1339
|
-
var o = JSON.parse(String(
|
|
1339
|
+
var o = JSON.parse(String(n));
|
|
1340
1340
|
} catch (a) {
|
|
1341
1341
|
C(e, e.T, a.message);
|
|
1342
1342
|
}
|
|
1343
1343
|
return e.Ia(o);
|
|
1344
|
-
}, e.g(
|
|
1344
|
+
}, e.g(r, "parse", e.i(t, !1)), t = function(n, o, a) {
|
|
1345
1345
|
o && o.H === "Function" ? C(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = hr(e, o), o = o.filter(function(f) {
|
|
1346
1346
|
return typeof f == "string" || typeof f == "number";
|
|
1347
|
-
})) : o = null, typeof a != "string" && typeof a != "number" && (a = void 0),
|
|
1347
|
+
})) : o = null, typeof a != "string" && typeof a != "number" && (a = void 0), n = e.R(n);
|
|
1348
1348
|
try {
|
|
1349
|
-
var s = JSON.stringify(
|
|
1349
|
+
var s = JSON.stringify(n, o, a);
|
|
1350
1350
|
} catch (f) {
|
|
1351
1351
|
C(e, e.j, f.message);
|
|
1352
1352
|
}
|
|
1353
1353
|
return s;
|
|
1354
|
-
}, e.g(
|
|
1354
|
+
}, e.g(r, "stringify", e.i(t, !1));
|
|
1355
1355
|
}
|
|
1356
|
-
function H(e, t,
|
|
1357
|
-
if (t == null || !
|
|
1356
|
+
function H(e, t, r) {
|
|
1357
|
+
if (t == null || !r)
|
|
1358
1358
|
return !1;
|
|
1359
|
-
if (
|
|
1359
|
+
if (r = r.h.prototype, t === r)
|
|
1360
1360
|
return !0;
|
|
1361
1361
|
for (t = le(e, t); t; ) {
|
|
1362
|
-
if (t ===
|
|
1362
|
+
if (t === r)
|
|
1363
1363
|
return !0;
|
|
1364
1364
|
t = t.xa;
|
|
1365
1365
|
}
|
|
1366
1366
|
return !1;
|
|
1367
1367
|
}
|
|
1368
|
-
function Yt(e, t,
|
|
1369
|
-
t.data = new RegExp(
|
|
1368
|
+
function Yt(e, t, r) {
|
|
1369
|
+
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, b), e.g(t, "source", r.source, z), e.g(t, "global", r.global, z), e.g(t, "ignoreCase", r.ignoreCase, z), e.g(t, "multiline", r.multiline, z);
|
|
1370
1370
|
}
|
|
1371
|
-
function $t(e, t,
|
|
1372
|
-
|
|
1373
|
-
for (var
|
|
1374
|
-
var o = e.o[
|
|
1375
|
-
a.type === "CallExpression" && (o = o.U) &&
|
|
1371
|
+
function $t(e, t, r) {
|
|
1372
|
+
r && e.g(t, "message", String(r), b), r = [];
|
|
1373
|
+
for (var n = e.o.length - 1; 0 <= n; n--) {
|
|
1374
|
+
var o = e.o[n], a = o.node;
|
|
1375
|
+
a.type === "CallExpression" && (o = o.U) && r.length && (r[r.length - 1].Ob = e.G(o, "name")), !a.X || r.length && a.type !== "CallExpression" || r.push({
|
|
1376
1376
|
Nb: a.X
|
|
1377
1377
|
});
|
|
1378
1378
|
}
|
|
1379
|
-
for (
|
|
1380
|
-
`,
|
|
1381
|
-
var s = n
|
|
1382
|
-
o = n
|
|
1379
|
+
for (n = String(e.G(t, "name")), a = String(e.G(t, "message")), a = n + ": " + a + `
|
|
1380
|
+
`, n = 0; n < r.length; n++) {
|
|
1381
|
+
var s = r[n].Nb;
|
|
1382
|
+
o = r[n].Ob, s = s.source + ":" + s.start.line + ":" + s.start.ab, a = o ? a + (" at " + o + " (" + s + `)
|
|
1383
1383
|
`) : a + (" at " + s + `
|
|
1384
1384
|
`);
|
|
1385
1385
|
}
|
|
@@ -1392,39 +1392,39 @@ M.ha = function() {
|
|
|
1392
1392
|
type: "application/javascript"
|
|
1393
1393
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1394
1394
|
};
|
|
1395
|
-
function $e(e, t,
|
|
1395
|
+
function $e(e, t, r, n, o) {
|
|
1396
1396
|
var a = {
|
|
1397
1397
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1398
1398
|
};
|
|
1399
1399
|
try {
|
|
1400
|
-
return se.runInNewContext(t,
|
|
1400
|
+
return se.runInNewContext(t, r, a);
|
|
1401
1401
|
} catch {
|
|
1402
|
-
o(null), C(e, e.D, "RegExp Timeout: " +
|
|
1402
|
+
o(null), C(e, e.D, "RegExp Timeout: " + n);
|
|
1403
1403
|
}
|
|
1404
1404
|
return Te;
|
|
1405
1405
|
}
|
|
1406
|
-
function De(e, t,
|
|
1406
|
+
function De(e, t, r) {
|
|
1407
1407
|
if (e.REGEXP_MODE === 0)
|
|
1408
|
-
var
|
|
1408
|
+
var n = !1;
|
|
1409
1409
|
else if (e.REGEXP_MODE === 1)
|
|
1410
|
-
|
|
1410
|
+
n = !0;
|
|
1411
1411
|
else if (se)
|
|
1412
|
-
|
|
1412
|
+
n = !0;
|
|
1413
1413
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1414
|
-
|
|
1414
|
+
n = !0;
|
|
1415
1415
|
else if (typeof require == "function") {
|
|
1416
1416
|
try {
|
|
1417
1417
|
se = require("vm");
|
|
1418
1418
|
} catch {
|
|
1419
1419
|
}
|
|
1420
|
-
|
|
1420
|
+
n = !!se;
|
|
1421
1421
|
} else
|
|
1422
|
-
|
|
1423
|
-
|
|
1422
|
+
n = !1;
|
|
1423
|
+
n || (r(null), C(e, e.D, "Regular expressions not supported: " + t));
|
|
1424
1424
|
}
|
|
1425
|
-
function We(e, t,
|
|
1425
|
+
function We(e, t, r, n) {
|
|
1426
1426
|
return setTimeout(function() {
|
|
1427
|
-
|
|
1427
|
+
r.terminate(), n(null);
|
|
1428
1428
|
try {
|
|
1429
1429
|
C(e, e.D, "RegExp Timeout: " + t);
|
|
1430
1430
|
} catch {
|
|
@@ -1447,13 +1447,13 @@ function je(e) {
|
|
|
1447
1447
|
writable: !0
|
|
1448
1448
|
}), t.H = "Array", t;
|
|
1449
1449
|
}
|
|
1450
|
-
function qt(e, t,
|
|
1451
|
-
var
|
|
1452
|
-
return
|
|
1450
|
+
function qt(e, t, r) {
|
|
1451
|
+
var n = e.s(e.Z);
|
|
1452
|
+
return r ? (r = e.s(e.M), e.g(n, "prototype", r, b), e.g(r, "constructor", n, b)) : n.Ab = !0, e.g(n, "length", t, z), n.H = "Function", n;
|
|
1453
1453
|
}
|
|
1454
|
-
function Zt(e, t,
|
|
1454
|
+
function Zt(e, t, r, n) {
|
|
1455
1455
|
var o = qt(e, t.oa.length, !0);
|
|
1456
|
-
return o.Va =
|
|
1456
|
+
return o.Va = r, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : n || "", z), o;
|
|
1457
1457
|
}
|
|
1458
1458
|
M.i = function(e, t) {
|
|
1459
1459
|
return t = qt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, z), t;
|
|
@@ -1474,23 +1474,23 @@ M.Ia = function(e) {
|
|
|
1474
1474
|
if (e instanceof Date)
|
|
1475
1475
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
1476
1476
|
if (typeof e == "function") {
|
|
1477
|
-
var
|
|
1477
|
+
var r = this;
|
|
1478
1478
|
return t = Object.getOwnPropertyDescriptor(e, "prototype"), this.i(function() {
|
|
1479
1479
|
var o = Array.prototype.slice.call(arguments).map(function(a) {
|
|
1480
|
-
return
|
|
1480
|
+
return r.R(a);
|
|
1481
1481
|
});
|
|
1482
|
-
return o = e.apply(
|
|
1482
|
+
return o = e.apply(r, o), r.Ia(o);
|
|
1483
1483
|
}, !!t);
|
|
1484
1484
|
}
|
|
1485
1485
|
if (Array.isArray(e)) {
|
|
1486
1486
|
t = je(this);
|
|
1487
|
-
for (var
|
|
1488
|
-
|
|
1487
|
+
for (var n = 0; n < e.length; n++)
|
|
1488
|
+
n in e && this.g(t, n, this.Ia(e[n]));
|
|
1489
1489
|
return t;
|
|
1490
1490
|
}
|
|
1491
1491
|
t = this.s(this.M);
|
|
1492
|
-
for (
|
|
1493
|
-
this.g(t,
|
|
1492
|
+
for (n in e)
|
|
1493
|
+
this.g(t, n, this.Ia(e[n]));
|
|
1494
1494
|
return t;
|
|
1495
1495
|
};
|
|
1496
1496
|
M.R = function(e, t) {
|
|
@@ -1506,33 +1506,33 @@ M.R = function(e, t) {
|
|
|
1506
1506
|
hb: [],
|
|
1507
1507
|
Sa: []
|
|
1508
1508
|
};
|
|
1509
|
-
var
|
|
1510
|
-
if (
|
|
1511
|
-
return t.Sa[
|
|
1509
|
+
var r = t.hb.indexOf(e);
|
|
1510
|
+
if (r !== -1)
|
|
1511
|
+
return t.Sa[r];
|
|
1512
1512
|
if (t.hb.push(e), H(this, e, this.qa)) {
|
|
1513
|
-
|
|
1514
|
-
for (var
|
|
1515
|
-
ut(this, e, o) && (
|
|
1513
|
+
r = [], t.Sa.push(r);
|
|
1514
|
+
for (var n = this.G(e, "length"), o = 0; o < n; o++)
|
|
1515
|
+
ut(this, e, o) && (r[o] = this.R(this.G(e, o), t));
|
|
1516
1516
|
} else
|
|
1517
|
-
for (
|
|
1518
|
-
o = this.R(e.h[
|
|
1517
|
+
for (n in r = {}, t.Sa.push(r), e.h)
|
|
1518
|
+
o = this.R(e.h[n], t), Object.defineProperty(r, n, {
|
|
1519
1519
|
value: o,
|
|
1520
1520
|
writable: !0,
|
|
1521
1521
|
enumerable: !0,
|
|
1522
1522
|
configurable: !0
|
|
1523
1523
|
});
|
|
1524
|
-
return t.hb.pop(), t.Sa.pop(),
|
|
1524
|
+
return t.hb.pop(), t.Sa.pop(), r;
|
|
1525
1525
|
};
|
|
1526
1526
|
function ae(e, t) {
|
|
1527
|
-
for (var
|
|
1528
|
-
e.g(
|
|
1529
|
-
return
|
|
1527
|
+
for (var r = je(e), n = Object.getOwnPropertyNames(t), o = 0; o < n.length; o++)
|
|
1528
|
+
e.g(r, n[o], t[n[o]]);
|
|
1529
|
+
return r;
|
|
1530
1530
|
}
|
|
1531
1531
|
function hr(e, t) {
|
|
1532
|
-
var
|
|
1533
|
-
for (
|
|
1534
|
-
n
|
|
1535
|
-
return
|
|
1532
|
+
var r = [], n;
|
|
1533
|
+
for (n in t.h)
|
|
1534
|
+
r[n] = e.G(t, n);
|
|
1535
|
+
return r.length = Jt(e.G(t, "length")) || 0, r;
|
|
1536
1536
|
}
|
|
1537
1537
|
function le(e, t) {
|
|
1538
1538
|
switch (typeof t) {
|
|
@@ -1554,37 +1554,37 @@ M.G = function(e, t) {
|
|
|
1554
1554
|
if (H(this, e, this.J))
|
|
1555
1555
|
return String(e).length;
|
|
1556
1556
|
} else if (64 > t.charCodeAt(0) && H(this, e, this.J)) {
|
|
1557
|
-
var
|
|
1558
|
-
if (!isNaN(
|
|
1559
|
-
return String(e)[
|
|
1557
|
+
var r = Ge(t);
|
|
1558
|
+
if (!isNaN(r) && r < String(e).length)
|
|
1559
|
+
return String(e)[r];
|
|
1560
1560
|
}
|
|
1561
1561
|
do
|
|
1562
1562
|
if (e.h && t in e.h)
|
|
1563
|
-
return (
|
|
1563
|
+
return (r = e.V[t]) ? (this.P = !0, r) : e.h[t];
|
|
1564
1564
|
while (e = le(this, e));
|
|
1565
1565
|
};
|
|
1566
|
-
function ut(e, t,
|
|
1566
|
+
function ut(e, t, r) {
|
|
1567
1567
|
if (!(t instanceof R))
|
|
1568
1568
|
throw TypeError("Primitive data type has no properties");
|
|
1569
|
-
if (
|
|
1569
|
+
if (r = String(r), r === "length" && H(e, t, e.J))
|
|
1570
1570
|
return !0;
|
|
1571
1571
|
if (H(e, t, e.J)) {
|
|
1572
|
-
var
|
|
1573
|
-
if (!isNaN(
|
|
1572
|
+
var n = Ge(r);
|
|
1573
|
+
if (!isNaN(n) && n < String(t).length)
|
|
1574
1574
|
return !0;
|
|
1575
1575
|
}
|
|
1576
1576
|
do
|
|
1577
|
-
if (t.h &&
|
|
1577
|
+
if (t.h && r in t.h)
|
|
1578
1578
|
return !0;
|
|
1579
1579
|
while (t = le(e, t));
|
|
1580
1580
|
return !1;
|
|
1581
1581
|
}
|
|
1582
|
-
M.g = function(e, t,
|
|
1582
|
+
M.g = function(e, t, r, n) {
|
|
1583
1583
|
if (this.Ka)
|
|
1584
1584
|
throw Error("Setter not supported in that context");
|
|
1585
1585
|
if (t = String(t), e != null || C(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof R))
|
|
1586
1586
|
throw TypeError("Expecting native value or pseudo object");
|
|
1587
|
-
|
|
1587
|
+
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && C(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1588
1588
|
var o = !this.o || Qt(this).S;
|
|
1589
1589
|
if (e instanceof R) {
|
|
1590
1590
|
if (H(this, e, this.J)) {
|
|
@@ -1596,42 +1596,42 @@ M.g = function(e, t, n, r) {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
if (e.H === "Array")
|
|
1598
1598
|
if (a = e.h.length, t === "length") {
|
|
1599
|
-
if (
|
|
1600
|
-
if (!("value" in
|
|
1599
|
+
if (n) {
|
|
1600
|
+
if (!("value" in n))
|
|
1601
1601
|
return;
|
|
1602
|
-
|
|
1602
|
+
r = n.value;
|
|
1603
1603
|
}
|
|
1604
|
-
if (
|
|
1604
|
+
if (r = Jt(r), isNaN(r) && C(this, this.ob, "Invalid array length"), r < a)
|
|
1605
1605
|
for (s in e.h) {
|
|
1606
1606
|
var s = Ge(s);
|
|
1607
|
-
!isNaN(s) &&
|
|
1607
|
+
!isNaN(s) && r <= s && delete e.h[s];
|
|
1608
1608
|
}
|
|
1609
1609
|
} else
|
|
1610
1610
|
isNaN(s = Ge(t)) || (e.h.length = Math.max(a, s + 1));
|
|
1611
1611
|
if (!e.preventExtensions || t in e.h)
|
|
1612
|
-
if (
|
|
1613
|
-
o = {}, "get" in
|
|
1612
|
+
if (n) {
|
|
1613
|
+
o = {}, "get" in n && n.get && (e.V[t] = n.get, o.get = this.g.ac), "set" in n && n.set && (e.Y[t] = n.set, o.set = this.g.bc), "configurable" in n && (o.configurable = n.configurable), "enumerable" in n && (o.enumerable = n.enumerable), "writable" in n && (o.writable = n.writable, delete e.V[t], delete e.Y[t]), "value" in n ? (o.value = n.value, delete e.V[t], delete e.Y[t]) : r !== Xe && (o.value = r, delete e.V[t], delete e.Y[t]);
|
|
1614
1614
|
try {
|
|
1615
1615
|
Object.defineProperty(e.h, t, o);
|
|
1616
1616
|
} catch {
|
|
1617
1617
|
C(this, this.j, "Cannot redefine property: " + t);
|
|
1618
1618
|
}
|
|
1619
|
-
"get" in
|
|
1619
|
+
"get" in n && !n.get && delete e.V[t], "set" in n && !n.set && delete e.Y[t];
|
|
1620
1620
|
} else {
|
|
1621
|
-
if (
|
|
1621
|
+
if (r === Xe)
|
|
1622
1622
|
throw ReferenceError("Value not specified");
|
|
1623
|
-
for (
|
|
1624
|
-
if (
|
|
1625
|
-
|
|
1623
|
+
for (n = e; !(t in n.h); )
|
|
1624
|
+
if (n = le(this, n), !n) {
|
|
1625
|
+
n = e;
|
|
1626
1626
|
break;
|
|
1627
1627
|
}
|
|
1628
|
-
if (
|
|
1629
|
-
return this.Ka = !0,
|
|
1630
|
-
if (
|
|
1628
|
+
if (n.Y && n.Y[t])
|
|
1629
|
+
return this.Ka = !0, n.Y[t];
|
|
1630
|
+
if (n.V && n.V[t])
|
|
1631
1631
|
o && C(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1632
1632
|
else
|
|
1633
1633
|
try {
|
|
1634
|
-
e.h[t] =
|
|
1634
|
+
e.h[t] = r;
|
|
1635
1635
|
} catch {
|
|
1636
1636
|
o && C(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1637
1637
|
}
|
|
@@ -1647,69 +1647,69 @@ M.g.ac = function() {
|
|
|
1647
1647
|
M.g.bc = function() {
|
|
1648
1648
|
throw Error("Placeholder setter");
|
|
1649
1649
|
};
|
|
1650
|
-
function D(e, t,
|
|
1651
|
-
e.g(t.h.prototype,
|
|
1650
|
+
function D(e, t, r, n) {
|
|
1651
|
+
e.g(t.h.prototype, r, e.i(n, !1), b);
|
|
1652
1652
|
}
|
|
1653
|
-
function He(e, t,
|
|
1654
|
-
e.g(t.h.prototype,
|
|
1653
|
+
function He(e, t, r, n) {
|
|
1654
|
+
e.g(t.h.prototype, r, e.ub(n), b);
|
|
1655
1655
|
}
|
|
1656
1656
|
function Qt(e) {
|
|
1657
1657
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1658
1658
|
throw Error("No scope found");
|
|
1659
1659
|
return e;
|
|
1660
1660
|
}
|
|
1661
|
-
function Dt(e, t,
|
|
1662
|
-
var
|
|
1663
|
-
if (
|
|
1664
|
-
|
|
1661
|
+
function Dt(e, t, r) {
|
|
1662
|
+
var n = !1;
|
|
1663
|
+
if (r && r.S)
|
|
1664
|
+
n = !0;
|
|
1665
1665
|
else {
|
|
1666
1666
|
var o = t.body && t.body[0];
|
|
1667
|
-
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (
|
|
1667
|
+
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (n = !0);
|
|
1668
1668
|
}
|
|
1669
|
-
return o = e.s(null),
|
|
1669
|
+
return o = e.s(null), n = new gr(r, n, o), r || go(e, n.object), ze(e, t, n), n;
|
|
1670
1670
|
}
|
|
1671
|
-
function en(e, t,
|
|
1671
|
+
function en(e, t, r) {
|
|
1672
1672
|
if (!t)
|
|
1673
1673
|
throw Error("parentScope required");
|
|
1674
|
-
return e =
|
|
1674
|
+
return e = r || e.s(null), new gr(t, t.S, e);
|
|
1675
1675
|
}
|
|
1676
1676
|
function tn(e, t) {
|
|
1677
|
-
for (var
|
|
1678
|
-
if (t in
|
|
1679
|
-
return
|
|
1680
|
-
|
|
1677
|
+
for (var r = Qt(e); r && r !== e.N; ) {
|
|
1678
|
+
if (t in r.object.h)
|
|
1679
|
+
return r.object.h[t];
|
|
1680
|
+
r = r.Va;
|
|
1681
1681
|
}
|
|
1682
|
-
if (
|
|
1683
|
-
return e.G(
|
|
1684
|
-
|
|
1682
|
+
if (r === e.N && ut(e, r.object, t))
|
|
1683
|
+
return e.G(r.object, t);
|
|
1684
|
+
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || C(e, e.pb, t + " is not defined");
|
|
1685
1685
|
}
|
|
1686
|
-
function dr(e, t,
|
|
1687
|
-
for (var
|
|
1688
|
-
if (t in
|
|
1686
|
+
function dr(e, t, r) {
|
|
1687
|
+
for (var n = Qt(e), o = n.S; n && n !== e.N; ) {
|
|
1688
|
+
if (t in n.object.h) {
|
|
1689
1689
|
try {
|
|
1690
|
-
|
|
1690
|
+
n.object.h[t] = r;
|
|
1691
1691
|
} catch {
|
|
1692
1692
|
o && C(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1693
1693
|
}
|
|
1694
1694
|
return;
|
|
1695
1695
|
}
|
|
1696
|
-
|
|
1696
|
+
n = n.Va;
|
|
1697
1697
|
}
|
|
1698
|
-
if (
|
|
1699
|
-
return e.g(
|
|
1698
|
+
if (n === e.N && (!o || ut(e, n.object, t)))
|
|
1699
|
+
return e.g(n.object, t, r);
|
|
1700
1700
|
C(e, e.pb, t + " is not defined");
|
|
1701
1701
|
}
|
|
1702
|
-
function ze(e, t,
|
|
1702
|
+
function ze(e, t, r) {
|
|
1703
1703
|
if (t.jb)
|
|
1704
|
-
var
|
|
1704
|
+
var n = t.jb;
|
|
1705
1705
|
else {
|
|
1706
|
-
switch (
|
|
1706
|
+
switch (n = /* @__PURE__ */ Object.create(null), t.type) {
|
|
1707
1707
|
case "VariableDeclaration":
|
|
1708
1708
|
for (var o = 0; o < t.fa.length; o++)
|
|
1709
|
-
|
|
1709
|
+
n[t.fa[o].id.name] = !0;
|
|
1710
1710
|
break;
|
|
1711
1711
|
case "FunctionDeclaration":
|
|
1712
|
-
|
|
1712
|
+
n[t.id.name] = t;
|
|
1713
1713
|
break;
|
|
1714
1714
|
case "BlockStatement":
|
|
1715
1715
|
case "CatchClause":
|
|
@@ -1732,21 +1732,21 @@ function ze(e, t, n) {
|
|
|
1732
1732
|
if (Array.isArray(f)) {
|
|
1733
1733
|
for (o = 0; o < f.length; o++)
|
|
1734
1734
|
if (f[o] && f[o].constructor === a) {
|
|
1735
|
-
var h = ze(e, f[o],
|
|
1735
|
+
var h = ze(e, f[o], r);
|
|
1736
1736
|
for (s in h)
|
|
1737
|
-
|
|
1737
|
+
n[s] = h[s];
|
|
1738
1738
|
}
|
|
1739
1739
|
} else if (f.constructor === a)
|
|
1740
|
-
for (s in h = ze(e, f,
|
|
1741
|
-
|
|
1740
|
+
for (s in h = ze(e, f, r), h)
|
|
1741
|
+
n[s] = h[s];
|
|
1742
1742
|
}
|
|
1743
1743
|
}
|
|
1744
1744
|
}
|
|
1745
|
-
t.jb =
|
|
1745
|
+
t.jb = n;
|
|
1746
1746
|
}
|
|
1747
|
-
for (s in
|
|
1748
|
-
|
|
1749
|
-
return
|
|
1747
|
+
for (s in n)
|
|
1748
|
+
n[s] === !0 ? e.g(r.object, s, void 0, Gn) : e.g(r.object, s, Zt(e, n[s], r), Gn);
|
|
1749
|
+
return n;
|
|
1750
1750
|
}
|
|
1751
1751
|
function ue(e) {
|
|
1752
1752
|
return e.o[e.o.length - 1].isConstructor;
|
|
@@ -1754,13 +1754,13 @@ function ue(e) {
|
|
|
1754
1754
|
function nn(e, t) {
|
|
1755
1755
|
return t[0] === Oe ? tn(e, t[1]) : e.G(t[0], t[1]);
|
|
1756
1756
|
}
|
|
1757
|
-
function rn(e, t,
|
|
1758
|
-
return t[0] === Oe ? dr(e, t[1],
|
|
1757
|
+
function rn(e, t, r) {
|
|
1758
|
+
return t[0] === Oe ? dr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1759
1759
|
}
|
|
1760
|
-
function C(e, t,
|
|
1761
|
-
throw e.N ? (
|
|
1760
|
+
function C(e, t, r) {
|
|
1761
|
+
throw e.N ? (r !== void 0 && t instanceof R && (t = e.Aa(t), $t(e, t, r)), Je(e, 4, t), pr) : r === void 0 ? t : r;
|
|
1762
1762
|
}
|
|
1763
|
-
function Je(e, t,
|
|
1763
|
+
function Je(e, t, r, n) {
|
|
1764
1764
|
if (t === 0)
|
|
1765
1765
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1766
1766
|
var o = e.o;
|
|
@@ -1771,14 +1771,14 @@ function Je(e, t, n, r) {
|
|
|
1771
1771
|
case "TryStatement":
|
|
1772
1772
|
a.ea = {
|
|
1773
1773
|
type: t,
|
|
1774
|
-
value:
|
|
1775
|
-
label:
|
|
1774
|
+
value: r,
|
|
1775
|
+
label: n
|
|
1776
1776
|
};
|
|
1777
1777
|
return;
|
|
1778
1778
|
case "CallExpression":
|
|
1779
1779
|
case "NewExpression":
|
|
1780
1780
|
if (t === 3) {
|
|
1781
|
-
a.value =
|
|
1781
|
+
a.value = r;
|
|
1782
1782
|
return;
|
|
1783
1783
|
}
|
|
1784
1784
|
if (t !== 4)
|
|
@@ -1789,21 +1789,21 @@ function Je(e, t, n, r) {
|
|
|
1789
1789
|
break e;
|
|
1790
1790
|
}
|
|
1791
1791
|
if (t === 1) {
|
|
1792
|
-
if (
|
|
1792
|
+
if (n ? a.labels && a.labels.indexOf(n) !== -1 : a.W || a.Zb) {
|
|
1793
1793
|
o.pop();
|
|
1794
1794
|
return;
|
|
1795
1795
|
}
|
|
1796
|
-
} else if (t === 2 && (
|
|
1796
|
+
} else if (t === 2 && (n ? a.labels && a.labels.indexOf(n) !== -1 : a.W))
|
|
1797
1797
|
return;
|
|
1798
1798
|
}
|
|
1799
|
-
throw H(e,
|
|
1799
|
+
throw H(e, r, e.D) ? (t = {
|
|
1800
1800
|
EvalError,
|
|
1801
1801
|
RangeError,
|
|
1802
1802
|
ReferenceError,
|
|
1803
1803
|
SyntaxError,
|
|
1804
1804
|
TypeError,
|
|
1805
1805
|
URIError
|
|
1806
|
-
},
|
|
1806
|
+
}, n = String(e.G(r, "name")), o = e.G(r, "message").valueOf(), t = (t[n] || Error)(o), t.stack = String(e.G(r, "stack"))) : t = String(r), e.value = t, t;
|
|
1807
1807
|
}
|
|
1808
1808
|
function X(e, t) {
|
|
1809
1809
|
switch (t.type) {
|
|
@@ -1821,8 +1821,8 @@ function X(e, t) {
|
|
|
1821
1821
|
case "Literal":
|
|
1822
1822
|
return t.raw;
|
|
1823
1823
|
case "MemberExpression":
|
|
1824
|
-
var
|
|
1825
|
-
return e = X(e, t.Wa), t.bb ?
|
|
1824
|
+
var r = X(e, t.object);
|
|
1825
|
+
return e = X(e, t.Wa), t.bb ? r + "[" + e + "]" : r + "." + e;
|
|
1826
1826
|
case "NewExpression":
|
|
1827
1827
|
return "new " + X(e, t.callee) + "(...)";
|
|
1828
1828
|
case "ObjectExpression":
|
|
@@ -1832,52 +1832,52 @@ function X(e, t) {
|
|
|
1832
1832
|
case "UnaryExpression":
|
|
1833
1833
|
return t.operator + " " + X(e, t.K);
|
|
1834
1834
|
case "UpdateExpression":
|
|
1835
|
-
return
|
|
1835
|
+
return r = X(e, t.K), t.prefix ? t.operator + r : r + t.operator;
|
|
1836
1836
|
}
|
|
1837
1837
|
return "???";
|
|
1838
1838
|
}
|
|
1839
|
-
function zn(e, t,
|
|
1840
|
-
var
|
|
1841
|
-
|
|
1839
|
+
function zn(e, t, r) {
|
|
1840
|
+
var n = e.o[e.o.length - 1], o = Array.from(r), a = o.shift();
|
|
1841
|
+
r = Math.max(Number(o.shift() || 0), 0);
|
|
1842
1842
|
var s = e.ya();
|
|
1843
1843
|
if (a instanceof R && a.H === "Function") {
|
|
1844
1844
|
var f = a;
|
|
1845
|
-
s.type = "CallExpression",
|
|
1845
|
+
s.type = "CallExpression", n = n.scope;
|
|
1846
1846
|
} else {
|
|
1847
1847
|
try {
|
|
1848
1848
|
var h = Ae(String(a), "taskCode" + e.ic++);
|
|
1849
1849
|
} catch (m) {
|
|
1850
1850
|
C(e, e.T, "Invalid code: " + m.message);
|
|
1851
1851
|
}
|
|
1852
|
-
s.type = "EvalProgram_", s.body = h.body,
|
|
1852
|
+
s.type = "EvalProgram_", s.body = h.body, n = n.node.arguments[0], ct(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, o.length = 0;
|
|
1853
1853
|
}
|
|
1854
|
-
return t = new Ao(f, o,
|
|
1854
|
+
return t = new Ao(f, o, n, s, t ? r : -1), mr(e, t, r), t.Db;
|
|
1855
1855
|
}
|
|
1856
|
-
function mr(e, t,
|
|
1857
|
-
t.time = Date.now() +
|
|
1858
|
-
return
|
|
1856
|
+
function mr(e, t, r) {
|
|
1857
|
+
t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(n, o) {
|
|
1858
|
+
return n.time - o.time;
|
|
1859
1859
|
});
|
|
1860
1860
|
}
|
|
1861
1861
|
function Jn(e, t) {
|
|
1862
|
-
for (var
|
|
1863
|
-
if (e.ca[
|
|
1864
|
-
e.ca.splice(
|
|
1862
|
+
for (var r = 0; r < e.ca.length; r++)
|
|
1863
|
+
if (e.ca[r].Db == t) {
|
|
1864
|
+
e.ca.splice(r, 1);
|
|
1865
1865
|
break;
|
|
1866
1866
|
}
|
|
1867
1867
|
}
|
|
1868
|
-
function Ye(e, t,
|
|
1868
|
+
function Ye(e, t, r) {
|
|
1869
1869
|
if (!e.P)
|
|
1870
1870
|
throw Error("Unexpected call to createGetter");
|
|
1871
|
-
e.P = !1,
|
|
1872
|
-
var
|
|
1873
|
-
return
|
|
1871
|
+
e.P = !1, r = Array.isArray(r) ? r[0] : r;
|
|
1872
|
+
var n = e.ya();
|
|
1873
|
+
return n.type = "CallExpression", e = new k(n, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1874
1874
|
}
|
|
1875
|
-
function on(e, t,
|
|
1875
|
+
function on(e, t, r, n) {
|
|
1876
1876
|
if (!e.Ka)
|
|
1877
1877
|
throw Error("Unexpected call to createSetter");
|
|
1878
|
-
e.Ka = !1,
|
|
1878
|
+
e.Ka = !1, r = Array.isArray(r) ? r[0] : e.Na;
|
|
1879
1879
|
var o = e.ya();
|
|
1880
|
-
return o.type = "CallExpression", e = new k(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B =
|
|
1880
|
+
return o.type = "CallExpression", e = new k(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [n], e;
|
|
1881
1881
|
}
|
|
1882
1882
|
function Bt(e, t) {
|
|
1883
1883
|
return t == null ? e.Na : t instanceof R ? t : (e = e.s(le(e, t)), e.data = t, e);
|
|
@@ -1894,8 +1894,8 @@ M.ec = function(e) {
|
|
|
1894
1894
|
function k(e, t) {
|
|
1895
1895
|
this.node = e, this.scope = t;
|
|
1896
1896
|
}
|
|
1897
|
-
function gr(e, t,
|
|
1898
|
-
this.Va = e, this.S = t, this.object =
|
|
1897
|
+
function gr(e, t, r) {
|
|
1898
|
+
this.Va = e, this.S = t, this.object = r;
|
|
1899
1899
|
}
|
|
1900
1900
|
function R(e) {
|
|
1901
1901
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
@@ -1913,13 +1913,13 @@ M.toString = function() {
|
|
|
1913
1913
|
var e = Xn;
|
|
1914
1914
|
e.push(this);
|
|
1915
1915
|
try {
|
|
1916
|
-
var t = [],
|
|
1917
|
-
1024 <
|
|
1918
|
-
for (var o = 0; o <
|
|
1916
|
+
var t = [], r = this.h.length, n = !1;
|
|
1917
|
+
1024 < r && (r = 1e3, n = !0);
|
|
1918
|
+
for (var o = 0; o < r; o++) {
|
|
1919
1919
|
var a = this.h[o];
|
|
1920
1920
|
t[o] = a instanceof R && e.indexOf(a) !== -1 ? "..." : a;
|
|
1921
1921
|
}
|
|
1922
|
-
|
|
1922
|
+
n && t.push("...");
|
|
1923
1923
|
} finally {
|
|
1924
1924
|
e.pop();
|
|
1925
1925
|
}
|
|
@@ -1928,192 +1928,192 @@ M.toString = function() {
|
|
|
1928
1928
|
if (this.H === "Error") {
|
|
1929
1929
|
if (e = Xn, e.indexOf(this) !== -1)
|
|
1930
1930
|
return "[object Error]";
|
|
1931
|
-
|
|
1931
|
+
r = this;
|
|
1932
1932
|
do
|
|
1933
|
-
if ("name" in
|
|
1934
|
-
t =
|
|
1933
|
+
if ("name" in r.h) {
|
|
1934
|
+
t = r.h.name;
|
|
1935
1935
|
break;
|
|
1936
1936
|
}
|
|
1937
|
-
while (
|
|
1938
|
-
|
|
1937
|
+
while (r = r.xa);
|
|
1938
|
+
r = this;
|
|
1939
1939
|
do
|
|
1940
|
-
if ("message" in
|
|
1941
|
-
|
|
1940
|
+
if ("message" in r.h) {
|
|
1941
|
+
n = r.h.message;
|
|
1942
1942
|
break;
|
|
1943
1943
|
}
|
|
1944
|
-
while (
|
|
1944
|
+
while (r = r.xa);
|
|
1945
1945
|
e.push(this);
|
|
1946
1946
|
try {
|
|
1947
|
-
t = t && String(t),
|
|
1947
|
+
t = t && String(t), n = n && String(n);
|
|
1948
1948
|
} finally {
|
|
1949
1949
|
e.pop();
|
|
1950
1950
|
}
|
|
1951
|
-
return
|
|
1951
|
+
return n ? t + ": " + n : String(t);
|
|
1952
1952
|
}
|
|
1953
1953
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1954
1954
|
};
|
|
1955
1955
|
M.valueOf = function() {
|
|
1956
1956
|
return !Ke || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1957
1957
|
};
|
|
1958
|
-
function Ao(e, t,
|
|
1959
|
-
this.zb = e, this.Lb = t, this.scope =
|
|
1958
|
+
function Ao(e, t, r, n, o) {
|
|
1959
|
+
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = o, this.Db = ++jo, this.time = 0;
|
|
1960
1960
|
}
|
|
1961
1961
|
var jo = 0;
|
|
1962
|
-
d.prototype.stepArrayExpression = function(e, t,
|
|
1963
|
-
|
|
1964
|
-
var
|
|
1965
|
-
for (t.Oa ? (this.g(t.Oa,
|
|
1966
|
-
if (n
|
|
1967
|
-
return t.A =
|
|
1968
|
-
|
|
1962
|
+
d.prototype.stepArrayExpression = function(e, t, r) {
|
|
1963
|
+
r = r.elements;
|
|
1964
|
+
var n = t.A || 0;
|
|
1965
|
+
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa = je(this), t.Oa.h.length = r.length); n < r.length; ) {
|
|
1966
|
+
if (r[n])
|
|
1967
|
+
return t.A = n, new k(r[n], t.scope);
|
|
1968
|
+
n++;
|
|
1969
1969
|
}
|
|
1970
1970
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1971
1971
|
};
|
|
1972
|
-
d.prototype.stepAssignmentExpression = function(e, t,
|
|
1972
|
+
d.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
1973
1973
|
if (!t.ja)
|
|
1974
|
-
return t.ja = !0, t = new k(
|
|
1974
|
+
return t.ja = !0, t = new k(r.left, t.scope), t.sa = !0, t;
|
|
1975
1975
|
if (!t.Da)
|
|
1976
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba &&
|
|
1976
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e = nn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ye(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new k(r.right, t.scope));
|
|
1977
1977
|
if (t.ta)
|
|
1978
1978
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1979
1979
|
else {
|
|
1980
|
-
var
|
|
1981
|
-
switch (
|
|
1980
|
+
var n = t.ma, o = t.value;
|
|
1981
|
+
switch (r.operator) {
|
|
1982
1982
|
case "=":
|
|
1983
|
-
|
|
1983
|
+
n = o;
|
|
1984
1984
|
break;
|
|
1985
1985
|
case "+=":
|
|
1986
|
-
|
|
1986
|
+
n += o;
|
|
1987
1987
|
break;
|
|
1988
1988
|
case "-=":
|
|
1989
|
-
|
|
1989
|
+
n -= o;
|
|
1990
1990
|
break;
|
|
1991
1991
|
case "*=":
|
|
1992
|
-
|
|
1992
|
+
n *= o;
|
|
1993
1993
|
break;
|
|
1994
1994
|
case "/=":
|
|
1995
|
-
|
|
1995
|
+
n /= o;
|
|
1996
1996
|
break;
|
|
1997
1997
|
case "%=":
|
|
1998
|
-
|
|
1998
|
+
n %= o;
|
|
1999
1999
|
break;
|
|
2000
2000
|
case "<<=":
|
|
2001
|
-
|
|
2001
|
+
n <<= o;
|
|
2002
2002
|
break;
|
|
2003
2003
|
case ">>=":
|
|
2004
|
-
|
|
2004
|
+
n >>= o;
|
|
2005
2005
|
break;
|
|
2006
2006
|
case ">>>=":
|
|
2007
|
-
|
|
2007
|
+
n >>>= o;
|
|
2008
2008
|
break;
|
|
2009
2009
|
case "&=":
|
|
2010
|
-
|
|
2010
|
+
n &= o;
|
|
2011
2011
|
break;
|
|
2012
2012
|
case "^=":
|
|
2013
|
-
|
|
2013
|
+
n ^= o;
|
|
2014
2014
|
break;
|
|
2015
2015
|
case "|=":
|
|
2016
|
-
|
|
2016
|
+
n |= o;
|
|
2017
2017
|
break;
|
|
2018
2018
|
default:
|
|
2019
|
-
throw SyntaxError("Unknown assignment expression: " +
|
|
2019
|
+
throw SyntaxError("Unknown assignment expression: " + r.operator);
|
|
2020
2020
|
}
|
|
2021
|
-
if (
|
|
2022
|
-
return t.ta = !0, t.ib =
|
|
2023
|
-
e.pop(), e[e.length - 1].value =
|
|
2021
|
+
if (r = rn(this, t.Fa, n))
|
|
2022
|
+
return t.ta = !0, t.ib = n, on(this, r, t.Fa, n);
|
|
2023
|
+
e.pop(), e[e.length - 1].value = n;
|
|
2024
2024
|
}
|
|
2025
2025
|
};
|
|
2026
|
-
d.prototype.stepBinaryExpression = function(e, t,
|
|
2026
|
+
d.prototype.stepBinaryExpression = function(e, t, r) {
|
|
2027
2027
|
if (!t.ja)
|
|
2028
|
-
return t.ja = !0, new k(
|
|
2028
|
+
return t.ja = !0, new k(r.left, t.scope);
|
|
2029
2029
|
if (!t.Da)
|
|
2030
|
-
return t.Da = !0, t.ma = t.value, new k(
|
|
2030
|
+
return t.Da = !0, t.ma = t.value, new k(r.right, t.scope);
|
|
2031
2031
|
e.pop();
|
|
2032
|
-
var
|
|
2033
|
-
switch (t = t.value,
|
|
2032
|
+
var n = t.ma;
|
|
2033
|
+
switch (t = t.value, r.operator) {
|
|
2034
2034
|
case "==":
|
|
2035
|
-
|
|
2035
|
+
r = n == t;
|
|
2036
2036
|
break;
|
|
2037
2037
|
case "!=":
|
|
2038
|
-
|
|
2038
|
+
r = n != t;
|
|
2039
2039
|
break;
|
|
2040
2040
|
case "===":
|
|
2041
|
-
|
|
2041
|
+
r = n === t;
|
|
2042
2042
|
break;
|
|
2043
2043
|
case "!==":
|
|
2044
|
-
|
|
2044
|
+
r = n !== t;
|
|
2045
2045
|
break;
|
|
2046
2046
|
case ">":
|
|
2047
|
-
|
|
2047
|
+
r = n > t;
|
|
2048
2048
|
break;
|
|
2049
2049
|
case ">=":
|
|
2050
|
-
|
|
2050
|
+
r = n >= t;
|
|
2051
2051
|
break;
|
|
2052
2052
|
case "<":
|
|
2053
|
-
|
|
2053
|
+
r = n < t;
|
|
2054
2054
|
break;
|
|
2055
2055
|
case "<=":
|
|
2056
|
-
|
|
2056
|
+
r = n <= t;
|
|
2057
2057
|
break;
|
|
2058
2058
|
case "+":
|
|
2059
|
-
|
|
2059
|
+
r = n + t;
|
|
2060
2060
|
break;
|
|
2061
2061
|
case "-":
|
|
2062
|
-
|
|
2062
|
+
r = n - t;
|
|
2063
2063
|
break;
|
|
2064
2064
|
case "*":
|
|
2065
|
-
|
|
2065
|
+
r = n * t;
|
|
2066
2066
|
break;
|
|
2067
2067
|
case "/":
|
|
2068
|
-
|
|
2068
|
+
r = n / t;
|
|
2069
2069
|
break;
|
|
2070
2070
|
case "%":
|
|
2071
|
-
|
|
2071
|
+
r = n % t;
|
|
2072
2072
|
break;
|
|
2073
2073
|
case "&":
|
|
2074
|
-
|
|
2074
|
+
r = n & t;
|
|
2075
2075
|
break;
|
|
2076
2076
|
case "|":
|
|
2077
|
-
|
|
2077
|
+
r = n | t;
|
|
2078
2078
|
break;
|
|
2079
2079
|
case "^":
|
|
2080
|
-
|
|
2080
|
+
r = n ^ t;
|
|
2081
2081
|
break;
|
|
2082
2082
|
case "<<":
|
|
2083
|
-
|
|
2083
|
+
r = n << t;
|
|
2084
2084
|
break;
|
|
2085
2085
|
case ">>":
|
|
2086
|
-
|
|
2086
|
+
r = n >> t;
|
|
2087
2087
|
break;
|
|
2088
2088
|
case ">>>":
|
|
2089
|
-
|
|
2089
|
+
r = n >>> t;
|
|
2090
2090
|
break;
|
|
2091
2091
|
case "in":
|
|
2092
|
-
t instanceof R || C(this, this.j, "'in' expects an object, not '" + t + "'"),
|
|
2092
|
+
t instanceof R || C(this, this.j, "'in' expects an object, not '" + t + "'"), r = ut(this, t, n);
|
|
2093
2093
|
break;
|
|
2094
2094
|
case "instanceof":
|
|
2095
|
-
H(this, t, this.O) || C(this, this.j, "'instanceof' expects an object, not '" + t + "'"),
|
|
2095
|
+
H(this, t, this.O) || C(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof R ? H(this, n, t) : !1;
|
|
2096
2096
|
break;
|
|
2097
2097
|
default:
|
|
2098
|
-
throw SyntaxError("Unknown binary operator: " +
|
|
2098
|
+
throw SyntaxError("Unknown binary operator: " + r.operator);
|
|
2099
2099
|
}
|
|
2100
|
-
e[e.length - 1].value =
|
|
2100
|
+
e[e.length - 1].value = r;
|
|
2101
2101
|
};
|
|
2102
|
-
d.prototype.stepBlockStatement = function(e, t,
|
|
2103
|
-
var
|
|
2104
|
-
if (
|
|
2105
|
-
return t.A =
|
|
2102
|
+
d.prototype.stepBlockStatement = function(e, t, r) {
|
|
2103
|
+
var n = t.A || 0;
|
|
2104
|
+
if (r = r.body[n])
|
|
2105
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2106
2106
|
e.pop();
|
|
2107
2107
|
};
|
|
2108
|
-
d.prototype.stepBreakStatement = function(e, t,
|
|
2109
|
-
Je(this, 1, void 0,
|
|
2108
|
+
d.prototype.stepBreakStatement = function(e, t, r) {
|
|
2109
|
+
Je(this, 1, void 0, r.label && r.label.name);
|
|
2110
2110
|
};
|
|
2111
2111
|
d.prototype.Hb = 0;
|
|
2112
|
-
d.prototype.stepCallExpression = function(e, t,
|
|
2112
|
+
d.prototype.stepCallExpression = function(e, t, r) {
|
|
2113
2113
|
if (!t.ia) {
|
|
2114
2114
|
t.ia = 1;
|
|
2115
|
-
var
|
|
2116
|
-
return
|
|
2115
|
+
var n = new k(r.callee, t.scope);
|
|
2116
|
+
return n.sa = !0, n;
|
|
2117
2117
|
}
|
|
2118
2118
|
if (t.ia === 1) {
|
|
2119
2119
|
t.ia = 2;
|
|
@@ -2126,10 +2126,10 @@ d.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2126
2126
|
t.F = [], t.A = 0;
|
|
2127
2127
|
}
|
|
2128
2128
|
if (o = t.U, !t.Qa) {
|
|
2129
|
-
if (t.A !== 0 && t.F.push(t.value),
|
|
2130
|
-
return new k(
|
|
2131
|
-
if (
|
|
2132
|
-
if (o instanceof R && !o.Ab || C(this, this.j, X(this,
|
|
2129
|
+
if (t.A !== 0 && t.F.push(t.value), r.arguments[t.A])
|
|
2130
|
+
return new k(r.arguments[t.A++], t.scope);
|
|
2131
|
+
if (r.type === "NewExpression") {
|
|
2132
|
+
if (o instanceof R && !o.Ab || C(this, this.j, X(this, r.callee) + " is not a constructor"), o === this.qa)
|
|
2133
2133
|
t.B = je(this);
|
|
2134
2134
|
else {
|
|
2135
2135
|
var a = o.h.prototype;
|
|
@@ -2142,98 +2142,98 @@ d.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2142
2142
|
if (t.eb)
|
|
2143
2143
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2144
2144
|
else {
|
|
2145
|
-
if (t.eb = !0, o instanceof R || C(this, this.j, X(this,
|
|
2146
|
-
for (
|
|
2147
|
-
this.g(
|
|
2148
|
-
for (this.g(
|
|
2149
|
-
this.g(
|
|
2150
|
-
return
|
|
2145
|
+
if (t.eb = !0, o instanceof R || C(this, this.j, X(this, r.callee) + " is not a function"), e = o.node) {
|
|
2146
|
+
for (r = Dt(this, e.body, o.Va), n = je(this), o = 0; o < t.F.length; o++)
|
|
2147
|
+
this.g(n, o, t.F[o]);
|
|
2148
|
+
for (this.g(r.object, "arguments", n), o = 0; o < e.oa.length; o++)
|
|
2149
|
+
this.g(r.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2150
|
+
return r.S || (t.B = Bt(this, t.B)), this.g(r.object, "this", t.B, zt), t.value = void 0, new k(e.body, r);
|
|
2151
2151
|
}
|
|
2152
2152
|
if (o.eval)
|
|
2153
2153
|
if (o = t.F[0], typeof o != "string")
|
|
2154
2154
|
t.value = o;
|
|
2155
2155
|
else {
|
|
2156
2156
|
try {
|
|
2157
|
-
|
|
2157
|
+
n = Ae(String(o), "eval" + this.Hb++);
|
|
2158
2158
|
} catch (f) {
|
|
2159
2159
|
C(this, this.T, "Invalid code: " + f.message);
|
|
2160
2160
|
}
|
|
2161
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body =
|
|
2161
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = n.body, ct(o, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = Dt(this, n, r) : ze(this, n, r), this.value = void 0, new k(o, r);
|
|
2162
2162
|
}
|
|
2163
2163
|
else if (o.Ta)
|
|
2164
2164
|
t.scope.S || (t.B = Bt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2165
2165
|
else if (o.Za) {
|
|
2166
2166
|
var s = this;
|
|
2167
|
-
|
|
2167
|
+
n = o.Za.length - 1, n = t.F.concat(Array(n)).slice(0, n), n.push(function(f) {
|
|
2168
2168
|
t.value = f, s.za = !1;
|
|
2169
|
-
}), this.za = !0, t.scope.S || (t.B = Bt(this, t.B)), o.Za.apply(t.B,
|
|
2169
|
+
}), this.za = !0, t.scope.S || (t.B = Bt(this, t.B)), o.Za.apply(t.B, n);
|
|
2170
2170
|
} else
|
|
2171
|
-
C(this, this.j, X(this,
|
|
2171
|
+
C(this, this.j, X(this, r.callee) + " is not callable");
|
|
2172
2172
|
}
|
|
2173
2173
|
};
|
|
2174
|
-
d.prototype.stepConditionalExpression = function(e, t,
|
|
2175
|
-
var
|
|
2176
|
-
if (
|
|
2177
|
-
return t.na = 1, new k(
|
|
2178
|
-
if (
|
|
2179
|
-
if (t.na = 2, (
|
|
2180
|
-
return new k(
|
|
2181
|
-
if (!
|
|
2182
|
-
return new k(
|
|
2174
|
+
d.prototype.stepConditionalExpression = function(e, t, r) {
|
|
2175
|
+
var n = t.na || 0;
|
|
2176
|
+
if (n === 0)
|
|
2177
|
+
return t.na = 1, new k(r.test, t.scope);
|
|
2178
|
+
if (n === 1) {
|
|
2179
|
+
if (t.na = 2, (n = !!t.value) && r.da)
|
|
2180
|
+
return new k(r.da, t.scope);
|
|
2181
|
+
if (!n && r.alternate)
|
|
2182
|
+
return new k(r.alternate, t.scope);
|
|
2183
2183
|
this.value = void 0;
|
|
2184
2184
|
}
|
|
2185
|
-
e.pop(),
|
|
2185
|
+
e.pop(), r.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2186
2186
|
};
|
|
2187
|
-
d.prototype.stepContinueStatement = function(e, t,
|
|
2188
|
-
Je(this, 2, void 0,
|
|
2187
|
+
d.prototype.stepContinueStatement = function(e, t, r) {
|
|
2188
|
+
Je(this, 2, void 0, r.label && r.label.name);
|
|
2189
2189
|
};
|
|
2190
2190
|
d.prototype.stepDebuggerStatement = function(e) {
|
|
2191
2191
|
e.pop();
|
|
2192
2192
|
};
|
|
2193
|
-
d.prototype.stepDoWhileStatement = function(e, t,
|
|
2194
|
-
if (
|
|
2195
|
-
return t.ga = !0, new k(
|
|
2193
|
+
d.prototype.stepDoWhileStatement = function(e, t, r) {
|
|
2194
|
+
if (r.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2195
|
+
return t.ga = !0, new k(r.test, t.scope);
|
|
2196
2196
|
if (!t.value)
|
|
2197
2197
|
e.pop();
|
|
2198
|
-
else if (
|
|
2199
|
-
return t.ga = !1, t.W = !0, new k(
|
|
2198
|
+
else if (r.body)
|
|
2199
|
+
return t.ga = !1, t.W = !0, new k(r.body, t.scope);
|
|
2200
2200
|
};
|
|
2201
2201
|
d.prototype.stepEmptyStatement = function(e) {
|
|
2202
2202
|
e.pop();
|
|
2203
2203
|
};
|
|
2204
|
-
d.prototype.stepEvalProgram_ = function(e, t,
|
|
2205
|
-
var
|
|
2206
|
-
if (
|
|
2207
|
-
return t.A =
|
|
2204
|
+
d.prototype.stepEvalProgram_ = function(e, t, r) {
|
|
2205
|
+
var n = t.A || 0;
|
|
2206
|
+
if (r = r.body[n])
|
|
2207
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2208
2208
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2209
2209
|
};
|
|
2210
|
-
d.prototype.stepExpressionStatement = function(e, t,
|
|
2210
|
+
d.prototype.stepExpressionStatement = function(e, t, r) {
|
|
2211
2211
|
if (!t.ka)
|
|
2212
|
-
return this.value = void 0, t.ka = !0, new k(
|
|
2212
|
+
return this.value = void 0, t.ka = !0, new k(r.la, t.scope);
|
|
2213
2213
|
e.pop(), this.value = t.value;
|
|
2214
2214
|
};
|
|
2215
|
-
d.prototype.stepForInStatement = function(e, t,
|
|
2216
|
-
if (!t.Ub && (t.Ub = !0,
|
|
2217
|
-
return t.scope.S && C(this, this.T, "for-in loop variable declaration may not have an initializer"), new k(
|
|
2215
|
+
d.prototype.stepForInStatement = function(e, t, r) {
|
|
2216
|
+
if (!t.Ub && (t.Ub = !0, r.left.fa && r.left.fa[0].ua))
|
|
2217
|
+
return t.scope.S && C(this, this.T, "for-in loop variable declaration may not have an initializer"), new k(r.left, t.scope);
|
|
2218
2218
|
if (!t.Ca)
|
|
2219
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new k(
|
|
2219
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new k(r.right, t.scope);
|
|
2220
2220
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2221
2221
|
e:
|
|
2222
2222
|
for (; ; ) {
|
|
2223
2223
|
if (t.u instanceof R)
|
|
2224
2224
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2225
|
-
var
|
|
2226
|
-
if (
|
|
2225
|
+
var n = t.wa.shift();
|
|
2226
|
+
if (n === void 0)
|
|
2227
2227
|
break;
|
|
2228
|
-
if (Object.prototype.hasOwnProperty.call(t.u.h,
|
|
2229
|
-
t.Ra =
|
|
2228
|
+
if (Object.prototype.hasOwnProperty.call(t.u.h, n) && !t.kb[n] && (t.kb[n] = !0, Object.prototype.propertyIsEnumerable.call(t.u.h, n))) {
|
|
2229
|
+
t.Ra = n;
|
|
2230
2230
|
break e;
|
|
2231
2231
|
}
|
|
2232
2232
|
}
|
|
2233
2233
|
else if (t.u !== null && t.u !== void 0) {
|
|
2234
|
-
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u));
|
|
2235
|
-
if (t.kb[
|
|
2236
|
-
t.Ra =
|
|
2234
|
+
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u)); n = t.wa.shift(), n !== void 0; )
|
|
2235
|
+
if (t.kb[n] = !0, Object.prototype.propertyIsEnumerable.call(t.u, n)) {
|
|
2236
|
+
t.Ra = n;
|
|
2237
2237
|
break e;
|
|
2238
2238
|
}
|
|
2239
2239
|
}
|
|
@@ -2243,94 +2243,94 @@ d.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2243
2243
|
}
|
|
2244
2244
|
}
|
|
2245
2245
|
if (!t.wb)
|
|
2246
|
-
if (t.wb = !0, e =
|
|
2246
|
+
if (t.wb = !0, e = r.left, e.type === "VariableDeclaration")
|
|
2247
2247
|
t.pa = [Oe, e.fa[0].id.name];
|
|
2248
2248
|
else
|
|
2249
2249
|
return t.pa = null, t = new k(e, t.scope), t.sa = !0, t;
|
|
2250
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra,
|
|
2251
|
-
return on(this,
|
|
2252
|
-
if (t.Ra = void 0, t.wb = !1, t.ta = !1,
|
|
2253
|
-
return new k(
|
|
2250
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = rn(this, t.pa, e)))
|
|
2251
|
+
return on(this, n, t.pa, e);
|
|
2252
|
+
if (t.Ra = void 0, t.wb = !1, t.ta = !1, r.body)
|
|
2253
|
+
return new k(r.body, t.scope);
|
|
2254
2254
|
};
|
|
2255
|
-
d.prototype.stepForStatement = function(e, t,
|
|
2255
|
+
d.prototype.stepForStatement = function(e, t, r) {
|
|
2256
2256
|
switch (t.na) {
|
|
2257
2257
|
default:
|
|
2258
|
-
if (t.na = 1,
|
|
2259
|
-
return new k(
|
|
2258
|
+
if (t.na = 1, r.ua)
|
|
2259
|
+
return new k(r.ua, t.scope);
|
|
2260
2260
|
break;
|
|
2261
2261
|
case 1:
|
|
2262
|
-
if (t.na = 2,
|
|
2263
|
-
return new k(
|
|
2262
|
+
if (t.na = 2, r.test)
|
|
2263
|
+
return new k(r.test, t.scope);
|
|
2264
2264
|
break;
|
|
2265
2265
|
case 2:
|
|
2266
|
-
if (t.na = 3,
|
|
2266
|
+
if (t.na = 3, r.test && !t.value)
|
|
2267
2267
|
e.pop();
|
|
2268
2268
|
else
|
|
2269
|
-
return t.W = !0, new k(
|
|
2269
|
+
return t.W = !0, new k(r.body, t.scope);
|
|
2270
2270
|
break;
|
|
2271
2271
|
case 3:
|
|
2272
|
-
if (t.na = 1,
|
|
2273
|
-
return new k(
|
|
2272
|
+
if (t.na = 1, r.update)
|
|
2273
|
+
return new k(r.update, t.scope);
|
|
2274
2274
|
}
|
|
2275
2275
|
};
|
|
2276
2276
|
d.prototype.stepFunctionDeclaration = function(e) {
|
|
2277
2277
|
e.pop();
|
|
2278
2278
|
};
|
|
2279
|
-
d.prototype.stepFunctionExpression = function(e, t,
|
|
2280
|
-
e.pop(), t = e[e.length - 1], e = t.scope,
|
|
2279
|
+
d.prototype.stepFunctionExpression = function(e, t, r) {
|
|
2280
|
+
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e = en(this, e)), t.value = Zt(this, r, e, t.Pa), r.id && this.g(e.object, r.id.name, t.value, zt);
|
|
2281
2281
|
};
|
|
2282
|
-
d.prototype.stepIdentifier = function(e, t,
|
|
2282
|
+
d.prototype.stepIdentifier = function(e, t, r) {
|
|
2283
2283
|
if (e.pop(), t.sa)
|
|
2284
|
-
e[e.length - 1].value = [Oe,
|
|
2284
|
+
e[e.length - 1].value = [Oe, r.name];
|
|
2285
2285
|
else {
|
|
2286
|
-
if (t = tn(this,
|
|
2286
|
+
if (t = tn(this, r.name), this.P)
|
|
2287
2287
|
return Ye(this, t, this.Na);
|
|
2288
2288
|
e[e.length - 1].value = t;
|
|
2289
2289
|
}
|
|
2290
2290
|
};
|
|
2291
2291
|
d.prototype.stepIfStatement = d.prototype.stepConditionalExpression;
|
|
2292
|
-
d.prototype.stepLabeledStatement = function(e, t,
|
|
2293
|
-
return e.pop(), e = t.labels || [], e.push(
|
|
2292
|
+
d.prototype.stepLabeledStatement = function(e, t, r) {
|
|
2293
|
+
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new k(r.body, t.scope), t.labels = e, t;
|
|
2294
2294
|
};
|
|
2295
|
-
d.prototype.stepLiteral = function(e, t,
|
|
2296
|
-
e.pop(), t =
|
|
2295
|
+
d.prototype.stepLiteral = function(e, t, r) {
|
|
2296
|
+
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma), Yt(this, r, t), t = r), e[e.length - 1].value = t;
|
|
2297
2297
|
};
|
|
2298
|
-
d.prototype.stepLogicalExpression = function(e, t,
|
|
2299
|
-
if (
|
|
2300
|
-
throw SyntaxError("Unknown logical operator: " +
|
|
2298
|
+
d.prototype.stepLogicalExpression = function(e, t, r) {
|
|
2299
|
+
if (r.operator !== "&&" && r.operator !== "||")
|
|
2300
|
+
throw SyntaxError("Unknown logical operator: " + r.operator);
|
|
2301
2301
|
if (!t.ja)
|
|
2302
|
-
return t.ja = !0, new k(
|
|
2302
|
+
return t.ja = !0, new k(r.left, t.scope);
|
|
2303
2303
|
if (t.Da)
|
|
2304
2304
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2305
|
-
else if (
|
|
2305
|
+
else if (r.operator === "&&" && !t.value || r.operator === "||" && t.value)
|
|
2306
2306
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2307
2307
|
else
|
|
2308
|
-
return t.Da = !0, new k(
|
|
2308
|
+
return t.Da = !0, new k(r.right, t.scope);
|
|
2309
2309
|
};
|
|
2310
|
-
d.prototype.stepMemberExpression = function(e, t,
|
|
2310
|
+
d.prototype.stepMemberExpression = function(e, t, r) {
|
|
2311
2311
|
if (!t.Ca)
|
|
2312
|
-
return t.Ca = !0, new k(
|
|
2313
|
-
if (
|
|
2312
|
+
return t.Ca = !0, new k(r.object, t.scope);
|
|
2313
|
+
if (r.bb)
|
|
2314
2314
|
if (t.Vb)
|
|
2315
|
-
|
|
2315
|
+
r = t.value;
|
|
2316
2316
|
else
|
|
2317
|
-
return t.u = t.value, t.Vb = !0, new k(
|
|
2317
|
+
return t.u = t.value, t.Vb = !0, new k(r.Wa, t.scope);
|
|
2318
2318
|
else
|
|
2319
|
-
t.u = t.value,
|
|
2319
|
+
t.u = t.value, r = r.Wa.name;
|
|
2320
2320
|
if (e.pop(), t.sa)
|
|
2321
|
-
e[e.length - 1].value = [t.u,
|
|
2321
|
+
e[e.length - 1].value = [t.u, r];
|
|
2322
2322
|
else {
|
|
2323
|
-
if (
|
|
2324
|
-
return Ye(this,
|
|
2325
|
-
e[e.length - 1].value =
|
|
2323
|
+
if (r = this.G(t.u, r), this.P)
|
|
2324
|
+
return Ye(this, r, t.u);
|
|
2325
|
+
e[e.length - 1].value = r;
|
|
2326
2326
|
}
|
|
2327
2327
|
};
|
|
2328
2328
|
d.prototype.stepNewExpression = d.prototype.stepCallExpression;
|
|
2329
|
-
d.prototype.stepObjectExpression = function(e, t,
|
|
2330
|
-
var
|
|
2329
|
+
d.prototype.stepObjectExpression = function(e, t, r) {
|
|
2330
|
+
var n = t.A || 0, o = r.h[n];
|
|
2331
2331
|
if (t.u) {
|
|
2332
2332
|
var a = t.Pa;
|
|
2333
|
-
t.Ja[a] || (t.Ja[a] = {}), t.Ja[a][o.kind] = t.value, t.A = ++
|
|
2333
|
+
t.Ja[a] || (t.Ja[a] = {}), t.Ja[a][o.kind] = t.value, t.A = ++n, o = r.h[n];
|
|
2334
2334
|
} else
|
|
2335
2335
|
t.u = this.s(this.M), t.Ja = /* @__PURE__ */ Object.create(null);
|
|
2336
2336
|
if (o) {
|
|
@@ -2344,35 +2344,35 @@ d.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2344
2344
|
return t.Pa = a, new k(o.value, t.scope);
|
|
2345
2345
|
}
|
|
2346
2346
|
for (s in t.Ja)
|
|
2347
|
-
|
|
2347
|
+
r = t.Ja[s], "get" in r || "set" in r ? this.g(t.u, s, Xe, {
|
|
2348
2348
|
configurable: !0,
|
|
2349
2349
|
enumerable: !0,
|
|
2350
|
-
get:
|
|
2351
|
-
set:
|
|
2352
|
-
}) : this.g(t.u, s,
|
|
2350
|
+
get: r.get,
|
|
2351
|
+
set: r.set
|
|
2352
|
+
}) : this.g(t.u, s, r.init);
|
|
2353
2353
|
e.pop(), e[e.length - 1].value = t.u;
|
|
2354
2354
|
};
|
|
2355
|
-
d.prototype.stepProgram = function(e, t,
|
|
2356
|
-
if (e =
|
|
2355
|
+
d.prototype.stepProgram = function(e, t, r) {
|
|
2356
|
+
if (e = r.body.shift())
|
|
2357
2357
|
return t.done = !1, new k(e, t.scope);
|
|
2358
2358
|
t.done = !0;
|
|
2359
2359
|
};
|
|
2360
|
-
d.prototype.stepReturnStatement = function(e, t,
|
|
2361
|
-
if (
|
|
2362
|
-
return t.ka = !0, new k(
|
|
2360
|
+
d.prototype.stepReturnStatement = function(e, t, r) {
|
|
2361
|
+
if (r.K && !t.ka)
|
|
2362
|
+
return t.ka = !0, new k(r.K, t.scope);
|
|
2363
2363
|
Je(this, 3, t.value);
|
|
2364
2364
|
};
|
|
2365
|
-
d.prototype.stepSequenceExpression = function(e, t,
|
|
2366
|
-
var
|
|
2367
|
-
if (
|
|
2368
|
-
return t.A =
|
|
2365
|
+
d.prototype.stepSequenceExpression = function(e, t, r) {
|
|
2366
|
+
var n = t.A || 0;
|
|
2367
|
+
if (r = r.xb[n])
|
|
2368
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2369
2369
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2370
2370
|
};
|
|
2371
|
-
d.prototype.stepSwitchStatement = function(e, t,
|
|
2371
|
+
d.prototype.stepSwitchStatement = function(e, t, r) {
|
|
2372
2372
|
if (!t.ga)
|
|
2373
|
-
return t.ga = 1, new k(
|
|
2373
|
+
return t.ga = 1, new k(r.Qb, t.scope);
|
|
2374
2374
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2375
|
-
var
|
|
2375
|
+
var n = t.gb || 0, o = r.tb[n];
|
|
2376
2376
|
if (t.Ha || !o || o.test)
|
|
2377
2377
|
if (o || t.Ha || t.cb === -1)
|
|
2378
2378
|
if (o) {
|
|
@@ -2384,7 +2384,7 @@ d.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2384
2384
|
if (o.da[a])
|
|
2385
2385
|
return t.Zb = !0, t.A = a + 1, new k(o.da[a], t.scope);
|
|
2386
2386
|
}
|
|
2387
|
-
t.Fb = !1, t.A = 0, t.gb =
|
|
2387
|
+
t.Fb = !1, t.A = 0, t.gb = n + 1;
|
|
2388
2388
|
} else {
|
|
2389
2389
|
e.pop();
|
|
2390
2390
|
break;
|
|
@@ -2392,102 +2392,102 @@ d.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2392
2392
|
else
|
|
2393
2393
|
t.Ha = !0, t.gb = t.cb;
|
|
2394
2394
|
else
|
|
2395
|
-
t.cb =
|
|
2395
|
+
t.cb = n, t.gb = n + 1;
|
|
2396
2396
|
}
|
|
2397
2397
|
};
|
|
2398
2398
|
d.prototype.stepThisExpression = function(e) {
|
|
2399
2399
|
e.pop(), e[e.length - 1].value = tn(this, "this");
|
|
2400
2400
|
};
|
|
2401
|
-
d.prototype.stepThrowStatement = function(e, t,
|
|
2401
|
+
d.prototype.stepThrowStatement = function(e, t, r) {
|
|
2402
2402
|
if (t.ka)
|
|
2403
2403
|
C(this, t.value);
|
|
2404
2404
|
else
|
|
2405
|
-
return t.ka = !0, new k(
|
|
2405
|
+
return t.ka = !0, new k(r.K, t.scope);
|
|
2406
2406
|
};
|
|
2407
|
-
d.prototype.stepTryStatement = function(e, t,
|
|
2407
|
+
d.prototype.stepTryStatement = function(e, t, r) {
|
|
2408
2408
|
if (!t.Rb)
|
|
2409
|
-
return t.Rb = !0, new k(
|
|
2410
|
-
if (t.ea && t.ea.type === 4 && !t.Tb &&
|
|
2411
|
-
return t.Tb = !0, e = en(this, t.scope), this.g(e.object,
|
|
2412
|
-
if (!t.Sb &&
|
|
2413
|
-
return t.Sb = !0, new k(
|
|
2409
|
+
return t.Rb = !0, new k(r.block, t.scope);
|
|
2410
|
+
if (t.ea && t.ea.type === 4 && !t.Tb && r.Ea)
|
|
2411
|
+
return t.Tb = !0, e = en(this, t.scope), this.g(e.object, r.Ea.Ua.name, t.ea.value), t.ea = void 0, new k(r.Ea.body, e);
|
|
2412
|
+
if (!t.Sb && r.fb)
|
|
2413
|
+
return t.Sb = !0, new k(r.fb, t.scope);
|
|
2414
2414
|
e.pop(), t.ea && Je(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2415
2415
|
};
|
|
2416
|
-
d.prototype.stepUnaryExpression = function(e, t,
|
|
2416
|
+
d.prototype.stepUnaryExpression = function(e, t, r) {
|
|
2417
2417
|
if (!t.ka)
|
|
2418
|
-
return t.ka = !0, e = new k(
|
|
2418
|
+
return t.ka = !0, e = new k(r.K, t.scope), e.sa = r.operator === "delete", e;
|
|
2419
2419
|
e.pop();
|
|
2420
|
-
var
|
|
2421
|
-
switch (
|
|
2420
|
+
var n = t.value;
|
|
2421
|
+
switch (r.operator) {
|
|
2422
2422
|
case "-":
|
|
2423
|
-
|
|
2423
|
+
n = -n;
|
|
2424
2424
|
break;
|
|
2425
2425
|
case "+":
|
|
2426
|
-
|
|
2426
|
+
n = +n;
|
|
2427
2427
|
break;
|
|
2428
2428
|
case "!":
|
|
2429
|
-
|
|
2429
|
+
n = !n;
|
|
2430
2430
|
break;
|
|
2431
2431
|
case "~":
|
|
2432
|
-
|
|
2432
|
+
n = ~n;
|
|
2433
2433
|
break;
|
|
2434
2434
|
case "delete":
|
|
2435
|
-
if (
|
|
2436
|
-
var o =
|
|
2437
|
-
o === Oe && (o = t.scope),
|
|
2435
|
+
if (r = !0, Array.isArray(n)) {
|
|
2436
|
+
var o = n[0];
|
|
2437
|
+
o === Oe && (o = t.scope), n = String(n[1]);
|
|
2438
2438
|
try {
|
|
2439
|
-
delete o.h[
|
|
2439
|
+
delete o.h[n];
|
|
2440
2440
|
} catch {
|
|
2441
|
-
t.scope.S ? C(this, this.j, "Cannot delete property '" +
|
|
2441
|
+
t.scope.S ? C(this, this.j, "Cannot delete property '" + n + "' of '" + o + "'") : r = !1;
|
|
2442
2442
|
}
|
|
2443
2443
|
}
|
|
2444
|
-
|
|
2444
|
+
n = r;
|
|
2445
2445
|
break;
|
|
2446
2446
|
case "typeof":
|
|
2447
|
-
|
|
2447
|
+
n = n && n.H === "Function" ? "function" : typeof n;
|
|
2448
2448
|
break;
|
|
2449
2449
|
case "void":
|
|
2450
|
-
|
|
2450
|
+
n = void 0;
|
|
2451
2451
|
break;
|
|
2452
2452
|
default:
|
|
2453
|
-
throw SyntaxError("Unknown unary operator: " +
|
|
2453
|
+
throw SyntaxError("Unknown unary operator: " + r.operator);
|
|
2454
2454
|
}
|
|
2455
|
-
e[e.length - 1].value =
|
|
2455
|
+
e[e.length - 1].value = n;
|
|
2456
2456
|
};
|
|
2457
|
-
d.prototype.stepUpdateExpression = function(e, t,
|
|
2457
|
+
d.prototype.stepUpdateExpression = function(e, t, r) {
|
|
2458
2458
|
if (!t.ja)
|
|
2459
|
-
return t.ja = !0, e = new k(
|
|
2459
|
+
return t.ja = !0, e = new k(r.K, t.scope), e.sa = !0, e;
|
|
2460
2460
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2461
|
-
var
|
|
2462
|
-
if (t.ma =
|
|
2463
|
-
return t.Ba = !0, Ye(this,
|
|
2461
|
+
var n = nn(this, t.Ga);
|
|
2462
|
+
if (t.ma = n, this.P)
|
|
2463
|
+
return t.Ba = !0, Ye(this, n, t.Ga);
|
|
2464
2464
|
}
|
|
2465
2465
|
if (t.ta)
|
|
2466
2466
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2467
2467
|
else {
|
|
2468
|
-
if (
|
|
2469
|
-
var o =
|
|
2470
|
-
else if (
|
|
2471
|
-
o =
|
|
2468
|
+
if (n = Number(t.ma), r.operator === "++")
|
|
2469
|
+
var o = n + 1;
|
|
2470
|
+
else if (r.operator === "--")
|
|
2471
|
+
o = n - 1;
|
|
2472
2472
|
else
|
|
2473
|
-
throw SyntaxError("Unknown update expression: " +
|
|
2474
|
-
if (
|
|
2475
|
-
return t.ta = !0, t.ib =
|
|
2476
|
-
e.pop(), e[e.length - 1].value =
|
|
2473
|
+
throw SyntaxError("Unknown update expression: " + r.operator);
|
|
2474
|
+
if (r = r.prefix ? o : n, n = rn(this, t.Ga, o))
|
|
2475
|
+
return t.ta = !0, t.ib = r, on(this, n, t.Ga, o);
|
|
2476
|
+
e.pop(), e[e.length - 1].value = r;
|
|
2477
2477
|
}
|
|
2478
2478
|
};
|
|
2479
|
-
d.prototype.stepVariableDeclaration = function(e, t,
|
|
2480
|
-
|
|
2481
|
-
var
|
|
2482
|
-
for (t.Bb && o && (dr(this, o.id.name, t.value), t.Bb = !1, o =
|
|
2479
|
+
d.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
2480
|
+
r = r.fa;
|
|
2481
|
+
var n = t.A || 0, o = r[n];
|
|
2482
|
+
for (t.Bb && o && (dr(this, o.id.name, t.value), t.Bb = !1, o = r[++n]); o; ) {
|
|
2483
2483
|
if (o.ua)
|
|
2484
|
-
return t.A =
|
|
2485
|
-
o =
|
|
2484
|
+
return t.A = n, t.Bb = !0, t.Pa = o.id.name, new k(o.ua, t.scope);
|
|
2485
|
+
o = r[++n];
|
|
2486
2486
|
}
|
|
2487
2487
|
e.pop();
|
|
2488
2488
|
};
|
|
2489
|
-
d.prototype.stepWithStatement = function(e, t,
|
|
2490
|
-
return t.Ca ? (e.pop(), e = en(this, t.scope, t.value), new k(
|
|
2489
|
+
d.prototype.stepWithStatement = function(e, t, r) {
|
|
2490
|
+
return t.Ca ? (e.pop(), e = en(this, t.scope, t.value), new k(r.body, e)) : (t.Ca = !0, new k(r.object, t.scope));
|
|
2491
2491
|
};
|
|
2492
2492
|
d.prototype.stepWhileStatement = d.prototype.stepDoWhileStatement;
|
|
2493
2493
|
me.Interpreter = d;
|
|
@@ -2509,23 +2509,23 @@ d.VALUE_IN_DESCRIPTOR = Xe;
|
|
|
2509
2509
|
const Oo = ({
|
|
2510
2510
|
builder: e,
|
|
2511
2511
|
context: t,
|
|
2512
|
-
event:
|
|
2513
|
-
state:
|
|
2512
|
+
event: r,
|
|
2513
|
+
state: n
|
|
2514
2514
|
}) => Object.entries({
|
|
2515
|
-
state:
|
|
2515
|
+
state: n,
|
|
2516
2516
|
Builder: e,
|
|
2517
2517
|
// legacy
|
|
2518
2518
|
builder: e,
|
|
2519
2519
|
context: t,
|
|
2520
|
-
event:
|
|
2520
|
+
event: r
|
|
2521
2521
|
}), Ro = (e) => e.split(`
|
|
2522
2522
|
`).map((t) => {
|
|
2523
|
-
const
|
|
2523
|
+
const r = t.trim();
|
|
2524
2524
|
if (t.includes("__awaiter"))
|
|
2525
2525
|
return;
|
|
2526
|
-
if (!
|
|
2526
|
+
if (!r.startsWith("state."))
|
|
2527
2527
|
return t;
|
|
2528
|
-
const [o, a] =
|
|
2528
|
+
const [o, a] = r.split("="), f = `setRootState('${o.replace("state.", "").trim()}', ${a.trim()})`;
|
|
2529
2529
|
return `
|
|
2530
2530
|
${t}
|
|
2531
2531
|
${f}
|
|
@@ -2534,19 +2534,19 @@ const Oo = ({
|
|
|
2534
2534
|
`), Yn = (e) => e + "JSON", Po = ({
|
|
2535
2535
|
builder: e,
|
|
2536
2536
|
context: t,
|
|
2537
|
-
event:
|
|
2538
|
-
rootState:
|
|
2537
|
+
event: r,
|
|
2538
|
+
rootState: n,
|
|
2539
2539
|
localState: o,
|
|
2540
2540
|
rootSetState: a,
|
|
2541
2541
|
code: s
|
|
2542
2542
|
}) => {
|
|
2543
2543
|
const f = {
|
|
2544
|
-
...
|
|
2544
|
+
...n,
|
|
2545
2545
|
...o
|
|
2546
2546
|
}, h = Oo({
|
|
2547
2547
|
builder: e,
|
|
2548
2548
|
context: t,
|
|
2549
|
-
event:
|
|
2549
|
+
event: r,
|
|
2550
2550
|
state: f
|
|
2551
2551
|
}), m = h.map(([S]) => {
|
|
2552
2552
|
const v = Yn(S);
|
|
@@ -2586,8 +2586,8 @@ theFunction();
|
|
|
2586
2586
|
function an({
|
|
2587
2587
|
code: e,
|
|
2588
2588
|
context: t,
|
|
2589
|
-
localState:
|
|
2590
|
-
rootState:
|
|
2589
|
+
localState: r,
|
|
2590
|
+
rootState: n,
|
|
2591
2591
|
rootSetState: o,
|
|
2592
2592
|
event: a,
|
|
2593
2593
|
isExpression: s = !0
|
|
@@ -2607,8 +2607,8 @@ function an({
|
|
|
2607
2607
|
context: t,
|
|
2608
2608
|
event: a,
|
|
2609
2609
|
rootSetState: o,
|
|
2610
|
-
rootState:
|
|
2611
|
-
localState:
|
|
2610
|
+
rootState: n,
|
|
2611
|
+
localState: r
|
|
2612
2612
|
};
|
|
2613
2613
|
try {
|
|
2614
2614
|
return Po(g);
|
|
@@ -2622,8 +2622,8 @@ function an({
|
|
|
2622
2622
|
const No = ({
|
|
2623
2623
|
block: e,
|
|
2624
2624
|
context: t,
|
|
2625
|
-
localState:
|
|
2626
|
-
rootState:
|
|
2625
|
+
localState: r,
|
|
2626
|
+
rootState: n,
|
|
2627
2627
|
rootSetState: o
|
|
2628
2628
|
}) => {
|
|
2629
2629
|
if (!e.bindings)
|
|
@@ -2640,8 +2640,8 @@ const No = ({
|
|
|
2640
2640
|
for (const f in e.bindings) {
|
|
2641
2641
|
const h = e.bindings[f], m = an({
|
|
2642
2642
|
code: h,
|
|
2643
|
-
localState:
|
|
2644
|
-
rootState:
|
|
2643
|
+
localState: r,
|
|
2644
|
+
rootState: n,
|
|
2645
2645
|
rootSetState: o,
|
|
2646
2646
|
context: t
|
|
2647
2647
|
});
|
|
@@ -2652,35 +2652,35 @@ const No = ({
|
|
|
2652
2652
|
function st({
|
|
2653
2653
|
block: e,
|
|
2654
2654
|
context: t,
|
|
2655
|
-
shouldEvaluateBindings:
|
|
2656
|
-
localState:
|
|
2655
|
+
shouldEvaluateBindings: r,
|
|
2656
|
+
localState: n,
|
|
2657
2657
|
rootState: o,
|
|
2658
2658
|
rootSetState: a
|
|
2659
2659
|
}) {
|
|
2660
2660
|
const s = e;
|
|
2661
|
-
return
|
|
2661
|
+
return r ? No({
|
|
2662
2662
|
block: s,
|
|
2663
|
-
localState:
|
|
2663
|
+
localState: n,
|
|
2664
2664
|
rootState: o,
|
|
2665
2665
|
rootSetState: a,
|
|
2666
2666
|
context: t
|
|
2667
2667
|
}) : s;
|
|
2668
2668
|
}
|
|
2669
|
-
const Mo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), fe = (e) => e != null, yr = (e) => Object.entries(e).map(([
|
|
2670
|
-
if (typeof
|
|
2671
|
-
return `${Mo(
|
|
2669
|
+
const Mo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), fe = (e) => e != null, yr = (e) => Object.entries(e).map(([r, n]) => {
|
|
2670
|
+
if (typeof n == "string")
|
|
2671
|
+
return `${Mo(r)}: ${n};`;
|
|
2672
2672
|
}).filter(fe), Fo = (e) => yr(e).join(`
|
|
2673
2673
|
`), Vt = ({
|
|
2674
2674
|
mediaQuery: e,
|
|
2675
2675
|
className: t,
|
|
2676
|
-
styles:
|
|
2676
|
+
styles: r
|
|
2677
2677
|
}) => {
|
|
2678
|
-
const
|
|
2679
|
-
${Fo(
|
|
2678
|
+
const n = `.${t} {
|
|
2679
|
+
${Fo(r)}
|
|
2680
2680
|
}`;
|
|
2681
2681
|
return e ? `${e} {
|
|
2682
|
-
${
|
|
2683
|
-
}` :
|
|
2682
|
+
${n}
|
|
2683
|
+
}` : n;
|
|
2684
2684
|
};
|
|
2685
2685
|
function ft(e) {
|
|
2686
2686
|
return /* @__PURE__ */ I("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
@@ -2696,7 +2696,7 @@ function sn(e) {
|
|
|
2696
2696
|
shouldEvaluateBindings: !0
|
|
2697
2697
|
});
|
|
2698
2698
|
return fe(o.hide) ? !o.hide : fe(o.show) ? o.show : !0;
|
|
2699
|
-
},
|
|
2699
|
+
}, r = function() {
|
|
2700
2700
|
var v;
|
|
2701
2701
|
const o = st({
|
|
2702
2702
|
block: e.block,
|
|
@@ -2730,7 +2730,7 @@ function sn(e) {
|
|
|
2730
2730
|
}) : "";
|
|
2731
2731
|
return [P, E, S].join(" ");
|
|
2732
2732
|
};
|
|
2733
|
-
return /* @__PURE__ */ I(_, { children:
|
|
2733
|
+
return /* @__PURE__ */ I(_, { children: r() && t() ? /* @__PURE__ */ I(_, { children: /* @__PURE__ */ I(ft, { styles: r() }) }) : null });
|
|
2734
2734
|
}
|
|
2735
2735
|
function Uo(e) {
|
|
2736
2736
|
var t;
|
|
@@ -2746,10 +2746,10 @@ function Uo(e) {
|
|
|
2746
2746
|
const Bo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], _t = (e) => typeof e == "string" && Bo.includes(e.toLowerCase()), Vo = ({
|
|
2747
2747
|
block: e,
|
|
2748
2748
|
context: t,
|
|
2749
|
-
registeredComponents:
|
|
2749
|
+
registeredComponents: r
|
|
2750
2750
|
}) => {
|
|
2751
2751
|
var a;
|
|
2752
|
-
const
|
|
2752
|
+
const n = (a = st({
|
|
2753
2753
|
block: e,
|
|
2754
2754
|
localState: t.localState,
|
|
2755
2755
|
rootState: t.rootState,
|
|
@@ -2757,26 +2757,26 @@ const Bo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2757
2757
|
context: t.context,
|
|
2758
2758
|
shouldEvaluateBindings: !1
|
|
2759
2759
|
}).component) == null ? void 0 : a.name;
|
|
2760
|
-
if (!
|
|
2760
|
+
if (!n)
|
|
2761
2761
|
return null;
|
|
2762
|
-
const o = n
|
|
2762
|
+
const o = r[n];
|
|
2763
2763
|
if (o)
|
|
2764
2764
|
return o;
|
|
2765
2765
|
console.warn(`
|
|
2766
|
-
Could not find a registered component named "${
|
|
2766
|
+
Could not find a registered component named "${n}".
|
|
2767
2767
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2768
2768
|
}, _o = ({
|
|
2769
2769
|
block: e,
|
|
2770
2770
|
context: t
|
|
2771
2771
|
}) => {
|
|
2772
2772
|
const {
|
|
2773
|
-
repeat:
|
|
2774
|
-
...
|
|
2773
|
+
repeat: r,
|
|
2774
|
+
...n
|
|
2775
2775
|
} = e;
|
|
2776
|
-
if (!(
|
|
2776
|
+
if (!(r != null && r.collection))
|
|
2777
2777
|
return;
|
|
2778
2778
|
const o = an({
|
|
2779
|
-
code:
|
|
2779
|
+
code: r.collection,
|
|
2780
2780
|
localState: t.localState,
|
|
2781
2781
|
rootState: t.rootState,
|
|
2782
2782
|
rootSetState: t.rootSetState,
|
|
@@ -2784,7 +2784,7 @@ const Bo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2784
2784
|
});
|
|
2785
2785
|
if (!Array.isArray(o))
|
|
2786
2786
|
return;
|
|
2787
|
-
const a =
|
|
2787
|
+
const a = r.collection.split(".").pop(), s = r.itemName || (a ? a + "Item" : "item");
|
|
2788
2788
|
return o.map((h, m) => ({
|
|
2789
2789
|
context: {
|
|
2790
2790
|
...t,
|
|
@@ -2796,7 +2796,7 @@ const Bo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2796
2796
|
[`$${s}Index`]: m
|
|
2797
2797
|
}
|
|
2798
2798
|
},
|
|
2799
|
-
block:
|
|
2799
|
+
block: n
|
|
2800
2800
|
}));
|
|
2801
2801
|
};
|
|
2802
2802
|
function Lo(e) {
|
|
@@ -2813,22 +2813,22 @@ function Lo(e) {
|
|
|
2813
2813
|
function $o(e) {
|
|
2814
2814
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2815
2815
|
}
|
|
2816
|
-
const Do = (e) => `on${$o(e)}`, Wo = (e, t) => (
|
|
2816
|
+
const Do = (e) => `on${$o(e)}`, Wo = (e, t) => (r) => an({
|
|
2817
2817
|
code: e,
|
|
2818
2818
|
context: t.context,
|
|
2819
2819
|
localState: t.localState,
|
|
2820
2820
|
rootState: t.rootState,
|
|
2821
2821
|
rootSetState: t.rootSetState,
|
|
2822
|
-
event:
|
|
2822
|
+
event: r,
|
|
2823
2823
|
isExpression: !1
|
|
2824
2824
|
});
|
|
2825
2825
|
function xa(e) {
|
|
2826
|
-
const t = {},
|
|
2827
|
-
for (const
|
|
2828
|
-
if (!
|
|
2826
|
+
const t = {}, r = e.block.actions ?? {};
|
|
2827
|
+
for (const n in r) {
|
|
2828
|
+
if (!r.hasOwnProperty(n))
|
|
2829
2829
|
continue;
|
|
2830
|
-
const o = n
|
|
2831
|
-
let a = Do(
|
|
2830
|
+
const o = r[n];
|
|
2831
|
+
let a = Do(n);
|
|
2832
2832
|
if (e.stripPrefix)
|
|
2833
2833
|
switch (ge) {
|
|
2834
2834
|
case "vue2":
|
|
@@ -2853,15 +2853,15 @@ function Go({
|
|
|
2853
2853
|
block: e,
|
|
2854
2854
|
context: t
|
|
2855
2855
|
}) {
|
|
2856
|
-
var
|
|
2857
|
-
const
|
|
2856
|
+
var n;
|
|
2857
|
+
const r = {
|
|
2858
2858
|
...Ko(e),
|
|
2859
2859
|
...e.properties,
|
|
2860
2860
|
"builder-id": e.id,
|
|
2861
2861
|
style: e.style ? Xo(e.style) : void 0,
|
|
2862
|
-
class: [e.id, "builder-block", e.class, (
|
|
2862
|
+
class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
2863
2863
|
};
|
|
2864
|
-
return Ho(
|
|
2864
|
+
return Ho(r);
|
|
2865
2865
|
}
|
|
2866
2866
|
function Xo(e) {
|
|
2867
2867
|
switch (ge) {
|
|
@@ -2880,15 +2880,15 @@ function Xo(e) {
|
|
|
2880
2880
|
const zo = ({
|
|
2881
2881
|
componentOptions: e,
|
|
2882
2882
|
builderBlock: t,
|
|
2883
|
-
context:
|
|
2884
|
-
componentRef:
|
|
2883
|
+
context: r,
|
|
2884
|
+
componentRef: n,
|
|
2885
2885
|
includeBlockProps: o,
|
|
2886
2886
|
isInteractive: a,
|
|
2887
2887
|
contextValue: s
|
|
2888
2888
|
}) => a ? {
|
|
2889
|
-
Wrapper:
|
|
2889
|
+
Wrapper: n,
|
|
2890
2890
|
block: t,
|
|
2891
|
-
context:
|
|
2891
|
+
context: r,
|
|
2892
2892
|
wrapperProps: e
|
|
2893
2893
|
} : {
|
|
2894
2894
|
...e,
|
|
@@ -2904,7 +2904,7 @@ const zo = ({
|
|
|
2904
2904
|
} : {}
|
|
2905
2905
|
};
|
|
2906
2906
|
function qn(e) {
|
|
2907
|
-
var
|
|
2907
|
+
var r, n;
|
|
2908
2908
|
const t = e.isInteractive ? Qr : e.componentRef;
|
|
2909
2909
|
return /* @__PURE__ */ I(_, { children: e.componentRef ? /* @__PURE__ */ I(_, { children: /* @__PURE__ */ ce(
|
|
2910
2910
|
t,
|
|
@@ -2919,7 +2919,7 @@ function qn(e) {
|
|
|
2919
2919
|
contextValue: e.context
|
|
2920
2920
|
}),
|
|
2921
2921
|
children: [
|
|
2922
|
-
(
|
|
2922
|
+
(r = e.blockChildren) == null ? void 0 : r.map((o) => /* @__PURE__ */ I(
|
|
2923
2923
|
pt,
|
|
2924
2924
|
{
|
|
2925
2925
|
block: o,
|
|
@@ -2928,7 +2928,7 @@ function qn(e) {
|
|
|
2928
2928
|
},
|
|
2929
2929
|
"block-" + o.id
|
|
2930
2930
|
)),
|
|
2931
|
-
(
|
|
2931
|
+
(n = e.blockChildren) == null ? void 0 : n.map((o) => /* @__PURE__ */ I(
|
|
2932
2932
|
sn,
|
|
2933
2933
|
{
|
|
2934
2934
|
block: o,
|
|
@@ -2948,13 +2948,13 @@ function pt(e) {
|
|
|
2948
2948
|
context: e.context,
|
|
2949
2949
|
registeredComponents: e.registeredComponents
|
|
2950
2950
|
});
|
|
2951
|
-
},
|
|
2951
|
+
}, r = function() {
|
|
2952
2952
|
return _o({
|
|
2953
2953
|
block: e.block,
|
|
2954
2954
|
context: e.context
|
|
2955
2955
|
});
|
|
2956
|
-
},
|
|
2957
|
-
return
|
|
2956
|
+
}, n = function() {
|
|
2957
|
+
return r() ? e.block : st({
|
|
2958
2958
|
block: e.block,
|
|
2959
2959
|
localState: e.context.localState,
|
|
2960
2960
|
rootState: e.context.rootState,
|
|
@@ -2965,17 +2965,17 @@ function pt(e) {
|
|
|
2965
2965
|
}, o = function() {
|
|
2966
2966
|
return e.block.tagName || "div";
|
|
2967
2967
|
}, a = function() {
|
|
2968
|
-
return "hide" in
|
|
2968
|
+
return "hide" in n() ? !n().hide : "show" in n() ? n().show : !0;
|
|
2969
2969
|
}, s = function() {
|
|
2970
2970
|
var v;
|
|
2971
|
-
return !((v = t()) != null && v.component) && !
|
|
2971
|
+
return !((v = t()) != null && v.component) && !r() ? n().children ?? [] : [];
|
|
2972
2972
|
}, f = function() {
|
|
2973
2973
|
var S, v, N, U, x;
|
|
2974
2974
|
return {
|
|
2975
|
-
blockChildren:
|
|
2975
|
+
blockChildren: n().children ?? [],
|
|
2976
2976
|
componentRef: (S = t()) == null ? void 0 : S.component,
|
|
2977
2977
|
componentOptions: {
|
|
2978
|
-
...Uo(
|
|
2978
|
+
...Uo(n()),
|
|
2979
2979
|
builderContext: e.context,
|
|
2980
2980
|
...((v = t()) == null ? void 0 : v.name) === "Symbol" || ((N = t()) == null ? void 0 : N.name) === "Columns" ? {
|
|
2981
2981
|
builderComponents: e.registeredComponents
|
|
@@ -2983,7 +2983,7 @@ function pt(e) {
|
|
|
2983
2983
|
},
|
|
2984
2984
|
context: h,
|
|
2985
2985
|
registeredComponents: e.registeredComponents,
|
|
2986
|
-
builderBlock:
|
|
2986
|
+
builderBlock: n(),
|
|
2987
2987
|
includeBlockProps: ((U = t()) == null ? void 0 : U.noWrap) === !0,
|
|
2988
2988
|
isInteractive: !((x = t()) != null && x.isRSC)
|
|
2989
2989
|
};
|
|
@@ -2993,12 +2993,12 @@ function pt(e) {
|
|
|
2993
2993
|
Wn,
|
|
2994
2994
|
{
|
|
2995
2995
|
Wrapper: o(),
|
|
2996
|
-
block:
|
|
2996
|
+
block: n(),
|
|
2997
2997
|
context: e.context,
|
|
2998
2998
|
hasChildren: !1
|
|
2999
2999
|
}
|
|
3000
3000
|
) }) : null,
|
|
3001
|
-
!_t(o()) &&
|
|
3001
|
+
!_t(o()) && r() ? /* @__PURE__ */ I(_, { children: (g = r()) == null ? void 0 : g.map((E, S) => /* @__PURE__ */ I(
|
|
3002
3002
|
Lo,
|
|
3003
3003
|
{
|
|
3004
3004
|
repeatContext: E.context,
|
|
@@ -3007,11 +3007,11 @@ function pt(e) {
|
|
|
3007
3007
|
},
|
|
3008
3008
|
S
|
|
3009
3009
|
)) }) : null,
|
|
3010
|
-
!_t(o()) && !
|
|
3010
|
+
!_t(o()) && !r() ? /* @__PURE__ */ I(_, { children: /* @__PURE__ */ ce(
|
|
3011
3011
|
Wn,
|
|
3012
3012
|
{
|
|
3013
3013
|
Wrapper: o(),
|
|
3014
|
-
block:
|
|
3014
|
+
block: n(),
|
|
3015
3015
|
context: e.context,
|
|
3016
3016
|
hasChildren: !0,
|
|
3017
3017
|
children: [
|
|
@@ -3039,7 +3039,7 @@ function pt(e) {
|
|
|
3039
3039
|
] }) }) : null });
|
|
3040
3040
|
}
|
|
3041
3041
|
function ln(e) {
|
|
3042
|
-
var t,
|
|
3042
|
+
var t, r;
|
|
3043
3043
|
return /* @__PURE__ */ ce(
|
|
3044
3044
|
eo,
|
|
3045
3045
|
{
|
|
@@ -3048,22 +3048,22 @@ function ln(e) {
|
|
|
3048
3048
|
path: e.path,
|
|
3049
3049
|
styleProp: e.styleProp,
|
|
3050
3050
|
children: [
|
|
3051
|
-
e.blocks ? /* @__PURE__ */ I(_, { children: (t = e.blocks) == null ? void 0 : t.map((
|
|
3051
|
+
e.blocks ? /* @__PURE__ */ I(_, { children: (t = e.blocks) == null ? void 0 : t.map((n) => /* @__PURE__ */ I(
|
|
3052
3052
|
pt,
|
|
3053
3053
|
{
|
|
3054
|
-
block:
|
|
3054
|
+
block: n,
|
|
3055
3055
|
context: e.context,
|
|
3056
3056
|
registeredComponents: e.registeredComponents
|
|
3057
3057
|
},
|
|
3058
|
-
"render-block-" +
|
|
3058
|
+
"render-block-" + n.id
|
|
3059
3059
|
)) }) : null,
|
|
3060
|
-
e.blocks ? /* @__PURE__ */ I(_, { children: (
|
|
3060
|
+
e.blocks ? /* @__PURE__ */ I(_, { children: (r = e.blocks) == null ? void 0 : r.map((n) => /* @__PURE__ */ I(
|
|
3061
3061
|
sn,
|
|
3062
3062
|
{
|
|
3063
|
-
block:
|
|
3063
|
+
block: n,
|
|
3064
3064
|
context: e.context
|
|
3065
3065
|
},
|
|
3066
|
-
"block-style-" +
|
|
3066
|
+
"block-style-" + n.id
|
|
3067
3067
|
)) }) : null
|
|
3068
3068
|
]
|
|
3069
3069
|
}
|
|
@@ -3071,22 +3071,22 @@ function ln(e) {
|
|
|
3071
3071
|
}
|
|
3072
3072
|
function Jo(e) {
|
|
3073
3073
|
var E;
|
|
3074
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20,
|
|
3074
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, r = e.columns || [], n = e.stackColumnsAt || "tablet", o = function(v) {
|
|
3075
3075
|
var N;
|
|
3076
|
-
return ((N =
|
|
3076
|
+
return ((N = r[v]) == null ? void 0 : N.width) || 100 / r.length;
|
|
3077
3077
|
}, a = function(v) {
|
|
3078
|
-
const N = t * (
|
|
3078
|
+
const N = t * (r.length - 1) / r.length;
|
|
3079
3079
|
return `calc(${o(v)}% - ${N}px)`;
|
|
3080
3080
|
}, s = function({
|
|
3081
3081
|
stackedStyle: v,
|
|
3082
3082
|
desktopStyle: N
|
|
3083
3083
|
}) {
|
|
3084
|
-
return
|
|
3084
|
+
return n === "tablet" ? v : N;
|
|
3085
3085
|
}, f = function({
|
|
3086
3086
|
stackedStyle: v,
|
|
3087
3087
|
desktopStyle: N
|
|
3088
3088
|
}) {
|
|
3089
|
-
return
|
|
3089
|
+
return n === "never" ? N : v;
|
|
3090
3090
|
}, h = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
|
|
3091
3091
|
return {
|
|
3092
3092
|
"--flex-dir": h,
|
|
@@ -3194,19 +3194,19 @@ function Jo(e) {
|
|
|
3194
3194
|
function Zn(e) {
|
|
3195
3195
|
return e.replace(/http(s)?:/, "");
|
|
3196
3196
|
}
|
|
3197
|
-
function Yo(e = "", t,
|
|
3198
|
-
const
|
|
3199
|
-
return e.match(
|
|
3197
|
+
function Yo(e = "", t, r) {
|
|
3198
|
+
const n = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3199
|
+
return e.match(n) ? e.replace(n, "$1" + t + "=" + encodeURIComponent(r) + "$2") : e + o + t + "=" + encodeURIComponent(r);
|
|
3200
3200
|
}
|
|
3201
3201
|
function qo(e, t) {
|
|
3202
3202
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3203
3203
|
return e;
|
|
3204
3204
|
if (t === "master")
|
|
3205
3205
|
return Zn(e);
|
|
3206
|
-
const
|
|
3207
|
-
if (
|
|
3208
|
-
const
|
|
3209
|
-
return Zn(`${
|
|
3206
|
+
const r = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3207
|
+
if (r) {
|
|
3208
|
+
const n = e.split(r[0]), o = r[3], a = t.match("x") ? t : `${t}x`;
|
|
3209
|
+
return Zn(`${n[0]}_${a}${o}`);
|
|
3210
3210
|
}
|
|
3211
3211
|
return null;
|
|
3212
3212
|
}
|
|
@@ -3215,11 +3215,11 @@ function wa(e) {
|
|
|
3215
3215
|
return e;
|
|
3216
3216
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3217
3217
|
if (e.match(/builder\.io/)) {
|
|
3218
|
-
let
|
|
3219
|
-
const
|
|
3220
|
-
return isNaN(
|
|
3218
|
+
let r = e;
|
|
3219
|
+
const n = Number(e.split("?width=")[1]);
|
|
3220
|
+
return isNaN(n) || (r = `${r} ${n}w`), t.filter((o) => o !== n).map((o) => `${Yo(e, "width", o)} ${o}w`).concat([r]).join(", ");
|
|
3221
3221
|
}
|
|
3222
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((
|
|
3222
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [qo(e, `${r}x${r}`), r]).filter(([r]) => !!r).map(([r, n]) => `${r} ${n}w`).concat([e]).join(", ") : e;
|
|
3223
3223
|
}
|
|
3224
3224
|
const at = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3225
3225
|
...t,
|
|
@@ -3229,9 +3229,9 @@ const at = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((
|
|
|
3229
3229
|
canTrack: e,
|
|
3230
3230
|
content: t
|
|
3231
3231
|
}) => !(!(at(t).length > 0) || !e || J());
|
|
3232
|
-
function Qo(e, t,
|
|
3232
|
+
function Qo(e, t, r) {
|
|
3233
3233
|
var s;
|
|
3234
|
-
function
|
|
3234
|
+
function n() {
|
|
3235
3235
|
function f(S, v, N) {
|
|
3236
3236
|
let U = "";
|
|
3237
3237
|
if (N) {
|
|
@@ -3263,8 +3263,8 @@ function Qo(e, t, n) {
|
|
|
3263
3263
|
}
|
|
3264
3264
|
return f(m, e), e;
|
|
3265
3265
|
}
|
|
3266
|
-
const o =
|
|
3267
|
-
if (
|
|
3266
|
+
const o = n(), a = (s = document.currentScript) == null ? void 0 : s.previousElementSibling;
|
|
3267
|
+
if (r) {
|
|
3268
3268
|
a.remove();
|
|
3269
3269
|
const f = document.currentScript;
|
|
3270
3270
|
f == null || f.remove();
|
|
@@ -3276,11 +3276,11 @@ function Qo(e, t, n) {
|
|
|
3276
3276
|
a.innerHTML = f;
|
|
3277
3277
|
}
|
|
3278
3278
|
}
|
|
3279
|
-
function ei(e, t,
|
|
3279
|
+
function ei(e, t, r) {
|
|
3280
3280
|
var h;
|
|
3281
3281
|
if (!navigator.cookieEnabled)
|
|
3282
3282
|
return;
|
|
3283
|
-
function
|
|
3283
|
+
function n(m) {
|
|
3284
3284
|
const g = m + "=", y = document.cookie.split(";");
|
|
3285
3285
|
for (let P = 0; P < y.length; P++) {
|
|
3286
3286
|
let E = y[P];
|
|
@@ -3291,13 +3291,13 @@ function ei(e, t, n) {
|
|
|
3291
3291
|
}
|
|
3292
3292
|
return null;
|
|
3293
3293
|
}
|
|
3294
|
-
const o = `builder.tests.${t}`, a =
|
|
3294
|
+
const o = `builder.tests.${t}`, a = n(o), s = (h = document.currentScript) == null ? void 0 : h.parentElement, f = e === t;
|
|
3295
3295
|
if (a === e) {
|
|
3296
3296
|
if (f)
|
|
3297
3297
|
return;
|
|
3298
3298
|
s == null || s.removeAttribute("hidden"), s == null || s.removeAttribute("aria-hidden");
|
|
3299
3299
|
} else {
|
|
3300
|
-
f && (
|
|
3300
|
+
f && (r ? s == null || s.remove() : (s == null || s.setAttribute("hidden", "true"), s == null || s.setAttribute("aria-hidden", "true")));
|
|
3301
3301
|
return;
|
|
3302
3302
|
}
|
|
3303
3303
|
}
|
|
@@ -3519,12 +3519,12 @@ const ti = (e) => e === "react" || e === "reactNative", vr = ti(ge), xr = "build
|
|
|
3519
3519
|
}],
|
|
3520
3520
|
onChange: (e) => {
|
|
3521
3521
|
function t() {
|
|
3522
|
-
|
|
3523
|
-
|
|
3522
|
+
r.forEach((n) => {
|
|
3523
|
+
n.delete("width");
|
|
3524
3524
|
});
|
|
3525
3525
|
}
|
|
3526
|
-
const
|
|
3527
|
-
Array.isArray(
|
|
3526
|
+
const r = e.get("columns");
|
|
3527
|
+
Array.isArray(r) && r.find((o) => o.get("width")) && (r.find((a) => !a.get("width")) || r.reduce((f, h) => f + h.get("width"), 0) !== 100) && t();
|
|
3528
3528
|
}
|
|
3529
3529
|
}, {
|
|
3530
3530
|
name: "space",
|
|
@@ -3572,7 +3572,7 @@ const ti = (e) => e === "react" || e === "reactNative", vr = ti(ge), xr = "build
|
|
|
3572
3572
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
3573
3573
|
onChange: (e) => {
|
|
3574
3574
|
e.delete("srcset"), e.delete("noWebp");
|
|
3575
|
-
function
|
|
3575
|
+
function r(s, f = 6e4) {
|
|
3576
3576
|
return new Promise((h, m) => {
|
|
3577
3577
|
const g = document.createElement("img");
|
|
3578
3578
|
let y = !1;
|
|
@@ -3585,16 +3585,16 @@ const ti = (e) => e === "react" || e === "reactNative", vr = ti(ge), xr = "build
|
|
|
3585
3585
|
}, f);
|
|
3586
3586
|
});
|
|
3587
3587
|
}
|
|
3588
|
-
function
|
|
3588
|
+
function n(s) {
|
|
3589
3589
|
return Math.round(s * 1e3) / 1e3;
|
|
3590
3590
|
}
|
|
3591
3591
|
const o = e.get("image"), a = e.get("aspectRatio");
|
|
3592
3592
|
if (fetch(o).then((s) => s.blob()).then((s) => {
|
|
3593
3593
|
s.type.includes("svg") && e.set("noWebp", !0);
|
|
3594
3594
|
}), o && (!a || a === 0.7041))
|
|
3595
|
-
return
|
|
3595
|
+
return r(o).then((s) => {
|
|
3596
3596
|
const f = e.get("aspectRatio");
|
|
3597
|
-
e.get("image") === o && (!f || f === 0.7041) && s.width && s.height && (e.set("aspectRatio",
|
|
3597
|
+
e.get("image") === o && (!f || f === 0.7041) && s.width && s.height && (e.set("aspectRatio", n(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
|
|
3598
3598
|
});
|
|
3599
3599
|
}
|
|
3600
3600
|
}, {
|
|
@@ -3849,9 +3849,9 @@ const hi = {
|
|
|
3849
3849
|
onChange: (e) => {
|
|
3850
3850
|
const t = e.get("url");
|
|
3851
3851
|
if (t)
|
|
3852
|
-
return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((
|
|
3853
|
-
e.get("url") === t && (
|
|
3854
|
-
}).catch((
|
|
3852
|
+
return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((n) => n.json()).then((n) => {
|
|
3853
|
+
e.get("url") === t && (n.html ? e.set("content", n.html) : e.set("content", "Invalid url, please try another"));
|
|
3854
|
+
}).catch((n) => {
|
|
3855
3855
|
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
3856
3856
|
});
|
|
3857
3857
|
e.delete("content");
|
|
@@ -3942,18 +3942,18 @@ const hi = {
|
|
|
3942
3942
|
...t
|
|
3943
3943
|
}) => ({
|
|
3944
3944
|
...lt(t),
|
|
3945
|
-
inputs: e == null ? void 0 : e.map((
|
|
3946
|
-
...
|
|
3945
|
+
inputs: e == null ? void 0 : e.map((r) => Object.entries(r).reduce((n, [o, a]) => ({
|
|
3946
|
+
...n,
|
|
3947
3947
|
[o]: xi(a)
|
|
3948
3948
|
}), {}))
|
|
3949
3949
|
}), wi = (e) => {
|
|
3950
3950
|
var a;
|
|
3951
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""),
|
|
3951
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], n = e.fileUrl ?? ((a = e == null ? void 0 : e.files) == null ? void 0 : a.regular);
|
|
3952
3952
|
let o = "";
|
|
3953
|
-
if (
|
|
3953
|
+
if (n && t && r && (o += `
|
|
3954
3954
|
@font-face {
|
|
3955
3955
|
font-family: "${t}";
|
|
3956
|
-
src: local("${
|
|
3956
|
+
src: local("${r}"), url('${n}') format('woff2');
|
|
3957
3957
|
font-display: fallback;
|
|
3958
3958
|
font-weight: 400;
|
|
3959
3959
|
}
|
|
@@ -3962,7 +3962,7 @@ font-weight: 400;
|
|
|
3962
3962
|
if (!(String(Number(s)) === s))
|
|
3963
3963
|
continue;
|
|
3964
3964
|
const h = e.files[s];
|
|
3965
|
-
h && h !==
|
|
3965
|
+
h && h !== n && (o += `
|
|
3966
3966
|
@font-face {
|
|
3967
3967
|
font-family: "${t}";
|
|
3968
3968
|
src: url('${h}') format('woff2');
|
|
@@ -3976,7 +3976,7 @@ font-weight: ${s};
|
|
|
3976
3976
|
customFonts: e
|
|
3977
3977
|
}) => {
|
|
3978
3978
|
var t;
|
|
3979
|
-
return ((t = e == null ? void 0 : e.map((
|
|
3979
|
+
return ((t = e == null ? void 0 : e.map((r) => wi(r))) == null ? void 0 : t.join(" ")) || "";
|
|
3980
3980
|
}, bi = ({
|
|
3981
3981
|
cssCode: e,
|
|
3982
3982
|
contentId: t
|
|
@@ -4009,23 +4009,23 @@ ${Si({
|
|
|
4009
4009
|
const Ci = ({
|
|
4010
4010
|
content: e,
|
|
4011
4011
|
data: t,
|
|
4012
|
-
locale:
|
|
4012
|
+
locale: r
|
|
4013
4013
|
}) => {
|
|
4014
4014
|
var a, s, f;
|
|
4015
|
-
const
|
|
4015
|
+
const n = {};
|
|
4016
4016
|
(s = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || s.forEach((h) => {
|
|
4017
4017
|
var m;
|
|
4018
|
-
h.name && h.defaultValue !== void 0 && ((m = e == null ? void 0 : e.data) != null && m.state) && e.data.state[h.name] === void 0 && (
|
|
4018
|
+
h.name && h.defaultValue !== void 0 && ((m = e == null ? void 0 : e.data) != null && m.state) && e.data.state[h.name] === void 0 && (n[h.name] = h.defaultValue);
|
|
4019
4019
|
});
|
|
4020
4020
|
const o = {
|
|
4021
4021
|
...(f = e == null ? void 0 : e.data) == null ? void 0 : f.state,
|
|
4022
4022
|
...t,
|
|
4023
|
-
...
|
|
4024
|
-
locale:
|
|
4023
|
+
...r ? {
|
|
4024
|
+
locale: r
|
|
4025
4025
|
} : {}
|
|
4026
4026
|
};
|
|
4027
4027
|
return {
|
|
4028
|
-
...
|
|
4028
|
+
...n,
|
|
4029
4029
|
...o
|
|
4030
4030
|
};
|
|
4031
4031
|
}, Ei = ({
|
|
@@ -4058,33 +4058,33 @@ const Ai = Ti(), ji = (e) => {
|
|
|
4058
4058
|
name: e,
|
|
4059
4059
|
canTrack: t
|
|
4060
4060
|
}) => {
|
|
4061
|
-
var
|
|
4061
|
+
var r;
|
|
4062
4062
|
try {
|
|
4063
|
-
return t ? (
|
|
4064
|
-
} catch (
|
|
4065
|
-
q.warn("[COOKIE] GET error: ", (
|
|
4063
|
+
return t ? (r = document.cookie.split("; ").find((n) => n.startsWith(`${e}=`))) == null ? void 0 : r.split("=")[1] : void 0;
|
|
4064
|
+
} catch (n) {
|
|
4065
|
+
q.warn("[COOKIE] GET error: ", (n == null ? void 0 : n.message) || n);
|
|
4066
4066
|
return;
|
|
4067
4067
|
}
|
|
4068
|
-
}, br = async (e) => Sr(e), Oi = (e) => e.map(([t,
|
|
4068
|
+
}, br = async (e) => Sr(e), Oi = (e) => e.map(([t, r]) => r ? `${t}=${r}` : t).filter(fe).join("; "), Ri = [["secure", ""], ["SameSite", "None"]], Pi = ({
|
|
4069
4069
|
name: e,
|
|
4070
4070
|
value: t,
|
|
4071
|
-
expires:
|
|
4071
|
+
expires: r
|
|
4072
4072
|
}) => {
|
|
4073
|
-
const o = (J() ? location.protocol === "https:" : !0) ? Ri : [[]], a =
|
|
4073
|
+
const o = (J() ? location.protocol === "https:" : !0) ? Ri : [[]], a = r ? [["expires", r.toUTCString()]] : [[]], s = [[e, t], ...a, ["path", "/"], ["domain", ji(window.location.hostname)], ...o];
|
|
4074
4074
|
return Oi(s);
|
|
4075
4075
|
}, kr = async ({
|
|
4076
4076
|
name: e,
|
|
4077
4077
|
value: t,
|
|
4078
|
-
expires:
|
|
4079
|
-
canTrack:
|
|
4078
|
+
expires: r,
|
|
4079
|
+
canTrack: n
|
|
4080
4080
|
}) => {
|
|
4081
4081
|
try {
|
|
4082
|
-
if (!
|
|
4082
|
+
if (!n)
|
|
4083
4083
|
return;
|
|
4084
4084
|
const o = Pi({
|
|
4085
4085
|
name: e,
|
|
4086
4086
|
value: t,
|
|
4087
|
-
expires:
|
|
4087
|
+
expires: r
|
|
4088
4088
|
});
|
|
4089
4089
|
document.cookie = o;
|
|
4090
4090
|
} catch (o) {
|
|
@@ -4112,11 +4112,11 @@ const Er = "builderSessionId", Mi = async ({
|
|
|
4112
4112
|
if (fe(t))
|
|
4113
4113
|
return t;
|
|
4114
4114
|
{
|
|
4115
|
-
const
|
|
4115
|
+
const r = Fi();
|
|
4116
4116
|
return Ui({
|
|
4117
|
-
id:
|
|
4117
|
+
id: r,
|
|
4118
4118
|
canTrack: e
|
|
4119
|
-
}),
|
|
4119
|
+
}), r;
|
|
4120
4120
|
}
|
|
4121
4121
|
}, Fi = () => Cr(), Ui = ({
|
|
4122
4122
|
id: e,
|
|
@@ -4129,21 +4129,21 @@ const Er = "builderSessionId", Mi = async ({
|
|
|
4129
4129
|
key: e,
|
|
4130
4130
|
canTrack: t
|
|
4131
4131
|
}) => {
|
|
4132
|
-
var
|
|
4132
|
+
var r;
|
|
4133
4133
|
try {
|
|
4134
|
-
return t ? (
|
|
4135
|
-
} catch (
|
|
4136
|
-
console.debug("[LocalStorage] GET error: ",
|
|
4134
|
+
return t ? (r = Ir()) == null ? void 0 : r.getItem(e) : void 0;
|
|
4135
|
+
} catch (n) {
|
|
4136
|
+
console.debug("[LocalStorage] GET error: ", n);
|
|
4137
4137
|
return;
|
|
4138
4138
|
}
|
|
4139
4139
|
}, Vi = ({
|
|
4140
4140
|
key: e,
|
|
4141
4141
|
canTrack: t,
|
|
4142
|
-
value:
|
|
4142
|
+
value: r
|
|
4143
4143
|
}) => {
|
|
4144
|
-
var
|
|
4144
|
+
var n;
|
|
4145
4145
|
try {
|
|
4146
|
-
t && ((
|
|
4146
|
+
t && ((n = Ir()) == null || n.setItem(e, r));
|
|
4147
4147
|
} catch (o) {
|
|
4148
4148
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4149
4149
|
}
|
|
@@ -4159,11 +4159,11 @@ const Er = "builderSessionId", Mi = async ({
|
|
|
4159
4159
|
if (fe(t))
|
|
4160
4160
|
return t;
|
|
4161
4161
|
{
|
|
4162
|
-
const
|
|
4162
|
+
const r = Li();
|
|
4163
4163
|
return $i({
|
|
4164
|
-
id:
|
|
4164
|
+
id: r,
|
|
4165
4165
|
canTrack: e
|
|
4166
|
-
}),
|
|
4166
|
+
}), r;
|
|
4167
4167
|
}
|
|
4168
4168
|
}, Li = () => Cr(), $i = ({
|
|
4169
4169
|
id: e,
|
|
@@ -4182,18 +4182,18 @@ const Er = "builderSessionId", Mi = async ({
|
|
|
4182
4182
|
};
|
|
4183
4183
|
const t = await Mi({
|
|
4184
4184
|
canTrack: e
|
|
4185
|
-
}),
|
|
4185
|
+
}), r = _i({
|
|
4186
4186
|
canTrack: e
|
|
4187
4187
|
});
|
|
4188
4188
|
return {
|
|
4189
4189
|
sessionId: t,
|
|
4190
|
-
visitorId:
|
|
4190
|
+
visitorId: r
|
|
4191
4191
|
};
|
|
4192
4192
|
}, Wi = async ({
|
|
4193
4193
|
type: e,
|
|
4194
4194
|
canTrack: t,
|
|
4195
|
-
apiKey:
|
|
4196
|
-
metadata:
|
|
4195
|
+
apiKey: r,
|
|
4196
|
+
metadata: n,
|
|
4197
4197
|
...o
|
|
4198
4198
|
}) => ({
|
|
4199
4199
|
type: e,
|
|
@@ -4201,13 +4201,13 @@ const Er = "builderSessionId", Mi = async ({
|
|
|
4201
4201
|
...o,
|
|
4202
4202
|
metadata: {
|
|
4203
4203
|
url: location.href,
|
|
4204
|
-
...
|
|
4204
|
+
...n
|
|
4205
4205
|
},
|
|
4206
4206
|
...await Di({
|
|
4207
4207
|
canTrack: t
|
|
4208
4208
|
}),
|
|
4209
4209
|
userAttributes: ur(),
|
|
4210
|
-
ownerId:
|
|
4210
|
+
ownerId: r
|
|
4211
4211
|
}
|
|
4212
4212
|
});
|
|
4213
4213
|
async function Hi(e) {
|
|
@@ -4232,11 +4232,11 @@ async function Hi(e) {
|
|
|
4232
4232
|
const ka = (e) => Hi({
|
|
4233
4233
|
...e,
|
|
4234
4234
|
canTrack: !0
|
|
4235
|
-
}), Ki = "0.
|
|
4235
|
+
}), Ki = "0.7.0", tr = {};
|
|
4236
4236
|
function Gi(e, t) {
|
|
4237
|
-
let
|
|
4238
|
-
if (
|
|
4239
|
-
const
|
|
4237
|
+
let r = tr[e];
|
|
4238
|
+
if (r || (r = tr[e] = []), r.push(t), J()) {
|
|
4239
|
+
const n = {
|
|
4240
4240
|
type: "builder.register",
|
|
4241
4241
|
data: {
|
|
4242
4242
|
type: e,
|
|
@@ -4244,7 +4244,7 @@ function Gi(e, t) {
|
|
|
4244
4244
|
}
|
|
4245
4245
|
};
|
|
4246
4246
|
try {
|
|
4247
|
-
parent.postMessage(
|
|
4247
|
+
parent.postMessage(n, "*"), parent !== window && window.postMessage(n, "*");
|
|
4248
4248
|
} catch (o) {
|
|
4249
4249
|
console.debug("Could not postmessage", o);
|
|
4250
4250
|
}
|
|
@@ -4275,7 +4275,7 @@ const Ca = () => {
|
|
|
4275
4275
|
};
|
|
4276
4276
|
let nr = !1;
|
|
4277
4277
|
const Ea = (e = {}) => {
|
|
4278
|
-
var t,
|
|
4278
|
+
var t, r;
|
|
4279
4279
|
nr || (nr = !0, J() && ((t = window.parent) == null || t.postMessage({
|
|
4280
4280
|
type: "builder.sdkInfo",
|
|
4281
4281
|
data: {
|
|
@@ -4287,19 +4287,19 @@ const Ea = (e = {}) => {
|
|
|
4287
4287
|
supportsAddBlockScoping: !0,
|
|
4288
4288
|
supportsCustomBreakpoints: !0
|
|
4289
4289
|
}
|
|
4290
|
-
}, "*"), (
|
|
4290
|
+
}, "*"), (r = window.parent) == null || r.postMessage({
|
|
4291
4291
|
type: "builder.updateContent",
|
|
4292
4292
|
data: {
|
|
4293
4293
|
options: e
|
|
4294
4294
|
}
|
|
4295
4295
|
}, "*"), window.addEventListener("message", ({
|
|
4296
|
-
data:
|
|
4296
|
+
data: n
|
|
4297
4297
|
}) => {
|
|
4298
4298
|
var o, a;
|
|
4299
|
-
if (
|
|
4300
|
-
switch (
|
|
4299
|
+
if (n != null && n.type)
|
|
4300
|
+
switch (n.type) {
|
|
4301
4301
|
case "builder.evaluate": {
|
|
4302
|
-
const s =
|
|
4302
|
+
const s = n.data.text, f = n.data.arguments || [], h = n.data.id, m = new Function(s);
|
|
4303
4303
|
let g, y = null;
|
|
4304
4304
|
try {
|
|
4305
4305
|
g = m.apply(null, f);
|
|
@@ -4336,43 +4336,43 @@ const Ea = (e = {}) => {
|
|
|
4336
4336
|
function rr(e) {
|
|
4337
4337
|
return Math.round(e * 1e3) / 1e3;
|
|
4338
4338
|
}
|
|
4339
|
-
const Xi = (e, t,
|
|
4339
|
+
const Xi = (e, t, r = !0) => {
|
|
4340
4340
|
if (!(e instanceof HTMLElement))
|
|
4341
4341
|
return null;
|
|
4342
|
-
let
|
|
4342
|
+
let n = r ? e : e.parentElement;
|
|
4343
4343
|
do {
|
|
4344
|
-
if (!
|
|
4344
|
+
if (!n)
|
|
4345
4345
|
return null;
|
|
4346
|
-
if (t(
|
|
4347
|
-
return
|
|
4348
|
-
} while (
|
|
4346
|
+
if (t(n))
|
|
4347
|
+
return n;
|
|
4348
|
+
} while (n = n.parentElement);
|
|
4349
4349
|
return null;
|
|
4350
4350
|
}, zi = (e) => Xi(e, (t) => {
|
|
4351
|
-
const
|
|
4352
|
-
return (
|
|
4351
|
+
const r = t.getAttribute("builder-id") || t.id;
|
|
4352
|
+
return (r == null ? void 0 : r.indexOf("builder-")) === 0;
|
|
4353
4353
|
}), or = ({
|
|
4354
4354
|
event: e,
|
|
4355
4355
|
target: t
|
|
4356
4356
|
}) => {
|
|
4357
|
-
const
|
|
4357
|
+
const r = t.getBoundingClientRect(), n = e.clientX - r.left, o = e.clientY - r.top, a = rr(n / r.width), s = rr(o / r.height);
|
|
4358
4358
|
return {
|
|
4359
4359
|
x: a,
|
|
4360
4360
|
y: s
|
|
4361
4361
|
};
|
|
4362
4362
|
}, Ia = (e) => {
|
|
4363
|
-
const t = e.target,
|
|
4363
|
+
const t = e.target, r = t && zi(t), n = (r == null ? void 0 : r.getAttribute("builder-id")) || (r == null ? void 0 : r.id);
|
|
4364
4364
|
return {
|
|
4365
|
-
targetBuilderElement:
|
|
4365
|
+
targetBuilderElement: n || void 0,
|
|
4366
4366
|
metadata: {
|
|
4367
4367
|
targetOffset: t ? or({
|
|
4368
4368
|
event: e,
|
|
4369
4369
|
target: t
|
|
4370
4370
|
}) : void 0,
|
|
4371
|
-
builderTargetOffset:
|
|
4371
|
+
builderTargetOffset: r ? or({
|
|
4372
4372
|
event: e,
|
|
4373
|
-
target:
|
|
4373
|
+
target: r
|
|
4374
4374
|
}) : void 0,
|
|
4375
|
-
builderElementIndex:
|
|
4375
|
+
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4376
4376
|
}
|
|
4377
4377
|
};
|
|
4378
4378
|
};
|
|
@@ -4383,7 +4383,8 @@ function Ji() {
|
|
|
4383
4383
|
ttl: 1e3 * 60 * 5
|
|
4384
4384
|
}));
|
|
4385
4385
|
}
|
|
4386
|
-
|
|
4386
|
+
const Ht = (e) => fe(e) ? e : !0;
|
|
4387
|
+
function Kt(e) {
|
|
4387
4388
|
return /* @__PURE__ */ I(
|
|
4388
4389
|
"script",
|
|
4389
4390
|
{
|
|
@@ -4399,7 +4400,7 @@ function ir(e) {
|
|
|
4399
4400
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4400
4401
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4401
4402
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
4402
|
-
}),
|
|
4403
|
+
}), r = [
|
|
4403
4404
|
...Qn(),
|
|
4404
4405
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
4405
4406
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
@@ -4417,7 +4418,7 @@ function ir(e) {
|
|
|
4417
4418
|
}
|
|
4418
4419
|
}),
|
|
4419
4420
|
{}
|
|
4420
|
-
),
|
|
4421
|
+
), n = {
|
|
4421
4422
|
content: Ei({
|
|
4422
4423
|
content: e.content,
|
|
4423
4424
|
data: e.data
|
|
@@ -4463,30 +4464,30 @@ function ir(e) {
|
|
|
4463
4464
|
enrich: e.enrich,
|
|
4464
4465
|
classNameProp: e.classNameProp,
|
|
4465
4466
|
showContent: e.showContent,
|
|
4466
|
-
builderContextSignal:
|
|
4467
|
+
builderContextSignal: n,
|
|
4467
4468
|
children: [
|
|
4468
|
-
e.isSsrAbTest ? /* @__PURE__ */ I(_, { children: /* @__PURE__ */ I(
|
|
4469
|
+
e.isSsrAbTest ? /* @__PURE__ */ I(_, { children: /* @__PURE__ */ I(Kt, { scriptStr: t }) }) : null,
|
|
4469
4470
|
/* @__PURE__ */ I(_, { children: /* @__PURE__ */ I(
|
|
4470
4471
|
ki,
|
|
4471
4472
|
{
|
|
4472
|
-
contentId: (s =
|
|
4473
|
-
cssCode: (h = (f =
|
|
4474
|
-
customFonts: (g = (m =
|
|
4473
|
+
contentId: (s = n.content) == null ? void 0 : s.id,
|
|
4474
|
+
cssCode: (h = (f = n.content) == null ? void 0 : f.data) == null ? void 0 : h.cssCode,
|
|
4475
|
+
customFonts: (g = (m = n.content) == null ? void 0 : m.data) == null ? void 0 : g.customFonts
|
|
4475
4476
|
}
|
|
4476
4477
|
) }),
|
|
4477
4478
|
/* @__PURE__ */ I(
|
|
4478
4479
|
ln,
|
|
4479
4480
|
{
|
|
4480
|
-
blocks: (P = (y =
|
|
4481
|
-
context:
|
|
4482
|
-
registeredComponents:
|
|
4481
|
+
blocks: (P = (y = n.content) == null ? void 0 : y.data) == null ? void 0 : P.blocks,
|
|
4482
|
+
context: n,
|
|
4483
|
+
registeredComponents: r
|
|
4483
4484
|
}
|
|
4484
4485
|
)
|
|
4485
4486
|
]
|
|
4486
4487
|
}
|
|
4487
4488
|
);
|
|
4488
4489
|
}
|
|
4489
|
-
const
|
|
4490
|
+
const Yi = "builder.tests", cn = (e) => `${Yi}.${e}`, qi = ({
|
|
4490
4491
|
contentId: e
|
|
4491
4492
|
}) => br({
|
|
4492
4493
|
name: cn(e),
|
|
@@ -4508,11 +4509,11 @@ const Kt = (e) => fe(e) ? e : !0, Yi = "builder.tests", cn = (e) => `${Yi}.${e}`
|
|
|
4508
4509
|
variations: t
|
|
4509
4510
|
}) => {
|
|
4510
4511
|
var o;
|
|
4511
|
-
let
|
|
4512
|
-
const
|
|
4512
|
+
let r = 0;
|
|
4513
|
+
const n = Math.random();
|
|
4513
4514
|
for (const a in t) {
|
|
4514
4515
|
const s = (o = t[a]) == null ? void 0 : o.testRatio;
|
|
4515
|
-
if (
|
|
4516
|
+
if (r += s, n < r)
|
|
4516
4517
|
return a;
|
|
4517
4518
|
}
|
|
4518
4519
|
return e;
|
|
@@ -4521,22 +4522,22 @@ const Kt = (e) => fe(e) ? e : !0, Yi = "builder.tests", cn = (e) => `${Yi}.${e}`
|
|
|
4521
4522
|
return Qi({
|
|
4522
4523
|
contentId: e.id,
|
|
4523
4524
|
value: t
|
|
4524
|
-
}).catch((
|
|
4525
|
-
q.error("could not store A/B test variation: ",
|
|
4525
|
+
}).catch((r) => {
|
|
4526
|
+
q.error("could not store A/B test variation: ", r);
|
|
4526
4527
|
}), t;
|
|
4527
4528
|
}, Or = ({
|
|
4528
4529
|
item: e,
|
|
4529
4530
|
testGroupId: t
|
|
4530
4531
|
}) => {
|
|
4531
|
-
const
|
|
4532
|
+
const r = e.variations[t];
|
|
4532
4533
|
return t === e.id || // handle edge-case where `testGroupId` points to non-existing variation
|
|
4533
|
-
!
|
|
4534
|
+
!r ? {
|
|
4534
4535
|
testVariationId: e.id,
|
|
4535
4536
|
testVariationName: "Default"
|
|
4536
4537
|
} : {
|
|
4537
|
-
data:
|
|
4538
|
-
testVariationId:
|
|
4539
|
-
testVariationName:
|
|
4538
|
+
data: r.data,
|
|
4539
|
+
testVariationId: r.id,
|
|
4540
|
+
testVariationName: r.name || (r.id === e.id ? "Default" : "")
|
|
4540
4541
|
};
|
|
4541
4542
|
}, ta = ({
|
|
4542
4543
|
item: e,
|
|
@@ -4548,18 +4549,18 @@ const Kt = (e) => fe(e) ? e : !0, Yi = "builder.tests", cn = (e) => `${Yi}.${e}`
|
|
|
4548
4549
|
return;
|
|
4549
4550
|
if (!Ar(e))
|
|
4550
4551
|
return e;
|
|
4551
|
-
const
|
|
4552
|
+
const r = Zi({
|
|
4552
4553
|
contentId: e.id
|
|
4553
4554
|
}) || jr({
|
|
4554
4555
|
variations: e.variations,
|
|
4555
4556
|
id: e.id
|
|
4556
|
-
}),
|
|
4557
|
+
}), n = Or({
|
|
4557
4558
|
item: e,
|
|
4558
|
-
testGroupId:
|
|
4559
|
+
testGroupId: r
|
|
4559
4560
|
});
|
|
4560
4561
|
return {
|
|
4561
4562
|
...e,
|
|
4562
|
-
...
|
|
4563
|
+
...n
|
|
4563
4564
|
};
|
|
4564
4565
|
}, na = async ({
|
|
4565
4566
|
item: e,
|
|
@@ -4567,14 +4568,14 @@ const Kt = (e) => fe(e) ? e : !0, Yi = "builder.tests", cn = (e) => `${Yi}.${e}`
|
|
|
4567
4568
|
}) => {
|
|
4568
4569
|
if (!t || !Ar(e))
|
|
4569
4570
|
return e;
|
|
4570
|
-
const
|
|
4571
|
+
const n = await qi({
|
|
4571
4572
|
contentId: e.id
|
|
4572
4573
|
}) || jr({
|
|
4573
4574
|
variations: e.variations,
|
|
4574
4575
|
id: e.id
|
|
4575
4576
|
}), o = Or({
|
|
4576
4577
|
item: e,
|
|
4577
|
-
testGroupId:
|
|
4578
|
+
testGroupId: n
|
|
4578
4579
|
});
|
|
4579
4580
|
return {
|
|
4580
4581
|
...e,
|
|
@@ -4584,9 +4585,9 @@ const Kt = (e) => fe(e) ? e : !0, Yi = "builder.tests", cn = (e) => `${Yi}.${e}`
|
|
|
4584
4585
|
function Rr(e) {
|
|
4585
4586
|
var a, s, f;
|
|
4586
4587
|
const t = Zo({
|
|
4587
|
-
canTrack:
|
|
4588
|
+
canTrack: Ht(e.canTrack),
|
|
4588
4589
|
content: e.content
|
|
4589
|
-
}),
|
|
4590
|
+
}), r = function() {
|
|
4590
4591
|
var m;
|
|
4591
4592
|
return ri(
|
|
4592
4593
|
at(e.content).map((g) => ({
|
|
@@ -4595,7 +4596,7 @@ function Rr(e) {
|
|
|
4595
4596
|
})),
|
|
4596
4597
|
((m = e.content) == null ? void 0 : m.id) || ""
|
|
4597
4598
|
);
|
|
4598
|
-
},
|
|
4599
|
+
}, n = function() {
|
|
4599
4600
|
return at(e.content).map((m) => `.variant-${m.testVariationId} { display: none; } `).join("");
|
|
4600
4601
|
}, o = function() {
|
|
4601
4602
|
var m;
|
|
@@ -4604,20 +4605,20 @@ function Rr(e) {
|
|
|
4604
4605
|
testVariationId: (m = e.content) == null ? void 0 : m.id
|
|
4605
4606
|
} : ta({
|
|
4606
4607
|
item: e.content,
|
|
4607
|
-
canTrack:
|
|
4608
|
+
canTrack: Ht(e.canTrack)
|
|
4608
4609
|
});
|
|
4609
4610
|
};
|
|
4610
4611
|
return /* @__PURE__ */ ce(_, { children: [
|
|
4611
|
-
!e.__isNestedRender && ge !== "reactNative" ? /* @__PURE__ */ I(_, { children: /* @__PURE__ */ I(
|
|
4612
|
+
!e.__isNestedRender && ge !== "reactNative" ? /* @__PURE__ */ I(_, { children: /* @__PURE__ */ I(Kt, { scriptStr: ni() }) }) : null,
|
|
4612
4613
|
t ? /* @__PURE__ */ ce(_, { children: [
|
|
4613
4614
|
/* @__PURE__ */ I(
|
|
4614
4615
|
ft,
|
|
4615
4616
|
{
|
|
4616
4617
|
id: `variants-styles-${(a = e.content) == null ? void 0 : a.id}`,
|
|
4617
|
-
styles:
|
|
4618
|
+
styles: n()
|
|
4618
4619
|
}
|
|
4619
4620
|
),
|
|
4620
|
-
/* @__PURE__ */ I(
|
|
4621
|
+
/* @__PURE__ */ I(Kt, { scriptStr: r() }),
|
|
4621
4622
|
(s = at(e.content)) == null ? void 0 : s.map((h) => /* @__PURE__ */ I(
|
|
4622
4623
|
ir,
|
|
4623
4624
|
{
|
|
@@ -4675,12 +4676,12 @@ const ra = async ({
|
|
|
4675
4676
|
id: t.entry
|
|
4676
4677
|
}
|
|
4677
4678
|
}
|
|
4678
|
-
}).catch((
|
|
4679
|
-
q.error("Could not fetch symbol content: ",
|
|
4679
|
+
}).catch((r) => {
|
|
4680
|
+
q.error("Could not fetch symbol content: ", r);
|
|
4680
4681
|
});
|
|
4681
4682
|
};
|
|
4682
4683
|
async function oa(e) {
|
|
4683
|
-
var
|
|
4684
|
+
var n, o, a, s;
|
|
4684
4685
|
const t = function() {
|
|
4685
4686
|
var h, m;
|
|
4686
4687
|
return [
|
|
@@ -4689,7 +4690,7 @@ async function oa(e) {
|
|
|
4689
4690
|
(h = e.symbol) != null && h.inline ? "builder-inline-symbol" : void 0,
|
|
4690
4691
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4691
4692
|
].filter(Boolean).join(" ");
|
|
4692
|
-
},
|
|
4693
|
+
}, r = ((n = e.symbol) == null ? void 0 : n.content) || await ra({
|
|
4693
4694
|
symbol: e.symbol,
|
|
4694
4695
|
builderContextValue: e.builderContext
|
|
4695
4696
|
});
|
|
@@ -4704,10 +4705,10 @@ async function oa(e) {
|
|
|
4704
4705
|
data: {
|
|
4705
4706
|
...(o = e.symbol) == null ? void 0 : o.data,
|
|
4706
4707
|
...e.builderContext.localState,
|
|
4707
|
-
...(a =
|
|
4708
|
+
...(a = r == null ? void 0 : r.data) == null ? void 0 : a.state
|
|
4708
4709
|
},
|
|
4709
4710
|
model: (s = e.symbol) == null ? void 0 : s.model,
|
|
4710
|
-
content:
|
|
4711
|
+
content: r
|
|
4711
4712
|
}
|
|
4712
4713
|
) });
|
|
4713
4714
|
}
|
|
@@ -4727,52 +4728,54 @@ function Oa(e) {
|
|
|
4727
4728
|
}
|
|
4728
4729
|
}
|
|
4729
4730
|
const ia = (e) => {
|
|
4730
|
-
const t = e.get("preview"),
|
|
4731
|
-
return
|
|
4731
|
+
const t = e.get("preview"), r = e.get("overrides." + t);
|
|
4732
|
+
return r || q.warn("No previewed ID found in search params."), r;
|
|
4732
4733
|
};
|
|
4733
4734
|
function aa(e) {
|
|
4734
4735
|
Ji();
|
|
4735
4736
|
const t = ia(e);
|
|
4736
4737
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4737
4738
|
}
|
|
4738
|
-
function Gt(e, t = null,
|
|
4739
|
-
return Object.keys(e).reduce((
|
|
4740
|
-
const a = e[o], s = [t, o].filter(Boolean).join(
|
|
4739
|
+
function Gt(e, t = null, r = ".") {
|
|
4740
|
+
return Object.keys(e).reduce((n, o) => {
|
|
4741
|
+
const a = e[o], s = [t, o].filter(Boolean).join(r);
|
|
4741
4742
|
return [typeof a == "object", a !== null, !(Array.isArray(a) && a.length === 0)].every(Boolean) ? {
|
|
4742
|
-
...
|
|
4743
|
-
...Gt(a, s,
|
|
4743
|
+
...n,
|
|
4744
|
+
...Gt(a, s, r)
|
|
4744
4745
|
} : {
|
|
4745
|
-
...
|
|
4746
|
+
...n,
|
|
4746
4747
|
[s]: a
|
|
4747
4748
|
};
|
|
4748
4749
|
}, {});
|
|
4749
4750
|
}
|
|
4750
4751
|
const sr = "builder.", sa = "options.", la = (e) => {
|
|
4751
4752
|
const t = {};
|
|
4752
|
-
return e.forEach((
|
|
4753
|
-
t[
|
|
4753
|
+
return e.forEach((r, n) => {
|
|
4754
|
+
t[n] = r;
|
|
4754
4755
|
}), t;
|
|
4755
4756
|
}, Pr = (e) => {
|
|
4756
4757
|
if (!e)
|
|
4757
4758
|
return {};
|
|
4758
|
-
const t = Nr(e),
|
|
4759
|
-
return Object.keys(t).forEach((
|
|
4760
|
-
if (
|
|
4761
|
-
const o =
|
|
4762
|
-
|
|
4759
|
+
const t = Nr(e), r = {};
|
|
4760
|
+
return Object.keys(t).forEach((n) => {
|
|
4761
|
+
if (n.startsWith(sr)) {
|
|
4762
|
+
const o = n.replace(sr, "").replace(sa, "");
|
|
4763
|
+
r[o] = t[n];
|
|
4763
4764
|
}
|
|
4764
|
-
}),
|
|
4765
|
+
}), r;
|
|
4765
4766
|
}, ca = () => {
|
|
4766
4767
|
if (!J())
|
|
4767
4768
|
return {};
|
|
4768
4769
|
const e = new URLSearchParams(window.location.search);
|
|
4769
4770
|
return Pr(e);
|
|
4770
4771
|
}, Nr = (e) => e instanceof URLSearchParams ? la(e) : e, ua = "v3", un = (e) => {
|
|
4772
|
+
let {
|
|
4773
|
+
noTraverse: t = !1
|
|
4774
|
+
} = e;
|
|
4771
4775
|
const {
|
|
4772
|
-
limit:
|
|
4776
|
+
limit: r = 30,
|
|
4773
4777
|
userAttributes: n,
|
|
4774
|
-
query:
|
|
4775
|
-
noTraverse: o = !1,
|
|
4778
|
+
query: o,
|
|
4776
4779
|
model: a,
|
|
4777
4780
|
apiKey: s,
|
|
4778
4781
|
includeRefs: f = !0,
|
|
@@ -4784,15 +4787,16 @@ const sr = "builder.", sa = "options.", la = (e) => {
|
|
|
4784
4787
|
throw new Error("Missing API key");
|
|
4785
4788
|
if (!["v2", "v3"].includes(g))
|
|
4786
4789
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${g}'`);
|
|
4787
|
-
|
|
4790
|
+
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
4791
|
+
const y = new URL(`https://cdn.builder.io/api/${g}/content/${a}?apiKey=${s}&limit=${r}&noTraverse=${t}&includeRefs=${f}${m ? `&locale=${m}` : ""}${h ? `&enrich=${h}` : ""}`), P = {
|
|
4788
4792
|
...ca(),
|
|
4789
4793
|
...Nr(e.options || {})
|
|
4790
4794
|
}, E = Gt(P);
|
|
4791
4795
|
for (const S in E)
|
|
4792
4796
|
y.searchParams.set(S, String(E[S]));
|
|
4793
|
-
if (n && y.searchParams.set("userAttributes", JSON.stringify(n)),
|
|
4797
|
+
if (n && y.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
4794
4798
|
const S = Gt({
|
|
4795
|
-
query:
|
|
4799
|
+
query: o
|
|
4796
4800
|
});
|
|
4797
4801
|
for (const v in S)
|
|
4798
4802
|
y.searchParams.set(v, JSON.stringify(S[v]));
|
|
@@ -4809,24 +4813,24 @@ async function fn(e) {
|
|
|
4809
4813
|
const Ra = fn, pa = async (e) => {
|
|
4810
4814
|
const t = un(e);
|
|
4811
4815
|
return await (await Ai(t.href)).json();
|
|
4812
|
-
}, ha = async (e, t,
|
|
4813
|
-
const
|
|
4814
|
-
if (
|
|
4816
|
+
}, ha = async (e, t, r = un(e)) => {
|
|
4817
|
+
const n = Ht(e.canTrack);
|
|
4818
|
+
if (r.search.includes("preview=")) {
|
|
4815
4819
|
const a = [];
|
|
4816
4820
|
for (const s of t.results) {
|
|
4817
|
-
const f = aa(
|
|
4821
|
+
const f = aa(r.searchParams);
|
|
4818
4822
|
a.push(f || s);
|
|
4819
4823
|
}
|
|
4820
4824
|
t.results = a;
|
|
4821
4825
|
}
|
|
4822
|
-
if (!
|
|
4826
|
+
if (!n || !(J() || ge === "reactNative"))
|
|
4823
4827
|
return t;
|
|
4824
4828
|
try {
|
|
4825
4829
|
const a = [];
|
|
4826
4830
|
for (const s of t.results)
|
|
4827
4831
|
a.push(await na({
|
|
4828
4832
|
item: s,
|
|
4829
|
-
canTrack:
|
|
4833
|
+
canTrack: n
|
|
4830
4834
|
}));
|
|
4831
4835
|
t.results = a;
|
|
4832
4836
|
} catch (a) {
|
|
@@ -4836,10 +4840,10 @@ const Ra = fn, pa = async (e) => {
|
|
|
4836
4840
|
};
|
|
4837
4841
|
async function Mr(e) {
|
|
4838
4842
|
try {
|
|
4839
|
-
const t = un(e),
|
|
4840
|
-
return fa(
|
|
4843
|
+
const t = un(e), r = await pa(e);
|
|
4844
|
+
return fa(r) ? ha(e, r) : (q.error("Error fetching data. ", {
|
|
4841
4845
|
url: t,
|
|
4842
|
-
content:
|
|
4846
|
+
content: r,
|
|
4843
4847
|
options: e
|
|
4844
4848
|
}), null);
|
|
4845
4849
|
} catch (t) {
|
|
@@ -4847,8 +4851,8 @@ async function Mr(e) {
|
|
|
4847
4851
|
}
|
|
4848
4852
|
}
|
|
4849
4853
|
const Pa = Mr, Na = async (e) => {
|
|
4850
|
-
var
|
|
4851
|
-
const t = e.path || ((
|
|
4854
|
+
var n, o, a;
|
|
4855
|
+
const t = e.path || ((n = e.url) == null ? void 0 : n.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), r = {
|
|
4852
4856
|
...e,
|
|
4853
4857
|
apiKey: e.apiKey,
|
|
4854
4858
|
model: e.model || "page",
|
|
@@ -4861,9 +4865,9 @@ const Pa = Mr, Na = async (e) => {
|
|
|
4861
4865
|
options: Pr(e.searchParams || ((a = e.url) == null ? void 0 : a.searchParams) || e.options)
|
|
4862
4866
|
};
|
|
4863
4867
|
return {
|
|
4864
|
-
apiKey:
|
|
4865
|
-
model:
|
|
4866
|
-
content: await fn(
|
|
4868
|
+
apiKey: r.apiKey,
|
|
4869
|
+
model: r.model,
|
|
4870
|
+
content: await fn(r)
|
|
4867
4871
|
};
|
|
4868
4872
|
};
|
|
4869
4873
|
export {
|
|
@@ -4879,9 +4883,9 @@ export {
|
|
|
4879
4883
|
xa as a,
|
|
4880
4884
|
wa as b,
|
|
4881
4885
|
Sa as c,
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4886
|
+
J as d,
|
|
4887
|
+
ba as e,
|
|
4888
|
+
Ht as f,
|
|
4885
4889
|
Go as g,
|
|
4886
4890
|
an as h,
|
|
4887
4891
|
Xt as i,
|