@builder.io/sdk-react 0.7.0 → 0.7.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/index.cjs +23 -23
- package/lib/browser/index.mjs +592 -560
- package/lib/browser/{server-entry-f341a184.mjs → server-entry-13b7e1e6.mjs} +200 -185
- package/lib/browser/server-entry-c98db16c.js +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/index.cjs +32 -32
- package/lib/edge/index.mjs +1122 -1062
- package/lib/{node/server-entry-f341a184.mjs → edge/server-entry-13b7e1e6.mjs} +200 -185
- package/lib/edge/server-entry-c98db16c.js +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/index.cjs +14 -0
- package/lib/index.mjs +10 -0
- package/lib/node/index.cjs +68 -28
- package/lib/node/index.mjs +931 -802
- package/lib/{edge/server-entry-f341a184.mjs → node/server-entry-13b7e1e6.mjs} +200 -185
- package/lib/node/server-entry-c98db16c.js +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +2 -1
- package/types/blocks/image/image.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/choose-eval.d.ts +6 -0
- package/types/functions/evaluate/evaluate.d.ts +1 -5
- package/types/functions/evaluate/helpers.d.ts +7 -1
- package/types/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/types/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/types/functions/evaluate/node-runtime/safeDynamicRequire.d.ts +13 -0
- package/types/functions/get-content/types.d.ts +94 -3
- package/types/functions/is-node-runtime.d.ts +4 -0
- package/types/node-runtime/index.d.ts +1 -0
- package/types/node-runtime/node-runtime.d.ts +1 -0
- package/types/node-runtime.d.ts +1 -0
- package/lib/browser/server-entry-f668f903.js +0 -2
- package/lib/edge/server-entry-f668f903.js +0 -2
- package/lib/node/server-entry-f668f903.js +0 -2
package/lib/edge/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as Z, Fragment as
|
|
3
|
-
import { createContext as cr, useState as
|
|
4
|
-
import { j as qt,
|
|
5
|
-
import { _ as
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */ Z(
|
|
8
|
-
e.link ? /* @__PURE__ */
|
|
2
|
+
import { jsxs as Z, Fragment as U, jsx as g } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as cr, useState as H, useContext as Hn, createElement as ur, useRef as Yt, useEffect as Q } from "react";
|
|
4
|
+
import { j as qt, i as Ce, k as Ee, l as Wr, m as Pe, n as Ht, T as tt, r as Hr, o as ft, p as Kn, a as Kr, c as Gr, b as fr, q as zr, u as Gn, v as zn, w as Xr } from "./server-entry-13b7e1e6.mjs";
|
|
5
|
+
import { _ as Uo, h as Bo, f as _o, g as Lo, e as $o, d as Vo, s as Do, t as Wo } from "./server-entry-13b7e1e6.mjs";
|
|
6
|
+
function Jr(e) {
|
|
7
|
+
return /* @__PURE__ */ Z(U, { children: [
|
|
8
|
+
e.link ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
9
9
|
"a",
|
|
10
10
|
{
|
|
11
11
|
role: "button",
|
|
@@ -14,21 +14,21 @@ function Xr(e) {
|
|
|
14
14
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
15
15
|
children: e.text
|
|
16
16
|
}
|
|
17
|
-
) }) : /* @__PURE__ */
|
|
17
|
+
) }) : /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
18
18
|
"button",
|
|
19
19
|
{
|
|
20
20
|
...e.attributes,
|
|
21
21
|
style: e.attributes.style,
|
|
22
|
-
className: e.attributes.className + " button-
|
|
22
|
+
className: e.attributes.className + " button-35669e6c",
|
|
23
23
|
children: e.text
|
|
24
24
|
}
|
|
25
25
|
) }),
|
|
26
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ g("style", { children: `.button-35669e6c {
|
|
27
27
|
all: unset;
|
|
28
28
|
}` })
|
|
29
29
|
] });
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const dr = {
|
|
32
32
|
small: {
|
|
33
33
|
min: 320,
|
|
34
34
|
default: 321,
|
|
@@ -44,11 +44,11 @@ const fr = {
|
|
|
44
44
|
default: 991,
|
|
45
45
|
max: 1200
|
|
46
46
|
}
|
|
47
|
-
}, Xn = (e, t =
|
|
47
|
+
}, Xn = (e, t = dr) => `@media (max-width: ${t[e].max}px)`, hr = ({
|
|
48
48
|
small: e,
|
|
49
49
|
medium: t
|
|
50
50
|
}) => {
|
|
51
|
-
const r = qt(
|
|
51
|
+
const r = qt(dr);
|
|
52
52
|
if (!e || !t)
|
|
53
53
|
return r;
|
|
54
54
|
const n = Math.floor(e / 2);
|
|
@@ -70,31 +70,79 @@ const fr = {
|
|
|
70
70
|
min: a,
|
|
71
71
|
default: a + 1
|
|
72
72
|
}, r;
|
|
73
|
-
},
|
|
73
|
+
}, pr = ({
|
|
74
|
+
builder: e,
|
|
75
|
+
context: t,
|
|
76
|
+
event: r,
|
|
77
|
+
state: n
|
|
78
|
+
}) => Object.entries({
|
|
79
|
+
state: n,
|
|
80
|
+
Builder: e,
|
|
81
|
+
// legacy
|
|
82
|
+
builder: e,
|
|
83
|
+
context: t,
|
|
84
|
+
event: r
|
|
85
|
+
}), Yr = () => ({
|
|
86
|
+
isEditing: Ce(),
|
|
87
|
+
isBrowser: Ee(),
|
|
88
|
+
isServer: !Ee(),
|
|
89
|
+
getUserAttributes: () => Wr()
|
|
90
|
+
}), qr = (e, {
|
|
91
|
+
isExpression: t = !0
|
|
92
|
+
}) => /* 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, Zr = ({
|
|
93
|
+
code: e,
|
|
94
|
+
builder: t,
|
|
95
|
+
context: r,
|
|
96
|
+
event: n,
|
|
97
|
+
localState: i,
|
|
98
|
+
rootSetState: a,
|
|
99
|
+
rootState: s
|
|
100
|
+
}) => {
|
|
101
|
+
const u = pr({
|
|
102
|
+
builder: t,
|
|
103
|
+
context: r,
|
|
104
|
+
event: n,
|
|
105
|
+
state: Qr(s, i, a)
|
|
106
|
+
});
|
|
107
|
+
return new Function(...u.map(([d]) => d), e)(...u.map(([, d]) => d));
|
|
108
|
+
};
|
|
109
|
+
function Qr(e, t, r) {
|
|
110
|
+
if (e === t)
|
|
111
|
+
throw new Error("rootState === localState");
|
|
112
|
+
return new Proxy(e, {
|
|
113
|
+
get: (n, i) => t && i in t ? t[i] : e[i],
|
|
114
|
+
set: (n, i, a) => {
|
|
115
|
+
if (t && i in t)
|
|
116
|
+
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
117
|
+
return e[i] = a, r == null || r(e), !0;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
const mr = (e, t, r) => {
|
|
74
122
|
if (Object(e) !== e)
|
|
75
123
|
return e;
|
|
76
124
|
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
77
125
|
return n.slice(0, -1).reduce((i, a, s) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(n[s + 1])) >> 0 === +n[s + 1] ? [] : {}, e)[n[n.length - 1]] = r, e;
|
|
78
126
|
};
|
|
79
|
-
var
|
|
127
|
+
var $, ei = function(e) {
|
|
80
128
|
function t(o) {
|
|
81
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
129
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Vr.test(String.fromCharCode(o));
|
|
82
130
|
}
|
|
83
131
|
function r(o) {
|
|
84
132
|
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Wn.test(String.fromCharCode(o));
|
|
85
133
|
}
|
|
86
134
|
function n(o, l) {
|
|
87
|
-
for (var c = S, h = 1,
|
|
88
|
-
ct.lastIndex =
|
|
135
|
+
for (var c = S, h = 1, R = 0; ; ) {
|
|
136
|
+
ct.lastIndex = R;
|
|
89
137
|
var X = ct.exec(c);
|
|
90
138
|
if (X && X.index < o)
|
|
91
|
-
++h,
|
|
139
|
+
++h, R = X.index + X[0].length;
|
|
92
140
|
else
|
|
93
141
|
break;
|
|
94
142
|
}
|
|
95
143
|
throw c = {
|
|
96
144
|
line: h,
|
|
97
|
-
ab: o -
|
|
145
|
+
ab: o - R
|
|
98
146
|
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = o, l.X = c, l.o = f, l;
|
|
99
147
|
}
|
|
100
148
|
function i(o) {
|
|
@@ -106,42 +154,42 @@ var _, Jr = function(e) {
|
|
|
106
154
|
};
|
|
107
155
|
}
|
|
108
156
|
function a() {
|
|
109
|
-
this.line =
|
|
157
|
+
this.line = we, this.ab = f - fe;
|
|
110
158
|
}
|
|
111
159
|
function s(o, l) {
|
|
112
|
-
|
|
160
|
+
Te = f, N.C && (It = new a()), A = o, d(), le = l, $e = o.m;
|
|
113
161
|
}
|
|
114
162
|
function u() {
|
|
115
|
-
for (var o = f, l =
|
|
163
|
+
for (var o = f, l = N.va && N.C && new a(), c = S.charCodeAt(f += 2); f < Ie && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
116
164
|
++f, c = S.charCodeAt(f);
|
|
117
|
-
|
|
165
|
+
N.va && N.va(!1, S.slice(o + 2, f), o, f, l, N.C && new a());
|
|
118
166
|
}
|
|
119
167
|
function d() {
|
|
120
|
-
for (; f <
|
|
168
|
+
for (; f < Ie; ) {
|
|
121
169
|
var o = S.charCodeAt(f);
|
|
122
170
|
if (o === 32)
|
|
123
171
|
++f;
|
|
124
172
|
else if (o === 13)
|
|
125
|
-
++f, o = S.charCodeAt(f), o === 10 && ++f,
|
|
173
|
+
++f, o = S.charCodeAt(f), o === 10 && ++f, N.C && (++we, fe = f);
|
|
126
174
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
127
|
-
++f,
|
|
175
|
+
++f, N.C && (++we, fe = f);
|
|
128
176
|
else if (8 < o && 14 > o)
|
|
129
177
|
++f;
|
|
130
178
|
else if (o === 47)
|
|
131
179
|
if (o = S.charCodeAt(f + 1), o === 42) {
|
|
132
180
|
o = void 0;
|
|
133
|
-
var l =
|
|
134
|
-
if (h === -1 && n(f - 2, "Unterminated comment"), f = h + 2,
|
|
181
|
+
var l = N.va && N.C && new a(), c = f, h = S.indexOf("*/", f += 2);
|
|
182
|
+
if (h === -1 && n(f - 2, "Unterminated comment"), f = h + 2, N.C)
|
|
135
183
|
for (ct.lastIndex = c; (o = ct.exec(S)) && o.index < f; )
|
|
136
|
-
++
|
|
137
|
-
|
|
184
|
+
++we, fe = o.index + o[0].length;
|
|
185
|
+
N.va && N.va(!0, S.slice(c + 2, h), c, f, l, N.C && new a());
|
|
138
186
|
} else if (o === 47)
|
|
139
187
|
u();
|
|
140
188
|
else
|
|
141
189
|
break;
|
|
142
190
|
else if (o === 160)
|
|
143
191
|
++f;
|
|
144
|
-
else if (5760 <= o &&
|
|
192
|
+
else if (5760 <= o && $r.test(String.fromCharCode(o)))
|
|
145
193
|
++f;
|
|
146
194
|
else
|
|
147
195
|
break;
|
|
@@ -165,16 +213,16 @@ var _, Jr = function(e) {
|
|
|
165
213
|
case 93:
|
|
166
214
|
return ++f, s(Bt);
|
|
167
215
|
case 123:
|
|
168
|
-
return ++f, s(
|
|
216
|
+
return ++f, s(We);
|
|
169
217
|
case 125:
|
|
170
|
-
return ++f, s(
|
|
218
|
+
return ++f, s(Ae);
|
|
171
219
|
case 58:
|
|
172
|
-
return ++f, s(
|
|
220
|
+
return ++f, s(He);
|
|
173
221
|
case 63:
|
|
174
222
|
return ++f, s(Un);
|
|
175
223
|
case 48:
|
|
176
224
|
if (o = S.charCodeAt(f + 1), o === 120 || o === 88) {
|
|
177
|
-
f += 2, o =
|
|
225
|
+
f += 2, o = _(16), o === null && n(z + 2, "Expected hexadecimal number"), r(S.charCodeAt(f)) && n(f, "Identifier directly after number"), s(De, o);
|
|
178
226
|
return;
|
|
179
227
|
}
|
|
180
228
|
case 49:
|
|
@@ -191,7 +239,7 @@ var _, Jr = function(e) {
|
|
|
191
239
|
case 39:
|
|
192
240
|
f++;
|
|
193
241
|
for (var l = ""; ; ) {
|
|
194
|
-
f >=
|
|
242
|
+
f >= Ie && n(z, "Unterminated string constant");
|
|
195
243
|
var c = S.charCodeAt(f);
|
|
196
244
|
if (c === o) {
|
|
197
245
|
++f, s(ot, l);
|
|
@@ -203,7 +251,7 @@ var _, Jr = function(e) {
|
|
|
203
251
|
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
204
252
|
h = h.slice(0, -1);
|
|
205
253
|
if (h === "0" && (h = null), ++f, h)
|
|
206
|
-
|
|
254
|
+
oe && n(f - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), f += h.length - 1;
|
|
207
255
|
else
|
|
208
256
|
switch (c) {
|
|
209
257
|
case 110:
|
|
@@ -214,13 +262,13 @@ var _, Jr = function(e) {
|
|
|
214
262
|
l += "\r";
|
|
215
263
|
break;
|
|
216
264
|
case 120:
|
|
217
|
-
l += String.fromCharCode(
|
|
265
|
+
l += String.fromCharCode(I(2));
|
|
218
266
|
break;
|
|
219
267
|
case 117:
|
|
220
|
-
l += String.fromCharCode(
|
|
268
|
+
l += String.fromCharCode(I(4));
|
|
221
269
|
break;
|
|
222
270
|
case 85:
|
|
223
|
-
l += String.fromCharCode(
|
|
271
|
+
l += String.fromCharCode(I(8));
|
|
224
272
|
break;
|
|
225
273
|
case 116:
|
|
226
274
|
l += " ";
|
|
@@ -240,7 +288,7 @@ var _, Jr = function(e) {
|
|
|
240
288
|
case 13:
|
|
241
289
|
S.charCodeAt(f) === 10 && ++f;
|
|
242
290
|
case 10:
|
|
243
|
-
|
|
291
|
+
N.C && (fe = f, ++we);
|
|
244
292
|
break;
|
|
245
293
|
default:
|
|
246
294
|
l += String.fromCharCode(c);
|
|
@@ -250,56 +298,56 @@ var _, Jr = function(e) {
|
|
|
250
298
|
}
|
|
251
299
|
return;
|
|
252
300
|
case 47:
|
|
253
|
-
o = S.charCodeAt(f + 1), $e ? (++f, P()) : o === 61 ?
|
|
301
|
+
o = S.charCodeAt(f + 1), $e ? (++f, P()) : o === 61 ? x(ke, 2) : x(Bn, 1);
|
|
254
302
|
return;
|
|
255
303
|
case 37:
|
|
256
304
|
case 42:
|
|
257
|
-
S.charCodeAt(f + 1) === 61 ?
|
|
305
|
+
S.charCodeAt(f + 1) === 61 ? x(ke, 2) : x(Br, 1);
|
|
258
306
|
return;
|
|
259
307
|
case 124:
|
|
260
308
|
case 38:
|
|
261
|
-
l = S.charCodeAt(f + 1), l === o ?
|
|
309
|
+
l = S.charCodeAt(f + 1), l === o ? x(o === 124 ? $n : Vn, 2) : l === 61 ? x(ke, 2) : x(o === 124 ? Rr : Nr, 1);
|
|
262
310
|
return;
|
|
263
311
|
case 94:
|
|
264
|
-
S.charCodeAt(f + 1) === 61 ?
|
|
312
|
+
S.charCodeAt(f + 1) === 61 ? x(ke, 2) : x(Or, 1);
|
|
265
313
|
return;
|
|
266
314
|
case 43:
|
|
267
315
|
case 45:
|
|
268
|
-
l = S.charCodeAt(f + 1), l === o ? l === 45 && S.charCodeAt(f + 2) === 62 && lt.test(S.slice(ve, f)) ? (f += 3, u(), d(), y()) :
|
|
316
|
+
l = S.charCodeAt(f + 1), l === o ? l === 45 && S.charCodeAt(f + 2) === 62 && lt.test(S.slice(ve, f)) ? (f += 3, u(), d(), y()) : x(Ar, 2) : l === 61 ? x(ke, 2) : x(Ur, 1);
|
|
269
317
|
return;
|
|
270
318
|
case 60:
|
|
271
319
|
case 62:
|
|
272
|
-
l = S.charCodeAt(f + 1), c = 1, l === o ? (c = o === 62 && S.charCodeAt(f + 2) === 62 ? 3 : 2, S.charCodeAt(f + c) === 61 ?
|
|
320
|
+
l = S.charCodeAt(f + 1), c = 1, l === o ? (c = o === 62 && S.charCodeAt(f + 2) === 62 ? 3 : 2, S.charCodeAt(f + c) === 61 ? x(ke, c + 1) : x(Fr, c)) : l === 33 && o === 60 && S.charCodeAt(f + 2) === 45 && S.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), y()) : (l === 61 && (c = S.charCodeAt(f + 2) === 61 ? 3 : 2), x(Mr, c));
|
|
273
321
|
return;
|
|
274
322
|
case 61:
|
|
275
323
|
case 33:
|
|
276
|
-
S.charCodeAt(f + 1) === 61 ?
|
|
324
|
+
S.charCodeAt(f + 1) === 61 ? x(Pr, S.charCodeAt(f + 2) === 61 ? 3 : 2) : x(o === 61 ? _n : Ln, 1);
|
|
277
325
|
return;
|
|
278
326
|
case 126:
|
|
279
|
-
return
|
|
327
|
+
return x(Ln, 1);
|
|
280
328
|
}
|
|
281
329
|
return !1;
|
|
282
330
|
}
|
|
283
331
|
function y(o) {
|
|
284
|
-
if (o ? f = z + 1 : z = f,
|
|
332
|
+
if (o ? f = z + 1 : z = f, N.C && (Et = new a()), o)
|
|
285
333
|
return P();
|
|
286
|
-
if (f >=
|
|
334
|
+
if (f >= Ie)
|
|
287
335
|
return s(At);
|
|
288
336
|
if (o = S.charCodeAt(f), r(o) || o === 92)
|
|
289
|
-
return
|
|
337
|
+
return V();
|
|
290
338
|
if (p(o) === !1) {
|
|
291
339
|
if (o = String.fromCharCode(o), o === "\\" || Wn.test(o))
|
|
292
|
-
return
|
|
340
|
+
return V();
|
|
293
341
|
n(f, "Unexpected character '" + o + "'");
|
|
294
342
|
}
|
|
295
343
|
}
|
|
296
|
-
function
|
|
344
|
+
function x(o, l) {
|
|
297
345
|
var c = S.slice(f, f + l);
|
|
298
346
|
f += l, s(o, c);
|
|
299
347
|
}
|
|
300
348
|
function P() {
|
|
301
349
|
for (var o, l, c = f; ; ) {
|
|
302
|
-
f >=
|
|
350
|
+
f >= Ie && n(c, "Unterminated regexp");
|
|
303
351
|
var h = S.charAt(f);
|
|
304
352
|
if (lt.test(h) && n(c, "Unterminated regexp"), o)
|
|
305
353
|
o = !1;
|
|
@@ -314,321 +362,321 @@ var _, Jr = function(e) {
|
|
|
314
362
|
}
|
|
315
363
|
++f;
|
|
316
364
|
}
|
|
317
|
-
o = S.slice(c, f), ++f, (l =
|
|
365
|
+
o = S.slice(c, f), ++f, (l = L()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
318
366
|
try {
|
|
319
|
-
var
|
|
367
|
+
var R = new RegExp(o, l);
|
|
320
368
|
} catch (X) {
|
|
321
369
|
throw X instanceof SyntaxError && n(c, X.message), X;
|
|
322
370
|
}
|
|
323
|
-
s(gn,
|
|
371
|
+
s(gn, R);
|
|
324
372
|
}
|
|
325
|
-
function
|
|
326
|
-
for (var c = f, h = 0,
|
|
327
|
-
var
|
|
328
|
-
if (
|
|
373
|
+
function _(o, l) {
|
|
374
|
+
for (var c = f, h = 0, R = l === void 0 ? 1 / 0 : l, X = 0; X < R; ++X) {
|
|
375
|
+
var te = S.charCodeAt(f);
|
|
376
|
+
if (te = 97 <= te ? te - 97 + 10 : 65 <= te ? te - 65 + 10 : 48 <= te && 57 >= te ? te - 48 : 1 / 0, te >= o)
|
|
329
377
|
break;
|
|
330
|
-
++f, h = h * o +
|
|
378
|
+
++f, h = h * o + te;
|
|
331
379
|
}
|
|
332
380
|
return f === c || l !== void 0 && f - c !== l ? null : h;
|
|
333
381
|
}
|
|
334
382
|
function C(o) {
|
|
335
383
|
var l = f, c = !1, h = S.charCodeAt(f) === 48;
|
|
336
|
-
o ||
|
|
337
|
-
var
|
|
338
|
-
c ?
|
|
384
|
+
o || _(10) !== null || n(l, "Invalid number"), S.charCodeAt(f) === 46 && (++f, _(10), c = !0), o = S.charCodeAt(f), (o === 69 || o === 101) && (o = S.charCodeAt(++f), o !== 43 && o !== 45 || ++f, _(10) === null && n(l, "Invalid number"), c = !0), r(S.charCodeAt(f)) && n(f, "Identifier directly after number"), o = S.slice(l, f);
|
|
385
|
+
var R;
|
|
386
|
+
c ? R = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || oe ? n(l, "Invalid number") : R = parseInt(o, 8) : R = parseInt(o, 10), s(De, R);
|
|
339
387
|
}
|
|
340
|
-
function
|
|
341
|
-
return o =
|
|
388
|
+
function I(o) {
|
|
389
|
+
return o = _(16, o), o === null && n(z, "Bad character escape sequence"), o;
|
|
342
390
|
}
|
|
343
|
-
function
|
|
344
|
-
|
|
391
|
+
function L() {
|
|
392
|
+
Re = !1;
|
|
345
393
|
for (var o, l = !0, c = f; ; ) {
|
|
346
394
|
var h = S.charCodeAt(f);
|
|
347
395
|
if (t(h))
|
|
348
|
-
|
|
396
|
+
Re && (o += S.charAt(f)), ++f;
|
|
349
397
|
else if (h === 92) {
|
|
350
|
-
|
|
351
|
-
var
|
|
352
|
-
|
|
398
|
+
Re || (o = S.slice(c, f)), Re = !0, S.charCodeAt(++f) !== 117 && n(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, h = I(4);
|
|
399
|
+
var R = String.fromCharCode(h);
|
|
400
|
+
R || n(f - 1, "Invalid Unicode escape"), (l ? r(h) : t(h)) || n(f - 4, "Invalid Unicode escape"), o += R;
|
|
353
401
|
} else
|
|
354
402
|
break;
|
|
355
403
|
l = !1;
|
|
356
404
|
}
|
|
357
|
-
return
|
|
405
|
+
return Re ? o : S.slice(c, f);
|
|
358
406
|
}
|
|
359
|
-
function
|
|
360
|
-
var o =
|
|
361
|
-
!
|
|
407
|
+
function V() {
|
|
408
|
+
var o = L(), l = je;
|
|
409
|
+
!Re && Lr(o) && (l = jr[o]), s(l, o);
|
|
362
410
|
}
|
|
363
411
|
function v() {
|
|
364
|
-
Tt = z, ve =
|
|
412
|
+
Tt = z, ve = Te, jt = It, y();
|
|
365
413
|
}
|
|
366
|
-
function
|
|
367
|
-
if (
|
|
414
|
+
function K(o) {
|
|
415
|
+
if (oe = o, f = z, N.C)
|
|
368
416
|
for (; f < fe; )
|
|
369
417
|
fe = S.lastIndexOf(`
|
|
370
|
-
`, fe - 2) + 1, --
|
|
418
|
+
`, fe - 2) + 1, --we;
|
|
371
419
|
d(), y();
|
|
372
420
|
}
|
|
373
|
-
function
|
|
421
|
+
function ae() {
|
|
374
422
|
this.type = null, this.start = z, this.end = null;
|
|
375
423
|
}
|
|
376
|
-
function
|
|
424
|
+
function se() {
|
|
377
425
|
this.start = Et, this.end = null, Ct && (this.source = Ct);
|
|
378
426
|
}
|
|
379
|
-
function
|
|
380
|
-
var o = new
|
|
381
|
-
return
|
|
427
|
+
function W() {
|
|
428
|
+
var o = new ae();
|
|
429
|
+
return N.C && (o.X = new se()), N.vb && (o.sourceFile = N.vb), N.Xa && (o.j = [z, 0]), o;
|
|
382
430
|
}
|
|
383
|
-
function
|
|
384
|
-
var l = new
|
|
385
|
-
return l.start = o.start,
|
|
431
|
+
function ee(o) {
|
|
432
|
+
var l = new ae();
|
|
433
|
+
return l.start = o.start, N.C && (l.X = new se(), l.X.start = o.X.start), N.Xa && (l.j = [o.j[0], 0]), l;
|
|
386
434
|
}
|
|
387
|
-
function
|
|
388
|
-
return o.type = l, o.end = ve,
|
|
435
|
+
function T(o, l) {
|
|
436
|
+
return o.type = l, o.end = ve, N.C && (o.X.end = jt), N.Xa && (o.j[1] = ve), o;
|
|
389
437
|
}
|
|
390
|
-
function
|
|
438
|
+
function O(o) {
|
|
391
439
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
392
440
|
}
|
|
393
|
-
function
|
|
394
|
-
return
|
|
441
|
+
function b(o) {
|
|
442
|
+
return A === o ? (v(), !0) : !1;
|
|
395
443
|
}
|
|
396
|
-
function
|
|
397
|
-
return !
|
|
444
|
+
function B() {
|
|
445
|
+
return !N.fc && (A === At || A === Ae || lt.test(S.slice(ve, z)));
|
|
398
446
|
}
|
|
399
|
-
function
|
|
400
|
-
|
|
447
|
+
function M() {
|
|
448
|
+
b(he) || B() || D();
|
|
401
449
|
}
|
|
402
|
-
function
|
|
403
|
-
|
|
450
|
+
function j(o) {
|
|
451
|
+
A === o ? v() : D();
|
|
404
452
|
}
|
|
405
|
-
function
|
|
453
|
+
function D() {
|
|
406
454
|
n(z, "Unexpected token");
|
|
407
455
|
}
|
|
408
|
-
function
|
|
409
|
-
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"),
|
|
456
|
+
function Se(o) {
|
|
457
|
+
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), oe && o.type === "Identifier" && st(o.name) && n(o.start, "Assigning to " + o.name + " in strict mode");
|
|
410
458
|
}
|
|
411
|
-
function
|
|
412
|
-
(
|
|
413
|
-
var o =
|
|
459
|
+
function ie() {
|
|
460
|
+
(A === Bn || A === ke && le === "/=") && y(!0);
|
|
461
|
+
var o = A, l = W();
|
|
414
462
|
switch (o) {
|
|
415
463
|
case Rt:
|
|
416
464
|
case vn:
|
|
417
465
|
v();
|
|
418
466
|
var c = o === Rt;
|
|
419
|
-
|
|
467
|
+
b(he) || B() ? l.label = null : A !== je ? D() : (l.label = ue(), M());
|
|
420
468
|
for (var h = 0; h < G.length; ++h) {
|
|
421
|
-
var
|
|
422
|
-
if ((l.label === null ||
|
|
469
|
+
var R = G[h];
|
|
470
|
+
if ((l.label === null || R.name === l.label.name) && (R.kind !== null && (c || R.kind === "loop") || l.label && c))
|
|
423
471
|
break;
|
|
424
472
|
}
|
|
425
|
-
return h === G.length && n(l.start, "Unsyntactic " + o.l),
|
|
473
|
+
return h === G.length && n(l.start, "Unsyntactic " + o.l), T(l, c ? "BreakStatement" : "ContinueStatement");
|
|
426
474
|
case xn:
|
|
427
|
-
return v(),
|
|
475
|
+
return v(), M(), T(l, "DebuggerStatement");
|
|
428
476
|
case Sn:
|
|
429
|
-
return v(), G.push(_t), l.body =
|
|
477
|
+
return v(), G.push(_t), l.body = ie(), G.pop(), j(Ft), l.test = Be(), M(), T(l, "DoWhileStatement");
|
|
430
478
|
case Cn:
|
|
431
|
-
return v(), G.push(_t),
|
|
479
|
+
return v(), G.push(_t), j(de), A === he ? vt(l, null) : A === Mt ? (o = W(), v(), pn(o, !0), T(o, "VariableDeclaration"), o.fa.length === 1 && b(at) ? hn(l, o) : vt(l, o)) : (o = q(!1, !0), b(at) ? (Se(o), hn(l, o)) : vt(l, o));
|
|
432
480
|
case Nt:
|
|
433
481
|
return v(), wt(l, !0);
|
|
434
482
|
case En:
|
|
435
|
-
return v(), l.test =
|
|
483
|
+
return v(), l.test = Be(), l.da = ie(), l.alternate = b(wn) ? ie() : null, T(l, "IfStatement");
|
|
436
484
|
case In:
|
|
437
|
-
return
|
|
485
|
+
return Ve || N.Ib || n(z, "'return' outside of function"), v(), b(he) || B() ? l.K = null : (l.K = q(), M()), T(l, "ReturnStatement");
|
|
438
486
|
case Pt:
|
|
439
|
-
for (v(), l.Qb =
|
|
440
|
-
|
|
441
|
-
return h &&
|
|
487
|
+
for (v(), l.Qb = Be(), l.tb = [], j(We), G.push(Dr); A !== Ae; )
|
|
488
|
+
A === Ot || A === bn ? (o = A === Ot, h && T(h, "SwitchCase"), l.tb.push(h = W()), h.da = [], v(), o ? h.test = q() : (c && n(Tt, "Multiple default clauses"), c = !0, h.test = null), j(He)) : (h || D(), h.da.push(ie()));
|
|
489
|
+
return h && T(h, "SwitchCase"), v(), G.pop(), T(l, "SwitchStatement");
|
|
442
490
|
case Tn:
|
|
443
|
-
return v(), lt.test(S.slice(ve, z)) && n(ve, "Illegal newline after throw"), l.K = q(),
|
|
491
|
+
return v(), lt.test(S.slice(ve, z)) && n(ve, "Illegal newline after throw"), l.K = q(), M(), T(l, "ThrowStatement");
|
|
444
492
|
case jn:
|
|
445
|
-
return v(), l.block =
|
|
493
|
+
return v(), l.block = _e(), l.Ea = null, A === yn && (o = W(), v(), j(de), o.Ua = ue(), oe && st(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), j(ce), o.body = _e(), l.Ea = T(o, "CatchClause")), l.fb = b(kn) ? _e() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
446
494
|
case Mt:
|
|
447
|
-
return v(), pn(l),
|
|
495
|
+
return v(), pn(l), M(), T(l, "VariableDeclaration");
|
|
448
496
|
case Ft:
|
|
449
|
-
return v(), l.test =
|
|
497
|
+
return v(), l.test = Be(), G.push(_t), l.body = ie(), G.pop(), T(l, "WhileStatement");
|
|
450
498
|
case An:
|
|
451
|
-
return
|
|
452
|
-
case
|
|
453
|
-
return
|
|
499
|
+
return oe && n(z, "'with' in strict mode"), v(), l.object = Be(), l.body = ie(), T(l, "WithStatement");
|
|
500
|
+
case We:
|
|
501
|
+
return _e();
|
|
454
502
|
case he:
|
|
455
|
-
return v(),
|
|
503
|
+
return v(), T(l, "EmptyStatement");
|
|
456
504
|
default:
|
|
457
|
-
if (c =
|
|
505
|
+
if (c = le, R = q(), o === je && R.type === "Identifier" && b(He)) {
|
|
458
506
|
for (h = 0; h < G.length; ++h)
|
|
459
|
-
G[h].name === c && n(
|
|
507
|
+
G[h].name === c && n(R.start, "Label '" + c + "' is already declared");
|
|
460
508
|
return G.push({
|
|
461
509
|
name: c,
|
|
462
|
-
kind:
|
|
463
|
-
}), l.body =
|
|
510
|
+
kind: A.W ? "loop" : A === Pt ? "switch" : null
|
|
511
|
+
}), l.body = ie(), G.pop(), l.label = R, T(l, "LabeledStatement");
|
|
464
512
|
}
|
|
465
|
-
return l.la =
|
|
513
|
+
return l.la = R, M(), T(l, "ExpressionStatement");
|
|
466
514
|
}
|
|
467
515
|
}
|
|
468
|
-
function
|
|
469
|
-
|
|
516
|
+
function Be() {
|
|
517
|
+
j(de);
|
|
470
518
|
var o = q();
|
|
471
|
-
return
|
|
519
|
+
return j(ce), o;
|
|
472
520
|
}
|
|
473
|
-
function
|
|
474
|
-
var l =
|
|
475
|
-
for (l.body = [],
|
|
476
|
-
var
|
|
477
|
-
if (l.body.push(
|
|
521
|
+
function _e(o) {
|
|
522
|
+
var l = W(), c = !0, h = !1;
|
|
523
|
+
for (l.body = [], j(We); !b(Ae); ) {
|
|
524
|
+
var R = ie();
|
|
525
|
+
if (l.body.push(R), c && o && O(R)) {
|
|
478
526
|
var X = h;
|
|
479
|
-
|
|
527
|
+
K(h = !0);
|
|
480
528
|
}
|
|
481
529
|
c = !1;
|
|
482
530
|
}
|
|
483
|
-
return h && !X &&
|
|
531
|
+
return h && !X && K(!1), T(l, "BlockStatement");
|
|
484
532
|
}
|
|
485
533
|
function vt(o, l) {
|
|
486
|
-
return o.ua = l,
|
|
534
|
+
return o.ua = l, j(he), o.test = A === he ? null : q(), j(he), o.update = A === ce ? null : q(), j(ce), o.body = ie(), G.pop(), T(o, "ForStatement");
|
|
487
535
|
}
|
|
488
536
|
function hn(o, l) {
|
|
489
|
-
return o.left = l, o.right = q(),
|
|
537
|
+
return o.left = l, o.right = q(), j(ce), o.body = ie(), G.pop(), T(o, "ForInStatement");
|
|
490
538
|
}
|
|
491
539
|
function pn(o, l) {
|
|
492
540
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
493
|
-
var c =
|
|
494
|
-
if (c.id = ue(),
|
|
541
|
+
var c = W();
|
|
542
|
+
if (c.id = ue(), oe && st(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = b(_n) ? q(!0, l) : null, o.fa.push(T(c, "VariableDeclarator")), !b(xe))
|
|
495
543
|
break;
|
|
496
544
|
}
|
|
497
545
|
}
|
|
498
546
|
function q(o, l) {
|
|
499
547
|
var c = xt(l);
|
|
500
|
-
if (!o &&
|
|
501
|
-
for (o =
|
|
548
|
+
if (!o && A === xe) {
|
|
549
|
+
for (o = ee(c), o.xb = [c]; b(xe); )
|
|
502
550
|
o.xb.push(xt(l));
|
|
503
|
-
return
|
|
551
|
+
return T(o, "SequenceExpression");
|
|
504
552
|
}
|
|
505
553
|
return c;
|
|
506
554
|
}
|
|
507
555
|
function xt(o) {
|
|
508
556
|
var l = bt(St(), -1, o);
|
|
509
|
-
if (
|
|
510
|
-
var c =
|
|
511
|
-
c.test = l, c.da = q(!0),
|
|
557
|
+
if (b(Un)) {
|
|
558
|
+
var c = ee(l);
|
|
559
|
+
c.test = l, c.da = q(!0), j(He), c.alternate = q(!0, o), l = T(c, "ConditionalExpression");
|
|
512
560
|
}
|
|
513
|
-
return
|
|
561
|
+
return A.Cb ? (c = ee(l), c.operator = le, c.left = l, v(), c.right = xt(o), Se(l), T(c, "AssignmentExpression")) : l;
|
|
514
562
|
}
|
|
515
563
|
function bt(o, l, c) {
|
|
516
|
-
var h =
|
|
517
|
-
if (h !== null && (!c ||
|
|
518
|
-
var
|
|
519
|
-
return
|
|
564
|
+
var h = A.L;
|
|
565
|
+
if (h !== null && (!c || A !== at) && h > l) {
|
|
566
|
+
var R = ee(o);
|
|
567
|
+
return R.left = o, R.operator = le, o = A, v(), R.right = bt(St(), h, c), h = T(R, o === $n || o === Vn ? "LogicalExpression" : "BinaryExpression"), bt(h, l, c);
|
|
520
568
|
}
|
|
521
569
|
return o;
|
|
522
570
|
}
|
|
523
571
|
function St() {
|
|
524
|
-
if (
|
|
525
|
-
var o =
|
|
526
|
-
return o.operator =
|
|
572
|
+
if (A.prefix) {
|
|
573
|
+
var o = W(), l = A.$b;
|
|
574
|
+
return o.operator = le, $e = o.prefix = !0, v(), o.K = St(), l ? Se(o.K) : oe && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), T(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
527
575
|
}
|
|
528
|
-
for (l =
|
|
529
|
-
o =
|
|
576
|
+
for (l = Le(it()); A.cc && !B(); )
|
|
577
|
+
o = ee(l), o.operator = le, o.prefix = !1, o.K = l, Se(l), v(), l = T(o, "UpdateExpression");
|
|
530
578
|
return l;
|
|
531
579
|
}
|
|
532
|
-
function
|
|
533
|
-
if (
|
|
534
|
-
var c =
|
|
535
|
-
return c.object = o, c.Wa = ue(!0), c.bb = !1,
|
|
580
|
+
function Le(o, l) {
|
|
581
|
+
if (b(Fn)) {
|
|
582
|
+
var c = ee(o);
|
|
583
|
+
return c.object = o, c.Wa = ue(!0), c.bb = !1, Le(T(c, "MemberExpression"), l);
|
|
536
584
|
}
|
|
537
|
-
return
|
|
585
|
+
return b(Ut) ? (c = ee(o), c.object = o, c.Wa = q(), c.bb = !0, j(Bt), Le(T(c, "MemberExpression"), l)) : !l && b(de) ? (c = ee(o), c.callee = o, c.arguments = kt(ce, !1), Le(T(c, "CallExpression"), l)) : o;
|
|
538
586
|
}
|
|
539
587
|
function it() {
|
|
540
|
-
switch (
|
|
588
|
+
switch (A) {
|
|
541
589
|
case On:
|
|
542
|
-
var o =
|
|
543
|
-
return v(),
|
|
544
|
-
case
|
|
590
|
+
var o = W();
|
|
591
|
+
return v(), T(o, "ThisExpression");
|
|
592
|
+
case je:
|
|
545
593
|
return ue();
|
|
546
|
-
case
|
|
594
|
+
case De:
|
|
547
595
|
case ot:
|
|
548
596
|
case gn:
|
|
549
|
-
return o =
|
|
597
|
+
return o = W(), o.value = le, o.raw = S.slice(z, Te), v(), T(o, "Literal");
|
|
550
598
|
case Nn:
|
|
551
599
|
case Pn:
|
|
552
600
|
case Mn:
|
|
553
|
-
return o =
|
|
601
|
+
return o = W(), o.value = A.$a, o.raw = A.l, v(), T(o, "Literal");
|
|
554
602
|
case de:
|
|
555
603
|
o = Et;
|
|
556
604
|
var l = z;
|
|
557
605
|
v();
|
|
558
606
|
var c = q();
|
|
559
|
-
return c.start = l, c.end =
|
|
607
|
+
return c.start = l, c.end = Te, N.C && (c.X.start = o, c.X.end = It), N.Xa && (c.j = [l, Te]), j(ce), c;
|
|
560
608
|
case Ut:
|
|
561
|
-
return o =
|
|
562
|
-
case
|
|
563
|
-
for (o =
|
|
609
|
+
return o = W(), v(), o.elements = kt(Bt, !0, !0), T(o, "ArrayExpression");
|
|
610
|
+
case We:
|
|
611
|
+
for (o = W(), l = !0, c = !1, o.h = [], v(); !b(Ae); ) {
|
|
564
612
|
if (l)
|
|
565
613
|
l = !1;
|
|
566
|
-
else if (
|
|
614
|
+
else if (j(xe), N.sb && b(Ae))
|
|
567
615
|
break;
|
|
568
616
|
var h = {
|
|
569
|
-
key:
|
|
570
|
-
},
|
|
571
|
-
if (
|
|
617
|
+
key: A === De || A === ot ? it() : ue(!0)
|
|
618
|
+
}, R = !1;
|
|
619
|
+
if (b(He)) {
|
|
572
620
|
h.value = q(!0);
|
|
573
621
|
var X = h.kind = "init";
|
|
574
622
|
} else
|
|
575
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ?
|
|
576
|
-
if (h.key.type === "Identifier" && (
|
|
577
|
-
for (var
|
|
578
|
-
var
|
|
579
|
-
if (
|
|
580
|
-
var
|
|
581
|
-
|
|
623
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? D() : (R = c = !0, X = h.kind = h.key.name, h.key = A === De || A === ot ? it() : ue(!0), A !== de && D(), h.value = wt(W(), !1));
|
|
624
|
+
if (h.key.type === "Identifier" && (oe || c))
|
|
625
|
+
for (var te = 0; te < o.h.length; ++te) {
|
|
626
|
+
var Oe = o.h[te];
|
|
627
|
+
if (Oe.key.name === h.key.name) {
|
|
628
|
+
var Lt = X === Oe.kind || R && Oe.kind === "init" || X === "init" && (Oe.kind === "get" || Oe.kind === "set");
|
|
629
|
+
Lt && !oe && X === "init" && Oe.kind === "init" && (Lt = !1), Lt && n(h.key.start, "Redefinition of property");
|
|
582
630
|
}
|
|
583
631
|
}
|
|
584
632
|
o.h.push(h);
|
|
585
633
|
}
|
|
586
|
-
return
|
|
634
|
+
return T(o, "ObjectExpression");
|
|
587
635
|
case Nt:
|
|
588
|
-
return o =
|
|
636
|
+
return o = W(), v(), wt(o, !1);
|
|
589
637
|
case Rn:
|
|
590
|
-
return o =
|
|
638
|
+
return o = W(), v(), o.callee = Le(it(), !0), o.arguments = b(de) ? kt(ce, !1) : Tr, T(o, "NewExpression");
|
|
591
639
|
}
|
|
592
|
-
|
|
640
|
+
D();
|
|
593
641
|
}
|
|
594
642
|
function wt(o, l) {
|
|
595
|
-
|
|
643
|
+
A === je ? o.id = ue() : l ? D() : o.id = null, o.oa = [];
|
|
596
644
|
var c = !0;
|
|
597
|
-
for (
|
|
598
|
-
c ? c = !1 :
|
|
599
|
-
c =
|
|
645
|
+
for (j(de); !b(ce); )
|
|
646
|
+
c ? c = !1 : j(xe), o.oa.push(ue());
|
|
647
|
+
c = Ve;
|
|
600
648
|
var h = G;
|
|
601
|
-
if (
|
|
649
|
+
if (Ve = !0, G = [], o.body = _e(!0), Ve = c, G = h, oe || o.body.body.length && O(o.body.body[0])) {
|
|
602
650
|
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
603
651
|
if (h = 0 > c ? o.id : o.oa[c], (Dn(h.name) || st(h.name)) && n(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
604
|
-
for (var
|
|
605
|
-
h.name === o.oa[
|
|
652
|
+
for (var R = 0; R < c; ++R)
|
|
653
|
+
h.name === o.oa[R].name && n(h.start, "Argument name clash in strict mode");
|
|
606
654
|
}
|
|
607
|
-
return
|
|
655
|
+
return T(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
608
656
|
}
|
|
609
657
|
function kt(o, l, c) {
|
|
610
|
-
for (var h = [],
|
|
611
|
-
if (
|
|
612
|
-
|
|
613
|
-
else if (
|
|
658
|
+
for (var h = [], R = !0; !b(o); ) {
|
|
659
|
+
if (R)
|
|
660
|
+
R = !1;
|
|
661
|
+
else if (j(xe), l && N.sb && b(o))
|
|
614
662
|
break;
|
|
615
|
-
h.push(c &&
|
|
663
|
+
h.push(c && A === xe ? null : q(!0));
|
|
616
664
|
}
|
|
617
665
|
return h;
|
|
618
666
|
}
|
|
619
667
|
function ue(o) {
|
|
620
|
-
var l =
|
|
621
|
-
return o &&
|
|
668
|
+
var l = W();
|
|
669
|
+
return o && N.yb === "everywhere" && (o = !1), A === je ? (!o && (N.yb && _r(le) || oe && Dn(le)) && S.slice(z, Te).indexOf("\\") === -1 && n(z, "The keyword '" + le + "' is reserved"), l.name = le) : o && A.l ? l.name = A.l : D(), $e = !1, v(), T(l, "Identifier");
|
|
622
670
|
}
|
|
623
671
|
e.version = "0.5.0";
|
|
624
|
-
var
|
|
672
|
+
var N, S = "", Ie, Ct;
|
|
625
673
|
e.parse = function(o, l) {
|
|
626
|
-
S = String(o),
|
|
674
|
+
S = String(o), Ie = S.length, N = l || {};
|
|
627
675
|
for (var c in mn)
|
|
628
|
-
Object.prototype.hasOwnProperty.call(
|
|
629
|
-
for (Ct =
|
|
630
|
-
c =
|
|
631
|
-
return
|
|
676
|
+
Object.prototype.hasOwnProperty.call(N, c) || (N[c] = mn[c]);
|
|
677
|
+
for (Ct = N.sourceFile, we = 1, f = fe = 0, $e = !0, d(), c = N.dc, Tt = ve = f, N.C && (jt = new a()), Ve = oe = !1, G = [], y(), o = c || W(), l = !0, c || (o.body = []); A !== At; )
|
|
678
|
+
c = ie(), o.body.push(c), l && O(c) && K(!0), l = !1;
|
|
679
|
+
return T(o, "Program");
|
|
632
680
|
};
|
|
633
681
|
var mn = {
|
|
634
682
|
fc: !1,
|
|
@@ -641,13 +689,13 @@ var _, Jr = function(e) {
|
|
|
641
689
|
dc: null,
|
|
642
690
|
sourceFile: null,
|
|
643
691
|
vb: null
|
|
644
|
-
}, f = 0, z = 0,
|
|
692
|
+
}, f = 0, z = 0, Te = 0, Et, It, A, le, $e, we, fe, Tt = 0, ve = 0, jt, Ve, G, oe, Tr = [], De = {
|
|
645
693
|
type: "num"
|
|
646
694
|
}, gn = {
|
|
647
695
|
type: "regexp"
|
|
648
696
|
}, ot = {
|
|
649
697
|
type: "string"
|
|
650
|
-
},
|
|
698
|
+
}, je = {
|
|
651
699
|
type: "name"
|
|
652
700
|
}, At = {
|
|
653
701
|
type: "eof"
|
|
@@ -714,7 +762,7 @@ var _, Jr = function(e) {
|
|
|
714
762
|
l: "in",
|
|
715
763
|
L: 7,
|
|
716
764
|
m: !0
|
|
717
|
-
},
|
|
765
|
+
}, jr = {
|
|
718
766
|
break: Rt,
|
|
719
767
|
case: Ot,
|
|
720
768
|
catch: yn,
|
|
@@ -765,10 +813,10 @@ var _, Jr = function(e) {
|
|
|
765
813
|
m: !0
|
|
766
814
|
}, Bt = {
|
|
767
815
|
type: "]"
|
|
768
|
-
},
|
|
816
|
+
}, We = {
|
|
769
817
|
type: "{",
|
|
770
818
|
m: !0
|
|
771
|
-
},
|
|
819
|
+
}, Ae = {
|
|
772
820
|
type: "}"
|
|
773
821
|
}, de = {
|
|
774
822
|
type: "(",
|
|
@@ -781,7 +829,7 @@ var _, Jr = function(e) {
|
|
|
781
829
|
}, he = {
|
|
782
830
|
type: ";",
|
|
783
831
|
m: !0
|
|
784
|
-
},
|
|
832
|
+
}, He = {
|
|
785
833
|
type: ":",
|
|
786
834
|
m: !0
|
|
787
835
|
}, Fn = {
|
|
@@ -795,56 +843,56 @@ var _, Jr = function(e) {
|
|
|
795
843
|
}, _n = {
|
|
796
844
|
Cb: !0,
|
|
797
845
|
m: !0
|
|
798
|
-
},
|
|
846
|
+
}, ke = {
|
|
799
847
|
Cb: !0,
|
|
800
848
|
m: !0
|
|
801
|
-
},
|
|
849
|
+
}, Ar = {
|
|
802
850
|
cc: !0,
|
|
803
851
|
prefix: !0,
|
|
804
852
|
$b: !0
|
|
805
|
-
},
|
|
853
|
+
}, Ln = {
|
|
806
854
|
prefix: !0,
|
|
807
855
|
m: !0
|
|
808
|
-
},
|
|
856
|
+
}, $n = {
|
|
809
857
|
L: 1,
|
|
810
858
|
m: !0
|
|
811
859
|
}, Vn = {
|
|
812
860
|
L: 2,
|
|
813
861
|
m: !0
|
|
814
|
-
},
|
|
862
|
+
}, Rr = {
|
|
815
863
|
L: 3,
|
|
816
864
|
m: !0
|
|
817
|
-
},
|
|
865
|
+
}, Or = {
|
|
818
866
|
L: 4,
|
|
819
867
|
m: !0
|
|
820
|
-
},
|
|
868
|
+
}, Nr = {
|
|
821
869
|
L: 5,
|
|
822
870
|
m: !0
|
|
823
|
-
},
|
|
871
|
+
}, Pr = {
|
|
824
872
|
L: 6,
|
|
825
873
|
m: !0
|
|
826
|
-
},
|
|
874
|
+
}, Mr = {
|
|
827
875
|
L: 7,
|
|
828
876
|
m: !0
|
|
829
|
-
},
|
|
877
|
+
}, Fr = {
|
|
830
878
|
L: 8,
|
|
831
879
|
m: !0
|
|
832
|
-
},
|
|
880
|
+
}, Ur = {
|
|
833
881
|
L: 9,
|
|
834
882
|
prefix: !0,
|
|
835
883
|
m: !0
|
|
836
|
-
},
|
|
884
|
+
}, Br = {
|
|
837
885
|
L: 10,
|
|
838
886
|
m: !0
|
|
839
|
-
},
|
|
887
|
+
}, _r = i("class enum extends super const export import"), Dn = i("implements interface let package private protected public static yield"), st = i("eval arguments"), Lr = i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), $r = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Wn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Vr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), lt = /[\n\r\u2028\u2029]/, ct = /\r\n|[\n\r\u2028\u2029]/g, Re, _t = {
|
|
840
888
|
kind: "loop"
|
|
841
|
-
},
|
|
889
|
+
}, Dr = {
|
|
842
890
|
kind: "switch"
|
|
843
891
|
};
|
|
844
892
|
}, Kt = Kt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
845
|
-
|
|
846
|
-
function
|
|
847
|
-
typeof e == "string" && (e =
|
|
893
|
+
ei(Kt.j || (Kt.j = {}));
|
|
894
|
+
function m(e, t) {
|
|
895
|
+
typeof e == "string" && (e = Me(e, "code"));
|
|
848
896
|
var r = e.constructor;
|
|
849
897
|
this.ya = function() {
|
|
850
898
|
return new r({
|
|
@@ -858,7 +906,7 @@ function g(e, t) {
|
|
|
858
906
|
var a, s;
|
|
859
907
|
for (s in this)
|
|
860
908
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
861
|
-
this.N = zt(this, this.ra, null), this.Na = this.N.object, this.ra =
|
|
909
|
+
this.N = zt(this, this.ra, null), this.Na = this.N.object, this.ra = Me(this.ba.join(`
|
|
862
910
|
`), "polyfills"), this.ba = void 0, pt(this.ra), a = new k(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = n, a = new k(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
863
911
|
}
|
|
864
912
|
var Jn = {
|
|
@@ -872,11 +920,11 @@ var Jn = {
|
|
|
872
920
|
configurable: !0,
|
|
873
921
|
enumerable: !1,
|
|
874
922
|
writable: !0
|
|
875
|
-
},
|
|
923
|
+
}, re = {
|
|
876
924
|
configurable: !0,
|
|
877
925
|
enumerable: !1,
|
|
878
926
|
writable: !1
|
|
879
|
-
},
|
|
927
|
+
}, Ke = {
|
|
880
928
|
configurable: !1,
|
|
881
929
|
enumerable: !1,
|
|
882
930
|
writable: !1
|
|
@@ -884,20 +932,20 @@ var Jn = {
|
|
|
884
932
|
configurable: !1,
|
|
885
933
|
enumerable: !0,
|
|
886
934
|
writable: !0
|
|
887
|
-
},
|
|
935
|
+
}, gr = {
|
|
888
936
|
STEP_ERROR: !0
|
|
889
|
-
},
|
|
937
|
+
}, Ue = {
|
|
890
938
|
SCOPE_REFERENCE: !0
|
|
891
|
-
},
|
|
939
|
+
}, Ze = {
|
|
892
940
|
VALUE_IN_DESCRIPTOR: !0
|
|
893
|
-
},
|
|
941
|
+
}, Ne = {
|
|
894
942
|
REGEXP_TIMEOUT: !0
|
|
895
|
-
}, qn = [], me = null,
|
|
943
|
+
}, qn = [], me = null, Ye = null, be = typeof globalThis > "u" ? void 0 : globalThis, ti = ["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();", "};"];
|
|
896
944
|
function Qt(e) {
|
|
897
945
|
var t = e >>> 0;
|
|
898
946
|
return t === Number(e) ? t : NaN;
|
|
899
947
|
}
|
|
900
|
-
function
|
|
948
|
+
function qe(e) {
|
|
901
949
|
var t = e >>> 0;
|
|
902
950
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
903
951
|
}
|
|
@@ -909,29 +957,29 @@ function pt(e, t, r) {
|
|
|
909
957
|
i && typeof i == "object" && pt(i, t, r);
|
|
910
958
|
}
|
|
911
959
|
}
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
function
|
|
960
|
+
m.prototype.REGEXP_MODE = 2;
|
|
961
|
+
m.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
962
|
+
m.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
963
|
+
$ = m.prototype;
|
|
964
|
+
$.P = !1;
|
|
965
|
+
$.Ka = !1;
|
|
966
|
+
$.Kb = 0;
|
|
967
|
+
$.ic = 0;
|
|
968
|
+
function Me(e, t) {
|
|
921
969
|
var r = {}, n;
|
|
922
970
|
for (n in Jn)
|
|
923
971
|
r[n] = Jn[n];
|
|
924
972
|
return r.sourceFile = t, be.j.parse(e, r);
|
|
925
973
|
}
|
|
926
|
-
|
|
974
|
+
$.Jb = function(e) {
|
|
927
975
|
var t = this.o[0];
|
|
928
976
|
if (!t || t.node.type !== "Program")
|
|
929
977
|
throw Error("Expecting original AST to start with a Program node");
|
|
930
|
-
if (typeof e == "string" && (e =
|
|
978
|
+
if (typeof e == "string" && (e = Me(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
931
979
|
throw Error("Expecting new AST to start with a Program node");
|
|
932
|
-
|
|
980
|
+
Qe(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
933
981
|
};
|
|
934
|
-
|
|
982
|
+
$.lb = function() {
|
|
935
983
|
var e = this.o, t;
|
|
936
984
|
do {
|
|
937
985
|
var r = e[e.length - 1];
|
|
@@ -943,7 +991,7 @@ _.lb = function() {
|
|
|
943
991
|
if (r = this.ca[0], !r || r.time > Date.now())
|
|
944
992
|
r = null;
|
|
945
993
|
else {
|
|
946
|
-
this.ca.shift(), 0 <= r.interval &&
|
|
994
|
+
this.ca.shift(), 0 <= r.interval && xr(this, r, r.interval);
|
|
947
995
|
var n = new k(r.node, r.scope);
|
|
948
996
|
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
949
997
|
}
|
|
@@ -951,15 +999,15 @@ _.lb = function() {
|
|
|
951
999
|
break;
|
|
952
1000
|
}
|
|
953
1001
|
n = r.node;
|
|
954
|
-
var i =
|
|
955
|
-
|
|
1002
|
+
var i = Ye;
|
|
1003
|
+
Ye = this;
|
|
956
1004
|
try {
|
|
957
1005
|
var a = this.rb[n.type](e, r, n);
|
|
958
1006
|
} catch (s) {
|
|
959
|
-
if (s !==
|
|
1007
|
+
if (s !== gr)
|
|
960
1008
|
throw this.value !== s && (this.value = void 0), s;
|
|
961
1009
|
} finally {
|
|
962
|
-
|
|
1010
|
+
Ye = i;
|
|
963
1011
|
}
|
|
964
1012
|
if (a && e.push(a), this.P)
|
|
965
1013
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -969,13 +1017,13 @@ _.lb = function() {
|
|
|
969
1017
|
} while (!n.end && t > Date.now());
|
|
970
1018
|
return !0;
|
|
971
1019
|
};
|
|
972
|
-
|
|
1020
|
+
$.Eb = function() {
|
|
973
1021
|
for (; !this.za && this.lb(); )
|
|
974
1022
|
;
|
|
975
1023
|
return this.za;
|
|
976
1024
|
};
|
|
977
|
-
function
|
|
978
|
-
e.g(t, "NaN", NaN,
|
|
1025
|
+
function ni(e, t) {
|
|
1026
|
+
e.g(t, "NaN", NaN, Ke), e.g(t, "Infinity", 1 / 0, Ke), e.g(t, "undefined", void 0, Ke), e.g(t, "window", t, Zt), e.g(t, "this", t, Ke), e.g(t, "self", t), e.M = new F(null), e.Z = new F(e.M), ri(e, t), ii(e, t), t.xa = e.M, e.g(t, "constructor", e.v, w), oi(e, t), ai(e, t), si(e, t), li(e, t), ci(e, t), ui(e, t), fi(e, t), di(e, t), hi(e, t);
|
|
979
1027
|
var r = e.i(function() {
|
|
980
1028
|
throw EvalError("Can't happen");
|
|
981
1029
|
}, !1);
|
|
@@ -986,7 +1034,7 @@ function qr(e, t) {
|
|
|
986
1034
|
try {
|
|
987
1035
|
return a(s);
|
|
988
1036
|
} catch (u) {
|
|
989
|
-
|
|
1037
|
+
E(e, e.Gb, u.message);
|
|
990
1038
|
}
|
|
991
1039
|
};
|
|
992
1040
|
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1), w);
|
|
@@ -1000,29 +1048,29 @@ function qr(e, t) {
|
|
|
1000
1048
|
Qn(e, a);
|
|
1001
1049
|
}, e.g(t, "clearInterval", e.i(r, !1), w), 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);
|
|
1002
1050
|
}
|
|
1003
|
-
|
|
1004
|
-
function
|
|
1051
|
+
$.Wb = 0;
|
|
1052
|
+
function ri(e, t) {
|
|
1005
1053
|
var r = /^[A-Za-z_$][\w$]*$/, n = function(i) {
|
|
1006
1054
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1007
1055
|
if (s) {
|
|
1008
1056
|
s = s.split(/\s*,\s*/);
|
|
1009
1057
|
for (var u = 0; u < s.length; u++) {
|
|
1010
1058
|
var d = s[u];
|
|
1011
|
-
r.test(d) ||
|
|
1059
|
+
r.test(d) || E(e, e.T, "Invalid function argument: " + d);
|
|
1012
1060
|
}
|
|
1013
1061
|
s = s.join(", ");
|
|
1014
1062
|
}
|
|
1015
1063
|
try {
|
|
1016
|
-
var p =
|
|
1064
|
+
var p = Me("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1017
1065
|
} catch (y) {
|
|
1018
|
-
|
|
1066
|
+
E(e, e.T, "Invalid code: " + y.message);
|
|
1019
1067
|
}
|
|
1020
|
-
return p.body.length !== 1 &&
|
|
1068
|
+
return p.body.length !== 1 && E(e, e.T, "Invalid code in function body"), nn(e, p.body[0].la, e.N, "anonymous");
|
|
1021
1069
|
};
|
|
1022
1070
|
e.O = e.i(n, !0), e.g(t, "Function", e.O, w), e.g(e.O, "prototype", e.Z, w), e.g(e.Z, "constructor", e.O, w), e.Z.Ta = function() {
|
|
1023
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1071
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, re), e.Z.H = "Function", n = function(i, a) {
|
|
1024
1072
|
var s = e.o[e.o.length - 1];
|
|
1025
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof
|
|
1073
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof F ? s.F = yr(e, a) : E(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1026
1074
|
}, J(e, e.O, "apply", n), n = function(i) {
|
|
1027
1075
|
var a = e.o[e.o.length - 1];
|
|
1028
1076
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1035,29 +1083,29 @@ function Zr(e, t) {
|
|
|
1035
1083
|
return this.valueOf();
|
|
1036
1084
|
}, J(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), w);
|
|
1037
1085
|
}
|
|
1038
|
-
function
|
|
1086
|
+
function ii(e, t) {
|
|
1039
1087
|
function r(i) {
|
|
1040
|
-
i != null ||
|
|
1088
|
+
i != null || E(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1041
1089
|
}
|
|
1042
1090
|
var n = function(i) {
|
|
1043
1091
|
if (i == null)
|
|
1044
1092
|
return ye(e) ? this : e.s(e.M);
|
|
1045
|
-
if (!(i instanceof
|
|
1093
|
+
if (!(i instanceof F)) {
|
|
1046
1094
|
var a = e.s(ge(e, i));
|
|
1047
1095
|
return a.data = i, a;
|
|
1048
1096
|
}
|
|
1049
1097
|
return i;
|
|
1050
1098
|
};
|
|
1051
1099
|
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M, w), e.g(e.M, "constructor", e.v, w), e.g(t, "Object", e.v, w), n = function(i) {
|
|
1052
|
-
return r(i), pe(e, Object.getOwnPropertyNames(i instanceof
|
|
1100
|
+
return r(i), pe(e, Object.getOwnPropertyNames(i instanceof F ? i.h : i));
|
|
1053
1101
|
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1), w), n = function(i) {
|
|
1054
|
-
return r(i), i instanceof
|
|
1102
|
+
return r(i), i instanceof F && (i = i.h), pe(e, Object.keys(i));
|
|
1055
1103
|
}, e.g(e.v, "keys", e.i(n, !1), w), n = function(i) {
|
|
1056
|
-
return i === null ? e.s(null) : (i instanceof
|
|
1104
|
+
return i === null ? e.s(null) : (i instanceof F || E(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1057
1105
|
}, e.g(e.v, "create", e.i(n, !1), w), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), n = function(i, a, s) {
|
|
1058
|
-
return a = String(a), i instanceof
|
|
1106
|
+
return a = String(a), i instanceof F || E(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof F || E(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || E(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, Ze, s.h), i;
|
|
1059
1107
|
}, e.g(e.v, "defineProperty", e.i(n, !1), w), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), n = function(i, a) {
|
|
1060
|
-
if (i instanceof
|
|
1108
|
+
if (i instanceof F || E(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1061
1109
|
var s = Object.getOwnPropertyDescriptor(i.h, a), u = i.V[a];
|
|
1062
1110
|
return i = i.Y[a], a = e.s(e.M), u || i ? (e.g(a, "get", u), e.g(a, "set", i)) : (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;
|
|
1063
1111
|
}
|
|
@@ -1066,11 +1114,11 @@ function Qr(e, t) {
|
|
|
1066
1114
|
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), w), n = function(i) {
|
|
1067
1115
|
return !!i && !i.preventExtensions;
|
|
1068
1116
|
}, e.g(e.v, "isExtensible", e.i(n, !1), w), n = function(i) {
|
|
1069
|
-
return i instanceof
|
|
1070
|
-
}, e.g(e.v, "preventExtensions", e.i(n, !1), w), J(e, e.v, "toString",
|
|
1071
|
-
return r(this), this instanceof
|
|
1117
|
+
return i instanceof F && (i.preventExtensions = !0), i;
|
|
1118
|
+
}, e.g(e.v, "preventExtensions", e.i(n, !1), w), J(e, e.v, "toString", F.prototype.toString), J(e, e.v, "toLocaleString", F.prototype.toString), J(e, e.v, "valueOf", F.prototype.valueOf), n = function(i) {
|
|
1119
|
+
return r(this), this instanceof F ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1072
1120
|
}, J(e, e.v, "hasOwnProperty", n), n = function(i) {
|
|
1073
|
-
return r(this), this instanceof
|
|
1121
|
+
return r(this), this instanceof F ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1074
1122
|
}, J(e, e.v, "propertyIsEnumerable", n), n = function(i) {
|
|
1075
1123
|
for (; ; ) {
|
|
1076
1124
|
if (i = ge(e, i), !i)
|
|
@@ -1080,11 +1128,11 @@ function Qr(e, t) {
|
|
|
1080
1128
|
}
|
|
1081
1129
|
}, J(e, e.v, "isPrototypeOf", n);
|
|
1082
1130
|
}
|
|
1083
|
-
function
|
|
1131
|
+
function oi(e, t) {
|
|
1084
1132
|
var r = function(n) {
|
|
1085
|
-
var i = ye(e) ? this :
|
|
1133
|
+
var i = ye(e) ? this : Fe(e), a = arguments[0];
|
|
1086
1134
|
if (arguments.length === 1 && typeof a == "number")
|
|
1087
|
-
isNaN(Qt(a)) &&
|
|
1135
|
+
isNaN(Qt(a)) && E(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1088
1136
|
else {
|
|
1089
1137
|
for (a = 0; a < arguments.length; a++)
|
|
1090
1138
|
i.h[a] = arguments[a];
|
|
@@ -1100,7 +1148,7 @@ function ei(e, t) {
|
|
|
1100
1148
|
writable: !0
|
|
1101
1149
|
}), 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(',');", "}", ");", "})();", "");
|
|
1102
1150
|
}
|
|
1103
|
-
function
|
|
1151
|
+
function ai(e, t) {
|
|
1104
1152
|
var r = function(n) {
|
|
1105
1153
|
return n = arguments.length ? be.String(n) : "", ye(e) ? (this.data = n, this) : n;
|
|
1106
1154
|
};
|
|
@@ -1111,19 +1159,19 @@ function ti(e, t) {
|
|
|
1111
1159
|
try {
|
|
1112
1160
|
return String(this).localeCompare(n, i, a);
|
|
1113
1161
|
} catch (s) {
|
|
1114
|
-
|
|
1162
|
+
E(e, e.D, "localeCompare: " + s.message);
|
|
1115
1163
|
}
|
|
1116
1164
|
}, J(e, e.J, "localeCompare", r), r = function(n, i, a) {
|
|
1117
1165
|
var s = String(this);
|
|
1118
|
-
if (i = i ? Number(i) : void 0, Y(e, n, e.I) && (n = n.data,
|
|
1166
|
+
if (i = i ? Number(i) : void 0, Y(e, n, e.I) && (n = n.data, ze(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1119
1167
|
if (me)
|
|
1120
|
-
n =
|
|
1168
|
+
n = Ge(e, "string.split(separator, limit)", {
|
|
1121
1169
|
string: s,
|
|
1122
1170
|
separator: n,
|
|
1123
1171
|
limit: i
|
|
1124
|
-
}, n, a), n !==
|
|
1172
|
+
}, n, a), n !== Ne && a(pe(e, n));
|
|
1125
1173
|
else {
|
|
1126
|
-
var u = e.ha(), d =
|
|
1174
|
+
var u = e.ha(), d = Xe(e, n, u, a);
|
|
1127
1175
|
u.onmessage = function(p) {
|
|
1128
1176
|
clearTimeout(d), a(pe(e, p.data));
|
|
1129
1177
|
}, u.postMessage(["split", s, n, i]);
|
|
@@ -1131,49 +1179,49 @@ function ti(e, t) {
|
|
|
1131
1179
|
return;
|
|
1132
1180
|
}
|
|
1133
1181
|
n = s.split(n, i), a(pe(e, n));
|
|
1134
|
-
},
|
|
1182
|
+
}, Je(e, e.J, "split", r), r = function(n, i) {
|
|
1135
1183
|
var a = String(this);
|
|
1136
|
-
if (n = Y(e, n, e.I) ? n.data : new RegExp(n),
|
|
1184
|
+
if (n = Y(e, n, e.I) ? n.data : new RegExp(n), ze(e, n, i), e.REGEXP_MODE === 2)
|
|
1137
1185
|
if (me)
|
|
1138
|
-
n =
|
|
1186
|
+
n = Ge(e, "string.match(regexp)", {
|
|
1139
1187
|
string: a,
|
|
1140
1188
|
regexp: n
|
|
1141
|
-
}, n, i), n !==
|
|
1189
|
+
}, n, i), n !== Ne && i(n && pe(e, n));
|
|
1142
1190
|
else {
|
|
1143
|
-
var s = e.ha(), u =
|
|
1191
|
+
var s = e.ha(), u = Xe(e, n, s, i);
|
|
1144
1192
|
s.onmessage = function(d) {
|
|
1145
1193
|
clearTimeout(u), i(d.data && pe(e, d.data));
|
|
1146
1194
|
}, s.postMessage(["match", a, n]);
|
|
1147
1195
|
}
|
|
1148
1196
|
else
|
|
1149
1197
|
n = a.match(n), i(n && pe(e, n));
|
|
1150
|
-
},
|
|
1198
|
+
}, Je(e, e.J, "match", r), r = function(n, i) {
|
|
1151
1199
|
var a = String(this);
|
|
1152
|
-
if (Y(e, n, e.I) ? n = n.data : n = new RegExp(n),
|
|
1200
|
+
if (Y(e, n, e.I) ? n = n.data : n = new RegExp(n), ze(e, n, i), e.REGEXP_MODE === 2)
|
|
1153
1201
|
if (me)
|
|
1154
|
-
n =
|
|
1202
|
+
n = Ge(e, "string.search(regexp)", {
|
|
1155
1203
|
string: a,
|
|
1156
1204
|
regexp: n
|
|
1157
|
-
}, n, i), n !==
|
|
1205
|
+
}, n, i), n !== Ne && i(n);
|
|
1158
1206
|
else {
|
|
1159
|
-
var s = e.ha(), u =
|
|
1207
|
+
var s = e.ha(), u = Xe(e, n, s, i);
|
|
1160
1208
|
s.onmessage = function(d) {
|
|
1161
1209
|
clearTimeout(u), i(d.data);
|
|
1162
1210
|
}, s.postMessage(["search", a, n]);
|
|
1163
1211
|
}
|
|
1164
1212
|
else
|
|
1165
1213
|
i(a.search(n));
|
|
1166
|
-
},
|
|
1214
|
+
}, Je(e, e.J, "search", r), r = function(n, i, a) {
|
|
1167
1215
|
var s = String(this);
|
|
1168
|
-
if (i = String(i), Y(e, n, e.I) && (n = n.data,
|
|
1216
|
+
if (i = String(i), Y(e, n, e.I) && (n = n.data, ze(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1169
1217
|
if (me)
|
|
1170
|
-
n =
|
|
1218
|
+
n = Ge(e, "string.replace(substr, newSubstr)", {
|
|
1171
1219
|
string: s,
|
|
1172
1220
|
substr: n,
|
|
1173
1221
|
newSubstr: i
|
|
1174
|
-
}, n, a), n !==
|
|
1222
|
+
}, n, a), n !== Ne && a(n);
|
|
1175
1223
|
else {
|
|
1176
|
-
var u = e.ha(), d =
|
|
1224
|
+
var u = e.ha(), d = Xe(e, n, u, a);
|
|
1177
1225
|
u.onmessage = function(p) {
|
|
1178
1226
|
clearTimeout(d), a(p.data);
|
|
1179
1227
|
}, u.postMessage(["replace", s, n, i]);
|
|
@@ -1181,53 +1229,53 @@ function ti(e, t) {
|
|
|
1181
1229
|
return;
|
|
1182
1230
|
}
|
|
1183
1231
|
a(s.replace(n, i));
|
|
1184
|
-
},
|
|
1232
|
+
}, Je(e, e.J, "replace", r), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1185
1233
|
}
|
|
1186
|
-
function
|
|
1234
|
+
function si(e, t) {
|
|
1187
1235
|
e.mb = e.i(function(r) {
|
|
1188
1236
|
return r = be.Boolean(r), ye(e) ? (this.data = r, this) : r;
|
|
1189
1237
|
}, !0), e.g(t, "Boolean", e.mb, w);
|
|
1190
1238
|
}
|
|
1191
|
-
function
|
|
1239
|
+
function li(e, t) {
|
|
1192
1240
|
var r = function(n) {
|
|
1193
1241
|
return n = arguments.length ? be.Number(n) : 0, ye(e) ? (this.data = n, this) : n;
|
|
1194
1242
|
};
|
|
1195
1243
|
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa, w), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], r = 0; r < t.length; r++)
|
|
1196
|
-
e.g(e.aa, t[r], Number[t[r]],
|
|
1244
|
+
e.g(e.aa, t[r], Number[t[r]], Ke);
|
|
1197
1245
|
r = function(n) {
|
|
1198
1246
|
try {
|
|
1199
1247
|
return Number(this).toExponential(n);
|
|
1200
1248
|
} catch (i) {
|
|
1201
|
-
|
|
1249
|
+
E(e, e.D, i.message);
|
|
1202
1250
|
}
|
|
1203
1251
|
}, J(e, e.aa, "toExponential", r), r = function(n) {
|
|
1204
1252
|
try {
|
|
1205
1253
|
return Number(this).toFixed(n);
|
|
1206
1254
|
} catch (i) {
|
|
1207
|
-
|
|
1255
|
+
E(e, e.D, i.message);
|
|
1208
1256
|
}
|
|
1209
1257
|
}, J(e, e.aa, "toFixed", r), r = function(n) {
|
|
1210
1258
|
try {
|
|
1211
1259
|
return Number(this).toPrecision(n);
|
|
1212
1260
|
} catch (i) {
|
|
1213
|
-
|
|
1261
|
+
E(e, e.D, i.message);
|
|
1214
1262
|
}
|
|
1215
1263
|
}, J(e, e.aa, "toPrecision", r), r = function(n) {
|
|
1216
1264
|
try {
|
|
1217
1265
|
return Number(this).toString(n);
|
|
1218
1266
|
} catch (i) {
|
|
1219
|
-
|
|
1267
|
+
E(e, e.D, i.message);
|
|
1220
1268
|
}
|
|
1221
1269
|
}, J(e, e.aa, "toString", r), r = function(n, i) {
|
|
1222
1270
|
n = n ? e.R(n) : void 0, i = i ? e.R(i) : void 0;
|
|
1223
1271
|
try {
|
|
1224
1272
|
return Number(this).toLocaleString(n, i);
|
|
1225
1273
|
} catch (a) {
|
|
1226
|
-
|
|
1274
|
+
E(e, e.D, "toLocaleString: " + a.message);
|
|
1227
1275
|
}
|
|
1228
1276
|
}, J(e, e.aa, "toLocaleString", r);
|
|
1229
1277
|
}
|
|
1230
|
-
function
|
|
1278
|
+
function ci(e, t) {
|
|
1231
1279
|
var r = function(i, a) {
|
|
1232
1280
|
if (!ye(e))
|
|
1233
1281
|
return be.Date();
|
|
@@ -1239,14 +1287,14 @@ function ii(e, t) {
|
|
|
1239
1287
|
r = function(i) {
|
|
1240
1288
|
return function(a) {
|
|
1241
1289
|
var s = this.data;
|
|
1242
|
-
s instanceof Date ||
|
|
1290
|
+
s instanceof Date || E(e, e.j, i + " not called on a Date");
|
|
1243
1291
|
for (var u = [], d = 0; d < arguments.length; d++)
|
|
1244
1292
|
u[d] = e.R(arguments[d]);
|
|
1245
1293
|
return s[i].apply(s, u);
|
|
1246
1294
|
};
|
|
1247
1295
|
}(t[n]), J(e, e.$, t[n], r);
|
|
1248
1296
|
}
|
|
1249
|
-
function
|
|
1297
|
+
function ui(e, t) {
|
|
1250
1298
|
var r = function(n, i) {
|
|
1251
1299
|
if (ye(e))
|
|
1252
1300
|
var a = this;
|
|
@@ -1255,40 +1303,40 @@ function oi(e, t) {
|
|
|
1255
1303
|
return n;
|
|
1256
1304
|
a = e.s(e.Ma);
|
|
1257
1305
|
}
|
|
1258
|
-
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) ||
|
|
1306
|
+
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) || E(e, e.T, "Invalid regexp flag: " + i);
|
|
1259
1307
|
try {
|
|
1260
1308
|
var s = new be.RegExp(n, i);
|
|
1261
1309
|
} catch (u) {
|
|
1262
|
-
|
|
1310
|
+
E(e, e.T, u.message);
|
|
1263
1311
|
}
|
|
1264
1312
|
return en(e, a, s), a;
|
|
1265
1313
|
};
|
|
1266
|
-
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, w), e.g(e.I.h.prototype, "global", void 0,
|
|
1314
|
+
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, w), e.g(e.I.h.prototype, "global", void 0, re), e.g(e.I.h.prototype, "ignoreCase", void 0, re), e.g(e.I.h.prototype, "multiline", void 0, re), e.g(e.I.h.prototype, "source", "(?:)", re), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, i) {
|
|
1267
1315
|
function a(y) {
|
|
1268
1316
|
if (y) {
|
|
1269
|
-
var
|
|
1270
|
-
return e.g(
|
|
1317
|
+
var x = pe(e, y);
|
|
1318
|
+
return e.g(x, "index", y.index), e.g(x, "input", y.input), x;
|
|
1271
1319
|
}
|
|
1272
1320
|
return null;
|
|
1273
1321
|
}
|
|
1274
1322
|
var s = this.data;
|
|
1275
|
-
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1323
|
+
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")), ze(e, s, i), e.REGEXP_MODE === 2)
|
|
1276
1324
|
if (me)
|
|
1277
|
-
n =
|
|
1325
|
+
n = Ge(e, "regexp.exec(string)", {
|
|
1278
1326
|
string: n,
|
|
1279
1327
|
regexp: s
|
|
1280
|
-
}, s, i), n !==
|
|
1328
|
+
}, s, i), n !== Ne && (e.g(this, "lastIndex", s.lastIndex), i(a(n)));
|
|
1281
1329
|
else {
|
|
1282
|
-
var u = e.ha(), d =
|
|
1330
|
+
var u = e.ha(), d = Xe(e, s, u, i), p = this;
|
|
1283
1331
|
u.onmessage = function(y) {
|
|
1284
1332
|
clearTimeout(d), e.g(p, "lastIndex", y.data[1]), i(a(y.data[0]));
|
|
1285
1333
|
}, u.postMessage(["exec", s, s.lastIndex, n]);
|
|
1286
1334
|
}
|
|
1287
1335
|
else
|
|
1288
1336
|
n = s.exec(n), e.g(this, "lastIndex", s.lastIndex), i(a(n));
|
|
1289
|
-
},
|
|
1337
|
+
}, Je(e, e.I, "exec", r);
|
|
1290
1338
|
}
|
|
1291
|
-
function
|
|
1339
|
+
function fi(e, t) {
|
|
1292
1340
|
function r(n) {
|
|
1293
1341
|
var i = e.i(function(a) {
|
|
1294
1342
|
var s = ye(e) ? this : e.Aa(i);
|
|
@@ -1301,32 +1349,32 @@ function ai(e, t) {
|
|
|
1301
1349
|
return Gt(e, i, n), i;
|
|
1302
1350
|
}, !0), e.g(t, "Error", e.D, w), e.g(e.D.h.prototype, "message", "", w), e.g(e.D.h.prototype, "name", "Error", w), r("EvalError"), e.ob = r("RangeError"), e.pb = r("ReferenceError"), e.T = r("SyntaxError"), e.j = r("TypeError"), e.Gb = r("URIError");
|
|
1303
1351
|
}
|
|
1304
|
-
function
|
|
1352
|
+
function di(e, t) {
|
|
1305
1353
|
var r = e.s(e.M);
|
|
1306
1354
|
e.g(t, "Math", r, w);
|
|
1307
1355
|
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1308
1356
|
for (t = 0; t < n.length; t++)
|
|
1309
|
-
e.g(r, n[t], Math[n[t]],
|
|
1357
|
+
e.g(r, n[t], Math[n[t]], re);
|
|
1310
1358
|
for (n = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < n.length; t++)
|
|
1311
1359
|
e.g(r, n[t], e.i(Math[n[t]], !1), w);
|
|
1312
1360
|
}
|
|
1313
|
-
function
|
|
1361
|
+
function hi(e, t) {
|
|
1314
1362
|
var r = e.s(e.M);
|
|
1315
1363
|
e.g(t, "JSON", r, w), t = function(n) {
|
|
1316
1364
|
try {
|
|
1317
1365
|
var i = JSON.parse(String(n));
|
|
1318
1366
|
} catch (a) {
|
|
1319
|
-
|
|
1367
|
+
E(e, e.T, a.message);
|
|
1320
1368
|
}
|
|
1321
1369
|
return e.Ia(i);
|
|
1322
1370
|
}, e.g(r, "parse", e.i(t, !1)), t = function(n, i, a) {
|
|
1323
|
-
i && i.H === "Function" ?
|
|
1371
|
+
i && i.H === "Function" ? E(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = yr(e, i), i = i.filter(function(u) {
|
|
1324
1372
|
return typeof u == "string" || typeof u == "number";
|
|
1325
1373
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), n = e.R(n);
|
|
1326
1374
|
try {
|
|
1327
1375
|
var s = JSON.stringify(n, i, a);
|
|
1328
1376
|
} catch (u) {
|
|
1329
|
-
|
|
1377
|
+
E(e, e.j, u.message);
|
|
1330
1378
|
}
|
|
1331
1379
|
return s;
|
|
1332
1380
|
}, e.g(r, "stringify", e.i(t, !1));
|
|
@@ -1344,7 +1392,7 @@ function Y(e, t, r) {
|
|
|
1344
1392
|
return !1;
|
|
1345
1393
|
}
|
|
1346
1394
|
function en(e, t, r) {
|
|
1347
|
-
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, w), e.g(t, "source", r.source,
|
|
1395
|
+
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, w), e.g(t, "source", r.source, re), e.g(t, "global", r.global, re), e.g(t, "ignoreCase", r.ignoreCase, re), e.g(t, "multiline", r.multiline, re);
|
|
1348
1396
|
}
|
|
1349
1397
|
function Gt(e, t, r) {
|
|
1350
1398
|
r && e.g(t, "message", String(r), w), r = [];
|
|
@@ -1363,25 +1411,25 @@ function Gt(e, t, r) {
|
|
|
1363
1411
|
}
|
|
1364
1412
|
e.g(t, "stack", a.trim(), w);
|
|
1365
1413
|
}
|
|
1366
|
-
|
|
1414
|
+
$.ha = function() {
|
|
1367
1415
|
var e = this.ha.Mb;
|
|
1368
|
-
return e || (e = new Blob([
|
|
1416
|
+
return e || (e = new Blob([ti.join(`
|
|
1369
1417
|
`)], {
|
|
1370
1418
|
type: "application/javascript"
|
|
1371
1419
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1372
1420
|
};
|
|
1373
|
-
function
|
|
1421
|
+
function Ge(e, t, r, n, i) {
|
|
1374
1422
|
var a = {
|
|
1375
1423
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1376
1424
|
};
|
|
1377
1425
|
try {
|
|
1378
1426
|
return me.runInNewContext(t, r, a);
|
|
1379
1427
|
} catch {
|
|
1380
|
-
i(null),
|
|
1428
|
+
i(null), E(e, e.D, "RegExp Timeout: " + n);
|
|
1381
1429
|
}
|
|
1382
|
-
return
|
|
1430
|
+
return Ne;
|
|
1383
1431
|
}
|
|
1384
|
-
function
|
|
1432
|
+
function ze(e, t, r) {
|
|
1385
1433
|
if (e.REGEXP_MODE === 0)
|
|
1386
1434
|
var n = !1;
|
|
1387
1435
|
else if (e.REGEXP_MODE === 1)
|
|
@@ -1398,26 +1446,26 @@ function Ge(e, t, r) {
|
|
|
1398
1446
|
n = !!me;
|
|
1399
1447
|
} else
|
|
1400
1448
|
n = !1;
|
|
1401
|
-
n || (r(null),
|
|
1449
|
+
n || (r(null), E(e, e.D, "Regular expressions not supported: " + t));
|
|
1402
1450
|
}
|
|
1403
|
-
function
|
|
1451
|
+
function Xe(e, t, r, n) {
|
|
1404
1452
|
return setTimeout(function() {
|
|
1405
1453
|
r.terminate(), n(null);
|
|
1406
1454
|
try {
|
|
1407
|
-
|
|
1455
|
+
E(e, e.D, "RegExp Timeout: " + t);
|
|
1408
1456
|
} catch {
|
|
1409
1457
|
}
|
|
1410
1458
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1411
1459
|
}
|
|
1412
|
-
|
|
1460
|
+
$.Aa = function(e) {
|
|
1413
1461
|
return this.s(e && e.h.prototype);
|
|
1414
1462
|
};
|
|
1415
|
-
|
|
1463
|
+
$.s = function(e) {
|
|
1416
1464
|
if (typeof e != "object")
|
|
1417
1465
|
throw Error("Non object prototype");
|
|
1418
|
-
return e = new
|
|
1466
|
+
return e = new F(e), Y(this, e, this.D) && (e.H = "Error"), e;
|
|
1419
1467
|
};
|
|
1420
|
-
function
|
|
1468
|
+
function Fe(e) {
|
|
1421
1469
|
var t = e.s(e.La);
|
|
1422
1470
|
return e.g(t, "length", 0, {
|
|
1423
1471
|
configurable: !1,
|
|
@@ -1427,21 +1475,21 @@ function Me(e) {
|
|
|
1427
1475
|
}
|
|
1428
1476
|
function tn(e, t, r) {
|
|
1429
1477
|
var n = e.s(e.Z);
|
|
1430
|
-
return r ? (r = e.s(e.M), e.g(n, "prototype", r, w), e.g(r, "constructor", n, w)) : n.Ab = !0, e.g(n, "length", t,
|
|
1478
|
+
return r ? (r = e.s(e.M), e.g(n, "prototype", r, w), e.g(r, "constructor", n, w)) : n.Ab = !0, e.g(n, "length", t, re), n.H = "Function", n;
|
|
1431
1479
|
}
|
|
1432
1480
|
function nn(e, t, r, n) {
|
|
1433
1481
|
var i = tn(e, t.oa.length, !0);
|
|
1434
|
-
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "",
|
|
1482
|
+
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "", re), i;
|
|
1435
1483
|
}
|
|
1436
|
-
|
|
1437
|
-
return t = tn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1484
|
+
$.i = function(e, t) {
|
|
1485
|
+
return t = tn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, re), t;
|
|
1438
1486
|
};
|
|
1439
|
-
|
|
1487
|
+
$.ub = function(e) {
|
|
1440
1488
|
var t = tn(this, e.length, !0);
|
|
1441
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1489
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, re), t;
|
|
1442
1490
|
};
|
|
1443
|
-
|
|
1444
|
-
if (e instanceof
|
|
1491
|
+
$.Ia = function(e) {
|
|
1492
|
+
if (e instanceof F)
|
|
1445
1493
|
throw Error("Object is already pseudo");
|
|
1446
1494
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1447
1495
|
return e;
|
|
@@ -1461,7 +1509,7 @@ _.Ia = function(e) {
|
|
|
1461
1509
|
}, !!t);
|
|
1462
1510
|
}
|
|
1463
1511
|
if (Array.isArray(e)) {
|
|
1464
|
-
t =
|
|
1512
|
+
t = Fe(this);
|
|
1465
1513
|
for (var n = 0; n < e.length; n++)
|
|
1466
1514
|
n in e && this.g(t, n, this.Ia(e[n]));
|
|
1467
1515
|
return t;
|
|
@@ -1471,10 +1519,10 @@ _.Ia = function(e) {
|
|
|
1471
1519
|
this.g(t, n, this.Ia(e[n]));
|
|
1472
1520
|
return t;
|
|
1473
1521
|
};
|
|
1474
|
-
|
|
1522
|
+
$.R = function(e, t) {
|
|
1475
1523
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1476
1524
|
return e;
|
|
1477
|
-
if (!(e instanceof
|
|
1525
|
+
if (!(e instanceof F))
|
|
1478
1526
|
throw Error("Object is not pseudo");
|
|
1479
1527
|
if (Y(this, e, this.I))
|
|
1480
1528
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1502,11 +1550,11 @@ _.R = function(e, t) {
|
|
|
1502
1550
|
return t.hb.pop(), t.Sa.pop(), r;
|
|
1503
1551
|
};
|
|
1504
1552
|
function pe(e, t) {
|
|
1505
|
-
for (var r =
|
|
1553
|
+
for (var r = Fe(e), n = Object.getOwnPropertyNames(t), i = 0; i < n.length; i++)
|
|
1506
1554
|
e.g(r, n[i], t[n[i]]);
|
|
1507
1555
|
return r;
|
|
1508
1556
|
}
|
|
1509
|
-
function
|
|
1557
|
+
function yr(e, t) {
|
|
1510
1558
|
var r = [], n;
|
|
1511
1559
|
for (n in t.h)
|
|
1512
1560
|
r[n] = e.G(t, n);
|
|
@@ -1523,16 +1571,16 @@ function ge(e, t) {
|
|
|
1523
1571
|
}
|
|
1524
1572
|
return t ? t.xa : null;
|
|
1525
1573
|
}
|
|
1526
|
-
|
|
1574
|
+
$.G = function(e, t) {
|
|
1527
1575
|
if (this.P)
|
|
1528
1576
|
throw Error("Getter not supported in that context");
|
|
1529
|
-
if (t = String(t), e != null ||
|
|
1577
|
+
if (t = String(t), e != null || E(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof F))
|
|
1530
1578
|
throw TypeError("Expecting native value or pseudo object");
|
|
1531
1579
|
if (t === "length") {
|
|
1532
1580
|
if (Y(this, e, this.J))
|
|
1533
1581
|
return String(e).length;
|
|
1534
1582
|
} else if (64 > t.charCodeAt(0) && Y(this, e, this.J)) {
|
|
1535
|
-
var r =
|
|
1583
|
+
var r = qe(t);
|
|
1536
1584
|
if (!isNaN(r) && r < String(e).length)
|
|
1537
1585
|
return String(e)[r];
|
|
1538
1586
|
}
|
|
@@ -1542,12 +1590,12 @@ _.G = function(e, t) {
|
|
|
1542
1590
|
while (e = ge(this, e));
|
|
1543
1591
|
};
|
|
1544
1592
|
function mt(e, t, r) {
|
|
1545
|
-
if (!(t instanceof
|
|
1593
|
+
if (!(t instanceof F))
|
|
1546
1594
|
throw TypeError("Primitive data type has no properties");
|
|
1547
1595
|
if (r = String(r), r === "length" && Y(e, t, e.J))
|
|
1548
1596
|
return !0;
|
|
1549
1597
|
if (Y(e, t, e.J)) {
|
|
1550
|
-
var n =
|
|
1598
|
+
var n = qe(r);
|
|
1551
1599
|
if (!isNaN(n) && n < String(t).length)
|
|
1552
1600
|
return !0;
|
|
1553
1601
|
}
|
|
@@ -1557,18 +1605,18 @@ function mt(e, t, r) {
|
|
|
1557
1605
|
while (t = ge(e, t));
|
|
1558
1606
|
return !1;
|
|
1559
1607
|
}
|
|
1560
|
-
|
|
1608
|
+
$.g = function(e, t, r, n) {
|
|
1561
1609
|
if (this.Ka)
|
|
1562
1610
|
throw Error("Setter not supported in that context");
|
|
1563
|
-
if (t = String(t), e != null ||
|
|
1611
|
+
if (t = String(t), e != null || E(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof F))
|
|
1564
1612
|
throw TypeError("Expecting native value or pseudo object");
|
|
1565
|
-
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) &&
|
|
1613
|
+
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && E(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1566
1614
|
var i = !this.o || rn(this).S;
|
|
1567
|
-
if (e instanceof
|
|
1615
|
+
if (e instanceof F) {
|
|
1568
1616
|
if (Y(this, e, this.J)) {
|
|
1569
|
-
var a =
|
|
1617
|
+
var a = qe(t);
|
|
1570
1618
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1571
|
-
i &&
|
|
1619
|
+
i && E(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1572
1620
|
return;
|
|
1573
1621
|
}
|
|
1574
1622
|
}
|
|
@@ -1579,24 +1627,24 @@ _.g = function(e, t, r, n) {
|
|
|
1579
1627
|
return;
|
|
1580
1628
|
r = n.value;
|
|
1581
1629
|
}
|
|
1582
|
-
if (r = Qt(r), isNaN(r) &&
|
|
1630
|
+
if (r = Qt(r), isNaN(r) && E(this, this.ob, "Invalid array length"), r < a)
|
|
1583
1631
|
for (s in e.h) {
|
|
1584
|
-
var s =
|
|
1632
|
+
var s = qe(s);
|
|
1585
1633
|
!isNaN(s) && r <= s && delete e.h[s];
|
|
1586
1634
|
}
|
|
1587
1635
|
} else
|
|
1588
|
-
isNaN(s =
|
|
1636
|
+
isNaN(s = qe(t)) || (e.h.length = Math.max(a, s + 1));
|
|
1589
1637
|
if (!e.preventExtensions || t in e.h)
|
|
1590
1638
|
if (n) {
|
|
1591
|
-
i = {}, "get" in n && n.get && (e.V[t] = n.get, i.get = this.g.ac), "set" in n && n.set && (e.Y[t] = n.set, i.set = this.g.bc), "configurable" in n && (i.configurable = n.configurable), "enumerable" in n && (i.enumerable = n.enumerable), "writable" in n && (i.writable = n.writable, delete e.V[t], delete e.Y[t]), "value" in n ? (i.value = n.value, delete e.V[t], delete e.Y[t]) : r !==
|
|
1639
|
+
i = {}, "get" in n && n.get && (e.V[t] = n.get, i.get = this.g.ac), "set" in n && n.set && (e.Y[t] = n.set, i.set = this.g.bc), "configurable" in n && (i.configurable = n.configurable), "enumerable" in n && (i.enumerable = n.enumerable), "writable" in n && (i.writable = n.writable, delete e.V[t], delete e.Y[t]), "value" in n ? (i.value = n.value, delete e.V[t], delete e.Y[t]) : r !== Ze && (i.value = r, delete e.V[t], delete e.Y[t]);
|
|
1592
1640
|
try {
|
|
1593
1641
|
Object.defineProperty(e.h, t, i);
|
|
1594
1642
|
} catch {
|
|
1595
|
-
|
|
1643
|
+
E(this, this.j, "Cannot redefine property: " + t);
|
|
1596
1644
|
}
|
|
1597
1645
|
"get" in n && !n.get && delete e.V[t], "set" in n && !n.set && delete e.Y[t];
|
|
1598
1646
|
} else {
|
|
1599
|
-
if (r ===
|
|
1647
|
+
if (r === Ze)
|
|
1600
1648
|
throw ReferenceError("Value not specified");
|
|
1601
1649
|
for (n = e; !(t in n.h); )
|
|
1602
1650
|
if (n = ge(this, n), !n) {
|
|
@@ -1606,29 +1654,29 @@ _.g = function(e, t, r, n) {
|
|
|
1606
1654
|
if (n.Y && n.Y[t])
|
|
1607
1655
|
return this.Ka = !0, n.Y[t];
|
|
1608
1656
|
if (n.V && n.V[t])
|
|
1609
|
-
i &&
|
|
1657
|
+
i && E(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1610
1658
|
else
|
|
1611
1659
|
try {
|
|
1612
1660
|
e.h[t] = r;
|
|
1613
1661
|
} catch {
|
|
1614
|
-
i &&
|
|
1662
|
+
i && E(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1615
1663
|
}
|
|
1616
1664
|
}
|
|
1617
1665
|
else
|
|
1618
|
-
i &&
|
|
1666
|
+
i && E(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1619
1667
|
} else
|
|
1620
|
-
i &&
|
|
1668
|
+
i && E(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1621
1669
|
};
|
|
1622
|
-
|
|
1670
|
+
$.g.ac = function() {
|
|
1623
1671
|
throw Error("Placeholder getter");
|
|
1624
1672
|
};
|
|
1625
|
-
|
|
1673
|
+
$.g.bc = function() {
|
|
1626
1674
|
throw Error("Placeholder setter");
|
|
1627
1675
|
};
|
|
1628
1676
|
function J(e, t, r, n) {
|
|
1629
1677
|
e.g(t.h.prototype, r, e.i(n, !1), w);
|
|
1630
1678
|
}
|
|
1631
|
-
function
|
|
1679
|
+
function Je(e, t, r, n) {
|
|
1632
1680
|
e.g(t.h.prototype, r, e.ub(n), w);
|
|
1633
1681
|
}
|
|
1634
1682
|
function rn(e) {
|
|
@@ -1644,12 +1692,12 @@ function zt(e, t, r) {
|
|
|
1644
1692
|
var i = t.body && t.body[0];
|
|
1645
1693
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (n = !0);
|
|
1646
1694
|
}
|
|
1647
|
-
return i = e.s(null), n = new
|
|
1695
|
+
return i = e.s(null), n = new br(r, n, i), r || ni(e, n.object), Qe(e, t, n), n;
|
|
1648
1696
|
}
|
|
1649
1697
|
function on(e, t, r) {
|
|
1650
1698
|
if (!t)
|
|
1651
1699
|
throw Error("parentScope required");
|
|
1652
|
-
return e = r || e.s(null), new
|
|
1700
|
+
return e = r || e.s(null), new br(t, t.S, e);
|
|
1653
1701
|
}
|
|
1654
1702
|
function an(e, t) {
|
|
1655
1703
|
for (var r = rn(e); r && r !== e.N; ) {
|
|
@@ -1659,15 +1707,15 @@ function an(e, t) {
|
|
|
1659
1707
|
}
|
|
1660
1708
|
if (r === e.N && mt(e, r.object, t))
|
|
1661
1709
|
return e.G(r.object, t);
|
|
1662
|
-
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" ||
|
|
1710
|
+
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || E(e, e.pb, t + " is not defined");
|
|
1663
1711
|
}
|
|
1664
|
-
function
|
|
1712
|
+
function vr(e, t, r) {
|
|
1665
1713
|
for (var n = rn(e), i = n.S; n && n !== e.N; ) {
|
|
1666
1714
|
if (t in n.object.h) {
|
|
1667
1715
|
try {
|
|
1668
1716
|
n.object.h[t] = r;
|
|
1669
1717
|
} catch {
|
|
1670
|
-
i &&
|
|
1718
|
+
i && E(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1671
1719
|
}
|
|
1672
1720
|
return;
|
|
1673
1721
|
}
|
|
@@ -1675,9 +1723,9 @@ function gr(e, t, r) {
|
|
|
1675
1723
|
}
|
|
1676
1724
|
if (n === e.N && (!i || mt(e, n.object, t)))
|
|
1677
1725
|
return e.g(n.object, t, r);
|
|
1678
|
-
|
|
1726
|
+
E(e, e.pb, t + " is not defined");
|
|
1679
1727
|
}
|
|
1680
|
-
function
|
|
1728
|
+
function Qe(e, t, r) {
|
|
1681
1729
|
if (t.jb)
|
|
1682
1730
|
var n = t.jb;
|
|
1683
1731
|
else {
|
|
@@ -1710,12 +1758,12 @@ function Ze(e, t, r) {
|
|
|
1710
1758
|
if (Array.isArray(u)) {
|
|
1711
1759
|
for (i = 0; i < u.length; i++)
|
|
1712
1760
|
if (u[i] && u[i].constructor === a) {
|
|
1713
|
-
var d =
|
|
1761
|
+
var d = Qe(e, u[i], r);
|
|
1714
1762
|
for (s in d)
|
|
1715
1763
|
n[s] = d[s];
|
|
1716
1764
|
}
|
|
1717
1765
|
} else if (u.constructor === a)
|
|
1718
|
-
for (s in d =
|
|
1766
|
+
for (s in d = Qe(e, u, r), d)
|
|
1719
1767
|
n[s] = d[s];
|
|
1720
1768
|
}
|
|
1721
1769
|
}
|
|
@@ -1730,15 +1778,15 @@ function ye(e) {
|
|
|
1730
1778
|
return e.o[e.o.length - 1].isConstructor;
|
|
1731
1779
|
}
|
|
1732
1780
|
function sn(e, t) {
|
|
1733
|
-
return t[0] ===
|
|
1781
|
+
return t[0] === Ue ? an(e, t[1]) : e.G(t[0], t[1]);
|
|
1734
1782
|
}
|
|
1735
1783
|
function ln(e, t, r) {
|
|
1736
|
-
return t[0] ===
|
|
1784
|
+
return t[0] === Ue ? vr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1737
1785
|
}
|
|
1738
|
-
function
|
|
1739
|
-
throw e.N ? (r !== void 0 && t instanceof
|
|
1786
|
+
function E(e, t, r) {
|
|
1787
|
+
throw e.N ? (r !== void 0 && t instanceof F && (t = e.Aa(t), Gt(e, t, r)), nt(e, 4, t), gr) : r === void 0 ? t : r;
|
|
1740
1788
|
}
|
|
1741
|
-
function
|
|
1789
|
+
function nt(e, t, r, n) {
|
|
1742
1790
|
if (t === 0)
|
|
1743
1791
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1744
1792
|
var i = e.o;
|
|
@@ -1783,34 +1831,34 @@ function tt(e, t, r, n) {
|
|
|
1783
1831
|
URIError
|
|
1784
1832
|
}, n = String(e.G(r, "name")), i = e.G(r, "message").valueOf(), t = (t[n] || Error)(i), t.stack = String(e.G(r, "stack"))) : t = String(r), e.value = t, t;
|
|
1785
1833
|
}
|
|
1786
|
-
function
|
|
1834
|
+
function ne(e, t) {
|
|
1787
1835
|
switch (t.type) {
|
|
1788
1836
|
case "ArrayExpression":
|
|
1789
1837
|
return "[...]";
|
|
1790
1838
|
case "BinaryExpression":
|
|
1791
1839
|
case "LogicalExpression":
|
|
1792
|
-
return
|
|
1840
|
+
return ne(e, t.left) + " " + t.operator + " " + ne(e, t.right);
|
|
1793
1841
|
case "CallExpression":
|
|
1794
|
-
return
|
|
1842
|
+
return ne(e, t.callee) + "(...)";
|
|
1795
1843
|
case "ConditionalExpression":
|
|
1796
|
-
return
|
|
1844
|
+
return ne(e, t.test) + " ? " + ne(e, t.da) + " : " + ne(e, t.alternate);
|
|
1797
1845
|
case "Identifier":
|
|
1798
1846
|
return t.name;
|
|
1799
1847
|
case "Literal":
|
|
1800
1848
|
return t.raw;
|
|
1801
1849
|
case "MemberExpression":
|
|
1802
|
-
var r =
|
|
1803
|
-
return e =
|
|
1850
|
+
var r = ne(e, t.object);
|
|
1851
|
+
return e = ne(e, t.Wa), t.bb ? r + "[" + e + "]" : r + "." + e;
|
|
1804
1852
|
case "NewExpression":
|
|
1805
|
-
return "new " +
|
|
1853
|
+
return "new " + ne(e, t.callee) + "(...)";
|
|
1806
1854
|
case "ObjectExpression":
|
|
1807
1855
|
return "{...}";
|
|
1808
1856
|
case "ThisExpression":
|
|
1809
1857
|
return "this";
|
|
1810
1858
|
case "UnaryExpression":
|
|
1811
|
-
return t.operator + " " +
|
|
1859
|
+
return t.operator + " " + ne(e, t.K);
|
|
1812
1860
|
case "UpdateExpression":
|
|
1813
|
-
return r =
|
|
1861
|
+
return r = ne(e, t.K), t.prefix ? t.operator + r : r + t.operator;
|
|
1814
1862
|
}
|
|
1815
1863
|
return "???";
|
|
1816
1864
|
}
|
|
@@ -1818,20 +1866,20 @@ function Zn(e, t, r) {
|
|
|
1818
1866
|
var n = e.o[e.o.length - 1], i = Array.from(r), a = i.shift();
|
|
1819
1867
|
r = Math.max(Number(i.shift() || 0), 0);
|
|
1820
1868
|
var s = e.ya();
|
|
1821
|
-
if (a instanceof
|
|
1869
|
+
if (a instanceof F && a.H === "Function") {
|
|
1822
1870
|
var u = a;
|
|
1823
1871
|
s.type = "CallExpression", n = n.scope;
|
|
1824
1872
|
} else {
|
|
1825
1873
|
try {
|
|
1826
|
-
var d =
|
|
1874
|
+
var d = Me(String(a), "taskCode" + e.ic++);
|
|
1827
1875
|
} catch (p) {
|
|
1828
|
-
|
|
1876
|
+
E(e, e.T, "Invalid code: " + p.message);
|
|
1829
1877
|
}
|
|
1830
1878
|
s.type = "EvalProgram_", s.body = d.body, n = n.node.arguments[0], pt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, i.length = 0;
|
|
1831
1879
|
}
|
|
1832
|
-
return t = new
|
|
1880
|
+
return t = new pi(u, i, n, s, t ? r : -1), xr(e, t, r), t.Db;
|
|
1833
1881
|
}
|
|
1834
|
-
function
|
|
1882
|
+
function xr(e, t, r) {
|
|
1835
1883
|
t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(n, i) {
|
|
1836
1884
|
return n.time - i.time;
|
|
1837
1885
|
});
|
|
@@ -1843,7 +1891,7 @@ function Qn(e, t) {
|
|
|
1843
1891
|
break;
|
|
1844
1892
|
}
|
|
1845
1893
|
}
|
|
1846
|
-
function
|
|
1894
|
+
function rt(e, t, r) {
|
|
1847
1895
|
if (!e.P)
|
|
1848
1896
|
throw Error("Unexpected call to createGetter");
|
|
1849
1897
|
e.P = !1, r = Array.isArray(r) ? r[0] : r;
|
|
@@ -1857,35 +1905,35 @@ function cn(e, t, r, n) {
|
|
|
1857
1905
|
var i = e.ya();
|
|
1858
1906
|
return i.type = "CallExpression", e = new k(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [n], e;
|
|
1859
1907
|
}
|
|
1860
|
-
function
|
|
1861
|
-
return t == null ? e.Na : t instanceof
|
|
1908
|
+
function $t(e, t) {
|
|
1909
|
+
return t == null ? e.Na : t instanceof F ? t : (e = e.s(ge(e, t)), e.data = t, e);
|
|
1862
1910
|
}
|
|
1863
|
-
|
|
1911
|
+
$.Xb = function() {
|
|
1864
1912
|
return this.N;
|
|
1865
1913
|
};
|
|
1866
|
-
|
|
1914
|
+
$.Yb = function() {
|
|
1867
1915
|
return this.o;
|
|
1868
1916
|
};
|
|
1869
|
-
|
|
1917
|
+
$.ec = function(e) {
|
|
1870
1918
|
this.o = e;
|
|
1871
1919
|
};
|
|
1872
1920
|
function k(e, t) {
|
|
1873
1921
|
this.node = e, this.scope = t;
|
|
1874
1922
|
}
|
|
1875
|
-
function
|
|
1923
|
+
function br(e, t, r) {
|
|
1876
1924
|
this.Va = e, this.S = t, this.object = r;
|
|
1877
1925
|
}
|
|
1878
|
-
function
|
|
1926
|
+
function F(e) {
|
|
1879
1927
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1880
1928
|
}
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
if (!
|
|
1929
|
+
$ = F.prototype;
|
|
1930
|
+
$.xa = null;
|
|
1931
|
+
$.H = "Object";
|
|
1932
|
+
$.data = null;
|
|
1933
|
+
$.toString = function() {
|
|
1934
|
+
if (!Ye)
|
|
1887
1935
|
return "[object Interpreter.Object]";
|
|
1888
|
-
if (!(this instanceof
|
|
1936
|
+
if (!(this instanceof F))
|
|
1889
1937
|
return String(this);
|
|
1890
1938
|
if (this.H === "Array") {
|
|
1891
1939
|
var e = qn;
|
|
@@ -1895,7 +1943,7 @@ _.toString = function() {
|
|
|
1895
1943
|
1024 < r && (r = 1e3, n = !0);
|
|
1896
1944
|
for (var i = 0; i < r; i++) {
|
|
1897
1945
|
var a = this.h[i];
|
|
1898
|
-
t[i] = a instanceof
|
|
1946
|
+
t[i] = a instanceof F && e.indexOf(a) !== -1 ? "..." : a;
|
|
1899
1947
|
}
|
|
1900
1948
|
n && t.push("...");
|
|
1901
1949
|
} finally {
|
|
@@ -1930,28 +1978,28 @@ _.toString = function() {
|
|
|
1930
1978
|
}
|
|
1931
1979
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1932
1980
|
};
|
|
1933
|
-
|
|
1934
|
-
return !
|
|
1981
|
+
$.valueOf = function() {
|
|
1982
|
+
return !Ye || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1935
1983
|
};
|
|
1936
|
-
function
|
|
1937
|
-
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++
|
|
1984
|
+
function pi(e, t, r, n, i) {
|
|
1985
|
+
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++mi, this.time = 0;
|
|
1938
1986
|
}
|
|
1939
|
-
var
|
|
1940
|
-
|
|
1987
|
+
var mi = 0;
|
|
1988
|
+
m.prototype.stepArrayExpression = function(e, t, r) {
|
|
1941
1989
|
r = r.elements;
|
|
1942
1990
|
var n = t.A || 0;
|
|
1943
|
-
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa =
|
|
1991
|
+
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa = Fe(this), t.Oa.h.length = r.length); n < r.length; ) {
|
|
1944
1992
|
if (r[n])
|
|
1945
1993
|
return t.A = n, new k(r[n], t.scope);
|
|
1946
1994
|
n++;
|
|
1947
1995
|
}
|
|
1948
1996
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1949
1997
|
};
|
|
1950
|
-
|
|
1998
|
+
m.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
1951
1999
|
if (!t.ja)
|
|
1952
2000
|
return t.ja = !0, t = new k(r.left, t.scope), t.sa = !0, t;
|
|
1953
2001
|
if (!t.Da)
|
|
1954
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e = sn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0,
|
|
2002
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e = sn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, rt(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new k(r.right, t.scope));
|
|
1955
2003
|
if (t.ta)
|
|
1956
2004
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1957
2005
|
else {
|
|
@@ -2001,7 +2049,7 @@ g.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
2001
2049
|
e.pop(), e[e.length - 1].value = n;
|
|
2002
2050
|
}
|
|
2003
2051
|
};
|
|
2004
|
-
|
|
2052
|
+
m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
2005
2053
|
if (!t.ja)
|
|
2006
2054
|
return t.ja = !0, new k(r.left, t.scope);
|
|
2007
2055
|
if (!t.Da)
|
|
@@ -2067,27 +2115,27 @@ g.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2067
2115
|
r = n >>> t;
|
|
2068
2116
|
break;
|
|
2069
2117
|
case "in":
|
|
2070
|
-
t instanceof
|
|
2118
|
+
t instanceof F || E(this, this.j, "'in' expects an object, not '" + t + "'"), r = mt(this, t, n);
|
|
2071
2119
|
break;
|
|
2072
2120
|
case "instanceof":
|
|
2073
|
-
Y(this, t, this.O) ||
|
|
2121
|
+
Y(this, t, this.O) || E(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof F ? Y(this, n, t) : !1;
|
|
2074
2122
|
break;
|
|
2075
2123
|
default:
|
|
2076
2124
|
throw SyntaxError("Unknown binary operator: " + r.operator);
|
|
2077
2125
|
}
|
|
2078
2126
|
e[e.length - 1].value = r;
|
|
2079
2127
|
};
|
|
2080
|
-
|
|
2128
|
+
m.prototype.stepBlockStatement = function(e, t, r) {
|
|
2081
2129
|
var n = t.A || 0;
|
|
2082
2130
|
if (r = r.body[n])
|
|
2083
2131
|
return t.A = n + 1, new k(r, t.scope);
|
|
2084
2132
|
e.pop();
|
|
2085
2133
|
};
|
|
2086
|
-
|
|
2087
|
-
|
|
2134
|
+
m.prototype.stepBreakStatement = function(e, t, r) {
|
|
2135
|
+
nt(this, 1, void 0, r.label && r.label.name);
|
|
2088
2136
|
};
|
|
2089
|
-
|
|
2090
|
-
|
|
2137
|
+
m.prototype.Hb = 0;
|
|
2138
|
+
m.prototype.stepCallExpression = function(e, t, r) {
|
|
2091
2139
|
if (!t.ia) {
|
|
2092
2140
|
t.ia = 1;
|
|
2093
2141
|
var n = new k(r.callee, t.scope);
|
|
@@ -2097,8 +2145,8 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2097
2145
|
t.ia = 2;
|
|
2098
2146
|
var i = t.value;
|
|
2099
2147
|
if (Array.isArray(i)) {
|
|
2100
|
-
if (t.U = sn(this, i), i[0] ===
|
|
2101
|
-
return t.ia = 1,
|
|
2148
|
+
if (t.U = sn(this, i), i[0] === Ue ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2149
|
+
return t.ia = 1, rt(this, i, t.value);
|
|
2102
2150
|
} else
|
|
2103
2151
|
t.U = i;
|
|
2104
2152
|
t.F = [], t.A = 0;
|
|
@@ -2107,8 +2155,8 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2107
2155
|
if (t.A !== 0 && t.F.push(t.value), r.arguments[t.A])
|
|
2108
2156
|
return new k(r.arguments[t.A++], t.scope);
|
|
2109
2157
|
if (r.type === "NewExpression") {
|
|
2110
|
-
if (i instanceof
|
|
2111
|
-
t.B =
|
|
2158
|
+
if (i instanceof F && !i.Ab || E(this, this.j, ne(this, r.callee) + " is not a constructor"), i === this.qa)
|
|
2159
|
+
t.B = Fe(this);
|
|
2112
2160
|
else {
|
|
2113
2161
|
var a = i.h.prototype;
|
|
2114
2162
|
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
@@ -2120,36 +2168,36 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2120
2168
|
if (t.eb)
|
|
2121
2169
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2122
2170
|
else {
|
|
2123
|
-
if (t.eb = !0, i instanceof
|
|
2124
|
-
for (r = zt(this, e.body, i.Va), n =
|
|
2171
|
+
if (t.eb = !0, i instanceof F || E(this, this.j, ne(this, r.callee) + " is not a function"), e = i.node) {
|
|
2172
|
+
for (r = zt(this, e.body, i.Va), n = Fe(this), i = 0; i < t.F.length; i++)
|
|
2125
2173
|
this.g(n, i, t.F[i]);
|
|
2126
2174
|
for (this.g(r.object, "arguments", n), i = 0; i < e.oa.length; i++)
|
|
2127
2175
|
this.g(r.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2128
|
-
return r.S || (t.B =
|
|
2176
|
+
return r.S || (t.B = $t(this, t.B)), this.g(r.object, "this", t.B, Zt), t.value = void 0, new k(e.body, r);
|
|
2129
2177
|
}
|
|
2130
2178
|
if (i.eval)
|
|
2131
2179
|
if (i = t.F[0], typeof i != "string")
|
|
2132
2180
|
t.value = i;
|
|
2133
2181
|
else {
|
|
2134
2182
|
try {
|
|
2135
|
-
n =
|
|
2183
|
+
n = Me(String(i), "eval" + this.Hb++);
|
|
2136
2184
|
} catch (u) {
|
|
2137
|
-
|
|
2185
|
+
E(this, this.T, "Invalid code: " + u.message);
|
|
2138
2186
|
}
|
|
2139
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, pt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = zt(this, n, r) :
|
|
2187
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, pt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = zt(this, n, r) : Qe(this, n, r), this.value = void 0, new k(i, r);
|
|
2140
2188
|
}
|
|
2141
2189
|
else if (i.Ta)
|
|
2142
|
-
t.scope.S || (t.B =
|
|
2190
|
+
t.scope.S || (t.B = $t(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2143
2191
|
else if (i.Za) {
|
|
2144
2192
|
var s = this;
|
|
2145
2193
|
n = i.Za.length - 1, n = t.F.concat(Array(n)).slice(0, n), n.push(function(u) {
|
|
2146
2194
|
t.value = u, s.za = !1;
|
|
2147
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2195
|
+
}), this.za = !0, t.scope.S || (t.B = $t(this, t.B)), i.Za.apply(t.B, n);
|
|
2148
2196
|
} else
|
|
2149
|
-
|
|
2197
|
+
E(this, this.j, ne(this, r.callee) + " is not callable");
|
|
2150
2198
|
}
|
|
2151
2199
|
};
|
|
2152
|
-
|
|
2200
|
+
m.prototype.stepConditionalExpression = function(e, t, r) {
|
|
2153
2201
|
var n = t.na || 0;
|
|
2154
2202
|
if (n === 0)
|
|
2155
2203
|
return t.na = 1, new k(r.test, t.scope);
|
|
@@ -2162,13 +2210,13 @@ g.prototype.stepConditionalExpression = function(e, t, r) {
|
|
|
2162
2210
|
}
|
|
2163
2211
|
e.pop(), r.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2164
2212
|
};
|
|
2165
|
-
|
|
2166
|
-
|
|
2213
|
+
m.prototype.stepContinueStatement = function(e, t, r) {
|
|
2214
|
+
nt(this, 2, void 0, r.label && r.label.name);
|
|
2167
2215
|
};
|
|
2168
|
-
|
|
2216
|
+
m.prototype.stepDebuggerStatement = function(e) {
|
|
2169
2217
|
e.pop();
|
|
2170
2218
|
};
|
|
2171
|
-
|
|
2219
|
+
m.prototype.stepDoWhileStatement = function(e, t, r) {
|
|
2172
2220
|
if (r.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2173
2221
|
return t.ga = !0, new k(r.test, t.scope);
|
|
2174
2222
|
if (!t.value)
|
|
@@ -2176,29 +2224,29 @@ g.prototype.stepDoWhileStatement = function(e, t, r) {
|
|
|
2176
2224
|
else if (r.body)
|
|
2177
2225
|
return t.ga = !1, t.W = !0, new k(r.body, t.scope);
|
|
2178
2226
|
};
|
|
2179
|
-
|
|
2227
|
+
m.prototype.stepEmptyStatement = function(e) {
|
|
2180
2228
|
e.pop();
|
|
2181
2229
|
};
|
|
2182
|
-
|
|
2230
|
+
m.prototype.stepEvalProgram_ = function(e, t, r) {
|
|
2183
2231
|
var n = t.A || 0;
|
|
2184
2232
|
if (r = r.body[n])
|
|
2185
2233
|
return t.A = n + 1, new k(r, t.scope);
|
|
2186
2234
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2187
2235
|
};
|
|
2188
|
-
|
|
2236
|
+
m.prototype.stepExpressionStatement = function(e, t, r) {
|
|
2189
2237
|
if (!t.ka)
|
|
2190
2238
|
return this.value = void 0, t.ka = !0, new k(r.la, t.scope);
|
|
2191
2239
|
e.pop(), this.value = t.value;
|
|
2192
2240
|
};
|
|
2193
|
-
|
|
2241
|
+
m.prototype.stepForInStatement = function(e, t, r) {
|
|
2194
2242
|
if (!t.Ub && (t.Ub = !0, r.left.fa && r.left.fa[0].ua))
|
|
2195
|
-
return t.scope.S &&
|
|
2243
|
+
return t.scope.S && E(this, this.T, "for-in loop variable declaration may not have an initializer"), new k(r.left, t.scope);
|
|
2196
2244
|
if (!t.Ca)
|
|
2197
2245
|
return t.Ca = !0, t.pa || (t.pa = t.value), new k(r.right, t.scope);
|
|
2198
2246
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2199
2247
|
e:
|
|
2200
2248
|
for (; ; ) {
|
|
2201
|
-
if (t.u instanceof
|
|
2249
|
+
if (t.u instanceof F)
|
|
2202
2250
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2203
2251
|
var n = t.wa.shift();
|
|
2204
2252
|
if (n === void 0)
|
|
@@ -2222,7 +2270,7 @@ g.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2222
2270
|
}
|
|
2223
2271
|
if (!t.wb)
|
|
2224
2272
|
if (t.wb = !0, e = r.left, e.type === "VariableDeclaration")
|
|
2225
|
-
t.pa = [
|
|
2273
|
+
t.pa = [Ue, e.fa[0].id.name];
|
|
2226
2274
|
else
|
|
2227
2275
|
return t.pa = null, t = new k(e, t.scope), t.sa = !0, t;
|
|
2228
2276
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = ln(this, t.pa, e)))
|
|
@@ -2230,7 +2278,7 @@ g.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2230
2278
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, r.body)
|
|
2231
2279
|
return new k(r.body, t.scope);
|
|
2232
2280
|
};
|
|
2233
|
-
|
|
2281
|
+
m.prototype.stepForStatement = function(e, t, r) {
|
|
2234
2282
|
switch (t.na) {
|
|
2235
2283
|
default:
|
|
2236
2284
|
if (t.na = 1, r.ua)
|
|
@@ -2251,29 +2299,29 @@ g.prototype.stepForStatement = function(e, t, r) {
|
|
|
2251
2299
|
return new k(r.update, t.scope);
|
|
2252
2300
|
}
|
|
2253
2301
|
};
|
|
2254
|
-
|
|
2302
|
+
m.prototype.stepFunctionDeclaration = function(e) {
|
|
2255
2303
|
e.pop();
|
|
2256
2304
|
};
|
|
2257
|
-
|
|
2305
|
+
m.prototype.stepFunctionExpression = function(e, t, r) {
|
|
2258
2306
|
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e = on(this, e)), t.value = nn(this, r, e, t.Pa), r.id && this.g(e.object, r.id.name, t.value, Zt);
|
|
2259
2307
|
};
|
|
2260
|
-
|
|
2308
|
+
m.prototype.stepIdentifier = function(e, t, r) {
|
|
2261
2309
|
if (e.pop(), t.sa)
|
|
2262
|
-
e[e.length - 1].value = [
|
|
2310
|
+
e[e.length - 1].value = [Ue, r.name];
|
|
2263
2311
|
else {
|
|
2264
2312
|
if (t = an(this, r.name), this.P)
|
|
2265
|
-
return
|
|
2313
|
+
return rt(this, t, this.Na);
|
|
2266
2314
|
e[e.length - 1].value = t;
|
|
2267
2315
|
}
|
|
2268
2316
|
};
|
|
2269
|
-
|
|
2270
|
-
|
|
2317
|
+
m.prototype.stepIfStatement = m.prototype.stepConditionalExpression;
|
|
2318
|
+
m.prototype.stepLabeledStatement = function(e, t, r) {
|
|
2271
2319
|
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new k(r.body, t.scope), t.labels = e, t;
|
|
2272
2320
|
};
|
|
2273
|
-
|
|
2321
|
+
m.prototype.stepLiteral = function(e, t, r) {
|
|
2274
2322
|
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma), en(this, r, t), t = r), e[e.length - 1].value = t;
|
|
2275
2323
|
};
|
|
2276
|
-
|
|
2324
|
+
m.prototype.stepLogicalExpression = function(e, t, r) {
|
|
2277
2325
|
if (r.operator !== "&&" && r.operator !== "||")
|
|
2278
2326
|
throw SyntaxError("Unknown logical operator: " + r.operator);
|
|
2279
2327
|
if (!t.ja)
|
|
@@ -2285,7 +2333,7 @@ g.prototype.stepLogicalExpression = function(e, t, r) {
|
|
|
2285
2333
|
else
|
|
2286
2334
|
return t.Da = !0, new k(r.right, t.scope);
|
|
2287
2335
|
};
|
|
2288
|
-
|
|
2336
|
+
m.prototype.stepMemberExpression = function(e, t, r) {
|
|
2289
2337
|
if (!t.Ca)
|
|
2290
2338
|
return t.Ca = !0, new k(r.object, t.scope);
|
|
2291
2339
|
if (r.bb)
|
|
@@ -2299,12 +2347,12 @@ g.prototype.stepMemberExpression = function(e, t, r) {
|
|
|
2299
2347
|
e[e.length - 1].value = [t.u, r];
|
|
2300
2348
|
else {
|
|
2301
2349
|
if (r = this.G(t.u, r), this.P)
|
|
2302
|
-
return
|
|
2350
|
+
return rt(this, r, t.u);
|
|
2303
2351
|
e[e.length - 1].value = r;
|
|
2304
2352
|
}
|
|
2305
2353
|
};
|
|
2306
|
-
|
|
2307
|
-
|
|
2354
|
+
m.prototype.stepNewExpression = m.prototype.stepCallExpression;
|
|
2355
|
+
m.prototype.stepObjectExpression = function(e, t, r) {
|
|
2308
2356
|
var n = t.A || 0, i = r.h[n];
|
|
2309
2357
|
if (t.u) {
|
|
2310
2358
|
var a = t.Pa;
|
|
@@ -2322,7 +2370,7 @@ g.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2322
2370
|
return t.Pa = a, new k(i.value, t.scope);
|
|
2323
2371
|
}
|
|
2324
2372
|
for (s in t.Ja)
|
|
2325
|
-
r = t.Ja[s], "get" in r || "set" in r ? this.g(t.u, s,
|
|
2373
|
+
r = t.Ja[s], "get" in r || "set" in r ? this.g(t.u, s, Ze, {
|
|
2326
2374
|
configurable: !0,
|
|
2327
2375
|
enumerable: !0,
|
|
2328
2376
|
get: r.get,
|
|
@@ -2330,23 +2378,23 @@ g.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2330
2378
|
}) : this.g(t.u, s, r.init);
|
|
2331
2379
|
e.pop(), e[e.length - 1].value = t.u;
|
|
2332
2380
|
};
|
|
2333
|
-
|
|
2381
|
+
m.prototype.stepProgram = function(e, t, r) {
|
|
2334
2382
|
if (e = r.body.shift())
|
|
2335
2383
|
return t.done = !1, new k(e, t.scope);
|
|
2336
2384
|
t.done = !0;
|
|
2337
2385
|
};
|
|
2338
|
-
|
|
2386
|
+
m.prototype.stepReturnStatement = function(e, t, r) {
|
|
2339
2387
|
if (r.K && !t.ka)
|
|
2340
2388
|
return t.ka = !0, new k(r.K, t.scope);
|
|
2341
|
-
|
|
2389
|
+
nt(this, 3, t.value);
|
|
2342
2390
|
};
|
|
2343
|
-
|
|
2391
|
+
m.prototype.stepSequenceExpression = function(e, t, r) {
|
|
2344
2392
|
var n = t.A || 0;
|
|
2345
2393
|
if (r = r.xb[n])
|
|
2346
2394
|
return t.A = n + 1, new k(r, t.scope);
|
|
2347
2395
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2348
2396
|
};
|
|
2349
|
-
|
|
2397
|
+
m.prototype.stepSwitchStatement = function(e, t, r) {
|
|
2350
2398
|
if (!t.ga)
|
|
2351
2399
|
return t.ga = 1, new k(r.Qb, t.scope);
|
|
2352
2400
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
@@ -2373,25 +2421,25 @@ g.prototype.stepSwitchStatement = function(e, t, r) {
|
|
|
2373
2421
|
t.cb = n, t.gb = n + 1;
|
|
2374
2422
|
}
|
|
2375
2423
|
};
|
|
2376
|
-
|
|
2424
|
+
m.prototype.stepThisExpression = function(e) {
|
|
2377
2425
|
e.pop(), e[e.length - 1].value = an(this, "this");
|
|
2378
2426
|
};
|
|
2379
|
-
|
|
2427
|
+
m.prototype.stepThrowStatement = function(e, t, r) {
|
|
2380
2428
|
if (t.ka)
|
|
2381
|
-
|
|
2429
|
+
E(this, t.value);
|
|
2382
2430
|
else
|
|
2383
2431
|
return t.ka = !0, new k(r.K, t.scope);
|
|
2384
2432
|
};
|
|
2385
|
-
|
|
2433
|
+
m.prototype.stepTryStatement = function(e, t, r) {
|
|
2386
2434
|
if (!t.Rb)
|
|
2387
2435
|
return t.Rb = !0, new k(r.block, t.scope);
|
|
2388
2436
|
if (t.ea && t.ea.type === 4 && !t.Tb && r.Ea)
|
|
2389
2437
|
return t.Tb = !0, e = on(this, t.scope), this.g(e.object, r.Ea.Ua.name, t.ea.value), t.ea = void 0, new k(r.Ea.body, e);
|
|
2390
2438
|
if (!t.Sb && r.fb)
|
|
2391
2439
|
return t.Sb = !0, new k(r.fb, t.scope);
|
|
2392
|
-
e.pop(), t.ea &&
|
|
2440
|
+
e.pop(), t.ea && nt(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2393
2441
|
};
|
|
2394
|
-
|
|
2442
|
+
m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
2395
2443
|
if (!t.ka)
|
|
2396
2444
|
return t.ka = !0, e = new k(r.K, t.scope), e.sa = r.operator === "delete", e;
|
|
2397
2445
|
e.pop();
|
|
@@ -2412,11 +2460,11 @@ g.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2412
2460
|
case "delete":
|
|
2413
2461
|
if (r = !0, Array.isArray(n)) {
|
|
2414
2462
|
var i = n[0];
|
|
2415
|
-
i ===
|
|
2463
|
+
i === Ue && (i = t.scope), n = String(n[1]);
|
|
2416
2464
|
try {
|
|
2417
2465
|
delete i.h[n];
|
|
2418
2466
|
} catch {
|
|
2419
|
-
t.scope.S ?
|
|
2467
|
+
t.scope.S ? E(this, this.j, "Cannot delete property '" + n + "' of '" + i + "'") : r = !1;
|
|
2420
2468
|
}
|
|
2421
2469
|
}
|
|
2422
2470
|
n = r;
|
|
@@ -2432,13 +2480,13 @@ g.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2432
2480
|
}
|
|
2433
2481
|
e[e.length - 1].value = n;
|
|
2434
2482
|
};
|
|
2435
|
-
|
|
2483
|
+
m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
2436
2484
|
if (!t.ja)
|
|
2437
2485
|
return t.ja = !0, e = new k(r.K, t.scope), e.sa = !0, e;
|
|
2438
2486
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2439
2487
|
var n = sn(this, t.Ga);
|
|
2440
2488
|
if (t.ma = n, this.P)
|
|
2441
|
-
return t.Ba = !0,
|
|
2489
|
+
return t.Ba = !0, rt(this, n, t.Ga);
|
|
2442
2490
|
}
|
|
2443
2491
|
if (t.ta)
|
|
2444
2492
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
@@ -2454,49 +2502,37 @@ g.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2454
2502
|
e.pop(), e[e.length - 1].value = r;
|
|
2455
2503
|
}
|
|
2456
2504
|
};
|
|
2457
|
-
|
|
2505
|
+
m.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
2458
2506
|
r = r.fa;
|
|
2459
2507
|
var n = t.A || 0, i = r[n];
|
|
2460
|
-
for (t.Bb && i && (
|
|
2508
|
+
for (t.Bb && i && (vr(this, i.id.name, t.value), t.Bb = !1, i = r[++n]); i; ) {
|
|
2461
2509
|
if (i.ua)
|
|
2462
2510
|
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new k(i.ua, t.scope);
|
|
2463
2511
|
i = r[++n];
|
|
2464
2512
|
}
|
|
2465
2513
|
e.pop();
|
|
2466
2514
|
};
|
|
2467
|
-
|
|
2515
|
+
m.prototype.stepWithStatement = function(e, t, r) {
|
|
2468
2516
|
return t.Ca ? (e.pop(), e = on(this, t.scope, t.value), new k(r.body, e)) : (t.Ca = !0, new k(r.object, t.scope));
|
|
2469
2517
|
};
|
|
2470
|
-
|
|
2471
|
-
be.Interpreter =
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
const
|
|
2488
|
-
builder: e,
|
|
2489
|
-
context: t,
|
|
2490
|
-
event: r,
|
|
2491
|
-
state: n
|
|
2492
|
-
}) => Object.entries({
|
|
2493
|
-
state: n,
|
|
2494
|
-
Builder: e,
|
|
2495
|
-
// legacy
|
|
2496
|
-
builder: e,
|
|
2497
|
-
context: t,
|
|
2498
|
-
event: r
|
|
2499
|
-
}), di = (e) => e.split(`
|
|
2518
|
+
m.prototype.stepWhileStatement = m.prototype.stepDoWhileStatement;
|
|
2519
|
+
be.Interpreter = m;
|
|
2520
|
+
m.prototype.step = m.prototype.lb;
|
|
2521
|
+
m.prototype.run = m.prototype.Eb;
|
|
2522
|
+
m.prototype.appendCode = m.prototype.Jb;
|
|
2523
|
+
m.prototype.createObject = m.prototype.Aa;
|
|
2524
|
+
m.prototype.createObjectProto = m.prototype.s;
|
|
2525
|
+
m.prototype.createAsyncFunction = m.prototype.ub;
|
|
2526
|
+
m.prototype.createNativeFunction = m.prototype.i;
|
|
2527
|
+
m.prototype.getProperty = m.prototype.G;
|
|
2528
|
+
m.prototype.setProperty = m.prototype.g;
|
|
2529
|
+
m.prototype.nativeToPseudo = m.prototype.Ia;
|
|
2530
|
+
m.prototype.pseudoToNative = m.prototype.R;
|
|
2531
|
+
m.prototype.getGlobalScope = m.prototype.Xb;
|
|
2532
|
+
m.prototype.getStateStack = m.prototype.Yb;
|
|
2533
|
+
m.prototype.setStateStack = m.prototype.ec;
|
|
2534
|
+
m.VALUE_IN_DESCRIPTOR = Ze;
|
|
2535
|
+
const gi = (e) => e.split(`
|
|
2500
2536
|
`).map((t) => {
|
|
2501
2537
|
const r = t.trim();
|
|
2502
2538
|
if (t.includes("__awaiter"))
|
|
@@ -2509,7 +2545,7 @@ const fi = ({
|
|
|
2509
2545
|
${u}
|
|
2510
2546
|
`;
|
|
2511
2547
|
}).filter(Boolean).join(`
|
|
2512
|
-
`), er = (e) => e + "JSON",
|
|
2548
|
+
`), er = (e) => e + "JSON", yi = ({
|
|
2513
2549
|
builder: e,
|
|
2514
2550
|
context: t,
|
|
2515
2551
|
event: r,
|
|
@@ -2521,47 +2557,47 @@ const fi = ({
|
|
|
2521
2557
|
const u = {
|
|
2522
2558
|
...n,
|
|
2523
2559
|
...i
|
|
2524
|
-
}, d =
|
|
2560
|
+
}, d = pr({
|
|
2525
2561
|
builder: e,
|
|
2526
2562
|
context: t,
|
|
2527
2563
|
event: r,
|
|
2528
2564
|
state: u
|
|
2529
2565
|
}), p = d.map(([C]) => {
|
|
2530
|
-
const
|
|
2531
|
-
return `var ${C} = ${
|
|
2566
|
+
const I = er(C);
|
|
2567
|
+
return `var ${C} = ${I} === undefined ? undefined : JSON.parse(${I});`;
|
|
2532
2568
|
}).join(`
|
|
2533
|
-
`), y =
|
|
2569
|
+
`), y = gi(s);
|
|
2534
2570
|
if (y === "") {
|
|
2535
|
-
|
|
2571
|
+
Pe.warn("Skipping evaluation of empty code block.");
|
|
2536
2572
|
return;
|
|
2537
2573
|
}
|
|
2538
|
-
const
|
|
2574
|
+
const x = `
|
|
2539
2575
|
function theFunction() {
|
|
2540
2576
|
${p}
|
|
2541
2577
|
|
|
2542
2578
|
${y}
|
|
2543
2579
|
}
|
|
2544
2580
|
theFunction();
|
|
2545
|
-
`, P = (C,
|
|
2546
|
-
const
|
|
2547
|
-
a == null || a(
|
|
2548
|
-
},
|
|
2549
|
-
d.forEach(([
|
|
2550
|
-
const v = JSON.stringify(
|
|
2551
|
-
C.setProperty(
|
|
2552
|
-
}), C.setProperty(
|
|
2581
|
+
`, P = (C, I) => {
|
|
2582
|
+
const L = mr(u, C, I);
|
|
2583
|
+
a == null || a(L);
|
|
2584
|
+
}, _ = function(C, I) {
|
|
2585
|
+
d.forEach(([L, V]) => {
|
|
2586
|
+
const v = JSON.stringify(V);
|
|
2587
|
+
C.setProperty(I, er(L), v);
|
|
2588
|
+
}), C.setProperty(I, "setRootState", C.createNativeFunction(P));
|
|
2553
2589
|
};
|
|
2554
2590
|
try {
|
|
2555
|
-
const C = new
|
|
2591
|
+
const C = new m(x, _);
|
|
2556
2592
|
return C.run(), C.pseudoToNative(C.value);
|
|
2557
2593
|
} catch (C) {
|
|
2558
|
-
|
|
2594
|
+
Pe.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2559
2595
|
e: C
|
|
2560
2596
|
});
|
|
2561
2597
|
return;
|
|
2562
2598
|
}
|
|
2563
|
-
};
|
|
2564
|
-
function
|
|
2599
|
+
}, vi = (e) => Ee() ? Zr(e) : yi(e);
|
|
2600
|
+
function et({
|
|
2565
2601
|
code: e,
|
|
2566
2602
|
context: t,
|
|
2567
2603
|
localState: r,
|
|
@@ -2571,17 +2607,14 @@ function Qe({
|
|
|
2571
2607
|
isExpression: s = !0
|
|
2572
2608
|
}) {
|
|
2573
2609
|
if (e === "") {
|
|
2574
|
-
|
|
2610
|
+
Pe.warn("Skipping evaluation of empty code block.");
|
|
2575
2611
|
return;
|
|
2576
2612
|
}
|
|
2577
2613
|
const u = {
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
}, y = {
|
|
2583
|
-
code: /* we disable this for cases where we definitely don't want a return */ s && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
2584
|
-
builder: u,
|
|
2614
|
+
code: qr(e, {
|
|
2615
|
+
isExpression: s
|
|
2616
|
+
}),
|
|
2617
|
+
builder: Yr(),
|
|
2585
2618
|
context: t,
|
|
2586
2619
|
event: a,
|
|
2587
2620
|
rootSetState: i,
|
|
@@ -2589,15 +2622,15 @@ function Qe({
|
|
|
2589
2622
|
localState: r
|
|
2590
2623
|
};
|
|
2591
2624
|
try {
|
|
2592
|
-
return
|
|
2593
|
-
} catch (
|
|
2594
|
-
|
|
2625
|
+
return vi(u);
|
|
2626
|
+
} catch (d) {
|
|
2627
|
+
Pe.error("Failed code evaluation: " + d.message, {
|
|
2595
2628
|
code: e
|
|
2596
2629
|
});
|
|
2597
2630
|
return;
|
|
2598
2631
|
}
|
|
2599
2632
|
}
|
|
2600
|
-
const
|
|
2633
|
+
const xi = ({
|
|
2601
2634
|
block: e,
|
|
2602
2635
|
context: t,
|
|
2603
2636
|
localState: r,
|
|
@@ -2616,14 +2649,14 @@ const pi = ({
|
|
|
2616
2649
|
}
|
|
2617
2650
|
};
|
|
2618
2651
|
for (const u in e.bindings) {
|
|
2619
|
-
const d = e.bindings[u], p =
|
|
2652
|
+
const d = e.bindings[u], p = et({
|
|
2620
2653
|
code: d,
|
|
2621
2654
|
localState: r,
|
|
2622
2655
|
rootState: n,
|
|
2623
2656
|
rootSetState: i,
|
|
2624
2657
|
context: t
|
|
2625
2658
|
});
|
|
2626
|
-
|
|
2659
|
+
mr(s, u, p);
|
|
2627
2660
|
}
|
|
2628
2661
|
return s;
|
|
2629
2662
|
};
|
|
@@ -2636,7 +2669,7 @@ function dt({
|
|
|
2636
2669
|
rootSetState: a
|
|
2637
2670
|
}) {
|
|
2638
2671
|
const s = e;
|
|
2639
|
-
return r ?
|
|
2672
|
+
return r ? xi({
|
|
2640
2673
|
block: s,
|
|
2641
2674
|
localState: n,
|
|
2642
2675
|
rootState: i,
|
|
@@ -2644,24 +2677,24 @@ function dt({
|
|
|
2644
2677
|
context: t
|
|
2645
2678
|
}) : s;
|
|
2646
2679
|
}
|
|
2647
|
-
const
|
|
2680
|
+
const bi = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Sr = (e) => Object.entries(e).map(([r, n]) => {
|
|
2648
2681
|
if (typeof n == "string")
|
|
2649
|
-
return `${
|
|
2650
|
-
}).filter(Ht),
|
|
2682
|
+
return `${bi(r)}: ${n};`;
|
|
2683
|
+
}).filter(Ht), Si = (e) => Sr(e).join(`
|
|
2651
2684
|
`), Vt = ({
|
|
2652
2685
|
mediaQuery: e,
|
|
2653
2686
|
className: t,
|
|
2654
2687
|
styles: r
|
|
2655
2688
|
}) => {
|
|
2656
2689
|
const n = `.${t} {
|
|
2657
|
-
${
|
|
2690
|
+
${Si(r)}
|
|
2658
2691
|
}`;
|
|
2659
2692
|
return e ? `${e} {
|
|
2660
2693
|
${n}
|
|
2661
2694
|
}` : n;
|
|
2662
2695
|
};
|
|
2663
2696
|
function gt(e) {
|
|
2664
|
-
return /* @__PURE__ */
|
|
2697
|
+
return /* @__PURE__ */ g("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2665
2698
|
}
|
|
2666
2699
|
function un(e) {
|
|
2667
2700
|
function t() {
|
|
@@ -2684,12 +2717,12 @@ function un(e) {
|
|
|
2684
2717
|
rootSetState: e.context.rootSetState,
|
|
2685
2718
|
context: e.context.context,
|
|
2686
2719
|
shouldEvaluateBindings: !0
|
|
2687
|
-
}), i = n.responsiveStyles, a = e.context.content, s =
|
|
2720
|
+
}), i = n.responsiveStyles, a = e.context.content, s = hr(
|
|
2688
2721
|
((C = a == null ? void 0 : a.meta) == null ? void 0 : C.breakpoints) || {}
|
|
2689
2722
|
), u = i == null ? void 0 : i.large, d = i == null ? void 0 : i.medium, p = i == null ? void 0 : i.small, y = n.id;
|
|
2690
2723
|
if (!y)
|
|
2691
2724
|
return "";
|
|
2692
|
-
const
|
|
2725
|
+
const x = u ? Vt({
|
|
2693
2726
|
className: y,
|
|
2694
2727
|
styles: u
|
|
2695
2728
|
}) : "", P = d ? Vt({
|
|
@@ -2699,7 +2732,7 @@ function un(e) {
|
|
|
2699
2732
|
"medium",
|
|
2700
2733
|
s
|
|
2701
2734
|
)
|
|
2702
|
-
}) : "",
|
|
2735
|
+
}) : "", _ = p ? Vt({
|
|
2703
2736
|
className: y,
|
|
2704
2737
|
styles: p,
|
|
2705
2738
|
mediaQuery: Xn(
|
|
@@ -2707,11 +2740,11 @@ function un(e) {
|
|
|
2707
2740
|
s
|
|
2708
2741
|
)
|
|
2709
2742
|
}) : "";
|
|
2710
|
-
return [
|
|
2743
|
+
return [x, P, _].join(" ");
|
|
2711
2744
|
}
|
|
2712
|
-
return /* @__PURE__ */
|
|
2745
|
+
return /* @__PURE__ */ g(U, { children: r() && t() ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(gt, { styles: r() }) }) : null });
|
|
2713
2746
|
}
|
|
2714
|
-
function
|
|
2747
|
+
function wi(e) {
|
|
2715
2748
|
var t;
|
|
2716
2749
|
return {
|
|
2717
2750
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -2722,7 +2755,7 @@ function yi(e) {
|
|
|
2722
2755
|
builderBlock: e
|
|
2723
2756
|
};
|
|
2724
2757
|
}
|
|
2725
|
-
const
|
|
2758
|
+
const ki = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], Dt = (e) => typeof e == "string" && ki.includes(e.toLowerCase()), Ci = ({
|
|
2726
2759
|
block: e,
|
|
2727
2760
|
context: t,
|
|
2728
2761
|
registeredComponents: r
|
|
@@ -2744,7 +2777,7 @@ const vi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2744
2777
|
console.warn(`
|
|
2745
2778
|
Could not find a registered component named "${n}".
|
|
2746
2779
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2747
|
-
},
|
|
2780
|
+
}, Ei = ({
|
|
2748
2781
|
block: e,
|
|
2749
2782
|
context: t
|
|
2750
2783
|
}) => {
|
|
@@ -2754,7 +2787,7 @@ const vi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2754
2787
|
} = e;
|
|
2755
2788
|
if (!(r != null && r.collection))
|
|
2756
2789
|
return;
|
|
2757
|
-
const i =
|
|
2790
|
+
const i = et({
|
|
2758
2791
|
code: r.collection,
|
|
2759
2792
|
localState: t.localState,
|
|
2760
2793
|
rootState: t.rootState,
|
|
@@ -2789,9 +2822,9 @@ const vi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2789
2822
|
componentInfos: {},
|
|
2790
2823
|
inheritedStyles: {}
|
|
2791
2824
|
});
|
|
2792
|
-
function
|
|
2793
|
-
const [t, r] =
|
|
2794
|
-
return /* @__PURE__ */
|
|
2825
|
+
function Ii(e) {
|
|
2826
|
+
const [t, r] = H(() => e.repeatContext);
|
|
2827
|
+
return /* @__PURE__ */ g(fn.Provider, { value: t, children: /* @__PURE__ */ g(
|
|
2795
2828
|
yt,
|
|
2796
2829
|
{
|
|
2797
2830
|
block: e.block,
|
|
@@ -2800,10 +2833,10 @@ function Si(e) {
|
|
|
2800
2833
|
}
|
|
2801
2834
|
) });
|
|
2802
2835
|
}
|
|
2803
|
-
function
|
|
2836
|
+
function Ti(e) {
|
|
2804
2837
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2805
2838
|
}
|
|
2806
|
-
const
|
|
2839
|
+
const ji = (e) => `on${Ti(e)}`, Ai = (e, t) => (r) => et({
|
|
2807
2840
|
code: e,
|
|
2808
2841
|
context: t.context,
|
|
2809
2842
|
localState: t.localState,
|
|
@@ -2818,9 +2851,9 @@ function Xt(e) {
|
|
|
2818
2851
|
if (!r.hasOwnProperty(n))
|
|
2819
2852
|
continue;
|
|
2820
2853
|
const i = r[n];
|
|
2821
|
-
let a =
|
|
2854
|
+
let a = ji(n);
|
|
2822
2855
|
if (e.stripPrefix)
|
|
2823
|
-
switch (
|
|
2856
|
+
switch (tt) {
|
|
2824
2857
|
case "vue2":
|
|
2825
2858
|
case "vue3":
|
|
2826
2859
|
a = a.replace("v-on:", "");
|
|
@@ -2829,14 +2862,14 @@ function Xt(e) {
|
|
|
2829
2862
|
a = a.replace("on:", "");
|
|
2830
2863
|
break;
|
|
2831
2864
|
}
|
|
2832
|
-
t[a] =
|
|
2865
|
+
t[a] = Ai(i, e);
|
|
2833
2866
|
}
|
|
2834
2867
|
return t;
|
|
2835
2868
|
}
|
|
2836
|
-
function
|
|
2869
|
+
function Ri(e) {
|
|
2837
2870
|
return e.className = e.class, delete e.class, e;
|
|
2838
2871
|
}
|
|
2839
|
-
const
|
|
2872
|
+
const Oi = (e) => ({
|
|
2840
2873
|
href: e.href
|
|
2841
2874
|
});
|
|
2842
2875
|
function ht({
|
|
@@ -2845,21 +2878,21 @@ function ht({
|
|
|
2845
2878
|
}) {
|
|
2846
2879
|
var n;
|
|
2847
2880
|
const r = {
|
|
2848
|
-
...
|
|
2881
|
+
...Oi(e),
|
|
2849
2882
|
...e.properties,
|
|
2850
2883
|
"builder-id": e.id,
|
|
2851
|
-
style: e.style ?
|
|
2884
|
+
style: e.style ? Ni(e.style) : void 0,
|
|
2852
2885
|
class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
2853
2886
|
};
|
|
2854
|
-
return
|
|
2887
|
+
return Ri(r);
|
|
2855
2888
|
}
|
|
2856
|
-
function
|
|
2857
|
-
switch (
|
|
2889
|
+
function Ni(e) {
|
|
2890
|
+
switch (tt) {
|
|
2858
2891
|
case "svelte":
|
|
2859
2892
|
case "vue2":
|
|
2860
2893
|
case "vue3":
|
|
2861
2894
|
case "solid":
|
|
2862
|
-
return
|
|
2895
|
+
return Sr(e).join(" ");
|
|
2863
2896
|
case "qwik":
|
|
2864
2897
|
case "reactNative":
|
|
2865
2898
|
case "react":
|
|
@@ -2867,8 +2900,8 @@ function Ti(e) {
|
|
|
2867
2900
|
return e;
|
|
2868
2901
|
}
|
|
2869
2902
|
}
|
|
2870
|
-
function
|
|
2871
|
-
return /* @__PURE__ */
|
|
2903
|
+
function Pi(e) {
|
|
2904
|
+
return /* @__PURE__ */ g(
|
|
2872
2905
|
e.Wrapper,
|
|
2873
2906
|
{
|
|
2874
2907
|
...e.wrapperProps,
|
|
@@ -2889,7 +2922,7 @@ function ji(e) {
|
|
|
2889
2922
|
}
|
|
2890
2923
|
);
|
|
2891
2924
|
}
|
|
2892
|
-
const
|
|
2925
|
+
const Mi = ({
|
|
2893
2926
|
componentOptions: e,
|
|
2894
2927
|
builderBlock: t,
|
|
2895
2928
|
context: r,
|
|
@@ -2917,13 +2950,13 @@ const Ai = ({
|
|
|
2917
2950
|
};
|
|
2918
2951
|
function tr(e) {
|
|
2919
2952
|
var n, i;
|
|
2920
|
-
const [t, r] =
|
|
2921
|
-
() => e.isInteractive ?
|
|
2953
|
+
const [t, r] = H(
|
|
2954
|
+
() => e.isInteractive ? Pi : e.componentRef
|
|
2922
2955
|
);
|
|
2923
|
-
return /* @__PURE__ */
|
|
2956
|
+
return /* @__PURE__ */ g(U, { children: e.componentRef ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ Z(
|
|
2924
2957
|
t,
|
|
2925
2958
|
{
|
|
2926
|
-
...
|
|
2959
|
+
...Mi({
|
|
2927
2960
|
componentOptions: e.componentOptions,
|
|
2928
2961
|
builderBlock: e.builderBlock,
|
|
2929
2962
|
context: e.context,
|
|
@@ -2933,7 +2966,7 @@ function tr(e) {
|
|
|
2933
2966
|
contextValue: e.context
|
|
2934
2967
|
}),
|
|
2935
2968
|
children: [
|
|
2936
|
-
(n = e.blockChildren) == null ? void 0 : n.map((a) => /* @__PURE__ */
|
|
2969
|
+
(n = e.blockChildren) == null ? void 0 : n.map((a) => /* @__PURE__ */ g(
|
|
2937
2970
|
yt,
|
|
2938
2971
|
{
|
|
2939
2972
|
block: a,
|
|
@@ -2942,7 +2975,7 @@ function tr(e) {
|
|
|
2942
2975
|
},
|
|
2943
2976
|
"block-" + a.id
|
|
2944
2977
|
)),
|
|
2945
|
-
(i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */
|
|
2978
|
+
(i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ g(
|
|
2946
2979
|
un,
|
|
2947
2980
|
{
|
|
2948
2981
|
block: a,
|
|
@@ -2955,9 +2988,9 @@ function tr(e) {
|
|
|
2955
2988
|
) }) : null });
|
|
2956
2989
|
}
|
|
2957
2990
|
function nr(e) {
|
|
2958
|
-
return /* @__PURE__ */ Z(
|
|
2991
|
+
return /* @__PURE__ */ Z(U, { children: [
|
|
2959
2992
|
" ",
|
|
2960
|
-
e.hasChildren ? /* @__PURE__ */
|
|
2993
|
+
e.hasChildren ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ Z(
|
|
2961
2994
|
e.Wrapper,
|
|
2962
2995
|
{
|
|
2963
2996
|
...ht({
|
|
@@ -2978,7 +3011,7 @@ function nr(e) {
|
|
|
2978
3011
|
" "
|
|
2979
3012
|
]
|
|
2980
3013
|
}
|
|
2981
|
-
) }) : /* @__PURE__ */
|
|
3014
|
+
) }) : /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
2982
3015
|
e.Wrapper,
|
|
2983
3016
|
{
|
|
2984
3017
|
...ht({
|
|
@@ -2999,16 +3032,16 @@ function nr(e) {
|
|
|
2999
3032
|
] });
|
|
3000
3033
|
}
|
|
3001
3034
|
function yt(e) {
|
|
3002
|
-
var y,
|
|
3035
|
+
var y, x, P, _;
|
|
3003
3036
|
function t() {
|
|
3004
|
-
return
|
|
3037
|
+
return Ci({
|
|
3005
3038
|
block: e.block,
|
|
3006
3039
|
context: e.context,
|
|
3007
3040
|
registeredComponents: e.registeredComponents
|
|
3008
3041
|
});
|
|
3009
3042
|
}
|
|
3010
3043
|
function r() {
|
|
3011
|
-
return
|
|
3044
|
+
return Ei({
|
|
3012
3045
|
block: e.block,
|
|
3013
3046
|
context: e.context
|
|
3014
3047
|
});
|
|
@@ -3030,31 +3063,31 @@ function yt(e) {
|
|
|
3030
3063
|
return "hide" in n() ? !n().hide : "show" in n() ? n().show : !0;
|
|
3031
3064
|
}
|
|
3032
3065
|
function s() {
|
|
3033
|
-
var
|
|
3034
|
-
return !((
|
|
3066
|
+
var I;
|
|
3067
|
+
return !((I = t == null ? void 0 : t()) != null && I.component) && !r() ? n().children ?? [] : [];
|
|
3035
3068
|
}
|
|
3036
3069
|
function u() {
|
|
3037
|
-
var C,
|
|
3070
|
+
var C, I, L, V, v;
|
|
3038
3071
|
return {
|
|
3039
3072
|
blockChildren: n().children ?? [],
|
|
3040
3073
|
componentRef: (C = t == null ? void 0 : t()) == null ? void 0 : C.component,
|
|
3041
3074
|
componentOptions: {
|
|
3042
|
-
...
|
|
3075
|
+
...wi(n()),
|
|
3043
3076
|
builderContext: e.context,
|
|
3044
|
-
...((
|
|
3077
|
+
...((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Symbol" || ((L = t == null ? void 0 : t()) == null ? void 0 : L.name) === "Columns" ? {
|
|
3045
3078
|
builderComponents: e.registeredComponents
|
|
3046
3079
|
} : {}
|
|
3047
3080
|
},
|
|
3048
3081
|
context: d,
|
|
3049
3082
|
registeredComponents: e.registeredComponents,
|
|
3050
3083
|
builderBlock: n(),
|
|
3051
|
-
includeBlockProps: ((
|
|
3084
|
+
includeBlockProps: ((V = t == null ? void 0 : t()) == null ? void 0 : V.noWrap) === !0,
|
|
3052
3085
|
isInteractive: !((v = t == null ? void 0 : t()) != null && v.isRSC)
|
|
3053
3086
|
};
|
|
3054
3087
|
}
|
|
3055
|
-
const [d, p] =
|
|
3056
|
-
return /* @__PURE__ */
|
|
3057
|
-
Dt(i()) ? /* @__PURE__ */
|
|
3088
|
+
const [d, p] = H(() => e.context);
|
|
3089
|
+
return /* @__PURE__ */ g(U, { children: a() ? /* @__PURE__ */ g(U, { children: (y = t == null ? void 0 : t()) != null && y.noWrap ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(tr, { ...u() }) }) : /* @__PURE__ */ Z(U, { children: [
|
|
3090
|
+
Dt(i()) ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
3058
3091
|
nr,
|
|
3059
3092
|
{
|
|
3060
3093
|
Wrapper: i(),
|
|
@@ -3063,16 +3096,16 @@ function yt(e) {
|
|
|
3063
3096
|
hasChildren: !1
|
|
3064
3097
|
}
|
|
3065
3098
|
) }) : null,
|
|
3066
|
-
!Dt(i()) && r() ? /* @__PURE__ */
|
|
3067
|
-
|
|
3099
|
+
!Dt(i()) && r() ? /* @__PURE__ */ g(U, { children: (x = r()) == null ? void 0 : x.map((C, I) => /* @__PURE__ */ g(
|
|
3100
|
+
Ii,
|
|
3068
3101
|
{
|
|
3069
3102
|
repeatContext: C.context,
|
|
3070
3103
|
block: C.block,
|
|
3071
3104
|
registeredComponents: e.registeredComponents
|
|
3072
3105
|
},
|
|
3073
|
-
|
|
3106
|
+
I
|
|
3074
3107
|
)) }) : null,
|
|
3075
|
-
!Dt(i()) && !r() ? /* @__PURE__ */
|
|
3108
|
+
!Dt(i()) && !r() ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ Z(
|
|
3076
3109
|
nr,
|
|
3077
3110
|
{
|
|
3078
3111
|
Wrapper: i(),
|
|
@@ -3080,8 +3113,8 @@ function yt(e) {
|
|
|
3080
3113
|
context: e.context,
|
|
3081
3114
|
hasChildren: !0,
|
|
3082
3115
|
children: [
|
|
3083
|
-
/* @__PURE__ */
|
|
3084
|
-
(P = s()) == null ? void 0 : P.map((C) => /* @__PURE__ */
|
|
3116
|
+
/* @__PURE__ */ g(tr, { ...u() }),
|
|
3117
|
+
(P = s()) == null ? void 0 : P.map((C) => /* @__PURE__ */ g(
|
|
3085
3118
|
yt,
|
|
3086
3119
|
{
|
|
3087
3120
|
block: C,
|
|
@@ -3090,7 +3123,7 @@ function yt(e) {
|
|
|
3090
3123
|
},
|
|
3091
3124
|
"block-" + C.id
|
|
3092
3125
|
)),
|
|
3093
|
-
(
|
|
3126
|
+
(_ = s()) == null ? void 0 : _.map((C) => /* @__PURE__ */ g(
|
|
3094
3127
|
un,
|
|
3095
3128
|
{
|
|
3096
3129
|
block: C,
|
|
@@ -3103,14 +3136,14 @@ function yt(e) {
|
|
|
3103
3136
|
) }) : null
|
|
3104
3137
|
] }) }) : null });
|
|
3105
3138
|
}
|
|
3106
|
-
function
|
|
3139
|
+
function Fi(e) {
|
|
3107
3140
|
function t() {
|
|
3108
3141
|
var i;
|
|
3109
3142
|
return "builder-blocks" + ((i = e.blocks) != null && i.length ? "" : " no-blocks");
|
|
3110
3143
|
}
|
|
3111
3144
|
function r() {
|
|
3112
3145
|
var i, a;
|
|
3113
|
-
|
|
3146
|
+
Ce() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3114
3147
|
{
|
|
3115
3148
|
type: "builder.clickEmptyBlocks",
|
|
3116
3149
|
data: {
|
|
@@ -3123,7 +3156,7 @@ function Ri(e) {
|
|
|
3123
3156
|
}
|
|
3124
3157
|
function n() {
|
|
3125
3158
|
var i, a;
|
|
3126
|
-
|
|
3159
|
+
Ce() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3127
3160
|
{
|
|
3128
3161
|
type: "builder.hoverEmptyBlocks",
|
|
3129
3162
|
data: {
|
|
@@ -3134,11 +3167,11 @@ function Ri(e) {
|
|
|
3134
3167
|
"*"
|
|
3135
3168
|
));
|
|
3136
3169
|
}
|
|
3137
|
-
return /* @__PURE__ */ Z(
|
|
3138
|
-
/* @__PURE__ */
|
|
3170
|
+
return /* @__PURE__ */ Z(U, { children: [
|
|
3171
|
+
/* @__PURE__ */ g(
|
|
3139
3172
|
"div",
|
|
3140
3173
|
{
|
|
3141
|
-
className: t() + " div-
|
|
3174
|
+
className: t() + " div-02c7a115",
|
|
3142
3175
|
"builder-path": e.path,
|
|
3143
3176
|
"builder-parent-id": e.parent,
|
|
3144
3177
|
style: e.styleProp,
|
|
@@ -3148,26 +3181,26 @@ function Ri(e) {
|
|
|
3148
3181
|
children: e.children
|
|
3149
3182
|
}
|
|
3150
3183
|
),
|
|
3151
|
-
/* @__PURE__ */
|
|
3184
|
+
/* @__PURE__ */ g("style", { children: `.div-02c7a115 {
|
|
3152
3185
|
display: flex;
|
|
3153
3186
|
flex-direction: column;
|
|
3154
3187
|
align-items: stretch;
|
|
3155
3188
|
}` })
|
|
3156
3189
|
] });
|
|
3157
3190
|
}
|
|
3158
|
-
const
|
|
3191
|
+
const wr = cr({ registeredComponents: {} });
|
|
3159
3192
|
function dn(e) {
|
|
3160
3193
|
var n, i;
|
|
3161
|
-
const t = Hn(fn), r = Hn(
|
|
3194
|
+
const t = Hn(fn), r = Hn(wr);
|
|
3162
3195
|
return /* @__PURE__ */ Z(
|
|
3163
|
-
|
|
3196
|
+
Fi,
|
|
3164
3197
|
{
|
|
3165
3198
|
blocks: e.blocks,
|
|
3166
3199
|
parent: e.parent,
|
|
3167
3200
|
path: e.path,
|
|
3168
3201
|
styleProp: e.styleProp,
|
|
3169
3202
|
children: [
|
|
3170
|
-
e.blocks ? /* @__PURE__ */
|
|
3203
|
+
e.blocks ? /* @__PURE__ */ g(U, { children: (n = e.blocks) == null ? void 0 : n.map((a) => /* @__PURE__ */ g(
|
|
3171
3204
|
yt,
|
|
3172
3205
|
{
|
|
3173
3206
|
block: a,
|
|
@@ -3176,7 +3209,7 @@ function dn(e) {
|
|
|
3176
3209
|
},
|
|
3177
3210
|
"render-block-" + a.id
|
|
3178
3211
|
)) }) : null,
|
|
3179
|
-
e.blocks ? /* @__PURE__ */
|
|
3212
|
+
e.blocks ? /* @__PURE__ */ g(U, { children: (i = e.blocks) == null ? void 0 : i.map((a) => /* @__PURE__ */ g(
|
|
3180
3213
|
un,
|
|
3181
3214
|
{
|
|
3182
3215
|
block: a,
|
|
@@ -3188,77 +3221,77 @@ function dn(e) {
|
|
|
3188
3221
|
}
|
|
3189
3222
|
);
|
|
3190
3223
|
}
|
|
3191
|
-
function
|
|
3192
|
-
var
|
|
3193
|
-
const [t, r] =
|
|
3224
|
+
function Ui(e) {
|
|
3225
|
+
var V;
|
|
3226
|
+
const [t, r] = H(
|
|
3194
3227
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3195
|
-
), [n, i] =
|
|
3228
|
+
), [n, i] = H(() => e.columns || []), [a, s] = H(
|
|
3196
3229
|
() => e.stackColumnsAt || "tablet"
|
|
3197
3230
|
);
|
|
3198
3231
|
function u(v) {
|
|
3199
|
-
var
|
|
3200
|
-
return ((
|
|
3232
|
+
var K;
|
|
3233
|
+
return ((K = n[v]) == null ? void 0 : K.width) || 100 / n.length;
|
|
3201
3234
|
}
|
|
3202
3235
|
function d(v) {
|
|
3203
|
-
const
|
|
3204
|
-
return `calc(${u(v)}% - ${
|
|
3236
|
+
const K = t * (n.length - 1) / n.length;
|
|
3237
|
+
return `calc(${u(v)}% - ${K}px)`;
|
|
3205
3238
|
}
|
|
3206
3239
|
function p({
|
|
3207
3240
|
stackedStyle: v,
|
|
3208
|
-
desktopStyle:
|
|
3241
|
+
desktopStyle: K
|
|
3209
3242
|
}) {
|
|
3210
|
-
return a === "tablet" ? v :
|
|
3243
|
+
return a === "tablet" ? v : K;
|
|
3211
3244
|
}
|
|
3212
3245
|
function y({
|
|
3213
3246
|
stackedStyle: v,
|
|
3214
|
-
desktopStyle:
|
|
3247
|
+
desktopStyle: K
|
|
3215
3248
|
}) {
|
|
3216
|
-
return a === "never" ?
|
|
3249
|
+
return a === "never" ? K : v;
|
|
3217
3250
|
}
|
|
3218
|
-
const [
|
|
3251
|
+
const [x, P] = H(
|
|
3219
3252
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3220
3253
|
);
|
|
3221
|
-
function
|
|
3254
|
+
function _() {
|
|
3222
3255
|
return {
|
|
3223
|
-
"--flex-dir":
|
|
3256
|
+
"--flex-dir": x,
|
|
3224
3257
|
"--flex-dir-tablet": p({
|
|
3225
|
-
stackedStyle:
|
|
3258
|
+
stackedStyle: x,
|
|
3226
3259
|
desktopStyle: "row"
|
|
3227
3260
|
})
|
|
3228
3261
|
};
|
|
3229
3262
|
}
|
|
3230
3263
|
function C(v) {
|
|
3231
|
-
const
|
|
3264
|
+
const K = v === 0 ? 0 : t, ae = d(v), se = `${K}px`, W = "100%", ee = 0;
|
|
3232
3265
|
return {
|
|
3233
|
-
width:
|
|
3234
|
-
["marginLeft"]:
|
|
3266
|
+
width: ae,
|
|
3267
|
+
["marginLeft"]: se,
|
|
3235
3268
|
"--column-width-mobile": y({
|
|
3236
|
-
stackedStyle:
|
|
3237
|
-
desktopStyle:
|
|
3269
|
+
stackedStyle: W,
|
|
3270
|
+
desktopStyle: ae
|
|
3238
3271
|
}),
|
|
3239
3272
|
"--column-margin-left-mobile": y({
|
|
3240
|
-
stackedStyle:
|
|
3241
|
-
desktopStyle:
|
|
3273
|
+
stackedStyle: ee,
|
|
3274
|
+
desktopStyle: se
|
|
3242
3275
|
}),
|
|
3243
3276
|
"--column-width-tablet": p({
|
|
3244
|
-
stackedStyle:
|
|
3245
|
-
desktopStyle:
|
|
3277
|
+
stackedStyle: W,
|
|
3278
|
+
desktopStyle: ae
|
|
3246
3279
|
}),
|
|
3247
3280
|
"--column-margin-left-tablet": p({
|
|
3248
|
-
stackedStyle:
|
|
3249
|
-
desktopStyle:
|
|
3281
|
+
stackedStyle: ee,
|
|
3282
|
+
desktopStyle: se
|
|
3250
3283
|
})
|
|
3251
3284
|
};
|
|
3252
3285
|
}
|
|
3253
|
-
function
|
|
3254
|
-
var
|
|
3255
|
-
return
|
|
3256
|
-
((
|
|
3286
|
+
function I(v) {
|
|
3287
|
+
var ae, se;
|
|
3288
|
+
return hr(
|
|
3289
|
+
((se = (ae = e.builderContext.content) == null ? void 0 : ae.meta) == null ? void 0 : se.breakpoints) || {}
|
|
3257
3290
|
)[v].max;
|
|
3258
3291
|
}
|
|
3259
|
-
function
|
|
3292
|
+
function L() {
|
|
3260
3293
|
return `
|
|
3261
|
-
@media (max-width: ${
|
|
3294
|
+
@media (max-width: ${I("medium")}px) {
|
|
3262
3295
|
.${e.builderBlock.id}-breakpoints {
|
|
3263
3296
|
flex-direction: var(--flex-dir-tablet);
|
|
3264
3297
|
align-items: stretch;
|
|
@@ -3270,7 +3303,7 @@ function Oi(e) {
|
|
|
3270
3303
|
}
|
|
3271
3304
|
}
|
|
3272
3305
|
|
|
3273
|
-
@media (max-width: ${
|
|
3306
|
+
@media (max-width: ${I("small")}px) {
|
|
3274
3307
|
.${e.builderBlock.id}-breakpoints {
|
|
3275
3308
|
flex-direction: var(--flex-dir);
|
|
3276
3309
|
align-items: stretch;
|
|
@@ -3283,25 +3316,25 @@ function Oi(e) {
|
|
|
3283
3316
|
},
|
|
3284
3317
|
`;
|
|
3285
3318
|
}
|
|
3286
|
-
return /* @__PURE__ */ Z(
|
|
3319
|
+
return /* @__PURE__ */ Z(U, { children: [
|
|
3287
3320
|
/* @__PURE__ */ Z(
|
|
3288
3321
|
"div",
|
|
3289
3322
|
{
|
|
3290
|
-
className: `builder-columns ${e.builderBlock.id}-breakpoints div-
|
|
3291
|
-
style:
|
|
3323
|
+
className: `builder-columns ${e.builderBlock.id}-breakpoints div-ac8f4142`,
|
|
3324
|
+
style: _(),
|
|
3292
3325
|
children: [
|
|
3293
|
-
/* @__PURE__ */
|
|
3294
|
-
(
|
|
3326
|
+
/* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(gt, { styles: L() }) }),
|
|
3327
|
+
(V = e.columns) == null ? void 0 : V.map((v, K) => /* @__PURE__ */ ur(
|
|
3295
3328
|
"div",
|
|
3296
3329
|
{
|
|
3297
|
-
className: "builder-column div-
|
|
3298
|
-
style: C(
|
|
3299
|
-
key:
|
|
3330
|
+
className: "builder-column div-ac8f4142-2",
|
|
3331
|
+
style: C(K),
|
|
3332
|
+
key: K
|
|
3300
3333
|
},
|
|
3301
|
-
/* @__PURE__ */
|
|
3334
|
+
/* @__PURE__ */ g(
|
|
3302
3335
|
dn,
|
|
3303
3336
|
{
|
|
3304
|
-
path: `component.options.columns.${
|
|
3337
|
+
path: `component.options.columns.${K}.blocks`,
|
|
3305
3338
|
parent: e.builderBlock.id,
|
|
3306
3339
|
styleProp: {
|
|
3307
3340
|
flexGrow: "1"
|
|
@@ -3315,27 +3348,27 @@ function Oi(e) {
|
|
|
3315
3348
|
]
|
|
3316
3349
|
}
|
|
3317
3350
|
),
|
|
3318
|
-
/* @__PURE__ */
|
|
3351
|
+
/* @__PURE__ */ g("style", { children: `.div-ac8f4142 {
|
|
3319
3352
|
display: flex;
|
|
3320
3353
|
line-height: normal;
|
|
3321
|
-
}.div-
|
|
3354
|
+
}.div-ac8f4142-2 {
|
|
3322
3355
|
display: flex;
|
|
3323
3356
|
flex-direction: column;
|
|
3324
3357
|
align-items: stretch;
|
|
3325
3358
|
}` })
|
|
3326
3359
|
] });
|
|
3327
3360
|
}
|
|
3328
|
-
function
|
|
3329
|
-
return /* @__PURE__ */
|
|
3361
|
+
function Bi(e) {
|
|
3362
|
+
return /* @__PURE__ */ g("span", { children: e.children });
|
|
3330
3363
|
}
|
|
3331
3364
|
function rr(e) {
|
|
3332
3365
|
return e.replace(/http(s)?:/, "");
|
|
3333
3366
|
}
|
|
3334
|
-
function
|
|
3367
|
+
function _i(e = "", t, r) {
|
|
3335
3368
|
const n = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3336
3369
|
return e.match(n) ? e.replace(n, "$1" + t + "=" + encodeURIComponent(r) + "$2") : e + i + t + "=" + encodeURIComponent(r);
|
|
3337
3370
|
}
|
|
3338
|
-
function
|
|
3371
|
+
function Li(e, t) {
|
|
3339
3372
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3340
3373
|
return e;
|
|
3341
3374
|
if (t === "master")
|
|
@@ -3354,11 +3387,11 @@ function Wt(e) {
|
|
|
3354
3387
|
if (e.match(/builder\.io/)) {
|
|
3355
3388
|
let r = e;
|
|
3356
3389
|
const n = Number(e.split("?width=")[1]);
|
|
3357
|
-
return isNaN(n) || (r = `${r} ${n}w`), t.filter((i) => i !== n).map((i) => `${
|
|
3390
|
+
return isNaN(n) || (r = `${r} ${n}w`), t.filter((i) => i !== n).map((i) => `${_i(e, "width", i)} ${i}w`).concat([r]).join(", ");
|
|
3358
3391
|
}
|
|
3359
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [
|
|
3392
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [Li(e, `${r}x${r}`), r]).filter(([r]) => !!r).map(([r, n]) => `${r} ${n}w`).concat([e]).join(", ") : e;
|
|
3360
3393
|
}
|
|
3361
|
-
function
|
|
3394
|
+
function $i(e) {
|
|
3362
3395
|
var i, a, s, u;
|
|
3363
3396
|
function t() {
|
|
3364
3397
|
var y;
|
|
@@ -3388,11 +3421,11 @@ function Fi(e) {
|
|
|
3388
3421
|
};
|
|
3389
3422
|
return e.aspectRatio ? d : void 0;
|
|
3390
3423
|
}
|
|
3391
|
-
return /* @__PURE__ */ Z(
|
|
3392
|
-
/* @__PURE__ */ Z(
|
|
3424
|
+
return /* @__PURE__ */ Z(U, { children: [
|
|
3425
|
+
/* @__PURE__ */ Z(U, { children: [
|
|
3393
3426
|
/* @__PURE__ */ Z("picture", { children: [
|
|
3394
|
-
r() ? /* @__PURE__ */
|
|
3395
|
-
/* @__PURE__ */
|
|
3427
|
+
r() ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g("source", { type: "image/webp", srcSet: r() }) }) : null,
|
|
3428
|
+
/* @__PURE__ */ g(
|
|
3396
3429
|
"img",
|
|
3397
3430
|
{
|
|
3398
3431
|
loading: "lazy",
|
|
@@ -3403,33 +3436,33 @@ function Fi(e) {
|
|
|
3403
3436
|
objectFit: e.backgroundSize || "cover",
|
|
3404
3437
|
...n()
|
|
3405
3438
|
},
|
|
3406
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
3439
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-497e0136",
|
|
3407
3440
|
src: e.image,
|
|
3408
3441
|
srcSet: t(),
|
|
3409
3442
|
sizes: e.sizes
|
|
3410
3443
|
}
|
|
3411
3444
|
)
|
|
3412
3445
|
] }),
|
|
3413
|
-
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
3446
|
+
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
3414
3447
|
"div",
|
|
3415
3448
|
{
|
|
3416
|
-
className: "builder-image-sizer div-
|
|
3449
|
+
className: "builder-image-sizer div-497e0136",
|
|
3417
3450
|
style: {
|
|
3418
3451
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
3419
3452
|
}
|
|
3420
3453
|
}
|
|
3421
3454
|
) }) : null,
|
|
3422
|
-
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */
|
|
3423
|
-
!e.fitContent && e.children ? /* @__PURE__ */
|
|
3455
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ g(U, { children: e.children }) : null,
|
|
3456
|
+
!e.fitContent && e.children ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g("div", { className: "div-497e0136-2", children: e.children }) }) : null
|
|
3424
3457
|
] }),
|
|
3425
|
-
/* @__PURE__ */
|
|
3458
|
+
/* @__PURE__ */ g("style", { children: `.img-497e0136 {
|
|
3426
3459
|
opacity: 1;
|
|
3427
3460
|
transition: opacity 0.2s ease-in-out;
|
|
3428
|
-
}.div-
|
|
3461
|
+
}.div-497e0136 {
|
|
3429
3462
|
width: 100%;
|
|
3430
3463
|
pointer-events: none;
|
|
3431
3464
|
font-size: 0;
|
|
3432
|
-
}.div-
|
|
3465
|
+
}.div-497e0136-2 {
|
|
3433
3466
|
display: flex;
|
|
3434
3467
|
flex-direction: column;
|
|
3435
3468
|
align-items: stretch;
|
|
@@ -3441,8 +3474,8 @@ function Fi(e) {
|
|
|
3441
3474
|
}` })
|
|
3442
3475
|
] });
|
|
3443
3476
|
}
|
|
3444
|
-
function
|
|
3445
|
-
return /* @__PURE__ */
|
|
3477
|
+
function Vi(e) {
|
|
3478
|
+
return /* @__PURE__ */ g(
|
|
3446
3479
|
"section",
|
|
3447
3480
|
{
|
|
3448
3481
|
...e.attributes,
|
|
@@ -3466,41 +3499,41 @@ const ut = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((
|
|
|
3466
3499
|
...t,
|
|
3467
3500
|
testVariationId: t.id,
|
|
3468
3501
|
id: e == null ? void 0 : e.id
|
|
3469
|
-
})),
|
|
3502
|
+
})), Di = ({
|
|
3470
3503
|
canTrack: e,
|
|
3471
3504
|
content: t
|
|
3472
|
-
}) => !(!(ut(t).length > 0) || !e ||
|
|
3473
|
-
function
|
|
3505
|
+
}) => !(!(ut(t).length > 0) || !e || Ee());
|
|
3506
|
+
function Wi(e, t, r) {
|
|
3474
3507
|
var s;
|
|
3475
3508
|
function n() {
|
|
3476
|
-
function u(C,
|
|
3477
|
-
let
|
|
3478
|
-
if (
|
|
3509
|
+
function u(C, I, L) {
|
|
3510
|
+
let V = "";
|
|
3511
|
+
if (L) {
|
|
3479
3512
|
const v = /* @__PURE__ */ new Date();
|
|
3480
|
-
v.setTime(v.getTime() +
|
|
3513
|
+
v.setTime(v.getTime() + L * 24 * 60 * 60 * 1e3), V = "; expires=" + v.toUTCString();
|
|
3481
3514
|
}
|
|
3482
|
-
document.cookie = C + "=" + (
|
|
3515
|
+
document.cookie = C + "=" + (I || "") + V + "; path=/; Secure; SameSite=None";
|
|
3483
3516
|
}
|
|
3484
3517
|
function d(C) {
|
|
3485
|
-
const
|
|
3486
|
-
for (let
|
|
3487
|
-
let v =
|
|
3518
|
+
const I = C + "=", L = document.cookie.split(";");
|
|
3519
|
+
for (let V = 0; V < L.length; V++) {
|
|
3520
|
+
let v = L[V];
|
|
3488
3521
|
for (; v.charAt(0) === " "; )
|
|
3489
3522
|
v = v.substring(1, v.length);
|
|
3490
|
-
if (v.indexOf(
|
|
3491
|
-
return v.substring(
|
|
3523
|
+
if (v.indexOf(I) === 0)
|
|
3524
|
+
return v.substring(I.length, v.length);
|
|
3492
3525
|
}
|
|
3493
3526
|
return null;
|
|
3494
3527
|
}
|
|
3495
|
-
const p = `builder.tests.${e}`, y = d(p),
|
|
3496
|
-
if (y &&
|
|
3528
|
+
const p = `builder.tests.${e}`, y = d(p), x = t.map((C) => C.id).concat(e);
|
|
3529
|
+
if (y && x.includes(y))
|
|
3497
3530
|
return y;
|
|
3498
3531
|
let P = 0;
|
|
3499
|
-
const
|
|
3532
|
+
const _ = Math.random();
|
|
3500
3533
|
for (let C = 0; C < t.length; C++) {
|
|
3501
|
-
const
|
|
3502
|
-
if (P +=
|
|
3503
|
-
return u(p,
|
|
3534
|
+
const I = t[C], L = I.testRatio;
|
|
3535
|
+
if (P += L, _ < P)
|
|
3536
|
+
return u(p, I.id), I.id;
|
|
3504
3537
|
}
|
|
3505
3538
|
return u(p, e), e;
|
|
3506
3539
|
}
|
|
@@ -3517,18 +3550,18 @@ function _i(e, t, r) {
|
|
|
3517
3550
|
a.innerHTML = u;
|
|
3518
3551
|
}
|
|
3519
3552
|
}
|
|
3520
|
-
function
|
|
3553
|
+
function Hi(e, t, r) {
|
|
3521
3554
|
var d;
|
|
3522
3555
|
if (!navigator.cookieEnabled)
|
|
3523
3556
|
return;
|
|
3524
3557
|
function n(p) {
|
|
3525
|
-
const y = p + "=",
|
|
3526
|
-
for (let P = 0; P <
|
|
3527
|
-
let
|
|
3528
|
-
for (;
|
|
3529
|
-
|
|
3530
|
-
if (
|
|
3531
|
-
return
|
|
3558
|
+
const y = p + "=", x = document.cookie.split(";");
|
|
3559
|
+
for (let P = 0; P < x.length; P++) {
|
|
3560
|
+
let _ = x[P];
|
|
3561
|
+
for (; _.charAt(0) === " "; )
|
|
3562
|
+
_ = _.substring(1, _.length);
|
|
3563
|
+
if (_.indexOf(y) === 0)
|
|
3564
|
+
return _.substring(y.length, _.length);
|
|
3532
3565
|
}
|
|
3533
3566
|
return null;
|
|
3534
3567
|
}
|
|
@@ -3542,18 +3575,18 @@ function $i(e, t, r) {
|
|
|
3542
3575
|
return;
|
|
3543
3576
|
}
|
|
3544
3577
|
}
|
|
3545
|
-
const
|
|
3546
|
-
const e =
|
|
3578
|
+
const Ki = (e) => e === "react" || e === "reactNative", kr = Ki(tt), Cr = "builderIoAbTest", Er = "builderIoRenderContent", Gi = () => {
|
|
3579
|
+
const e = Wi.toString().replace(/\s+/g, " "), t = Hi.toString().replace(/\s+/g, " ");
|
|
3547
3580
|
return `
|
|
3548
|
-
window.${
|
|
3549
|
-
window.${
|
|
3581
|
+
window.${Cr} = ${e}
|
|
3582
|
+
window.${Er} = ${t}
|
|
3550
3583
|
`;
|
|
3551
|
-
},
|
|
3552
|
-
window.${
|
|
3584
|
+
}, zi = (e, t) => `
|
|
3585
|
+
window.${Cr}("${t}",${JSON.stringify(e)}, ${kr})`, Xi = ({
|
|
3553
3586
|
contentId: e,
|
|
3554
3587
|
variationId: t
|
|
3555
3588
|
}) => `
|
|
3556
|
-
window.${
|
|
3589
|
+
window.${Er}("${t}", "${e}", ${kr})`, Ji = {
|
|
3557
3590
|
name: "Core:Button",
|
|
3558
3591
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3559
3592
|
defaultStyles: {
|
|
@@ -3586,7 +3619,7 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(et), wr = "build
|
|
|
3586
3619
|
}],
|
|
3587
3620
|
static: !0,
|
|
3588
3621
|
noWrap: !0
|
|
3589
|
-
},
|
|
3622
|
+
}, Yi = {
|
|
3590
3623
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3591
3624
|
name: "Columns",
|
|
3592
3625
|
isRSC: !0,
|
|
@@ -3787,13 +3820,13 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(et), wr = "build
|
|
|
3787
3820
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3788
3821
|
advanced: !0
|
|
3789
3822
|
}]
|
|
3790
|
-
},
|
|
3823
|
+
}, qi = {
|
|
3791
3824
|
name: "Fragment",
|
|
3792
3825
|
static: !0,
|
|
3793
3826
|
hidden: !0,
|
|
3794
3827
|
canHaveChildren: !0,
|
|
3795
3828
|
noWrap: !0
|
|
3796
|
-
},
|
|
3829
|
+
}, Zi = {
|
|
3797
3830
|
name: "Image",
|
|
3798
3831
|
static: !0,
|
|
3799
3832
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -3816,13 +3849,13 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(et), wr = "build
|
|
|
3816
3849
|
function r(s, u = 6e4) {
|
|
3817
3850
|
return new Promise((d, p) => {
|
|
3818
3851
|
const y = document.createElement("img");
|
|
3819
|
-
let
|
|
3852
|
+
let x = !1;
|
|
3820
3853
|
y.onload = () => {
|
|
3821
|
-
|
|
3854
|
+
x = !0, d(y);
|
|
3822
3855
|
}, y.addEventListener("error", (P) => {
|
|
3823
3856
|
console.warn("Image load failed", P.error), p(P.error);
|
|
3824
3857
|
}), y.src = s, setTimeout(() => {
|
|
3825
|
-
|
|
3858
|
+
x || p(new Error("Image load timed out"));
|
|
3826
3859
|
}, u);
|
|
3827
3860
|
});
|
|
3828
3861
|
}
|
|
@@ -3893,7 +3926,7 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(et), wr = "build
|
|
|
3893
3926
|
advanced: !0,
|
|
3894
3927
|
defaultValue: 0.7041
|
|
3895
3928
|
}]
|
|
3896
|
-
},
|
|
3929
|
+
}, Qi = {
|
|
3897
3930
|
name: "Core:Section",
|
|
3898
3931
|
static: !0,
|
|
3899
3932
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3932,7 +3965,7 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(et), wr = "build
|
|
|
3932
3965
|
}
|
|
3933
3966
|
}
|
|
3934
3967
|
}]
|
|
3935
|
-
},
|
|
3968
|
+
}, eo = {
|
|
3936
3969
|
name: "Symbol",
|
|
3937
3970
|
noWrap: !0,
|
|
3938
3971
|
static: !0,
|
|
@@ -3965,7 +3998,7 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(et), wr = "build
|
|
|
3965
3998
|
hideFromUI: !0,
|
|
3966
3999
|
type: "boolean"
|
|
3967
4000
|
}]
|
|
3968
|
-
},
|
|
4001
|
+
}, to = {
|
|
3969
4002
|
name: "Text",
|
|
3970
4003
|
static: !0,
|
|
3971
4004
|
isRSC: !0,
|
|
@@ -3984,9 +4017,9 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(et), wr = "build
|
|
|
3984
4017
|
textAlign: "center"
|
|
3985
4018
|
}
|
|
3986
4019
|
};
|
|
3987
|
-
function
|
|
4020
|
+
function no(e) {
|
|
3988
4021
|
var t;
|
|
3989
|
-
return /* @__PURE__ */
|
|
4022
|
+
return /* @__PURE__ */ g(
|
|
3990
4023
|
"div",
|
|
3991
4024
|
{
|
|
3992
4025
|
className: "builder-text",
|
|
@@ -3997,7 +4030,7 @@ function qi(e) {
|
|
|
3997
4030
|
}
|
|
3998
4031
|
);
|
|
3999
4032
|
}
|
|
4000
|
-
const
|
|
4033
|
+
const ro = {
|
|
4001
4034
|
name: "Video",
|
|
4002
4035
|
canHaveChildren: !0,
|
|
4003
4036
|
defaultStyles: {
|
|
@@ -4079,7 +4112,7 @@ const Zi = {
|
|
|
4079
4112
|
advanced: !0
|
|
4080
4113
|
}]
|
|
4081
4114
|
};
|
|
4082
|
-
function
|
|
4115
|
+
function io(e) {
|
|
4083
4116
|
var n;
|
|
4084
4117
|
function t() {
|
|
4085
4118
|
return {
|
|
@@ -4106,7 +4139,7 @@ function Qi(e) {
|
|
|
4106
4139
|
...t()
|
|
4107
4140
|
};
|
|
4108
4141
|
}
|
|
4109
|
-
return /* @__PURE__ */
|
|
4142
|
+
return /* @__PURE__ */ g(
|
|
4110
4143
|
"video",
|
|
4111
4144
|
{
|
|
4112
4145
|
...r(),
|
|
@@ -4126,7 +4159,7 @@ function Qi(e) {
|
|
|
4126
4159
|
}
|
|
4127
4160
|
);
|
|
4128
4161
|
}
|
|
4129
|
-
const
|
|
4162
|
+
const oo = {
|
|
4130
4163
|
name: "Embed",
|
|
4131
4164
|
static: !0,
|
|
4132
4165
|
inputs: [{
|
|
@@ -4151,30 +4184,30 @@ const eo = {
|
|
|
4151
4184
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4152
4185
|
hideFromUI: !0
|
|
4153
4186
|
}]
|
|
4154
|
-
},
|
|
4155
|
-
function
|
|
4156
|
-
const t = Yt(null), [r, n] =
|
|
4187
|
+
}, ao = ["text/javascript", "application/javascript", "application/ecmascript"], so = (e) => ao.includes(e.type);
|
|
4188
|
+
function lo(e) {
|
|
4189
|
+
const t = Yt(null), [r, n] = H(() => []), [i, a] = H(() => []), [s, u] = H(() => !1);
|
|
4157
4190
|
function d() {
|
|
4158
4191
|
if (!t.current || !t.current.getElementsByTagName)
|
|
4159
4192
|
return;
|
|
4160
4193
|
const p = t.current.getElementsByTagName("script");
|
|
4161
4194
|
for (let y = 0; y < p.length; y++) {
|
|
4162
|
-
const
|
|
4163
|
-
if (
|
|
4164
|
-
r.push(
|
|
4195
|
+
const x = p[y];
|
|
4196
|
+
if (x.src && !r.includes(x.src)) {
|
|
4197
|
+
r.push(x.src);
|
|
4165
4198
|
const P = document.createElement("script");
|
|
4166
|
-
P.async = !0, P.src =
|
|
4167
|
-
} else if (
|
|
4199
|
+
P.async = !0, P.src = x.src, document.head.appendChild(P);
|
|
4200
|
+
} else if (so(x) && !i.includes(x.innerText))
|
|
4168
4201
|
try {
|
|
4169
|
-
i.push(
|
|
4202
|
+
i.push(x.innerText), new Function(x.innerText)();
|
|
4170
4203
|
} catch (P) {
|
|
4171
4204
|
console.warn("`Embed`: Error running script:", P);
|
|
4172
4205
|
}
|
|
4173
4206
|
}
|
|
4174
4207
|
}
|
|
4175
|
-
return
|
|
4208
|
+
return Q(() => {
|
|
4176
4209
|
t.current && !s && (u(!0), d());
|
|
4177
|
-
}, [t.current, s]), /* @__PURE__ */
|
|
4210
|
+
}, [t.current, s]), /* @__PURE__ */ g(
|
|
4178
4211
|
"div",
|
|
4179
4212
|
{
|
|
4180
4213
|
className: "builder-embed",
|
|
@@ -4183,8 +4216,8 @@ function ro(e) {
|
|
|
4183
4216
|
}
|
|
4184
4217
|
);
|
|
4185
4218
|
}
|
|
4186
|
-
function
|
|
4187
|
-
return /* @__PURE__ */
|
|
4219
|
+
function co(e) {
|
|
4220
|
+
return /* @__PURE__ */ g(
|
|
4188
4221
|
"img",
|
|
4189
4222
|
{
|
|
4190
4223
|
style: {
|
|
@@ -4195,10 +4228,10 @@ function io(e) {
|
|
|
4195
4228
|
src: e.imgSrc || e.image,
|
|
4196
4229
|
...e.attributes
|
|
4197
4230
|
},
|
|
4198
|
-
|
|
4231
|
+
Ce() && e.imgSrc || "default-key"
|
|
4199
4232
|
);
|
|
4200
4233
|
}
|
|
4201
|
-
const
|
|
4234
|
+
const uo = {
|
|
4202
4235
|
// friendlyName?
|
|
4203
4236
|
name: "Raw:Img",
|
|
4204
4237
|
hideFromInsertMenu: !0,
|
|
@@ -4213,38 +4246,36 @@ const oo = {
|
|
|
4213
4246
|
noWrap: !0,
|
|
4214
4247
|
static: !0
|
|
4215
4248
|
};
|
|
4216
|
-
function
|
|
4217
|
-
const t = Yt(null), [r, n] =
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4249
|
+
function fo(e) {
|
|
4250
|
+
const t = Yt(null), [r, n] = H(() => []), [i, a] = H(() => []);
|
|
4251
|
+
return Q(() => {
|
|
4252
|
+
var u;
|
|
4253
|
+
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window > "u")
|
|
4254
|
+
return;
|
|
4255
|
+
const s = t.current.getElementsByTagName("script");
|
|
4256
|
+
for (let d = 0; d < s.length; d++) {
|
|
4257
|
+
const p = s[d];
|
|
4258
|
+
if (p.src) {
|
|
4259
|
+
if (r.includes(p.src))
|
|
4260
|
+
continue;
|
|
4261
|
+
r.push(p.src);
|
|
4262
|
+
const y = document.createElement("script");
|
|
4263
|
+
y.async = !0, y.src = p.src, document.head.appendChild(y);
|
|
4264
|
+
} else if (!p.type || [
|
|
4265
|
+
"text/javascript",
|
|
4266
|
+
"application/javascript",
|
|
4267
|
+
"application/ecmascript"
|
|
4268
|
+
].includes(p.type)) {
|
|
4269
|
+
if (i.includes(p.innerText))
|
|
4270
|
+
continue;
|
|
4271
|
+
try {
|
|
4272
|
+
i.push(p.innerText), new Function(p.innerText)();
|
|
4273
|
+
} catch (y) {
|
|
4274
|
+
console.warn("`CustomCode`: Error running script:", y);
|
|
4241
4275
|
}
|
|
4242
4276
|
}
|
|
4243
4277
|
}
|
|
4244
|
-
}
|
|
4245
|
-
return ae(() => {
|
|
4246
|
-
s();
|
|
4247
|
-
}, []), /* @__PURE__ */ m(
|
|
4278
|
+
}, []), /* @__PURE__ */ g(
|
|
4248
4279
|
"div",
|
|
4249
4280
|
{
|
|
4250
4281
|
ref: t,
|
|
@@ -4253,7 +4284,7 @@ function ao(e) {
|
|
|
4253
4284
|
}
|
|
4254
4285
|
);
|
|
4255
4286
|
}
|
|
4256
|
-
const
|
|
4287
|
+
const ho = {
|
|
4257
4288
|
name: "Custom Code",
|
|
4258
4289
|
static: !0,
|
|
4259
4290
|
requiredPermissions: ["editCode"],
|
|
@@ -4276,39 +4307,39 @@ const so = {
|
|
|
4276
4307
|
advanced: !0
|
|
4277
4308
|
}]
|
|
4278
4309
|
}, ir = () => [{
|
|
4279
|
-
component:
|
|
4280
|
-
...
|
|
4310
|
+
component: Jr,
|
|
4311
|
+
...Ji
|
|
4281
4312
|
}, {
|
|
4282
|
-
component:
|
|
4283
|
-
...
|
|
4313
|
+
component: Ui,
|
|
4314
|
+
...Yi
|
|
4284
4315
|
}, {
|
|
4285
|
-
component:
|
|
4286
|
-
...
|
|
4316
|
+
component: fo,
|
|
4317
|
+
...ho
|
|
4287
4318
|
}, {
|
|
4288
|
-
component:
|
|
4289
|
-
...
|
|
4319
|
+
component: lo,
|
|
4320
|
+
...oo
|
|
4290
4321
|
}, {
|
|
4291
|
-
component:
|
|
4292
|
-
...
|
|
4322
|
+
component: Bi,
|
|
4323
|
+
...qi
|
|
4293
4324
|
}, {
|
|
4294
|
-
component:
|
|
4295
|
-
...
|
|
4325
|
+
component: $i,
|
|
4326
|
+
...Zi
|
|
4296
4327
|
}, {
|
|
4297
|
-
component:
|
|
4298
|
-
...
|
|
4328
|
+
component: co,
|
|
4329
|
+
...uo
|
|
4299
4330
|
}, {
|
|
4300
|
-
component:
|
|
4301
|
-
...
|
|
4331
|
+
component: Vi,
|
|
4332
|
+
...Qi
|
|
4302
4333
|
}, {
|
|
4303
|
-
component:
|
|
4304
|
-
...
|
|
4334
|
+
component: jo,
|
|
4335
|
+
...eo
|
|
4305
4336
|
}, {
|
|
4306
|
-
component:
|
|
4307
|
-
...
|
|
4337
|
+
component: no,
|
|
4338
|
+
...to
|
|
4308
4339
|
}, {
|
|
4309
|
-
component:
|
|
4310
|
-
...
|
|
4311
|
-
}],
|
|
4340
|
+
component: io,
|
|
4341
|
+
...ro
|
|
4342
|
+
}], po = (e) => {
|
|
4312
4343
|
var a;
|
|
4313
4344
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], n = e.fileUrl ?? ((a = e == null ? void 0 : e.files) == null ? void 0 : a.regular);
|
|
4314
4345
|
let i = "";
|
|
@@ -4334,23 +4365,23 @@ font-weight: ${s};
|
|
|
4334
4365
|
`.trim());
|
|
4335
4366
|
}
|
|
4336
4367
|
return i;
|
|
4337
|
-
},
|
|
4368
|
+
}, mo = ({
|
|
4338
4369
|
customFonts: e
|
|
4339
4370
|
}) => {
|
|
4340
4371
|
var t;
|
|
4341
|
-
return ((t = e == null ? void 0 : e.map((r) =>
|
|
4342
|
-
},
|
|
4372
|
+
return ((t = e == null ? void 0 : e.map((r) => po(r))) == null ? void 0 : t.join(" ")) || "";
|
|
4373
|
+
}, go = ({
|
|
4343
4374
|
cssCode: e,
|
|
4344
4375
|
contentId: t
|
|
4345
4376
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4346
|
-
function
|
|
4347
|
-
const [t, r] =
|
|
4377
|
+
function yo(e) {
|
|
4378
|
+
const [t, r] = H(
|
|
4348
4379
|
() => `
|
|
4349
|
-
${
|
|
4380
|
+
${go({
|
|
4350
4381
|
cssCode: e.cssCode,
|
|
4351
4382
|
contentId: e.contentId
|
|
4352
4383
|
})}
|
|
4353
|
-
${
|
|
4384
|
+
${mo({
|
|
4354
4385
|
customFonts: e.customFonts
|
|
4355
4386
|
})}
|
|
4356
4387
|
|
|
@@ -4368,9 +4399,9 @@ ${co({
|
|
|
4368
4399
|
}
|
|
4369
4400
|
`.trim()
|
|
4370
4401
|
);
|
|
4371
|
-
return /* @__PURE__ */
|
|
4402
|
+
return /* @__PURE__ */ g(gt, { styles: t });
|
|
4372
4403
|
}
|
|
4373
|
-
const
|
|
4404
|
+
const vo = ({
|
|
4374
4405
|
content: e,
|
|
4375
4406
|
data: t,
|
|
4376
4407
|
locale: r
|
|
@@ -4392,7 +4423,7 @@ const ho = ({
|
|
|
4392
4423
|
...n,
|
|
4393
4424
|
...i
|
|
4394
4425
|
};
|
|
4395
|
-
},
|
|
4426
|
+
}, xo = ({
|
|
4396
4427
|
content: e,
|
|
4397
4428
|
data: t
|
|
4398
4429
|
}) => e ? {
|
|
@@ -4402,8 +4433,8 @@ const ho = ({
|
|
|
4402
4433
|
...t
|
|
4403
4434
|
},
|
|
4404
4435
|
meta: e == null ? void 0 : e.meta
|
|
4405
|
-
} : void 0,
|
|
4406
|
-
|
|
4436
|
+
} : void 0, bo = "0.7.1-0", So = () => {
|
|
4437
|
+
Hr("insertMenu", {
|
|
4407
4438
|
name: "_default",
|
|
4408
4439
|
default: !0,
|
|
4409
4440
|
items: [{
|
|
@@ -4426,13 +4457,13 @@ const ho = ({
|
|
|
4426
4457
|
});
|
|
4427
4458
|
};
|
|
4428
4459
|
let or = !1;
|
|
4429
|
-
const
|
|
4460
|
+
const wo = (e = {}) => {
|
|
4430
4461
|
var t, r;
|
|
4431
|
-
or || (or = !0,
|
|
4462
|
+
or || (or = !0, Ee() && ((t = window.parent) == null || t.postMessage({
|
|
4432
4463
|
type: "builder.sdkInfo",
|
|
4433
4464
|
data: {
|
|
4434
|
-
target:
|
|
4435
|
-
version:
|
|
4465
|
+
target: tt,
|
|
4466
|
+
version: bo,
|
|
4436
4467
|
supportsPatchUpdates: !1,
|
|
4437
4468
|
// Supports builder-model="..." attribute which is needed to
|
|
4438
4469
|
// scope our '+ add block' button styling
|
|
@@ -4452,21 +4483,21 @@ const yo = (e = {}) => {
|
|
|
4452
4483
|
switch (n.type) {
|
|
4453
4484
|
case "builder.evaluate": {
|
|
4454
4485
|
const s = n.data.text, u = n.data.arguments || [], d = n.data.id, p = new Function(s);
|
|
4455
|
-
let y,
|
|
4486
|
+
let y, x = null;
|
|
4456
4487
|
try {
|
|
4457
4488
|
y = p.apply(null, u);
|
|
4458
4489
|
} catch (P) {
|
|
4459
|
-
|
|
4490
|
+
x = P;
|
|
4460
4491
|
}
|
|
4461
|
-
|
|
4492
|
+
x ? (i = window.parent) == null || i.postMessage({
|
|
4462
4493
|
type: "builder.evaluateError",
|
|
4463
4494
|
data: {
|
|
4464
4495
|
id: d,
|
|
4465
|
-
error:
|
|
4496
|
+
error: x.message
|
|
4466
4497
|
}
|
|
4467
4498
|
}, "*") : y && typeof y.then == "function" ? y.then((P) => {
|
|
4468
|
-
var
|
|
4469
|
-
(
|
|
4499
|
+
var _;
|
|
4500
|
+
(_ = window.parent) == null || _.postMessage({
|
|
4470
4501
|
type: "builder.evaluateResult",
|
|
4471
4502
|
data: {
|
|
4472
4503
|
id: d,
|
|
@@ -4488,7 +4519,7 @@ const yo = (e = {}) => {
|
|
|
4488
4519
|
function ar(e) {
|
|
4489
4520
|
return Math.round(e * 1e3) / 1e3;
|
|
4490
4521
|
}
|
|
4491
|
-
const
|
|
4522
|
+
const ko = (e, t, r = !0) => {
|
|
4492
4523
|
if (!(e instanceof HTMLElement))
|
|
4493
4524
|
return null;
|
|
4494
4525
|
let n = r ? e : e.parentElement;
|
|
@@ -4499,7 +4530,7 @@ const vo = (e, t, r = !0) => {
|
|
|
4499
4530
|
return n;
|
|
4500
4531
|
} while (n = n.parentElement);
|
|
4501
4532
|
return null;
|
|
4502
|
-
},
|
|
4533
|
+
}, Co = (e) => ko(e, (t) => {
|
|
4503
4534
|
const r = t.getAttribute("builder-id") || t.id;
|
|
4504
4535
|
return (r == null ? void 0 : r.indexOf("builder-")) === 0;
|
|
4505
4536
|
}), sr = ({
|
|
@@ -4511,8 +4542,8 @@ const vo = (e, t, r = !0) => {
|
|
|
4511
4542
|
x: a,
|
|
4512
4543
|
y: s
|
|
4513
4544
|
};
|
|
4514
|
-
},
|
|
4515
|
-
const t = e.target, r = t &&
|
|
4545
|
+
}, Eo = (e) => {
|
|
4546
|
+
const t = e.target, r = t && Co(t), n = (r == null ? void 0 : r.getAttribute("builder-id")) || (r == null ? void 0 : r.id);
|
|
4516
4547
|
return {
|
|
4517
4548
|
targetBuilderElement: n || void 0,
|
|
4518
4549
|
metadata: {
|
|
@@ -4528,89 +4559,89 @@ const vo = (e, t, r = !0) => {
|
|
|
4528
4559
|
}
|
|
4529
4560
|
};
|
|
4530
4561
|
};
|
|
4531
|
-
function
|
|
4532
|
-
var
|
|
4533
|
-
const t = Yt(null), [r, n] =
|
|
4534
|
-
function i(
|
|
4535
|
-
var
|
|
4536
|
-
const
|
|
4562
|
+
function Io(e) {
|
|
4563
|
+
var ae, se, W, ee, T;
|
|
4564
|
+
const t = Yt(null), [r, n] = H(() => 0);
|
|
4565
|
+
function i(O) {
|
|
4566
|
+
var B, M, j, D, Se;
|
|
4567
|
+
const b = {
|
|
4537
4568
|
...e.builderContextSignal.content,
|
|
4538
|
-
...
|
|
4569
|
+
...O,
|
|
4539
4570
|
data: {
|
|
4540
|
-
...(
|
|
4541
|
-
...
|
|
4571
|
+
...(B = e.builderContextSignal.content) == null ? void 0 : B.data,
|
|
4572
|
+
...O == null ? void 0 : O.data
|
|
4542
4573
|
},
|
|
4543
4574
|
meta: {
|
|
4544
|
-
...(
|
|
4545
|
-
...
|
|
4546
|
-
breakpoints: ((
|
|
4575
|
+
...(M = e.builderContextSignal.content) == null ? void 0 : M.meta,
|
|
4576
|
+
...O == null ? void 0 : O.meta,
|
|
4577
|
+
breakpoints: ((j = O == null ? void 0 : O.meta) == null ? void 0 : j.breakpoints) || ((Se = (D = e.builderContextSignal.content) == null ? void 0 : D.meta) == null ? void 0 : Se.breakpoints)
|
|
4547
4578
|
}
|
|
4548
4579
|
};
|
|
4549
|
-
e.setBuilderContextSignal((
|
|
4550
|
-
...
|
|
4551
|
-
content:
|
|
4580
|
+
e.setBuilderContextSignal((ie) => ({
|
|
4581
|
+
...ie,
|
|
4582
|
+
content: b
|
|
4552
4583
|
}));
|
|
4553
4584
|
}
|
|
4554
|
-
|
|
4555
|
-
const [a, s] =
|
|
4585
|
+
H(() => 0);
|
|
4586
|
+
const [a, s] = H(
|
|
4556
4587
|
() => !1
|
|
4557
4588
|
);
|
|
4558
|
-
function u(
|
|
4559
|
-
var
|
|
4560
|
-
const { data:
|
|
4561
|
-
if (
|
|
4562
|
-
switch (
|
|
4589
|
+
function u(O) {
|
|
4590
|
+
var B;
|
|
4591
|
+
const { data: b } = O;
|
|
4592
|
+
if (b)
|
|
4593
|
+
switch (b.type) {
|
|
4563
4594
|
case "builder.configureSdk": {
|
|
4564
|
-
const
|
|
4565
|
-
if (!
|
|
4595
|
+
const M = b.data, { breakpoints: j, contentId: D } = M;
|
|
4596
|
+
if (!D || D !== ((B = e.builderContextSignal.content) == null ? void 0 : B.id))
|
|
4566
4597
|
return;
|
|
4567
|
-
|
|
4598
|
+
j && i({
|
|
4568
4599
|
meta: {
|
|
4569
|
-
breakpoints:
|
|
4600
|
+
breakpoints: j
|
|
4570
4601
|
}
|
|
4571
4602
|
}), n(r + 1);
|
|
4572
4603
|
break;
|
|
4573
4604
|
}
|
|
4574
4605
|
case "builder.contentUpdate": {
|
|
4575
|
-
const
|
|
4576
|
-
|
|
4606
|
+
const M = b.data, j = M.key || M.alias || M.entry || M.modelName, D = M.data;
|
|
4607
|
+
j === e.model && (i(D), n(r + 1));
|
|
4577
4608
|
break;
|
|
4578
4609
|
}
|
|
4579
4610
|
}
|
|
4580
4611
|
}
|
|
4581
4612
|
function d() {
|
|
4582
|
-
var
|
|
4583
|
-
const
|
|
4584
|
-
|
|
4585
|
-
code:
|
|
4613
|
+
var b, B;
|
|
4614
|
+
const O = (B = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : B.jsCode;
|
|
4615
|
+
O && et({
|
|
4616
|
+
code: O,
|
|
4586
4617
|
context: e.context || {},
|
|
4587
4618
|
localState: void 0,
|
|
4588
4619
|
rootState: e.builderContextSignal.rootState,
|
|
4589
4620
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4590
4621
|
});
|
|
4591
4622
|
}
|
|
4592
|
-
const [p, y] =
|
|
4593
|
-
function
|
|
4594
|
-
var
|
|
4623
|
+
const [p, y] = H(() => ({})), [x, P] = H(() => !1);
|
|
4624
|
+
function _(O) {
|
|
4625
|
+
var b, B;
|
|
4595
4626
|
if (e.builderContextSignal.content) {
|
|
4596
|
-
const
|
|
4627
|
+
const M = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, j = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
|
|
4597
4628
|
Kn({
|
|
4598
4629
|
type: "click",
|
|
4599
4630
|
canTrack: ft(e.canTrack),
|
|
4600
|
-
contentId:
|
|
4631
|
+
contentId: j,
|
|
4601
4632
|
apiKey: e.apiKey,
|
|
4602
|
-
variationId:
|
|
4603
|
-
...
|
|
4604
|
-
unique: !
|
|
4633
|
+
variationId: M !== j ? M : void 0,
|
|
4634
|
+
...Eo(O),
|
|
4635
|
+
unique: !x
|
|
4605
4636
|
});
|
|
4606
4637
|
}
|
|
4607
|
-
|
|
4638
|
+
x || P(!0);
|
|
4608
4639
|
}
|
|
4609
|
-
function C(
|
|
4610
|
-
return
|
|
4640
|
+
function C(O) {
|
|
4641
|
+
return O.replace(
|
|
4611
4642
|
/{{([^}]+)}}/g,
|
|
4612
|
-
(
|
|
4613
|
-
code:
|
|
4643
|
+
(b, B) => et({
|
|
4644
|
+
code: B,
|
|
4614
4645
|
context: e.context || {},
|
|
4615
4646
|
localState: void 0,
|
|
4616
4647
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4618,33 +4649,33 @@ function So(e) {
|
|
|
4618
4649
|
})
|
|
4619
4650
|
);
|
|
4620
4651
|
}
|
|
4621
|
-
function
|
|
4622
|
-
|
|
4623
|
-
var
|
|
4624
|
-
const
|
|
4652
|
+
function I({ url: O, key: b }) {
|
|
4653
|
+
zr(O).then((B) => B.json()).then((B) => {
|
|
4654
|
+
var j, D;
|
|
4655
|
+
const M = {
|
|
4625
4656
|
...e.builderContextSignal.rootState,
|
|
4626
|
-
[
|
|
4657
|
+
[b]: B
|
|
4627
4658
|
};
|
|
4628
|
-
(
|
|
4629
|
-
}).catch((
|
|
4630
|
-
console.error("error fetching dynamic data",
|
|
4659
|
+
(D = (j = e.builderContextSignal).rootSetState) == null || D.call(j, M), p[b] = !0;
|
|
4660
|
+
}).catch((B) => {
|
|
4661
|
+
console.error("error fetching dynamic data", O, B);
|
|
4631
4662
|
});
|
|
4632
4663
|
}
|
|
4633
|
-
function
|
|
4634
|
-
var
|
|
4635
|
-
const
|
|
4636
|
-
Object.entries(
|
|
4637
|
-
if (
|
|
4638
|
-
const
|
|
4639
|
-
|
|
4640
|
-
url:
|
|
4641
|
-
key:
|
|
4664
|
+
function L() {
|
|
4665
|
+
var b, B;
|
|
4666
|
+
const O = ((B = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : B.httpRequests) ?? {};
|
|
4667
|
+
Object.entries(O).forEach(([M, j]) => {
|
|
4668
|
+
if (j && (!p[M] || Ce())) {
|
|
4669
|
+
const D = C(j);
|
|
4670
|
+
I({
|
|
4671
|
+
url: D,
|
|
4672
|
+
key: M
|
|
4642
4673
|
});
|
|
4643
4674
|
}
|
|
4644
4675
|
});
|
|
4645
4676
|
}
|
|
4646
|
-
function
|
|
4647
|
-
|
|
4677
|
+
function V() {
|
|
4678
|
+
Ce() && window.dispatchEvent(
|
|
4648
4679
|
new CustomEvent(
|
|
4649
4680
|
"builder:component:stateChange",
|
|
4650
4681
|
{
|
|
@@ -4658,90 +4689,119 @@ function So(e) {
|
|
|
4658
4689
|
)
|
|
4659
4690
|
);
|
|
4660
4691
|
}
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4692
|
+
function v(O) {
|
|
4693
|
+
n(r + 1), window.addEventListener("message", u), So(), wo({
|
|
4694
|
+
...e.locale ? {
|
|
4695
|
+
locale: e.locale
|
|
4696
|
+
} : {},
|
|
4697
|
+
...e.includeRefs ? {
|
|
4698
|
+
includeRefs: e.includeRefs
|
|
4699
|
+
} : {},
|
|
4700
|
+
...e.enrich ? {
|
|
4701
|
+
enrich: e.enrich
|
|
4702
|
+
} : {}
|
|
4703
|
+
}), Object.values(
|
|
4704
|
+
e.builderContextSignal.componentInfos
|
|
4705
|
+
).forEach((b) => {
|
|
4706
|
+
var M;
|
|
4707
|
+
const B = Gr(b);
|
|
4708
|
+
(M = window.parent) == null || M.postMessage(B, "*");
|
|
4709
|
+
}), window.addEventListener(
|
|
4710
|
+
"builder:component:stateChangeListenerActivated",
|
|
4711
|
+
V
|
|
4712
|
+
);
|
|
4713
|
+
}
|
|
4714
|
+
function K(O) {
|
|
4715
|
+
const b = new URL(location.href).searchParams, B = b.get("builder.preview"), M = b.get(
|
|
4716
|
+
`builder.preview.${B}`
|
|
4717
|
+
), j = b.get("apiKey") || b.get("builder.space");
|
|
4718
|
+
B === e.model && j === e.apiKey && (!e.content || M === e.content.id) && fr({
|
|
4719
|
+
model: e.model,
|
|
4720
|
+
apiKey: e.apiKey,
|
|
4721
|
+
apiVersion: e.builderContextSignal.apiVersion
|
|
4722
|
+
}).then((D) => {
|
|
4723
|
+
D && i(D);
|
|
4724
|
+
});
|
|
4725
|
+
}
|
|
4726
|
+
return Q(() => {
|
|
4727
|
+
var O;
|
|
4728
|
+
return (O = t.current) == null || O.addEventListener(
|
|
4729
|
+
"initeditingbldr",
|
|
4730
|
+
v
|
|
4731
|
+
), () => {
|
|
4732
|
+
var b;
|
|
4733
|
+
return (b = t.current) == null ? void 0 : b.removeEventListener(
|
|
4734
|
+
"initeditingbldr",
|
|
4735
|
+
v
|
|
4736
|
+
);
|
|
4737
|
+
};
|
|
4738
|
+
}, []), Q(() => {
|
|
4739
|
+
var O;
|
|
4740
|
+
return (O = t.current) == null || O.addEventListener(
|
|
4741
|
+
"initpreviewingbldr",
|
|
4742
|
+
K
|
|
4743
|
+
), () => {
|
|
4744
|
+
var b;
|
|
4745
|
+
return (b = t.current) == null ? void 0 : b.removeEventListener(
|
|
4746
|
+
"initpreviewingbldr",
|
|
4747
|
+
K
|
|
4748
|
+
);
|
|
4749
|
+
};
|
|
4750
|
+
}, []), Q(() => {
|
|
4751
|
+
var O, b;
|
|
4752
|
+
if (Ee()) {
|
|
4753
|
+
if (Ce() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && ft(e.canTrack)) {
|
|
4754
|
+
const M = (O = e.builderContextSignal.content) == null ? void 0 : O.testVariationId, j = (b = e.builderContextSignal.content) == null ? void 0 : b.id, D = e.apiKey;
|
|
4687
4755
|
Kn({
|
|
4688
4756
|
type: "impression",
|
|
4689
|
-
canTrack:
|
|
4690
|
-
contentId:
|
|
4691
|
-
apiKey:
|
|
4692
|
-
variationId:
|
|
4757
|
+
canTrack: !0,
|
|
4758
|
+
contentId: j,
|
|
4759
|
+
apiKey: D,
|
|
4760
|
+
variationId: M !== j ? M : void 0
|
|
4693
4761
|
});
|
|
4694
4762
|
}
|
|
4695
|
-
|
|
4696
|
-
const N = new URL(location.href).searchParams, E = N.get("builder.preview"), L = N.get(
|
|
4697
|
-
`builder.preview.${E}`
|
|
4698
|
-
), K = N.get("apiKey") || N.get("builder.space");
|
|
4699
|
-
E === e.model && K === e.apiKey && (!e.content || L === e.content.id) && ur({
|
|
4700
|
-
model: e.model,
|
|
4701
|
-
apiKey: e.apiKey,
|
|
4702
|
-
apiVersion: e.builderContextSignal.apiVersion
|
|
4703
|
-
}).then((V) => {
|
|
4704
|
-
V && i(V);
|
|
4705
|
-
});
|
|
4706
|
-
}
|
|
4707
|
-
d(), B(), $();
|
|
4763
|
+
Kr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
4708
4764
|
}
|
|
4709
|
-
}, []),
|
|
4765
|
+
}, []), Q(() => {
|
|
4766
|
+
e.apiKey || Pe.error(
|
|
4767
|
+
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4768
|
+
), d(), L(), V();
|
|
4769
|
+
}, []), Q(() => {
|
|
4710
4770
|
e.content && i(e.content);
|
|
4711
|
-
}, [e.content]),
|
|
4712
|
-
}, [a]),
|
|
4771
|
+
}, [e.content]), Q(() => {
|
|
4772
|
+
}, [a]), Q(() => {
|
|
4713
4773
|
d();
|
|
4714
4774
|
}, [
|
|
4715
|
-
(
|
|
4775
|
+
(se = (ae = e.builderContextSignal.content) == null ? void 0 : ae.data) == null ? void 0 : se.jsCode,
|
|
4716
4776
|
e.builderContextSignal.rootState
|
|
4717
|
-
]),
|
|
4718
|
-
|
|
4719
|
-
}, [(
|
|
4720
|
-
|
|
4721
|
-
}, [e.builderContextSignal.rootState]),
|
|
4722
|
-
|
|
4777
|
+
]), Q(() => {
|
|
4778
|
+
L();
|
|
4779
|
+
}, [(ee = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : ee.httpRequests]), Q(() => {
|
|
4780
|
+
V();
|
|
4781
|
+
}, [e.builderContextSignal.rootState]), Q(() => () => {
|
|
4782
|
+
Ee() && (window.removeEventListener("message", u), window.removeEventListener(
|
|
4723
4783
|
"builder:component:stateChangeListenerActivated",
|
|
4724
|
-
|
|
4784
|
+
V
|
|
4725
4785
|
));
|
|
4726
|
-
}, []), /* @__PURE__ */
|
|
4786
|
+
}, []), /* @__PURE__ */ g(fn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ ur(
|
|
4727
4787
|
"div",
|
|
4728
4788
|
{
|
|
4789
|
+
key: r,
|
|
4729
4790
|
ref: t,
|
|
4730
|
-
onClick: (
|
|
4731
|
-
"builder-content-id": (
|
|
4791
|
+
onClick: (O) => _(O),
|
|
4792
|
+
"builder-content-id": (T = e.builderContextSignal.content) == null ? void 0 : T.id,
|
|
4732
4793
|
"builder-model": e.model,
|
|
4733
4794
|
...e.showContent ? {} : {
|
|
4734
4795
|
hidden: !0,
|
|
4735
4796
|
"aria-hidden": !0
|
|
4736
4797
|
},
|
|
4737
|
-
className: e.classNameProp
|
|
4738
|
-
children: e.children
|
|
4798
|
+
className: e.classNameProp
|
|
4739
4799
|
},
|
|
4740
|
-
|
|
4800
|
+
e.children
|
|
4741
4801
|
) }) : null });
|
|
4742
4802
|
}
|
|
4743
4803
|
function Jt(e) {
|
|
4744
|
-
return /* @__PURE__ */
|
|
4804
|
+
return /* @__PURE__ */ g(
|
|
4745
4805
|
"script",
|
|
4746
4806
|
{
|
|
4747
4807
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -4750,25 +4810,25 @@ function Jt(e) {
|
|
|
4750
4810
|
);
|
|
4751
4811
|
}
|
|
4752
4812
|
function lr(e) {
|
|
4753
|
-
var d, p, y,
|
|
4754
|
-
const [t, r] =
|
|
4813
|
+
var d, p, y, x, P, _, C;
|
|
4814
|
+
const [t, r] = H(
|
|
4755
4815
|
() => {
|
|
4756
|
-
var
|
|
4757
|
-
return
|
|
4816
|
+
var I, L;
|
|
4817
|
+
return Xi({
|
|
4758
4818
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4759
|
-
variationId: (
|
|
4819
|
+
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
4760
4820
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4761
|
-
contentId: (
|
|
4821
|
+
contentId: (L = e.content) == null ? void 0 : L.id
|
|
4762
4822
|
});
|
|
4763
4823
|
}
|
|
4764
4824
|
);
|
|
4765
|
-
function n(
|
|
4766
|
-
u((
|
|
4767
|
-
...
|
|
4768
|
-
rootState:
|
|
4825
|
+
function n(I) {
|
|
4826
|
+
u((L) => ({
|
|
4827
|
+
...L,
|
|
4828
|
+
rootState: I
|
|
4769
4829
|
}));
|
|
4770
4830
|
}
|
|
4771
|
-
const [i, a] =
|
|
4831
|
+
const [i, a] = H(
|
|
4772
4832
|
() => [
|
|
4773
4833
|
...ir(),
|
|
4774
4834
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
@@ -4779,22 +4839,22 @@ function lr(e) {
|
|
|
4779
4839
|
...Gn,
|
|
4780
4840
|
...e.customComponents || []
|
|
4781
4841
|
].reduce(
|
|
4782
|
-
(
|
|
4783
|
-
...
|
|
4784
|
-
[
|
|
4785
|
-
component:
|
|
4786
|
-
...zn(
|
|
4842
|
+
(I, { component: L, ...V }) => ({
|
|
4843
|
+
...I,
|
|
4844
|
+
[V.name]: {
|
|
4845
|
+
component: L,
|
|
4846
|
+
...zn(V)
|
|
4787
4847
|
}
|
|
4788
4848
|
}),
|
|
4789
4849
|
{}
|
|
4790
4850
|
)
|
|
4791
|
-
), [s, u] =
|
|
4792
|
-
content:
|
|
4851
|
+
), [s, u] = H(() => ({
|
|
4852
|
+
content: xo({
|
|
4793
4853
|
content: e.content,
|
|
4794
4854
|
data: e.data
|
|
4795
4855
|
}),
|
|
4796
4856
|
localState: void 0,
|
|
4797
|
-
rootState:
|
|
4857
|
+
rootState: vo({
|
|
4798
4858
|
content: e.content,
|
|
4799
4859
|
data: e.data,
|
|
4800
4860
|
locale: e.locale
|
|
@@ -4813,22 +4873,22 @@ function lr(e) {
|
|
|
4813
4873
|
...Gn,
|
|
4814
4874
|
...e.customComponents || []
|
|
4815
4875
|
].reduce(
|
|
4816
|
-
(
|
|
4817
|
-
...
|
|
4818
|
-
[
|
|
4876
|
+
(I, { component: L, ...V }) => ({
|
|
4877
|
+
...I,
|
|
4878
|
+
[V.name]: zn(V)
|
|
4819
4879
|
}),
|
|
4820
4880
|
{}
|
|
4821
4881
|
),
|
|
4822
4882
|
inheritedStyles: {}
|
|
4823
4883
|
}));
|
|
4824
|
-
return /* @__PURE__ */
|
|
4825
|
-
|
|
4884
|
+
return /* @__PURE__ */ g(
|
|
4885
|
+
wr.Provider,
|
|
4826
4886
|
{
|
|
4827
4887
|
value: {
|
|
4828
4888
|
registeredComponents: i
|
|
4829
4889
|
},
|
|
4830
4890
|
children: /* @__PURE__ */ Z(
|
|
4831
|
-
|
|
4891
|
+
Io,
|
|
4832
4892
|
{
|
|
4833
4893
|
content: e.content,
|
|
4834
4894
|
model: e.model,
|
|
@@ -4843,19 +4903,19 @@ function lr(e) {
|
|
|
4843
4903
|
builderContextSignal: s,
|
|
4844
4904
|
setBuilderContextSignal: u,
|
|
4845
4905
|
children: [
|
|
4846
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
4847
|
-
/* @__PURE__ */
|
|
4848
|
-
|
|
4906
|
+
e.isSsrAbTest ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(Jt, { scriptStr: t }) }) : null,
|
|
4907
|
+
/* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
4908
|
+
yo,
|
|
4849
4909
|
{
|
|
4850
4910
|
contentId: (d = s.content) == null ? void 0 : d.id,
|
|
4851
4911
|
cssCode: (y = (p = s.content) == null ? void 0 : p.data) == null ? void 0 : y.cssCode,
|
|
4852
|
-
customFonts: (P = (
|
|
4912
|
+
customFonts: (P = (x = s.content) == null ? void 0 : x.data) == null ? void 0 : P.customFonts
|
|
4853
4913
|
}
|
|
4854
4914
|
) }),
|
|
4855
|
-
/* @__PURE__ */
|
|
4915
|
+
/* @__PURE__ */ g(
|
|
4856
4916
|
dn,
|
|
4857
4917
|
{
|
|
4858
|
-
blocks: (C = (
|
|
4918
|
+
blocks: (C = (_ = s.content) == null ? void 0 : _.data) == null ? void 0 : C.blocks,
|
|
4859
4919
|
context: s,
|
|
4860
4920
|
registeredComponents: i
|
|
4861
4921
|
}
|
|
@@ -4866,17 +4926,17 @@ function lr(e) {
|
|
|
4866
4926
|
}
|
|
4867
4927
|
);
|
|
4868
4928
|
}
|
|
4869
|
-
function
|
|
4929
|
+
function Ir(e) {
|
|
4870
4930
|
var s, u, d;
|
|
4871
|
-
const [t, r] =
|
|
4872
|
-
() =>
|
|
4931
|
+
const [t, r] = H(
|
|
4932
|
+
() => Di({
|
|
4873
4933
|
canTrack: ft(e.canTrack),
|
|
4874
4934
|
content: e.content
|
|
4875
4935
|
})
|
|
4876
4936
|
);
|
|
4877
4937
|
function n() {
|
|
4878
4938
|
var p;
|
|
4879
|
-
return
|
|
4939
|
+
return zi(
|
|
4880
4940
|
ut(e.content).map((y) => ({
|
|
4881
4941
|
id: y.testVariationId,
|
|
4882
4942
|
testRatio: y.testRatio
|
|
@@ -4892,24 +4952,24 @@ function Cr(e) {
|
|
|
4892
4952
|
return t ? {
|
|
4893
4953
|
...e.content,
|
|
4894
4954
|
testVariationId: (p = e.content) == null ? void 0 : p.id
|
|
4895
|
-
} :
|
|
4955
|
+
} : Xr({
|
|
4896
4956
|
item: e.content,
|
|
4897
4957
|
canTrack: ft(e.canTrack)
|
|
4898
4958
|
});
|
|
4899
4959
|
}
|
|
4900
|
-
return
|
|
4901
|
-
}, []), /* @__PURE__ */ Z(
|
|
4902
|
-
!e.__isNestedRender &&
|
|
4903
|
-
t ? /* @__PURE__ */ Z(
|
|
4904
|
-
/* @__PURE__ */
|
|
4960
|
+
return Q(() => {
|
|
4961
|
+
}, []), /* @__PURE__ */ Z(U, { children: [
|
|
4962
|
+
!e.__isNestedRender && tt !== "reactNative" ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(Jt, { scriptStr: Gi() }) }) : null,
|
|
4963
|
+
t ? /* @__PURE__ */ Z(U, { children: [
|
|
4964
|
+
/* @__PURE__ */ g(
|
|
4905
4965
|
gt,
|
|
4906
4966
|
{
|
|
4907
4967
|
id: `variants-styles-${(s = e.content) == null ? void 0 : s.id}`,
|
|
4908
4968
|
styles: i()
|
|
4909
4969
|
}
|
|
4910
4970
|
),
|
|
4911
|
-
/* @__PURE__ */
|
|
4912
|
-
(u = ut(e.content)) == null ? void 0 : u.map((p) => /* @__PURE__ */
|
|
4971
|
+
/* @__PURE__ */ g(Jt, { scriptStr: n() }),
|
|
4972
|
+
(u = ut(e.content)) == null ? void 0 : u.map((p) => /* @__PURE__ */ g(
|
|
4913
4973
|
lr,
|
|
4914
4974
|
{
|
|
4915
4975
|
content: p,
|
|
@@ -4930,7 +4990,7 @@ function Cr(e) {
|
|
|
4930
4990
|
p.testVariationId
|
|
4931
4991
|
))
|
|
4932
4992
|
] }) : null,
|
|
4933
|
-
/* @__PURE__ */
|
|
4993
|
+
/* @__PURE__ */ g(
|
|
4934
4994
|
lr,
|
|
4935
4995
|
{
|
|
4936
4996
|
content: a(),
|
|
@@ -4951,13 +5011,13 @@ function Cr(e) {
|
|
|
4951
5011
|
)
|
|
4952
5012
|
] });
|
|
4953
5013
|
}
|
|
4954
|
-
const
|
|
5014
|
+
const To = async ({
|
|
4955
5015
|
builderContextValue: e,
|
|
4956
5016
|
symbol: t
|
|
4957
5017
|
}) => {
|
|
4958
5018
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4959
5019
|
(e != null && e.apiKey))
|
|
4960
|
-
return
|
|
5020
|
+
return fr({
|
|
4961
5021
|
model: t.model,
|
|
4962
5022
|
apiKey: e.apiKey,
|
|
4963
5023
|
apiVersion: e.apiVersion,
|
|
@@ -4967,10 +5027,10 @@ const wo = async ({
|
|
|
4967
5027
|
}
|
|
4968
5028
|
}
|
|
4969
5029
|
}).catch((r) => {
|
|
4970
|
-
|
|
5030
|
+
Pe.error("Could not fetch symbol content: ", r);
|
|
4971
5031
|
});
|
|
4972
5032
|
};
|
|
4973
|
-
function
|
|
5033
|
+
function jo(e) {
|
|
4974
5034
|
var a, s, u;
|
|
4975
5035
|
function t() {
|
|
4976
5036
|
var d, p;
|
|
@@ -4981,24 +5041,24 @@ function ko(e) {
|
|
|
4981
5041
|
(p = e.symbol) != null && p.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4982
5042
|
].filter(Boolean).join(" ");
|
|
4983
5043
|
}
|
|
4984
|
-
const [r, n] =
|
|
5044
|
+
const [r, n] = H(() => {
|
|
4985
5045
|
var d;
|
|
4986
5046
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
4987
5047
|
});
|
|
4988
5048
|
function i() {
|
|
4989
|
-
r ||
|
|
5049
|
+
r || To({
|
|
4990
5050
|
symbol: e.symbol,
|
|
4991
5051
|
builderContextValue: e.builderContext
|
|
4992
5052
|
}).then((d) => {
|
|
4993
5053
|
d && n(d);
|
|
4994
5054
|
});
|
|
4995
5055
|
}
|
|
4996
|
-
return
|
|
5056
|
+
return Q(() => {
|
|
4997
5057
|
i();
|
|
4998
|
-
}, []),
|
|
5058
|
+
}, []), Q(() => {
|
|
4999
5059
|
i();
|
|
5000
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
5001
|
-
|
|
5060
|
+
}, [e.symbol]), /* @__PURE__ */ g("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ g(
|
|
5061
|
+
Ir,
|
|
5002
5062
|
{
|
|
5003
5063
|
__isNestedRender: !0,
|
|
5004
5064
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5015,31 +5075,31 @@ function ko(e) {
|
|
|
5015
5075
|
}
|
|
5016
5076
|
) });
|
|
5017
5077
|
}
|
|
5018
|
-
const
|
|
5078
|
+
const No = dn, Po = Ir;
|
|
5019
5079
|
export {
|
|
5020
5080
|
dn as Blocks,
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5081
|
+
Jr as Button,
|
|
5082
|
+
Ui as Columns,
|
|
5083
|
+
Ir as Content,
|
|
5084
|
+
Bi as Fragment,
|
|
5085
|
+
$i as Image,
|
|
5086
|
+
No as RenderBlocks,
|
|
5087
|
+
Po as RenderContent,
|
|
5088
|
+
Vi as Section,
|
|
5089
|
+
jo as Symbol,
|
|
5090
|
+
no as Text,
|
|
5091
|
+
io as Video,
|
|
5092
|
+
Uo as _processContentResult,
|
|
5093
|
+
Gr as createRegisterComponentMessage,
|
|
5094
|
+
Bo as fetchBuilderProps,
|
|
5095
|
+
_o as fetchEntries,
|
|
5096
|
+
fr as fetchOneEntry,
|
|
5097
|
+
Lo as getAllContent,
|
|
5098
|
+
$o as getBuilderSearchParams,
|
|
5099
|
+
Vo as getContent,
|
|
5100
|
+
Ce as isEditing,
|
|
5041
5101
|
Kr as isPreviewing,
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5102
|
+
Hr as register,
|
|
5103
|
+
Do as setEditorSettings,
|
|
5104
|
+
Wo as track
|
|
5045
5105
|
};
|