@builder.io/sdk-react-nextjs 0.12.1 → 0.12.3
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-64b6ec10.cjs +21 -0
- package/lib/browser/USE_CLIENT_BUNDLE-e89d3175.js +713 -0
- package/lib/{edge/USE_SERVER_BUNDLE-231b55dd.js → browser/USE_SERVER_BUNDLE-d6bec4ec.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-24df6623.cjs → browser/USE_SERVER_BUNDLE-f34c0814.cjs} +1 -1
- package/lib/browser/bundle-50ff23eb.cjs +172 -0
- package/lib/browser/{bundle-7e2a44d9.js → bundle-f3e8cd29.js} +576 -573
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +17 -17
- package/lib/edge/USE_CLIENT_BUNDLE-2aed408a.cjs +21 -0
- package/lib/edge/USE_CLIENT_BUNDLE-a3258a60.js +713 -0
- package/lib/{node/USE_SERVER_BUNDLE-33c309df.js → edge/USE_SERVER_BUNDLE-4e9af8f5.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-93366161.cjs → edge/USE_SERVER_BUNDLE-e79e6b55.cjs} +1 -1
- package/lib/edge/{bundle-44392f6d.js → bundle-cb191300.js} +811 -808
- package/lib/edge/{bundle-6d55a6a7.cjs → bundle-d4f509a3.cjs} +37 -33
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +17 -17
- package/lib/node/USE_CLIENT_BUNDLE-98a4fbf4.js +713 -0
- package/lib/node/USE_CLIENT_BUNDLE-990b655a.cjs +21 -0
- package/lib/{browser/USE_SERVER_BUNDLE-153f7d4b.js → node/USE_SERVER_BUNDLE-b231d861.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-a0bf6d8f.cjs → node/USE_SERVER_BUNDLE-c86a1fb8.cjs} +1 -1
- package/lib/node/{bundle-217b5738.js → bundle-11daeaca.js} +166 -163
- package/lib/node/{bundle-b9af39ec.cjs → bundle-b2d68b60.cjs} +11 -7
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +17 -17
- package/package.json +1 -1
- package/types/cjs/components/block/block.helpers.d.ts +0 -1
- package/types/cjs/components/block/components/block-wrapper.d.ts +2 -6
- package/types/cjs/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/cjs/components/dynamic-renderer/dynamic-renderer.d.ts +8 -0
- package/types/cjs/components/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/is-from-trusted-host.d.ts +3 -0
- package/types/cjs/scripts/init-editing.d.ts +1 -0
- package/types/esm/components/block/block.helpers.d.ts +0 -1
- package/types/esm/components/block/components/block-wrapper.d.ts +2 -6
- package/types/esm/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/esm/components/dynamic-renderer/dynamic-renderer.d.ts +8 -0
- package/types/esm/components/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/is-from-trusted-host.d.ts +3 -0
- package/types/esm/scripts/init-editing.d.ts +1 -0
- package/lib/browser/USE_CLIENT_BUNDLE-5457b97e.cjs +0 -23
- package/lib/browser/USE_CLIENT_BUNDLE-ac9ba054.js +0 -732
- package/lib/browser/bundle-6435b7fb.cjs +0 -168
- package/lib/edge/USE_CLIENT_BUNDLE-3049fd56.js +0 -732
- package/lib/edge/USE_CLIENT_BUNDLE-8922846d.cjs +0 -23
- package/lib/node/USE_CLIENT_BUNDLE-09122ff1.cjs +0 -23
- package/lib/node/USE_CLIENT_BUNDLE-f4804af3.js +0 -732
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { LRUCache as
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { createElement as
|
|
4
|
-
import { I as
|
|
1
|
+
import { LRUCache as zr } from "lru-cache";
|
|
2
|
+
import { jsx as E, Fragment as L, jsxs as Se } from "react/jsx-runtime";
|
|
3
|
+
import { createElement as qr } from "react";
|
|
4
|
+
import { I as Zr, B as Qr, 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-a3258a60.js";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
function
|
|
6
|
+
function uo(e) {
|
|
7
7
|
var t;
|
|
8
8
|
return {
|
|
9
9
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -23,21 +23,21 @@ const at = "[Builder.io]: ", q = {
|
|
|
23
23
|
function G() {
|
|
24
24
|
return typeof window < "u" && typeof document < "u";
|
|
25
25
|
}
|
|
26
|
-
const
|
|
27
|
-
function
|
|
26
|
+
const ve = "rsc";
|
|
27
|
+
function fo() {
|
|
28
28
|
return G() && window.self !== window.top;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
return
|
|
30
|
+
function Xt() {
|
|
31
|
+
return fo() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const po = () => {
|
|
34
34
|
if (G()) {
|
|
35
35
|
const e = new URL(location.href);
|
|
36
36
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
37
37
|
} else
|
|
38
38
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
39
|
-
},
|
|
40
|
-
const e =
|
|
39
|
+
}, ho = () => typeof navigator == "object" && navigator.userAgent || "", ar = () => {
|
|
40
|
+
const e = ho(), t = {
|
|
41
41
|
Android() {
|
|
42
42
|
return e.match(/Android/i);
|
|
43
43
|
},
|
|
@@ -54,15 +54,15 @@ const ho = () => {
|
|
|
54
54
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
55
55
|
},
|
|
56
56
|
any() {
|
|
57
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
57
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || ve === "reactNative";
|
|
58
58
|
}
|
|
59
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
59
|
+
}, n = e.match(/Tablet|iPad/i), r = po();
|
|
60
60
|
return {
|
|
61
61
|
urlPath: r == null ? void 0 : r.pathname,
|
|
62
62
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
63
63
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
64
64
|
};
|
|
65
|
-
},
|
|
65
|
+
}, sr = ({
|
|
66
66
|
builder: e,
|
|
67
67
|
context: t,
|
|
68
68
|
event: n,
|
|
@@ -74,14 +74,14 @@ const ho = () => {
|
|
|
74
74
|
builder: e,
|
|
75
75
|
context: t,
|
|
76
76
|
event: n
|
|
77
|
-
}),
|
|
78
|
-
isEditing:
|
|
77
|
+
}), mo = () => ({
|
|
78
|
+
isEditing: Xt(),
|
|
79
79
|
isBrowser: G(),
|
|
80
80
|
isServer: !G(),
|
|
81
|
-
getUserAttributes: () =>
|
|
82
|
-
}),
|
|
81
|
+
getUserAttributes: () => ar()
|
|
82
|
+
}), go = (e, {
|
|
83
83
|
isExpression: t = !0
|
|
84
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
84
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, yo = ({
|
|
85
85
|
code: e,
|
|
86
86
|
builder: t,
|
|
87
87
|
context: n,
|
|
@@ -90,15 +90,15 @@ const ho = () => {
|
|
|
90
90
|
rootSetState: a,
|
|
91
91
|
rootState: s
|
|
92
92
|
}) => {
|
|
93
|
-
const u =
|
|
93
|
+
const u = sr({
|
|
94
94
|
builder: t,
|
|
95
95
|
context: n,
|
|
96
96
|
event: r,
|
|
97
|
-
state:
|
|
97
|
+
state: vo(s, o, a)
|
|
98
98
|
});
|
|
99
99
|
return new Function(...u.map(([d]) => d), e)(...u.map(([, d]) => d));
|
|
100
100
|
};
|
|
101
|
-
function
|
|
101
|
+
function vo(e, t, n) {
|
|
102
102
|
if (e === t)
|
|
103
103
|
throw new Error("rootState === localState");
|
|
104
104
|
return new Proxy(e, {
|
|
@@ -110,25 +110,25 @@ function bo(e, t, n) {
|
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
-
const
|
|
113
|
+
const lr = (e, t, n) => {
|
|
114
114
|
if (Object(e) !== e)
|
|
115
115
|
return e;
|
|
116
116
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
117
117
|
return r.slice(0, -1).reduce((o, a, s) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
118
118
|
};
|
|
119
|
-
var N,
|
|
119
|
+
var N, bo = function(e) {
|
|
120
120
|
function t(i) {
|
|
121
|
-
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i &&
|
|
121
|
+
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Yr.test(String.fromCharCode(i));
|
|
122
122
|
}
|
|
123
123
|
function n(i) {
|
|
124
|
-
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i &&
|
|
124
|
+
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Dn.test(String.fromCharCode(i));
|
|
125
125
|
}
|
|
126
126
|
function r(i, l) {
|
|
127
127
|
for (var c = m, p = 1, T = 0; ; ) {
|
|
128
128
|
it.lastIndex = T;
|
|
129
|
-
var
|
|
130
|
-
if (
|
|
131
|
-
++p, T =
|
|
129
|
+
var D = it.exec(c);
|
|
130
|
+
if (D && D.index < i)
|
|
131
|
+
++p, T = D.index + D[0].length;
|
|
132
132
|
else
|
|
133
133
|
break;
|
|
134
134
|
}
|
|
@@ -181,16 +181,16 @@ var N, xo = function(e) {
|
|
|
181
181
|
break;
|
|
182
182
|
else if (i === 160)
|
|
183
183
|
++f;
|
|
184
|
-
else if (5760 <= i &&
|
|
184
|
+
else if (5760 <= i && Xr.test(String.fromCharCode(i)))
|
|
185
185
|
++f;
|
|
186
186
|
else
|
|
187
187
|
break;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function S(i) {
|
|
191
191
|
switch (i) {
|
|
192
192
|
case 46:
|
|
193
|
-
i = m.charCodeAt(f + 1), 48 <= i && 57 >= i ?
|
|
193
|
+
i = m.charCodeAt(f + 1), 48 <= i && 57 >= i ? k(!0) : (++f, s(Pn));
|
|
194
194
|
return;
|
|
195
195
|
case 40:
|
|
196
196
|
return ++f, s(ie);
|
|
@@ -211,7 +211,7 @@ var N, xo = function(e) {
|
|
|
211
211
|
case 58:
|
|
212
212
|
return ++f, s(De);
|
|
213
213
|
case 63:
|
|
214
|
-
return ++f, s(
|
|
214
|
+
return ++f, s(Nn);
|
|
215
215
|
case 48:
|
|
216
216
|
if (i = m.charCodeAt(f + 1), i === 120 || i === 88) {
|
|
217
217
|
f += 2, i = j(16), i === null && r(_ + 2, "Expected hexadecimal number"), n(m.charCodeAt(f)) && r(f, "Identifier directly after number"), s(Ve, i);
|
|
@@ -226,7 +226,7 @@ var N, xo = function(e) {
|
|
|
226
226
|
case 55:
|
|
227
227
|
case 56:
|
|
228
228
|
case 57:
|
|
229
|
-
return
|
|
229
|
+
return k(!1);
|
|
230
230
|
case 34:
|
|
231
231
|
case 39:
|
|
232
232
|
f++;
|
|
@@ -290,50 +290,50 @@ var N, xo = function(e) {
|
|
|
290
290
|
}
|
|
291
291
|
return;
|
|
292
292
|
case 47:
|
|
293
|
-
i = m.charCodeAt(f + 1), Ue ? (++f, P()) : i === 61 ?
|
|
293
|
+
i = m.charCodeAt(f + 1), Ue ? (++f, P()) : i === 61 ? b(xe, 2) : b(Bn, 1);
|
|
294
294
|
return;
|
|
295
295
|
case 37:
|
|
296
296
|
case 42:
|
|
297
|
-
m.charCodeAt(f + 1) === 61 ?
|
|
297
|
+
m.charCodeAt(f + 1) === 61 ? b(xe, 2) : b(Hr, 1);
|
|
298
298
|
return;
|
|
299
299
|
case 124:
|
|
300
300
|
case 38:
|
|
301
|
-
l = m.charCodeAt(f + 1), l === i ?
|
|
301
|
+
l = m.charCodeAt(f + 1), l === i ? b(i === 124 ? Fn : Vn, 2) : l === 61 ? b(xe, 2) : b(i === 124 ? Fr : _r, 1);
|
|
302
302
|
return;
|
|
303
303
|
case 94:
|
|
304
|
-
m.charCodeAt(f + 1) === 61 ?
|
|
304
|
+
m.charCodeAt(f + 1) === 61 ? b(xe, 2) : b(Vr, 1);
|
|
305
305
|
return;
|
|
306
306
|
case 43:
|
|
307
307
|
case 45:
|
|
308
|
-
l = m.charCodeAt(f + 1), l === i ? l === 45 && m.charCodeAt(f + 2) === 62 && ot.test(m.slice(me, f)) ? (f += 3, u(), d(),
|
|
308
|
+
l = m.charCodeAt(f + 1), l === i ? l === 45 && m.charCodeAt(f + 2) === 62 && ot.test(m.slice(me, f)) ? (f += 3, u(), d(), C()) : b(Ur, 2) : l === 61 ? b(xe, 2) : b($r, 1);
|
|
309
309
|
return;
|
|
310
310
|
case 60:
|
|
311
311
|
case 62:
|
|
312
|
-
l = m.charCodeAt(f + 1), c = 1, l === i ? (c = i === 62 && m.charCodeAt(f + 2) === 62 ? 3 : 2, m.charCodeAt(f + c) === 61 ?
|
|
312
|
+
l = m.charCodeAt(f + 1), c = 1, l === i ? (c = i === 62 && m.charCodeAt(f + 2) === 62 ? 3 : 2, m.charCodeAt(f + c) === 61 ? b(xe, c + 1) : b(Wr, c)) : l === 33 && i === 60 && m.charCodeAt(f + 2) === 45 && m.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), C()) : (l === 61 && (c = m.charCodeAt(f + 2) === 61 ? 3 : 2), b(Lr, c));
|
|
313
313
|
return;
|
|
314
314
|
case 61:
|
|
315
315
|
case 33:
|
|
316
|
-
m.charCodeAt(f + 1) === 61 ?
|
|
316
|
+
m.charCodeAt(f + 1) === 61 ? b(Dr, m.charCodeAt(f + 2) === 61 ? 3 : 2) : b(i === 61 ? Mn : Un, 1);
|
|
317
317
|
return;
|
|
318
318
|
case 126:
|
|
319
|
-
return
|
|
319
|
+
return b(Un, 1);
|
|
320
320
|
}
|
|
321
321
|
return !1;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function C(i) {
|
|
324
324
|
if (i ? f = _ + 1 : _ = f, O.C && (Ct = new a()), i)
|
|
325
325
|
return P();
|
|
326
326
|
if (f >= ke)
|
|
327
327
|
return s(At);
|
|
328
328
|
if (i = m.charCodeAt(f), n(i) || i === 92)
|
|
329
329
|
return $();
|
|
330
|
-
if (
|
|
331
|
-
if (i = String.fromCharCode(i), i === "\\" ||
|
|
330
|
+
if (S(i) === !1) {
|
|
331
|
+
if (i = String.fromCharCode(i), i === "\\" || Dn.test(i))
|
|
332
332
|
return $();
|
|
333
333
|
r(f, "Unexpected character '" + i + "'");
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function b(i, l) {
|
|
337
337
|
var c = m.slice(f, f + l);
|
|
338
338
|
f += l, s(i, c);
|
|
339
339
|
}
|
|
@@ -357,13 +357,13 @@ var N, xo = function(e) {
|
|
|
357
357
|
i = m.slice(c, f), ++f, (l = B()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
358
358
|
try {
|
|
359
359
|
var T = new RegExp(i, l);
|
|
360
|
-
} catch (
|
|
361
|
-
throw
|
|
360
|
+
} catch (D) {
|
|
361
|
+
throw D instanceof SyntaxError && r(c, D.message), D;
|
|
362
362
|
}
|
|
363
|
-
s(
|
|
363
|
+
s(dn, T);
|
|
364
364
|
}
|
|
365
365
|
function j(i, l) {
|
|
366
|
-
for (var c = f, p = 0, T = l === void 0 ? 1 / 0 : l,
|
|
366
|
+
for (var c = f, p = 0, T = l === void 0 ? 1 / 0 : l, D = 0; D < T; ++D) {
|
|
367
367
|
var X = m.charCodeAt(f);
|
|
368
368
|
if (X = 97 <= X ? X - 97 + 10 : 65 <= X ? X - 65 + 10 : 48 <= X && 57 >= X ? X - 48 : 1 / 0, X >= i)
|
|
369
369
|
break;
|
|
@@ -371,7 +371,7 @@ var N, xo = function(e) {
|
|
|
371
371
|
}
|
|
372
372
|
return f === c || l !== void 0 && f - c !== l ? null : p;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function k(i) {
|
|
375
375
|
var l = f, c = !1, p = m.charCodeAt(f) === 48;
|
|
376
376
|
i || j(10) !== null || r(l, "Invalid number"), m.charCodeAt(f) === 46 && (++f, j(10), c = !0), i = m.charCodeAt(f), (i === 69 || i === 101) && (i = m.charCodeAt(++f), i !== 43 && i !== 45 || ++f, j(10) === null && r(l, "Invalid number"), c = !0), n(m.charCodeAt(f)) && r(f, "Identifier directly after number"), i = m.slice(l, f);
|
|
377
377
|
var T;
|
|
@@ -398,17 +398,17 @@ var N, xo = function(e) {
|
|
|
398
398
|
}
|
|
399
399
|
function $() {
|
|
400
400
|
var i = B(), l = Ee;
|
|
401
|
-
!Te &&
|
|
401
|
+
!Te && Gr(i) && (l = Mr[i]), s(l, i);
|
|
402
402
|
}
|
|
403
403
|
function g() {
|
|
404
|
-
It = _, me = Ce, Tt = Et,
|
|
404
|
+
It = _, me = Ce, Tt = Et, C();
|
|
405
405
|
}
|
|
406
406
|
function pe(i) {
|
|
407
407
|
if (z = i, f = _, O.C)
|
|
408
408
|
for (; f < oe; )
|
|
409
409
|
oe = m.lastIndexOf(`
|
|
410
410
|
`, oe - 2) + 1, --we;
|
|
411
|
-
d(),
|
|
411
|
+
d(), C();
|
|
412
412
|
}
|
|
413
413
|
function de() {
|
|
414
414
|
this.type = null, this.start = _, this.end = null;
|
|
@@ -436,7 +436,7 @@ var N, xo = function(e) {
|
|
|
436
436
|
function Ze() {
|
|
437
437
|
return !O.fc && (I === At || I === Ie || ot.test(m.slice(me, _)));
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function be() {
|
|
440
440
|
U(ae) || Ze() || ne();
|
|
441
441
|
}
|
|
442
442
|
function F(i) {
|
|
@@ -449,45 +449,45 @@ var N, xo = function(e) {
|
|
|
449
449
|
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), z && i.type === "Identifier" && rt(i.name) && r(i.start, "Assigning to " + i.name + " in strict mode");
|
|
450
450
|
}
|
|
451
451
|
function ee() {
|
|
452
|
-
(I ===
|
|
452
|
+
(I === Bn || I === xe && Q === "/=") && C(!0);
|
|
453
453
|
var i = I, l = M();
|
|
454
454
|
switch (i) {
|
|
455
455
|
case Ot:
|
|
456
|
-
case
|
|
456
|
+
case mn:
|
|
457
457
|
g();
|
|
458
458
|
var c = i === Ot;
|
|
459
|
-
U(ae) || Ze() ? l.label = null : I !== Ee ? ne() : (l.label = re(),
|
|
459
|
+
U(ae) || Ze() ? l.label = null : I !== Ee ? ne() : (l.label = re(), be());
|
|
460
460
|
for (var p = 0; p < V.length; ++p) {
|
|
461
461
|
var T = V[p];
|
|
462
462
|
if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (c || T.kind === "loop") || l.label && c))
|
|
463
463
|
break;
|
|
464
464
|
}
|
|
465
465
|
return p === V.length && r(l.start, "Unsyntactic " + i.l), A(l, c ? "BreakStatement" : "ContinueStatement");
|
|
466
|
-
case
|
|
467
|
-
return g(),
|
|
468
|
-
case
|
|
469
|
-
return g(), V.push(Ft), l.body = ee(), V.pop(), F(Bt), l.test = Ne(),
|
|
470
|
-
case
|
|
471
|
-
return g(), V.push(Ft), F(ie), I === ae ? yt(l, null) : I === Nt ? (i = M(), g(),
|
|
466
|
+
case gn:
|
|
467
|
+
return g(), be(), A(l, "DebuggerStatement");
|
|
468
|
+
case vn:
|
|
469
|
+
return g(), V.push(Ft), l.body = ee(), V.pop(), F(Bt), l.test = Ne(), be(), A(l, "DoWhileStatement");
|
|
470
|
+
case xn:
|
|
471
|
+
return g(), V.push(Ft), F(ie), I === ae ? yt(l, null) : I === Nt ? (i = M(), g(), fn(i, !0), A(i, "VariableDeclaration"), i.fa.length === 1 && U(nt) ? un(l, i) : yt(l, i)) : (i = K(!1, !0), U(nt) ? (Qe(i), un(l, i)) : yt(l, i));
|
|
472
472
|
case Rt:
|
|
473
|
-
return g(),
|
|
473
|
+
return g(), xt(l, !0);
|
|
474
|
+
case Sn:
|
|
475
|
+
return g(), l.test = Ne(), l.da = ee(), l.alternate = U(bn) ? ee() : null, A(l, "IfStatement");
|
|
474
476
|
case kn:
|
|
475
|
-
return g(),
|
|
476
|
-
case Cn:
|
|
477
|
-
return Fe || O.Ib || r(_, "'return' outside of function"), g(), U(ae) || Ze() ? l.K = null : (l.K = K(), xe()), A(l, "ReturnStatement");
|
|
477
|
+
return Fe || O.Ib || r(_, "'return' outside of function"), g(), U(ae) || Ze() ? l.K = null : (l.K = K(), be()), A(l, "ReturnStatement");
|
|
478
478
|
case Pt:
|
|
479
|
-
for (g(), l.Qb = Ne(), l.tb = [], F(_e), V.push(
|
|
480
|
-
I === jt || I ===
|
|
479
|
+
for (g(), l.Qb = Ne(), l.tb = [], F(_e), V.push(Jr); I !== Ie; )
|
|
480
|
+
I === jt || I === yn ? (i = I === jt, p && A(p, "SwitchCase"), l.tb.push(p = M()), p.da = [], g(), i ? p.test = K() : (c && r(It, "Multiple default clauses"), c = !0, p.test = null), F(De)) : (p || ne(), p.da.push(ee()));
|
|
481
481
|
return p && A(p, "SwitchCase"), g(), V.pop(), A(l, "SwitchStatement");
|
|
482
|
+
case Cn:
|
|
483
|
+
return g(), ot.test(m.slice(me, _)) && r(me, "Illegal newline after throw"), l.K = K(), be(), A(l, "ThrowStatement");
|
|
482
484
|
case En:
|
|
483
|
-
return g(),
|
|
484
|
-
case In:
|
|
485
|
-
return g(), l.block = Be(), l.Ea = null, I === mn && (i = M(), g(), F(ie), i.Ua = re(), z && rt(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), F(te), i.body = Be(), l.Ea = A(i, "CatchClause")), l.fb = U(wn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
|
|
485
|
+
return g(), l.block = Be(), l.Ea = null, I === hn && (i = M(), g(), F(ie), i.Ua = re(), z && rt(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), F(te), i.body = Be(), l.Ea = A(i, "CatchClause")), l.fb = U(wn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
|
|
486
486
|
case Nt:
|
|
487
|
-
return g(),
|
|
487
|
+
return g(), fn(l), be(), A(l, "VariableDeclaration");
|
|
488
488
|
case Bt:
|
|
489
489
|
return g(), l.test = Ne(), V.push(Ft), l.body = ee(), V.pop(), A(l, "WhileStatement");
|
|
490
|
-
case
|
|
490
|
+
case In:
|
|
491
491
|
return z && r(_, "'with' in strict mode"), g(), l.object = Ne(), l.body = ee(), A(l, "WithStatement");
|
|
492
492
|
case _e:
|
|
493
493
|
return Be();
|
|
@@ -502,7 +502,7 @@ var N, xo = function(e) {
|
|
|
502
502
|
kind: I.W ? "loop" : I === Pt ? "switch" : null
|
|
503
503
|
}), l.body = ee(), V.pop(), l.label = T, A(l, "LabeledStatement");
|
|
504
504
|
}
|
|
505
|
-
return l.la = T,
|
|
505
|
+
return l.la = T, be(), A(l, "ExpressionStatement");
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
function Ne() {
|
|
@@ -515,23 +515,23 @@ var N, xo = function(e) {
|
|
|
515
515
|
for (l.body = [], F(_e); !U(Ie); ) {
|
|
516
516
|
var T = ee();
|
|
517
517
|
if (l.body.push(T), c && i && gt(T)) {
|
|
518
|
-
var
|
|
518
|
+
var D = p;
|
|
519
519
|
pe(p = !0);
|
|
520
520
|
}
|
|
521
521
|
c = !1;
|
|
522
522
|
}
|
|
523
|
-
return p && !
|
|
523
|
+
return p && !D && pe(!1), A(l, "BlockStatement");
|
|
524
524
|
}
|
|
525
525
|
function yt(i, l) {
|
|
526
526
|
return i.ua = l, F(ae), i.test = I === ae ? null : K(), F(ae), i.update = I === te ? null : K(), F(te), i.body = ee(), V.pop(), A(i, "ForStatement");
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function un(i, l) {
|
|
529
529
|
return i.left = l, i.right = K(), F(te), i.body = ee(), V.pop(), A(i, "ForInStatement");
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function fn(i, l) {
|
|
532
532
|
for (i.fa = [], i.kind = "var"; ; ) {
|
|
533
533
|
var c = M();
|
|
534
|
-
if (c.id = re(), z && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = U(
|
|
534
|
+
if (c.id = re(), z && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = U(Mn) ? K(!0, l) : null, i.fa.push(A(c, "VariableDeclarator")), !U(ge))
|
|
535
535
|
break;
|
|
536
536
|
}
|
|
537
537
|
}
|
|
@@ -545,8 +545,8 @@ var N, xo = function(e) {
|
|
|
545
545
|
return c;
|
|
546
546
|
}
|
|
547
547
|
function vt(i) {
|
|
548
|
-
var l = bt(
|
|
549
|
-
if (U(
|
|
548
|
+
var l = bt(wt(), -1, i);
|
|
549
|
+
if (U(Nn)) {
|
|
550
550
|
var c = he(l);
|
|
551
551
|
c.test = l, c.da = K(!0), F(De), c.alternate = K(!0, i), l = A(c, "ConditionalExpression");
|
|
552
552
|
}
|
|
@@ -556,21 +556,21 @@ var N, xo = function(e) {
|
|
|
556
556
|
var p = I.L;
|
|
557
557
|
if (p !== null && (!c || I !== nt) && p > l) {
|
|
558
558
|
var T = he(i);
|
|
559
|
-
return T.left = i, T.operator = Q, i = I, g(), T.right = bt(
|
|
559
|
+
return T.left = i, T.operator = Q, i = I, g(), T.right = bt(wt(), p, c), p = A(T, i === Fn || i === Vn ? "LogicalExpression" : "BinaryExpression"), bt(p, l, c);
|
|
560
560
|
}
|
|
561
561
|
return i;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function wt() {
|
|
564
564
|
if (I.prefix) {
|
|
565
565
|
var i = M(), l = I.$b;
|
|
566
|
-
return i.operator = Q, Ue = i.prefix = !0, g(), i.K =
|
|
566
|
+
return i.operator = Q, Ue = i.prefix = !0, g(), i.K = wt(), l ? Qe(i.K) : z && i.operator === "delete" && i.K.type === "Identifier" && r(i.start, "Deleting local variable in strict mode"), A(i, l ? "UpdateExpression" : "UnaryExpression");
|
|
567
567
|
}
|
|
568
568
|
for (l = Me(et()); I.cc && !Ze(); )
|
|
569
569
|
i = he(l), i.operator = Q, i.prefix = !1, i.K = l, Qe(l), g(), l = A(i, "UpdateExpression");
|
|
570
570
|
return l;
|
|
571
571
|
}
|
|
572
572
|
function Me(i, l) {
|
|
573
|
-
if (U(
|
|
573
|
+
if (U(Pn)) {
|
|
574
574
|
var c = he(i);
|
|
575
575
|
return c.object = i, c.Wa = re(!0), c.bb = !1, Me(A(c, "MemberExpression"), l);
|
|
576
576
|
}
|
|
@@ -578,18 +578,18 @@ var N, xo = function(e) {
|
|
|
578
578
|
}
|
|
579
579
|
function et() {
|
|
580
580
|
switch (I) {
|
|
581
|
-
case
|
|
581
|
+
case An:
|
|
582
582
|
var i = M();
|
|
583
583
|
return g(), A(i, "ThisExpression");
|
|
584
584
|
case Ee:
|
|
585
585
|
return re();
|
|
586
586
|
case Ve:
|
|
587
587
|
case tt:
|
|
588
|
-
case
|
|
588
|
+
case dn:
|
|
589
589
|
return i = M(), i.value = Q, i.raw = m.slice(_, Ce), g(), A(i, "Literal");
|
|
590
|
+
case On:
|
|
590
591
|
case jn:
|
|
591
592
|
case Rn:
|
|
592
|
-
case Pn:
|
|
593
593
|
return i = M(), i.value = I.$a, i.raw = I.l, g(), A(i, "Literal");
|
|
594
594
|
case ie:
|
|
595
595
|
i = Ct;
|
|
@@ -610,28 +610,28 @@ var N, xo = function(e) {
|
|
|
610
610
|
}, T = !1;
|
|
611
611
|
if (U(De)) {
|
|
612
612
|
p.value = K(!0);
|
|
613
|
-
var
|
|
613
|
+
var D = p.kind = "init";
|
|
614
614
|
} else
|
|
615
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ne() : (T = c = !0,
|
|
615
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ne() : (T = c = !0, D = p.kind = p.key.name, p.key = I === Ve || I === tt ? et() : re(!0), I !== ie && ne(), p.value = xt(M(), !1));
|
|
616
616
|
if (p.key.type === "Identifier" && (z || c))
|
|
617
617
|
for (var X = 0; X < i.h.length; ++X) {
|
|
618
618
|
var Ae = i.h[X];
|
|
619
619
|
if (Ae.key.name === p.key.name) {
|
|
620
|
-
var Vt =
|
|
621
|
-
Vt && !z &&
|
|
620
|
+
var Vt = D === Ae.kind || T && Ae.kind === "init" || D === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
621
|
+
Vt && !z && D === "init" && Ae.kind === "init" && (Vt = !1), Vt && r(p.key.start, "Redefinition of property");
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
i.h.push(p);
|
|
625
625
|
}
|
|
626
626
|
return A(i, "ObjectExpression");
|
|
627
627
|
case Rt:
|
|
628
|
-
return i = M(), g(),
|
|
629
|
-
case
|
|
630
|
-
return i = M(), g(), i.callee = Me(et(), !0), i.arguments = U(ie) ? St(te, !1) :
|
|
628
|
+
return i = M(), g(), xt(i, !1);
|
|
629
|
+
case Tn:
|
|
630
|
+
return i = M(), g(), i.callee = Me(et(), !0), i.arguments = U(ie) ? St(te, !1) : Br, A(i, "NewExpression");
|
|
631
631
|
}
|
|
632
632
|
ne();
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function xt(i, l) {
|
|
635
635
|
I === Ee ? i.id = re() : l ? ne() : i.id = null, i.oa = [];
|
|
636
636
|
var c = !0;
|
|
637
637
|
for (F(ie); !U(te); )
|
|
@@ -640,7 +640,7 @@ var N, xo = function(e) {
|
|
|
640
640
|
var p = V;
|
|
641
641
|
if (Fe = !0, V = [], i.body = Be(!0), Fe = c, V = p, z || i.body.body.length && gt(i.body.body[0])) {
|
|
642
642
|
for (c = i.id ? -1 : 0; c < i.oa.length; ++c)
|
|
643
|
-
if (p = 0 > c ? i.id : i.oa[c], (
|
|
643
|
+
if (p = 0 > c ? i.id : i.oa[c], (_n(p.name) || rt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= c)
|
|
644
644
|
for (var T = 0; T < c; ++T)
|
|
645
645
|
p.name === i.oa[T].name && r(p.start, "Argument name clash in strict mode");
|
|
646
646
|
}
|
|
@@ -658,19 +658,19 @@ var N, xo = function(e) {
|
|
|
658
658
|
}
|
|
659
659
|
function re(i) {
|
|
660
660
|
var l = M();
|
|
661
|
-
return i && O.yb === "everywhere" && (i = !1), I === Ee ? (!i && (O.yb &&
|
|
661
|
+
return i && O.yb === "everywhere" && (i = !1), I === Ee ? (!i && (O.yb && Kr(Q) || z && _n(Q)) && m.slice(_, Ce).indexOf("\\") === -1 && r(_, "The keyword '" + Q + "' is reserved"), l.name = Q) : i && I.l ? l.name = I.l : ne(), Ue = !1, g(), A(l, "Identifier");
|
|
662
662
|
}
|
|
663
663
|
e.version = "0.5.0";
|
|
664
664
|
var O, m = "", ke, kt;
|
|
665
665
|
e.parse = function(i, l) {
|
|
666
666
|
m = String(i), ke = m.length, O = l || {};
|
|
667
|
-
for (var c in
|
|
668
|
-
Object.prototype.hasOwnProperty.call(O, c) || (O[c] =
|
|
669
|
-
for (kt = O.sourceFile, we = 1, f = oe = 0, Ue = !0, d(), c = O.dc, It = me = f, O.C && (Tt = new a()), Fe = z = !1, V = [],
|
|
667
|
+
for (var c in pn)
|
|
668
|
+
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = pn[c]);
|
|
669
|
+
for (kt = O.sourceFile, we = 1, f = oe = 0, Ue = !0, d(), c = O.dc, It = me = f, O.C && (Tt = new a()), Fe = z = !1, V = [], C(), i = c || M(), l = !0, c || (i.body = []); I !== At; )
|
|
670
670
|
c = ee(), i.body.push(c), l && gt(c) && pe(!0), l = !1;
|
|
671
671
|
return A(i, "Program");
|
|
672
672
|
};
|
|
673
|
-
var
|
|
673
|
+
var pn = {
|
|
674
674
|
fc: !1,
|
|
675
675
|
sb: !0,
|
|
676
676
|
yb: !1,
|
|
@@ -681,9 +681,9 @@ var N, xo = function(e) {
|
|
|
681
681
|
dc: null,
|
|
682
682
|
sourceFile: null,
|
|
683
683
|
vb: null
|
|
684
|
-
}, f = 0, _ = 0, Ce = 0, Ct, Et, I, Q, Ue, we, oe, It = 0, me = 0, Tt, Fe, V, z,
|
|
684
|
+
}, f = 0, _ = 0, Ce = 0, Ct, Et, I, Q, Ue, we, oe, It = 0, me = 0, Tt, Fe, V, z, Br = [], Ve = {
|
|
685
685
|
type: "num"
|
|
686
|
-
},
|
|
686
|
+
}, dn = {
|
|
687
687
|
type: "regexp"
|
|
688
688
|
}, tt = {
|
|
689
689
|
type: "string"
|
|
@@ -696,95 +696,95 @@ var N, xo = function(e) {
|
|
|
696
696
|
}, jt = {
|
|
697
697
|
l: "case",
|
|
698
698
|
m: !0
|
|
699
|
-
},
|
|
699
|
+
}, hn = {
|
|
700
700
|
l: "catch"
|
|
701
|
-
},
|
|
701
|
+
}, mn = {
|
|
702
702
|
l: "continue"
|
|
703
|
-
},
|
|
703
|
+
}, gn = {
|
|
704
704
|
l: "debugger"
|
|
705
|
-
},
|
|
705
|
+
}, yn = {
|
|
706
706
|
l: "default"
|
|
707
|
-
},
|
|
707
|
+
}, vn = {
|
|
708
708
|
l: "do",
|
|
709
709
|
W: !0
|
|
710
|
-
},
|
|
710
|
+
}, bn = {
|
|
711
711
|
l: "else",
|
|
712
712
|
m: !0
|
|
713
713
|
}, wn = {
|
|
714
714
|
l: "finally"
|
|
715
|
-
},
|
|
715
|
+
}, xn = {
|
|
716
716
|
l: "for",
|
|
717
717
|
W: !0
|
|
718
718
|
}, Rt = {
|
|
719
719
|
l: "function"
|
|
720
|
-
},
|
|
720
|
+
}, Sn = {
|
|
721
721
|
l: "if"
|
|
722
|
-
},
|
|
722
|
+
}, kn = {
|
|
723
723
|
l: "return",
|
|
724
724
|
m: !0
|
|
725
725
|
}, Pt = {
|
|
726
726
|
l: "switch"
|
|
727
|
-
},
|
|
727
|
+
}, Cn = {
|
|
728
728
|
l: "throw",
|
|
729
729
|
m: !0
|
|
730
|
-
},
|
|
730
|
+
}, En = {
|
|
731
731
|
l: "try"
|
|
732
732
|
}, Nt = {
|
|
733
733
|
l: "var"
|
|
734
734
|
}, Bt = {
|
|
735
735
|
l: "while",
|
|
736
736
|
W: !0
|
|
737
|
-
},
|
|
737
|
+
}, In = {
|
|
738
738
|
l: "with"
|
|
739
|
-
},
|
|
739
|
+
}, Tn = {
|
|
740
740
|
l: "new",
|
|
741
741
|
m: !0
|
|
742
|
-
},
|
|
742
|
+
}, An = {
|
|
743
743
|
l: "this"
|
|
744
|
-
},
|
|
744
|
+
}, On = {
|
|
745
745
|
l: "null",
|
|
746
746
|
$a: null
|
|
747
|
-
},
|
|
747
|
+
}, jn = {
|
|
748
748
|
l: "true",
|
|
749
749
|
$a: !0
|
|
750
|
-
},
|
|
750
|
+
}, Rn = {
|
|
751
751
|
l: "false",
|
|
752
752
|
$a: !1
|
|
753
753
|
}, nt = {
|
|
754
754
|
l: "in",
|
|
755
755
|
L: 7,
|
|
756
756
|
m: !0
|
|
757
|
-
},
|
|
757
|
+
}, Mr = {
|
|
758
758
|
break: Ot,
|
|
759
759
|
case: jt,
|
|
760
|
-
catch:
|
|
761
|
-
continue:
|
|
762
|
-
debugger:
|
|
763
|
-
default:
|
|
764
|
-
do:
|
|
765
|
-
else:
|
|
760
|
+
catch: hn,
|
|
761
|
+
continue: mn,
|
|
762
|
+
debugger: gn,
|
|
763
|
+
default: yn,
|
|
764
|
+
do: vn,
|
|
765
|
+
else: bn,
|
|
766
766
|
finally: wn,
|
|
767
|
-
for:
|
|
767
|
+
for: xn,
|
|
768
768
|
function: Rt,
|
|
769
|
-
if:
|
|
770
|
-
return:
|
|
769
|
+
if: Sn,
|
|
770
|
+
return: kn,
|
|
771
771
|
switch: Pt,
|
|
772
|
-
throw:
|
|
773
|
-
try:
|
|
772
|
+
throw: Cn,
|
|
773
|
+
try: En,
|
|
774
774
|
var: Nt,
|
|
775
775
|
while: Bt,
|
|
776
|
-
with:
|
|
777
|
-
null:
|
|
778
|
-
true:
|
|
779
|
-
false:
|
|
780
|
-
new:
|
|
776
|
+
with: In,
|
|
777
|
+
null: On,
|
|
778
|
+
true: jn,
|
|
779
|
+
false: Rn,
|
|
780
|
+
new: Tn,
|
|
781
781
|
in: nt,
|
|
782
782
|
instanceof: {
|
|
783
783
|
l: "instanceof",
|
|
784
784
|
L: 7,
|
|
785
785
|
m: !0
|
|
786
786
|
},
|
|
787
|
-
this:
|
|
787
|
+
this: An,
|
|
788
788
|
typeof: {
|
|
789
789
|
l: "typeof",
|
|
790
790
|
prefix: !0,
|
|
@@ -824,65 +824,65 @@ var N, xo = function(e) {
|
|
|
824
824
|
}, De = {
|
|
825
825
|
type: ":",
|
|
826
826
|
m: !0
|
|
827
|
-
},
|
|
827
|
+
}, Pn = {
|
|
828
828
|
type: "."
|
|
829
|
-
},
|
|
829
|
+
}, Nn = {
|
|
830
830
|
type: "?",
|
|
831
831
|
m: !0
|
|
832
|
-
},
|
|
832
|
+
}, Bn = {
|
|
833
833
|
L: 10,
|
|
834
834
|
m: !0
|
|
835
|
-
},
|
|
835
|
+
}, Mn = {
|
|
836
836
|
Cb: !0,
|
|
837
837
|
m: !0
|
|
838
|
-
},
|
|
838
|
+
}, xe = {
|
|
839
839
|
Cb: !0,
|
|
840
840
|
m: !0
|
|
841
|
-
},
|
|
841
|
+
}, Ur = {
|
|
842
842
|
cc: !0,
|
|
843
843
|
prefix: !0,
|
|
844
844
|
$b: !0
|
|
845
|
-
},
|
|
845
|
+
}, Un = {
|
|
846
846
|
prefix: !0,
|
|
847
847
|
m: !0
|
|
848
|
-
},
|
|
848
|
+
}, Fn = {
|
|
849
849
|
L: 1,
|
|
850
850
|
m: !0
|
|
851
|
-
},
|
|
851
|
+
}, Vn = {
|
|
852
852
|
L: 2,
|
|
853
853
|
m: !0
|
|
854
|
-
},
|
|
854
|
+
}, Fr = {
|
|
855
855
|
L: 3,
|
|
856
856
|
m: !0
|
|
857
|
-
},
|
|
857
|
+
}, Vr = {
|
|
858
858
|
L: 4,
|
|
859
859
|
m: !0
|
|
860
|
-
},
|
|
860
|
+
}, _r = {
|
|
861
861
|
L: 5,
|
|
862
862
|
m: !0
|
|
863
|
-
},
|
|
863
|
+
}, Dr = {
|
|
864
864
|
L: 6,
|
|
865
865
|
m: !0
|
|
866
|
-
},
|
|
866
|
+
}, Lr = {
|
|
867
867
|
L: 7,
|
|
868
868
|
m: !0
|
|
869
|
-
},
|
|
869
|
+
}, Wr = {
|
|
870
870
|
L: 8,
|
|
871
871
|
m: !0
|
|
872
|
-
},
|
|
872
|
+
}, $r = {
|
|
873
873
|
L: 9,
|
|
874
874
|
prefix: !0,
|
|
875
875
|
m: !0
|
|
876
|
-
},
|
|
876
|
+
}, Hr = {
|
|
877
877
|
L: 10,
|
|
878
878
|
m: !0
|
|
879
|
-
},
|
|
879
|
+
}, Kr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), Gr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Xr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Dn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Yr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ot = /[\n\r\u2028\u2029]/, it = /\r\n|[\n\r\u2028\u2029]/g, Te, Ft = {
|
|
880
880
|
kind: "loop"
|
|
881
|
-
},
|
|
881
|
+
}, Jr = {
|
|
882
882
|
kind: "switch"
|
|
883
883
|
};
|
|
884
|
-
},
|
|
885
|
-
|
|
884
|
+
}, Lt = Lt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
885
|
+
bo(Lt.j || (Lt.j = {}));
|
|
886
886
|
function h(e, t) {
|
|
887
887
|
typeof e == "string" && (e = je(e, "code"));
|
|
888
888
|
var n = e.constructor;
|
|
@@ -898,13 +898,13 @@ function h(e, t) {
|
|
|
898
898
|
var a, s;
|
|
899
899
|
for (s in this)
|
|
900
900
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
901
|
-
this.N =
|
|
901
|
+
this.N = $t(this, this.ra, null), this.Na = this.N.object, this.ra = je(this.ba.join(`
|
|
902
902
|
`), "polyfills"), this.ba = void 0, ut(this.ra), a = new v(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = r, a = new v(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
903
903
|
}
|
|
904
|
-
var
|
|
904
|
+
var Ln = {
|
|
905
905
|
C: !0,
|
|
906
906
|
kc: 5
|
|
907
|
-
},
|
|
907
|
+
}, Yt = {
|
|
908
908
|
configurable: !0,
|
|
909
909
|
enumerable: !0,
|
|
910
910
|
writable: !1
|
|
@@ -920,11 +920,11 @@ var $n = {
|
|
|
920
920
|
configurable: !1,
|
|
921
921
|
enumerable: !1,
|
|
922
922
|
writable: !1
|
|
923
|
-
},
|
|
923
|
+
}, Wn = {
|
|
924
924
|
configurable: !1,
|
|
925
925
|
enumerable: !0,
|
|
926
926
|
writable: !0
|
|
927
|
-
},
|
|
927
|
+
}, cr = {
|
|
928
928
|
STEP_ERROR: !0
|
|
929
929
|
}, Pe = {
|
|
930
930
|
SCOPE_REFERENCE: !0
|
|
@@ -932,8 +932,8 @@ var $n = {
|
|
|
932
932
|
VALUE_IN_DESCRIPTOR: !0
|
|
933
933
|
}, Oe = {
|
|
934
934
|
REGEXP_TIMEOUT: !0
|
|
935
|
-
},
|
|
936
|
-
function
|
|
935
|
+
}, $n = [], le = null, Ge = null, ye = typeof globalThis > "u" ? void 0 : globalThis, wo = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
|
|
936
|
+
function Jt(e) {
|
|
937
937
|
var t = e >>> 0;
|
|
938
938
|
return t === Number(e) ? t : NaN;
|
|
939
939
|
}
|
|
@@ -959,9 +959,9 @@ N.Kb = 0;
|
|
|
959
959
|
N.ic = 0;
|
|
960
960
|
function je(e, t) {
|
|
961
961
|
var n = {}, r;
|
|
962
|
-
for (r in
|
|
963
|
-
n[r] =
|
|
964
|
-
return n.sourceFile = t,
|
|
962
|
+
for (r in Ln)
|
|
963
|
+
n[r] = Ln[r];
|
|
964
|
+
return n.sourceFile = t, ye.j.parse(e, n);
|
|
965
965
|
}
|
|
966
966
|
N.Jb = function(e) {
|
|
967
967
|
var t = this.o[0];
|
|
@@ -983,7 +983,7 @@ N.lb = function() {
|
|
|
983
983
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
984
984
|
n = null;
|
|
985
985
|
else {
|
|
986
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
986
|
+
this.ca.shift(), 0 <= n.interval && pr(this, n, n.interval);
|
|
987
987
|
var r = new v(n.node, n.scope);
|
|
988
988
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
989
989
|
}
|
|
@@ -996,7 +996,7 @@ N.lb = function() {
|
|
|
996
996
|
try {
|
|
997
997
|
var a = this.rb[r.type](e, n, r);
|
|
998
998
|
} catch (s) {
|
|
999
|
-
if (s !==
|
|
999
|
+
if (s !== cr)
|
|
1000
1000
|
throw this.value !== s && (this.value = void 0), s;
|
|
1001
1001
|
} finally {
|
|
1002
1002
|
Ge = o;
|
|
@@ -1014,8 +1014,8 @@ N.Eb = function() {
|
|
|
1014
1014
|
;
|
|
1015
1015
|
return this.za;
|
|
1016
1016
|
};
|
|
1017
|
-
function
|
|
1018
|
-
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,
|
|
1017
|
+
function xo(e, t) {
|
|
1018
|
+
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, Yt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), So(e, t), ko(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Co(e, t), Eo(e, t), Io(e, t), To(e, t), Ao(e, t), Oo(e, t), jo(e, t), Ro(e, t), Po(e, t);
|
|
1019
1019
|
var n = e.i(function() {
|
|
1020
1020
|
throw EvalError("Can't happen");
|
|
1021
1021
|
}, !1);
|
|
@@ -1026,43 +1026,43 @@ function So(e, t) {
|
|
|
1026
1026
|
try {
|
|
1027
1027
|
return a(s);
|
|
1028
1028
|
} catch (u) {
|
|
1029
|
-
|
|
1029
|
+
w(e, e.Gb, u.message);
|
|
1030
1030
|
}
|
|
1031
1031
|
};
|
|
1032
1032
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), y);
|
|
1033
1033
|
n = function(a) {
|
|
1034
|
-
return
|
|
1034
|
+
return Hn(e, !1, arguments);
|
|
1035
1035
|
}, e.g(t, "setTimeout", e.i(n, !1), y), n = function(a) {
|
|
1036
|
-
return
|
|
1036
|
+
return Hn(e, !0, arguments);
|
|
1037
1037
|
}, e.g(t, "setInterval", e.i(n, !1), y), n = function(a) {
|
|
1038
|
-
|
|
1038
|
+
Kn(e, a);
|
|
1039
1039
|
}, e.g(t, "clearTimeout", e.i(n, !1), y), n = function(a) {
|
|
1040
|
-
|
|
1040
|
+
Kn(e, a);
|
|
1041
1041
|
}, e.g(t, "clearInterval", e.i(n, !1), y), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1042
1042
|
}
|
|
1043
1043
|
N.Wb = 0;
|
|
1044
|
-
function
|
|
1044
|
+
function So(e, t) {
|
|
1045
1045
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1046
1046
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1047
1047
|
if (s) {
|
|
1048
1048
|
s = s.split(/\s*,\s*/);
|
|
1049
1049
|
for (var u = 0; u < s.length; u++) {
|
|
1050
1050
|
var d = s[u];
|
|
1051
|
-
n.test(d) ||
|
|
1051
|
+
n.test(d) || w(e, e.T, "Invalid function argument: " + d);
|
|
1052
1052
|
}
|
|
1053
1053
|
s = s.join(", ");
|
|
1054
1054
|
}
|
|
1055
1055
|
try {
|
|
1056
|
-
var
|
|
1057
|
-
} catch (
|
|
1058
|
-
|
|
1056
|
+
var S = je("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1057
|
+
} catch (C) {
|
|
1058
|
+
w(e, e.T, "Invalid code: " + C.message);
|
|
1059
1059
|
}
|
|
1060
|
-
return
|
|
1060
|
+
return S.body.length !== 1 && w(e, e.T, "Invalid code in function body"), Zt(e, S.body[0].la, e.N, "anonymous");
|
|
1061
1061
|
};
|
|
1062
1062
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
|
|
1063
1063
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, J), e.Z.H = "Function", r = function(o, a) {
|
|
1064
1064
|
var s = e.o[e.o.length - 1];
|
|
1065
|
-
s.U = this, s.B = o, s.F = [], a != null && (a instanceof R ? s.F =
|
|
1065
|
+
s.U = this, s.B = o, s.F = [], a != null && (a instanceof R ? s.F = ur(e, a) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1066
1066
|
}, W(e, e.O, "apply", r), r = function(o) {
|
|
1067
1067
|
var a = e.o[e.o.length - 1];
|
|
1068
1068
|
a.U = this, a.B = o, a.F = [];
|
|
@@ -1075,9 +1075,9 @@ function ko(e, t) {
|
|
|
1075
1075
|
return this.valueOf();
|
|
1076
1076
|
}, W(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function ko(e, t) {
|
|
1079
1079
|
function n(o) {
|
|
1080
|
-
o != null ||
|
|
1080
|
+
o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1081
1081
|
}
|
|
1082
1082
|
var r = function(o) {
|
|
1083
1083
|
if (o == null)
|
|
@@ -1093,11 +1093,11 @@ function Co(e, t) {
|
|
|
1093
1093
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(o) {
|
|
1094
1094
|
return n(o), o instanceof R && (o = o.h), se(e, Object.keys(o));
|
|
1095
1095
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1096
|
-
return o === null ? e.s(null) : (o instanceof R ||
|
|
1096
|
+
return o === null ? e.s(null) : (o instanceof R || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1097
1097
|
}, e.g(e.v, "create", e.i(r, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, a, s) {
|
|
1098
|
-
return a = String(a), o instanceof R ||
|
|
1098
|
+
return a = String(a), o instanceof R || w(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof R || w(e, e.j, "Property description must be an object"), !o.preventExtensions || a in o.h || w(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(o, a, Ye, s.h), o;
|
|
1099
1099
|
}, e.g(e.v, "defineProperty", e.i(r, !1), y), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, a) {
|
|
1100
|
-
if (o instanceof R ||
|
|
1100
|
+
if (o instanceof R || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), a = String(a), a in o.h) {
|
|
1101
1101
|
var s = Object.getOwnPropertyDescriptor(o.h, a), u = o.V[a];
|
|
1102
1102
|
return o = o.Y[a], a = e.s(e.M), u || o ? (e.g(a, "get", u), 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;
|
|
1103
1103
|
}
|
|
@@ -1120,11 +1120,11 @@ function Co(e, t) {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
}, W(e, e.v, "isPrototypeOf", r);
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function Co(e, t) {
|
|
1124
1124
|
var n = function(r) {
|
|
1125
1125
|
var o = ue(e) ? this : Re(e), a = arguments[0];
|
|
1126
1126
|
if (arguments.length === 1 && typeof a == "number")
|
|
1127
|
-
isNaN(
|
|
1127
|
+
isNaN(Jt(a)) && w(e, e.ob, "Invalid array length: " + a), o.h.length = a;
|
|
1128
1128
|
else {
|
|
1129
1129
|
for (a = 0; a < arguments.length; a++)
|
|
1130
1130
|
o.h[a] = arguments[a];
|
|
@@ -1140,9 +1140,9 @@ function Eo(e, t) {
|
|
|
1140
1140
|
writable: !0
|
|
1141
1141
|
}), 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(',');", "}", ");", "})();", "");
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function Eo(e, t) {
|
|
1144
1144
|
var n = function(r) {
|
|
1145
|
-
return r = arguments.length ?
|
|
1145
|
+
return r = arguments.length ? ye.String(r) : "", ue(e) ? (this.data = r, this) : r;
|
|
1146
1146
|
};
|
|
1147
1147
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1148
1148
|
W(e, e.J, t[n], String.prototype[t[n]]);
|
|
@@ -1151,7 +1151,7 @@ function Io(e, t) {
|
|
|
1151
1151
|
try {
|
|
1152
1152
|
return String(this).localeCompare(r, o, a);
|
|
1153
1153
|
} catch (s) {
|
|
1154
|
-
|
|
1154
|
+
w(e, e.D, "localeCompare: " + s.message);
|
|
1155
1155
|
}
|
|
1156
1156
|
}, W(e, e.J, "localeCompare", n), n = function(r, o, a) {
|
|
1157
1157
|
var s = String(this);
|
|
@@ -1164,8 +1164,8 @@ function Io(e, t) {
|
|
|
1164
1164
|
}, r, a), r !== Oe && a(se(e, r));
|
|
1165
1165
|
else {
|
|
1166
1166
|
var u = e.ha(), d = He(e, r, u, a);
|
|
1167
|
-
u.onmessage = function(
|
|
1168
|
-
clearTimeout(d), a(se(e,
|
|
1167
|
+
u.onmessage = function(S) {
|
|
1168
|
+
clearTimeout(d), a(se(e, S.data));
|
|
1169
1169
|
}, u.postMessage(["split", s, r, o]);
|
|
1170
1170
|
}
|
|
1171
1171
|
return;
|
|
@@ -1214,8 +1214,8 @@ function Io(e, t) {
|
|
|
1214
1214
|
}, r, a), r !== Oe && a(r);
|
|
1215
1215
|
else {
|
|
1216
1216
|
var u = e.ha(), d = He(e, r, u, a);
|
|
1217
|
-
u.onmessage = function(
|
|
1218
|
-
clearTimeout(d), a(
|
|
1217
|
+
u.onmessage = function(S) {
|
|
1218
|
+
clearTimeout(d), a(S.data);
|
|
1219
1219
|
}, u.postMessage(["replace", s, r, o]);
|
|
1220
1220
|
}
|
|
1221
1221
|
return;
|
|
@@ -1223,14 +1223,14 @@ function Io(e, t) {
|
|
|
1223
1223
|
a(s.replace(r, o));
|
|
1224
1224
|
}, Ke(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function Io(e, t) {
|
|
1227
1227
|
e.mb = e.i(function(n) {
|
|
1228
|
-
return n =
|
|
1228
|
+
return n = ye.Boolean(n), ue(e) ? (this.data = n, this) : n;
|
|
1229
1229
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function To(e, t) {
|
|
1232
1232
|
var n = function(r) {
|
|
1233
|
-
return r = arguments.length ?
|
|
1233
|
+
return r = arguments.length ? ye.Number(r) : 0, ue(e) ? (this.data = r, this) : r;
|
|
1234
1234
|
};
|
|
1235
1235
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, y), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1236
1236
|
e.g(e.aa, t[n], Number[t[n]], Le);
|
|
@@ -1238,55 +1238,55 @@ function Ao(e, t) {
|
|
|
1238
1238
|
try {
|
|
1239
1239
|
return Number(this).toExponential(r);
|
|
1240
1240
|
} catch (o) {
|
|
1241
|
-
|
|
1241
|
+
w(e, e.D, o.message);
|
|
1242
1242
|
}
|
|
1243
1243
|
}, W(e, e.aa, "toExponential", n), n = function(r) {
|
|
1244
1244
|
try {
|
|
1245
1245
|
return Number(this).toFixed(r);
|
|
1246
1246
|
} catch (o) {
|
|
1247
|
-
|
|
1247
|
+
w(e, e.D, o.message);
|
|
1248
1248
|
}
|
|
1249
1249
|
}, W(e, e.aa, "toFixed", n), n = function(r) {
|
|
1250
1250
|
try {
|
|
1251
1251
|
return Number(this).toPrecision(r);
|
|
1252
1252
|
} catch (o) {
|
|
1253
|
-
|
|
1253
|
+
w(e, e.D, o.message);
|
|
1254
1254
|
}
|
|
1255
1255
|
}, W(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1256
1256
|
try {
|
|
1257
1257
|
return Number(this).toString(r);
|
|
1258
1258
|
} catch (o) {
|
|
1259
|
-
|
|
1259
|
+
w(e, e.D, o.message);
|
|
1260
1260
|
}
|
|
1261
1261
|
}, W(e, e.aa, "toString", n), n = function(r, o) {
|
|
1262
1262
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1263
1263
|
try {
|
|
1264
1264
|
return Number(this).toLocaleString(r, o);
|
|
1265
1265
|
} catch (a) {
|
|
1266
|
-
|
|
1266
|
+
w(e, e.D, "toLocaleString: " + a.message);
|
|
1267
1267
|
}
|
|
1268
1268
|
}, W(e, e.aa, "toLocaleString", n);
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function Ao(e, t) {
|
|
1271
1271
|
var n = function(o, a) {
|
|
1272
1272
|
if (!ue(e))
|
|
1273
|
-
return
|
|
1273
|
+
return ye.Date();
|
|
1274
1274
|
var s = [null].concat(Array.from(arguments));
|
|
1275
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1275
|
+
return this.data = new (Function.prototype.bind.apply(ye.Date, s))(), this;
|
|
1276
1276
|
};
|
|
1277
1277
|
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, y), e.g(e.$, "now", e.i(Date.now, !1), y), e.g(e.$, "parse", e.i(Date.parse, !1), y), e.g(e.$, "UTC", e.i(Date.UTC, !1), y), 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(" ");
|
|
1278
1278
|
for (var r = 0; r < t.length; r++)
|
|
1279
1279
|
n = function(o) {
|
|
1280
1280
|
return function(a) {
|
|
1281
1281
|
var s = this.data;
|
|
1282
|
-
s instanceof Date ||
|
|
1282
|
+
s instanceof Date || w(e, e.j, o + " not called on a Date");
|
|
1283
1283
|
for (var u = [], d = 0; d < arguments.length; d++)
|
|
1284
1284
|
u[d] = e.R(arguments[d]);
|
|
1285
1285
|
return s[o].apply(s, u);
|
|
1286
1286
|
};
|
|
1287
1287
|
}(t[r]), W(e, e.$, t[r], n);
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1289
|
+
function Oo(e, t) {
|
|
1290
1290
|
var n = function(r, o) {
|
|
1291
1291
|
if (ue(e))
|
|
1292
1292
|
var a = this;
|
|
@@ -1295,19 +1295,19 @@ function jo(e, t) {
|
|
|
1295
1295
|
return r;
|
|
1296
1296
|
a = e.s(e.Ma);
|
|
1297
1297
|
}
|
|
1298
|
-
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) ||
|
|
1298
|
+
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || w(e, e.T, "Invalid regexp flag: " + o);
|
|
1299
1299
|
try {
|
|
1300
|
-
var s = new
|
|
1300
|
+
var s = new ye.RegExp(r, o);
|
|
1301
1301
|
} catch (u) {
|
|
1302
|
-
|
|
1302
|
+
w(e, e.T, u.message);
|
|
1303
1303
|
}
|
|
1304
|
-
return
|
|
1304
|
+
return zt(e, a, s), a;
|
|
1305
1305
|
};
|
|
1306
1306
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, J), e.g(e.I.h.prototype, "ignoreCase", void 0, J), e.g(e.I.h.prototype, "multiline", void 0, J), e.g(e.I.h.prototype, "source", "(?:)", J), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1307
|
-
function a(
|
|
1308
|
-
if (
|
|
1309
|
-
var
|
|
1310
|
-
return e.g(
|
|
1307
|
+
function a(C) {
|
|
1308
|
+
if (C) {
|
|
1309
|
+
var b = se(e, C);
|
|
1310
|
+
return e.g(b, "index", C.index), e.g(b, "input", C.input), b;
|
|
1311
1311
|
}
|
|
1312
1312
|
return null;
|
|
1313
1313
|
}
|
|
@@ -1319,29 +1319,29 @@ function jo(e, t) {
|
|
|
1319
1319
|
regexp: s
|
|
1320
1320
|
}, s, o), r !== Oe && (e.g(this, "lastIndex", s.lastIndex), o(a(r)));
|
|
1321
1321
|
else {
|
|
1322
|
-
var u = e.ha(), d = He(e, s, u, o),
|
|
1323
|
-
u.onmessage = function(
|
|
1324
|
-
clearTimeout(d), e.g(
|
|
1322
|
+
var u = e.ha(), d = He(e, s, u, o), S = this;
|
|
1323
|
+
u.onmessage = function(C) {
|
|
1324
|
+
clearTimeout(d), e.g(S, "lastIndex", C.data[1]), o(a(C.data[0]));
|
|
1325
1325
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1326
1326
|
}
|
|
1327
1327
|
else
|
|
1328
1328
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(a(r));
|
|
1329
1329
|
}, Ke(e, e.I, "exec", n);
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function jo(e, t) {
|
|
1332
1332
|
function n(r) {
|
|
1333
1333
|
var o = e.i(function(a) {
|
|
1334
1334
|
var s = ue(e) ? this : e.Aa(o);
|
|
1335
|
-
return
|
|
1335
|
+
return Wt(e, s, a), s;
|
|
1336
1336
|
}, !0);
|
|
1337
1337
|
return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name", r, y), e.g(t, r, o, y), o;
|
|
1338
1338
|
}
|
|
1339
1339
|
e.D = e.i(function(r) {
|
|
1340
1340
|
var o = ue(e) ? this : e.Aa(e.D);
|
|
1341
|
-
return
|
|
1341
|
+
return Wt(e, o, r), o;
|
|
1342
1342
|
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function Ro(e, t) {
|
|
1345
1345
|
var n = e.s(e.M);
|
|
1346
1346
|
e.g(t, "Math", n, y);
|
|
1347
1347
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1350,23 +1350,23 @@ function Po(e, t) {
|
|
|
1350
1350
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1351
1351
|
e.g(n, r[t], e.i(Math[r[t]], !1), y);
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function Po(e, t) {
|
|
1354
1354
|
var n = e.s(e.M);
|
|
1355
1355
|
e.g(t, "JSON", n, y), t = function(r) {
|
|
1356
1356
|
try {
|
|
1357
1357
|
var o = JSON.parse(String(r));
|
|
1358
1358
|
} catch (a) {
|
|
1359
|
-
|
|
1359
|
+
w(e, e.T, a.message);
|
|
1360
1360
|
}
|
|
1361
1361
|
return e.Ia(o);
|
|
1362
1362
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, a) {
|
|
1363
|
-
o && o.H === "Function" ?
|
|
1363
|
+
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = ur(e, o), o = o.filter(function(u) {
|
|
1364
1364
|
return typeof u == "string" || typeof u == "number";
|
|
1365
1365
|
})) : o = null, typeof a != "string" && typeof a != "number" && (a = void 0), r = e.R(r);
|
|
1366
1366
|
try {
|
|
1367
1367
|
var s = JSON.stringify(r, o, a);
|
|
1368
1368
|
} catch (u) {
|
|
1369
|
-
|
|
1369
|
+
w(e, e.j, u.message);
|
|
1370
1370
|
}
|
|
1371
1371
|
return s;
|
|
1372
1372
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1383,10 +1383,10 @@ function H(e, t, n) {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
return !1;
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function zt(e, t, n) {
|
|
1387
1387
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, J), e.g(t, "global", n.global, J), e.g(t, "ignoreCase", n.ignoreCase, J), e.g(t, "multiline", n.multiline, J);
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function Wt(e, t, n) {
|
|
1390
1390
|
n && e.g(t, "message", String(n), y), n = [];
|
|
1391
1391
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1392
1392
|
var o = e.o[r], a = o.node;
|
|
@@ -1417,7 +1417,7 @@ function We(e, t, n, r, o) {
|
|
|
1417
1417
|
try {
|
|
1418
1418
|
return le.runInNewContext(t, n, a);
|
|
1419
1419
|
} catch {
|
|
1420
|
-
o(null),
|
|
1420
|
+
o(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1421
1421
|
}
|
|
1422
1422
|
return Oe;
|
|
1423
1423
|
}
|
|
@@ -1438,13 +1438,13 @@ function $e(e, t, n) {
|
|
|
1438
1438
|
r = !!le;
|
|
1439
1439
|
} else
|
|
1440
1440
|
r = !1;
|
|
1441
|
-
r || (n(null),
|
|
1441
|
+
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
1442
1442
|
}
|
|
1443
1443
|
function He(e, t, n, r) {
|
|
1444
1444
|
return setTimeout(function() {
|
|
1445
1445
|
n.terminate(), r(null);
|
|
1446
1446
|
try {
|
|
1447
|
-
|
|
1447
|
+
w(e, e.D, "RegExp Timeout: " + t);
|
|
1448
1448
|
} catch {
|
|
1449
1449
|
}
|
|
1450
1450
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
@@ -1465,19 +1465,19 @@ function Re(e) {
|
|
|
1465
1465
|
writable: !0
|
|
1466
1466
|
}), t.H = "Array", t;
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function qt(e, t, n) {
|
|
1469
1469
|
var r = e.s(e.Z);
|
|
1470
1470
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, J), r.H = "Function", r;
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1473
|
-
var o =
|
|
1472
|
+
function Zt(e, t, n, r) {
|
|
1473
|
+
var o = qt(e, t.oa.length, !0);
|
|
1474
1474
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", J), o;
|
|
1475
1475
|
}
|
|
1476
1476
|
N.i = function(e, t) {
|
|
1477
|
-
return t =
|
|
1477
|
+
return t = qt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, J), t;
|
|
1478
1478
|
};
|
|
1479
1479
|
N.ub = function(e) {
|
|
1480
|
-
var t =
|
|
1480
|
+
var t = qt(this, e.length, !0);
|
|
1481
1481
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, J), t;
|
|
1482
1482
|
};
|
|
1483
1483
|
N.Ia = function(e) {
|
|
@@ -1487,7 +1487,7 @@ N.Ia = function(e) {
|
|
|
1487
1487
|
return e;
|
|
1488
1488
|
if (e instanceof RegExp) {
|
|
1489
1489
|
var t = this.s(this.Ma);
|
|
1490
|
-
return
|
|
1490
|
+
return zt(this, t, e), t;
|
|
1491
1491
|
}
|
|
1492
1492
|
if (e instanceof Date)
|
|
1493
1493
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1546,11 +1546,11 @@ function se(e, t) {
|
|
|
1546
1546
|
e.g(n, r[o], t[r[o]]);
|
|
1547
1547
|
return n;
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function ur(e, t) {
|
|
1550
1550
|
var n = [], r;
|
|
1551
1551
|
for (r in t.h)
|
|
1552
1552
|
n[r] = e.G(t, r);
|
|
1553
|
-
return n.length =
|
|
1553
|
+
return n.length = Jt(e.G(t, "length")) || 0, n;
|
|
1554
1554
|
}
|
|
1555
1555
|
function ce(e, t) {
|
|
1556
1556
|
switch (typeof t) {
|
|
@@ -1566,7 +1566,7 @@ function ce(e, t) {
|
|
|
1566
1566
|
N.G = function(e, t) {
|
|
1567
1567
|
if (this.P)
|
|
1568
1568
|
throw Error("Getter not supported in that context");
|
|
1569
|
-
if (t = String(t), e != null ||
|
|
1569
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof R))
|
|
1570
1570
|
throw TypeError("Expecting native value or pseudo object");
|
|
1571
1571
|
if (t === "length") {
|
|
1572
1572
|
if (H(this, e, this.J))
|
|
@@ -1600,15 +1600,15 @@ function ft(e, t, n) {
|
|
|
1600
1600
|
N.g = function(e, t, n, r) {
|
|
1601
1601
|
if (this.Ka)
|
|
1602
1602
|
throw Error("Setter not supported in that context");
|
|
1603
|
-
if (t = String(t), e != null ||
|
|
1603
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof R))
|
|
1604
1604
|
throw TypeError("Expecting native value or pseudo object");
|
|
1605
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1606
|
-
var o = !this.o ||
|
|
1605
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1606
|
+
var o = !this.o || Qt(this).S;
|
|
1607
1607
|
if (e instanceof R) {
|
|
1608
1608
|
if (H(this, e, this.J)) {
|
|
1609
1609
|
var a = Xe(t);
|
|
1610
1610
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1611
|
-
o &&
|
|
1611
|
+
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1612
1612
|
return;
|
|
1613
1613
|
}
|
|
1614
1614
|
}
|
|
@@ -1619,7 +1619,7 @@ N.g = function(e, t, n, r) {
|
|
|
1619
1619
|
return;
|
|
1620
1620
|
n = r.value;
|
|
1621
1621
|
}
|
|
1622
|
-
if (n =
|
|
1622
|
+
if (n = Jt(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < a)
|
|
1623
1623
|
for (s in e.h) {
|
|
1624
1624
|
var s = Xe(s);
|
|
1625
1625
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1632,7 +1632,7 @@ N.g = function(e, t, n, r) {
|
|
|
1632
1632
|
try {
|
|
1633
1633
|
Object.defineProperty(e.h, t, o);
|
|
1634
1634
|
} catch {
|
|
1635
|
-
|
|
1635
|
+
w(this, this.j, "Cannot redefine property: " + t);
|
|
1636
1636
|
}
|
|
1637
1637
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1638
1638
|
} else {
|
|
@@ -1646,18 +1646,18 @@ N.g = function(e, t, n, r) {
|
|
|
1646
1646
|
if (r.Y && r.Y[t])
|
|
1647
1647
|
return this.Ka = !0, r.Y[t];
|
|
1648
1648
|
if (r.V && r.V[t])
|
|
1649
|
-
o &&
|
|
1649
|
+
o && w(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1650
1650
|
else
|
|
1651
1651
|
try {
|
|
1652
1652
|
e.h[t] = n;
|
|
1653
1653
|
} catch {
|
|
1654
|
-
o &&
|
|
1654
|
+
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
1657
1657
|
else
|
|
1658
|
-
o &&
|
|
1658
|
+
o && w(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1659
1659
|
} else
|
|
1660
|
-
o &&
|
|
1660
|
+
o && w(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1661
1661
|
};
|
|
1662
1662
|
N.g.ac = function() {
|
|
1663
1663
|
throw Error("Placeholder getter");
|
|
@@ -1671,12 +1671,12 @@ function W(e, t, n, r) {
|
|
|
1671
1671
|
function Ke(e, t, n, r) {
|
|
1672
1672
|
e.g(t.h.prototype, n, e.ub(r), y);
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function Qt(e) {
|
|
1675
1675
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1676
1676
|
throw Error("No scope found");
|
|
1677
1677
|
return e;
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function $t(e, t, n) {
|
|
1680
1680
|
var r = !1;
|
|
1681
1681
|
if (n && n.S)
|
|
1682
1682
|
r = !0;
|
|
@@ -1684,30 +1684,30 @@ function Ht(e, t, n) {
|
|
|
1684
1684
|
var o = t.body && t.body[0];
|
|
1685
1685
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1686
1686
|
}
|
|
1687
|
-
return o = e.s(null), r = new
|
|
1687
|
+
return o = e.s(null), r = new dr(n, r, o), n || xo(e, r.object), Je(e, t, r), r;
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1689
|
+
function en(e, t, n) {
|
|
1690
1690
|
if (!t)
|
|
1691
1691
|
throw Error("parentScope required");
|
|
1692
|
-
return e = n || e.s(null), new
|
|
1692
|
+
return e = n || e.s(null), new dr(t, t.S, e);
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1695
|
-
for (var n =
|
|
1694
|
+
function tn(e, t) {
|
|
1695
|
+
for (var n = Qt(e); n && n !== e.N; ) {
|
|
1696
1696
|
if (t in n.object.h)
|
|
1697
1697
|
return n.object.h[t];
|
|
1698
1698
|
n = n.Va;
|
|
1699
1699
|
}
|
|
1700
1700
|
if (n === e.N && ft(e, n.object, t))
|
|
1701
1701
|
return e.G(n.object, t);
|
|
1702
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
1702
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1705
|
-
for (var r =
|
|
1704
|
+
function fr(e, t, n) {
|
|
1705
|
+
for (var r = Qt(e), o = r.S; r && r !== e.N; ) {
|
|
1706
1706
|
if (t in r.object.h) {
|
|
1707
1707
|
try {
|
|
1708
1708
|
r.object.h[t] = n;
|
|
1709
1709
|
} catch {
|
|
1710
|
-
o &&
|
|
1710
|
+
o && w(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1711
1711
|
}
|
|
1712
1712
|
return;
|
|
1713
1713
|
}
|
|
@@ -1715,7 +1715,7 @@ function dr(e, t, n) {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
if (r === e.N && (!o || ft(e, r.object, t)))
|
|
1717
1717
|
return e.g(r.object, t, n);
|
|
1718
|
-
|
|
1718
|
+
w(e, e.pb, t + " is not defined");
|
|
1719
1719
|
}
|
|
1720
1720
|
function Je(e, t, n) {
|
|
1721
1721
|
if (t.jb)
|
|
@@ -1763,20 +1763,20 @@ function Je(e, t, n) {
|
|
|
1763
1763
|
t.jb = r;
|
|
1764
1764
|
}
|
|
1765
1765
|
for (s in r)
|
|
1766
|
-
r[s] === !0 ? e.g(n.object, s, void 0,
|
|
1766
|
+
r[s] === !0 ? e.g(n.object, s, void 0, Wn) : e.g(n.object, s, Zt(e, r[s], n), Wn);
|
|
1767
1767
|
return r;
|
|
1768
1768
|
}
|
|
1769
1769
|
function ue(e) {
|
|
1770
1770
|
return e.o[e.o.length - 1].isConstructor;
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1773
|
-
return t[0] === Pe ?
|
|
1772
|
+
function nn(e, t) {
|
|
1773
|
+
return t[0] === Pe ? tn(e, t[1]) : e.G(t[0], t[1]);
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1776
|
-
return t[0] === Pe ?
|
|
1775
|
+
function rn(e, t, n) {
|
|
1776
|
+
return t[0] === Pe ? fr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1779
|
-
throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t),
|
|
1778
|
+
function w(e, t, n) {
|
|
1779
|
+
throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), Wt(e, t, n)), ze(e, 4, t), cr) : n === void 0 ? t : n;
|
|
1780
1780
|
}
|
|
1781
1781
|
function ze(e, t, n, r) {
|
|
1782
1782
|
if (t === 0)
|
|
@@ -1854,7 +1854,7 @@ function Y(e, t) {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
return "???";
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function Hn(e, t, n) {
|
|
1858
1858
|
var r = e.o[e.o.length - 1], o = Array.from(n), a = o.shift();
|
|
1859
1859
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1860
1860
|
var s = e.ya();
|
|
@@ -1864,19 +1864,19 @@ function Gn(e, t, n) {
|
|
|
1864
1864
|
} else {
|
|
1865
1865
|
try {
|
|
1866
1866
|
var d = je(String(a), "taskCode" + e.ic++);
|
|
1867
|
-
} catch (
|
|
1868
|
-
|
|
1867
|
+
} catch (S) {
|
|
1868
|
+
w(e, e.T, "Invalid code: " + S.message);
|
|
1869
1869
|
}
|
|
1870
1870
|
s.type = "EvalProgram_", s.body = d.body, r = r.node.arguments[0], ut(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1871
1871
|
}
|
|
1872
|
-
return t = new
|
|
1872
|
+
return t = new No(u, o, r, s, t ? n : -1), pr(e, t, n), t.Db;
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function pr(e, t, n) {
|
|
1875
1875
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
1876
1876
|
return r.time - o.time;
|
|
1877
1877
|
});
|
|
1878
1878
|
}
|
|
1879
|
-
function
|
|
1879
|
+
function Kn(e, t) {
|
|
1880
1880
|
for (var n = 0; n < e.ca.length; n++)
|
|
1881
1881
|
if (e.ca[n].Db == t) {
|
|
1882
1882
|
e.ca.splice(n, 1);
|
|
@@ -1890,7 +1890,7 @@ function qe(e, t, n) {
|
|
|
1890
1890
|
var r = e.ya();
|
|
1891
1891
|
return r.type = "CallExpression", e = new v(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1893
|
+
function on(e, t, n, r) {
|
|
1894
1894
|
if (!e.Ka)
|
|
1895
1895
|
throw Error("Unexpected call to createSetter");
|
|
1896
1896
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
@@ -1912,7 +1912,7 @@ N.ec = function(e) {
|
|
|
1912
1912
|
function v(e, t) {
|
|
1913
1913
|
this.node = e, this.scope = t;
|
|
1914
1914
|
}
|
|
1915
|
-
function
|
|
1915
|
+
function dr(e, t, n) {
|
|
1916
1916
|
this.Va = e, this.S = t, this.object = n;
|
|
1917
1917
|
}
|
|
1918
1918
|
function R(e) {
|
|
@@ -1928,7 +1928,7 @@ N.toString = function() {
|
|
|
1928
1928
|
if (!(this instanceof R))
|
|
1929
1929
|
return String(this);
|
|
1930
1930
|
if (this.H === "Array") {
|
|
1931
|
-
var e =
|
|
1931
|
+
var e = $n;
|
|
1932
1932
|
e.push(this);
|
|
1933
1933
|
try {
|
|
1934
1934
|
var t = [], n = this.h.length, r = !1;
|
|
@@ -1944,7 +1944,7 @@ N.toString = function() {
|
|
|
1944
1944
|
return t.join(",");
|
|
1945
1945
|
}
|
|
1946
1946
|
if (this.H === "Error") {
|
|
1947
|
-
if (e =
|
|
1947
|
+
if (e = $n, e.indexOf(this) !== -1)
|
|
1948
1948
|
return "[object Error]";
|
|
1949
1949
|
n = this;
|
|
1950
1950
|
do
|
|
@@ -1973,10 +1973,10 @@ N.toString = function() {
|
|
|
1973
1973
|
N.valueOf = function() {
|
|
1974
1974
|
return !Ge || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1975
1975
|
};
|
|
1976
|
-
function
|
|
1977
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
1976
|
+
function No(e, t, n, r, o) {
|
|
1977
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Bo, this.time = 0;
|
|
1978
1978
|
}
|
|
1979
|
-
var
|
|
1979
|
+
var Bo = 0;
|
|
1980
1980
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
1981
1981
|
n = n.elements;
|
|
1982
1982
|
var r = t.A || 0;
|
|
@@ -1991,7 +1991,7 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
1991
1991
|
if (!t.ja)
|
|
1992
1992
|
return t.ja = !0, t = new v(n.left, t.scope), t.sa = !0, t;
|
|
1993
1993
|
if (!t.Da)
|
|
1994
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
1994
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = nn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, qe(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new v(n.right, t.scope));
|
|
1995
1995
|
if (t.ta)
|
|
1996
1996
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1997
1997
|
else {
|
|
@@ -2036,8 +2036,8 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2036
2036
|
default:
|
|
2037
2037
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2038
2038
|
}
|
|
2039
|
-
if (n =
|
|
2040
|
-
return t.ta = !0, t.ib = r,
|
|
2039
|
+
if (n = rn(this, t.Fa, r))
|
|
2040
|
+
return t.ta = !0, t.ib = r, on(this, n, t.Fa, r);
|
|
2041
2041
|
e.pop(), e[e.length - 1].value = r;
|
|
2042
2042
|
}
|
|
2043
2043
|
};
|
|
@@ -2107,10 +2107,10 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2107
2107
|
n = r >>> t;
|
|
2108
2108
|
break;
|
|
2109
2109
|
case "in":
|
|
2110
|
-
t instanceof R ||
|
|
2110
|
+
t instanceof R || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = ft(this, t, r);
|
|
2111
2111
|
break;
|
|
2112
2112
|
case "instanceof":
|
|
2113
|
-
H(this, t, this.O) ||
|
|
2113
|
+
H(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof R ? H(this, r, t) : !1;
|
|
2114
2114
|
break;
|
|
2115
2115
|
default:
|
|
2116
2116
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2137,7 +2137,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2137
2137
|
t.ia = 2;
|
|
2138
2138
|
var o = t.value;
|
|
2139
2139
|
if (Array.isArray(o)) {
|
|
2140
|
-
if (t.U =
|
|
2140
|
+
if (t.U = nn(this, o), o[0] === Pe ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2141
2141
|
return t.ia = 1, qe(this, o, t.value);
|
|
2142
2142
|
} else
|
|
2143
2143
|
t.U = o;
|
|
@@ -2147,7 +2147,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2147
2147
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2148
2148
|
return new v(n.arguments[t.A++], t.scope);
|
|
2149
2149
|
if (n.type === "NewExpression") {
|
|
2150
|
-
if (o instanceof R && !o.Ab ||
|
|
2150
|
+
if (o instanceof R && !o.Ab || w(this, this.j, Y(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2151
2151
|
t.B = Re(this);
|
|
2152
2152
|
else {
|
|
2153
2153
|
var a = o.h.prototype;
|
|
@@ -2160,12 +2160,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2160
2160
|
if (t.eb)
|
|
2161
2161
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2162
2162
|
else {
|
|
2163
|
-
if (t.eb = !0, o instanceof R ||
|
|
2164
|
-
for (n =
|
|
2163
|
+
if (t.eb = !0, o instanceof R || w(this, this.j, Y(this, n.callee) + " is not a function"), e = o.node) {
|
|
2164
|
+
for (n = $t(this, e.body, o.Va), r = Re(this), o = 0; o < t.F.length; o++)
|
|
2165
2165
|
this.g(r, o, t.F[o]);
|
|
2166
2166
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2167
2167
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2168
|
-
return n.S || (t.B = _t(this, t.B)), this.g(n.object, "this", t.B,
|
|
2168
|
+
return n.S || (t.B = _t(this, t.B)), this.g(n.object, "this", t.B, Yt), t.value = void 0, new v(e.body, n);
|
|
2169
2169
|
}
|
|
2170
2170
|
if (o.eval)
|
|
2171
2171
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2174,9 +2174,9 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2174
2174
|
try {
|
|
2175
2175
|
r = je(String(o), "eval" + this.Hb++);
|
|
2176
2176
|
} catch (u) {
|
|
2177
|
-
|
|
2177
|
+
w(this, this.T, "Invalid code: " + u.message);
|
|
2178
2178
|
}
|
|
2179
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n =
|
|
2179
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : Je(this, r, n), this.value = void 0, new v(o, n);
|
|
2180
2180
|
}
|
|
2181
2181
|
else if (o.Ta)
|
|
2182
2182
|
t.scope.S || (t.B = _t(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
@@ -2186,7 +2186,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2186
2186
|
t.value = u, s.za = !1;
|
|
2187
2187
|
}), this.za = !0, t.scope.S || (t.B = _t(this, t.B)), o.Za.apply(t.B, r);
|
|
2188
2188
|
} else
|
|
2189
|
-
|
|
2189
|
+
w(this, this.j, Y(this, n.callee) + " is not callable");
|
|
2190
2190
|
}
|
|
2191
2191
|
};
|
|
2192
2192
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
@@ -2232,7 +2232,7 @@ h.prototype.stepExpressionStatement = function(e, t, n) {
|
|
|
2232
2232
|
};
|
|
2233
2233
|
h.prototype.stepForInStatement = function(e, t, n) {
|
|
2234
2234
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2235
|
-
return t.scope.S &&
|
|
2235
|
+
return t.scope.S && w(this, this.T, "for-in loop variable declaration may not have an initializer"), new v(n.left, t.scope);
|
|
2236
2236
|
if (!t.Ca)
|
|
2237
2237
|
return t.Ca = !0, t.pa || (t.pa = t.value), new v(n.right, t.scope);
|
|
2238
2238
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
@@ -2265,8 +2265,8 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2265
2265
|
t.pa = [Pe, e.fa[0].id.name];
|
|
2266
2266
|
else
|
|
2267
2267
|
return t.pa = null, t = new v(e, t.scope), t.sa = !0, t;
|
|
2268
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2269
|
-
return
|
|
2268
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = rn(this, t.pa, e)))
|
|
2269
|
+
return on(this, r, t.pa, e);
|
|
2270
2270
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2271
2271
|
return new v(n.body, t.scope);
|
|
2272
2272
|
};
|
|
@@ -2295,13 +2295,13 @@ h.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2295
2295
|
e.pop();
|
|
2296
2296
|
};
|
|
2297
2297
|
h.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2298
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2298
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = en(this, e)), t.value = Zt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Yt);
|
|
2299
2299
|
};
|
|
2300
2300
|
h.prototype.stepIdentifier = function(e, t, n) {
|
|
2301
2301
|
if (e.pop(), t.sa)
|
|
2302
2302
|
e[e.length - 1].value = [Pe, n.name];
|
|
2303
2303
|
else {
|
|
2304
|
-
if (t =
|
|
2304
|
+
if (t = tn(this, n.name), this.P)
|
|
2305
2305
|
return qe(this, t, this.Na);
|
|
2306
2306
|
e[e.length - 1].value = t;
|
|
2307
2307
|
}
|
|
@@ -2311,7 +2311,7 @@ h.prototype.stepLabeledStatement = function(e, t, n) {
|
|
|
2311
2311
|
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new v(n.body, t.scope), t.labels = e, t;
|
|
2312
2312
|
};
|
|
2313
2313
|
h.prototype.stepLiteral = function(e, t, n) {
|
|
2314
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2314
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), zt(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2315
2315
|
};
|
|
2316
2316
|
h.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2317
2317
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
@@ -2414,11 +2414,11 @@ h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2414
2414
|
}
|
|
2415
2415
|
};
|
|
2416
2416
|
h.prototype.stepThisExpression = function(e) {
|
|
2417
|
-
e.pop(), e[e.length - 1].value =
|
|
2417
|
+
e.pop(), e[e.length - 1].value = tn(this, "this");
|
|
2418
2418
|
};
|
|
2419
2419
|
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2420
2420
|
if (t.ka)
|
|
2421
|
-
|
|
2421
|
+
w(this, t.value);
|
|
2422
2422
|
else
|
|
2423
2423
|
return t.ka = !0, new v(n.K, t.scope);
|
|
2424
2424
|
};
|
|
@@ -2426,7 +2426,7 @@ h.prototype.stepTryStatement = function(e, t, n) {
|
|
|
2426
2426
|
if (!t.Rb)
|
|
2427
2427
|
return t.Rb = !0, new v(n.block, t.scope);
|
|
2428
2428
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2429
|
-
return t.Tb = !0, e =
|
|
2429
|
+
return t.Tb = !0, e = en(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new v(n.Ea.body, e);
|
|
2430
2430
|
if (!t.Sb && n.fb)
|
|
2431
2431
|
return t.Sb = !0, new v(n.fb, t.scope);
|
|
2432
2432
|
e.pop(), t.ea && ze(this, t.ea.type, t.ea.value, t.ea.label);
|
|
@@ -2456,7 +2456,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2456
2456
|
try {
|
|
2457
2457
|
delete o.h[r];
|
|
2458
2458
|
} catch {
|
|
2459
|
-
t.scope.S ?
|
|
2459
|
+
t.scope.S ? w(this, this.j, "Cannot delete property '" + r + "' of '" + o + "'") : n = !1;
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
2462
2462
|
r = n;
|
|
@@ -2476,7 +2476,7 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2476
2476
|
if (!t.ja)
|
|
2477
2477
|
return t.ja = !0, e = new v(n.K, t.scope), e.sa = !0, e;
|
|
2478
2478
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2479
|
-
var r =
|
|
2479
|
+
var r = nn(this, t.Ga);
|
|
2480
2480
|
if (t.ma = r, this.P)
|
|
2481
2481
|
return t.Ba = !0, qe(this, r, t.Ga);
|
|
2482
2482
|
}
|
|
@@ -2489,15 +2489,15 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2489
2489
|
o = r - 1;
|
|
2490
2490
|
else
|
|
2491
2491
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2492
|
-
if (n = n.prefix ? o : r, r =
|
|
2493
|
-
return t.ta = !0, t.ib = n,
|
|
2492
|
+
if (n = n.prefix ? o : r, r = rn(this, t.Ga, o))
|
|
2493
|
+
return t.ta = !0, t.ib = n, on(this, r, t.Ga, o);
|
|
2494
2494
|
e.pop(), e[e.length - 1].value = n;
|
|
2495
2495
|
}
|
|
2496
2496
|
};
|
|
2497
2497
|
h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2498
2498
|
n = n.fa;
|
|
2499
2499
|
var r = t.A || 0, o = n[r];
|
|
2500
|
-
for (t.Bb && o && (
|
|
2500
|
+
for (t.Bb && o && (fr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2501
2501
|
if (o.ua)
|
|
2502
2502
|
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new v(o.ua, t.scope);
|
|
2503
2503
|
o = n[++r];
|
|
@@ -2505,10 +2505,10 @@ h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2505
2505
|
e.pop();
|
|
2506
2506
|
};
|
|
2507
2507
|
h.prototype.stepWithStatement = function(e, t, n) {
|
|
2508
|
-
return t.Ca ? (e.pop(), e =
|
|
2508
|
+
return t.Ca ? (e.pop(), e = en(this, t.scope, t.value), new v(n.body, e)) : (t.Ca = !0, new v(n.object, t.scope));
|
|
2509
2509
|
};
|
|
2510
2510
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2511
|
-
|
|
2511
|
+
ye.Interpreter = h;
|
|
2512
2512
|
h.prototype.step = h.prototype.lb;
|
|
2513
2513
|
h.prototype.run = h.prototype.Eb;
|
|
2514
2514
|
h.prototype.appendCode = h.prototype.Jb;
|
|
@@ -2524,7 +2524,7 @@ h.prototype.getGlobalScope = h.prototype.Xb;
|
|
|
2524
2524
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2525
2525
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2526
2526
|
h.VALUE_IN_DESCRIPTOR = Ye;
|
|
2527
|
-
const
|
|
2527
|
+
const Mo = (e) => e.split(`
|
|
2528
2528
|
`).map((t) => {
|
|
2529
2529
|
const n = t.trim();
|
|
2530
2530
|
if (t.includes("__awaiter"))
|
|
@@ -2537,7 +2537,7 @@ const Uo = (e) => e.split(`
|
|
|
2537
2537
|
${u}
|
|
2538
2538
|
`;
|
|
2539
2539
|
}).filter(Boolean).join(`
|
|
2540
|
-
`),
|
|
2540
|
+
`), Gn = (e) => e + "JSON", Uo = ({
|
|
2541
2541
|
builder: e,
|
|
2542
2542
|
context: t,
|
|
2543
2543
|
event: n,
|
|
@@ -2549,47 +2549,47 @@ const Uo = (e) => e.split(`
|
|
|
2549
2549
|
const u = {
|
|
2550
2550
|
...r,
|
|
2551
2551
|
...o
|
|
2552
|
-
}, d =
|
|
2552
|
+
}, d = sr({
|
|
2553
2553
|
builder: e,
|
|
2554
2554
|
context: t,
|
|
2555
2555
|
event: n,
|
|
2556
2556
|
state: u
|
|
2557
|
-
}),
|
|
2558
|
-
const x =
|
|
2559
|
-
return `var ${
|
|
2557
|
+
}), S = d.map(([k]) => {
|
|
2558
|
+
const x = Gn(k);
|
|
2559
|
+
return `var ${k} = ${x} === undefined ? undefined : JSON.parse(${x});`;
|
|
2560
2560
|
}).join(`
|
|
2561
|
-
`),
|
|
2562
|
-
if (
|
|
2561
|
+
`), C = Mo(s);
|
|
2562
|
+
if (C === "") {
|
|
2563
2563
|
q.warn("Skipping evaluation of empty code block.");
|
|
2564
2564
|
return;
|
|
2565
2565
|
}
|
|
2566
|
-
const
|
|
2566
|
+
const b = `
|
|
2567
2567
|
function theFunction() {
|
|
2568
|
-
${
|
|
2568
|
+
${S}
|
|
2569
2569
|
|
|
2570
|
-
${
|
|
2570
|
+
${C}
|
|
2571
2571
|
}
|
|
2572
2572
|
theFunction();
|
|
2573
|
-
`, P = (
|
|
2574
|
-
const B =
|
|
2573
|
+
`, P = (k, x) => {
|
|
2574
|
+
const B = lr(u, k, x);
|
|
2575
2575
|
a == null || a(B);
|
|
2576
|
-
}, j = function(
|
|
2576
|
+
}, j = function(k, x) {
|
|
2577
2577
|
d.forEach(([B, $]) => {
|
|
2578
2578
|
const g = JSON.stringify($);
|
|
2579
|
-
|
|
2580
|
-
}),
|
|
2579
|
+
k.setProperty(x, Gn(B), g);
|
|
2580
|
+
}), k.setProperty(x, "setRootState", k.createNativeFunction(P));
|
|
2581
2581
|
};
|
|
2582
2582
|
try {
|
|
2583
|
-
const
|
|
2584
|
-
return
|
|
2585
|
-
} catch (
|
|
2583
|
+
const k = new h(b, j);
|
|
2584
|
+
return k.run(), k.pseudoToNative(k.value);
|
|
2585
|
+
} catch (k) {
|
|
2586
2586
|
q.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2587
|
-
e:
|
|
2587
|
+
e: k
|
|
2588
2588
|
});
|
|
2589
2589
|
return;
|
|
2590
2590
|
}
|
|
2591
|
-
},
|
|
2592
|
-
function
|
|
2591
|
+
}, Fo = (e) => G() ? yo(e) : Uo(e);
|
|
2592
|
+
function an({
|
|
2593
2593
|
code: e,
|
|
2594
2594
|
context: t,
|
|
2595
2595
|
localState: n,
|
|
@@ -2603,10 +2603,10 @@ function sn({
|
|
|
2603
2603
|
return;
|
|
2604
2604
|
}
|
|
2605
2605
|
const u = {
|
|
2606
|
-
code:
|
|
2606
|
+
code: go(e, {
|
|
2607
2607
|
isExpression: s
|
|
2608
2608
|
}),
|
|
2609
|
-
builder:
|
|
2609
|
+
builder: mo(),
|
|
2610
2610
|
context: t,
|
|
2611
2611
|
event: a,
|
|
2612
2612
|
rootSetState: o,
|
|
@@ -2614,7 +2614,7 @@ function sn({
|
|
|
2614
2614
|
localState: n
|
|
2615
2615
|
};
|
|
2616
2616
|
try {
|
|
2617
|
-
return
|
|
2617
|
+
return Fo(u);
|
|
2618
2618
|
} catch (d) {
|
|
2619
2619
|
q.error("Failed code evaluation: " + d.message, {
|
|
2620
2620
|
code: e
|
|
@@ -2623,7 +2623,7 @@ function sn({
|
|
|
2623
2623
|
}
|
|
2624
2624
|
}
|
|
2625
2625
|
const pt = (e) => JSON.parse(JSON.stringify(e));
|
|
2626
|
-
const
|
|
2626
|
+
const Vo = ({
|
|
2627
2627
|
block: e,
|
|
2628
2628
|
context: t,
|
|
2629
2629
|
localState: n,
|
|
@@ -2642,14 +2642,14 @@ const _o = ({
|
|
|
2642
2642
|
}
|
|
2643
2643
|
};
|
|
2644
2644
|
for (const u in e.bindings) {
|
|
2645
|
-
const d = e.bindings[u],
|
|
2645
|
+
const d = e.bindings[u], S = an({
|
|
2646
2646
|
code: d,
|
|
2647
2647
|
localState: n,
|
|
2648
2648
|
rootState: r,
|
|
2649
2649
|
rootSetState: o,
|
|
2650
2650
|
context: t
|
|
2651
2651
|
});
|
|
2652
|
-
|
|
2652
|
+
lr(s, u, S);
|
|
2653
2653
|
}
|
|
2654
2654
|
return s;
|
|
2655
2655
|
};
|
|
@@ -2662,7 +2662,7 @@ function ct({
|
|
|
2662
2662
|
rootSetState: a
|
|
2663
2663
|
}) {
|
|
2664
2664
|
const s = e;
|
|
2665
|
-
return n ?
|
|
2665
|
+
return n ? Vo({
|
|
2666
2666
|
block: s,
|
|
2667
2667
|
localState: r,
|
|
2668
2668
|
rootState: o,
|
|
@@ -2670,7 +2670,7 @@ function ct({
|
|
|
2670
2670
|
context: t
|
|
2671
2671
|
}) : s;
|
|
2672
2672
|
}
|
|
2673
|
-
const
|
|
2673
|
+
const _o = ({
|
|
2674
2674
|
block: e,
|
|
2675
2675
|
context: t,
|
|
2676
2676
|
registeredComponents: n
|
|
@@ -2692,7 +2692,7 @@ const Do = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2692
2692
|
console.warn(`
|
|
2693
2693
|
Could not find a registered component named "${r}".
|
|
2694
2694
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2695
|
-
},
|
|
2695
|
+
}, Do = ({
|
|
2696
2696
|
block: e,
|
|
2697
2697
|
context: t
|
|
2698
2698
|
}) => {
|
|
@@ -2702,7 +2702,7 @@ const Do = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2702
2702
|
} = e;
|
|
2703
2703
|
if (!(n != null && n.collection))
|
|
2704
2704
|
return;
|
|
2705
|
-
const o =
|
|
2705
|
+
const o = an({
|
|
2706
2706
|
code: n.collection,
|
|
2707
2707
|
localState: t.localState,
|
|
2708
2708
|
rootState: t.rootState,
|
|
@@ -2712,20 +2712,20 @@ const Do = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2712
2712
|
if (!Array.isArray(o))
|
|
2713
2713
|
return;
|
|
2714
2714
|
const a = n.collection.split(".").pop(), s = n.itemName || (a ? a + "Item" : "item");
|
|
2715
|
-
return o.map((d,
|
|
2715
|
+
return o.map((d, S) => ({
|
|
2716
2716
|
context: {
|
|
2717
2717
|
...t,
|
|
2718
2718
|
localState: {
|
|
2719
2719
|
...t.localState,
|
|
2720
|
-
$index:
|
|
2720
|
+
$index: S,
|
|
2721
2721
|
$item: d,
|
|
2722
2722
|
[s]: d,
|
|
2723
|
-
[`$${s}Index`]:
|
|
2723
|
+
[`$${s}Index`]: S
|
|
2724
2724
|
}
|
|
2725
2725
|
},
|
|
2726
2726
|
block: r
|
|
2727
2727
|
}));
|
|
2728
|
-
},
|
|
2728
|
+
}, hr = {
|
|
2729
2729
|
small: {
|
|
2730
2730
|
min: 320,
|
|
2731
2731
|
default: 321,
|
|
@@ -2741,11 +2741,11 @@ const Do = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2741
2741
|
default: 991,
|
|
2742
2742
|
max: 1200
|
|
2743
2743
|
}
|
|
2744
|
-
},
|
|
2744
|
+
}, Xn = (e, t = hr) => `@media (max-width: ${t[e].max}px)`, mr = ({
|
|
2745
2745
|
small: e,
|
|
2746
2746
|
medium: t
|
|
2747
2747
|
}) => {
|
|
2748
|
-
const n = pt(
|
|
2748
|
+
const n = pt(hr);
|
|
2749
2749
|
if (!e || !t)
|
|
2750
2750
|
return n;
|
|
2751
2751
|
const r = Math.floor(e / 2);
|
|
@@ -2767,26 +2767,26 @@ const Do = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2767
2767
|
min: a,
|
|
2768
2768
|
default: a + 1
|
|
2769
2769
|
}, n;
|
|
2770
|
-
},
|
|
2770
|
+
}, Lo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), fe = (e) => e != null, gr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2771
2771
|
if (typeof r == "string")
|
|
2772
|
-
return `${
|
|
2773
|
-
}).filter(fe),
|
|
2774
|
-
`),
|
|
2772
|
+
return `${Lo(n)}: ${r};`;
|
|
2773
|
+
}).filter(fe), Wo = (e) => gr(e).join(`
|
|
2774
|
+
`), Dt = ({
|
|
2775
2775
|
mediaQuery: e,
|
|
2776
2776
|
className: t,
|
|
2777
2777
|
styles: n
|
|
2778
2778
|
}) => {
|
|
2779
2779
|
const r = `.${t} {
|
|
2780
|
-
${
|
|
2780
|
+
${Wo(n)}
|
|
2781
2781
|
}`;
|
|
2782
2782
|
return e ? `${e} {
|
|
2783
2783
|
${r}
|
|
2784
2784
|
}` : r;
|
|
2785
2785
|
};
|
|
2786
2786
|
function dt(e) {
|
|
2787
|
-
return /* @__PURE__ */
|
|
2787
|
+
return /* @__PURE__ */ E("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2788
2788
|
}
|
|
2789
|
-
function
|
|
2789
|
+
function $o(e) {
|
|
2790
2790
|
const t = function() {
|
|
2791
2791
|
const o = ct({
|
|
2792
2792
|
block: e.block,
|
|
@@ -2806,37 +2806,37 @@ function Ko(e) {
|
|
|
2806
2806
|
rootSetState: e.context.rootSetState,
|
|
2807
2807
|
context: e.context.context,
|
|
2808
2808
|
shouldEvaluateBindings: !0
|
|
2809
|
-
}), a = o.responsiveStyles, s = e.context.content, u =
|
|
2809
|
+
}), a = o.responsiveStyles, s = e.context.content, u = mr(
|
|
2810
2810
|
((x = s == null ? void 0 : s.meta) == null ? void 0 : x.breakpoints) || {}
|
|
2811
|
-
), d = a == null ? void 0 : a.large,
|
|
2812
|
-
if (!
|
|
2811
|
+
), d = a == null ? void 0 : a.large, S = a == null ? void 0 : a.medium, C = a == null ? void 0 : a.small, b = o.id;
|
|
2812
|
+
if (!b)
|
|
2813
2813
|
return "";
|
|
2814
|
-
const P = d ?
|
|
2815
|
-
className:
|
|
2814
|
+
const P = d ? Dt({
|
|
2815
|
+
className: b,
|
|
2816
2816
|
styles: d
|
|
2817
|
-
}) : "", j =
|
|
2818
|
-
className:
|
|
2819
|
-
styles:
|
|
2820
|
-
mediaQuery:
|
|
2817
|
+
}) : "", j = S ? Dt({
|
|
2818
|
+
className: b,
|
|
2819
|
+
styles: S,
|
|
2820
|
+
mediaQuery: Xn(
|
|
2821
2821
|
"medium",
|
|
2822
2822
|
u
|
|
2823
2823
|
)
|
|
2824
|
-
}) : "",
|
|
2825
|
-
className:
|
|
2826
|
-
styles:
|
|
2827
|
-
mediaQuery:
|
|
2824
|
+
}) : "", k = C ? Dt({
|
|
2825
|
+
className: b,
|
|
2826
|
+
styles: C,
|
|
2827
|
+
mediaQuery: Xn(
|
|
2828
2828
|
"small",
|
|
2829
2829
|
u
|
|
2830
2830
|
)
|
|
2831
2831
|
}) : "";
|
|
2832
|
-
return [P, j,
|
|
2832
|
+
return [P, j, k].join(" ");
|
|
2833
2833
|
};
|
|
2834
|
-
return /* @__PURE__ */
|
|
2834
|
+
return /* @__PURE__ */ E(L, { children: n() && t() ? /* @__PURE__ */ E(L, { children: /* @__PURE__ */ E(dt, { styles: n() }) }) : null });
|
|
2835
2835
|
}
|
|
2836
|
-
function
|
|
2836
|
+
function Ho(e) {
|
|
2837
2837
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2838
2838
|
}
|
|
2839
|
-
const
|
|
2839
|
+
const Ko = (e) => `on${Ho(e)}`, Go = (e, t) => (n) => an({
|
|
2840
2840
|
code: e,
|
|
2841
2841
|
context: t.context,
|
|
2842
2842
|
localState: t.localState,
|
|
@@ -2845,15 +2845,15 @@ const Xo = (e) => `on${Go(e)}`, Yo = (e, t) => (n) => sn({
|
|
|
2845
2845
|
event: n,
|
|
2846
2846
|
isExpression: !1
|
|
2847
2847
|
});
|
|
2848
|
-
function
|
|
2848
|
+
function Aa(e) {
|
|
2849
2849
|
const t = {}, n = e.block.actions ?? {};
|
|
2850
2850
|
for (const r in n) {
|
|
2851
2851
|
if (!n.hasOwnProperty(r))
|
|
2852
2852
|
continue;
|
|
2853
2853
|
const o = n[r];
|
|
2854
|
-
let a =
|
|
2854
|
+
let a = Ko(r);
|
|
2855
2855
|
if (e.stripPrefix)
|
|
2856
|
-
switch (
|
|
2856
|
+
switch (ve) {
|
|
2857
2857
|
case "vue":
|
|
2858
2858
|
a = a.replace("v-on:", "");
|
|
2859
2859
|
break;
|
|
@@ -2861,42 +2861,42 @@ function Ta(e) {
|
|
|
2861
2861
|
a = a.replace("on:", "");
|
|
2862
2862
|
break;
|
|
2863
2863
|
}
|
|
2864
|
-
t[a] =
|
|
2864
|
+
t[a] = Go(o, e);
|
|
2865
2865
|
}
|
|
2866
2866
|
return t;
|
|
2867
2867
|
}
|
|
2868
|
-
function
|
|
2868
|
+
function Xo({
|
|
2869
2869
|
properties: e
|
|
2870
2870
|
}) {
|
|
2871
2871
|
return e.className = e.class, delete e.class, e;
|
|
2872
2872
|
}
|
|
2873
|
-
const
|
|
2873
|
+
const Yo = (e) => ({
|
|
2874
2874
|
href: e.href
|
|
2875
2875
|
});
|
|
2876
|
-
function
|
|
2876
|
+
function Jo({
|
|
2877
2877
|
block: e,
|
|
2878
2878
|
context: t
|
|
2879
2879
|
}) {
|
|
2880
2880
|
var r;
|
|
2881
2881
|
const n = {
|
|
2882
|
-
...
|
|
2882
|
+
...Yo(e),
|
|
2883
2883
|
...e.properties,
|
|
2884
2884
|
"builder-id": e.id,
|
|
2885
|
-
style: e.style ?
|
|
2885
|
+
style: e.style ? zo(e.style) : void 0,
|
|
2886
2886
|
class: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
2887
2887
|
};
|
|
2888
|
-
return
|
|
2888
|
+
return Xo({
|
|
2889
2889
|
properties: n,
|
|
2890
2890
|
context: t,
|
|
2891
2891
|
block: e
|
|
2892
2892
|
});
|
|
2893
2893
|
}
|
|
2894
|
-
function
|
|
2895
|
-
switch (
|
|
2894
|
+
function zo(e) {
|
|
2895
|
+
switch (ve) {
|
|
2896
2896
|
case "svelte":
|
|
2897
2897
|
case "vue":
|
|
2898
2898
|
case "solid":
|
|
2899
|
-
return
|
|
2899
|
+
return gr(e).join(" ");
|
|
2900
2900
|
case "qwik":
|
|
2901
2901
|
case "reactNative":
|
|
2902
2902
|
case "react":
|
|
@@ -2904,7 +2904,7 @@ function Zo(e) {
|
|
|
2904
2904
|
return e;
|
|
2905
2905
|
}
|
|
2906
2906
|
}
|
|
2907
|
-
const
|
|
2907
|
+
const qo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Oa = (e) => typeof e == "string" && qo.has(e.toLowerCase()), Zo = ({
|
|
2908
2908
|
componentOptions: e,
|
|
2909
2909
|
builderBlock: t,
|
|
2910
2910
|
context: n,
|
|
@@ -2920,7 +2920,7 @@ const Qo = ({
|
|
|
2920
2920
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
2921
2921
|
*/
|
|
2922
2922
|
...o ? {
|
|
2923
|
-
attributes:
|
|
2923
|
+
attributes: Jo({
|
|
2924
2924
|
block: t,
|
|
2925
2925
|
context: s
|
|
2926
2926
|
})
|
|
@@ -2934,13 +2934,13 @@ const Qo = ({
|
|
|
2934
2934
|
includeBlockProps: o
|
|
2935
2935
|
} : u;
|
|
2936
2936
|
};
|
|
2937
|
-
function
|
|
2937
|
+
function Yn(e) {
|
|
2938
2938
|
var n;
|
|
2939
|
-
const t = e.isInteractive ?
|
|
2940
|
-
return /* @__PURE__ */
|
|
2939
|
+
const t = e.isInteractive ? Zr : e.componentRef;
|
|
2940
|
+
return /* @__PURE__ */ E(L, { children: e.componentRef ? /* @__PURE__ */ E(L, { children: /* @__PURE__ */ E(
|
|
2941
2941
|
t,
|
|
2942
2942
|
{
|
|
2943
|
-
...
|
|
2943
|
+
...Zo({
|
|
2944
2944
|
componentOptions: e.componentOptions,
|
|
2945
2945
|
builderBlock: e.builderBlock,
|
|
2946
2946
|
context: e.context,
|
|
@@ -2949,7 +2949,7 @@ function zn(e) {
|
|
|
2949
2949
|
isInteractive: e.isInteractive,
|
|
2950
2950
|
contextValue: e.context
|
|
2951
2951
|
}),
|
|
2952
|
-
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */
|
|
2952
|
+
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ E(
|
|
2953
2953
|
ht,
|
|
2954
2954
|
{
|
|
2955
2955
|
block: r,
|
|
@@ -2961,9 +2961,9 @@ function zn(e) {
|
|
|
2961
2961
|
}
|
|
2962
2962
|
) }) : null });
|
|
2963
2963
|
}
|
|
2964
|
-
function
|
|
2964
|
+
function Qo(e) {
|
|
2965
2965
|
const t = e.repeatContext;
|
|
2966
|
-
return /* @__PURE__ */
|
|
2966
|
+
return /* @__PURE__ */ E(
|
|
2967
2967
|
ht,
|
|
2968
2968
|
{
|
|
2969
2969
|
block: e.block,
|
|
@@ -2973,15 +2973,15 @@ function ei(e) {
|
|
|
2973
2973
|
);
|
|
2974
2974
|
}
|
|
2975
2975
|
function ht(e) {
|
|
2976
|
-
var
|
|
2976
|
+
var S, C, b;
|
|
2977
2977
|
const t = function() {
|
|
2978
|
-
return
|
|
2978
|
+
return _o({
|
|
2979
2979
|
block: e.block,
|
|
2980
2980
|
context: e.context,
|
|
2981
2981
|
registeredComponents: e.registeredComponents
|
|
2982
2982
|
});
|
|
2983
2983
|
}, n = function() {
|
|
2984
|
-
return
|
|
2984
|
+
return Do({
|
|
2985
2985
|
block: e.block,
|
|
2986
2986
|
context: e.context
|
|
2987
2987
|
});
|
|
@@ -3004,17 +3004,17 @@ function ht(e) {
|
|
|
3004
3004
|
const j = "hide" in r() ? r().hide : !1;
|
|
3005
3005
|
return ("show" in r() ? r().show : !0) && !j;
|
|
3006
3006
|
}, s = function() {
|
|
3007
|
-
var
|
|
3008
|
-
return !((
|
|
3007
|
+
var k;
|
|
3008
|
+
return !((k = t()) != null && k.component) && !n() ? r().children ?? [] : [];
|
|
3009
3009
|
}, u = function() {
|
|
3010
|
-
var j,
|
|
3010
|
+
var j, k, x, B, $;
|
|
3011
3011
|
return {
|
|
3012
3012
|
blockChildren: r().children ?? [],
|
|
3013
3013
|
componentRef: (j = t()) == null ? void 0 : j.component,
|
|
3014
3014
|
componentOptions: {
|
|
3015
|
-
...
|
|
3015
|
+
...uo(r()),
|
|
3016
3016
|
builderContext: e.context,
|
|
3017
|
-
...((
|
|
3017
|
+
...((k = t()) == null ? void 0 : k.name) === "Symbol" || ((x = t()) == null ? void 0 : x.name) === "Columns" ? {
|
|
3018
3018
|
builderComponents: e.registeredComponents
|
|
3019
3019
|
} : {}
|
|
3020
3020
|
},
|
|
@@ -3025,10 +3025,10 @@ function ht(e) {
|
|
|
3025
3025
|
isInteractive: !(($ = t()) != null && $.isRSC)
|
|
3026
3026
|
};
|
|
3027
3027
|
}, d = e.context;
|
|
3028
|
-
return /* @__PURE__ */
|
|
3029
|
-
/* @__PURE__ */
|
|
3030
|
-
(
|
|
3031
|
-
|
|
3028
|
+
return /* @__PURE__ */ E(L, { children: a() ? /* @__PURE__ */ Se(L, { children: [
|
|
3029
|
+
/* @__PURE__ */ E($o, { block: e.block, context: e.context }),
|
|
3030
|
+
(S = t()) != null && S.noWrap ? /* @__PURE__ */ E(L, { children: /* @__PURE__ */ E(
|
|
3031
|
+
Yn,
|
|
3032
3032
|
{
|
|
3033
3033
|
componentRef: u().componentRef,
|
|
3034
3034
|
componentOptions: u().componentOptions,
|
|
@@ -3039,65 +3039,52 @@ function ht(e) {
|
|
|
3039
3039
|
includeBlockProps: u().includeBlockProps,
|
|
3040
3040
|
isInteractive: u().isInteractive
|
|
3041
3041
|
}
|
|
3042
|
-
) }) : /* @__PURE__ */
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
(S = s()) == null ? void 0 : S.map((P) => /* @__PURE__ */ k(
|
|
3083
|
-
ht,
|
|
3084
|
-
{
|
|
3085
|
-
block: P,
|
|
3086
|
-
context: d,
|
|
3087
|
-
registeredComponents: e.registeredComponents
|
|
3088
|
-
},
|
|
3089
|
-
P.id
|
|
3090
|
-
))
|
|
3091
|
-
]
|
|
3092
|
-
}
|
|
3093
|
-
) }) : null
|
|
3094
|
-
] })
|
|
3042
|
+
) }) : /* @__PURE__ */ E(L, { children: n() ? /* @__PURE__ */ E(L, { children: (b = n()) == null ? void 0 : b.map((P, j) => /* @__PURE__ */ E(
|
|
3043
|
+
Qo,
|
|
3044
|
+
{
|
|
3045
|
+
repeatContext: P.context,
|
|
3046
|
+
block: P.block,
|
|
3047
|
+
registeredComponents: e.registeredComponents
|
|
3048
|
+
},
|
|
3049
|
+
j
|
|
3050
|
+
)) }) : /* @__PURE__ */ E(L, { children: /* @__PURE__ */ Se(
|
|
3051
|
+
Qr,
|
|
3052
|
+
{
|
|
3053
|
+
Wrapper: o(),
|
|
3054
|
+
block: r(),
|
|
3055
|
+
context: e.context,
|
|
3056
|
+
children: [
|
|
3057
|
+
/* @__PURE__ */ E(
|
|
3058
|
+
Yn,
|
|
3059
|
+
{
|
|
3060
|
+
componentRef: u().componentRef,
|
|
3061
|
+
componentOptions: u().componentOptions,
|
|
3062
|
+
blockChildren: u().blockChildren,
|
|
3063
|
+
context: u().context,
|
|
3064
|
+
registeredComponents: u().registeredComponents,
|
|
3065
|
+
builderBlock: u().builderBlock,
|
|
3066
|
+
includeBlockProps: u().includeBlockProps,
|
|
3067
|
+
isInteractive: u().isInteractive
|
|
3068
|
+
}
|
|
3069
|
+
),
|
|
3070
|
+
(C = s()) == null ? void 0 : C.map((P) => /* @__PURE__ */ E(
|
|
3071
|
+
ht,
|
|
3072
|
+
{
|
|
3073
|
+
block: P,
|
|
3074
|
+
context: d,
|
|
3075
|
+
registeredComponents: e.registeredComponents
|
|
3076
|
+
},
|
|
3077
|
+
P.id
|
|
3078
|
+
))
|
|
3079
|
+
]
|
|
3080
|
+
}
|
|
3081
|
+
) }) })
|
|
3095
3082
|
] }) : null });
|
|
3096
3083
|
}
|
|
3097
3084
|
function mt(e) {
|
|
3098
3085
|
var t, n, r;
|
|
3099
|
-
return /* @__PURE__ */
|
|
3100
|
-
|
|
3086
|
+
return /* @__PURE__ */ E(
|
|
3087
|
+
eo,
|
|
3101
3088
|
{
|
|
3102
3089
|
blocks: e.blocks,
|
|
3103
3090
|
parent: e.parent,
|
|
@@ -3105,7 +3092,7 @@ function mt(e) {
|
|
|
3105
3092
|
styleProp: e.styleProp,
|
|
3106
3093
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3107
3094
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3108
|
-
children: e.blocks ? /* @__PURE__ */
|
|
3095
|
+
children: e.blocks ? /* @__PURE__ */ E(L, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ E(
|
|
3109
3096
|
ht,
|
|
3110
3097
|
{
|
|
3111
3098
|
block: o,
|
|
@@ -3117,7 +3104,7 @@ function mt(e) {
|
|
|
3117
3104
|
}
|
|
3118
3105
|
);
|
|
3119
3106
|
}
|
|
3120
|
-
function
|
|
3107
|
+
function ei(e) {
|
|
3121
3108
|
var j;
|
|
3122
3109
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(x) {
|
|
3123
3110
|
var B;
|
|
@@ -3135,7 +3122,7 @@ function ti(e) {
|
|
|
3135
3122
|
desktopStyle: B
|
|
3136
3123
|
}) {
|
|
3137
3124
|
return r === "never" ? B : x;
|
|
3138
|
-
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
3125
|
+
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", S = function() {
|
|
3139
3126
|
return {
|
|
3140
3127
|
"--flex-dir": d,
|
|
3141
3128
|
"--flex-dir-tablet": s({
|
|
@@ -3143,7 +3130,7 @@ function ti(e) {
|
|
|
3143
3130
|
desktopStyle: "row"
|
|
3144
3131
|
})
|
|
3145
3132
|
};
|
|
3146
|
-
},
|
|
3133
|
+
}, C = function(x) {
|
|
3147
3134
|
const B = x === 0 ? 0 : t, $ = a(x), g = `${B}px`, pe = "100%", de = 0;
|
|
3148
3135
|
return {
|
|
3149
3136
|
width: $,
|
|
@@ -3165,14 +3152,14 @@ function ti(e) {
|
|
|
3165
3152
|
desktopStyle: g
|
|
3166
3153
|
})
|
|
3167
3154
|
};
|
|
3168
|
-
},
|
|
3155
|
+
}, b = function(x) {
|
|
3169
3156
|
var $, g;
|
|
3170
|
-
return
|
|
3157
|
+
return mr(
|
|
3171
3158
|
((g = ($ = e.builderContext.content) == null ? void 0 : $.meta) == null ? void 0 : g.breakpoints) || {}
|
|
3172
3159
|
)[x].max;
|
|
3173
3160
|
}, P = function() {
|
|
3174
3161
|
return `
|
|
3175
|
-
@media (max-width: ${
|
|
3162
|
+
@media (max-width: ${b("medium")}px) {
|
|
3176
3163
|
.${e.builderBlock.id}-breakpoints {
|
|
3177
3164
|
flex-direction: var(--flex-dir-tablet);
|
|
3178
3165
|
align-items: stretch;
|
|
@@ -3184,7 +3171,7 @@ function ti(e) {
|
|
|
3184
3171
|
}
|
|
3185
3172
|
}
|
|
3186
3173
|
|
|
3187
|
-
@media (max-width: ${
|
|
3174
|
+
@media (max-width: ${b("small")}px) {
|
|
3188
3175
|
.${e.builderBlock.id}-breakpoints {
|
|
3189
3176
|
flex-direction: var(--flex-dir);
|
|
3190
3177
|
align-items: stretch;
|
|
@@ -3197,22 +3184,22 @@ function ti(e) {
|
|
|
3197
3184
|
},
|
|
3198
3185
|
`;
|
|
3199
3186
|
};
|
|
3200
|
-
return /* @__PURE__ */
|
|
3201
|
-
/* @__PURE__ */
|
|
3187
|
+
return /* @__PURE__ */ Se(L, { children: [
|
|
3188
|
+
/* @__PURE__ */ Se(
|
|
3202
3189
|
"div",
|
|
3203
3190
|
{
|
|
3204
3191
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-39daef82`,
|
|
3205
|
-
style:
|
|
3192
|
+
style: S(),
|
|
3206
3193
|
children: [
|
|
3207
|
-
/* @__PURE__ */
|
|
3208
|
-
(j = e.columns) == null ? void 0 : j.map((
|
|
3194
|
+
/* @__PURE__ */ E(L, { children: /* @__PURE__ */ E(dt, { styles: P() }) }),
|
|
3195
|
+
(j = e.columns) == null ? void 0 : j.map((k, x) => /* @__PURE__ */ qr(
|
|
3209
3196
|
"div",
|
|
3210
3197
|
{
|
|
3211
3198
|
className: "builder-column div-39daef82-2",
|
|
3212
|
-
style:
|
|
3199
|
+
style: C(x),
|
|
3213
3200
|
key: x
|
|
3214
3201
|
},
|
|
3215
|
-
/* @__PURE__ */
|
|
3202
|
+
/* @__PURE__ */ E(
|
|
3216
3203
|
mt,
|
|
3217
3204
|
{
|
|
3218
3205
|
path: `component.options.columns.${x}.blocks`,
|
|
@@ -3222,14 +3209,14 @@ function ti(e) {
|
|
|
3222
3209
|
},
|
|
3223
3210
|
context: e.builderContext,
|
|
3224
3211
|
registeredComponents: e.builderComponents,
|
|
3225
|
-
blocks:
|
|
3212
|
+
blocks: k.blocks
|
|
3226
3213
|
}
|
|
3227
3214
|
)
|
|
3228
3215
|
))
|
|
3229
3216
|
]
|
|
3230
3217
|
}
|
|
3231
3218
|
),
|
|
3232
|
-
/* @__PURE__ */
|
|
3219
|
+
/* @__PURE__ */ E("style", { children: `.div-39daef82 {
|
|
3233
3220
|
display: flex;
|
|
3234
3221
|
line-height: normal;
|
|
3235
3222
|
}.div-39daef82-2 {
|
|
@@ -3239,42 +3226,42 @@ function ti(e) {
|
|
|
3239
3226
|
}` })
|
|
3240
3227
|
] });
|
|
3241
3228
|
}
|
|
3242
|
-
function
|
|
3229
|
+
function Jn(e) {
|
|
3243
3230
|
return e.replace(/http(s)?:/, "");
|
|
3244
3231
|
}
|
|
3245
|
-
function
|
|
3232
|
+
function ti(e = "", t, n) {
|
|
3246
3233
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3247
3234
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3248
3235
|
}
|
|
3249
|
-
function
|
|
3236
|
+
function ni(e, t) {
|
|
3250
3237
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3251
3238
|
return e;
|
|
3252
3239
|
if (t === "master")
|
|
3253
|
-
return
|
|
3240
|
+
return Jn(e);
|
|
3254
3241
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3255
3242
|
if (n) {
|
|
3256
3243
|
const r = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
3257
|
-
return
|
|
3244
|
+
return Jn(`${r[0]}_${a}${o}`);
|
|
3258
3245
|
}
|
|
3259
3246
|
return null;
|
|
3260
3247
|
}
|
|
3261
|
-
function
|
|
3248
|
+
function ja(e) {
|
|
3262
3249
|
if (!e)
|
|
3263
3250
|
return e;
|
|
3264
3251
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3265
3252
|
if (e.match(/builder\.io/)) {
|
|
3266
3253
|
let n = e;
|
|
3267
3254
|
const r = Number(e.split("?width=")[1]);
|
|
3268
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3255
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${ti(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3269
3256
|
}
|
|
3270
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3257
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [ni(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3271
3258
|
}
|
|
3272
|
-
const
|
|
3259
|
+
const ri = (e) => {
|
|
3273
3260
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3274
3261
|
return e;
|
|
3275
3262
|
const t = e.split(".");
|
|
3276
3263
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3277
|
-
},
|
|
3264
|
+
}, yr = ({
|
|
3278
3265
|
name: e,
|
|
3279
3266
|
canTrack: t
|
|
3280
3267
|
}) => {
|
|
@@ -3285,14 +3272,14 @@ const oi = (e) => {
|
|
|
3285
3272
|
q.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3286
3273
|
return;
|
|
3287
3274
|
}
|
|
3288
|
-
},
|
|
3275
|
+
}, vr = async (e) => yr(e), oi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(fe).join("; "), ii = [["secure", ""], ["SameSite", "None"]], ai = ({
|
|
3289
3276
|
name: e,
|
|
3290
3277
|
value: t,
|
|
3291
3278
|
expires: n
|
|
3292
3279
|
}) => {
|
|
3293
|
-
const o = (G() ? location.protocol === "https:" : !0) ?
|
|
3294
|
-
return
|
|
3295
|
-
},
|
|
3280
|
+
const o = (G() ? location.protocol === "https:" : !0) ? ii : [[]], a = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...a, ["path", "/"], ["domain", ri(window.location.hostname)], ...o];
|
|
3281
|
+
return oi(s);
|
|
3282
|
+
}, br = async ({
|
|
3296
3283
|
name: e,
|
|
3297
3284
|
value: t,
|
|
3298
3285
|
expires: n,
|
|
@@ -3301,7 +3288,7 @@ const oi = (e) => {
|
|
|
3301
3288
|
try {
|
|
3302
3289
|
if (!r)
|
|
3303
3290
|
return;
|
|
3304
|
-
const o =
|
|
3291
|
+
const o = ai({
|
|
3305
3292
|
name: e,
|
|
3306
3293
|
value: t,
|
|
3307
3294
|
expires: n
|
|
@@ -3310,24 +3297,24 @@ const oi = (e) => {
|
|
|
3310
3297
|
} catch (o) {
|
|
3311
3298
|
q.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3312
3299
|
}
|
|
3313
|
-
},
|
|
3300
|
+
}, si = "builder.tests", sn = (e) => `${si}.${e}`, li = ({
|
|
3314
3301
|
contentId: e
|
|
3315
|
-
}) =>
|
|
3316
|
-
name:
|
|
3302
|
+
}) => vr({
|
|
3303
|
+
name: sn(e),
|
|
3317
3304
|
canTrack: !0
|
|
3318
|
-
}),
|
|
3305
|
+
}), ci = ({
|
|
3319
3306
|
contentId: e
|
|
3320
|
-
}) =>
|
|
3321
|
-
name:
|
|
3307
|
+
}) => yr({
|
|
3308
|
+
name: sn(e),
|
|
3322
3309
|
canTrack: !0
|
|
3323
|
-
}),
|
|
3310
|
+
}), ui = ({
|
|
3324
3311
|
contentId: e,
|
|
3325
3312
|
value: t
|
|
3326
|
-
}) =>
|
|
3327
|
-
name:
|
|
3313
|
+
}) => br({
|
|
3314
|
+
name: sn(e),
|
|
3328
3315
|
value: t,
|
|
3329
3316
|
canTrack: !0
|
|
3330
|
-
}),
|
|
3317
|
+
}), wr = (e) => fe(e.id) && fe(e.variations) && Object.keys(e.variations).length > 0, fi = ({
|
|
3331
3318
|
id: e,
|
|
3332
3319
|
variations: t
|
|
3333
3320
|
}) => {
|
|
@@ -3340,15 +3327,15 @@ const oi = (e) => {
|
|
|
3340
3327
|
return a;
|
|
3341
3328
|
}
|
|
3342
3329
|
return e;
|
|
3343
|
-
},
|
|
3344
|
-
const t =
|
|
3345
|
-
return
|
|
3330
|
+
}, xr = (e) => {
|
|
3331
|
+
const t = fi(e);
|
|
3332
|
+
return ui({
|
|
3346
3333
|
contentId: e.id,
|
|
3347
3334
|
value: t
|
|
3348
3335
|
}).catch((n) => {
|
|
3349
3336
|
q.error("could not store A/B test variation: ", n);
|
|
3350
3337
|
}), t;
|
|
3351
|
-
},
|
|
3338
|
+
}, Sr = ({
|
|
3352
3339
|
item: e,
|
|
3353
3340
|
testGroupId: t
|
|
3354
3341
|
}) => {
|
|
@@ -3362,7 +3349,7 @@ const oi = (e) => {
|
|
|
3362
3349
|
testVariationId: n.id,
|
|
3363
3350
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3364
3351
|
};
|
|
3365
|
-
},
|
|
3352
|
+
}, pi = ({
|
|
3366
3353
|
item: e,
|
|
3367
3354
|
canTrack: t
|
|
3368
3355
|
}) => {
|
|
@@ -3370,14 +3357,14 @@ const oi = (e) => {
|
|
|
3370
3357
|
return e;
|
|
3371
3358
|
if (!e)
|
|
3372
3359
|
return;
|
|
3373
|
-
if (!
|
|
3360
|
+
if (!wr(e))
|
|
3374
3361
|
return e;
|
|
3375
|
-
const n =
|
|
3362
|
+
const n = ci({
|
|
3376
3363
|
contentId: e.id
|
|
3377
|
-
}) ||
|
|
3364
|
+
}) || xr({
|
|
3378
3365
|
variations: e.variations,
|
|
3379
3366
|
id: e.id
|
|
3380
|
-
}), r =
|
|
3367
|
+
}), r = Sr({
|
|
3381
3368
|
item: e,
|
|
3382
3369
|
testGroupId: n
|
|
3383
3370
|
});
|
|
@@ -3385,18 +3372,18 @@ const oi = (e) => {
|
|
|
3385
3372
|
...e,
|
|
3386
3373
|
...r
|
|
3387
3374
|
};
|
|
3388
|
-
},
|
|
3375
|
+
}, di = async ({
|
|
3389
3376
|
item: e,
|
|
3390
3377
|
canTrack: t
|
|
3391
3378
|
}) => {
|
|
3392
|
-
if (!t || !
|
|
3379
|
+
if (!t || !wr(e))
|
|
3393
3380
|
return e;
|
|
3394
|
-
const r = await
|
|
3381
|
+
const r = await li({
|
|
3395
3382
|
contentId: e.id
|
|
3396
|
-
}) ||
|
|
3383
|
+
}) || xr({
|
|
3397
3384
|
variations: e.variations,
|
|
3398
3385
|
id: e.id
|
|
3399
|
-
}), o =
|
|
3386
|
+
}), o = Sr({
|
|
3400
3387
|
item: e,
|
|
3401
3388
|
testGroupId: r
|
|
3402
3389
|
});
|
|
@@ -3404,7 +3391,7 @@ const oi = (e) => {
|
|
|
3404
3391
|
...e,
|
|
3405
3392
|
...o
|
|
3406
3393
|
};
|
|
3407
|
-
},
|
|
3394
|
+
}, Ht = (e) => fe(e) ? e : !0, hi = {
|
|
3408
3395
|
name: "Core:Button",
|
|
3409
3396
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3410
3397
|
defaultStyles: {
|
|
@@ -3437,7 +3424,7 @@ const oi = (e) => {
|
|
|
3437
3424
|
}],
|
|
3438
3425
|
static: !0,
|
|
3439
3426
|
noWrap: !0
|
|
3440
|
-
},
|
|
3427
|
+
}, mi = {
|
|
3441
3428
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3442
3429
|
name: "Columns",
|
|
3443
3430
|
isRSC: !0,
|
|
@@ -3638,7 +3625,7 @@ const oi = (e) => {
|
|
|
3638
3625
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3639
3626
|
advanced: !0
|
|
3640
3627
|
}]
|
|
3641
|
-
},
|
|
3628
|
+
}, gi = {
|
|
3642
3629
|
name: "Custom Code",
|
|
3643
3630
|
static: !0,
|
|
3644
3631
|
requiredPermissions: ["editCode"],
|
|
@@ -3660,7 +3647,7 @@ const oi = (e) => {
|
|
|
3660
3647
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3661
3648
|
advanced: !0
|
|
3662
3649
|
}]
|
|
3663
|
-
},
|
|
3650
|
+
}, yi = {
|
|
3664
3651
|
name: "Embed",
|
|
3665
3652
|
static: !0,
|
|
3666
3653
|
inputs: [{
|
|
@@ -3685,7 +3672,7 @@ const oi = (e) => {
|
|
|
3685
3672
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3686
3673
|
hideFromUI: !0
|
|
3687
3674
|
}]
|
|
3688
|
-
},
|
|
3675
|
+
}, vi = ["text/javascript", "application/javascript", "application/ecmascript"], Ra = (e) => vi.includes(e.type), bi = {
|
|
3689
3676
|
name: "Fragment",
|
|
3690
3677
|
static: !0,
|
|
3691
3678
|
hidden: !0,
|
|
@@ -3712,15 +3699,15 @@ const oi = (e) => {
|
|
|
3712
3699
|
onChange: (e) => {
|
|
3713
3700
|
e.delete("srcset"), e.delete("noWebp");
|
|
3714
3701
|
function n(s, u = 6e4) {
|
|
3715
|
-
return new Promise((d,
|
|
3716
|
-
const
|
|
3717
|
-
let
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
},
|
|
3721
|
-
console.warn("Image load failed", P.error),
|
|
3722
|
-
}),
|
|
3723
|
-
|
|
3702
|
+
return new Promise((d, S) => {
|
|
3703
|
+
const C = document.createElement("img");
|
|
3704
|
+
let b = !1;
|
|
3705
|
+
C.onload = () => {
|
|
3706
|
+
b = !0, d(C);
|
|
3707
|
+
}, C.addEventListener("error", (P) => {
|
|
3708
|
+
console.warn("Image load failed", P.error), S(P.error);
|
|
3709
|
+
}), C.src = s, setTimeout(() => {
|
|
3710
|
+
b || S(new Error("Image load timed out"));
|
|
3724
3711
|
}, u);
|
|
3725
3712
|
});
|
|
3726
3713
|
}
|
|
@@ -3791,7 +3778,7 @@ const oi = (e) => {
|
|
|
3791
3778
|
advanced: !0,
|
|
3792
3779
|
defaultValue: 0.7041
|
|
3793
3780
|
}]
|
|
3794
|
-
},
|
|
3781
|
+
}, xi = {
|
|
3795
3782
|
// friendlyName?
|
|
3796
3783
|
name: "Raw:Img",
|
|
3797
3784
|
hideFromInsertMenu: !0,
|
|
@@ -3805,7 +3792,7 @@ const oi = (e) => {
|
|
|
3805
3792
|
}],
|
|
3806
3793
|
noWrap: !0,
|
|
3807
3794
|
static: !0
|
|
3808
|
-
},
|
|
3795
|
+
}, Si = {
|
|
3809
3796
|
name: "Core:Section",
|
|
3810
3797
|
static: !0,
|
|
3811
3798
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3844,7 +3831,7 @@ const oi = (e) => {
|
|
|
3844
3831
|
}
|
|
3845
3832
|
}
|
|
3846
3833
|
}]
|
|
3847
|
-
},
|
|
3834
|
+
}, ki = {
|
|
3848
3835
|
name: "Slot",
|
|
3849
3836
|
isRSC: !0,
|
|
3850
3837
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3858,9 +3845,9 @@ const oi = (e) => {
|
|
|
3858
3845
|
defaultValue: "children"
|
|
3859
3846
|
}]
|
|
3860
3847
|
};
|
|
3861
|
-
function
|
|
3848
|
+
function Ci(e) {
|
|
3862
3849
|
var t, n, r;
|
|
3863
|
-
return /* @__PURE__ */
|
|
3850
|
+
return /* @__PURE__ */ E(
|
|
3864
3851
|
"div",
|
|
3865
3852
|
{
|
|
3866
3853
|
style: {
|
|
@@ -3869,7 +3856,7 @@ function Ei(e) {
|
|
|
3869
3856
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
3870
3857
|
"builder-slot": e.name
|
|
3871
3858
|
},
|
|
3872
|
-
children: /* @__PURE__ */
|
|
3859
|
+
children: /* @__PURE__ */ E(
|
|
3873
3860
|
mt,
|
|
3874
3861
|
{
|
|
3875
3862
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -3881,7 +3868,7 @@ function Ei(e) {
|
|
|
3881
3868
|
}
|
|
3882
3869
|
);
|
|
3883
3870
|
}
|
|
3884
|
-
const
|
|
3871
|
+
const Ei = {
|
|
3885
3872
|
name: "Symbol",
|
|
3886
3873
|
noWrap: !0,
|
|
3887
3874
|
static: !0,
|
|
@@ -3914,7 +3901,7 @@ const Ii = {
|
|
|
3914
3901
|
hideFromUI: !0,
|
|
3915
3902
|
type: "boolean"
|
|
3916
3903
|
}]
|
|
3917
|
-
},
|
|
3904
|
+
}, Ii = {
|
|
3918
3905
|
name: "Text",
|
|
3919
3906
|
static: !0,
|
|
3920
3907
|
isRSC: !0,
|
|
@@ -3933,9 +3920,9 @@ const Ii = {
|
|
|
3933
3920
|
textAlign: "center"
|
|
3934
3921
|
}
|
|
3935
3922
|
};
|
|
3936
|
-
function
|
|
3923
|
+
function Ti(e) {
|
|
3937
3924
|
var t;
|
|
3938
|
-
return /* @__PURE__ */
|
|
3925
|
+
return /* @__PURE__ */ E(
|
|
3939
3926
|
"div",
|
|
3940
3927
|
{
|
|
3941
3928
|
className: "builder-text",
|
|
@@ -3946,7 +3933,7 @@ function Ai(e) {
|
|
|
3946
3933
|
}
|
|
3947
3934
|
);
|
|
3948
3935
|
}
|
|
3949
|
-
const
|
|
3936
|
+
const Ai = {
|
|
3950
3937
|
name: "Video",
|
|
3951
3938
|
canHaveChildren: !0,
|
|
3952
3939
|
defaultStyles: {
|
|
@@ -4027,58 +4014,58 @@ const Oi = {
|
|
|
4027
4014
|
defaultValue: !0,
|
|
4028
4015
|
advanced: !0
|
|
4029
4016
|
}]
|
|
4030
|
-
},
|
|
4031
|
-
component:
|
|
4017
|
+
}, zn = () => [{
|
|
4018
|
+
component: to,
|
|
4019
|
+
...hi
|
|
4020
|
+
}, {
|
|
4021
|
+
component: ei,
|
|
4032
4022
|
...mi
|
|
4033
4023
|
}, {
|
|
4034
|
-
component:
|
|
4024
|
+
component: no,
|
|
4035
4025
|
...gi
|
|
4036
4026
|
}, {
|
|
4037
4027
|
component: ro,
|
|
4038
4028
|
...yi
|
|
4039
4029
|
}, {
|
|
4040
4030
|
component: oo,
|
|
4041
|
-
...
|
|
4031
|
+
...bi
|
|
4042
4032
|
}, {
|
|
4043
4033
|
component: io,
|
|
4044
|
-
...
|
|
4034
|
+
...wi
|
|
4045
4035
|
}, {
|
|
4046
4036
|
component: ao,
|
|
4047
|
-
...
|
|
4037
|
+
...xi
|
|
4048
4038
|
}, {
|
|
4049
4039
|
component: so,
|
|
4050
4040
|
...Si
|
|
4051
4041
|
}, {
|
|
4052
|
-
component:
|
|
4053
|
-
...
|
|
4042
|
+
component: Sa,
|
|
4043
|
+
...Ei
|
|
4054
4044
|
}, {
|
|
4055
|
-
component:
|
|
4045
|
+
component: Ti,
|
|
4056
4046
|
...Ii
|
|
4057
4047
|
}, {
|
|
4058
|
-
component:
|
|
4059
|
-
...
|
|
4060
|
-
}, {
|
|
4061
|
-
component: co,
|
|
4062
|
-
...Oi
|
|
4048
|
+
component: lo,
|
|
4049
|
+
...Ai
|
|
4063
4050
|
}, {
|
|
4064
|
-
component:
|
|
4065
|
-
...
|
|
4066
|
-
}],
|
|
4051
|
+
component: Ci,
|
|
4052
|
+
...ki
|
|
4053
|
+
}], qn = [], Pa = (e) => ({
|
|
4067
4054
|
type: "builder.registerComponent",
|
|
4068
|
-
data:
|
|
4069
|
-
}),
|
|
4055
|
+
data: Kt(e)
|
|
4056
|
+
}), Oi = (e) => {
|
|
4070
4057
|
const t = e.toString().trim();
|
|
4071
4058
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4072
|
-
},
|
|
4059
|
+
}, ji = (e) => typeof e == "function" ? Oi(e) : pt(e), Kt = ({
|
|
4073
4060
|
inputs: e,
|
|
4074
4061
|
...t
|
|
4075
4062
|
}) => ({
|
|
4076
4063
|
...pt(t),
|
|
4077
4064
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, a]) => ({
|
|
4078
4065
|
...r,
|
|
4079
|
-
[o]:
|
|
4066
|
+
[o]: ji(a)
|
|
4080
4067
|
}), {}))
|
|
4081
|
-
}),
|
|
4068
|
+
}), Ri = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4082
4069
|
function getAndSetVariantId() {
|
|
4083
4070
|
function setCookie(name, value, days) {
|
|
4084
4071
|
let expires = '';
|
|
@@ -4134,7 +4121,7 @@ const Oi = {
|
|
|
4134
4121
|
}).join('');
|
|
4135
4122
|
styleEl.innerHTML = newStyleStr;
|
|
4136
4123
|
}
|
|
4137
|
-
}`,
|
|
4124
|
+
}`, Pi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4138
4125
|
if (!navigator.cookieEnabled) {
|
|
4139
4126
|
return;
|
|
4140
4127
|
}
|
|
@@ -4168,27 +4155,27 @@ const Oi = {
|
|
|
4168
4155
|
thisScriptEl?.remove();
|
|
4169
4156
|
}
|
|
4170
4157
|
return;
|
|
4171
|
-
}`,
|
|
4158
|
+
}`, kr = "builderIoAbTest", Cr = "builderIoRenderContent", st = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4172
4159
|
...t,
|
|
4173
4160
|
testVariationId: t.id,
|
|
4174
4161
|
id: e == null ? void 0 : e.id
|
|
4175
|
-
})),
|
|
4162
|
+
})), Ni = ({
|
|
4176
4163
|
canTrack: e,
|
|
4177
4164
|
content: t
|
|
4178
|
-
}) => !(!(st(t).length > 0) || !e || G()),
|
|
4179
|
-
window.${
|
|
4180
|
-
window.${
|
|
4181
|
-
`,
|
|
4182
|
-
window.${
|
|
4183
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4184
|
-
)`,
|
|
4165
|
+
}) => !(!(st(t).length > 0) || !e || G()), Bi = (e) => e === "react" || e === "reactNative", Er = Bi(ve), Mi = () => `
|
|
4166
|
+
window.${kr} = ${Ri}
|
|
4167
|
+
window.${Cr} = ${Pi}
|
|
4168
|
+
`, Ui = (e, t) => `
|
|
4169
|
+
window.${kr}(
|
|
4170
|
+
"${t}",${JSON.stringify(e)}, ${Er}
|
|
4171
|
+
)`, Fi = ({
|
|
4185
4172
|
contentId: e,
|
|
4186
4173
|
variationId: t
|
|
4187
|
-
}) => `window.${
|
|
4188
|
-
"${t}", "${e}", ${
|
|
4174
|
+
}) => `window.${Cr}(
|
|
4175
|
+
"${t}", "${e}", ${Er}
|
|
4189
4176
|
)`;
|
|
4190
|
-
function
|
|
4191
|
-
return /* @__PURE__ */
|
|
4177
|
+
function Gt(e) {
|
|
4178
|
+
return /* @__PURE__ */ E(
|
|
4192
4179
|
"script",
|
|
4193
4180
|
{
|
|
4194
4181
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -4196,33 +4183,33 @@ function Xt(e) {
|
|
|
4196
4183
|
}
|
|
4197
4184
|
);
|
|
4198
4185
|
}
|
|
4199
|
-
const
|
|
4186
|
+
const Vi = (e) => {
|
|
4200
4187
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4201
4188
|
return n || q.warn("No previewed ID found in search params."), n;
|
|
4202
4189
|
};
|
|
4203
|
-
function
|
|
4204
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
4190
|
+
function _i() {
|
|
4191
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new zr({
|
|
4205
4192
|
max: 500,
|
|
4206
4193
|
// how long to live in ms
|
|
4207
4194
|
ttl: 1e3 * 60 * 5
|
|
4208
4195
|
}));
|
|
4209
4196
|
}
|
|
4210
|
-
function
|
|
4211
|
-
|
|
4212
|
-
const t =
|
|
4197
|
+
function Di(e) {
|
|
4198
|
+
_i();
|
|
4199
|
+
const t = Vi(e);
|
|
4213
4200
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4214
4201
|
}
|
|
4215
|
-
function
|
|
4202
|
+
function Li() {
|
|
4216
4203
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4217
4204
|
}
|
|
4218
|
-
function
|
|
4219
|
-
const e =
|
|
4205
|
+
function Wi() {
|
|
4206
|
+
const e = Li().fetch;
|
|
4220
4207
|
if (typeof e > "u")
|
|
4221
4208
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4222
4209
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4223
4210
|
return e;
|
|
4224
4211
|
}
|
|
4225
|
-
const
|
|
4212
|
+
const $i = Wi();
|
|
4226
4213
|
function lt(e, t = null, n = ".") {
|
|
4227
4214
|
return Object.keys(e).reduce((r, o) => {
|
|
4228
4215
|
const a = e[o], s = [t, o].filter(Boolean).join(n);
|
|
@@ -4235,27 +4222,27 @@ function lt(e, t = null, n = ".") {
|
|
|
4235
4222
|
};
|
|
4236
4223
|
}, {});
|
|
4237
4224
|
}
|
|
4238
|
-
const
|
|
4225
|
+
const Hi = "v3", Zn = "builder.", Ki = "options.", Gi = (e) => {
|
|
4239
4226
|
const t = {};
|
|
4240
4227
|
return e.forEach((n, r) => {
|
|
4241
4228
|
t[r] = n;
|
|
4242
4229
|
}), t;
|
|
4243
|
-
},
|
|
4230
|
+
}, Ir = (e) => {
|
|
4244
4231
|
if (!e)
|
|
4245
4232
|
return {};
|
|
4246
|
-
const t =
|
|
4233
|
+
const t = Tr(e), n = {};
|
|
4247
4234
|
return Object.keys(t).forEach((r) => {
|
|
4248
|
-
if (r.startsWith(
|
|
4249
|
-
const o = r.replace(
|
|
4235
|
+
if (r.startsWith(Zn)) {
|
|
4236
|
+
const o = r.replace(Zn, "").replace(Ki, "");
|
|
4250
4237
|
n[o] = t[r];
|
|
4251
4238
|
}
|
|
4252
4239
|
}), n;
|
|
4253
|
-
},
|
|
4240
|
+
}, Xi = () => {
|
|
4254
4241
|
if (!G())
|
|
4255
4242
|
return {};
|
|
4256
4243
|
const e = new URLSearchParams(window.location.search);
|
|
4257
|
-
return
|
|
4258
|
-
},
|
|
4244
|
+
return Ir(e);
|
|
4245
|
+
}, Tr = (e) => e instanceof URLSearchParams ? Gi(e) : e, Qn = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ln = (e) => {
|
|
4259
4246
|
let {
|
|
4260
4247
|
noTraverse: t = !1
|
|
4261
4248
|
} = e;
|
|
@@ -4267,23 +4254,23 @@ const Ki = "v3", er = "builder.", Gi = "options.", Xi = (e) => {
|
|
|
4267
4254
|
apiKey: s,
|
|
4268
4255
|
includeRefs: u = !0,
|
|
4269
4256
|
enrich: d,
|
|
4270
|
-
locale:
|
|
4271
|
-
apiVersion:
|
|
4272
|
-
fields:
|
|
4257
|
+
locale: S,
|
|
4258
|
+
apiVersion: C = Hi,
|
|
4259
|
+
fields: b,
|
|
4273
4260
|
omit: P,
|
|
4274
4261
|
offset: j,
|
|
4275
|
-
cacheSeconds:
|
|
4262
|
+
cacheSeconds: k,
|
|
4276
4263
|
staleCacheSeconds: x,
|
|
4277
4264
|
sort: B,
|
|
4278
4265
|
includeUnpublished: $
|
|
4279
4266
|
} = e;
|
|
4280
4267
|
if (!s)
|
|
4281
4268
|
throw new Error("Missing API key");
|
|
4282
|
-
if (!["v2", "v3"].includes(
|
|
4283
|
-
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${
|
|
4269
|
+
if (!["v2", "v3"].includes(C))
|
|
4270
|
+
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${C}'`);
|
|
4284
4271
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
4285
|
-
const g = new URL(`https://cdn.builder.io/api/${
|
|
4286
|
-
if (g.searchParams.set("omit", P || "meta.componentsUsed"),
|
|
4272
|
+
const g = new URL(`https://cdn.builder.io/api/${C}/content/${a}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${u}${S ? `&locale=${S}` : ""}${d ? `&enrich=${d}` : ""}`);
|
|
4273
|
+
if (g.searchParams.set("omit", P || "meta.componentsUsed"), b && g.searchParams.set("fields", b), Number.isFinite(j) && j > -1 && g.searchParams.set("offset", String(Math.floor(j))), typeof $ == "boolean" && g.searchParams.set("includeUnpublished", String($)), k && Qn(k) && g.searchParams.set("cacheSeconds", String(k)), x && Qn(x) && g.searchParams.set("staleCacheSeconds", String(x)), B) {
|
|
4287
4274
|
const Z = lt({
|
|
4288
4275
|
sort: B
|
|
4289
4276
|
});
|
|
@@ -4291,8 +4278,8 @@ const Ki = "v3", er = "builder.", Gi = "options.", Xi = (e) => {
|
|
|
4291
4278
|
g.searchParams.set(M, JSON.stringify(Z[M]));
|
|
4292
4279
|
}
|
|
4293
4280
|
const pe = {
|
|
4294
|
-
...
|
|
4295
|
-
...
|
|
4281
|
+
...Xi(),
|
|
4282
|
+
...Tr(e.options || {})
|
|
4296
4283
|
}, de = lt(pe);
|
|
4297
4284
|
for (const Z in de)
|
|
4298
4285
|
g.searchParams.set(Z, String(de[Z]));
|
|
@@ -4304,33 +4291,33 @@ const Ki = "v3", er = "builder.", Gi = "options.", Xi = (e) => {
|
|
|
4304
4291
|
g.searchParams.set(M, JSON.stringify(Z[M]));
|
|
4305
4292
|
}
|
|
4306
4293
|
return g;
|
|
4307
|
-
},
|
|
4308
|
-
async function
|
|
4309
|
-
const t = await
|
|
4294
|
+
}, Yi = (e) => "results" in e;
|
|
4295
|
+
async function cn(e) {
|
|
4296
|
+
const t = await Ar({
|
|
4310
4297
|
...e,
|
|
4311
4298
|
limit: 1
|
|
4312
4299
|
});
|
|
4313
4300
|
return t && t[0] || null;
|
|
4314
4301
|
}
|
|
4315
|
-
const
|
|
4316
|
-
const t =
|
|
4317
|
-
return await (await
|
|
4318
|
-
},
|
|
4319
|
-
const r =
|
|
4302
|
+
const Na = cn, Ji = async (e) => {
|
|
4303
|
+
const t = ln(e);
|
|
4304
|
+
return await (await $i(t.href)).json();
|
|
4305
|
+
}, zi = async (e, t, n = ln(e)) => {
|
|
4306
|
+
const r = Ht(e.canTrack);
|
|
4320
4307
|
if (n.search.includes("preview=")) {
|
|
4321
4308
|
const a = [];
|
|
4322
4309
|
for (const s of t.results) {
|
|
4323
|
-
const u =
|
|
4310
|
+
const u = Di(n.searchParams);
|
|
4324
4311
|
a.push(u || s);
|
|
4325
4312
|
}
|
|
4326
4313
|
t.results = a;
|
|
4327
4314
|
}
|
|
4328
|
-
if (!r || !(G() ||
|
|
4315
|
+
if (!r || !(G() || ve === "reactNative"))
|
|
4329
4316
|
return t.results;
|
|
4330
4317
|
try {
|
|
4331
4318
|
const a = [];
|
|
4332
4319
|
for (const s of t.results)
|
|
4333
|
-
a.push(await
|
|
4320
|
+
a.push(await di({
|
|
4334
4321
|
item: s,
|
|
4335
4322
|
canTrack: r
|
|
4336
4323
|
}));
|
|
@@ -4340,10 +4327,10 @@ const Ra = un, zi = async (e) => {
|
|
|
4340
4327
|
}
|
|
4341
4328
|
return t.results;
|
|
4342
4329
|
};
|
|
4343
|
-
async function
|
|
4330
|
+
async function Ar(e) {
|
|
4344
4331
|
try {
|
|
4345
|
-
const t =
|
|
4346
|
-
return
|
|
4332
|
+
const t = ln(e), n = await Ji(e);
|
|
4333
|
+
return Yi(n) ? zi(e, n) : (q.error("Error fetching data. ", {
|
|
4347
4334
|
url: t,
|
|
4348
4335
|
content: n,
|
|
4349
4336
|
options: e
|
|
@@ -4352,92 +4339,96 @@ async function jr(e) {
|
|
|
4352
4339
|
return q.error("Error fetching data. ", t), null;
|
|
4353
4340
|
}
|
|
4354
4341
|
}
|
|
4355
|
-
const
|
|
4356
|
-
function
|
|
4357
|
-
|
|
4342
|
+
const Ba = Ar, qi = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4343
|
+
function Zi(e, t) {
|
|
4344
|
+
const n = new URL(t.origin), r = n.hostname;
|
|
4345
|
+
return (e || qi).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4346
|
+
}
|
|
4347
|
+
function Ma() {
|
|
4348
|
+
return !G() || Xt() ? !1 : location.search.indexOf("builder.preview=") !== -1;
|
|
4358
4349
|
}
|
|
4359
|
-
function
|
|
4350
|
+
function Qi() {
|
|
4360
4351
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4361
4352
|
const t = Math.random() * 16 | 0;
|
|
4362
4353
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4363
4354
|
});
|
|
4364
4355
|
}
|
|
4365
|
-
function
|
|
4366
|
-
return
|
|
4356
|
+
function Or() {
|
|
4357
|
+
return Qi().replace(/-/g, "");
|
|
4367
4358
|
}
|
|
4368
|
-
const
|
|
4359
|
+
const jr = "builderSessionId", ea = async ({
|
|
4369
4360
|
canTrack: e
|
|
4370
4361
|
}) => {
|
|
4371
4362
|
if (!e)
|
|
4372
4363
|
return;
|
|
4373
|
-
const t = await
|
|
4374
|
-
name:
|
|
4364
|
+
const t = await vr({
|
|
4365
|
+
name: jr,
|
|
4375
4366
|
canTrack: e
|
|
4376
4367
|
});
|
|
4377
4368
|
if (fe(t))
|
|
4378
4369
|
return t;
|
|
4379
4370
|
{
|
|
4380
|
-
const n =
|
|
4381
|
-
return
|
|
4371
|
+
const n = ta();
|
|
4372
|
+
return na({
|
|
4382
4373
|
id: n,
|
|
4383
4374
|
canTrack: e
|
|
4384
4375
|
}), n;
|
|
4385
4376
|
}
|
|
4386
|
-
},
|
|
4377
|
+
}, ta = () => Or(), na = ({
|
|
4387
4378
|
id: e,
|
|
4388
4379
|
canTrack: t
|
|
4389
|
-
}) =>
|
|
4390
|
-
name:
|
|
4380
|
+
}) => br({
|
|
4381
|
+
name: jr,
|
|
4391
4382
|
value: e,
|
|
4392
4383
|
canTrack: t
|
|
4393
|
-
}),
|
|
4384
|
+
}), Rr = () => G() && typeof localStorage < "u" ? localStorage : void 0, ra = ({
|
|
4394
4385
|
key: e,
|
|
4395
4386
|
canTrack: t
|
|
4396
4387
|
}) => {
|
|
4397
4388
|
var n;
|
|
4398
4389
|
try {
|
|
4399
|
-
return t ? (n =
|
|
4390
|
+
return t ? (n = Rr()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4400
4391
|
} catch (r) {
|
|
4401
4392
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4402
4393
|
return;
|
|
4403
4394
|
}
|
|
4404
|
-
},
|
|
4395
|
+
}, oa = ({
|
|
4405
4396
|
key: e,
|
|
4406
4397
|
canTrack: t,
|
|
4407
4398
|
value: n
|
|
4408
4399
|
}) => {
|
|
4409
4400
|
var r;
|
|
4410
4401
|
try {
|
|
4411
|
-
t && ((r =
|
|
4402
|
+
t && ((r = Rr()) == null || r.setItem(e, n));
|
|
4412
4403
|
} catch (o) {
|
|
4413
4404
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4414
4405
|
}
|
|
4415
|
-
},
|
|
4406
|
+
}, Pr = "builderVisitorId", ia = ({
|
|
4416
4407
|
canTrack: e
|
|
4417
4408
|
}) => {
|
|
4418
4409
|
if (!e)
|
|
4419
4410
|
return;
|
|
4420
|
-
const t =
|
|
4421
|
-
key:
|
|
4411
|
+
const t = ra({
|
|
4412
|
+
key: Pr,
|
|
4422
4413
|
canTrack: e
|
|
4423
4414
|
});
|
|
4424
4415
|
if (fe(t))
|
|
4425
4416
|
return t;
|
|
4426
4417
|
{
|
|
4427
|
-
const n =
|
|
4428
|
-
return
|
|
4418
|
+
const n = aa();
|
|
4419
|
+
return sa({
|
|
4429
4420
|
id: n,
|
|
4430
4421
|
canTrack: e
|
|
4431
4422
|
}), n;
|
|
4432
4423
|
}
|
|
4433
|
-
},
|
|
4424
|
+
}, aa = () => Or(), sa = ({
|
|
4434
4425
|
id: e,
|
|
4435
4426
|
canTrack: t
|
|
4436
|
-
}) =>
|
|
4437
|
-
key:
|
|
4427
|
+
}) => oa({
|
|
4428
|
+
key: Pr,
|
|
4438
4429
|
value: e,
|
|
4439
4430
|
canTrack: t
|
|
4440
|
-
}),
|
|
4431
|
+
}), la = async ({
|
|
4441
4432
|
canTrack: e
|
|
4442
4433
|
}) => {
|
|
4443
4434
|
if (!e)
|
|
@@ -4445,16 +4436,16 @@ const Pr = "builderSessionId", Qi = async ({
|
|
|
4445
4436
|
visitorId: void 0,
|
|
4446
4437
|
sessionId: void 0
|
|
4447
4438
|
};
|
|
4448
|
-
const t = await
|
|
4439
|
+
const t = await ea({
|
|
4449
4440
|
canTrack: e
|
|
4450
|
-
}), n =
|
|
4441
|
+
}), n = ia({
|
|
4451
4442
|
canTrack: e
|
|
4452
4443
|
});
|
|
4453
4444
|
return {
|
|
4454
4445
|
sessionId: t,
|
|
4455
4446
|
visitorId: n
|
|
4456
4447
|
};
|
|
4457
|
-
},
|
|
4448
|
+
}, ca = async ({
|
|
4458
4449
|
type: e,
|
|
4459
4450
|
canTrack: t,
|
|
4460
4451
|
apiKey: n,
|
|
@@ -4468,23 +4459,23 @@ const Pr = "builderSessionId", Qi = async ({
|
|
|
4468
4459
|
url: location.href,
|
|
4469
4460
|
...r
|
|
4470
4461
|
},
|
|
4471
|
-
...await
|
|
4462
|
+
...await la({
|
|
4472
4463
|
canTrack: t
|
|
4473
4464
|
}),
|
|
4474
|
-
userAttributes:
|
|
4465
|
+
userAttributes: ar(),
|
|
4475
4466
|
ownerId: n
|
|
4476
4467
|
}
|
|
4477
4468
|
});
|
|
4478
|
-
async function
|
|
4469
|
+
async function ua(e) {
|
|
4479
4470
|
if (!e.apiKey) {
|
|
4480
4471
|
q.error("Missing API key for track call. Please provide your API key.");
|
|
4481
4472
|
return;
|
|
4482
4473
|
}
|
|
4483
|
-
if (e.canTrack && !
|
|
4474
|
+
if (e.canTrack && !Xt() && (G() || ve === "reactNative"))
|
|
4484
4475
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4485
4476
|
method: "POST",
|
|
4486
4477
|
body: JSON.stringify({
|
|
4487
|
-
events: [await
|
|
4478
|
+
events: [await ca(e)]
|
|
4488
4479
|
}),
|
|
4489
4480
|
headers: {
|
|
4490
4481
|
"content-type": "application/json"
|
|
@@ -4494,14 +4485,14 @@ async function ca(e) {
|
|
|
4494
4485
|
console.error("Failed to track: ", t);
|
|
4495
4486
|
});
|
|
4496
4487
|
}
|
|
4497
|
-
const
|
|
4488
|
+
const Ua = (e) => ua({
|
|
4498
4489
|
...e,
|
|
4499
4490
|
canTrack: !0
|
|
4500
4491
|
});
|
|
4501
|
-
function
|
|
4492
|
+
function er(e) {
|
|
4502
4493
|
return Math.round(e * 1e3) / 1e3;
|
|
4503
4494
|
}
|
|
4504
|
-
const
|
|
4495
|
+
const fa = (e, t, n = !0) => {
|
|
4505
4496
|
if (!(e instanceof HTMLElement))
|
|
4506
4497
|
return null;
|
|
4507
4498
|
let r = n ? e : e.parentElement;
|
|
@@ -4512,38 +4503,38 @@ const ua = (e, t, n = !0) => {
|
|
|
4512
4503
|
return r;
|
|
4513
4504
|
} while (r = r.parentElement);
|
|
4514
4505
|
return null;
|
|
4515
|
-
},
|
|
4506
|
+
}, pa = (e) => fa(e, (t) => {
|
|
4516
4507
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4517
4508
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4518
|
-
}),
|
|
4509
|
+
}), tr = ({
|
|
4519
4510
|
event: e,
|
|
4520
4511
|
target: t
|
|
4521
4512
|
}) => {
|
|
4522
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
4513
|
+
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, a = er(r / n.width), s = er(o / n.height);
|
|
4523
4514
|
return {
|
|
4524
4515
|
x: a,
|
|
4525
4516
|
y: s
|
|
4526
4517
|
};
|
|
4527
|
-
},
|
|
4528
|
-
const t = e.target, n = t &&
|
|
4518
|
+
}, Fa = (e) => {
|
|
4519
|
+
const t = e.target, n = t && pa(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4529
4520
|
return {
|
|
4530
4521
|
targetBuilderElement: r || void 0,
|
|
4531
4522
|
metadata: {
|
|
4532
|
-
targetOffset: t ?
|
|
4523
|
+
targetOffset: t ? tr({
|
|
4533
4524
|
event: e,
|
|
4534
4525
|
target: t
|
|
4535
4526
|
}) : void 0,
|
|
4536
|
-
builderTargetOffset: n ?
|
|
4527
|
+
builderTargetOffset: n ? tr({
|
|
4537
4528
|
event: e,
|
|
4538
4529
|
target: n
|
|
4539
4530
|
}) : void 0,
|
|
4540
4531
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4541
4532
|
}
|
|
4542
4533
|
};
|
|
4543
|
-
},
|
|
4544
|
-
function
|
|
4545
|
-
let n =
|
|
4546
|
-
if (n || (n =
|
|
4534
|
+
}, da = "0.12.3", nr = {};
|
|
4535
|
+
function ha(e, t) {
|
|
4536
|
+
let n = nr[e];
|
|
4537
|
+
if (n || (n = nr[e] = []), n.push(t), G()) {
|
|
4547
4538
|
const r = {
|
|
4548
4539
|
type: "builder.register",
|
|
4549
4540
|
data: {
|
|
@@ -4558,8 +4549,8 @@ function da(e, t) {
|
|
|
4558
4549
|
}
|
|
4559
4550
|
}
|
|
4560
4551
|
}
|
|
4561
|
-
const
|
|
4562
|
-
|
|
4552
|
+
const Va = () => {
|
|
4553
|
+
ha("insertMenu", {
|
|
4563
4554
|
name: "_default",
|
|
4564
4555
|
default: !0,
|
|
4565
4556
|
items: [{
|
|
@@ -4581,14 +4572,14 @@ const Ua = () => {
|
|
|
4581
4572
|
}]
|
|
4582
4573
|
});
|
|
4583
4574
|
};
|
|
4584
|
-
let
|
|
4585
|
-
const
|
|
4575
|
+
let rr = !1;
|
|
4576
|
+
const _a = (e = {}) => {
|
|
4586
4577
|
var t, n;
|
|
4587
|
-
|
|
4578
|
+
rr || (rr = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
4588
4579
|
type: "builder.sdkInfo",
|
|
4589
4580
|
data: {
|
|
4590
|
-
target:
|
|
4591
|
-
version:
|
|
4581
|
+
target: ve,
|
|
4582
|
+
version: da,
|
|
4592
4583
|
supportsPatchUpdates: !1,
|
|
4593
4584
|
// Supports builder-model="..." attribute which is needed to
|
|
4594
4585
|
// scope our '+ add block' button styling
|
|
@@ -4600,47 +4591,50 @@ const Fa = (e = {}) => {
|
|
|
4600
4591
|
data: {
|
|
4601
4592
|
options: e
|
|
4602
4593
|
}
|
|
4603
|
-
}, "*"), window.addEventListener("message", ({
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4594
|
+
}, "*"), window.addEventListener("message", (r) => {
|
|
4595
|
+
var a, s;
|
|
4596
|
+
if (!Zi(e.trustedHosts, r))
|
|
4597
|
+
return;
|
|
4598
|
+
const {
|
|
4599
|
+
data: o
|
|
4600
|
+
} = r;
|
|
4601
|
+
if (o != null && o.type)
|
|
4602
|
+
switch (o.type) {
|
|
4609
4603
|
case "builder.evaluate": {
|
|
4610
|
-
const
|
|
4611
|
-
let
|
|
4604
|
+
const u = o.data.text, d = o.data.arguments || [], S = o.data.id, C = new Function(u);
|
|
4605
|
+
let b, P = null;
|
|
4612
4606
|
try {
|
|
4613
|
-
|
|
4614
|
-
} catch (
|
|
4615
|
-
|
|
4607
|
+
b = C.apply(null, d);
|
|
4608
|
+
} catch (j) {
|
|
4609
|
+
P = j;
|
|
4616
4610
|
}
|
|
4617
|
-
|
|
4611
|
+
P ? (a = window.parent) == null || a.postMessage({
|
|
4618
4612
|
type: "builder.evaluateError",
|
|
4619
4613
|
data: {
|
|
4620
|
-
id:
|
|
4621
|
-
error:
|
|
4614
|
+
id: S,
|
|
4615
|
+
error: P.message
|
|
4622
4616
|
}
|
|
4623
|
-
}, "*") :
|
|
4624
|
-
var
|
|
4625
|
-
(
|
|
4617
|
+
}, "*") : b && typeof b.then == "function" ? b.then((j) => {
|
|
4618
|
+
var k;
|
|
4619
|
+
(k = window.parent) == null || k.postMessage({
|
|
4626
4620
|
type: "builder.evaluateResult",
|
|
4627
4621
|
data: {
|
|
4628
|
-
id:
|
|
4629
|
-
result:
|
|
4622
|
+
id: S,
|
|
4623
|
+
result: j
|
|
4630
4624
|
}
|
|
4631
4625
|
}, "*");
|
|
4632
|
-
}).catch(console.error) : (
|
|
4626
|
+
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
4633
4627
|
type: "builder.evaluateResult",
|
|
4634
4628
|
data: {
|
|
4635
|
-
result:
|
|
4636
|
-
id:
|
|
4629
|
+
result: b,
|
|
4630
|
+
id: S
|
|
4637
4631
|
}
|
|
4638
4632
|
}, "*");
|
|
4639
4633
|
break;
|
|
4640
4634
|
}
|
|
4641
4635
|
}
|
|
4642
4636
|
})));
|
|
4643
|
-
},
|
|
4637
|
+
}, ma = (e) => {
|
|
4644
4638
|
var a;
|
|
4645
4639
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((a = e == null ? void 0 : e.files) == null ? void 0 : a.regular);
|
|
4646
4640
|
let o = "";
|
|
@@ -4666,25 +4660,29 @@ font-weight: ${s};
|
|
|
4666
4660
|
`.trim());
|
|
4667
4661
|
}
|
|
4668
4662
|
return o;
|
|
4669
|
-
},
|
|
4663
|
+
}, ga = ({
|
|
4670
4664
|
customFonts: e
|
|
4671
4665
|
}) => {
|
|
4672
4666
|
var t;
|
|
4673
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4674
|
-
},
|
|
4667
|
+
return ((t = e == null ? void 0 : e.map((n) => ma(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4668
|
+
}, ya = ({
|
|
4675
4669
|
cssCode: e,
|
|
4676
4670
|
contentId: t
|
|
4677
4671
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4678
|
-
function
|
|
4672
|
+
function va(e) {
|
|
4679
4673
|
const t = `
|
|
4680
|
-
${
|
|
4674
|
+
${ya({
|
|
4681
4675
|
cssCode: e.cssCode,
|
|
4682
4676
|
contentId: e.contentId
|
|
4683
4677
|
})}
|
|
4684
|
-
${
|
|
4678
|
+
${ga({
|
|
4685
4679
|
customFonts: e.customFonts
|
|
4686
4680
|
})}
|
|
4687
4681
|
|
|
4682
|
+
.builder-button {
|
|
4683
|
+
all: unset;
|
|
4684
|
+
}
|
|
4685
|
+
|
|
4688
4686
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
4689
4687
|
margin: 0;
|
|
4690
4688
|
}
|
|
@@ -4698,9 +4696,9 @@ ${ma({
|
|
|
4698
4696
|
font-family: inherit;
|
|
4699
4697
|
}
|
|
4700
4698
|
`.trim();
|
|
4701
|
-
return /* @__PURE__ */
|
|
4699
|
+
return /* @__PURE__ */ E(dt, { styles: t });
|
|
4702
4700
|
}
|
|
4703
|
-
const
|
|
4701
|
+
const ba = ({
|
|
4704
4702
|
content: e,
|
|
4705
4703
|
data: t,
|
|
4706
4704
|
locale: n
|
|
@@ -4717,7 +4715,7 @@ const va = ({
|
|
|
4717
4715
|
locale: n
|
|
4718
4716
|
} : {}
|
|
4719
4717
|
};
|
|
4720
|
-
},
|
|
4718
|
+
}, wa = ({
|
|
4721
4719
|
content: e,
|
|
4722
4720
|
data: t
|
|
4723
4721
|
}) => e ? {
|
|
@@ -4728,38 +4726,38 @@ const va = ({
|
|
|
4728
4726
|
},
|
|
4729
4727
|
meta: e == null ? void 0 : e.meta
|
|
4730
4728
|
} : void 0;
|
|
4731
|
-
function
|
|
4732
|
-
var o, a, s, u, d,
|
|
4733
|
-
const t =
|
|
4729
|
+
function or(e) {
|
|
4730
|
+
var o, a, s, u, d, S, C, b, P;
|
|
4731
|
+
const t = Fi({
|
|
4734
4732
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4735
4733
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4736
4734
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4737
4735
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
4738
4736
|
}), n = [
|
|
4739
|
-
...
|
|
4737
|
+
...zn(),
|
|
4740
4738
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
4741
4739
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
4742
4740
|
// existing usage.
|
|
4743
4741
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
4744
4742
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
4745
|
-
...
|
|
4743
|
+
...qn,
|
|
4746
4744
|
...e.customComponents || []
|
|
4747
4745
|
].reduce(
|
|
4748
|
-
(j, { component:
|
|
4746
|
+
(j, { component: k, ...x }) => ({
|
|
4749
4747
|
...j,
|
|
4750
4748
|
[x.name]: {
|
|
4751
|
-
component:
|
|
4752
|
-
...
|
|
4749
|
+
component: k,
|
|
4750
|
+
...Kt(x)
|
|
4753
4751
|
}
|
|
4754
4752
|
}),
|
|
4755
4753
|
{}
|
|
4756
4754
|
), r = {
|
|
4757
|
-
content:
|
|
4755
|
+
content: wa({
|
|
4758
4756
|
content: e.content,
|
|
4759
4757
|
data: e.data
|
|
4760
4758
|
}),
|
|
4761
4759
|
localState: void 0,
|
|
4762
|
-
rootState:
|
|
4760
|
+
rootState: ba({
|
|
4763
4761
|
content: e.content,
|
|
4764
4762
|
data: e.data,
|
|
4765
4763
|
locale: e.locale
|
|
@@ -4769,18 +4767,18 @@ function ar(e) {
|
|
|
4769
4767
|
apiKey: e.apiKey,
|
|
4770
4768
|
apiVersion: e.apiVersion,
|
|
4771
4769
|
componentInfos: [
|
|
4772
|
-
...
|
|
4770
|
+
...zn(),
|
|
4773
4771
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
4774
4772
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
4775
4773
|
// existing usage.
|
|
4776
4774
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
4777
4775
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
4778
|
-
...
|
|
4776
|
+
...qn,
|
|
4779
4777
|
...e.customComponents || []
|
|
4780
4778
|
].reduce(
|
|
4781
|
-
(j, { component:
|
|
4779
|
+
(j, { component: k, ...x }) => ({
|
|
4782
4780
|
...j,
|
|
4783
|
-
[x.name]:
|
|
4781
|
+
[x.name]: Kt(x)
|
|
4784
4782
|
}),
|
|
4785
4783
|
{}
|
|
4786
4784
|
),
|
|
@@ -4788,8 +4786,8 @@ function ar(e) {
|
|
|
4788
4786
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
4789
4787
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4790
4788
|
};
|
|
4791
|
-
return /* @__PURE__ */
|
|
4792
|
-
|
|
4789
|
+
return /* @__PURE__ */ Se(
|
|
4790
|
+
co,
|
|
4793
4791
|
{
|
|
4794
4792
|
content: e.content,
|
|
4795
4793
|
data: e.data,
|
|
@@ -4804,20 +4802,21 @@ function ar(e) {
|
|
|
4804
4802
|
builderContextSignal: r,
|
|
4805
4803
|
contentWrapper: e.contentWrapper,
|
|
4806
4804
|
contentWrapperProps: e.contentWrapperProps,
|
|
4805
|
+
trustedHosts: e.trustedHosts,
|
|
4807
4806
|
children: [
|
|
4808
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
4809
|
-
/* @__PURE__ */
|
|
4810
|
-
|
|
4807
|
+
e.isSsrAbTest ? /* @__PURE__ */ E(L, { children: /* @__PURE__ */ E(Gt, { scriptStr: t }) }) : null,
|
|
4808
|
+
/* @__PURE__ */ E(L, { children: /* @__PURE__ */ E(
|
|
4809
|
+
va,
|
|
4811
4810
|
{
|
|
4812
4811
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
4813
4812
|
cssCode: (d = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : d.cssCode,
|
|
4814
|
-
customFonts: (
|
|
4813
|
+
customFonts: (C = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : C.customFonts
|
|
4815
4814
|
}
|
|
4816
4815
|
) }),
|
|
4817
|
-
/* @__PURE__ */
|
|
4816
|
+
/* @__PURE__ */ E(
|
|
4818
4817
|
mt,
|
|
4819
4818
|
{
|
|
4820
|
-
blocks: (P = (
|
|
4819
|
+
blocks: (P = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : P.blocks,
|
|
4821
4820
|
context: r,
|
|
4822
4821
|
registeredComponents: n
|
|
4823
4822
|
}
|
|
@@ -4826,17 +4825,17 @@ function ar(e) {
|
|
|
4826
4825
|
}
|
|
4827
4826
|
);
|
|
4828
4827
|
}
|
|
4829
|
-
function
|
|
4828
|
+
function Nr(e) {
|
|
4830
4829
|
var a, s;
|
|
4831
|
-
const t =
|
|
4832
|
-
canTrack:
|
|
4830
|
+
const t = Ni({
|
|
4831
|
+
canTrack: Ht(e.canTrack),
|
|
4833
4832
|
content: e.content
|
|
4834
4833
|
}), n = function() {
|
|
4835
4834
|
var d;
|
|
4836
|
-
return
|
|
4837
|
-
st(e.content).map((
|
|
4838
|
-
id:
|
|
4839
|
-
testRatio:
|
|
4835
|
+
return Ui(
|
|
4836
|
+
st(e.content).map((S) => ({
|
|
4837
|
+
id: S.testVariationId,
|
|
4838
|
+
testRatio: S.testRatio
|
|
4840
4839
|
})),
|
|
4841
4840
|
((d = e.content) == null ? void 0 : d.id) || ""
|
|
4842
4841
|
);
|
|
@@ -4847,24 +4846,24 @@ function Mr(e) {
|
|
|
4847
4846
|
return t ? {
|
|
4848
4847
|
...e.content,
|
|
4849
4848
|
testVariationId: (d = e.content) == null ? void 0 : d.id
|
|
4850
|
-
} :
|
|
4849
|
+
} : pi({
|
|
4851
4850
|
item: e.content,
|
|
4852
|
-
canTrack:
|
|
4851
|
+
canTrack: Ht(e.canTrack)
|
|
4853
4852
|
});
|
|
4854
4853
|
};
|
|
4855
|
-
return /* @__PURE__ */
|
|
4856
|
-
!e.__isNestedRender &&
|
|
4857
|
-
t ? /* @__PURE__ */
|
|
4858
|
-
/* @__PURE__ */
|
|
4854
|
+
return /* @__PURE__ */ Se(L, { children: [
|
|
4855
|
+
!e.__isNestedRender && ve !== "reactNative" ? /* @__PURE__ */ E(L, { children: /* @__PURE__ */ E(Gt, { scriptStr: Mi() }) }) : null,
|
|
4856
|
+
t ? /* @__PURE__ */ Se(L, { children: [
|
|
4857
|
+
/* @__PURE__ */ E(
|
|
4859
4858
|
dt,
|
|
4860
4859
|
{
|
|
4861
4860
|
id: `variants-styles-${(a = e.content) == null ? void 0 : a.id}`,
|
|
4862
4861
|
styles: r()
|
|
4863
4862
|
}
|
|
4864
4863
|
),
|
|
4865
|
-
/* @__PURE__ */
|
|
4866
|
-
(s = st(e.content)) == null ? void 0 : s.map((u) => /* @__PURE__ */
|
|
4867
|
-
|
|
4864
|
+
/* @__PURE__ */ E(Gt, { scriptStr: n() }),
|
|
4865
|
+
(s = st(e.content)) == null ? void 0 : s.map((u) => /* @__PURE__ */ E(
|
|
4866
|
+
or,
|
|
4868
4867
|
{
|
|
4869
4868
|
content: u,
|
|
4870
4869
|
showContent: !1,
|
|
@@ -4882,13 +4881,14 @@ function Mr(e) {
|
|
|
4882
4881
|
blocksWrapper: e.blocksWrapper,
|
|
4883
4882
|
blocksWrapperProps: e.blocksWrapperProps,
|
|
4884
4883
|
contentWrapper: e.contentWrapper,
|
|
4885
|
-
contentWrapperProps: e.contentWrapperProps
|
|
4884
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
4885
|
+
trustedHosts: e.trustedHosts
|
|
4886
4886
|
},
|
|
4887
4887
|
u.testVariationId
|
|
4888
4888
|
))
|
|
4889
4889
|
] }) : null,
|
|
4890
|
-
/* @__PURE__ */
|
|
4891
|
-
|
|
4890
|
+
/* @__PURE__ */ E(
|
|
4891
|
+
or,
|
|
4892
4892
|
{
|
|
4893
4893
|
content: o(),
|
|
4894
4894
|
showContent: !0,
|
|
@@ -4906,7 +4906,8 @@ function Mr(e) {
|
|
|
4906
4906
|
blocksWrapper: e.blocksWrapper,
|
|
4907
4907
|
blocksWrapperProps: e.blocksWrapperProps,
|
|
4908
4908
|
contentWrapper: e.contentWrapper,
|
|
4909
|
-
contentWrapperProps: e.contentWrapperProps
|
|
4909
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
4910
|
+
trustedHosts: e.trustedHosts
|
|
4910
4911
|
}
|
|
4911
4912
|
)
|
|
4912
4913
|
] });
|
|
@@ -4917,7 +4918,7 @@ const xa = async ({
|
|
|
4917
4918
|
}) => {
|
|
4918
4919
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4919
4920
|
(e != null && e.apiKey))
|
|
4920
|
-
return
|
|
4921
|
+
return cn({
|
|
4921
4922
|
model: t.model,
|
|
4922
4923
|
apiKey: e.apiKey,
|
|
4923
4924
|
apiVersion: e.apiVersion,
|
|
@@ -4930,22 +4931,22 @@ const xa = async ({
|
|
|
4930
4931
|
q.error("Could not fetch symbol content: ", n);
|
|
4931
4932
|
});
|
|
4932
4933
|
};
|
|
4933
|
-
async function
|
|
4934
|
+
async function Sa(e) {
|
|
4934
4935
|
var r, o, a, s, u;
|
|
4935
4936
|
const t = function() {
|
|
4936
|
-
var
|
|
4937
|
+
var S, C;
|
|
4937
4938
|
return [
|
|
4938
4939
|
e.attributes.className,
|
|
4939
4940
|
"builder-symbol",
|
|
4940
|
-
(
|
|
4941
|
-
(
|
|
4941
|
+
(S = e.symbol) != null && S.inline ? "builder-inline-symbol" : void 0,
|
|
4942
|
+
(C = e.symbol) != null && C.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4942
4943
|
].filter(Boolean).join(" ");
|
|
4943
4944
|
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await xa({
|
|
4944
4945
|
symbol: e.symbol,
|
|
4945
4946
|
builderContextValue: e.builderContext
|
|
4946
4947
|
});
|
|
4947
|
-
return /* @__PURE__ */
|
|
4948
|
-
|
|
4948
|
+
return /* @__PURE__ */ E("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ E(
|
|
4949
|
+
Nr,
|
|
4949
4950
|
{
|
|
4950
4951
|
__isNestedRender: !0,
|
|
4951
4952
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -4965,18 +4966,18 @@ async function wa(e) {
|
|
|
4965
4966
|
}
|
|
4966
4967
|
) });
|
|
4967
4968
|
}
|
|
4968
|
-
const
|
|
4969
|
-
function
|
|
4969
|
+
const Da = mt, La = Nr, ir = {};
|
|
4970
|
+
function Wa(e) {
|
|
4970
4971
|
if (G()) {
|
|
4971
|
-
Object.assign(
|
|
4972
|
+
Object.assign(ir, e);
|
|
4972
4973
|
const t = {
|
|
4973
4974
|
type: "builder.settingsChange",
|
|
4974
|
-
data:
|
|
4975
|
+
data: ir
|
|
4975
4976
|
};
|
|
4976
4977
|
parent.postMessage(t, "*");
|
|
4977
4978
|
}
|
|
4978
4979
|
}
|
|
4979
|
-
const
|
|
4980
|
+
const $a = async (e) => {
|
|
4980
4981
|
var r, o, a;
|
|
4981
4982
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
4982
4983
|
...e,
|
|
@@ -4988,48 +4989,50 @@ const La = async (e) => {
|
|
|
4988
4989
|
urlPath: t
|
|
4989
4990
|
} : {}
|
|
4990
4991
|
},
|
|
4991
|
-
options:
|
|
4992
|
+
options: Ir(e.searchParams || ((a = e.url) == null ? void 0 : a.searchParams) || e.options)
|
|
4992
4993
|
};
|
|
4993
4994
|
return {
|
|
4994
4995
|
apiKey: n.apiKey,
|
|
4995
4996
|
model: n.model,
|
|
4996
|
-
content: await
|
|
4997
|
+
content: await cn(n)
|
|
4997
4998
|
};
|
|
4998
4999
|
};
|
|
4999
5000
|
export {
|
|
5000
|
-
|
|
5001
|
+
Ba as A,
|
|
5001
5002
|
mt as B,
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
Ma as
|
|
5019
|
-
|
|
5003
|
+
Nr as C,
|
|
5004
|
+
Na as D,
|
|
5005
|
+
Ir as E,
|
|
5006
|
+
Ua as F,
|
|
5007
|
+
$a as G,
|
|
5008
|
+
Da as R,
|
|
5009
|
+
Sa as S,
|
|
5010
|
+
Ti as T,
|
|
5011
|
+
ua as _,
|
|
5012
|
+
Aa as a,
|
|
5013
|
+
Xt as b,
|
|
5014
|
+
ja as c,
|
|
5015
|
+
Ra as d,
|
|
5016
|
+
G as e,
|
|
5017
|
+
Ht as f,
|
|
5018
|
+
Jo as g,
|
|
5019
|
+
Ma as h,
|
|
5020
|
+
Oa as i,
|
|
5021
|
+
Zi as j,
|
|
5022
|
+
an as k,
|
|
5020
5023
|
q as l,
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5024
|
+
Fa as m,
|
|
5025
|
+
pt as n,
|
|
5026
|
+
Pa as o,
|
|
5027
|
+
cn as p,
|
|
5028
|
+
$i as q,
|
|
5029
|
+
Va as r,
|
|
5030
|
+
_a as s,
|
|
5031
|
+
_i as t,
|
|
5032
|
+
La as u,
|
|
5033
|
+
ei as v,
|
|
5034
|
+
ha as w,
|
|
5035
|
+
Wa as x,
|
|
5036
|
+
zi as y,
|
|
5037
|
+
Ar as z
|
|
5035
5038
|
};
|