@builder.io/sdk-react 0.11.2 → 0.11.4
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 +25 -25
- package/lib/browser/index.mjs +540 -546
- package/lib/edge/index.cjs +31 -31
- package/lib/edge/index.mjs +1288 -1294
- package/lib/node/index.cjs +16 -16
- package/lib/node/index.mjs +342 -348
- package/package.json +61 -4
- package/types/blocks/button/button.d.ts +1 -9
- package/types/blocks/button/button.types.d.ts +6 -0
- package/types/blocks/columns/columns.d.ts +2 -14
- package/types/blocks/columns/columns.types.d.ts +15 -0
- package/types/blocks/fragment/fragment.d.ts +1 -5
- package/types/blocks/fragment/fragment.types.d.ts +5 -0
- package/types/blocks/image/image.d.ts +1 -19
- package/types/blocks/image/image.types.d.ts +19 -0
- package/types/blocks/section/section.d.ts +1 -9
- package/types/blocks/section/section.types.d.ts +6 -0
- package/types/blocks/symbol/symbol.d.ts +2 -23
- package/types/blocks/symbol/symbol.types.d.ts +18 -0
- package/types/blocks/text/text.d.ts +1 -3
- package/types/blocks/text/text.types.d.ts +3 -0
- package/types/blocks/video/video.d.ts +1 -21
- package/types/blocks/video/video.types.d.ts +21 -0
- package/types/components/blocks/blocks.d.ts +1 -6
- package/types/components/blocks/blocks.types.d.ts +6 -0
- package/types/components/content/components/enable-editor.d.ts +1 -1
- package/types/components/content/content.helpers.d.ts +1 -1
- package/types/components/content-variants/content-variants.types.d.ts +30 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/get-content/index.d.ts +1 -1
- package/types/functions/get-content/types.d.ts +2 -2
- package/types/server-index.d.ts +10 -1
package/lib/edge/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { i as
|
|
2
|
+
import { jsxs as te, Fragment as N, jsx as p } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as lr, useState as V, useContext as $n, createElement as cr, useRef as Zt, useEffect as Z } from "react";
|
|
4
|
+
import { i as Te, j as je, k as Lr, l as Ue, m as Qt, n as Gt, T as rt, r as $r, o as pt, p as Hn, a as Hr, c as Kr, b as ur, q as Gr, u as Kn, v as Gn, w as zr } from "./server-entry-f978b3a5.js";
|
|
5
5
|
import { _ as Fo, h as Uo, f as _o, g as Do, e as Wo, d as Vo, s as Lo, t as $o } from "./server-entry-f978b3a5.js";
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
e.link ? /* @__PURE__ */ p(
|
|
6
|
+
function Xr(e) {
|
|
7
|
+
return /* @__PURE__ */ te(N, { children: [
|
|
8
|
+
e.link ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
9
9
|
"a",
|
|
10
10
|
{
|
|
11
11
|
...e.attributes,
|
|
@@ -14,21 +14,21 @@ function Yr(e) {
|
|
|
14
14
|
role: "button",
|
|
15
15
|
children: e.text
|
|
16
16
|
}
|
|
17
|
-
) }) : /* @__PURE__ */ p(
|
|
17
|
+
) }) : /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
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-fdf49de0",
|
|
23
23
|
children: e.text
|
|
24
24
|
}
|
|
25
25
|
) }),
|
|
26
|
-
/* @__PURE__ */ p("style", { children: `.button-
|
|
26
|
+
/* @__PURE__ */ p("style", { children: `.button-fdf49de0 {
|
|
27
27
|
all: unset;
|
|
28
28
|
}` })
|
|
29
29
|
] });
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const en = lr({
|
|
32
32
|
content: null,
|
|
33
33
|
context: {},
|
|
34
34
|
localState: void 0,
|
|
@@ -41,8 +41,8 @@ const Qt = cr({
|
|
|
41
41
|
inheritedStyles: {},
|
|
42
42
|
BlocksWrapper: "div",
|
|
43
43
|
BlocksWrapperProps: {}
|
|
44
|
-
}),
|
|
45
|
-
function
|
|
44
|
+
}), dr = lr({ registeredComponents: {} });
|
|
45
|
+
function Yr(e) {
|
|
46
46
|
var t;
|
|
47
47
|
return {
|
|
48
48
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -53,7 +53,7 @@ function Jr(e) {
|
|
|
53
53
|
builderBlock: e
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
const
|
|
56
|
+
const fr = ({
|
|
57
57
|
builder: e,
|
|
58
58
|
context: t,
|
|
59
59
|
event: r,
|
|
@@ -65,14 +65,14 @@ const hr = ({
|
|
|
65
65
|
builder: e,
|
|
66
66
|
context: t,
|
|
67
67
|
event: r
|
|
68
|
-
}),
|
|
69
|
-
isEditing:
|
|
70
|
-
isBrowser:
|
|
71
|
-
isServer: !
|
|
72
|
-
getUserAttributes: () =>
|
|
73
|
-
}),
|
|
68
|
+
}), Jr = () => ({
|
|
69
|
+
isEditing: Te(),
|
|
70
|
+
isBrowser: je(),
|
|
71
|
+
isServer: !je(),
|
|
72
|
+
getUserAttributes: () => Lr()
|
|
73
|
+
}), qr = (e, {
|
|
74
74
|
isExpression: t = !0
|
|
75
|
-
}) => /* 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,
|
|
75
|
+
}) => /* 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 = ({
|
|
76
76
|
code: e,
|
|
77
77
|
builder: t,
|
|
78
78
|
context: r,
|
|
@@ -81,15 +81,15 @@ const hr = ({
|
|
|
81
81
|
rootSetState: a,
|
|
82
82
|
rootState: s
|
|
83
83
|
}) => {
|
|
84
|
-
const u =
|
|
84
|
+
const u = fr({
|
|
85
85
|
builder: t,
|
|
86
86
|
context: r,
|
|
87
87
|
event: n,
|
|
88
|
-
state:
|
|
88
|
+
state: Qr(s, i, a)
|
|
89
89
|
});
|
|
90
90
|
return new Function(...u.map(([f]) => f), e)(...u.map(([, f]) => f));
|
|
91
91
|
};
|
|
92
|
-
function
|
|
92
|
+
function Qr(e, t, r) {
|
|
93
93
|
if (e === t)
|
|
94
94
|
throw new Error("rootState === localState");
|
|
95
95
|
return new Proxy(e, {
|
|
@@ -101,25 +101,25 @@ function ei(e, t, r) {
|
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
const
|
|
104
|
+
const hr = (e, t, r) => {
|
|
105
105
|
if (Object(e) !== e)
|
|
106
106
|
return e;
|
|
107
107
|
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
108
108
|
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;
|
|
109
109
|
};
|
|
110
|
-
var
|
|
110
|
+
var D, ei = function(e) {
|
|
111
111
|
function t(o) {
|
|
112
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
112
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Wr.test(String.fromCharCode(o));
|
|
113
113
|
}
|
|
114
114
|
function r(o) {
|
|
115
|
-
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
115
|
+
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Ln.test(String.fromCharCode(o));
|
|
116
116
|
}
|
|
117
117
|
function n(o, l) {
|
|
118
118
|
for (var c = x, h = 1, A = 0; ; ) {
|
|
119
|
-
|
|
120
|
-
var
|
|
121
|
-
if (
|
|
122
|
-
++h, A =
|
|
119
|
+
ft.lastIndex = A;
|
|
120
|
+
var J = ft.exec(c);
|
|
121
|
+
if (J && J.index < o)
|
|
122
|
+
++h, A = J.index + J[0].length;
|
|
123
123
|
else
|
|
124
124
|
break;
|
|
125
125
|
}
|
|
@@ -137,25 +137,25 @@ var F, ti = function(e) {
|
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
function a() {
|
|
140
|
-
this.line =
|
|
140
|
+
this.line = Ee, this.ab = d - he;
|
|
141
141
|
}
|
|
142
142
|
function s(o, l) {
|
|
143
|
-
|
|
143
|
+
Oe = d, R.C && (jt = new a()), j = o, f(), ce = l, Le = o.m;
|
|
144
144
|
}
|
|
145
145
|
function u() {
|
|
146
|
-
for (var o = d, l = R.va && R.C && new a(), c = x.charCodeAt(d += 2); d <
|
|
146
|
+
for (var o = d, l = R.va && R.C && new a(), c = x.charCodeAt(d += 2); d < Re && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
147
147
|
++d, c = x.charCodeAt(d);
|
|
148
148
|
R.va && R.va(!1, x.slice(o + 2, d), o, d, l, R.C && new a());
|
|
149
149
|
}
|
|
150
150
|
function f() {
|
|
151
|
-
for (; d <
|
|
151
|
+
for (; d < Re; ) {
|
|
152
152
|
var o = x.charCodeAt(d);
|
|
153
153
|
if (o === 32)
|
|
154
154
|
++d;
|
|
155
155
|
else if (o === 13)
|
|
156
|
-
++d, o = x.charCodeAt(d), o === 10 && ++d, R.C && (++
|
|
156
|
+
++d, o = x.charCodeAt(d), o === 10 && ++d, R.C && (++Ee, he = d);
|
|
157
157
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
158
|
-
++d, R.C && (++
|
|
158
|
+
++d, R.C && (++Ee, he = d);
|
|
159
159
|
else if (8 < o && 14 > o)
|
|
160
160
|
++d;
|
|
161
161
|
else if (o === 47)
|
|
@@ -163,8 +163,8 @@ var F, ti = function(e) {
|
|
|
163
163
|
o = void 0;
|
|
164
164
|
var l = R.va && R.C && new a(), c = d, h = x.indexOf("*/", d += 2);
|
|
165
165
|
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2, R.C)
|
|
166
|
-
for (
|
|
167
|
-
++
|
|
166
|
+
for (ft.lastIndex = c; (o = ft.exec(x)) && o.index < d; )
|
|
167
|
+
++Ee, he = o.index + o[0].length;
|
|
168
168
|
R.va && R.va(!0, x.slice(c + 2, h), c, d, l, R.C && new a());
|
|
169
169
|
} else if (o === 47)
|
|
170
170
|
u();
|
|
@@ -172,7 +172,7 @@ var F, ti = function(e) {
|
|
|
172
172
|
break;
|
|
173
173
|
else if (o === 160)
|
|
174
174
|
++d;
|
|
175
|
-
else if (5760 <= o &&
|
|
175
|
+
else if (5760 <= o && Dr.test(String.fromCharCode(o)))
|
|
176
176
|
++d;
|
|
177
177
|
else
|
|
178
178
|
break;
|
|
@@ -181,31 +181,31 @@ var F, ti = function(e) {
|
|
|
181
181
|
function g(o) {
|
|
182
182
|
switch (o) {
|
|
183
183
|
case 46:
|
|
184
|
-
o = x.charCodeAt(d + 1), 48 <= o && 57 >= o ?
|
|
184
|
+
o = x.charCodeAt(d + 1), 48 <= o && 57 >= o ? O(!0) : (++d, s(Mn));
|
|
185
185
|
return;
|
|
186
186
|
case 40:
|
|
187
|
-
return ++d, s(
|
|
187
|
+
return ++d, s(pe);
|
|
188
188
|
case 41:
|
|
189
|
-
return ++d, s(
|
|
189
|
+
return ++d, s(de);
|
|
190
190
|
case 59:
|
|
191
|
-
return ++d, s(
|
|
191
|
+
return ++d, s(me);
|
|
192
192
|
case 44:
|
|
193
193
|
return ++d, s(Se);
|
|
194
194
|
case 91:
|
|
195
|
-
return ++d, s(Ut);
|
|
196
|
-
case 93:
|
|
197
195
|
return ++d, s(_t);
|
|
196
|
+
case 93:
|
|
197
|
+
return ++d, s(Dt);
|
|
198
198
|
case 123:
|
|
199
|
-
return ++d, s(
|
|
199
|
+
return ++d, s(Ke);
|
|
200
200
|
case 125:
|
|
201
|
-
return ++d, s(
|
|
201
|
+
return ++d, s(Ne);
|
|
202
202
|
case 58:
|
|
203
|
-
return ++d, s(
|
|
203
|
+
return ++d, s(Ge);
|
|
204
204
|
case 63:
|
|
205
|
-
return ++d, s(
|
|
205
|
+
return ++d, s(Bn);
|
|
206
206
|
case 48:
|
|
207
207
|
if (o = x.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
208
|
-
d += 2, o =
|
|
208
|
+
d += 2, o = F(16), o === null && n(X + 2, "Expected hexadecimal number"), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), s(He, o);
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
211
|
case 49:
|
|
@@ -217,15 +217,15 @@ var F, ti = function(e) {
|
|
|
217
217
|
case 55:
|
|
218
218
|
case 56:
|
|
219
219
|
case 57:
|
|
220
|
-
return
|
|
220
|
+
return O(!1);
|
|
221
221
|
case 34:
|
|
222
222
|
case 39:
|
|
223
223
|
d++;
|
|
224
224
|
for (var l = ""; ; ) {
|
|
225
|
-
d >=
|
|
225
|
+
d >= Re && n(X, "Unterminated string constant");
|
|
226
226
|
var c = x.charCodeAt(d);
|
|
227
227
|
if (c === o) {
|
|
228
|
-
++d, s(
|
|
228
|
+
++d, s(lt, l);
|
|
229
229
|
break;
|
|
230
230
|
}
|
|
231
231
|
if (c === 92) {
|
|
@@ -234,7 +234,7 @@ var F, ti = function(e) {
|
|
|
234
234
|
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
235
235
|
h = h.slice(0, -1);
|
|
236
236
|
if (h === "0" && (h = null), ++d, h)
|
|
237
|
-
|
|
237
|
+
se && n(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), d += h.length - 1;
|
|
238
238
|
else
|
|
239
239
|
switch (c) {
|
|
240
240
|
case 110:
|
|
@@ -245,13 +245,13 @@ var F, ti = function(e) {
|
|
|
245
245
|
l += "\r";
|
|
246
246
|
break;
|
|
247
247
|
case 120:
|
|
248
|
-
l += String.fromCharCode(
|
|
248
|
+
l += String.fromCharCode(P(2));
|
|
249
249
|
break;
|
|
250
250
|
case 117:
|
|
251
|
-
l += String.fromCharCode(
|
|
251
|
+
l += String.fromCharCode(P(4));
|
|
252
252
|
break;
|
|
253
253
|
case 85:
|
|
254
|
-
l += String.fromCharCode(
|
|
254
|
+
l += String.fromCharCode(P(8));
|
|
255
255
|
break;
|
|
256
256
|
case 116:
|
|
257
257
|
l += " ";
|
|
@@ -271,7 +271,7 @@ var F, ti = function(e) {
|
|
|
271
271
|
case 13:
|
|
272
272
|
x.charCodeAt(d) === 10 && ++d;
|
|
273
273
|
case 10:
|
|
274
|
-
R.C && (
|
|
274
|
+
R.C && (he = d, ++Ee);
|
|
275
275
|
break;
|
|
276
276
|
default:
|
|
277
277
|
l += String.fromCharCode(c);
|
|
@@ -281,58 +281,58 @@ var F, ti = function(e) {
|
|
|
281
281
|
}
|
|
282
282
|
return;
|
|
283
283
|
case 47:
|
|
284
|
-
o = x.charCodeAt(d + 1),
|
|
284
|
+
o = x.charCodeAt(d + 1), Le ? (++d, U()) : o === 61 ? b(Ie, 2) : b(Fn, 1);
|
|
285
285
|
return;
|
|
286
286
|
case 37:
|
|
287
287
|
case 42:
|
|
288
|
-
x.charCodeAt(d + 1) === 61 ?
|
|
288
|
+
x.charCodeAt(d + 1) === 61 ? b(Ie, 2) : b(Fr, 1);
|
|
289
289
|
return;
|
|
290
290
|
case 124:
|
|
291
291
|
case 38:
|
|
292
|
-
l = x.charCodeAt(d + 1), l === o ?
|
|
292
|
+
l = x.charCodeAt(d + 1), l === o ? b(o === 124 ? Dn : Wn, 2) : l === 61 ? b(Ie, 2) : b(o === 124 ? Ar : Or, 1);
|
|
293
293
|
return;
|
|
294
294
|
case 94:
|
|
295
|
-
x.charCodeAt(d + 1) === 61 ?
|
|
295
|
+
x.charCodeAt(d + 1) === 61 ? b(Ie, 2) : b(Rr, 1);
|
|
296
296
|
return;
|
|
297
297
|
case 43:
|
|
298
298
|
case 45:
|
|
299
|
-
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 &&
|
|
299
|
+
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && dt.test(x.slice(be, d)) ? (d += 3, u(), f(), v()) : b(jr, 2) : l === 61 ? b(Ie, 2) : b(Br, 1);
|
|
300
300
|
return;
|
|
301
301
|
case 60:
|
|
302
302
|
case 62:
|
|
303
|
-
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ?
|
|
303
|
+
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? b(Ie, c + 1) : b(Mr, c)) : l === 33 && o === 60 && x.charCodeAt(d + 2) === 45 && x.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), v()) : (l === 61 && (c = x.charCodeAt(d + 2) === 61 ? 3 : 2), b(Nr, c));
|
|
304
304
|
return;
|
|
305
305
|
case 61:
|
|
306
306
|
case 33:
|
|
307
|
-
x.charCodeAt(d + 1) === 61 ?
|
|
307
|
+
x.charCodeAt(d + 1) === 61 ? b(Pr, x.charCodeAt(d + 2) === 61 ? 3 : 2) : b(o === 61 ? Un : _n, 1);
|
|
308
308
|
return;
|
|
309
309
|
case 126:
|
|
310
|
-
return
|
|
310
|
+
return b(_n, 1);
|
|
311
311
|
}
|
|
312
312
|
return !1;
|
|
313
313
|
}
|
|
314
314
|
function v(o) {
|
|
315
|
-
if (o ? d = X + 1 : X = d, R.C && (
|
|
315
|
+
if (o ? d = X + 1 : X = d, R.C && (Tt = new a()), o)
|
|
316
316
|
return U();
|
|
317
|
-
if (d >=
|
|
318
|
-
return s(
|
|
317
|
+
if (d >= Re)
|
|
318
|
+
return s(Ot);
|
|
319
319
|
if (o = x.charCodeAt(d), r(o) || o === 92)
|
|
320
|
-
return
|
|
320
|
+
return Y();
|
|
321
321
|
if (g(o) === !1) {
|
|
322
|
-
if (o = String.fromCharCode(o), o === "\\" ||
|
|
323
|
-
return
|
|
322
|
+
if (o = String.fromCharCode(o), o === "\\" || Ln.test(o))
|
|
323
|
+
return Y();
|
|
324
324
|
n(d, "Unexpected character '" + o + "'");
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function b(o, l) {
|
|
328
328
|
var c = x.slice(d, d + l);
|
|
329
329
|
d += l, s(o, c);
|
|
330
330
|
}
|
|
331
331
|
function U() {
|
|
332
332
|
for (var o, l, c = d; ; ) {
|
|
333
|
-
d >=
|
|
333
|
+
d >= Re && n(c, "Unterminated regexp");
|
|
334
334
|
var h = x.charAt(d);
|
|
335
|
-
if (
|
|
335
|
+
if (dt.test(h) && n(c, "Unterminated regexp"), o)
|
|
336
336
|
o = !1;
|
|
337
337
|
else {
|
|
338
338
|
if (h === "[")
|
|
@@ -345,323 +345,323 @@ var F, ti = function(e) {
|
|
|
345
345
|
}
|
|
346
346
|
++d;
|
|
347
347
|
}
|
|
348
|
-
o = x.slice(c, d), ++d, (l =
|
|
348
|
+
o = x.slice(c, d), ++d, (l = L()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
349
349
|
try {
|
|
350
350
|
var A = new RegExp(o, l);
|
|
351
|
-
} catch (
|
|
352
|
-
throw
|
|
351
|
+
} catch (J) {
|
|
352
|
+
throw J instanceof SyntaxError && n(c, J.message), J;
|
|
353
353
|
}
|
|
354
|
-
s(
|
|
354
|
+
s(mn, A);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
for (var c = d, h = 0, A = l === void 0 ? 1 / 0 : l,
|
|
358
|
-
var
|
|
359
|
-
if (
|
|
356
|
+
function F(o, l) {
|
|
357
|
+
for (var c = d, h = 0, A = l === void 0 ? 1 / 0 : l, J = 0; J < A; ++J) {
|
|
358
|
+
var ie = x.charCodeAt(d);
|
|
359
|
+
if (ie = 97 <= ie ? ie - 97 + 10 : 65 <= ie ? ie - 65 + 10 : 48 <= ie && 57 >= ie ? ie - 48 : 1 / 0, ie >= o)
|
|
360
360
|
break;
|
|
361
|
-
++d, h = h * o +
|
|
361
|
+
++d, h = h * o + ie;
|
|
362
362
|
}
|
|
363
363
|
return d === c || l !== void 0 && d - c !== l ? null : h;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function O(o) {
|
|
366
366
|
var l = d, c = !1, h = x.charCodeAt(d) === 48;
|
|
367
|
-
o ||
|
|
367
|
+
o || F(10) !== null || n(l, "Invalid number"), x.charCodeAt(d) === 46 && (++d, F(10), c = !0), o = x.charCodeAt(d), (o === 69 || o === 101) && (o = x.charCodeAt(++d), o !== 43 && o !== 45 || ++d, F(10) === null && n(l, "Invalid number"), c = !0), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), o = x.slice(l, d);
|
|
368
368
|
var A;
|
|
369
|
-
c ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) ||
|
|
369
|
+
c ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || se ? n(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s(He, A);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return o =
|
|
371
|
+
function P(o) {
|
|
372
|
+
return o = F(16, o), o === null && n(X, "Bad character escape sequence"), o;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
|
|
374
|
+
function L() {
|
|
375
|
+
Me = !1;
|
|
376
376
|
for (var o, l = !0, c = d; ; ) {
|
|
377
377
|
var h = x.charCodeAt(d);
|
|
378
378
|
if (t(h))
|
|
379
|
-
|
|
379
|
+
Me && (o += x.charAt(d)), ++d;
|
|
380
380
|
else if (h === 92) {
|
|
381
|
-
|
|
381
|
+
Me || (o = x.slice(c, d)), Me = !0, x.charCodeAt(++d) !== 117 && n(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = P(4);
|
|
382
382
|
var A = String.fromCharCode(h);
|
|
383
383
|
A || n(d - 1, "Invalid Unicode escape"), (l ? r(h) : t(h)) || n(d - 4, "Invalid Unicode escape"), o += A;
|
|
384
384
|
} else
|
|
385
385
|
break;
|
|
386
386
|
l = !1;
|
|
387
387
|
}
|
|
388
|
-
return
|
|
388
|
+
return Me ? o : x.slice(c, d);
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
var o =
|
|
392
|
-
!
|
|
390
|
+
function Y() {
|
|
391
|
+
var o = L(), l = Pe;
|
|
392
|
+
!Me && _r(o) && (l = Tr[o]), s(l, o);
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
|
|
394
|
+
function y() {
|
|
395
|
+
At = X, be = Oe, Rt = jt, v();
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
if (
|
|
399
|
-
for (; d <
|
|
400
|
-
|
|
401
|
-
`,
|
|
397
|
+
function K(o) {
|
|
398
|
+
if (se = o, d = X, R.C)
|
|
399
|
+
for (; d < he; )
|
|
400
|
+
he = x.lastIndexOf(`
|
|
401
|
+
`, he - 2) + 1, --Ee;
|
|
402
402
|
f(), v();
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function ne() {
|
|
405
405
|
this.type = null, this.start = X, this.end = null;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
this.start =
|
|
407
|
+
function le() {
|
|
408
|
+
this.start = Tt, this.end = null, It && (this.source = It);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
var o = new
|
|
412
|
-
return R.C && (o.X = new
|
|
410
|
+
function $() {
|
|
411
|
+
var o = new ne();
|
|
412
|
+
return R.C && (o.X = new le()), R.vb && (o.sourceFile = R.vb), R.Xa && (o.j = [X, 0]), o;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
var l = new
|
|
416
|
-
return l.start = o.start, R.C && (l.X = new
|
|
414
|
+
function re(o) {
|
|
415
|
+
var l = new ne();
|
|
416
|
+
return l.start = o.start, R.C && (l.X = new le(), l.X.start = o.X.start), R.Xa && (l.j = [o.j[0], 0]), l;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
return o.type = l, o.end =
|
|
418
|
+
function E(o, l) {
|
|
419
|
+
return o.type = l, o.end = be, R.C && (o.X.end = Rt), R.Xa && (o.j[1] = be), o;
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Ae(o) {
|
|
422
422
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
return j === o ? (
|
|
424
|
+
function W(o) {
|
|
425
|
+
return j === o ? (y(), !0) : !1;
|
|
426
426
|
}
|
|
427
427
|
function ke() {
|
|
428
|
-
return !R.fc && (j ===
|
|
428
|
+
return !R.fc && (j === Ot || j === Ne || dt.test(x.slice(be, X)));
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
|
|
430
|
+
function ue() {
|
|
431
|
+
W(me) || ke() || C();
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
j === o ?
|
|
433
|
+
function H(o) {
|
|
434
|
+
j === o ? y() : C();
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function C() {
|
|
437
437
|
n(X, "Unexpected token");
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"),
|
|
439
|
+
function I(o) {
|
|
440
|
+
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), se && o.type === "Identifier" && ut(o.name) && n(o.start, "Assigning to " + o.name + " in strict mode");
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
(j ===
|
|
444
|
-
var o = j, l =
|
|
442
|
+
function T() {
|
|
443
|
+
(j === Fn || j === Ie && ce === "/=") && v(!0);
|
|
444
|
+
var o = j, l = $();
|
|
445
445
|
switch (o) {
|
|
446
|
-
case
|
|
447
|
-
case
|
|
448
|
-
|
|
449
|
-
var c = o ===
|
|
450
|
-
|
|
446
|
+
case Pt:
|
|
447
|
+
case vn:
|
|
448
|
+
y();
|
|
449
|
+
var c = o === Pt;
|
|
450
|
+
W(me) || ke() ? l.label = null : j !== Pe ? C() : (l.label = fe(), ue());
|
|
451
451
|
for (var h = 0; h < z.length; ++h) {
|
|
452
452
|
var A = z[h];
|
|
453
453
|
if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (c || A.kind === "loop") || l.label && c))
|
|
454
454
|
break;
|
|
455
455
|
}
|
|
456
|
-
return h === z.length && n(l.start, "Unsyntactic " + o.l),
|
|
456
|
+
return h === z.length && n(l.start, "Unsyntactic " + o.l), E(l, c ? "BreakStatement" : "ContinueStatement");
|
|
457
|
+
case yn:
|
|
458
|
+
return y(), ue(), E(l, "DebuggerStatement");
|
|
457
459
|
case bn:
|
|
458
|
-
return
|
|
459
|
-
case
|
|
460
|
-
return
|
|
460
|
+
return y(), z.push(Wt), l.body = T(), z.pop(), H(Ut), l.test = M(), ue(), E(l, "DoWhileStatement");
|
|
461
|
+
case kn:
|
|
462
|
+
return y(), z.push(Wt), H(pe), j === me ? G(l, null) : j === Ft ? (o = $(), y(), at(o, !0), E(o, "VariableDeclaration"), o.fa.length === 1 && W(ct) ? Ce(l, o) : G(l, o)) : (o = ee(!1, !0), W(ct) ? (I(o), Ce(l, o)) : G(l, o));
|
|
463
|
+
case Mt:
|
|
464
|
+
return y(), Ct(l, !0);
|
|
461
465
|
case Cn:
|
|
462
|
-
return
|
|
463
|
-
case Nt:
|
|
464
|
-
return b(), kt(l, !0);
|
|
466
|
+
return y(), l.test = M(), l.da = T(), l.alternate = W(Sn) ? T() : null, E(l, "IfStatement");
|
|
465
467
|
case En:
|
|
466
|
-
return
|
|
468
|
+
return $e || R.Ib || n(X, "'return' outside of function"), y(), W(me) || ke() ? l.K = null : (l.K = ee(), ue()), E(l, "ReturnStatement");
|
|
469
|
+
case Bt:
|
|
470
|
+
for (y(), l.Qb = M(), l.tb = [], H(Ke), z.push(Vr); j !== Ne; )
|
|
471
|
+
j === Nt || j === xn ? (o = j === Nt, h && E(h, "SwitchCase"), l.tb.push(h = $()), h.da = [], y(), o ? h.test = ee() : (c && n(At, "Multiple default clauses"), c = !0, h.test = null), H(Ge)) : (h || C(), h.da.push(T()));
|
|
472
|
+
return h && E(h, "SwitchCase"), y(), z.pop(), E(l, "SwitchStatement");
|
|
467
473
|
case In:
|
|
468
|
-
return
|
|
469
|
-
case Mt:
|
|
470
|
-
for (b(), l.Qb = W(), l.tb = [], y(He), z.push(Lr); j !== Pe; )
|
|
471
|
-
j === Pt || j === xn ? (o = j === Pt, h && T(h, "SwitchCase"), l.tb.push(h = K()), h.da = [], b(), o ? h.test = Q() : (c && n(jt, "Multiple default clauses"), c = !0, h.test = null), y(Ke)) : (h || I(), h.da.push(O()));
|
|
472
|
-
return h && T(h, "SwitchCase"), b(), z.pop(), T(l, "SwitchStatement");
|
|
474
|
+
return y(), dt.test(x.slice(be, X)) && n(be, "Illegal newline after throw"), l.K = ee(), ue(), E(l, "ThrowStatement");
|
|
473
475
|
case Tn:
|
|
474
|
-
return
|
|
475
|
-
case jn:
|
|
476
|
-
return b(), l.block = L(), l.Ea = null, j === vn && (o = K(), b(), y(he), o.Ua = de(), oe && ct(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), y(ue), o.body = L(), l.Ea = T(o, "CatchClause")), l.fb = V(kn) ? L() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
477
|
-
case Bt:
|
|
478
|
-
return b(), pn(l), ce(), T(l, "VariableDeclaration");
|
|
476
|
+
return y(), l.block = _(), l.Ea = null, j === gn && (o = $(), y(), H(pe), o.Ua = fe(), se && ut(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), H(de), o.body = _(), l.Ea = E(o, "CatchClause")), l.fb = W(wn) ? _() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
479
477
|
case Ft:
|
|
480
|
-
return
|
|
481
|
-
case
|
|
482
|
-
return
|
|
483
|
-
case
|
|
484
|
-
return
|
|
485
|
-
case
|
|
486
|
-
return
|
|
478
|
+
return y(), at(l), ue(), E(l, "VariableDeclaration");
|
|
479
|
+
case Ut:
|
|
480
|
+
return y(), l.test = M(), z.push(Wt), l.body = T(), z.pop(), E(l, "WhileStatement");
|
|
481
|
+
case jn:
|
|
482
|
+
return se && n(X, "'with' in strict mode"), y(), l.object = M(), l.body = T(), E(l, "WithStatement");
|
|
483
|
+
case Ke:
|
|
484
|
+
return _();
|
|
485
|
+
case me:
|
|
486
|
+
return y(), E(l, "EmptyStatement");
|
|
487
487
|
default:
|
|
488
|
-
if (c =
|
|
488
|
+
if (c = ce, A = ee(), o === Pe && A.type === "Identifier" && W(Ge)) {
|
|
489
489
|
for (h = 0; h < z.length; ++h)
|
|
490
490
|
z[h].name === c && n(A.start, "Label '" + c + "' is already declared");
|
|
491
491
|
return z.push({
|
|
492
492
|
name: c,
|
|
493
|
-
kind: j.W ? "loop" : j ===
|
|
494
|
-
}), l.body =
|
|
493
|
+
kind: j.W ? "loop" : j === Bt ? "switch" : null
|
|
494
|
+
}), l.body = T(), z.pop(), l.label = A, E(l, "LabeledStatement");
|
|
495
495
|
}
|
|
496
|
-
return l.la = A,
|
|
496
|
+
return l.la = A, ue(), E(l, "ExpressionStatement");
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
function
|
|
500
|
-
|
|
501
|
-
var o =
|
|
502
|
-
return
|
|
503
|
-
}
|
|
504
|
-
function
|
|
505
|
-
var l =
|
|
506
|
-
for (l.body = [],
|
|
507
|
-
var A =
|
|
508
|
-
if (l.body.push(A), c && o &&
|
|
509
|
-
var
|
|
510
|
-
|
|
499
|
+
function M() {
|
|
500
|
+
H(pe);
|
|
501
|
+
var o = ee();
|
|
502
|
+
return H(de), o;
|
|
503
|
+
}
|
|
504
|
+
function _(o) {
|
|
505
|
+
var l = $(), c = !0, h = !1;
|
|
506
|
+
for (l.body = [], H(Ke); !W(Ne); ) {
|
|
507
|
+
var A = T();
|
|
508
|
+
if (l.body.push(A), c && o && Ae(A)) {
|
|
509
|
+
var J = h;
|
|
510
|
+
K(h = !0);
|
|
511
511
|
}
|
|
512
512
|
c = !1;
|
|
513
513
|
}
|
|
514
|
-
return h && !
|
|
514
|
+
return h && !J && K(!1), E(l, "BlockStatement");
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
return o.ua = l,
|
|
516
|
+
function G(o, l) {
|
|
517
|
+
return o.ua = l, H(me), o.test = j === me ? null : ee(), H(me), o.update = j === de ? null : ee(), H(de), o.body = T(), z.pop(), E(o, "ForStatement");
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
return o.left = l, o.right =
|
|
519
|
+
function Ce(o, l) {
|
|
520
|
+
return o.left = l, o.right = ee(), H(de), o.body = T(), z.pop(), E(o, "ForInStatement");
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function at(o, l) {
|
|
523
523
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
524
|
-
var c =
|
|
525
|
-
if (c.id =
|
|
524
|
+
var c = $();
|
|
525
|
+
if (c.id = fe(), se && ut(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = W(Un) ? ee(!0, l) : null, o.fa.push(E(c, "VariableDeclarator")), !W(Se))
|
|
526
526
|
break;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
function
|
|
530
|
-
var c =
|
|
529
|
+
function ee(o, l) {
|
|
530
|
+
var c = St(l);
|
|
531
531
|
if (!o && j === Se) {
|
|
532
|
-
for (o =
|
|
533
|
-
o.xb.push(
|
|
534
|
-
return
|
|
532
|
+
for (o = re(c), o.xb = [c]; W(Se); )
|
|
533
|
+
o.xb.push(St(l));
|
|
534
|
+
return E(o, "SequenceExpression");
|
|
535
535
|
}
|
|
536
536
|
return c;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
var l =
|
|
540
|
-
if (
|
|
541
|
-
var c =
|
|
542
|
-
c.test = l, c.da =
|
|
538
|
+
function St(o) {
|
|
539
|
+
var l = wt(kt(), -1, o);
|
|
540
|
+
if (W(Bn)) {
|
|
541
|
+
var c = re(l);
|
|
542
|
+
c.test = l, c.da = ee(!0), H(Ge), c.alternate = ee(!0, o), l = E(c, "ConditionalExpression");
|
|
543
543
|
}
|
|
544
|
-
return j.Cb ? (c =
|
|
544
|
+
return j.Cb ? (c = re(l), c.operator = ce, c.left = l, y(), c.right = St(o), I(l), E(c, "AssignmentExpression")) : l;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function wt(o, l, c) {
|
|
547
547
|
var h = j.L;
|
|
548
|
-
if (h !== null && (!c || j !==
|
|
549
|
-
var A =
|
|
550
|
-
return A.left = o, A.operator =
|
|
548
|
+
if (h !== null && (!c || j !== ct) && h > l) {
|
|
549
|
+
var A = re(o);
|
|
550
|
+
return A.left = o, A.operator = ce, o = j, y(), A.right = wt(kt(), h, c), h = E(A, o === Dn || o === Wn ? "LogicalExpression" : "BinaryExpression"), wt(h, l, c);
|
|
551
551
|
}
|
|
552
552
|
return o;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function kt() {
|
|
555
555
|
if (j.prefix) {
|
|
556
|
-
var o =
|
|
557
|
-
return o.operator =
|
|
556
|
+
var o = $(), l = j.$b;
|
|
557
|
+
return o.operator = ce, Le = o.prefix = !0, y(), o.K = kt(), l ? I(o.K) : se && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), E(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
558
558
|
}
|
|
559
|
-
for (l =
|
|
560
|
-
o =
|
|
559
|
+
for (l = Ve(st()); j.cc && !ke(); )
|
|
560
|
+
o = re(l), o.operator = ce, o.prefix = !1, o.K = l, I(l), y(), l = E(o, "UpdateExpression");
|
|
561
561
|
return l;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
if (
|
|
565
|
-
var c =
|
|
566
|
-
return c.object = o, c.Wa =
|
|
563
|
+
function Ve(o, l) {
|
|
564
|
+
if (W(Mn)) {
|
|
565
|
+
var c = re(o);
|
|
566
|
+
return c.object = o, c.Wa = fe(!0), c.bb = !1, Ve(E(c, "MemberExpression"), l);
|
|
567
567
|
}
|
|
568
|
-
return
|
|
568
|
+
return W(_t) ? (c = re(o), c.object = o, c.Wa = ee(), c.bb = !0, H(Dt), Ve(E(c, "MemberExpression"), l)) : !l && W(pe) ? (c = re(o), c.callee = o, c.arguments = Et(de, !1), Ve(E(c, "CallExpression"), l)) : o;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function st() {
|
|
571
571
|
switch (j) {
|
|
572
|
+
case Rn:
|
|
573
|
+
var o = $();
|
|
574
|
+
return y(), E(o, "ThisExpression");
|
|
575
|
+
case Pe:
|
|
576
|
+
return fe();
|
|
577
|
+
case He:
|
|
578
|
+
case lt:
|
|
579
|
+
case mn:
|
|
580
|
+
return o = $(), o.value = ce, o.raw = x.slice(X, Oe), y(), E(o, "Literal");
|
|
572
581
|
case On:
|
|
573
|
-
var o = K();
|
|
574
|
-
return b(), T(o, "ThisExpression");
|
|
575
|
-
case Oe:
|
|
576
|
-
return de();
|
|
577
|
-
case $e:
|
|
578
|
-
case st:
|
|
579
|
-
case gn:
|
|
580
|
-
return o = K(), o.value = le, o.raw = x.slice(X, Re), b(), T(o, "Literal");
|
|
581
582
|
case Pn:
|
|
582
583
|
case Nn:
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
o = It;
|
|
584
|
+
return o = $(), o.value = j.$a, o.raw = j.l, y(), E(o, "Literal");
|
|
585
|
+
case pe:
|
|
586
|
+
o = Tt;
|
|
587
587
|
var l = X;
|
|
588
|
-
|
|
589
|
-
var c =
|
|
590
|
-
return c.start = l, c.end =
|
|
591
|
-
case
|
|
592
|
-
return o =
|
|
593
|
-
case
|
|
594
|
-
for (o =
|
|
588
|
+
y();
|
|
589
|
+
var c = ee();
|
|
590
|
+
return c.start = l, c.end = Oe, R.C && (c.X.start = o, c.X.end = jt), R.Xa && (c.j = [l, Oe]), H(de), c;
|
|
591
|
+
case _t:
|
|
592
|
+
return o = $(), y(), o.elements = Et(Dt, !0, !0), E(o, "ArrayExpression");
|
|
593
|
+
case Ke:
|
|
594
|
+
for (o = $(), l = !0, c = !1, o.h = [], y(); !W(Ne); ) {
|
|
595
595
|
if (l)
|
|
596
596
|
l = !1;
|
|
597
|
-
else if (
|
|
597
|
+
else if (H(Se), R.sb && W(Ne))
|
|
598
598
|
break;
|
|
599
599
|
var h = {
|
|
600
|
-
key: j ===
|
|
600
|
+
key: j === He || j === lt ? st() : fe(!0)
|
|
601
601
|
}, A = !1;
|
|
602
|
-
if (
|
|
603
|
-
h.value =
|
|
604
|
-
var
|
|
602
|
+
if (W(Ge)) {
|
|
603
|
+
h.value = ee(!0);
|
|
604
|
+
var J = h.kind = "init";
|
|
605
605
|
} else
|
|
606
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ?
|
|
607
|
-
if (h.key.type === "Identifier" && (
|
|
608
|
-
for (var
|
|
609
|
-
var
|
|
610
|
-
if (
|
|
611
|
-
var
|
|
612
|
-
|
|
606
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? C() : (A = c = !0, J = h.kind = h.key.name, h.key = j === He || j === lt ? st() : fe(!0), j !== pe && C(), h.value = Ct($(), !1));
|
|
607
|
+
if (h.key.type === "Identifier" && (se || c))
|
|
608
|
+
for (var ie = 0; ie < o.h.length; ++ie) {
|
|
609
|
+
var Be = o.h[ie];
|
|
610
|
+
if (Be.key.name === h.key.name) {
|
|
611
|
+
var Vt = J === Be.kind || A && Be.kind === "init" || J === "init" && (Be.kind === "get" || Be.kind === "set");
|
|
612
|
+
Vt && !se && J === "init" && Be.kind === "init" && (Vt = !1), Vt && n(h.key.start, "Redefinition of property");
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
o.h.push(h);
|
|
616
616
|
}
|
|
617
|
-
return
|
|
618
|
-
case
|
|
619
|
-
return o =
|
|
620
|
-
case
|
|
621
|
-
return o =
|
|
617
|
+
return E(o, "ObjectExpression");
|
|
618
|
+
case Mt:
|
|
619
|
+
return o = $(), y(), Ct(o, !1);
|
|
620
|
+
case An:
|
|
621
|
+
return o = $(), y(), o.callee = Ve(st(), !0), o.arguments = W(pe) ? Et(de, !1) : Ir, E(o, "NewExpression");
|
|
622
622
|
}
|
|
623
|
-
|
|
623
|
+
C();
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
j ===
|
|
625
|
+
function Ct(o, l) {
|
|
626
|
+
j === Pe ? o.id = fe() : l ? C() : o.id = null, o.oa = [];
|
|
627
627
|
var c = !0;
|
|
628
|
-
for (
|
|
629
|
-
c ? c = !1 :
|
|
630
|
-
c =
|
|
628
|
+
for (H(pe); !W(de); )
|
|
629
|
+
c ? c = !1 : H(Se), o.oa.push(fe());
|
|
630
|
+
c = $e;
|
|
631
631
|
var h = z;
|
|
632
|
-
if (
|
|
632
|
+
if ($e = !0, z = [], o.body = _(!0), $e = c, z = h, se || o.body.body.length && Ae(o.body.body[0])) {
|
|
633
633
|
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
634
|
-
if (h = 0 > c ? o.id : o.oa[c], (
|
|
634
|
+
if (h = 0 > c ? o.id : o.oa[c], (Vn(h.name) || ut(h.name)) && n(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
635
635
|
for (var A = 0; A < c; ++A)
|
|
636
636
|
h.name === o.oa[A].name && n(h.start, "Argument name clash in strict mode");
|
|
637
637
|
}
|
|
638
|
-
return
|
|
638
|
+
return E(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
639
639
|
}
|
|
640
|
-
function
|
|
641
|
-
for (var h = [], A = !0; !
|
|
640
|
+
function Et(o, l, c) {
|
|
641
|
+
for (var h = [], A = !0; !W(o); ) {
|
|
642
642
|
if (A)
|
|
643
643
|
A = !1;
|
|
644
|
-
else if (
|
|
644
|
+
else if (H(Se), l && R.sb && W(o))
|
|
645
645
|
break;
|
|
646
|
-
h.push(c && j === Se ? null :
|
|
646
|
+
h.push(c && j === Se ? null : ee(!0));
|
|
647
647
|
}
|
|
648
648
|
return h;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
var l =
|
|
652
|
-
return o && R.yb === "everywhere" && (o = !1), j ===
|
|
650
|
+
function fe(o) {
|
|
651
|
+
var l = $();
|
|
652
|
+
return o && R.yb === "everywhere" && (o = !1), j === Pe ? (!o && (R.yb && Ur(ce) || se && Vn(ce)) && x.slice(X, Oe).indexOf("\\") === -1 && n(X, "The keyword '" + ce + "' is reserved"), l.name = ce) : o && j.l ? l.name = j.l : C(), Le = !1, y(), E(l, "Identifier");
|
|
653
653
|
}
|
|
654
654
|
e.version = "0.5.0";
|
|
655
|
-
var R, x = "",
|
|
655
|
+
var R, x = "", Re, It;
|
|
656
656
|
e.parse = function(o, l) {
|
|
657
|
-
x = String(o),
|
|
658
|
-
for (var c in
|
|
659
|
-
Object.prototype.hasOwnProperty.call(R, c) || (R[c] =
|
|
660
|
-
for (
|
|
661
|
-
c =
|
|
662
|
-
return
|
|
657
|
+
x = String(o), Re = x.length, R = l || {};
|
|
658
|
+
for (var c in pn)
|
|
659
|
+
Object.prototype.hasOwnProperty.call(R, c) || (R[c] = pn[c]);
|
|
660
|
+
for (It = R.sourceFile, Ee = 1, d = he = 0, Le = !0, f(), c = R.dc, At = be = d, R.C && (Rt = new a()), $e = se = !1, z = [], v(), o = c || $(), l = !0, c || (o.body = []); j !== Ot; )
|
|
661
|
+
c = T(), o.body.push(c), l && Ae(c) && K(!0), l = !1;
|
|
662
|
+
return E(o, "Program");
|
|
663
663
|
};
|
|
664
|
-
var
|
|
664
|
+
var pn = {
|
|
665
665
|
fc: !1,
|
|
666
666
|
sb: !0,
|
|
667
667
|
yb: !1,
|
|
@@ -672,110 +672,110 @@ var F, ti = function(e) {
|
|
|
672
672
|
dc: null,
|
|
673
673
|
sourceFile: null,
|
|
674
674
|
vb: null
|
|
675
|
-
}, d = 0, X = 0,
|
|
675
|
+
}, d = 0, X = 0, Oe = 0, Tt, jt, j, ce, Le, Ee, he, At = 0, be = 0, Rt, $e, z, se, Ir = [], He = {
|
|
676
676
|
type: "num"
|
|
677
|
-
},
|
|
677
|
+
}, mn = {
|
|
678
678
|
type: "regexp"
|
|
679
|
-
},
|
|
679
|
+
}, lt = {
|
|
680
680
|
type: "string"
|
|
681
|
-
},
|
|
681
|
+
}, Pe = {
|
|
682
682
|
type: "name"
|
|
683
|
-
}, Rt = {
|
|
684
|
-
type: "eof"
|
|
685
683
|
}, Ot = {
|
|
686
|
-
|
|
684
|
+
type: "eof"
|
|
687
685
|
}, Pt = {
|
|
686
|
+
l: "break"
|
|
687
|
+
}, Nt = {
|
|
688
688
|
l: "case",
|
|
689
689
|
m: !0
|
|
690
|
-
},
|
|
690
|
+
}, gn = {
|
|
691
691
|
l: "catch"
|
|
692
|
-
},
|
|
692
|
+
}, vn = {
|
|
693
693
|
l: "continue"
|
|
694
|
-
},
|
|
694
|
+
}, yn = {
|
|
695
695
|
l: "debugger"
|
|
696
696
|
}, xn = {
|
|
697
697
|
l: "default"
|
|
698
|
-
},
|
|
698
|
+
}, bn = {
|
|
699
699
|
l: "do",
|
|
700
700
|
W: !0
|
|
701
|
-
},
|
|
701
|
+
}, Sn = {
|
|
702
702
|
l: "else",
|
|
703
703
|
m: !0
|
|
704
|
-
},
|
|
704
|
+
}, wn = {
|
|
705
705
|
l: "finally"
|
|
706
|
-
},
|
|
706
|
+
}, kn = {
|
|
707
707
|
l: "for",
|
|
708
708
|
W: !0
|
|
709
|
-
},
|
|
709
|
+
}, Mt = {
|
|
710
710
|
l: "function"
|
|
711
|
-
},
|
|
711
|
+
}, Cn = {
|
|
712
712
|
l: "if"
|
|
713
|
-
},
|
|
713
|
+
}, En = {
|
|
714
714
|
l: "return",
|
|
715
715
|
m: !0
|
|
716
|
-
},
|
|
716
|
+
}, Bt = {
|
|
717
717
|
l: "switch"
|
|
718
|
-
},
|
|
718
|
+
}, In = {
|
|
719
719
|
l: "throw",
|
|
720
720
|
m: !0
|
|
721
|
-
},
|
|
721
|
+
}, Tn = {
|
|
722
722
|
l: "try"
|
|
723
|
-
}, Bt = {
|
|
724
|
-
l: "var"
|
|
725
723
|
}, Ft = {
|
|
724
|
+
l: "var"
|
|
725
|
+
}, Ut = {
|
|
726
726
|
l: "while",
|
|
727
727
|
W: !0
|
|
728
|
-
},
|
|
728
|
+
}, jn = {
|
|
729
729
|
l: "with"
|
|
730
|
-
},
|
|
730
|
+
}, An = {
|
|
731
731
|
l: "new",
|
|
732
732
|
m: !0
|
|
733
|
-
},
|
|
733
|
+
}, Rn = {
|
|
734
734
|
l: "this"
|
|
735
|
-
},
|
|
735
|
+
}, On = {
|
|
736
736
|
l: "null",
|
|
737
737
|
$a: null
|
|
738
|
-
},
|
|
738
|
+
}, Pn = {
|
|
739
739
|
l: "true",
|
|
740
740
|
$a: !0
|
|
741
|
-
},
|
|
741
|
+
}, Nn = {
|
|
742
742
|
l: "false",
|
|
743
743
|
$a: !1
|
|
744
|
-
},
|
|
744
|
+
}, ct = {
|
|
745
745
|
l: "in",
|
|
746
746
|
L: 7,
|
|
747
747
|
m: !0
|
|
748
|
-
},
|
|
749
|
-
break:
|
|
750
|
-
case:
|
|
751
|
-
catch:
|
|
752
|
-
continue:
|
|
753
|
-
debugger:
|
|
748
|
+
}, Tr = {
|
|
749
|
+
break: Pt,
|
|
750
|
+
case: Nt,
|
|
751
|
+
catch: gn,
|
|
752
|
+
continue: vn,
|
|
753
|
+
debugger: yn,
|
|
754
754
|
default: xn,
|
|
755
|
-
do:
|
|
756
|
-
else:
|
|
757
|
-
finally:
|
|
758
|
-
for:
|
|
759
|
-
function:
|
|
760
|
-
if:
|
|
761
|
-
return:
|
|
762
|
-
switch:
|
|
763
|
-
throw:
|
|
764
|
-
try:
|
|
765
|
-
var:
|
|
766
|
-
while:
|
|
767
|
-
with:
|
|
768
|
-
null:
|
|
769
|
-
true:
|
|
770
|
-
false:
|
|
771
|
-
new:
|
|
772
|
-
in:
|
|
755
|
+
do: bn,
|
|
756
|
+
else: Sn,
|
|
757
|
+
finally: wn,
|
|
758
|
+
for: kn,
|
|
759
|
+
function: Mt,
|
|
760
|
+
if: Cn,
|
|
761
|
+
return: En,
|
|
762
|
+
switch: Bt,
|
|
763
|
+
throw: In,
|
|
764
|
+
try: Tn,
|
|
765
|
+
var: Ft,
|
|
766
|
+
while: Ut,
|
|
767
|
+
with: jn,
|
|
768
|
+
null: On,
|
|
769
|
+
true: Pn,
|
|
770
|
+
false: Nn,
|
|
771
|
+
new: An,
|
|
772
|
+
in: ct,
|
|
773
773
|
instanceof: {
|
|
774
774
|
l: "instanceof",
|
|
775
775
|
L: 7,
|
|
776
776
|
m: !0
|
|
777
777
|
},
|
|
778
|
-
this:
|
|
778
|
+
this: Rn,
|
|
779
779
|
typeof: {
|
|
780
780
|
l: "typeof",
|
|
781
781
|
prefix: !0,
|
|
@@ -791,91 +791,91 @@ var F, ti = function(e) {
|
|
|
791
791
|
prefix: !0,
|
|
792
792
|
m: !0
|
|
793
793
|
}
|
|
794
|
-
},
|
|
794
|
+
}, _t = {
|
|
795
795
|
type: "[",
|
|
796
796
|
m: !0
|
|
797
|
-
},
|
|
797
|
+
}, Dt = {
|
|
798
798
|
type: "]"
|
|
799
|
-
},
|
|
799
|
+
}, Ke = {
|
|
800
800
|
type: "{",
|
|
801
801
|
m: !0
|
|
802
|
-
},
|
|
802
|
+
}, Ne = {
|
|
803
803
|
type: "}"
|
|
804
|
-
},
|
|
804
|
+
}, pe = {
|
|
805
805
|
type: "(",
|
|
806
806
|
m: !0
|
|
807
|
-
},
|
|
807
|
+
}, de = {
|
|
808
808
|
type: ")"
|
|
809
809
|
}, Se = {
|
|
810
810
|
type: ",",
|
|
811
811
|
m: !0
|
|
812
|
-
},
|
|
812
|
+
}, me = {
|
|
813
813
|
type: ";",
|
|
814
814
|
m: !0
|
|
815
|
-
},
|
|
815
|
+
}, Ge = {
|
|
816
816
|
type: ":",
|
|
817
817
|
m: !0
|
|
818
|
-
},
|
|
818
|
+
}, Mn = {
|
|
819
819
|
type: "."
|
|
820
|
-
},
|
|
820
|
+
}, Bn = {
|
|
821
821
|
type: "?",
|
|
822
822
|
m: !0
|
|
823
|
-
},
|
|
823
|
+
}, Fn = {
|
|
824
824
|
L: 10,
|
|
825
825
|
m: !0
|
|
826
|
-
},
|
|
826
|
+
}, Un = {
|
|
827
827
|
Cb: !0,
|
|
828
828
|
m: !0
|
|
829
|
-
},
|
|
829
|
+
}, Ie = {
|
|
830
830
|
Cb: !0,
|
|
831
831
|
m: !0
|
|
832
|
-
},
|
|
832
|
+
}, jr = {
|
|
833
833
|
cc: !0,
|
|
834
834
|
prefix: !0,
|
|
835
835
|
$b: !0
|
|
836
|
-
},
|
|
836
|
+
}, _n = {
|
|
837
837
|
prefix: !0,
|
|
838
838
|
m: !0
|
|
839
|
-
},
|
|
839
|
+
}, Dn = {
|
|
840
840
|
L: 1,
|
|
841
841
|
m: !0
|
|
842
|
-
},
|
|
842
|
+
}, Wn = {
|
|
843
843
|
L: 2,
|
|
844
844
|
m: !0
|
|
845
|
-
},
|
|
845
|
+
}, Ar = {
|
|
846
846
|
L: 3,
|
|
847
847
|
m: !0
|
|
848
|
-
},
|
|
848
|
+
}, Rr = {
|
|
849
849
|
L: 4,
|
|
850
850
|
m: !0
|
|
851
|
-
},
|
|
851
|
+
}, Or = {
|
|
852
852
|
L: 5,
|
|
853
853
|
m: !0
|
|
854
|
-
},
|
|
854
|
+
}, Pr = {
|
|
855
855
|
L: 6,
|
|
856
856
|
m: !0
|
|
857
|
-
},
|
|
857
|
+
}, Nr = {
|
|
858
858
|
L: 7,
|
|
859
859
|
m: !0
|
|
860
|
-
},
|
|
860
|
+
}, Mr = {
|
|
861
861
|
L: 8,
|
|
862
862
|
m: !0
|
|
863
|
-
},
|
|
863
|
+
}, Br = {
|
|
864
864
|
L: 9,
|
|
865
865
|
prefix: !0,
|
|
866
866
|
m: !0
|
|
867
|
-
},
|
|
867
|
+
}, Fr = {
|
|
868
868
|
L: 10,
|
|
869
869
|
m: !0
|
|
870
|
-
},
|
|
870
|
+
}, Ur = i("class enum extends super const export import"), Vn = i("implements interface let package private protected public static yield"), ut = i("eval arguments"), _r = 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"), Dr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ln = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Wr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), dt = /[\n\r\u2028\u2029]/, ft = /\r\n|[\n\r\u2028\u2029]/g, Me, Wt = {
|
|
871
871
|
kind: "loop"
|
|
872
|
-
},
|
|
872
|
+
}, Vr = {
|
|
873
873
|
kind: "switch"
|
|
874
874
|
};
|
|
875
|
-
},
|
|
876
|
-
|
|
875
|
+
}, zt = zt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
876
|
+
ei(zt.j || (zt.j = {}));
|
|
877
877
|
function m(e, t) {
|
|
878
|
-
typeof e == "string" && (e =
|
|
878
|
+
typeof e == "string" && (e = _e(e, "code"));
|
|
879
879
|
var r = e.constructor;
|
|
880
880
|
this.ya = function() {
|
|
881
881
|
return new r({
|
|
@@ -889,80 +889,80 @@ function m(e, t) {
|
|
|
889
889
|
var a, s;
|
|
890
890
|
for (s in this)
|
|
891
891
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
892
|
-
this.N =
|
|
893
|
-
`), "polyfills"), this.ba = void 0,
|
|
892
|
+
this.N = Yt(this, this.ra, null), this.Na = this.N.object, this.ra = _e(this.ba.join(`
|
|
893
|
+
`), "polyfills"), this.ba = void 0, vt(this.ra), a = new w(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = n, a = new w(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
894
894
|
}
|
|
895
|
-
var
|
|
895
|
+
var zn = {
|
|
896
896
|
C: !0,
|
|
897
897
|
kc: 5
|
|
898
|
-
},
|
|
898
|
+
}, tn = {
|
|
899
899
|
configurable: !0,
|
|
900
900
|
enumerable: !0,
|
|
901
901
|
writable: !1
|
|
902
|
-
},
|
|
902
|
+
}, S = {
|
|
903
903
|
configurable: !0,
|
|
904
904
|
enumerable: !1,
|
|
905
905
|
writable: !0
|
|
906
|
-
},
|
|
906
|
+
}, ae = {
|
|
907
907
|
configurable: !0,
|
|
908
908
|
enumerable: !1,
|
|
909
909
|
writable: !1
|
|
910
|
-
},
|
|
910
|
+
}, ze = {
|
|
911
911
|
configurable: !1,
|
|
912
912
|
enumerable: !1,
|
|
913
913
|
writable: !1
|
|
914
|
-
},
|
|
914
|
+
}, Xn = {
|
|
915
915
|
configurable: !1,
|
|
916
916
|
enumerable: !0,
|
|
917
917
|
writable: !0
|
|
918
|
-
},
|
|
918
|
+
}, pr = {
|
|
919
919
|
STEP_ERROR: !0
|
|
920
|
-
},
|
|
920
|
+
}, We = {
|
|
921
921
|
SCOPE_REFERENCE: !0
|
|
922
|
-
},
|
|
922
|
+
}, et = {
|
|
923
923
|
VALUE_IN_DESCRIPTOR: !0
|
|
924
|
-
},
|
|
924
|
+
}, Fe = {
|
|
925
925
|
REGEXP_TIMEOUT: !0
|
|
926
|
-
},
|
|
927
|
-
function
|
|
926
|
+
}, Yn = [], ve = null, Ze = null, we = typeof globalThis == "undefined" ? 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();", "};"];
|
|
927
|
+
function nn(e) {
|
|
928
928
|
var t = e >>> 0;
|
|
929
929
|
return t === Number(e) ? t : NaN;
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function Qe(e) {
|
|
932
932
|
var t = e >>> 0;
|
|
933
933
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function vt(e, t, r) {
|
|
936
936
|
t ? e.start = t : delete e.start, r ? e.end = r : delete e.end;
|
|
937
937
|
for (var n in e)
|
|
938
938
|
if (n !== "loc" && e.hasOwnProperty(n)) {
|
|
939
939
|
var i = e[n];
|
|
940
|
-
i && typeof i == "object" &&
|
|
940
|
+
i && typeof i == "object" && vt(i, t, r);
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
943
|
m.prototype.REGEXP_MODE = 2;
|
|
944
944
|
m.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
945
945
|
m.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
function
|
|
946
|
+
D = m.prototype;
|
|
947
|
+
D.P = !1;
|
|
948
|
+
D.Ka = !1;
|
|
949
|
+
D.Kb = 0;
|
|
950
|
+
D.ic = 0;
|
|
951
|
+
function _e(e, t) {
|
|
952
952
|
var r = {}, n;
|
|
953
|
-
for (n in
|
|
954
|
-
r[n] =
|
|
953
|
+
for (n in zn)
|
|
954
|
+
r[n] = zn[n];
|
|
955
955
|
return r.sourceFile = t, we.j.parse(e, r);
|
|
956
956
|
}
|
|
957
|
-
|
|
957
|
+
D.Jb = function(e) {
|
|
958
958
|
var t = this.o[0];
|
|
959
959
|
if (!t || t.node.type !== "Program")
|
|
960
960
|
throw Error("Expecting original AST to start with a Program node");
|
|
961
|
-
if (typeof e == "string" && (e =
|
|
961
|
+
if (typeof e == "string" && (e = _e(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
962
962
|
throw Error("Expecting new AST to start with a Program node");
|
|
963
|
-
|
|
963
|
+
tt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
964
964
|
};
|
|
965
|
-
|
|
965
|
+
D.lb = function() {
|
|
966
966
|
var e = this.o, t;
|
|
967
967
|
do {
|
|
968
968
|
var r = e[e.length - 1];
|
|
@@ -974,23 +974,23 @@ F.lb = function() {
|
|
|
974
974
|
if (r = this.ca[0], !r || r.time > Date.now())
|
|
975
975
|
r = null;
|
|
976
976
|
else {
|
|
977
|
-
this.ca.shift(), 0 <= r.interval &&
|
|
978
|
-
var n = new
|
|
977
|
+
this.ca.shift(), 0 <= r.interval && vr(this, r, r.interval);
|
|
978
|
+
var n = new w(r.node, r.scope);
|
|
979
979
|
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
980
980
|
}
|
|
981
981
|
if (!r)
|
|
982
982
|
break;
|
|
983
983
|
}
|
|
984
984
|
n = r.node;
|
|
985
|
-
var i =
|
|
986
|
-
|
|
985
|
+
var i = Ze;
|
|
986
|
+
Ze = this;
|
|
987
987
|
try {
|
|
988
988
|
var a = this.rb[n.type](e, r, n);
|
|
989
989
|
} catch (s) {
|
|
990
|
-
if (s !==
|
|
990
|
+
if (s !== pr)
|
|
991
991
|
throw this.value !== s && (this.value = void 0), s;
|
|
992
992
|
} finally {
|
|
993
|
-
|
|
993
|
+
Ze = i;
|
|
994
994
|
}
|
|
995
995
|
if (a && e.push(a), this.P)
|
|
996
996
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -1000,122 +1000,122 @@ F.lb = function() {
|
|
|
1000
1000
|
} while (!n.end && t > Date.now());
|
|
1001
1001
|
return !0;
|
|
1002
1002
|
};
|
|
1003
|
-
|
|
1003
|
+
D.Eb = function() {
|
|
1004
1004
|
for (; !this.za && this.lb(); )
|
|
1005
1005
|
;
|
|
1006
1006
|
return this.za;
|
|
1007
1007
|
};
|
|
1008
|
-
function
|
|
1009
|
-
e.g(t, "NaN", NaN,
|
|
1008
|
+
function ni(e, t) {
|
|
1009
|
+
e.g(t, "NaN", NaN, ze), e.g(t, "Infinity", 1 / 0, ze), e.g(t, "undefined", void 0, ze), e.g(t, "window", t, tn), e.g(t, "this", t, ze), e.g(t, "self", t), e.M = new B(null), e.Z = new B(e.M), ri(e, t), ii(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), oi(e, t), ai(e, t), si(e, t), li(e, t), ci(e, t), ui(e, t), di(e, t), fi(e, t), hi(e, t);
|
|
1010
1010
|
var r = e.i(function() {
|
|
1011
1011
|
throw EvalError("Can't happen");
|
|
1012
1012
|
}, !1);
|
|
1013
|
-
r.eval = !0, e.g(t, "eval", r,
|
|
1013
|
+
r.eval = !0, e.g(t, "eval", r, S), e.g(t, "parseInt", e.i(parseInt, !1), S), e.g(t, "parseFloat", e.i(parseFloat, !1), S), e.g(t, "isNaN", e.i(isNaN, !1), S), e.g(t, "isFinite", e.i(isFinite, !1), S);
|
|
1014
1014
|
for (var n = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], i = 0; i < n.length; i++)
|
|
1015
1015
|
r = function(a) {
|
|
1016
1016
|
return function(s) {
|
|
1017
1017
|
try {
|
|
1018
1018
|
return a(s);
|
|
1019
1019
|
} catch (u) {
|
|
1020
|
-
|
|
1020
|
+
k(e, e.Gb, u.message);
|
|
1021
1021
|
}
|
|
1022
1022
|
};
|
|
1023
|
-
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1),
|
|
1023
|
+
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1), S);
|
|
1024
1024
|
r = function(a) {
|
|
1025
|
-
return
|
|
1026
|
-
}, e.g(t, "setTimeout", e.i(r, !1),
|
|
1027
|
-
return
|
|
1028
|
-
}, e.g(t, "setInterval", e.i(r, !1),
|
|
1029
|
-
|
|
1030
|
-
}, e.g(t, "clearTimeout", e.i(r, !1),
|
|
1031
|
-
|
|
1032
|
-
}, e.g(t, "clearInterval", e.i(r, !1),
|
|
1025
|
+
return Jn(e, !1, arguments);
|
|
1026
|
+
}, e.g(t, "setTimeout", e.i(r, !1), S), r = function(a) {
|
|
1027
|
+
return Jn(e, !0, arguments);
|
|
1028
|
+
}, e.g(t, "setInterval", e.i(r, !1), S), r = function(a) {
|
|
1029
|
+
qn(e, a);
|
|
1030
|
+
}, e.g(t, "clearTimeout", e.i(r, !1), S), r = function(a) {
|
|
1031
|
+
qn(e, a);
|
|
1032
|
+
}, e.g(t, "clearInterval", e.i(r, !1), S), 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);
|
|
1033
1033
|
}
|
|
1034
|
-
|
|
1035
|
-
function
|
|
1034
|
+
D.Wb = 0;
|
|
1035
|
+
function ri(e, t) {
|
|
1036
1036
|
var r = /^[A-Za-z_$][\w$]*$/, n = function(i) {
|
|
1037
1037
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1038
1038
|
if (s) {
|
|
1039
1039
|
s = s.split(/\s*,\s*/);
|
|
1040
1040
|
for (var u = 0; u < s.length; u++) {
|
|
1041
1041
|
var f = s[u];
|
|
1042
|
-
r.test(f) ||
|
|
1042
|
+
r.test(f) || k(e, e.T, "Invalid function argument: " + f);
|
|
1043
1043
|
}
|
|
1044
1044
|
s = s.join(", ");
|
|
1045
1045
|
}
|
|
1046
1046
|
try {
|
|
1047
|
-
var g =
|
|
1047
|
+
var g = _e("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1048
1048
|
} catch (v) {
|
|
1049
|
-
|
|
1049
|
+
k(e, e.T, "Invalid code: " + v.message);
|
|
1050
1050
|
}
|
|
1051
|
-
return g.body.length !== 1 &&
|
|
1051
|
+
return g.body.length !== 1 && k(e, e.T, "Invalid code in function body"), an(e, g.body[0].la, e.N, "anonymous");
|
|
1052
1052
|
};
|
|
1053
|
-
e.O = e.i(n, !0), e.g(t, "Function", e.O,
|
|
1054
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1053
|
+
e.O = e.i(n, !0), e.g(t, "Function", e.O, S), e.g(e.O, "prototype", e.Z, S), e.g(e.Z, "constructor", e.O, S), e.Z.Ta = function() {
|
|
1054
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ae), e.Z.H = "Function", n = function(i, a) {
|
|
1055
1055
|
var s = e.o[e.o.length - 1];
|
|
1056
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof
|
|
1057
|
-
},
|
|
1056
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof B ? s.F = mr(e, a) : k(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1057
|
+
}, q(e, e.O, "apply", n), n = function(i) {
|
|
1058
1058
|
var a = e.o[e.o.length - 1];
|
|
1059
1059
|
a.U = this, a.B = i, a.F = [];
|
|
1060
1060
|
for (var s = 1; s < arguments.length; s++)
|
|
1061
1061
|
a.F.push(arguments[s]);
|
|
1062
1062
|
a.eb = !1;
|
|
1063
|
-
},
|
|
1063
|
+
}, q(e, e.O, "call", n), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), n = function() {
|
|
1064
1064
|
return String(this);
|
|
1065
|
-
},
|
|
1065
|
+
}, q(e, e.O, "toString", n), e.g(e.O, "toString", e.i(n, !1), S), n = function() {
|
|
1066
1066
|
return this.valueOf();
|
|
1067
|
-
},
|
|
1067
|
+
}, q(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), S);
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function ii(e, t) {
|
|
1070
1070
|
function r(i) {
|
|
1071
|
-
i != null ||
|
|
1071
|
+
i != null || k(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1072
1072
|
}
|
|
1073
1073
|
var n = function(i) {
|
|
1074
1074
|
if (i == null)
|
|
1075
|
-
return
|
|
1076
|
-
if (!(i instanceof
|
|
1077
|
-
var a = e.s(
|
|
1075
|
+
return xe(e) ? this : e.s(e.M);
|
|
1076
|
+
if (!(i instanceof B)) {
|
|
1077
|
+
var a = e.s(ye(e, i));
|
|
1078
1078
|
return a.data = i, a;
|
|
1079
1079
|
}
|
|
1080
1080
|
return i;
|
|
1081
1081
|
};
|
|
1082
|
-
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M,
|
|
1083
|
-
return r(i),
|
|
1084
|
-
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1),
|
|
1085
|
-
return r(i), i instanceof
|
|
1086
|
-
}, e.g(e.v, "keys", e.i(n, !1),
|
|
1087
|
-
return i === null ? e.s(null) : (i instanceof
|
|
1088
|
-
}, e.g(e.v, "create", e.i(n, !1),
|
|
1089
|
-
return a = String(a), i instanceof
|
|
1090
|
-
}, e.g(e.v, "defineProperty", e.i(n, !1),
|
|
1091
|
-
if (i instanceof
|
|
1082
|
+
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M, S), e.g(e.M, "constructor", e.v, S), e.g(t, "Object", e.v, S), n = function(i) {
|
|
1083
|
+
return r(i), ge(e, Object.getOwnPropertyNames(i instanceof B ? i.h : i));
|
|
1084
|
+
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1), S), n = function(i) {
|
|
1085
|
+
return r(i), i instanceof B && (i = i.h), ge(e, Object.keys(i));
|
|
1086
|
+
}, e.g(e.v, "keys", e.i(n, !1), S), n = function(i) {
|
|
1087
|
+
return i === null ? e.s(null) : (i instanceof B || k(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1088
|
+
}, e.g(e.v, "create", e.i(n, !1), S), 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) {
|
|
1089
|
+
return a = String(a), i instanceof B || k(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof B || k(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || k(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, et, s.h), i;
|
|
1090
|
+
}, e.g(e.v, "defineProperty", e.i(n, !1), S), 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) {
|
|
1091
|
+
if (i instanceof B || k(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1092
1092
|
var s = Object.getOwnPropertyDescriptor(i.h, a), u = i.V[a];
|
|
1093
1093
|
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;
|
|
1094
1094
|
}
|
|
1095
|
-
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1),
|
|
1096
|
-
return r(i),
|
|
1097
|
-
}, e.g(e.v, "getPrototypeOf", e.i(n, !1),
|
|
1095
|
+
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1), S), n = function(i) {
|
|
1096
|
+
return r(i), ye(e, i);
|
|
1097
|
+
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), S), n = function(i) {
|
|
1098
1098
|
return !!i && !i.preventExtensions;
|
|
1099
|
-
}, e.g(e.v, "isExtensible", e.i(n, !1),
|
|
1100
|
-
return i instanceof
|
|
1101
|
-
}, e.g(e.v, "preventExtensions", e.i(n, !1),
|
|
1102
|
-
return r(this), this instanceof
|
|
1103
|
-
},
|
|
1104
|
-
return r(this), this instanceof
|
|
1105
|
-
},
|
|
1099
|
+
}, e.g(e.v, "isExtensible", e.i(n, !1), S), n = function(i) {
|
|
1100
|
+
return i instanceof B && (i.preventExtensions = !0), i;
|
|
1101
|
+
}, e.g(e.v, "preventExtensions", e.i(n, !1), S), q(e, e.v, "toString", B.prototype.toString), q(e, e.v, "toLocaleString", B.prototype.toString), q(e, e.v, "valueOf", B.prototype.valueOf), n = function(i) {
|
|
1102
|
+
return r(this), this instanceof B ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1103
|
+
}, q(e, e.v, "hasOwnProperty", n), n = function(i) {
|
|
1104
|
+
return r(this), this instanceof B ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1105
|
+
}, q(e, e.v, "propertyIsEnumerable", n), n = function(i) {
|
|
1106
1106
|
for (; ; ) {
|
|
1107
|
-
if (i =
|
|
1107
|
+
if (i = ye(e, i), !i)
|
|
1108
1108
|
return !1;
|
|
1109
1109
|
if (i === this)
|
|
1110
1110
|
return !0;
|
|
1111
1111
|
}
|
|
1112
|
-
},
|
|
1112
|
+
}, q(e, e.v, "isPrototypeOf", n);
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function oi(e, t) {
|
|
1115
1115
|
var r = function(n) {
|
|
1116
|
-
var i =
|
|
1116
|
+
var i = xe(e) ? this : De(e), a = arguments[0];
|
|
1117
1117
|
if (arguments.length === 1 && typeof a == "number")
|
|
1118
|
-
isNaN(
|
|
1118
|
+
isNaN(nn(a)) && k(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1119
1119
|
else {
|
|
1120
1120
|
for (a = 0; a < arguments.length; a++)
|
|
1121
1121
|
i.h[a] = arguments[a];
|
|
@@ -1123,88 +1123,88 @@ function ai(e, t) {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
return i;
|
|
1125
1125
|
};
|
|
1126
|
-
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa,
|
|
1126
|
+
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, S), r = function(n) {
|
|
1127
1127
|
return n && n.H === "Array";
|
|
1128
|
-
}, e.g(e.qa, "isArray", e.i(r, !1),
|
|
1128
|
+
}, e.g(e.qa, "isArray", e.i(r, !1), S), e.g(e.La, "length", 0, {
|
|
1129
1129
|
configurable: !1,
|
|
1130
1130
|
enumerable: !1,
|
|
1131
1131
|
writable: !0
|
|
1132
1132
|
}), 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(',');", "}", ");", "})();", "");
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function ai(e, t) {
|
|
1135
1135
|
var r = function(n) {
|
|
1136
|
-
return n = arguments.length ? we.String(n) : "",
|
|
1136
|
+
return n = arguments.length ? we.String(n) : "", xe(e) ? (this.data = n, this) : n;
|
|
1137
1137
|
};
|
|
1138
|
-
for (e.J = e.i(r, !0), e.g(t, "String", e.J,
|
|
1139
|
-
|
|
1138
|
+
for (e.J = e.i(r, !0), e.g(t, "String", e.J, S), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), S), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), r = 0; r < t.length; r++)
|
|
1139
|
+
q(e, e.J, t[r], String.prototype[t[r]]);
|
|
1140
1140
|
r = function(n, i, a) {
|
|
1141
1141
|
i = e.R(i), a = e.R(a);
|
|
1142
1142
|
try {
|
|
1143
1143
|
return String(this).localeCompare(n, i, a);
|
|
1144
1144
|
} catch (s) {
|
|
1145
|
-
|
|
1145
|
+
k(e, e.D, "localeCompare: " + s.message);
|
|
1146
1146
|
}
|
|
1147
|
-
},
|
|
1147
|
+
}, q(e, e.J, "localeCompare", r), r = function(n, i, a) {
|
|
1148
1148
|
var s = String(this);
|
|
1149
|
-
if (i = i ? Number(i) : void 0,
|
|
1150
|
-
if (
|
|
1151
|
-
n =
|
|
1149
|
+
if (i = i ? Number(i) : void 0, Q(e, n, e.I) && (n = n.data, Ye(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1150
|
+
if (ve)
|
|
1151
|
+
n = Xe(e, "string.split(separator, limit)", {
|
|
1152
1152
|
string: s,
|
|
1153
1153
|
separator: n,
|
|
1154
1154
|
limit: i
|
|
1155
|
-
}, n, a), n !==
|
|
1155
|
+
}, n, a), n !== Fe && a(ge(e, n));
|
|
1156
1156
|
else {
|
|
1157
|
-
var u = e.ha(), f =
|
|
1157
|
+
var u = e.ha(), f = Je(e, n, u, a);
|
|
1158
1158
|
u.onmessage = function(g) {
|
|
1159
|
-
clearTimeout(f), a(
|
|
1159
|
+
clearTimeout(f), a(ge(e, g.data));
|
|
1160
1160
|
}, u.postMessage(["split", s, n, i]);
|
|
1161
1161
|
}
|
|
1162
1162
|
return;
|
|
1163
1163
|
}
|
|
1164
|
-
n = s.split(n, i), a(
|
|
1165
|
-
},
|
|
1164
|
+
n = s.split(n, i), a(ge(e, n));
|
|
1165
|
+
}, qe(e, e.J, "split", r), r = function(n, i) {
|
|
1166
1166
|
var a = String(this);
|
|
1167
|
-
if (n =
|
|
1168
|
-
if (
|
|
1169
|
-
n =
|
|
1167
|
+
if (n = Q(e, n, e.I) ? n.data : new RegExp(n), Ye(e, n, i), e.REGEXP_MODE === 2)
|
|
1168
|
+
if (ve)
|
|
1169
|
+
n = Xe(e, "string.match(regexp)", {
|
|
1170
1170
|
string: a,
|
|
1171
1171
|
regexp: n
|
|
1172
|
-
}, n, i), n !==
|
|
1172
|
+
}, n, i), n !== Fe && i(n && ge(e, n));
|
|
1173
1173
|
else {
|
|
1174
|
-
var s = e.ha(), u =
|
|
1174
|
+
var s = e.ha(), u = Je(e, n, s, i);
|
|
1175
1175
|
s.onmessage = function(f) {
|
|
1176
|
-
clearTimeout(u), i(f.data &&
|
|
1176
|
+
clearTimeout(u), i(f.data && ge(e, f.data));
|
|
1177
1177
|
}, s.postMessage(["match", a, n]);
|
|
1178
1178
|
}
|
|
1179
1179
|
else
|
|
1180
|
-
n = a.match(n), i(n &&
|
|
1181
|
-
},
|
|
1180
|
+
n = a.match(n), i(n && ge(e, n));
|
|
1181
|
+
}, qe(e, e.J, "match", r), r = function(n, i) {
|
|
1182
1182
|
var a = String(this);
|
|
1183
|
-
if (
|
|
1184
|
-
if (
|
|
1185
|
-
n =
|
|
1183
|
+
if (Q(e, n, e.I) ? n = n.data : n = new RegExp(n), Ye(e, n, i), e.REGEXP_MODE === 2)
|
|
1184
|
+
if (ve)
|
|
1185
|
+
n = Xe(e, "string.search(regexp)", {
|
|
1186
1186
|
string: a,
|
|
1187
1187
|
regexp: n
|
|
1188
|
-
}, n, i), n !==
|
|
1188
|
+
}, n, i), n !== Fe && i(n);
|
|
1189
1189
|
else {
|
|
1190
|
-
var s = e.ha(), u =
|
|
1190
|
+
var s = e.ha(), u = Je(e, n, s, i);
|
|
1191
1191
|
s.onmessage = function(f) {
|
|
1192
1192
|
clearTimeout(u), i(f.data);
|
|
1193
1193
|
}, s.postMessage(["search", a, n]);
|
|
1194
1194
|
}
|
|
1195
1195
|
else
|
|
1196
1196
|
i(a.search(n));
|
|
1197
|
-
},
|
|
1197
|
+
}, qe(e, e.J, "search", r), r = function(n, i, a) {
|
|
1198
1198
|
var s = String(this);
|
|
1199
|
-
if (i = String(i),
|
|
1200
|
-
if (
|
|
1201
|
-
n =
|
|
1199
|
+
if (i = String(i), Q(e, n, e.I) && (n = n.data, Ye(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1200
|
+
if (ve)
|
|
1201
|
+
n = Xe(e, "string.replace(substr, newSubstr)", {
|
|
1202
1202
|
string: s,
|
|
1203
1203
|
substr: n,
|
|
1204
1204
|
newSubstr: i
|
|
1205
|
-
}, n, a), n !==
|
|
1205
|
+
}, n, a), n !== Fe && a(n);
|
|
1206
1206
|
else {
|
|
1207
|
-
var u = e.ha(), f =
|
|
1207
|
+
var u = e.ha(), f = Je(e, n, u, a);
|
|
1208
1208
|
u.onmessage = function(g) {
|
|
1209
1209
|
clearTimeout(f), a(g.data);
|
|
1210
1210
|
}, u.postMessage(["replace", s, n, i]);
|
|
@@ -1212,173 +1212,173 @@ function si(e, t) {
|
|
|
1212
1212
|
return;
|
|
1213
1213
|
}
|
|
1214
1214
|
a(s.replace(n, i));
|
|
1215
|
-
},
|
|
1215
|
+
}, qe(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;", "};", "})();", "");
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function si(e, t) {
|
|
1218
1218
|
e.mb = e.i(function(r) {
|
|
1219
|
-
return r = we.Boolean(r),
|
|
1220
|
-
}, !0), e.g(t, "Boolean", e.mb,
|
|
1219
|
+
return r = we.Boolean(r), xe(e) ? (this.data = r, this) : r;
|
|
1220
|
+
}, !0), e.g(t, "Boolean", e.mb, S);
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function li(e, t) {
|
|
1223
1223
|
var r = function(n) {
|
|
1224
|
-
return n = arguments.length ? we.Number(n) : 0,
|
|
1224
|
+
return n = arguments.length ? we.Number(n) : 0, xe(e) ? (this.data = n, this) : n;
|
|
1225
1225
|
};
|
|
1226
|
-
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa,
|
|
1227
|
-
e.g(e.aa, t[r], Number[t[r]],
|
|
1226
|
+
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa, S), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], r = 0; r < t.length; r++)
|
|
1227
|
+
e.g(e.aa, t[r], Number[t[r]], ze);
|
|
1228
1228
|
r = function(n) {
|
|
1229
1229
|
try {
|
|
1230
1230
|
return Number(this).toExponential(n);
|
|
1231
1231
|
} catch (i) {
|
|
1232
|
-
|
|
1232
|
+
k(e, e.D, i.message);
|
|
1233
1233
|
}
|
|
1234
|
-
},
|
|
1234
|
+
}, q(e, e.aa, "toExponential", r), r = function(n) {
|
|
1235
1235
|
try {
|
|
1236
1236
|
return Number(this).toFixed(n);
|
|
1237
1237
|
} catch (i) {
|
|
1238
|
-
|
|
1238
|
+
k(e, e.D, i.message);
|
|
1239
1239
|
}
|
|
1240
|
-
},
|
|
1240
|
+
}, q(e, e.aa, "toFixed", r), r = function(n) {
|
|
1241
1241
|
try {
|
|
1242
1242
|
return Number(this).toPrecision(n);
|
|
1243
1243
|
} catch (i) {
|
|
1244
|
-
|
|
1244
|
+
k(e, e.D, i.message);
|
|
1245
1245
|
}
|
|
1246
|
-
},
|
|
1246
|
+
}, q(e, e.aa, "toPrecision", r), r = function(n) {
|
|
1247
1247
|
try {
|
|
1248
1248
|
return Number(this).toString(n);
|
|
1249
1249
|
} catch (i) {
|
|
1250
|
-
|
|
1250
|
+
k(e, e.D, i.message);
|
|
1251
1251
|
}
|
|
1252
|
-
},
|
|
1252
|
+
}, q(e, e.aa, "toString", r), r = function(n, i) {
|
|
1253
1253
|
n = n ? e.R(n) : void 0, i = i ? e.R(i) : void 0;
|
|
1254
1254
|
try {
|
|
1255
1255
|
return Number(this).toLocaleString(n, i);
|
|
1256
1256
|
} catch (a) {
|
|
1257
|
-
|
|
1257
|
+
k(e, e.D, "toLocaleString: " + a.message);
|
|
1258
1258
|
}
|
|
1259
|
-
},
|
|
1259
|
+
}, q(e, e.aa, "toLocaleString", r);
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function ci(e, t) {
|
|
1262
1262
|
var r = function(i, a) {
|
|
1263
|
-
if (!
|
|
1263
|
+
if (!xe(e))
|
|
1264
1264
|
return we.Date();
|
|
1265
1265
|
var s = [null].concat(Array.from(arguments));
|
|
1266
1266
|
return this.data = new (Function.prototype.bind.apply(we.Date, s))(), this;
|
|
1267
1267
|
};
|
|
1268
|
-
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$,
|
|
1268
|
+
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, S), e.g(e.$, "now", e.i(Date.now, !1), S), e.g(e.$, "parse", e.i(Date.parse, !1), S), e.g(e.$, "UTC", e.i(Date.UTC, !1), S), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
|
|
1269
1269
|
for (var n = 0; n < t.length; n++)
|
|
1270
1270
|
r = function(i) {
|
|
1271
1271
|
return function(a) {
|
|
1272
1272
|
var s = this.data;
|
|
1273
|
-
s instanceof Date ||
|
|
1273
|
+
s instanceof Date || k(e, e.j, i + " not called on a Date");
|
|
1274
1274
|
for (var u = [], f = 0; f < arguments.length; f++)
|
|
1275
1275
|
u[f] = e.R(arguments[f]);
|
|
1276
1276
|
return s[i].apply(s, u);
|
|
1277
1277
|
};
|
|
1278
|
-
}(t[n]),
|
|
1278
|
+
}(t[n]), q(e, e.$, t[n], r);
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function ui(e, t) {
|
|
1281
1281
|
var r = function(n, i) {
|
|
1282
|
-
if (
|
|
1282
|
+
if (xe(e))
|
|
1283
1283
|
var a = this;
|
|
1284
1284
|
else {
|
|
1285
|
-
if (i === void 0 &&
|
|
1285
|
+
if (i === void 0 && Q(e, n, e.I))
|
|
1286
1286
|
return n;
|
|
1287
1287
|
a = e.s(e.Ma);
|
|
1288
1288
|
}
|
|
1289
|
-
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) ||
|
|
1289
|
+
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) || k(e, e.T, "Invalid regexp flag: " + i);
|
|
1290
1290
|
try {
|
|
1291
1291
|
var s = new we.RegExp(n, i);
|
|
1292
1292
|
} catch (u) {
|
|
1293
|
-
|
|
1293
|
+
k(e, e.T, u.message);
|
|
1294
1294
|
}
|
|
1295
|
-
return
|
|
1295
|
+
return rn(e, a, s), a;
|
|
1296
1296
|
};
|
|
1297
|
-
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I,
|
|
1297
|
+
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, S), e.g(e.I.h.prototype, "global", void 0, ae), e.g(e.I.h.prototype, "ignoreCase", void 0, ae), e.g(e.I.h.prototype, "multiline", void 0, ae), e.g(e.I.h.prototype, "source", "(?:)", ae), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, i) {
|
|
1298
1298
|
function a(v) {
|
|
1299
1299
|
if (v) {
|
|
1300
|
-
var
|
|
1301
|
-
return e.g(
|
|
1300
|
+
var b = ge(e, v);
|
|
1301
|
+
return e.g(b, "index", v.index), e.g(b, "input", v.input), b;
|
|
1302
1302
|
}
|
|
1303
1303
|
return null;
|
|
1304
1304
|
}
|
|
1305
1305
|
var s = this.data;
|
|
1306
|
-
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1307
|
-
if (
|
|
1308
|
-
n =
|
|
1306
|
+
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")), Ye(e, s, i), e.REGEXP_MODE === 2)
|
|
1307
|
+
if (ve)
|
|
1308
|
+
n = Xe(e, "regexp.exec(string)", {
|
|
1309
1309
|
string: n,
|
|
1310
1310
|
regexp: s
|
|
1311
|
-
}, s, i), n !==
|
|
1311
|
+
}, s, i), n !== Fe && (e.g(this, "lastIndex", s.lastIndex), i(a(n)));
|
|
1312
1312
|
else {
|
|
1313
|
-
var u = e.ha(), f =
|
|
1313
|
+
var u = e.ha(), f = Je(e, s, u, i), g = this;
|
|
1314
1314
|
u.onmessage = function(v) {
|
|
1315
1315
|
clearTimeout(f), e.g(g, "lastIndex", v.data[1]), i(a(v.data[0]));
|
|
1316
1316
|
}, u.postMessage(["exec", s, s.lastIndex, n]);
|
|
1317
1317
|
}
|
|
1318
1318
|
else
|
|
1319
1319
|
n = s.exec(n), e.g(this, "lastIndex", s.lastIndex), i(a(n));
|
|
1320
|
-
},
|
|
1320
|
+
}, qe(e, e.I, "exec", r);
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function di(e, t) {
|
|
1323
1323
|
function r(n) {
|
|
1324
1324
|
var i = e.i(function(a) {
|
|
1325
|
-
var s =
|
|
1326
|
-
return
|
|
1325
|
+
var s = xe(e) ? this : e.Aa(i);
|
|
1326
|
+
return Xt(e, s, a), s;
|
|
1327
1327
|
}, !0);
|
|
1328
|
-
return e.g(i, "prototype", e.Aa(e.D),
|
|
1328
|
+
return e.g(i, "prototype", e.Aa(e.D), S), e.g(i.h.prototype, "name", n, S), e.g(t, n, i, S), i;
|
|
1329
1329
|
}
|
|
1330
1330
|
e.D = e.i(function(n) {
|
|
1331
|
-
var i =
|
|
1332
|
-
return
|
|
1333
|
-
}, !0), e.g(t, "Error", e.D,
|
|
1331
|
+
var i = xe(e) ? this : e.Aa(e.D);
|
|
1332
|
+
return Xt(e, i, n), i;
|
|
1333
|
+
}, !0), e.g(t, "Error", e.D, S), e.g(e.D.h.prototype, "message", "", S), e.g(e.D.h.prototype, "name", "Error", S), r("EvalError"), e.ob = r("RangeError"), e.pb = r("ReferenceError"), e.T = r("SyntaxError"), e.j = r("TypeError"), e.Gb = r("URIError");
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function fi(e, t) {
|
|
1336
1336
|
var r = e.s(e.M);
|
|
1337
|
-
e.g(t, "Math", r,
|
|
1337
|
+
e.g(t, "Math", r, S);
|
|
1338
1338
|
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1339
1339
|
for (t = 0; t < n.length; t++)
|
|
1340
|
-
e.g(r, n[t], Math[n[t]],
|
|
1340
|
+
e.g(r, n[t], Math[n[t]], ae);
|
|
1341
1341
|
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++)
|
|
1342
|
-
e.g(r, n[t], e.i(Math[n[t]], !1),
|
|
1342
|
+
e.g(r, n[t], e.i(Math[n[t]], !1), S);
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function hi(e, t) {
|
|
1345
1345
|
var r = e.s(e.M);
|
|
1346
|
-
e.g(t, "JSON", r,
|
|
1346
|
+
e.g(t, "JSON", r, S), t = function(n) {
|
|
1347
1347
|
try {
|
|
1348
1348
|
var i = JSON.parse(String(n));
|
|
1349
1349
|
} catch (a) {
|
|
1350
|
-
|
|
1350
|
+
k(e, e.T, a.message);
|
|
1351
1351
|
}
|
|
1352
1352
|
return e.Ia(i);
|
|
1353
1353
|
}, e.g(r, "parse", e.i(t, !1)), t = function(n, i, a) {
|
|
1354
|
-
i && i.H === "Function" ?
|
|
1354
|
+
i && i.H === "Function" ? k(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = mr(e, i), i = i.filter(function(u) {
|
|
1355
1355
|
return typeof u == "string" || typeof u == "number";
|
|
1356
1356
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), n = e.R(n);
|
|
1357
1357
|
try {
|
|
1358
1358
|
var s = JSON.stringify(n, i, a);
|
|
1359
1359
|
} catch (u) {
|
|
1360
|
-
|
|
1360
|
+
k(e, e.j, u.message);
|
|
1361
1361
|
}
|
|
1362
1362
|
return s;
|
|
1363
1363
|
}, e.g(r, "stringify", e.i(t, !1));
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function Q(e, t, r) {
|
|
1366
1366
|
if (t == null || !r)
|
|
1367
1367
|
return !1;
|
|
1368
1368
|
if (r = r.h.prototype, t === r)
|
|
1369
1369
|
return !0;
|
|
1370
|
-
for (t =
|
|
1370
|
+
for (t = ye(e, t); t; ) {
|
|
1371
1371
|
if (t === r)
|
|
1372
1372
|
return !0;
|
|
1373
1373
|
t = t.xa;
|
|
1374
1374
|
}
|
|
1375
1375
|
return !1;
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1378
|
-
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex,
|
|
1377
|
+
function rn(e, t, r) {
|
|
1378
|
+
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, S), e.g(t, "source", r.source, ae), e.g(t, "global", r.global, ae), e.g(t, "ignoreCase", r.ignoreCase, ae), e.g(t, "multiline", r.multiline, ae);
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1381
|
-
r && e.g(t, "message", String(r),
|
|
1380
|
+
function Xt(e, t, r) {
|
|
1381
|
+
r && e.g(t, "message", String(r), S), r = [];
|
|
1382
1382
|
for (var n = e.o.length - 1; 0 <= n; n--) {
|
|
1383
1383
|
var i = e.o[n], a = i.node;
|
|
1384
1384
|
a.type === "CallExpression" && (i = i.U) && r.length && (r[r.length - 1].Ob = e.G(i, "name")), !a.X || r.length && a.type !== "CallExpression" || r.push({
|
|
@@ -1392,63 +1392,63 @@ function zt(e, t, r) {
|
|
|
1392
1392
|
`) : a + (" at " + s + `
|
|
1393
1393
|
`);
|
|
1394
1394
|
}
|
|
1395
|
-
e.g(t, "stack", a.trim(),
|
|
1395
|
+
e.g(t, "stack", a.trim(), S);
|
|
1396
1396
|
}
|
|
1397
|
-
|
|
1397
|
+
D.ha = function() {
|
|
1398
1398
|
var e = this.ha.Mb;
|
|
1399
|
-
return e || (e = new Blob([
|
|
1399
|
+
return e || (e = new Blob([ti.join(`
|
|
1400
1400
|
`)], {
|
|
1401
1401
|
type: "application/javascript"
|
|
1402
1402
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1403
1403
|
};
|
|
1404
|
-
function
|
|
1404
|
+
function Xe(e, t, r, n, i) {
|
|
1405
1405
|
var a = {
|
|
1406
1406
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1407
1407
|
};
|
|
1408
1408
|
try {
|
|
1409
|
-
return
|
|
1409
|
+
return ve.runInNewContext(t, r, a);
|
|
1410
1410
|
} catch {
|
|
1411
|
-
i(null),
|
|
1411
|
+
i(null), k(e, e.D, "RegExp Timeout: " + n);
|
|
1412
1412
|
}
|
|
1413
|
-
return
|
|
1413
|
+
return Fe;
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function Ye(e, t, r) {
|
|
1416
1416
|
if (e.REGEXP_MODE === 0)
|
|
1417
1417
|
var n = !1;
|
|
1418
1418
|
else if (e.REGEXP_MODE === 1)
|
|
1419
1419
|
n = !0;
|
|
1420
|
-
else if (
|
|
1420
|
+
else if (ve)
|
|
1421
1421
|
n = !0;
|
|
1422
1422
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1423
1423
|
n = !0;
|
|
1424
1424
|
else if (typeof require == "function") {
|
|
1425
1425
|
try {
|
|
1426
|
-
|
|
1426
|
+
ve = require("vm");
|
|
1427
1427
|
} catch {
|
|
1428
1428
|
}
|
|
1429
|
-
n = !!
|
|
1429
|
+
n = !!ve;
|
|
1430
1430
|
} else
|
|
1431
1431
|
n = !1;
|
|
1432
|
-
n || (r(null),
|
|
1432
|
+
n || (r(null), k(e, e.D, "Regular expressions not supported: " + t));
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function Je(e, t, r, n) {
|
|
1435
1435
|
return setTimeout(function() {
|
|
1436
1436
|
r.terminate(), n(null);
|
|
1437
1437
|
try {
|
|
1438
|
-
|
|
1438
|
+
k(e, e.D, "RegExp Timeout: " + t);
|
|
1439
1439
|
} catch {
|
|
1440
1440
|
}
|
|
1441
1441
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1442
1442
|
}
|
|
1443
|
-
|
|
1443
|
+
D.Aa = function(e) {
|
|
1444
1444
|
return this.s(e && e.h.prototype);
|
|
1445
1445
|
};
|
|
1446
|
-
|
|
1446
|
+
D.s = function(e) {
|
|
1447
1447
|
if (typeof e != "object")
|
|
1448
1448
|
throw Error("Non object prototype");
|
|
1449
|
-
return e = new
|
|
1449
|
+
return e = new B(e), Q(this, e, this.D) && (e.H = "Error"), e;
|
|
1450
1450
|
};
|
|
1451
|
-
function
|
|
1451
|
+
function De(e) {
|
|
1452
1452
|
var t = e.s(e.La);
|
|
1453
1453
|
return e.g(t, "length", 0, {
|
|
1454
1454
|
configurable: !1,
|
|
@@ -1456,29 +1456,29 @@ function _e(e) {
|
|
|
1456
1456
|
writable: !0
|
|
1457
1457
|
}), t.H = "Array", t;
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function on(e, t, r) {
|
|
1460
1460
|
var n = e.s(e.Z);
|
|
1461
|
-
return r ? (r = e.s(e.M), e.g(n, "prototype", r,
|
|
1461
|
+
return r ? (r = e.s(e.M), e.g(n, "prototype", r, S), e.g(r, "constructor", n, S)) : n.Ab = !0, e.g(n, "length", t, ae), n.H = "Function", n;
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1464
|
-
var i =
|
|
1465
|
-
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "",
|
|
1463
|
+
function an(e, t, r, n) {
|
|
1464
|
+
var i = on(e, t.oa.length, !0);
|
|
1465
|
+
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "", ae), i;
|
|
1466
1466
|
}
|
|
1467
|
-
|
|
1468
|
-
return t =
|
|
1467
|
+
D.i = function(e, t) {
|
|
1468
|
+
return t = on(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ae), t;
|
|
1469
1469
|
};
|
|
1470
|
-
|
|
1471
|
-
var t =
|
|
1472
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1470
|
+
D.ub = function(e) {
|
|
1471
|
+
var t = on(this, e.length, !0);
|
|
1472
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ae), t;
|
|
1473
1473
|
};
|
|
1474
|
-
|
|
1475
|
-
if (e instanceof
|
|
1474
|
+
D.Ia = function(e) {
|
|
1475
|
+
if (e instanceof B)
|
|
1476
1476
|
throw Error("Object is already pseudo");
|
|
1477
1477
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1478
1478
|
return e;
|
|
1479
1479
|
if (e instanceof RegExp) {
|
|
1480
1480
|
var t = this.s(this.Ma);
|
|
1481
|
-
return
|
|
1481
|
+
return rn(this, t, e), t;
|
|
1482
1482
|
}
|
|
1483
1483
|
if (e instanceof Date)
|
|
1484
1484
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1492,7 +1492,7 @@ F.Ia = function(e) {
|
|
|
1492
1492
|
}, !!t);
|
|
1493
1493
|
}
|
|
1494
1494
|
if (Array.isArray(e)) {
|
|
1495
|
-
t =
|
|
1495
|
+
t = De(this);
|
|
1496
1496
|
for (var n = 0; n < e.length; n++)
|
|
1497
1497
|
n in e && this.g(t, n, this.Ia(e[n]));
|
|
1498
1498
|
return t;
|
|
@@ -1502,14 +1502,14 @@ F.Ia = function(e) {
|
|
|
1502
1502
|
this.g(t, n, this.Ia(e[n]));
|
|
1503
1503
|
return t;
|
|
1504
1504
|
};
|
|
1505
|
-
|
|
1505
|
+
D.R = function(e, t) {
|
|
1506
1506
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1507
1507
|
return e;
|
|
1508
|
-
if (!(e instanceof
|
|
1508
|
+
if (!(e instanceof B))
|
|
1509
1509
|
throw Error("Object is not pseudo");
|
|
1510
|
-
if (
|
|
1510
|
+
if (Q(this, e, this.I))
|
|
1511
1511
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
1512
|
-
if (
|
|
1512
|
+
if (Q(this, e, this.$))
|
|
1513
1513
|
return new Date(e.data.valueOf());
|
|
1514
1514
|
t = t || {
|
|
1515
1515
|
hb: [],
|
|
@@ -1518,10 +1518,10 @@ F.R = function(e, t) {
|
|
|
1518
1518
|
var r = t.hb.indexOf(e);
|
|
1519
1519
|
if (r !== -1)
|
|
1520
1520
|
return t.Sa[r];
|
|
1521
|
-
if (t.hb.push(e),
|
|
1521
|
+
if (t.hb.push(e), Q(this, e, this.qa)) {
|
|
1522
1522
|
r = [], t.Sa.push(r);
|
|
1523
1523
|
for (var n = this.G(e, "length"), i = 0; i < n; i++)
|
|
1524
|
-
|
|
1524
|
+
yt(this, e, i) && (r[i] = this.R(this.G(e, i), t));
|
|
1525
1525
|
} else
|
|
1526
1526
|
for (n in r = {}, t.Sa.push(r), e.h)
|
|
1527
1527
|
i = this.R(e.h[n], t), Object.defineProperty(r, n, {
|
|
@@ -1532,18 +1532,18 @@ F.R = function(e, t) {
|
|
|
1532
1532
|
});
|
|
1533
1533
|
return t.hb.pop(), t.Sa.pop(), r;
|
|
1534
1534
|
};
|
|
1535
|
-
function
|
|
1536
|
-
for (var r =
|
|
1535
|
+
function ge(e, t) {
|
|
1536
|
+
for (var r = De(e), n = Object.getOwnPropertyNames(t), i = 0; i < n.length; i++)
|
|
1537
1537
|
e.g(r, n[i], t[n[i]]);
|
|
1538
1538
|
return r;
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function mr(e, t) {
|
|
1541
1541
|
var r = [], n;
|
|
1542
1542
|
for (n in t.h)
|
|
1543
1543
|
r[n] = e.G(t, n);
|
|
1544
|
-
return r.length =
|
|
1544
|
+
return r.length = nn(e.G(t, "length")) || 0, r;
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function ye(e, t) {
|
|
1547
1547
|
switch (typeof t) {
|
|
1548
1548
|
case "number":
|
|
1549
1549
|
return e.aa.h.prototype;
|
|
@@ -1554,52 +1554,52 @@ function ve(e, t) {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
return t ? t.xa : null;
|
|
1556
1556
|
}
|
|
1557
|
-
|
|
1557
|
+
D.G = function(e, t) {
|
|
1558
1558
|
if (this.P)
|
|
1559
1559
|
throw Error("Getter not supported in that context");
|
|
1560
|
-
if (t = String(t), e != null ||
|
|
1560
|
+
if (t = String(t), e != null || k(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof B))
|
|
1561
1561
|
throw TypeError("Expecting native value or pseudo object");
|
|
1562
1562
|
if (t === "length") {
|
|
1563
|
-
if (
|
|
1563
|
+
if (Q(this, e, this.J))
|
|
1564
1564
|
return String(e).length;
|
|
1565
|
-
} else if (64 > t.charCodeAt(0) &&
|
|
1566
|
-
var r =
|
|
1565
|
+
} else if (64 > t.charCodeAt(0) && Q(this, e, this.J)) {
|
|
1566
|
+
var r = Qe(t);
|
|
1567
1567
|
if (!isNaN(r) && r < String(e).length)
|
|
1568
1568
|
return String(e)[r];
|
|
1569
1569
|
}
|
|
1570
1570
|
do
|
|
1571
1571
|
if (e.h && t in e.h)
|
|
1572
1572
|
return (r = e.V[t]) ? (this.P = !0, r) : e.h[t];
|
|
1573
|
-
while (e =
|
|
1573
|
+
while (e = ye(this, e));
|
|
1574
1574
|
};
|
|
1575
|
-
function
|
|
1576
|
-
if (!(t instanceof
|
|
1575
|
+
function yt(e, t, r) {
|
|
1576
|
+
if (!(t instanceof B))
|
|
1577
1577
|
throw TypeError("Primitive data type has no properties");
|
|
1578
|
-
if (r = String(r), r === "length" &&
|
|
1578
|
+
if (r = String(r), r === "length" && Q(e, t, e.J))
|
|
1579
1579
|
return !0;
|
|
1580
|
-
if (
|
|
1581
|
-
var n =
|
|
1580
|
+
if (Q(e, t, e.J)) {
|
|
1581
|
+
var n = Qe(r);
|
|
1582
1582
|
if (!isNaN(n) && n < String(t).length)
|
|
1583
1583
|
return !0;
|
|
1584
1584
|
}
|
|
1585
1585
|
do
|
|
1586
1586
|
if (t.h && r in t.h)
|
|
1587
1587
|
return !0;
|
|
1588
|
-
while (t =
|
|
1588
|
+
while (t = ye(e, t));
|
|
1589
1589
|
return !1;
|
|
1590
1590
|
}
|
|
1591
|
-
|
|
1591
|
+
D.g = function(e, t, r, n) {
|
|
1592
1592
|
if (this.Ka)
|
|
1593
1593
|
throw Error("Setter not supported in that context");
|
|
1594
|
-
if (t = String(t), e != null ||
|
|
1594
|
+
if (t = String(t), e != null || k(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof B))
|
|
1595
1595
|
throw TypeError("Expecting native value or pseudo object");
|
|
1596
|
-
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) &&
|
|
1597
|
-
var i = !this.o ||
|
|
1598
|
-
if (e instanceof
|
|
1599
|
-
if (
|
|
1600
|
-
var a =
|
|
1596
|
+
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && k(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1597
|
+
var i = !this.o || sn(this).S;
|
|
1598
|
+
if (e instanceof B) {
|
|
1599
|
+
if (Q(this, e, this.J)) {
|
|
1600
|
+
var a = Qe(t);
|
|
1601
1601
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1602
|
-
i &&
|
|
1602
|
+
i && k(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1603
1603
|
return;
|
|
1604
1604
|
}
|
|
1605
1605
|
}
|
|
@@ -1610,64 +1610,64 @@ F.g = function(e, t, r, n) {
|
|
|
1610
1610
|
return;
|
|
1611
1611
|
r = n.value;
|
|
1612
1612
|
}
|
|
1613
|
-
if (r =
|
|
1613
|
+
if (r = nn(r), isNaN(r) && k(this, this.ob, "Invalid array length"), r < a)
|
|
1614
1614
|
for (s in e.h) {
|
|
1615
|
-
var s =
|
|
1615
|
+
var s = Qe(s);
|
|
1616
1616
|
!isNaN(s) && r <= s && delete e.h[s];
|
|
1617
1617
|
}
|
|
1618
1618
|
} else
|
|
1619
|
-
isNaN(s =
|
|
1619
|
+
isNaN(s = Qe(t)) || (e.h.length = Math.max(a, s + 1));
|
|
1620
1620
|
if (!e.preventExtensions || t in e.h)
|
|
1621
1621
|
if (n) {
|
|
1622
|
-
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 !==
|
|
1622
|
+
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 !== et && (i.value = r, delete e.V[t], delete e.Y[t]);
|
|
1623
1623
|
try {
|
|
1624
1624
|
Object.defineProperty(e.h, t, i);
|
|
1625
1625
|
} catch {
|
|
1626
|
-
|
|
1626
|
+
k(this, this.j, "Cannot redefine property: " + t);
|
|
1627
1627
|
}
|
|
1628
1628
|
"get" in n && !n.get && delete e.V[t], "set" in n && !n.set && delete e.Y[t];
|
|
1629
1629
|
} else {
|
|
1630
|
-
if (r ===
|
|
1630
|
+
if (r === et)
|
|
1631
1631
|
throw ReferenceError("Value not specified");
|
|
1632
1632
|
for (n = e; !(t in n.h); )
|
|
1633
|
-
if (n =
|
|
1633
|
+
if (n = ye(this, n), !n) {
|
|
1634
1634
|
n = e;
|
|
1635
1635
|
break;
|
|
1636
1636
|
}
|
|
1637
1637
|
if (n.Y && n.Y[t])
|
|
1638
1638
|
return this.Ka = !0, n.Y[t];
|
|
1639
1639
|
if (n.V && n.V[t])
|
|
1640
|
-
i &&
|
|
1640
|
+
i && k(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1641
1641
|
else
|
|
1642
1642
|
try {
|
|
1643
1643
|
e.h[t] = r;
|
|
1644
1644
|
} catch {
|
|
1645
|
-
i &&
|
|
1645
|
+
i && k(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1646
1646
|
}
|
|
1647
1647
|
}
|
|
1648
1648
|
else
|
|
1649
|
-
i &&
|
|
1649
|
+
i && k(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1650
1650
|
} else
|
|
1651
|
-
i &&
|
|
1651
|
+
i && k(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1652
1652
|
};
|
|
1653
|
-
|
|
1653
|
+
D.g.ac = function() {
|
|
1654
1654
|
throw Error("Placeholder getter");
|
|
1655
1655
|
};
|
|
1656
|
-
|
|
1656
|
+
D.g.bc = function() {
|
|
1657
1657
|
throw Error("Placeholder setter");
|
|
1658
1658
|
};
|
|
1659
|
-
function
|
|
1660
|
-
e.g(t.h.prototype, r, e.i(n, !1),
|
|
1659
|
+
function q(e, t, r, n) {
|
|
1660
|
+
e.g(t.h.prototype, r, e.i(n, !1), S);
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1663
|
-
e.g(t.h.prototype, r, e.ub(n),
|
|
1662
|
+
function qe(e, t, r, n) {
|
|
1663
|
+
e.g(t.h.prototype, r, e.ub(n), S);
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function sn(e) {
|
|
1666
1666
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1667
1667
|
throw Error("No scope found");
|
|
1668
1668
|
return e;
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1670
|
+
function Yt(e, t, r) {
|
|
1671
1671
|
var n = !1;
|
|
1672
1672
|
if (r && r.S)
|
|
1673
1673
|
n = !0;
|
|
@@ -1675,40 +1675,40 @@ function Xt(e, t, r) {
|
|
|
1675
1675
|
var i = t.body && t.body[0];
|
|
1676
1676
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (n = !0);
|
|
1677
1677
|
}
|
|
1678
|
-
return i = e.s(null), n = new
|
|
1678
|
+
return i = e.s(null), n = new yr(r, n, i), r || ni(e, n.object), tt(e, t, n), n;
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function ln(e, t, r) {
|
|
1681
1681
|
if (!t)
|
|
1682
1682
|
throw Error("parentScope required");
|
|
1683
|
-
return e = r || e.s(null), new
|
|
1683
|
+
return e = r || e.s(null), new yr(t, t.S, e);
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1686
|
-
for (var r =
|
|
1685
|
+
function cn(e, t) {
|
|
1686
|
+
for (var r = sn(e); r && r !== e.N; ) {
|
|
1687
1687
|
if (t in r.object.h)
|
|
1688
1688
|
return r.object.h[t];
|
|
1689
1689
|
r = r.Va;
|
|
1690
1690
|
}
|
|
1691
|
-
if (r === e.N &&
|
|
1691
|
+
if (r === e.N && yt(e, r.object, t))
|
|
1692
1692
|
return e.G(r.object, t);
|
|
1693
|
-
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" ||
|
|
1693
|
+
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || k(e, e.pb, t + " is not defined");
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1696
|
-
for (var n =
|
|
1695
|
+
function gr(e, t, r) {
|
|
1696
|
+
for (var n = sn(e), i = n.S; n && n !== e.N; ) {
|
|
1697
1697
|
if (t in n.object.h) {
|
|
1698
1698
|
try {
|
|
1699
1699
|
n.object.h[t] = r;
|
|
1700
1700
|
} catch {
|
|
1701
|
-
i &&
|
|
1701
|
+
i && k(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1702
1702
|
}
|
|
1703
1703
|
return;
|
|
1704
1704
|
}
|
|
1705
1705
|
n = n.Va;
|
|
1706
1706
|
}
|
|
1707
|
-
if (n === e.N && (!i ||
|
|
1707
|
+
if (n === e.N && (!i || yt(e, n.object, t)))
|
|
1708
1708
|
return e.g(n.object, t, r);
|
|
1709
|
-
|
|
1709
|
+
k(e, e.pb, t + " is not defined");
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function tt(e, t, r) {
|
|
1712
1712
|
if (t.jb)
|
|
1713
1713
|
var n = t.jb;
|
|
1714
1714
|
else {
|
|
@@ -1741,12 +1741,12 @@ function et(e, t, r) {
|
|
|
1741
1741
|
if (Array.isArray(u)) {
|
|
1742
1742
|
for (i = 0; i < u.length; i++)
|
|
1743
1743
|
if (u[i] && u[i].constructor === a) {
|
|
1744
|
-
var f =
|
|
1744
|
+
var f = tt(e, u[i], r);
|
|
1745
1745
|
for (s in f)
|
|
1746
1746
|
n[s] = f[s];
|
|
1747
1747
|
}
|
|
1748
1748
|
} else if (u.constructor === a)
|
|
1749
|
-
for (s in f =
|
|
1749
|
+
for (s in f = tt(e, u, r), f)
|
|
1750
1750
|
n[s] = f[s];
|
|
1751
1751
|
}
|
|
1752
1752
|
}
|
|
@@ -1754,22 +1754,22 @@ function et(e, t, r) {
|
|
|
1754
1754
|
t.jb = n;
|
|
1755
1755
|
}
|
|
1756
1756
|
for (s in n)
|
|
1757
|
-
n[s] === !0 ? e.g(r.object, s, void 0,
|
|
1757
|
+
n[s] === !0 ? e.g(r.object, s, void 0, Xn) : e.g(r.object, s, an(e, n[s], r), Xn);
|
|
1758
1758
|
return n;
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1760
|
+
function xe(e) {
|
|
1761
1761
|
return e.o[e.o.length - 1].isConstructor;
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1764
|
-
return t[0] ===
|
|
1763
|
+
function un(e, t) {
|
|
1764
|
+
return t[0] === We ? cn(e, t[1]) : e.G(t[0], t[1]);
|
|
1765
1765
|
}
|
|
1766
|
-
function
|
|
1767
|
-
return t[0] ===
|
|
1766
|
+
function dn(e, t, r) {
|
|
1767
|
+
return t[0] === We ? gr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1770
|
-
throw e.N ? (r !== void 0 && t instanceof
|
|
1769
|
+
function k(e, t, r) {
|
|
1770
|
+
throw e.N ? (r !== void 0 && t instanceof B && (t = e.Aa(t), Xt(e, t, r)), it(e, 4, t), pr) : r === void 0 ? t : r;
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function it(e, t, r, n) {
|
|
1773
1773
|
if (t === 0)
|
|
1774
1774
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1775
1775
|
var i = e.o;
|
|
@@ -1805,7 +1805,7 @@ function rt(e, t, r, n) {
|
|
|
1805
1805
|
} else if (t === 2 && (n ? a.labels && a.labels.indexOf(n) !== -1 : a.W))
|
|
1806
1806
|
return;
|
|
1807
1807
|
}
|
|
1808
|
-
throw
|
|
1808
|
+
throw Q(e, r, e.D) ? (t = {
|
|
1809
1809
|
EvalError,
|
|
1810
1810
|
RangeError,
|
|
1811
1811
|
ReferenceError,
|
|
@@ -1814,119 +1814,119 @@ function rt(e, t, r, n) {
|
|
|
1814
1814
|
URIError
|
|
1815
1815
|
}, 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;
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function oe(e, t) {
|
|
1818
1818
|
switch (t.type) {
|
|
1819
1819
|
case "ArrayExpression":
|
|
1820
1820
|
return "[...]";
|
|
1821
1821
|
case "BinaryExpression":
|
|
1822
1822
|
case "LogicalExpression":
|
|
1823
|
-
return
|
|
1823
|
+
return oe(e, t.left) + " " + t.operator + " " + oe(e, t.right);
|
|
1824
1824
|
case "CallExpression":
|
|
1825
|
-
return
|
|
1825
|
+
return oe(e, t.callee) + "(...)";
|
|
1826
1826
|
case "ConditionalExpression":
|
|
1827
|
-
return
|
|
1827
|
+
return oe(e, t.test) + " ? " + oe(e, t.da) + " : " + oe(e, t.alternate);
|
|
1828
1828
|
case "Identifier":
|
|
1829
1829
|
return t.name;
|
|
1830
1830
|
case "Literal":
|
|
1831
1831
|
return t.raw;
|
|
1832
1832
|
case "MemberExpression":
|
|
1833
|
-
var r =
|
|
1834
|
-
return e =
|
|
1833
|
+
var r = oe(e, t.object);
|
|
1834
|
+
return e = oe(e, t.Wa), t.bb ? r + "[" + e + "]" : r + "." + e;
|
|
1835
1835
|
case "NewExpression":
|
|
1836
|
-
return "new " +
|
|
1836
|
+
return "new " + oe(e, t.callee) + "(...)";
|
|
1837
1837
|
case "ObjectExpression":
|
|
1838
1838
|
return "{...}";
|
|
1839
1839
|
case "ThisExpression":
|
|
1840
1840
|
return "this";
|
|
1841
1841
|
case "UnaryExpression":
|
|
1842
|
-
return t.operator + " " +
|
|
1842
|
+
return t.operator + " " + oe(e, t.K);
|
|
1843
1843
|
case "UpdateExpression":
|
|
1844
|
-
return r =
|
|
1844
|
+
return r = oe(e, t.K), t.prefix ? t.operator + r : r + t.operator;
|
|
1845
1845
|
}
|
|
1846
1846
|
return "???";
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function Jn(e, t, r) {
|
|
1849
1849
|
var n = e.o[e.o.length - 1], i = Array.from(r), a = i.shift();
|
|
1850
1850
|
r = Math.max(Number(i.shift() || 0), 0);
|
|
1851
1851
|
var s = e.ya();
|
|
1852
|
-
if (a instanceof
|
|
1852
|
+
if (a instanceof B && a.H === "Function") {
|
|
1853
1853
|
var u = a;
|
|
1854
1854
|
s.type = "CallExpression", n = n.scope;
|
|
1855
1855
|
} else {
|
|
1856
1856
|
try {
|
|
1857
|
-
var f =
|
|
1857
|
+
var f = _e(String(a), "taskCode" + e.ic++);
|
|
1858
1858
|
} catch (g) {
|
|
1859
|
-
|
|
1859
|
+
k(e, e.T, "Invalid code: " + g.message);
|
|
1860
1860
|
}
|
|
1861
|
-
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0],
|
|
1861
|
+
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0], vt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, i.length = 0;
|
|
1862
1862
|
}
|
|
1863
|
-
return t = new
|
|
1863
|
+
return t = new pi(u, i, n, s, t ? r : -1), vr(e, t, r), t.Db;
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1865
|
+
function vr(e, t, r) {
|
|
1866
1866
|
t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(n, i) {
|
|
1867
1867
|
return n.time - i.time;
|
|
1868
1868
|
});
|
|
1869
1869
|
}
|
|
1870
|
-
function
|
|
1870
|
+
function qn(e, t) {
|
|
1871
1871
|
for (var r = 0; r < e.ca.length; r++)
|
|
1872
1872
|
if (e.ca[r].Db == t) {
|
|
1873
1873
|
e.ca.splice(r, 1);
|
|
1874
1874
|
break;
|
|
1875
1875
|
}
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function ot(e, t, r) {
|
|
1878
1878
|
if (!e.P)
|
|
1879
1879
|
throw Error("Unexpected call to createGetter");
|
|
1880
1880
|
e.P = !1, r = Array.isArray(r) ? r[0] : r;
|
|
1881
1881
|
var n = e.ya();
|
|
1882
|
-
return n.type = "CallExpression", e = new
|
|
1882
|
+
return n.type = "CallExpression", e = new w(n, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function fn(e, t, r, n) {
|
|
1885
1885
|
if (!e.Ka)
|
|
1886
1886
|
throw Error("Unexpected call to createSetter");
|
|
1887
1887
|
e.Ka = !1, r = Array.isArray(r) ? r[0] : e.Na;
|
|
1888
1888
|
var i = e.ya();
|
|
1889
|
-
return i.type = "CallExpression", e = new
|
|
1889
|
+
return i.type = "CallExpression", e = new w(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [n], e;
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1892
|
-
return t == null ? e.Na : t instanceof
|
|
1891
|
+
function Lt(e, t) {
|
|
1892
|
+
return t == null ? e.Na : t instanceof B ? t : (e = e.s(ye(e, t)), e.data = t, e);
|
|
1893
1893
|
}
|
|
1894
|
-
|
|
1894
|
+
D.Xb = function() {
|
|
1895
1895
|
return this.N;
|
|
1896
1896
|
};
|
|
1897
|
-
|
|
1897
|
+
D.Yb = function() {
|
|
1898
1898
|
return this.o;
|
|
1899
1899
|
};
|
|
1900
|
-
|
|
1900
|
+
D.ec = function(e) {
|
|
1901
1901
|
this.o = e;
|
|
1902
1902
|
};
|
|
1903
|
-
function
|
|
1903
|
+
function w(e, t) {
|
|
1904
1904
|
this.node = e, this.scope = t;
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function yr(e, t, r) {
|
|
1907
1907
|
this.Va = e, this.S = t, this.object = r;
|
|
1908
1908
|
}
|
|
1909
|
-
function
|
|
1909
|
+
function B(e) {
|
|
1910
1910
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1911
1911
|
}
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
if (!
|
|
1912
|
+
D = B.prototype;
|
|
1913
|
+
D.xa = null;
|
|
1914
|
+
D.H = "Object";
|
|
1915
|
+
D.data = null;
|
|
1916
|
+
D.toString = function() {
|
|
1917
|
+
if (!Ze)
|
|
1918
1918
|
return "[object Interpreter.Object]";
|
|
1919
|
-
if (!(this instanceof
|
|
1919
|
+
if (!(this instanceof B))
|
|
1920
1920
|
return String(this);
|
|
1921
1921
|
if (this.H === "Array") {
|
|
1922
|
-
var e =
|
|
1922
|
+
var e = Yn;
|
|
1923
1923
|
e.push(this);
|
|
1924
1924
|
try {
|
|
1925
1925
|
var t = [], r = this.h.length, n = !1;
|
|
1926
1926
|
1024 < r && (r = 1e3, n = !0);
|
|
1927
1927
|
for (var i = 0; i < r; i++) {
|
|
1928
1928
|
var a = this.h[i];
|
|
1929
|
-
t[i] = a instanceof
|
|
1929
|
+
t[i] = a instanceof B && e.indexOf(a) !== -1 ? "..." : a;
|
|
1930
1930
|
}
|
|
1931
1931
|
n && t.push("...");
|
|
1932
1932
|
} finally {
|
|
@@ -1935,7 +1935,7 @@ F.toString = function() {
|
|
|
1935
1935
|
return t.join(",");
|
|
1936
1936
|
}
|
|
1937
1937
|
if (this.H === "Error") {
|
|
1938
|
-
if (e =
|
|
1938
|
+
if (e = Yn, e.indexOf(this) !== -1)
|
|
1939
1939
|
return "[object Error]";
|
|
1940
1940
|
r = this;
|
|
1941
1941
|
do
|
|
@@ -1961,28 +1961,28 @@ F.toString = function() {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1963
1963
|
};
|
|
1964
|
-
|
|
1965
|
-
return !
|
|
1964
|
+
D.valueOf = function() {
|
|
1965
|
+
return !Ze || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1966
1966
|
};
|
|
1967
|
-
function
|
|
1968
|
-
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++
|
|
1967
|
+
function pi(e, t, r, n, i) {
|
|
1968
|
+
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++mi, this.time = 0;
|
|
1969
1969
|
}
|
|
1970
|
-
var
|
|
1970
|
+
var mi = 0;
|
|
1971
1971
|
m.prototype.stepArrayExpression = function(e, t, r) {
|
|
1972
1972
|
r = r.elements;
|
|
1973
1973
|
var n = t.A || 0;
|
|
1974
|
-
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa =
|
|
1974
|
+
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa = De(this), t.Oa.h.length = r.length); n < r.length; ) {
|
|
1975
1975
|
if (r[n])
|
|
1976
|
-
return t.A = n, new
|
|
1976
|
+
return t.A = n, new w(r[n], t.scope);
|
|
1977
1977
|
n++;
|
|
1978
1978
|
}
|
|
1979
1979
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1980
1980
|
};
|
|
1981
1981
|
m.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
1982
1982
|
if (!t.ja)
|
|
1983
|
-
return t.ja = !0, t = new
|
|
1983
|
+
return t.ja = !0, t = new w(r.left, t.scope), t.sa = !0, t;
|
|
1984
1984
|
if (!t.Da)
|
|
1985
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e =
|
|
1985
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e = un(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, ot(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new w(r.right, t.scope));
|
|
1986
1986
|
if (t.ta)
|
|
1987
1987
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1988
1988
|
else {
|
|
@@ -2027,16 +2027,16 @@ m.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
2027
2027
|
default:
|
|
2028
2028
|
throw SyntaxError("Unknown assignment expression: " + r.operator);
|
|
2029
2029
|
}
|
|
2030
|
-
if (r =
|
|
2031
|
-
return t.ta = !0, t.ib = n,
|
|
2030
|
+
if (r = dn(this, t.Fa, n))
|
|
2031
|
+
return t.ta = !0, t.ib = n, fn(this, r, t.Fa, n);
|
|
2032
2032
|
e.pop(), e[e.length - 1].value = n;
|
|
2033
2033
|
}
|
|
2034
2034
|
};
|
|
2035
2035
|
m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
2036
2036
|
if (!t.ja)
|
|
2037
|
-
return t.ja = !0, new
|
|
2037
|
+
return t.ja = !0, new w(r.left, t.scope);
|
|
2038
2038
|
if (!t.Da)
|
|
2039
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2039
|
+
return t.Da = !0, t.ma = t.value, new w(r.right, t.scope);
|
|
2040
2040
|
e.pop();
|
|
2041
2041
|
var n = t.ma;
|
|
2042
2042
|
switch (t = t.value, r.operator) {
|
|
@@ -2098,10 +2098,10 @@ m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2098
2098
|
r = n >>> t;
|
|
2099
2099
|
break;
|
|
2100
2100
|
case "in":
|
|
2101
|
-
t instanceof
|
|
2101
|
+
t instanceof B || k(this, this.j, "'in' expects an object, not '" + t + "'"), r = yt(this, t, n);
|
|
2102
2102
|
break;
|
|
2103
2103
|
case "instanceof":
|
|
2104
|
-
|
|
2104
|
+
Q(this, t, this.O) || k(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof B ? Q(this, n, t) : !1;
|
|
2105
2105
|
break;
|
|
2106
2106
|
default:
|
|
2107
2107
|
throw SyntaxError("Unknown binary operator: " + r.operator);
|
|
@@ -2111,35 +2111,35 @@ m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2111
2111
|
m.prototype.stepBlockStatement = function(e, t, r) {
|
|
2112
2112
|
var n = t.A || 0;
|
|
2113
2113
|
if (r = r.body[n])
|
|
2114
|
-
return t.A = n + 1, new
|
|
2114
|
+
return t.A = n + 1, new w(r, t.scope);
|
|
2115
2115
|
e.pop();
|
|
2116
2116
|
};
|
|
2117
2117
|
m.prototype.stepBreakStatement = function(e, t, r) {
|
|
2118
|
-
|
|
2118
|
+
it(this, 1, void 0, r.label && r.label.name);
|
|
2119
2119
|
};
|
|
2120
2120
|
m.prototype.Hb = 0;
|
|
2121
2121
|
m.prototype.stepCallExpression = function(e, t, r) {
|
|
2122
2122
|
if (!t.ia) {
|
|
2123
2123
|
t.ia = 1;
|
|
2124
|
-
var n = new
|
|
2124
|
+
var n = new w(r.callee, t.scope);
|
|
2125
2125
|
return n.sa = !0, n;
|
|
2126
2126
|
}
|
|
2127
2127
|
if (t.ia === 1) {
|
|
2128
2128
|
t.ia = 2;
|
|
2129
2129
|
var i = t.value;
|
|
2130
2130
|
if (Array.isArray(i)) {
|
|
2131
|
-
if (t.U =
|
|
2132
|
-
return t.ia = 1,
|
|
2131
|
+
if (t.U = un(this, i), i[0] === We ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2132
|
+
return t.ia = 1, ot(this, i, t.value);
|
|
2133
2133
|
} else
|
|
2134
2134
|
t.U = i;
|
|
2135
2135
|
t.F = [], t.A = 0;
|
|
2136
2136
|
}
|
|
2137
2137
|
if (i = t.U, !t.Qa) {
|
|
2138
2138
|
if (t.A !== 0 && t.F.push(t.value), r.arguments[t.A])
|
|
2139
|
-
return new
|
|
2139
|
+
return new w(r.arguments[t.A++], t.scope);
|
|
2140
2140
|
if (r.type === "NewExpression") {
|
|
2141
|
-
if (i instanceof
|
|
2142
|
-
t.B =
|
|
2141
|
+
if (i instanceof B && !i.Ab || k(this, this.j, oe(this, r.callee) + " is not a constructor"), i === this.qa)
|
|
2142
|
+
t.B = De(this);
|
|
2143
2143
|
else {
|
|
2144
2144
|
var a = i.h.prototype;
|
|
2145
2145
|
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
@@ -2151,61 +2151,61 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2151
2151
|
if (t.eb)
|
|
2152
2152
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2153
2153
|
else {
|
|
2154
|
-
if (t.eb = !0, i instanceof
|
|
2155
|
-
for (r =
|
|
2154
|
+
if (t.eb = !0, i instanceof B || k(this, this.j, oe(this, r.callee) + " is not a function"), e = i.node) {
|
|
2155
|
+
for (r = Yt(this, e.body, i.Va), n = De(this), i = 0; i < t.F.length; i++)
|
|
2156
2156
|
this.g(n, i, t.F[i]);
|
|
2157
2157
|
for (this.g(r.object, "arguments", n), i = 0; i < e.oa.length; i++)
|
|
2158
2158
|
this.g(r.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2159
|
-
return r.S || (t.B =
|
|
2159
|
+
return r.S || (t.B = Lt(this, t.B)), this.g(r.object, "this", t.B, tn), t.value = void 0, new w(e.body, r);
|
|
2160
2160
|
}
|
|
2161
2161
|
if (i.eval)
|
|
2162
2162
|
if (i = t.F[0], typeof i != "string")
|
|
2163
2163
|
t.value = i;
|
|
2164
2164
|
else {
|
|
2165
2165
|
try {
|
|
2166
|
-
n =
|
|
2166
|
+
n = _e(String(i), "eval" + this.Hb++);
|
|
2167
2167
|
} catch (u) {
|
|
2168
|
-
|
|
2168
|
+
k(this, this.T, "Invalid code: " + u.message);
|
|
2169
2169
|
}
|
|
2170
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body,
|
|
2170
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, vt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = Yt(this, n, r) : tt(this, n, r), this.value = void 0, new w(i, r);
|
|
2171
2171
|
}
|
|
2172
2172
|
else if (i.Ta)
|
|
2173
|
-
t.scope.S || (t.B =
|
|
2173
|
+
t.scope.S || (t.B = Lt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2174
2174
|
else if (i.Za) {
|
|
2175
2175
|
var s = this;
|
|
2176
2176
|
n = i.Za.length - 1, n = t.F.concat(Array(n)).slice(0, n), n.push(function(u) {
|
|
2177
2177
|
t.value = u, s.za = !1;
|
|
2178
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2178
|
+
}), this.za = !0, t.scope.S || (t.B = Lt(this, t.B)), i.Za.apply(t.B, n);
|
|
2179
2179
|
} else
|
|
2180
|
-
|
|
2180
|
+
k(this, this.j, oe(this, r.callee) + " is not callable");
|
|
2181
2181
|
}
|
|
2182
2182
|
};
|
|
2183
2183
|
m.prototype.stepConditionalExpression = function(e, t, r) {
|
|
2184
2184
|
var n = t.na || 0;
|
|
2185
2185
|
if (n === 0)
|
|
2186
|
-
return t.na = 1, new
|
|
2186
|
+
return t.na = 1, new w(r.test, t.scope);
|
|
2187
2187
|
if (n === 1) {
|
|
2188
2188
|
if (t.na = 2, (n = !!t.value) && r.da)
|
|
2189
|
-
return new
|
|
2189
|
+
return new w(r.da, t.scope);
|
|
2190
2190
|
if (!n && r.alternate)
|
|
2191
|
-
return new
|
|
2191
|
+
return new w(r.alternate, t.scope);
|
|
2192
2192
|
this.value = void 0;
|
|
2193
2193
|
}
|
|
2194
2194
|
e.pop(), r.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2195
2195
|
};
|
|
2196
2196
|
m.prototype.stepContinueStatement = function(e, t, r) {
|
|
2197
|
-
|
|
2197
|
+
it(this, 2, void 0, r.label && r.label.name);
|
|
2198
2198
|
};
|
|
2199
2199
|
m.prototype.stepDebuggerStatement = function(e) {
|
|
2200
2200
|
e.pop();
|
|
2201
2201
|
};
|
|
2202
2202
|
m.prototype.stepDoWhileStatement = function(e, t, r) {
|
|
2203
2203
|
if (r.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2204
|
-
return t.ga = !0, new
|
|
2204
|
+
return t.ga = !0, new w(r.test, t.scope);
|
|
2205
2205
|
if (!t.value)
|
|
2206
2206
|
e.pop();
|
|
2207
2207
|
else if (r.body)
|
|
2208
|
-
return t.ga = !1, t.W = !0, new
|
|
2208
|
+
return t.ga = !1, t.W = !0, new w(r.body, t.scope);
|
|
2209
2209
|
};
|
|
2210
2210
|
m.prototype.stepEmptyStatement = function(e) {
|
|
2211
2211
|
e.pop();
|
|
@@ -2213,23 +2213,23 @@ m.prototype.stepEmptyStatement = function(e) {
|
|
|
2213
2213
|
m.prototype.stepEvalProgram_ = function(e, t, r) {
|
|
2214
2214
|
var n = t.A || 0;
|
|
2215
2215
|
if (r = r.body[n])
|
|
2216
|
-
return t.A = n + 1, new
|
|
2216
|
+
return t.A = n + 1, new w(r, t.scope);
|
|
2217
2217
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2218
2218
|
};
|
|
2219
2219
|
m.prototype.stepExpressionStatement = function(e, t, r) {
|
|
2220
2220
|
if (!t.ka)
|
|
2221
|
-
return this.value = void 0, t.ka = !0, new
|
|
2221
|
+
return this.value = void 0, t.ka = !0, new w(r.la, t.scope);
|
|
2222
2222
|
e.pop(), this.value = t.value;
|
|
2223
2223
|
};
|
|
2224
2224
|
m.prototype.stepForInStatement = function(e, t, r) {
|
|
2225
2225
|
if (!t.Ub && (t.Ub = !0, r.left.fa && r.left.fa[0].ua))
|
|
2226
|
-
return t.scope.S &&
|
|
2226
|
+
return t.scope.S && k(this, this.T, "for-in loop variable declaration may not have an initializer"), new w(r.left, t.scope);
|
|
2227
2227
|
if (!t.Ca)
|
|
2228
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2228
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new w(r.right, t.scope);
|
|
2229
2229
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2230
2230
|
e:
|
|
2231
2231
|
for (; ; ) {
|
|
2232
|
-
if (t.u instanceof
|
|
2232
|
+
if (t.u instanceof B)
|
|
2233
2233
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2234
2234
|
var n = t.wa.shift();
|
|
2235
2235
|
if (n === void 0)
|
|
@@ -2246,91 +2246,91 @@ m.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2246
2246
|
break e;
|
|
2247
2247
|
}
|
|
2248
2248
|
}
|
|
2249
|
-
if (t.u =
|
|
2249
|
+
if (t.u = ye(this, t.u), t.wa = null, t.u === null) {
|
|
2250
2250
|
e.pop();
|
|
2251
2251
|
return;
|
|
2252
2252
|
}
|
|
2253
2253
|
}
|
|
2254
2254
|
if (!t.wb)
|
|
2255
2255
|
if (t.wb = !0, e = r.left, e.type === "VariableDeclaration")
|
|
2256
|
-
t.pa = [
|
|
2256
|
+
t.pa = [We, e.fa[0].id.name];
|
|
2257
2257
|
else
|
|
2258
|
-
return t.pa = null, t = new
|
|
2259
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n =
|
|
2260
|
-
return
|
|
2258
|
+
return t.pa = null, t = new w(e, t.scope), t.sa = !0, t;
|
|
2259
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = dn(this, t.pa, e)))
|
|
2260
|
+
return fn(this, n, t.pa, e);
|
|
2261
2261
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, r.body)
|
|
2262
|
-
return new
|
|
2262
|
+
return new w(r.body, t.scope);
|
|
2263
2263
|
};
|
|
2264
2264
|
m.prototype.stepForStatement = function(e, t, r) {
|
|
2265
2265
|
switch (t.na) {
|
|
2266
2266
|
default:
|
|
2267
2267
|
if (t.na = 1, r.ua)
|
|
2268
|
-
return new
|
|
2268
|
+
return new w(r.ua, t.scope);
|
|
2269
2269
|
break;
|
|
2270
2270
|
case 1:
|
|
2271
2271
|
if (t.na = 2, r.test)
|
|
2272
|
-
return new
|
|
2272
|
+
return new w(r.test, t.scope);
|
|
2273
2273
|
break;
|
|
2274
2274
|
case 2:
|
|
2275
2275
|
if (t.na = 3, r.test && !t.value)
|
|
2276
2276
|
e.pop();
|
|
2277
2277
|
else
|
|
2278
|
-
return t.W = !0, new
|
|
2278
|
+
return t.W = !0, new w(r.body, t.scope);
|
|
2279
2279
|
break;
|
|
2280
2280
|
case 3:
|
|
2281
2281
|
if (t.na = 1, r.update)
|
|
2282
|
-
return new
|
|
2282
|
+
return new w(r.update, t.scope);
|
|
2283
2283
|
}
|
|
2284
2284
|
};
|
|
2285
2285
|
m.prototype.stepFunctionDeclaration = function(e) {
|
|
2286
2286
|
e.pop();
|
|
2287
2287
|
};
|
|
2288
2288
|
m.prototype.stepFunctionExpression = function(e, t, r) {
|
|
2289
|
-
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e =
|
|
2289
|
+
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e = ln(this, e)), t.value = an(this, r, e, t.Pa), r.id && this.g(e.object, r.id.name, t.value, tn);
|
|
2290
2290
|
};
|
|
2291
2291
|
m.prototype.stepIdentifier = function(e, t, r) {
|
|
2292
2292
|
if (e.pop(), t.sa)
|
|
2293
|
-
e[e.length - 1].value = [
|
|
2293
|
+
e[e.length - 1].value = [We, r.name];
|
|
2294
2294
|
else {
|
|
2295
|
-
if (t =
|
|
2296
|
-
return
|
|
2295
|
+
if (t = cn(this, r.name), this.P)
|
|
2296
|
+
return ot(this, t, this.Na);
|
|
2297
2297
|
e[e.length - 1].value = t;
|
|
2298
2298
|
}
|
|
2299
2299
|
};
|
|
2300
2300
|
m.prototype.stepIfStatement = m.prototype.stepConditionalExpression;
|
|
2301
2301
|
m.prototype.stepLabeledStatement = function(e, t, r) {
|
|
2302
|
-
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new
|
|
2302
|
+
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new w(r.body, t.scope), t.labels = e, t;
|
|
2303
2303
|
};
|
|
2304
2304
|
m.prototype.stepLiteral = function(e, t, r) {
|
|
2305
|
-
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma),
|
|
2305
|
+
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma), rn(this, r, t), t = r), e[e.length - 1].value = t;
|
|
2306
2306
|
};
|
|
2307
2307
|
m.prototype.stepLogicalExpression = function(e, t, r) {
|
|
2308
2308
|
if (r.operator !== "&&" && r.operator !== "||")
|
|
2309
2309
|
throw SyntaxError("Unknown logical operator: " + r.operator);
|
|
2310
2310
|
if (!t.ja)
|
|
2311
|
-
return t.ja = !0, new
|
|
2311
|
+
return t.ja = !0, new w(r.left, t.scope);
|
|
2312
2312
|
if (t.Da)
|
|
2313
2313
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2314
2314
|
else if (r.operator === "&&" && !t.value || r.operator === "||" && t.value)
|
|
2315
2315
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2316
2316
|
else
|
|
2317
|
-
return t.Da = !0, new
|
|
2317
|
+
return t.Da = !0, new w(r.right, t.scope);
|
|
2318
2318
|
};
|
|
2319
2319
|
m.prototype.stepMemberExpression = function(e, t, r) {
|
|
2320
2320
|
if (!t.Ca)
|
|
2321
|
-
return t.Ca = !0, new
|
|
2321
|
+
return t.Ca = !0, new w(r.object, t.scope);
|
|
2322
2322
|
if (r.bb)
|
|
2323
2323
|
if (t.Vb)
|
|
2324
2324
|
r = t.value;
|
|
2325
2325
|
else
|
|
2326
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2326
|
+
return t.u = t.value, t.Vb = !0, new w(r.Wa, t.scope);
|
|
2327
2327
|
else
|
|
2328
2328
|
t.u = t.value, r = r.Wa.name;
|
|
2329
2329
|
if (e.pop(), t.sa)
|
|
2330
2330
|
e[e.length - 1].value = [t.u, r];
|
|
2331
2331
|
else {
|
|
2332
2332
|
if (r = this.G(t.u, r), this.P)
|
|
2333
|
-
return
|
|
2333
|
+
return ot(this, r, t.u);
|
|
2334
2334
|
e[e.length - 1].value = r;
|
|
2335
2335
|
}
|
|
2336
2336
|
};
|
|
@@ -2350,10 +2350,10 @@ m.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2350
2350
|
a = s.value;
|
|
2351
2351
|
else
|
|
2352
2352
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2353
|
-
return t.Pa = a, new
|
|
2353
|
+
return t.Pa = a, new w(i.value, t.scope);
|
|
2354
2354
|
}
|
|
2355
2355
|
for (s in t.Ja)
|
|
2356
|
-
r = t.Ja[s], "get" in r || "set" in r ? this.g(t.u, s,
|
|
2356
|
+
r = t.Ja[s], "get" in r || "set" in r ? this.g(t.u, s, et, {
|
|
2357
2357
|
configurable: !0,
|
|
2358
2358
|
enumerable: !0,
|
|
2359
2359
|
get: r.get,
|
|
@@ -2363,35 +2363,35 @@ m.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2363
2363
|
};
|
|
2364
2364
|
m.prototype.stepProgram = function(e, t, r) {
|
|
2365
2365
|
if (e = r.body.shift())
|
|
2366
|
-
return t.done = !1, new
|
|
2366
|
+
return t.done = !1, new w(e, t.scope);
|
|
2367
2367
|
t.done = !0;
|
|
2368
2368
|
};
|
|
2369
2369
|
m.prototype.stepReturnStatement = function(e, t, r) {
|
|
2370
2370
|
if (r.K && !t.ka)
|
|
2371
|
-
return t.ka = !0, new
|
|
2372
|
-
|
|
2371
|
+
return t.ka = !0, new w(r.K, t.scope);
|
|
2372
|
+
it(this, 3, t.value);
|
|
2373
2373
|
};
|
|
2374
2374
|
m.prototype.stepSequenceExpression = function(e, t, r) {
|
|
2375
2375
|
var n = t.A || 0;
|
|
2376
2376
|
if (r = r.xb[n])
|
|
2377
|
-
return t.A = n + 1, new
|
|
2377
|
+
return t.A = n + 1, new w(r, t.scope);
|
|
2378
2378
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2379
2379
|
};
|
|
2380
2380
|
m.prototype.stepSwitchStatement = function(e, t, r) {
|
|
2381
2381
|
if (!t.ga)
|
|
2382
|
-
return t.ga = 1, new
|
|
2382
|
+
return t.ga = 1, new w(r.Qb, t.scope);
|
|
2383
2383
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2384
2384
|
var n = t.gb || 0, i = r.tb[n];
|
|
2385
2385
|
if (t.Ha || !i || i.test)
|
|
2386
2386
|
if (i || t.Ha || t.cb === -1)
|
|
2387
2387
|
if (i) {
|
|
2388
2388
|
if (!t.Ha && !t.Fb && i.test)
|
|
2389
|
-
return t.Fb = !0, new
|
|
2389
|
+
return t.Fb = !0, new w(i.test, t.scope);
|
|
2390
2390
|
if (t.Ha || t.value === t.hc) {
|
|
2391
2391
|
t.Ha = !0;
|
|
2392
2392
|
var a = t.A || 0;
|
|
2393
2393
|
if (i.da[a])
|
|
2394
|
-
return t.Zb = !0, t.A = a + 1, new
|
|
2394
|
+
return t.Zb = !0, t.A = a + 1, new w(i.da[a], t.scope);
|
|
2395
2395
|
}
|
|
2396
2396
|
t.Fb = !1, t.A = 0, t.gb = n + 1;
|
|
2397
2397
|
} else {
|
|
@@ -2405,26 +2405,26 @@ m.prototype.stepSwitchStatement = function(e, t, r) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
};
|
|
2407
2407
|
m.prototype.stepThisExpression = function(e) {
|
|
2408
|
-
e.pop(), e[e.length - 1].value =
|
|
2408
|
+
e.pop(), e[e.length - 1].value = cn(this, "this");
|
|
2409
2409
|
};
|
|
2410
2410
|
m.prototype.stepThrowStatement = function(e, t, r) {
|
|
2411
2411
|
if (t.ka)
|
|
2412
|
-
|
|
2412
|
+
k(this, t.value);
|
|
2413
2413
|
else
|
|
2414
|
-
return t.ka = !0, new
|
|
2414
|
+
return t.ka = !0, new w(r.K, t.scope);
|
|
2415
2415
|
};
|
|
2416
2416
|
m.prototype.stepTryStatement = function(e, t, r) {
|
|
2417
2417
|
if (!t.Rb)
|
|
2418
|
-
return t.Rb = !0, new
|
|
2418
|
+
return t.Rb = !0, new w(r.block, t.scope);
|
|
2419
2419
|
if (t.ea && t.ea.type === 4 && !t.Tb && r.Ea)
|
|
2420
|
-
return t.Tb = !0, e =
|
|
2420
|
+
return t.Tb = !0, e = ln(this, t.scope), this.g(e.object, r.Ea.Ua.name, t.ea.value), t.ea = void 0, new w(r.Ea.body, e);
|
|
2421
2421
|
if (!t.Sb && r.fb)
|
|
2422
|
-
return t.Sb = !0, new
|
|
2423
|
-
e.pop(), t.ea &&
|
|
2422
|
+
return t.Sb = !0, new w(r.fb, t.scope);
|
|
2423
|
+
e.pop(), t.ea && it(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2424
2424
|
};
|
|
2425
2425
|
m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
2426
2426
|
if (!t.ka)
|
|
2427
|
-
return t.ka = !0, e = new
|
|
2427
|
+
return t.ka = !0, e = new w(r.K, t.scope), e.sa = r.operator === "delete", e;
|
|
2428
2428
|
e.pop();
|
|
2429
2429
|
var n = t.value;
|
|
2430
2430
|
switch (r.operator) {
|
|
@@ -2443,11 +2443,11 @@ m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2443
2443
|
case "delete":
|
|
2444
2444
|
if (r = !0, Array.isArray(n)) {
|
|
2445
2445
|
var i = n[0];
|
|
2446
|
-
i ===
|
|
2446
|
+
i === We && (i = t.scope), n = String(n[1]);
|
|
2447
2447
|
try {
|
|
2448
2448
|
delete i.h[n];
|
|
2449
2449
|
} catch {
|
|
2450
|
-
t.scope.S ?
|
|
2450
|
+
t.scope.S ? k(this, this.j, "Cannot delete property '" + n + "' of '" + i + "'") : r = !1;
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
2453
|
n = r;
|
|
@@ -2465,11 +2465,11 @@ m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2465
2465
|
};
|
|
2466
2466
|
m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
2467
2467
|
if (!t.ja)
|
|
2468
|
-
return t.ja = !0, e = new
|
|
2468
|
+
return t.ja = !0, e = new w(r.K, t.scope), e.sa = !0, e;
|
|
2469
2469
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2470
|
-
var n =
|
|
2470
|
+
var n = un(this, t.Ga);
|
|
2471
2471
|
if (t.ma = n, this.P)
|
|
2472
|
-
return t.Ba = !0,
|
|
2472
|
+
return t.Ba = !0, ot(this, n, t.Ga);
|
|
2473
2473
|
}
|
|
2474
2474
|
if (t.ta)
|
|
2475
2475
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
@@ -2480,23 +2480,23 @@ m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2480
2480
|
i = n - 1;
|
|
2481
2481
|
else
|
|
2482
2482
|
throw SyntaxError("Unknown update expression: " + r.operator);
|
|
2483
|
-
if (r = r.prefix ? i : n, n =
|
|
2484
|
-
return t.ta = !0, t.ib = r,
|
|
2483
|
+
if (r = r.prefix ? i : n, n = dn(this, t.Ga, i))
|
|
2484
|
+
return t.ta = !0, t.ib = r, fn(this, n, t.Ga, i);
|
|
2485
2485
|
e.pop(), e[e.length - 1].value = r;
|
|
2486
2486
|
}
|
|
2487
2487
|
};
|
|
2488
2488
|
m.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
2489
2489
|
r = r.fa;
|
|
2490
2490
|
var n = t.A || 0, i = r[n];
|
|
2491
|
-
for (t.Bb && i && (
|
|
2491
|
+
for (t.Bb && i && (gr(this, i.id.name, t.value), t.Bb = !1, i = r[++n]); i; ) {
|
|
2492
2492
|
if (i.ua)
|
|
2493
|
-
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new
|
|
2493
|
+
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new w(i.ua, t.scope);
|
|
2494
2494
|
i = r[++n];
|
|
2495
2495
|
}
|
|
2496
2496
|
e.pop();
|
|
2497
2497
|
};
|
|
2498
2498
|
m.prototype.stepWithStatement = function(e, t, r) {
|
|
2499
|
-
return t.Ca ? (e.pop(), e =
|
|
2499
|
+
return t.Ca ? (e.pop(), e = ln(this, t.scope, t.value), new w(r.body, e)) : (t.Ca = !0, new w(r.object, t.scope));
|
|
2500
2500
|
};
|
|
2501
2501
|
m.prototype.stepWhileStatement = m.prototype.stepDoWhileStatement;
|
|
2502
2502
|
we.Interpreter = m;
|
|
@@ -2514,8 +2514,8 @@ m.prototype.pseudoToNative = m.prototype.R;
|
|
|
2514
2514
|
m.prototype.getGlobalScope = m.prototype.Xb;
|
|
2515
2515
|
m.prototype.getStateStack = m.prototype.Yb;
|
|
2516
2516
|
m.prototype.setStateStack = m.prototype.ec;
|
|
2517
|
-
m.VALUE_IN_DESCRIPTOR =
|
|
2518
|
-
const
|
|
2517
|
+
m.VALUE_IN_DESCRIPTOR = et;
|
|
2518
|
+
const gi = (e) => e.split(`
|
|
2519
2519
|
`).map((t) => {
|
|
2520
2520
|
const r = t.trim();
|
|
2521
2521
|
if (t.includes("__awaiter"))
|
|
@@ -2528,7 +2528,7 @@ const vi = (e) => e.split(`
|
|
|
2528
2528
|
${u}
|
|
2529
2529
|
`;
|
|
2530
2530
|
}).filter(Boolean).join(`
|
|
2531
|
-
`),
|
|
2531
|
+
`), Zn = (e) => e + "JSON", vi = ({
|
|
2532
2532
|
builder: e,
|
|
2533
2533
|
context: t,
|
|
2534
2534
|
event: r,
|
|
@@ -2540,47 +2540,47 @@ const vi = (e) => e.split(`
|
|
|
2540
2540
|
const u = {
|
|
2541
2541
|
...n,
|
|
2542
2542
|
...i
|
|
2543
|
-
}, f =
|
|
2543
|
+
}, f = fr({
|
|
2544
2544
|
builder: e,
|
|
2545
2545
|
context: t,
|
|
2546
2546
|
event: r,
|
|
2547
2547
|
state: u
|
|
2548
|
-
}), g = f.map(([
|
|
2549
|
-
const
|
|
2550
|
-
return `var ${
|
|
2548
|
+
}), g = f.map(([O]) => {
|
|
2549
|
+
const P = Zn(O);
|
|
2550
|
+
return `var ${O} = ${P} === undefined ? undefined : JSON.parse(${P});`;
|
|
2551
2551
|
}).join(`
|
|
2552
|
-
`), v =
|
|
2552
|
+
`), v = gi(s);
|
|
2553
2553
|
if (v === "") {
|
|
2554
|
-
|
|
2554
|
+
Ue.warn("Skipping evaluation of empty code block.");
|
|
2555
2555
|
return;
|
|
2556
2556
|
}
|
|
2557
|
-
const
|
|
2557
|
+
const b = `
|
|
2558
2558
|
function theFunction() {
|
|
2559
2559
|
${g}
|
|
2560
2560
|
|
|
2561
2561
|
${v}
|
|
2562
2562
|
}
|
|
2563
2563
|
theFunction();
|
|
2564
|
-
`, U = (
|
|
2565
|
-
const
|
|
2566
|
-
a == null || a(
|
|
2567
|
-
},
|
|
2568
|
-
f.forEach(([
|
|
2569
|
-
const
|
|
2570
|
-
|
|
2571
|
-
}),
|
|
2564
|
+
`, U = (O, P) => {
|
|
2565
|
+
const L = hr(u, O, P);
|
|
2566
|
+
a == null || a(L);
|
|
2567
|
+
}, F = function(O, P) {
|
|
2568
|
+
f.forEach(([L, Y]) => {
|
|
2569
|
+
const y = JSON.stringify(Y);
|
|
2570
|
+
O.setProperty(P, Zn(L), y);
|
|
2571
|
+
}), O.setProperty(P, "setRootState", O.createNativeFunction(U));
|
|
2572
2572
|
};
|
|
2573
2573
|
try {
|
|
2574
|
-
const
|
|
2575
|
-
return
|
|
2576
|
-
} catch (
|
|
2577
|
-
|
|
2578
|
-
e:
|
|
2574
|
+
const O = new m(b, F);
|
|
2575
|
+
return O.run(), O.pseudoToNative(O.value);
|
|
2576
|
+
} catch (O) {
|
|
2577
|
+
Ue.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2578
|
+
e: O
|
|
2579
2579
|
});
|
|
2580
2580
|
return;
|
|
2581
2581
|
}
|
|
2582
|
-
},
|
|
2583
|
-
function
|
|
2582
|
+
}, yi = (e) => je() ? Zr(e) : vi(e);
|
|
2583
|
+
function nt({
|
|
2584
2584
|
code: e,
|
|
2585
2585
|
context: t,
|
|
2586
2586
|
localState: r,
|
|
@@ -2590,14 +2590,14 @@ function tt({
|
|
|
2590
2590
|
isExpression: s = !0
|
|
2591
2591
|
}) {
|
|
2592
2592
|
if (e === "") {
|
|
2593
|
-
|
|
2593
|
+
Ue.warn("Skipping evaluation of empty code block.");
|
|
2594
2594
|
return;
|
|
2595
2595
|
}
|
|
2596
2596
|
const u = {
|
|
2597
|
-
code:
|
|
2597
|
+
code: qr(e, {
|
|
2598
2598
|
isExpression: s
|
|
2599
2599
|
}),
|
|
2600
|
-
builder:
|
|
2600
|
+
builder: Jr(),
|
|
2601
2601
|
context: t,
|
|
2602
2602
|
event: a,
|
|
2603
2603
|
rootSetState: i,
|
|
@@ -2605,9 +2605,9 @@ function tt({
|
|
|
2605
2605
|
localState: r
|
|
2606
2606
|
};
|
|
2607
2607
|
try {
|
|
2608
|
-
return
|
|
2608
|
+
return yi(u);
|
|
2609
2609
|
} catch (f) {
|
|
2610
|
-
|
|
2610
|
+
Ue.error("Failed code evaluation: " + f.message, {
|
|
2611
2611
|
code: e
|
|
2612
2612
|
});
|
|
2613
2613
|
return;
|
|
@@ -2622,7 +2622,7 @@ const xi = ({
|
|
|
2622
2622
|
}) => {
|
|
2623
2623
|
if (!e.bindings)
|
|
2624
2624
|
return e;
|
|
2625
|
-
const a =
|
|
2625
|
+
const a = Qt(e), s = {
|
|
2626
2626
|
...a,
|
|
2627
2627
|
properties: {
|
|
2628
2628
|
...a.properties
|
|
@@ -2632,18 +2632,18 @@ const xi = ({
|
|
|
2632
2632
|
}
|
|
2633
2633
|
};
|
|
2634
2634
|
for (const u in e.bindings) {
|
|
2635
|
-
const f = e.bindings[u], g =
|
|
2635
|
+
const f = e.bindings[u], g = nt({
|
|
2636
2636
|
code: f,
|
|
2637
2637
|
localState: r,
|
|
2638
2638
|
rootState: n,
|
|
2639
2639
|
rootSetState: i,
|
|
2640
2640
|
context: t
|
|
2641
2641
|
});
|
|
2642
|
-
|
|
2642
|
+
hr(s, u, g);
|
|
2643
2643
|
}
|
|
2644
2644
|
return s;
|
|
2645
2645
|
};
|
|
2646
|
-
function
|
|
2646
|
+
function mt({
|
|
2647
2647
|
block: e,
|
|
2648
2648
|
context: t,
|
|
2649
2649
|
shouldEvaluateBindings: r,
|
|
@@ -2660,13 +2660,13 @@ function pt({
|
|
|
2660
2660
|
context: t
|
|
2661
2661
|
}) : s;
|
|
2662
2662
|
}
|
|
2663
|
-
const
|
|
2663
|
+
const bi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], $t = (e) => typeof e == "string" && bi.includes(e.toLowerCase()), Si = ({
|
|
2664
2664
|
block: e,
|
|
2665
2665
|
context: t,
|
|
2666
2666
|
registeredComponents: r
|
|
2667
2667
|
}) => {
|
|
2668
2668
|
var a;
|
|
2669
|
-
const n = (a =
|
|
2669
|
+
const n = (a = mt({
|
|
2670
2670
|
block: e,
|
|
2671
2671
|
localState: t.localState,
|
|
2672
2672
|
rootState: t.rootState,
|
|
@@ -2682,7 +2682,7 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2682
2682
|
console.warn(`
|
|
2683
2683
|
Could not find a registered component named "${n}".
|
|
2684
2684
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2685
|
-
},
|
|
2685
|
+
}, wi = ({
|
|
2686
2686
|
block: e,
|
|
2687
2687
|
context: t
|
|
2688
2688
|
}) => {
|
|
@@ -2692,7 +2692,7 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2692
2692
|
} = e;
|
|
2693
2693
|
if (!(r != null && r.collection))
|
|
2694
2694
|
return;
|
|
2695
|
-
const i =
|
|
2695
|
+
const i = nt({
|
|
2696
2696
|
code: r.collection,
|
|
2697
2697
|
localState: t.localState,
|
|
2698
2698
|
rootState: t.rootState,
|
|
@@ -2731,11 +2731,11 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2731
2731
|
default: 991,
|
|
2732
2732
|
max: 1200
|
|
2733
2733
|
}
|
|
2734
|
-
},
|
|
2734
|
+
}, Qn = (e, t = xr) => `@media (max-width: ${t[e].max}px)`, br = ({
|
|
2735
2735
|
small: e,
|
|
2736
2736
|
medium: t
|
|
2737
2737
|
}) => {
|
|
2738
|
-
const r =
|
|
2738
|
+
const r = Qt(xr);
|
|
2739
2739
|
if (!e || !t)
|
|
2740
2740
|
return r;
|
|
2741
2741
|
const n = Math.floor(e / 2);
|
|
@@ -2757,28 +2757,28 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2757
2757
|
min: a,
|
|
2758
2758
|
default: a + 1
|
|
2759
2759
|
}, r;
|
|
2760
|
-
},
|
|
2760
|
+
}, ki = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Sr = (e) => Object.entries(e).map(([r, n]) => {
|
|
2761
2761
|
if (typeof n == "string")
|
|
2762
|
-
return `${
|
|
2763
|
-
}).filter(
|
|
2764
|
-
`),
|
|
2762
|
+
return `${ki(r)}: ${n};`;
|
|
2763
|
+
}).filter(Gt), Ci = (e) => Sr(e).join(`
|
|
2764
|
+
`), Ht = ({
|
|
2765
2765
|
mediaQuery: e,
|
|
2766
2766
|
className: t,
|
|
2767
2767
|
styles: r
|
|
2768
2768
|
}) => {
|
|
2769
2769
|
const n = `.${t} {
|
|
2770
|
-
${
|
|
2770
|
+
${Ci(r)}
|
|
2771
2771
|
}`;
|
|
2772
2772
|
return e ? `${e} {
|
|
2773
2773
|
${n}
|
|
2774
2774
|
}` : n;
|
|
2775
2775
|
};
|
|
2776
|
-
function
|
|
2776
|
+
function xt(e) {
|
|
2777
2777
|
return /* @__PURE__ */ p("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2778
2778
|
}
|
|
2779
|
-
function
|
|
2779
|
+
function Ei(e) {
|
|
2780
2780
|
function t() {
|
|
2781
|
-
const n =
|
|
2781
|
+
const n = mt({
|
|
2782
2782
|
block: e.block,
|
|
2783
2783
|
localState: e.context.localState,
|
|
2784
2784
|
rootState: e.context.rootState,
|
|
@@ -2786,48 +2786,48 @@ function fn(e) {
|
|
|
2786
2786
|
context: e.context.context,
|
|
2787
2787
|
shouldEvaluateBindings: !0
|
|
2788
2788
|
});
|
|
2789
|
-
return
|
|
2789
|
+
return Gt(n.hide) ? !n.hide : Gt(n.show) ? n.show : !0;
|
|
2790
2790
|
}
|
|
2791
2791
|
function r() {
|
|
2792
|
-
var
|
|
2793
|
-
const n =
|
|
2792
|
+
var O;
|
|
2793
|
+
const n = mt({
|
|
2794
2794
|
block: e.block,
|
|
2795
2795
|
localState: e.context.localState,
|
|
2796
2796
|
rootState: e.context.rootState,
|
|
2797
2797
|
rootSetState: e.context.rootSetState,
|
|
2798
2798
|
context: e.context.context,
|
|
2799
2799
|
shouldEvaluateBindings: !0
|
|
2800
|
-
}), i = n.responsiveStyles, a = e.context.content, s =
|
|
2801
|
-
((
|
|
2800
|
+
}), i = n.responsiveStyles, a = e.context.content, s = br(
|
|
2801
|
+
((O = a == null ? void 0 : a.meta) == null ? void 0 : O.breakpoints) || {}
|
|
2802
2802
|
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium, g = i == null ? void 0 : i.small, v = n.id;
|
|
2803
2803
|
if (!v)
|
|
2804
2804
|
return "";
|
|
2805
|
-
const
|
|
2805
|
+
const b = u ? Ht({
|
|
2806
2806
|
className: v,
|
|
2807
2807
|
styles: u
|
|
2808
|
-
}) : "", U = f ?
|
|
2808
|
+
}) : "", U = f ? Ht({
|
|
2809
2809
|
className: v,
|
|
2810
2810
|
styles: f,
|
|
2811
|
-
mediaQuery:
|
|
2811
|
+
mediaQuery: Qn(
|
|
2812
2812
|
"medium",
|
|
2813
2813
|
s
|
|
2814
2814
|
)
|
|
2815
|
-
}) : "",
|
|
2815
|
+
}) : "", F = g ? Ht({
|
|
2816
2816
|
className: v,
|
|
2817
2817
|
styles: g,
|
|
2818
|
-
mediaQuery:
|
|
2818
|
+
mediaQuery: Qn(
|
|
2819
2819
|
"small",
|
|
2820
2820
|
s
|
|
2821
2821
|
)
|
|
2822
2822
|
}) : "";
|
|
2823
|
-
return [
|
|
2823
|
+
return [b, U, F].join(" ");
|
|
2824
2824
|
}
|
|
2825
|
-
return /* @__PURE__ */ p(
|
|
2825
|
+
return /* @__PURE__ */ p(N, { children: r() && t() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(xt, { styles: r() }) }) : null });
|
|
2826
2826
|
}
|
|
2827
2827
|
function Ii(e) {
|
|
2828
2828
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2829
2829
|
}
|
|
2830
|
-
const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) =>
|
|
2830
|
+
const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) => nt({
|
|
2831
2831
|
code: e,
|
|
2832
2832
|
context: t.context,
|
|
2833
2833
|
localState: t.localState,
|
|
@@ -2836,7 +2836,7 @@ const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) => tt({
|
|
|
2836
2836
|
event: r,
|
|
2837
2837
|
isExpression: !1
|
|
2838
2838
|
});
|
|
2839
|
-
function
|
|
2839
|
+
function Jt(e) {
|
|
2840
2840
|
var n;
|
|
2841
2841
|
const t = {}, r = (n = e.block.actions) != null ? n : {};
|
|
2842
2842
|
for (const i in r) {
|
|
@@ -2845,7 +2845,7 @@ function Yt(e) {
|
|
|
2845
2845
|
const a = r[i];
|
|
2846
2846
|
let s = Ti(i);
|
|
2847
2847
|
if (e.stripPrefix)
|
|
2848
|
-
switch (
|
|
2848
|
+
switch (rt) {
|
|
2849
2849
|
case "vue":
|
|
2850
2850
|
s = s.replace("v-on:", "");
|
|
2851
2851
|
break;
|
|
@@ -2865,7 +2865,7 @@ function Ai({
|
|
|
2865
2865
|
const Ri = (e) => ({
|
|
2866
2866
|
href: e.href
|
|
2867
2867
|
});
|
|
2868
|
-
function
|
|
2868
|
+
function gt({
|
|
2869
2869
|
block: e,
|
|
2870
2870
|
context: t
|
|
2871
2871
|
}) {
|
|
@@ -2884,11 +2884,11 @@ function mt({
|
|
|
2884
2884
|
});
|
|
2885
2885
|
}
|
|
2886
2886
|
function Oi(e) {
|
|
2887
|
-
switch (
|
|
2887
|
+
switch (rt) {
|
|
2888
2888
|
case "svelte":
|
|
2889
2889
|
case "vue":
|
|
2890
2890
|
case "solid":
|
|
2891
|
-
return
|
|
2891
|
+
return Sr(e).join(" ");
|
|
2892
2892
|
case "qwik":
|
|
2893
2893
|
case "reactNative":
|
|
2894
2894
|
case "react":
|
|
@@ -2896,17 +2896,17 @@ function Oi(e) {
|
|
|
2896
2896
|
return e;
|
|
2897
2897
|
}
|
|
2898
2898
|
}
|
|
2899
|
-
function
|
|
2900
|
-
return /* @__PURE__ */
|
|
2899
|
+
function er(e) {
|
|
2900
|
+
return /* @__PURE__ */ te(N, { children: [
|
|
2901
2901
|
" ",
|
|
2902
|
-
e.hasChildren ? /* @__PURE__ */ p(
|
|
2902
|
+
e.hasChildren ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ te(
|
|
2903
2903
|
e.Wrapper,
|
|
2904
2904
|
{
|
|
2905
|
-
...
|
|
2905
|
+
...gt({
|
|
2906
2906
|
block: e.block,
|
|
2907
2907
|
context: e.context
|
|
2908
2908
|
}),
|
|
2909
|
-
...
|
|
2909
|
+
...Jt({
|
|
2910
2910
|
block: e.block,
|
|
2911
2911
|
rootState: e.context.rootState,
|
|
2912
2912
|
rootSetState: e.context.rootSetState,
|
|
@@ -2920,14 +2920,14 @@ function tr(e) {
|
|
|
2920
2920
|
" "
|
|
2921
2921
|
]
|
|
2922
2922
|
}
|
|
2923
|
-
) }) : /* @__PURE__ */ p(
|
|
2923
|
+
) }) : /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
2924
2924
|
e.Wrapper,
|
|
2925
2925
|
{
|
|
2926
|
-
...
|
|
2926
|
+
...gt({
|
|
2927
2927
|
block: e.block,
|
|
2928
2928
|
context: e.context
|
|
2929
2929
|
}),
|
|
2930
|
-
...
|
|
2930
|
+
...Jt({
|
|
2931
2931
|
block: e.block,
|
|
2932
2932
|
rootState: e.context.rootState,
|
|
2933
2933
|
rootSetState: e.context.rootSetState,
|
|
@@ -2946,11 +2946,11 @@ function Pi(e) {
|
|
|
2946
2946
|
{
|
|
2947
2947
|
...e.wrapperProps,
|
|
2948
2948
|
attributes: e.includeBlockProps ? {
|
|
2949
|
-
...
|
|
2949
|
+
...gt({
|
|
2950
2950
|
block: e.block,
|
|
2951
2951
|
context: e.context
|
|
2952
2952
|
}),
|
|
2953
|
-
...
|
|
2953
|
+
...Jt({
|
|
2954
2954
|
block: e.block,
|
|
2955
2955
|
rootState: e.context.rootState,
|
|
2956
2956
|
rootSetState: e.context.rootSetState,
|
|
@@ -2978,7 +2978,7 @@ const Ni = ({
|
|
|
2978
2978
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
2979
2979
|
*/
|
|
2980
2980
|
...i ? {
|
|
2981
|
-
attributes:
|
|
2981
|
+
attributes: gt({
|
|
2982
2982
|
block: t,
|
|
2983
2983
|
context: s
|
|
2984
2984
|
})
|
|
@@ -2992,12 +2992,12 @@ const Ni = ({
|
|
|
2992
2992
|
includeBlockProps: i
|
|
2993
2993
|
} : u;
|
|
2994
2994
|
};
|
|
2995
|
-
function
|
|
2996
|
-
var n
|
|
2997
|
-
const [t, r] =
|
|
2995
|
+
function tr(e) {
|
|
2996
|
+
var n;
|
|
2997
|
+
const [t, r] = V(
|
|
2998
2998
|
() => e.isInteractive ? Pi : e.componentRef
|
|
2999
2999
|
);
|
|
3000
|
-
return /* @__PURE__ */ p(
|
|
3000
|
+
return /* @__PURE__ */ p(N, { children: e.componentRef ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
3001
3001
|
t,
|
|
3002
3002
|
{
|
|
3003
3003
|
...Ni({
|
|
@@ -3009,31 +3009,21 @@ function nr(e) {
|
|
|
3009
3009
|
isInteractive: e.isInteractive,
|
|
3010
3010
|
contextValue: e.context
|
|
3011
3011
|
}),
|
|
3012
|
-
children:
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
)),
|
|
3022
|
-
(i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ p(
|
|
3023
|
-
fn,
|
|
3024
|
-
{
|
|
3025
|
-
block: a,
|
|
3026
|
-
context: e.context
|
|
3027
|
-
},
|
|
3028
|
-
"block-style-" + a.id
|
|
3029
|
-
))
|
|
3030
|
-
]
|
|
3012
|
+
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ p(
|
|
3013
|
+
bt,
|
|
3014
|
+
{
|
|
3015
|
+
block: i,
|
|
3016
|
+
context: e.context,
|
|
3017
|
+
registeredComponents: e.registeredComponents
|
|
3018
|
+
},
|
|
3019
|
+
i.id
|
|
3020
|
+
))
|
|
3031
3021
|
}
|
|
3032
3022
|
) }) : null });
|
|
3033
3023
|
}
|
|
3034
3024
|
function Mi(e) {
|
|
3035
|
-
const [t, r] =
|
|
3036
|
-
return /* @__PURE__ */ p(
|
|
3025
|
+
const [t, r] = V(() => e.repeatContext);
|
|
3026
|
+
return /* @__PURE__ */ p(en.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3037
3027
|
bt,
|
|
3038
3028
|
{
|
|
3039
3029
|
block: e.block,
|
|
@@ -3043,23 +3033,23 @@ function Mi(e) {
|
|
|
3043
3033
|
) });
|
|
3044
3034
|
}
|
|
3045
3035
|
function bt(e) {
|
|
3046
|
-
var v,
|
|
3036
|
+
var v, b, U;
|
|
3047
3037
|
function t() {
|
|
3048
|
-
return
|
|
3038
|
+
return Si({
|
|
3049
3039
|
block: e.block,
|
|
3050
3040
|
context: e.context,
|
|
3051
3041
|
registeredComponents: e.registeredComponents
|
|
3052
3042
|
});
|
|
3053
3043
|
}
|
|
3054
3044
|
function r() {
|
|
3055
|
-
return
|
|
3045
|
+
return wi({
|
|
3056
3046
|
block: e.block,
|
|
3057
3047
|
context: e.context
|
|
3058
3048
|
});
|
|
3059
3049
|
}
|
|
3060
3050
|
function n() {
|
|
3061
|
-
var
|
|
3062
|
-
return (
|
|
3051
|
+
var F;
|
|
3052
|
+
return (F = e.block.repeat) != null && F.collection ? e.block : mt({
|
|
3063
3053
|
block: e.block,
|
|
3064
3054
|
localState: e.context.localState,
|
|
3065
3055
|
rootState: e.context.rootState,
|
|
@@ -3072,109 +3062,104 @@ function bt(e) {
|
|
|
3072
3062
|
return e.block.tagName || "div";
|
|
3073
3063
|
}
|
|
3074
3064
|
function a() {
|
|
3075
|
-
var
|
|
3076
|
-
if ((
|
|
3077
|
-
return !!((
|
|
3078
|
-
const
|
|
3079
|
-
return ("show" in n() ? n().show : !0) && !
|
|
3065
|
+
var P, L;
|
|
3066
|
+
if ((P = e.block.repeat) != null && P.collection)
|
|
3067
|
+
return !!((L = r == null ? void 0 : r()) != null && L.length);
|
|
3068
|
+
const F = "hide" in n() ? n().hide : !1;
|
|
3069
|
+
return ("show" in n() ? n().show : !0) && !F;
|
|
3080
3070
|
}
|
|
3081
3071
|
function s() {
|
|
3082
|
-
var
|
|
3083
|
-
return !((
|
|
3072
|
+
var O, P;
|
|
3073
|
+
return !((O = t == null ? void 0 : t()) != null && O.component) && !r() ? (P = n().children) != null ? P : [] : [];
|
|
3084
3074
|
}
|
|
3085
3075
|
function u() {
|
|
3086
|
-
var
|
|
3076
|
+
var F, O, P, L, Y, y;
|
|
3087
3077
|
return {
|
|
3088
|
-
blockChildren: (
|
|
3089
|
-
componentRef: (
|
|
3078
|
+
blockChildren: (F = n().children) != null ? F : [],
|
|
3079
|
+
componentRef: (O = t == null ? void 0 : t()) == null ? void 0 : O.component,
|
|
3090
3080
|
componentOptions: {
|
|
3091
|
-
...
|
|
3081
|
+
...Yr(n()),
|
|
3092
3082
|
builderContext: e.context,
|
|
3093
|
-
...((
|
|
3083
|
+
...((P = t == null ? void 0 : t()) == null ? void 0 : P.name) === "Symbol" || ((L = t == null ? void 0 : t()) == null ? void 0 : L.name) === "Columns" ? {
|
|
3094
3084
|
builderComponents: e.registeredComponents
|
|
3095
3085
|
} : {}
|
|
3096
3086
|
},
|
|
3097
3087
|
context: f,
|
|
3098
3088
|
registeredComponents: e.registeredComponents,
|
|
3099
3089
|
builderBlock: n(),
|
|
3100
|
-
includeBlockProps: ((
|
|
3101
|
-
isInteractive: !((
|
|
3090
|
+
includeBlockProps: ((Y = t == null ? void 0 : t()) == null ? void 0 : Y.noWrap) === !0,
|
|
3091
|
+
isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
|
|
3102
3092
|
};
|
|
3103
3093
|
}
|
|
3104
|
-
const [f, g] =
|
|
3105
|
-
return /* @__PURE__ */ p(
|
|
3106
|
-
|
|
3107
|
-
{
|
|
3108
|
-
componentRef: u().componentRef,
|
|
3109
|
-
componentOptions: u().componentOptions,
|
|
3110
|
-
blockChildren: u().blockChildren,
|
|
3111
|
-
context: u().context,
|
|
3112
|
-
registeredComponents: u().registeredComponents,
|
|
3113
|
-
builderBlock: u().builderBlock,
|
|
3114
|
-
includeBlockProps: u().includeBlockProps,
|
|
3115
|
-
isInteractive: u().isInteractive
|
|
3116
|
-
}
|
|
3117
|
-
) }) : /* @__PURE__ */ Z(P, { children: [
|
|
3118
|
-
Lt(i()) ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
3094
|
+
const [f, g] = V(() => e.context);
|
|
3095
|
+
return /* @__PURE__ */ p(N, { children: a() ? /* @__PURE__ */ te(N, { children: [
|
|
3096
|
+
/* @__PURE__ */ p(Ei, { block: e.block, context: e.context }),
|
|
3097
|
+
(v = t == null ? void 0 : t()) != null && v.noWrap ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
3119
3098
|
tr,
|
|
3120
3099
|
{
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3100
|
+
componentRef: u().componentRef,
|
|
3101
|
+
componentOptions: u().componentOptions,
|
|
3102
|
+
blockChildren: u().blockChildren,
|
|
3103
|
+
context: u().context,
|
|
3104
|
+
registeredComponents: u().registeredComponents,
|
|
3105
|
+
builderBlock: u().builderBlock,
|
|
3106
|
+
includeBlockProps: u().includeBlockProps,
|
|
3107
|
+
isInteractive: u().isInteractive
|
|
3125
3108
|
}
|
|
3126
|
-
) }) :
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3109
|
+
) }) : /* @__PURE__ */ te(N, { children: [
|
|
3110
|
+
$t(i()) ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
3111
|
+
er,
|
|
3112
|
+
{
|
|
3113
|
+
Wrapper: i(),
|
|
3114
|
+
block: n(),
|
|
3115
|
+
context: e.context,
|
|
3116
|
+
hasChildren: !1
|
|
3117
|
+
}
|
|
3118
|
+
) }) : null,
|
|
3119
|
+
!$t(i()) && r() ? /* @__PURE__ */ p(N, { children: (b = r()) == null ? void 0 : b.map((F, O) => /* @__PURE__ */ p(
|
|
3120
|
+
Mi,
|
|
3121
|
+
{
|
|
3122
|
+
repeatContext: F.context,
|
|
3123
|
+
block: F.block,
|
|
3124
|
+
registeredComponents: e.registeredComponents
|
|
3125
|
+
},
|
|
3126
|
+
O
|
|
3127
|
+
)) }) : null,
|
|
3128
|
+
!$t(i()) && !r() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ te(
|
|
3129
|
+
er,
|
|
3130
|
+
{
|
|
3131
|
+
Wrapper: i(),
|
|
3132
|
+
block: n(),
|
|
3133
|
+
context: e.context,
|
|
3134
|
+
hasChildren: !0,
|
|
3135
|
+
children: [
|
|
3136
|
+
/* @__PURE__ */ p(
|
|
3137
|
+
tr,
|
|
3138
|
+
{
|
|
3139
|
+
componentRef: u().componentRef,
|
|
3140
|
+
componentOptions: u().componentOptions,
|
|
3141
|
+
blockChildren: u().blockChildren,
|
|
3142
|
+
context: u().context,
|
|
3143
|
+
registeredComponents: u().registeredComponents,
|
|
3144
|
+
builderBlock: u().builderBlock,
|
|
3145
|
+
includeBlockProps: u().includeBlockProps,
|
|
3146
|
+
isInteractive: u().isInteractive
|
|
3147
|
+
}
|
|
3148
|
+
),
|
|
3149
|
+
(U = s()) == null ? void 0 : U.map((F) => /* @__PURE__ */ p(
|
|
3150
|
+
bt,
|
|
3151
|
+
{
|
|
3152
|
+
block: F,
|
|
3153
|
+
context: f,
|
|
3154
|
+
registeredComponents: e.registeredComponents
|
|
3155
|
+
},
|
|
3156
|
+
F.id
|
|
3157
|
+
))
|
|
3158
|
+
]
|
|
3159
|
+
}
|
|
3160
|
+
) }) : null
|
|
3161
|
+
] })
|
|
3162
|
+
] }) : null });
|
|
3178
3163
|
}
|
|
3179
3164
|
function Bi(e) {
|
|
3180
3165
|
function t() {
|
|
@@ -3183,7 +3168,7 @@ function Bi(e) {
|
|
|
3183
3168
|
}
|
|
3184
3169
|
function r() {
|
|
3185
3170
|
var i, a;
|
|
3186
|
-
|
|
3171
|
+
Te() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3187
3172
|
{
|
|
3188
3173
|
type: "builder.clickEmptyBlocks",
|
|
3189
3174
|
data: {
|
|
@@ -3196,7 +3181,7 @@ function Bi(e) {
|
|
|
3196
3181
|
}
|
|
3197
3182
|
function n() {
|
|
3198
3183
|
var i, a;
|
|
3199
|
-
|
|
3184
|
+
Te() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3200
3185
|
{
|
|
3201
3186
|
type: "builder.hoverEmptyBlocks",
|
|
3202
3187
|
data: {
|
|
@@ -3207,7 +3192,7 @@ function Bi(e) {
|
|
|
3207
3192
|
"*"
|
|
3208
3193
|
));
|
|
3209
3194
|
}
|
|
3210
|
-
return /* @__PURE__ */
|
|
3195
|
+
return /* @__PURE__ */ te(N, { children: [
|
|
3211
3196
|
/* @__PURE__ */ p(
|
|
3212
3197
|
e.BlocksWrapper,
|
|
3213
3198
|
{
|
|
@@ -3230,9 +3215,9 @@ function Bi(e) {
|
|
|
3230
3215
|
] });
|
|
3231
3216
|
}
|
|
3232
3217
|
function hn(e) {
|
|
3233
|
-
var n, i, a
|
|
3234
|
-
const t =
|
|
3235
|
-
return /* @__PURE__ */
|
|
3218
|
+
var n, i, a;
|
|
3219
|
+
const t = $n(en), r = $n(dr);
|
|
3220
|
+
return /* @__PURE__ */ p(
|
|
3236
3221
|
Bi,
|
|
3237
3222
|
{
|
|
3238
3223
|
blocks: e.blocks,
|
|
@@ -3241,99 +3226,89 @@ function hn(e) {
|
|
|
3241
3226
|
styleProp: e.styleProp,
|
|
3242
3227
|
BlocksWrapper: (n = e.context) == null ? void 0 : n.BlocksWrapper,
|
|
3243
3228
|
BlocksWrapperProps: (i = e.context) == null ? void 0 : i.BlocksWrapperProps,
|
|
3244
|
-
children:
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
)) }) : null,
|
|
3254
|
-
e.blocks ? /* @__PURE__ */ p(P, { children: (s = e.blocks) == null ? void 0 : s.map((u) => /* @__PURE__ */ p(
|
|
3255
|
-
fn,
|
|
3256
|
-
{
|
|
3257
|
-
block: u,
|
|
3258
|
-
context: e.context || t
|
|
3259
|
-
},
|
|
3260
|
-
"block-style-" + u.id
|
|
3261
|
-
)) }) : null
|
|
3262
|
-
]
|
|
3229
|
+
children: e.blocks ? /* @__PURE__ */ p(N, { children: (a = e.blocks) == null ? void 0 : a.map((s) => /* @__PURE__ */ p(
|
|
3230
|
+
bt,
|
|
3231
|
+
{
|
|
3232
|
+
block: s,
|
|
3233
|
+
context: e.context || t,
|
|
3234
|
+
registeredComponents: e.registeredComponents || r.registeredComponents
|
|
3235
|
+
},
|
|
3236
|
+
s.id
|
|
3237
|
+
)) }) : null
|
|
3263
3238
|
}
|
|
3264
3239
|
);
|
|
3265
3240
|
}
|
|
3266
3241
|
function Fi(e) {
|
|
3267
|
-
var
|
|
3268
|
-
const [t, r] =
|
|
3242
|
+
var Y;
|
|
3243
|
+
const [t, r] = V(
|
|
3269
3244
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3270
|
-
), [n, i] =
|
|
3245
|
+
), [n, i] = V(() => e.columns || []), [a, s] = V(
|
|
3271
3246
|
() => e.stackColumnsAt || "tablet"
|
|
3272
3247
|
);
|
|
3273
|
-
function u(
|
|
3274
|
-
var
|
|
3275
|
-
return ((
|
|
3248
|
+
function u(y) {
|
|
3249
|
+
var K;
|
|
3250
|
+
return ((K = n[y]) == null ? void 0 : K.width) || 100 / n.length;
|
|
3276
3251
|
}
|
|
3277
|
-
function f(
|
|
3278
|
-
const
|
|
3279
|
-
return `calc(${u(
|
|
3252
|
+
function f(y) {
|
|
3253
|
+
const K = t * (n.length - 1) / n.length;
|
|
3254
|
+
return `calc(${u(y)}% - ${K}px)`;
|
|
3280
3255
|
}
|
|
3281
3256
|
function g({
|
|
3282
|
-
stackedStyle:
|
|
3283
|
-
desktopStyle:
|
|
3257
|
+
stackedStyle: y,
|
|
3258
|
+
desktopStyle: K
|
|
3284
3259
|
}) {
|
|
3285
|
-
return a === "tablet" ?
|
|
3260
|
+
return a === "tablet" ? y : K;
|
|
3286
3261
|
}
|
|
3287
3262
|
function v({
|
|
3288
|
-
stackedStyle:
|
|
3289
|
-
desktopStyle:
|
|
3263
|
+
stackedStyle: y,
|
|
3264
|
+
desktopStyle: K
|
|
3290
3265
|
}) {
|
|
3291
|
-
return a === "never" ?
|
|
3266
|
+
return a === "never" ? K : y;
|
|
3292
3267
|
}
|
|
3293
|
-
const [
|
|
3268
|
+
const [b, U] = V(
|
|
3294
3269
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3295
3270
|
);
|
|
3296
|
-
function
|
|
3271
|
+
function F() {
|
|
3297
3272
|
return {
|
|
3298
|
-
"--flex-dir":
|
|
3273
|
+
"--flex-dir": b,
|
|
3299
3274
|
"--flex-dir-tablet": g({
|
|
3300
|
-
stackedStyle:
|
|
3275
|
+
stackedStyle: b,
|
|
3301
3276
|
desktopStyle: "row"
|
|
3302
3277
|
})
|
|
3303
3278
|
};
|
|
3304
3279
|
}
|
|
3305
|
-
function
|
|
3306
|
-
const
|
|
3280
|
+
function O(y) {
|
|
3281
|
+
const K = y === 0 ? 0 : t, ne = f(y), le = `${K}px`, $ = "100%", re = 0;
|
|
3307
3282
|
return {
|
|
3308
|
-
width:
|
|
3309
|
-
["marginLeft"]:
|
|
3283
|
+
width: ne,
|
|
3284
|
+
["marginLeft"]: le,
|
|
3310
3285
|
"--column-width-mobile": v({
|
|
3311
|
-
stackedStyle:
|
|
3312
|
-
desktopStyle:
|
|
3286
|
+
stackedStyle: $,
|
|
3287
|
+
desktopStyle: ne
|
|
3313
3288
|
}),
|
|
3314
3289
|
"--column-margin-left-mobile": v({
|
|
3315
|
-
stackedStyle:
|
|
3316
|
-
desktopStyle:
|
|
3290
|
+
stackedStyle: re,
|
|
3291
|
+
desktopStyle: le
|
|
3317
3292
|
}),
|
|
3318
3293
|
"--column-width-tablet": g({
|
|
3319
|
-
stackedStyle:
|
|
3320
|
-
desktopStyle:
|
|
3294
|
+
stackedStyle: $,
|
|
3295
|
+
desktopStyle: ne
|
|
3321
3296
|
}),
|
|
3322
3297
|
"--column-margin-left-tablet": g({
|
|
3323
|
-
stackedStyle:
|
|
3324
|
-
desktopStyle:
|
|
3298
|
+
stackedStyle: re,
|
|
3299
|
+
desktopStyle: le
|
|
3325
3300
|
})
|
|
3326
3301
|
};
|
|
3327
3302
|
}
|
|
3328
|
-
function
|
|
3329
|
-
var
|
|
3330
|
-
return
|
|
3331
|
-
((
|
|
3332
|
-
)[
|
|
3303
|
+
function P(y) {
|
|
3304
|
+
var ne, le;
|
|
3305
|
+
return br(
|
|
3306
|
+
((le = (ne = e.builderContext.content) == null ? void 0 : ne.meta) == null ? void 0 : le.breakpoints) || {}
|
|
3307
|
+
)[y].max;
|
|
3333
3308
|
}
|
|
3334
|
-
function
|
|
3309
|
+
function L() {
|
|
3335
3310
|
return `
|
|
3336
|
-
@media (max-width: ${
|
|
3311
|
+
@media (max-width: ${P("medium")}px) {
|
|
3337
3312
|
.${e.builderBlock.id}-breakpoints {
|
|
3338
3313
|
flex-direction: var(--flex-dir-tablet);
|
|
3339
3314
|
align-items: stretch;
|
|
@@ -3345,7 +3320,7 @@ function Fi(e) {
|
|
|
3345
3320
|
}
|
|
3346
3321
|
}
|
|
3347
3322
|
|
|
3348
|
-
@media (max-width: ${
|
|
3323
|
+
@media (max-width: ${P("small")}px) {
|
|
3349
3324
|
.${e.builderBlock.id}-breakpoints {
|
|
3350
3325
|
flex-direction: var(--flex-dir);
|
|
3351
3326
|
align-items: stretch;
|
|
@@ -3358,42 +3333,42 @@ function Fi(e) {
|
|
|
3358
3333
|
},
|
|
3359
3334
|
`;
|
|
3360
3335
|
}
|
|
3361
|
-
return /* @__PURE__ */
|
|
3362
|
-
/* @__PURE__ */
|
|
3336
|
+
return /* @__PURE__ */ te(N, { children: [
|
|
3337
|
+
/* @__PURE__ */ te(
|
|
3363
3338
|
"div",
|
|
3364
3339
|
{
|
|
3365
|
-
className: `builder-columns ${e.builderBlock.id}-breakpoints div-
|
|
3366
|
-
style:
|
|
3340
|
+
className: `builder-columns ${e.builderBlock.id}-breakpoints div-3c01d6ec`,
|
|
3341
|
+
style: F(),
|
|
3367
3342
|
children: [
|
|
3368
|
-
/* @__PURE__ */ p(
|
|
3369
|
-
(
|
|
3343
|
+
/* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(xt, { styles: L() }) }),
|
|
3344
|
+
(Y = e.columns) == null ? void 0 : Y.map((y, K) => /* @__PURE__ */ cr(
|
|
3370
3345
|
"div",
|
|
3371
3346
|
{
|
|
3372
|
-
className: "builder-column div-
|
|
3373
|
-
style:
|
|
3374
|
-
key:
|
|
3347
|
+
className: "builder-column div-3c01d6ec-2",
|
|
3348
|
+
style: O(K),
|
|
3349
|
+
key: K
|
|
3375
3350
|
},
|
|
3376
3351
|
/* @__PURE__ */ p(
|
|
3377
3352
|
hn,
|
|
3378
3353
|
{
|
|
3379
|
-
path: `component.options.columns.${
|
|
3354
|
+
path: `component.options.columns.${K}.blocks`,
|
|
3380
3355
|
parent: e.builderBlock.id,
|
|
3381
3356
|
styleProp: {
|
|
3382
3357
|
flexGrow: "1"
|
|
3383
3358
|
},
|
|
3384
3359
|
context: e.builderContext,
|
|
3385
3360
|
registeredComponents: e.builderComponents,
|
|
3386
|
-
blocks:
|
|
3361
|
+
blocks: y.blocks
|
|
3387
3362
|
}
|
|
3388
3363
|
)
|
|
3389
3364
|
))
|
|
3390
3365
|
]
|
|
3391
3366
|
}
|
|
3392
3367
|
),
|
|
3393
|
-
/* @__PURE__ */ p("style", { children: `.div-
|
|
3368
|
+
/* @__PURE__ */ p("style", { children: `.div-3c01d6ec {
|
|
3394
3369
|
display: flex;
|
|
3395
3370
|
line-height: normal;
|
|
3396
|
-
}.div-
|
|
3371
|
+
}.div-3c01d6ec-2 {
|
|
3397
3372
|
display: flex;
|
|
3398
3373
|
flex-direction: column;
|
|
3399
3374
|
align-items: stretch;
|
|
@@ -3403,7 +3378,7 @@ function Fi(e) {
|
|
|
3403
3378
|
function Ui(e) {
|
|
3404
3379
|
return /* @__PURE__ */ p("span", { children: e.children });
|
|
3405
3380
|
}
|
|
3406
|
-
function
|
|
3381
|
+
function nr(e) {
|
|
3407
3382
|
return e.replace(/http(s)?:/, "");
|
|
3408
3383
|
}
|
|
3409
3384
|
function _i(e = "", t, r) {
|
|
@@ -3414,15 +3389,15 @@ function Di(e, t) {
|
|
|
3414
3389
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3415
3390
|
return e;
|
|
3416
3391
|
if (t === "master")
|
|
3417
|
-
return
|
|
3392
|
+
return nr(e);
|
|
3418
3393
|
const r = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3419
3394
|
if (r) {
|
|
3420
3395
|
const n = e.split(r[0]), i = r[3], a = t.match("x") ? t : `${t}x`;
|
|
3421
|
-
return
|
|
3396
|
+
return nr(`${n[0]}_${a}${i}`);
|
|
3422
3397
|
}
|
|
3423
3398
|
return null;
|
|
3424
3399
|
}
|
|
3425
|
-
function
|
|
3400
|
+
function Kt(e) {
|
|
3426
3401
|
if (!e)
|
|
3427
3402
|
return e;
|
|
3428
3403
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -3444,10 +3419,10 @@ function Wi(e) {
|
|
|
3444
3419
|
return e.srcset;
|
|
3445
3420
|
if (e.srcset && ((v = e.image) != null && v.includes("builder.io/api/v1/image"))) {
|
|
3446
3421
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3447
|
-
return console.debug("Removed given srcset"),
|
|
3422
|
+
return console.debug("Removed given srcset"), Kt(g);
|
|
3448
3423
|
} else if (e.image && !e.srcset)
|
|
3449
|
-
return
|
|
3450
|
-
return
|
|
3424
|
+
return Kt(g);
|
|
3425
|
+
return Kt(g);
|
|
3451
3426
|
}
|
|
3452
3427
|
function r() {
|
|
3453
3428
|
var f;
|
|
@@ -3463,10 +3438,10 @@ function Wi(e) {
|
|
|
3463
3438
|
};
|
|
3464
3439
|
return e.aspectRatio ? f : void 0;
|
|
3465
3440
|
}
|
|
3466
|
-
return /* @__PURE__ */
|
|
3467
|
-
/* @__PURE__ */
|
|
3468
|
-
/* @__PURE__ */
|
|
3469
|
-
r() ? /* @__PURE__ */ p(
|
|
3441
|
+
return /* @__PURE__ */ te(N, { children: [
|
|
3442
|
+
/* @__PURE__ */ te(N, { children: [
|
|
3443
|
+
/* @__PURE__ */ te("picture", { children: [
|
|
3444
|
+
r() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p("source", { type: "image/webp", srcSet: r() }) }) : null,
|
|
3470
3445
|
/* @__PURE__ */ p(
|
|
3471
3446
|
"img",
|
|
3472
3447
|
{
|
|
@@ -3478,33 +3453,33 @@ function Wi(e) {
|
|
|
3478
3453
|
objectFit: e.backgroundSize || "cover",
|
|
3479
3454
|
...n()
|
|
3480
3455
|
},
|
|
3481
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
3456
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-40c70c9b",
|
|
3482
3457
|
src: e.image,
|
|
3483
3458
|
srcSet: t(),
|
|
3484
3459
|
sizes: e.sizes
|
|
3485
3460
|
}
|
|
3486
3461
|
)
|
|
3487
3462
|
] }),
|
|
3488
|
-
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ p(
|
|
3463
|
+
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
3489
3464
|
"div",
|
|
3490
3465
|
{
|
|
3491
|
-
className: "builder-image-sizer div-
|
|
3466
|
+
className: "builder-image-sizer div-40c70c9b",
|
|
3492
3467
|
style: {
|
|
3493
3468
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
3494
3469
|
}
|
|
3495
3470
|
}
|
|
3496
3471
|
) }) : null,
|
|
3497
|
-
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(
|
|
3498
|
-
!e.fitContent && e.children ? /* @__PURE__ */ p(
|
|
3472
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(N, { children: e.children }) : null,
|
|
3473
|
+
!e.fitContent && e.children ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
|
|
3499
3474
|
] }),
|
|
3500
|
-
/* @__PURE__ */ p("style", { children: `.img-
|
|
3475
|
+
/* @__PURE__ */ p("style", { children: `.img-40c70c9b {
|
|
3501
3476
|
opacity: 1;
|
|
3502
3477
|
transition: opacity 0.2s ease-in-out;
|
|
3503
|
-
}.div-
|
|
3478
|
+
}.div-40c70c9b {
|
|
3504
3479
|
width: 100%;
|
|
3505
3480
|
pointer-events: none;
|
|
3506
3481
|
font-size: 0;
|
|
3507
|
-
}.div-
|
|
3482
|
+
}.div-40c70c9b-2 {
|
|
3508
3483
|
display: flex;
|
|
3509
3484
|
flex-direction: column;
|
|
3510
3485
|
align-items: stretch;
|
|
@@ -3795,8 +3770,8 @@ const Li = {
|
|
|
3795
3770
|
}]
|
|
3796
3771
|
};
|
|
3797
3772
|
function Ki(e) {
|
|
3798
|
-
const t =
|
|
3799
|
-
return
|
|
3773
|
+
const t = Zt(null), [r, n] = V(() => []), [i, a] = V(() => []);
|
|
3774
|
+
return Z(() => {
|
|
3800
3775
|
var u;
|
|
3801
3776
|
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window == "undefined")
|
|
3802
3777
|
return;
|
|
@@ -3859,26 +3834,26 @@ const Gi = {
|
|
|
3859
3834
|
}]
|
|
3860
3835
|
}, zi = ["text/javascript", "application/javascript", "application/ecmascript"], Xi = (e) => zi.includes(e.type);
|
|
3861
3836
|
function Yi(e) {
|
|
3862
|
-
const t =
|
|
3837
|
+
const t = Zt(null), [r, n] = V(() => []), [i, a] = V(() => []), [s, u] = V(() => !1);
|
|
3863
3838
|
function f() {
|
|
3864
3839
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3865
3840
|
return;
|
|
3866
3841
|
const g = t.current.getElementsByTagName("script");
|
|
3867
3842
|
for (let v = 0; v < g.length; v++) {
|
|
3868
|
-
const
|
|
3869
|
-
if (
|
|
3870
|
-
r.push(
|
|
3843
|
+
const b = g[v];
|
|
3844
|
+
if (b.src && !r.includes(b.src)) {
|
|
3845
|
+
r.push(b.src);
|
|
3871
3846
|
const U = document.createElement("script");
|
|
3872
|
-
U.async = !0, U.src =
|
|
3873
|
-
} else if (Xi(
|
|
3847
|
+
U.async = !0, U.src = b.src, document.head.appendChild(U);
|
|
3848
|
+
} else if (Xi(b) && !i.includes(b.innerText))
|
|
3874
3849
|
try {
|
|
3875
|
-
i.push(
|
|
3850
|
+
i.push(b.innerText), new Function(b.innerText)();
|
|
3876
3851
|
} catch (U) {
|
|
3877
3852
|
console.warn("`Embed`: Error running script:", U);
|
|
3878
3853
|
}
|
|
3879
3854
|
}
|
|
3880
3855
|
}
|
|
3881
|
-
return
|
|
3856
|
+
return Z(() => {
|
|
3882
3857
|
t.current && !s && (u(!0), f());
|
|
3883
3858
|
}, [t.current, s]), /* @__PURE__ */ p(
|
|
3884
3859
|
"div",
|
|
@@ -3918,13 +3893,13 @@ const Ji = {
|
|
|
3918
3893
|
function r(s, u = 6e4) {
|
|
3919
3894
|
return new Promise((f, g) => {
|
|
3920
3895
|
const v = document.createElement("img");
|
|
3921
|
-
let
|
|
3896
|
+
let b = !1;
|
|
3922
3897
|
v.onload = () => {
|
|
3923
|
-
|
|
3898
|
+
b = !0, f(v);
|
|
3924
3899
|
}, v.addEventListener("error", (U) => {
|
|
3925
3900
|
console.warn("Image load failed", U.error), g(U.error);
|
|
3926
3901
|
}), v.src = s, setTimeout(() => {
|
|
3927
|
-
|
|
3902
|
+
b || g(new Error("Image load timed out"));
|
|
3928
3903
|
}, u);
|
|
3929
3904
|
});
|
|
3930
3905
|
}
|
|
@@ -4022,7 +3997,7 @@ function Qi(e) {
|
|
|
4022
3997
|
src: e.imgSrc || e.image,
|
|
4023
3998
|
...e.attributes
|
|
4024
3999
|
},
|
|
4025
|
-
|
|
4000
|
+
Te() && e.imgSrc || "default-key"
|
|
4026
4001
|
);
|
|
4027
4002
|
}
|
|
4028
4003
|
const eo = {
|
|
@@ -4237,7 +4212,7 @@ function oo(e) {
|
|
|
4237
4212
|
...t()
|
|
4238
4213
|
};
|
|
4239
4214
|
}
|
|
4240
|
-
return /* @__PURE__ */
|
|
4215
|
+
return /* @__PURE__ */ te(
|
|
4241
4216
|
"div",
|
|
4242
4217
|
{
|
|
4243
4218
|
style: {
|
|
@@ -4269,7 +4244,7 @@ function oo(e) {
|
|
|
4269
4244
|
children: e.lazyLoad ? null : /* @__PURE__ */ p("source", { type: "video/mp4", src: e.video })
|
|
4270
4245
|
}
|
|
4271
4246
|
),
|
|
4272
|
-
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ p(
|
|
4247
|
+
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
4273
4248
|
"div",
|
|
4274
4249
|
{
|
|
4275
4250
|
style: {
|
|
@@ -4280,7 +4255,7 @@ function oo(e) {
|
|
|
4280
4255
|
}
|
|
4281
4256
|
}
|
|
4282
4257
|
) }) : null,
|
|
4283
|
-
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(
|
|
4258
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
4284
4259
|
"div",
|
|
4285
4260
|
{
|
|
4286
4261
|
style: {
|
|
@@ -4291,7 +4266,7 @@ function oo(e) {
|
|
|
4291
4266
|
children: e.children
|
|
4292
4267
|
}
|
|
4293
4268
|
) }) : null,
|
|
4294
|
-
(g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length && !e.fitContent ? /* @__PURE__ */ p(
|
|
4269
|
+
(g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length && !e.fitContent ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
4295
4270
|
"div",
|
|
4296
4271
|
{
|
|
4297
4272
|
style: {
|
|
@@ -4312,8 +4287,8 @@ function oo(e) {
|
|
|
4312
4287
|
}
|
|
4313
4288
|
);
|
|
4314
4289
|
}
|
|
4315
|
-
const
|
|
4316
|
-
component:
|
|
4290
|
+
const rr = () => [{
|
|
4291
|
+
component: Xr,
|
|
4317
4292
|
...Li
|
|
4318
4293
|
}, {
|
|
4319
4294
|
component: Fi,
|
|
@@ -4435,26 +4410,26 @@ const ir = () => [{
|
|
|
4435
4410
|
thisScriptEl?.remove();
|
|
4436
4411
|
}
|
|
4437
4412
|
return;
|
|
4438
|
-
}`,
|
|
4413
|
+
}`, wr = "builderIoAbTest", kr = "builderIoRenderContent", ht = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4439
4414
|
...t,
|
|
4440
4415
|
testVariationId: t.id,
|
|
4441
4416
|
id: e == null ? void 0 : e.id
|
|
4442
4417
|
})), lo = ({
|
|
4443
4418
|
canTrack: e,
|
|
4444
4419
|
content: t
|
|
4445
|
-
}) => !(!(
|
|
4446
|
-
window.${
|
|
4447
|
-
window.${
|
|
4420
|
+
}) => !(!(ht(t).length > 0) || !e || je()), co = (e) => e === "react" || e === "reactNative", Cr = co(rt), uo = () => `
|
|
4421
|
+
window.${wr} = ${ao}
|
|
4422
|
+
window.${kr} = ${so}
|
|
4448
4423
|
`, fo = (e, t) => `
|
|
4449
|
-
window.${
|
|
4450
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4424
|
+
window.${wr}(
|
|
4425
|
+
"${t}",${JSON.stringify(e)}, ${Cr}
|
|
4451
4426
|
)`, ho = ({
|
|
4452
4427
|
contentId: e,
|
|
4453
4428
|
variationId: t
|
|
4454
|
-
}) => `window.${
|
|
4455
|
-
"${t}", "${e}", ${
|
|
4429
|
+
}) => `window.${kr}(
|
|
4430
|
+
"${t}", "${e}", ${Cr}
|
|
4456
4431
|
)`;
|
|
4457
|
-
function
|
|
4432
|
+
function qt(e) {
|
|
4458
4433
|
return /* @__PURE__ */ p(
|
|
4459
4434
|
"script",
|
|
4460
4435
|
{
|
|
@@ -4463,7 +4438,7 @@ function Jt(e) {
|
|
|
4463
4438
|
}
|
|
4464
4439
|
);
|
|
4465
4440
|
}
|
|
4466
|
-
function
|
|
4441
|
+
function ir(e) {
|
|
4467
4442
|
return Math.round(e * 1e3) / 1e3;
|
|
4468
4443
|
}
|
|
4469
4444
|
const po = (e, t, r = !0) => {
|
|
@@ -4480,11 +4455,11 @@ const po = (e, t, r = !0) => {
|
|
|
4480
4455
|
}, mo = (e) => po(e, (t) => {
|
|
4481
4456
|
const r = t.getAttribute("builder-id") || t.id;
|
|
4482
4457
|
return (r == null ? void 0 : r.indexOf("builder-")) === 0;
|
|
4483
|
-
}),
|
|
4458
|
+
}), or = ({
|
|
4484
4459
|
event: e,
|
|
4485
4460
|
target: t
|
|
4486
4461
|
}) => {
|
|
4487
|
-
const r = t.getBoundingClientRect(), n = e.clientX - r.left, i = e.clientY - r.top, a =
|
|
4462
|
+
const r = t.getBoundingClientRect(), n = e.clientX - r.left, i = e.clientY - r.top, a = ir(n / r.width), s = ir(i / r.height);
|
|
4488
4463
|
return {
|
|
4489
4464
|
x: a,
|
|
4490
4465
|
y: s
|
|
@@ -4494,19 +4469,19 @@ const po = (e, t, r = !0) => {
|
|
|
4494
4469
|
return {
|
|
4495
4470
|
targetBuilderElement: n || void 0,
|
|
4496
4471
|
metadata: {
|
|
4497
|
-
targetOffset: t ?
|
|
4472
|
+
targetOffset: t ? or({
|
|
4498
4473
|
event: e,
|
|
4499
4474
|
target: t
|
|
4500
4475
|
}) : void 0,
|
|
4501
|
-
builderTargetOffset: r ?
|
|
4476
|
+
builderTargetOffset: r ? or({
|
|
4502
4477
|
event: e,
|
|
4503
4478
|
target: r
|
|
4504
4479
|
}) : void 0,
|
|
4505
4480
|
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4506
4481
|
}
|
|
4507
4482
|
};
|
|
4508
|
-
}, vo = "0.11.
|
|
4509
|
-
|
|
4483
|
+
}, vo = "0.11.4", yo = () => {
|
|
4484
|
+
$r("insertMenu", {
|
|
4510
4485
|
name: "_default",
|
|
4511
4486
|
default: !0,
|
|
4512
4487
|
items: [{
|
|
@@ -4528,13 +4503,13 @@ const po = (e, t, r = !0) => {
|
|
|
4528
4503
|
}]
|
|
4529
4504
|
});
|
|
4530
4505
|
};
|
|
4531
|
-
let
|
|
4532
|
-
const
|
|
4506
|
+
let ar = !1;
|
|
4507
|
+
const xo = (e = {}) => {
|
|
4533
4508
|
var t, r;
|
|
4534
|
-
|
|
4509
|
+
ar || (ar = !0, je() && ((t = window.parent) == null || t.postMessage({
|
|
4535
4510
|
type: "builder.sdkInfo",
|
|
4536
4511
|
data: {
|
|
4537
|
-
target:
|
|
4512
|
+
target: rt,
|
|
4538
4513
|
version: vo,
|
|
4539
4514
|
supportsPatchUpdates: !1,
|
|
4540
4515
|
// Supports builder-model="..." attribute which is needed to
|
|
@@ -4555,21 +4530,21 @@ const bo = (e = {}) => {
|
|
|
4555
4530
|
switch (n.type) {
|
|
4556
4531
|
case "builder.evaluate": {
|
|
4557
4532
|
const s = n.data.text, u = n.data.arguments || [], f = n.data.id, g = new Function(s);
|
|
4558
|
-
let v,
|
|
4533
|
+
let v, b = null;
|
|
4559
4534
|
try {
|
|
4560
4535
|
v = g.apply(null, u);
|
|
4561
4536
|
} catch (U) {
|
|
4562
|
-
|
|
4537
|
+
b = U;
|
|
4563
4538
|
}
|
|
4564
|
-
|
|
4539
|
+
b ? (i = window.parent) == null || i.postMessage({
|
|
4565
4540
|
type: "builder.evaluateError",
|
|
4566
4541
|
data: {
|
|
4567
4542
|
id: f,
|
|
4568
|
-
error:
|
|
4543
|
+
error: b.message
|
|
4569
4544
|
}
|
|
4570
4545
|
}, "*") : v && typeof v.then == "function" ? v.then((U) => {
|
|
4571
|
-
var
|
|
4572
|
-
(
|
|
4546
|
+
var F;
|
|
4547
|
+
(F = window.parent) == null || F.postMessage({
|
|
4573
4548
|
type: "builder.evaluateResult",
|
|
4574
4549
|
data: {
|
|
4575
4550
|
id: f,
|
|
@@ -4588,91 +4563,103 @@ const bo = (e = {}) => {
|
|
|
4588
4563
|
}
|
|
4589
4564
|
})));
|
|
4590
4565
|
};
|
|
4591
|
-
function
|
|
4592
|
-
var
|
|
4593
|
-
const t =
|
|
4594
|
-
|
|
4595
|
-
|
|
4566
|
+
function bo(e) {
|
|
4567
|
+
var re, E, Ae, W, ke, ue, H;
|
|
4568
|
+
const t = Zt(null), [r, n] = V(() => 0);
|
|
4569
|
+
V(() => !0);
|
|
4570
|
+
function i(C) {
|
|
4571
|
+
var T, M;
|
|
4572
|
+
const I = {
|
|
4573
|
+
...e.builderContextSignal.rootState,
|
|
4574
|
+
...C
|
|
4575
|
+
};
|
|
4576
|
+
e.builderContextSignal.rootSetState ? (M = (T = e.builderContextSignal).rootSetState) == null || M.call(T, I) : e.setBuilderContextSignal((_) => ({
|
|
4577
|
+
..._,
|
|
4578
|
+
rootState: I
|
|
4579
|
+
}));
|
|
4580
|
+
}
|
|
4581
|
+
function a(C) {
|
|
4582
|
+
var T, M, _, G, Ce;
|
|
4596
4583
|
const I = {
|
|
4597
4584
|
...e.builderContextSignal.content,
|
|
4598
|
-
...
|
|
4585
|
+
...C,
|
|
4599
4586
|
data: {
|
|
4600
|
-
...(
|
|
4601
|
-
...
|
|
4587
|
+
...(T = e.builderContextSignal.content) == null ? void 0 : T.data,
|
|
4588
|
+
...C == null ? void 0 : C.data
|
|
4602
4589
|
},
|
|
4603
4590
|
meta: {
|
|
4604
|
-
...(
|
|
4605
|
-
...
|
|
4606
|
-
breakpoints: ((
|
|
4591
|
+
...(M = e.builderContextSignal.content) == null ? void 0 : M.meta,
|
|
4592
|
+
...C == null ? void 0 : C.meta,
|
|
4593
|
+
breakpoints: ((_ = C == null ? void 0 : C.meta) == null ? void 0 : _.breakpoints) || ((Ce = (G = e.builderContextSignal.content) == null ? void 0 : G.meta) == null ? void 0 : Ce.breakpoints)
|
|
4607
4594
|
}
|
|
4608
4595
|
};
|
|
4609
|
-
e.setBuilderContextSignal((
|
|
4610
|
-
...
|
|
4596
|
+
e.setBuilderContextSignal((at) => ({
|
|
4597
|
+
...at,
|
|
4611
4598
|
content: I
|
|
4612
4599
|
}));
|
|
4613
4600
|
}
|
|
4614
|
-
|
|
4615
|
-
const [
|
|
4601
|
+
V(() => 0);
|
|
4602
|
+
const [s, u] = V(
|
|
4616
4603
|
() => !1
|
|
4617
|
-
), [
|
|
4604
|
+
), [f, g] = V(
|
|
4618
4605
|
() => e.contentWrapper || "div"
|
|
4619
4606
|
);
|
|
4620
|
-
function
|
|
4621
|
-
var
|
|
4622
|
-
const { data: I } =
|
|
4607
|
+
function v(C) {
|
|
4608
|
+
var T;
|
|
4609
|
+
const { data: I } = C;
|
|
4623
4610
|
if (I)
|
|
4624
4611
|
switch (I.type) {
|
|
4625
4612
|
case "builder.configureSdk": {
|
|
4626
|
-
const
|
|
4627
|
-
if (!
|
|
4613
|
+
const M = I.data, { breakpoints: _, contentId: G } = M;
|
|
4614
|
+
if (!G || G !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id))
|
|
4628
4615
|
return;
|
|
4629
|
-
|
|
4616
|
+
_ && a({
|
|
4630
4617
|
meta: {
|
|
4631
|
-
breakpoints:
|
|
4618
|
+
breakpoints: _
|
|
4632
4619
|
}
|
|
4633
4620
|
}), n(r + 1);
|
|
4634
4621
|
break;
|
|
4635
4622
|
}
|
|
4636
4623
|
case "builder.contentUpdate": {
|
|
4637
|
-
const
|
|
4638
|
-
|
|
4624
|
+
const M = I.data, _ = M.key || M.alias || M.entry || M.modelName, G = M.data;
|
|
4625
|
+
_ === e.model && (a(G), n(r + 1));
|
|
4639
4626
|
break;
|
|
4640
4627
|
}
|
|
4641
4628
|
}
|
|
4642
4629
|
}
|
|
4643
|
-
function
|
|
4644
|
-
var I,
|
|
4645
|
-
const
|
|
4646
|
-
|
|
4647
|
-
code:
|
|
4630
|
+
function b() {
|
|
4631
|
+
var I, T;
|
|
4632
|
+
const C = (T = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : T.jsCode;
|
|
4633
|
+
C && nt({
|
|
4634
|
+
code: C,
|
|
4648
4635
|
context: e.context || {},
|
|
4649
4636
|
localState: void 0,
|
|
4650
4637
|
rootState: e.builderContextSignal.rootState,
|
|
4651
4638
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4652
4639
|
});
|
|
4653
4640
|
}
|
|
4654
|
-
const [
|
|
4655
|
-
function
|
|
4656
|
-
var I,
|
|
4641
|
+
const [U, F] = V(() => ({})), [O, P] = V(() => !1);
|
|
4642
|
+
function L(C) {
|
|
4643
|
+
var I, T;
|
|
4657
4644
|
if (e.builderContextSignal.content) {
|
|
4658
|
-
const
|
|
4659
|
-
|
|
4645
|
+
const M = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, _ = (T = e.builderContextSignal.content) == null ? void 0 : T.id;
|
|
4646
|
+
Hn({
|
|
4660
4647
|
type: "click",
|
|
4661
|
-
canTrack:
|
|
4662
|
-
contentId:
|
|
4648
|
+
canTrack: pt(e.canTrack),
|
|
4649
|
+
contentId: _,
|
|
4663
4650
|
apiKey: e.apiKey,
|
|
4664
|
-
variationId:
|
|
4665
|
-
...go(
|
|
4666
|
-
unique: !
|
|
4651
|
+
variationId: M !== _ ? M : void 0,
|
|
4652
|
+
...go(C),
|
|
4653
|
+
unique: !O
|
|
4667
4654
|
});
|
|
4668
4655
|
}
|
|
4669
|
-
|
|
4656
|
+
O || P(!0);
|
|
4670
4657
|
}
|
|
4671
|
-
function
|
|
4672
|
-
return
|
|
4658
|
+
function Y(C) {
|
|
4659
|
+
return C.replace(
|
|
4673
4660
|
/{{([^}]+)}}/g,
|
|
4674
|
-
(I,
|
|
4675
|
-
code:
|
|
4661
|
+
(I, T) => nt({
|
|
4662
|
+
code: T,
|
|
4676
4663
|
context: e.context || {},
|
|
4677
4664
|
localState: void 0,
|
|
4678
4665
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4680,38 +4667,38 @@ function xo(e) {
|
|
|
4680
4667
|
})
|
|
4681
4668
|
);
|
|
4682
4669
|
}
|
|
4683
|
-
function
|
|
4684
|
-
|
|
4685
|
-
var
|
|
4686
|
-
const
|
|
4670
|
+
function y({ url: C, key: I }) {
|
|
4671
|
+
Gr(C).then((T) => T.json()).then((T) => {
|
|
4672
|
+
var _, G;
|
|
4673
|
+
const M = {
|
|
4687
4674
|
...e.builderContextSignal.rootState,
|
|
4688
|
-
[I]:
|
|
4675
|
+
[I]: T
|
|
4689
4676
|
};
|
|
4690
|
-
(
|
|
4691
|
-
}).catch((
|
|
4692
|
-
console.error("error fetching dynamic data",
|
|
4677
|
+
(G = (_ = e.builderContextSignal).rootSetState) == null || G.call(_, M), U[I] = !0;
|
|
4678
|
+
}).catch((T) => {
|
|
4679
|
+
console.error("error fetching dynamic data", C, T);
|
|
4693
4680
|
});
|
|
4694
4681
|
}
|
|
4695
|
-
function
|
|
4696
|
-
var I,
|
|
4697
|
-
const
|
|
4698
|
-
Object.entries(
|
|
4699
|
-
if (
|
|
4700
|
-
const
|
|
4701
|
-
|
|
4702
|
-
url:
|
|
4703
|
-
key:
|
|
4682
|
+
function K() {
|
|
4683
|
+
var I, T, M;
|
|
4684
|
+
const C = (M = (T = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : T.httpRequests) != null ? M : {};
|
|
4685
|
+
Object.entries(C).forEach(([_, G]) => {
|
|
4686
|
+
if (G && (!U[_] || Te())) {
|
|
4687
|
+
const Ce = Y(G);
|
|
4688
|
+
y({
|
|
4689
|
+
url: Ce,
|
|
4690
|
+
key: _
|
|
4704
4691
|
});
|
|
4705
4692
|
}
|
|
4706
4693
|
});
|
|
4707
4694
|
}
|
|
4708
|
-
function
|
|
4709
|
-
|
|
4695
|
+
function ne() {
|
|
4696
|
+
Te() && window.dispatchEvent(
|
|
4710
4697
|
new CustomEvent(
|
|
4711
4698
|
"builder:component:stateChange",
|
|
4712
4699
|
{
|
|
4713
4700
|
detail: {
|
|
4714
|
-
state:
|
|
4701
|
+
state: Qt(e.builderContextSignal.rootState),
|
|
4715
4702
|
ref: {
|
|
4716
4703
|
name: e.model
|
|
4717
4704
|
}
|
|
@@ -4720,8 +4707,8 @@ function xo(e) {
|
|
|
4720
4707
|
)
|
|
4721
4708
|
);
|
|
4722
4709
|
}
|
|
4723
|
-
function
|
|
4724
|
-
n(r + 1), window.addEventListener("message",
|
|
4710
|
+
function le(C) {
|
|
4711
|
+
n(r + 1), window.addEventListener("message", v), yo(), xo({
|
|
4725
4712
|
...e.locale ? {
|
|
4726
4713
|
locale: e.locale
|
|
4727
4714
|
} : {},
|
|
@@ -4734,100 +4721,106 @@ function xo(e) {
|
|
|
4734
4721
|
}), Object.values(
|
|
4735
4722
|
e.builderContextSignal.componentInfos
|
|
4736
4723
|
).forEach((I) => {
|
|
4737
|
-
var
|
|
4738
|
-
const
|
|
4739
|
-
(
|
|
4724
|
+
var M;
|
|
4725
|
+
const T = Kr(I);
|
|
4726
|
+
(M = window.parent) == null || M.postMessage(T, "*");
|
|
4740
4727
|
}), window.addEventListener(
|
|
4741
4728
|
"builder:component:stateChangeListenerActivated",
|
|
4742
|
-
|
|
4729
|
+
ne
|
|
4743
4730
|
);
|
|
4744
4731
|
}
|
|
4745
|
-
function
|
|
4746
|
-
const I = new URL(location.href).searchParams,
|
|
4747
|
-
`builder.preview.${
|
|
4748
|
-
),
|
|
4749
|
-
|
|
4732
|
+
function $(C) {
|
|
4733
|
+
const I = new URL(location.href).searchParams, T = I.get("builder.preview"), M = I.get(
|
|
4734
|
+
`builder.preview.${T}`
|
|
4735
|
+
), _ = I.get("apiKey") || I.get("builder.space");
|
|
4736
|
+
T === e.model && _ === e.apiKey && (!e.content || M === e.content.id) && ur({
|
|
4750
4737
|
model: e.model,
|
|
4751
4738
|
apiKey: e.apiKey,
|
|
4752
4739
|
apiVersion: e.builderContextSignal.apiVersion
|
|
4753
|
-
}).then((
|
|
4754
|
-
|
|
4740
|
+
}).then((G) => {
|
|
4741
|
+
G && a(G);
|
|
4755
4742
|
});
|
|
4756
4743
|
}
|
|
4757
|
-
return
|
|
4758
|
-
var
|
|
4759
|
-
return (
|
|
4744
|
+
return Z(() => {
|
|
4745
|
+
var C;
|
|
4746
|
+
return (C = t.current) == null || C.addEventListener(
|
|
4760
4747
|
"initeditingbldr",
|
|
4761
|
-
|
|
4748
|
+
le
|
|
4762
4749
|
), () => {
|
|
4763
4750
|
var I;
|
|
4764
4751
|
return (I = t.current) == null ? void 0 : I.removeEventListener(
|
|
4765
4752
|
"initeditingbldr",
|
|
4766
|
-
|
|
4753
|
+
le
|
|
4767
4754
|
);
|
|
4768
4755
|
};
|
|
4769
|
-
}, []),
|
|
4770
|
-
var
|
|
4771
|
-
return (
|
|
4756
|
+
}, []), Z(() => {
|
|
4757
|
+
var C;
|
|
4758
|
+
return (C = t.current) == null || C.addEventListener(
|
|
4772
4759
|
"initpreviewingbldr",
|
|
4773
|
-
|
|
4760
|
+
$
|
|
4774
4761
|
), () => {
|
|
4775
4762
|
var I;
|
|
4776
4763
|
return (I = t.current) == null ? void 0 : I.removeEventListener(
|
|
4777
4764
|
"initpreviewingbldr",
|
|
4778
|
-
|
|
4765
|
+
$
|
|
4779
4766
|
);
|
|
4780
4767
|
};
|
|
4781
|
-
}, []),
|
|
4782
|
-
var
|
|
4783
|
-
if (
|
|
4784
|
-
if (
|
|
4785
|
-
const
|
|
4786
|
-
|
|
4768
|
+
}, []), Z(() => {
|
|
4769
|
+
var C, I;
|
|
4770
|
+
if (je()) {
|
|
4771
|
+
if (Te() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && pt(e.canTrack)) {
|
|
4772
|
+
const M = (C = e.builderContextSignal.content) == null ? void 0 : C.testVariationId, _ = (I = e.builderContextSignal.content) == null ? void 0 : I.id, G = e.apiKey;
|
|
4773
|
+
Hn({
|
|
4787
4774
|
type: "impression",
|
|
4788
4775
|
canTrack: !0,
|
|
4789
|
-
contentId:
|
|
4790
|
-
apiKey:
|
|
4791
|
-
variationId:
|
|
4776
|
+
contentId: _,
|
|
4777
|
+
apiKey: G,
|
|
4778
|
+
variationId: M !== _ ? M : void 0
|
|
4792
4779
|
});
|
|
4793
4780
|
}
|
|
4794
|
-
|
|
4781
|
+
Hr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
4795
4782
|
}
|
|
4796
|
-
}, []),
|
|
4797
|
-
e.apiKey ||
|
|
4783
|
+
}, []), Z(() => {
|
|
4784
|
+
e.apiKey || Ue.error(
|
|
4798
4785
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4799
|
-
),
|
|
4800
|
-
}, []),
|
|
4801
|
-
e.content &&
|
|
4802
|
-
}, [e.content]),
|
|
4803
|
-
}, [
|
|
4804
|
-
|
|
4786
|
+
), b(), K(), ne();
|
|
4787
|
+
}, []), Z(() => {
|
|
4788
|
+
e.content && a(e.content);
|
|
4789
|
+
}, [e.content]), Z(() => {
|
|
4790
|
+
}, [s]), Z(() => {
|
|
4791
|
+
b();
|
|
4805
4792
|
}, [
|
|
4806
|
-
(
|
|
4793
|
+
(E = (re = e.builderContextSignal.content) == null ? void 0 : re.data) == null ? void 0 : E.jsCode,
|
|
4807
4794
|
e.builderContextSignal.rootState
|
|
4808
|
-
]),
|
|
4809
|
-
|
|
4810
|
-
}, [(
|
|
4811
|
-
|
|
4812
|
-
}, [e.builderContextSignal.rootState]),
|
|
4813
|
-
|
|
4795
|
+
]), Z(() => {
|
|
4796
|
+
K();
|
|
4797
|
+
}, [(W = (Ae = e.builderContextSignal.content) == null ? void 0 : Ae.data) == null ? void 0 : W.httpRequests]), Z(() => {
|
|
4798
|
+
ne();
|
|
4799
|
+
}, [e.builderContextSignal.rootState]), Z(() => {
|
|
4800
|
+
e.data && i(e.data);
|
|
4801
|
+
}, [e.data]), Z(() => {
|
|
4802
|
+
e.locale && i({
|
|
4803
|
+
locale: e.locale
|
|
4804
|
+
});
|
|
4805
|
+
}, [e.locale]), Z(() => () => {
|
|
4806
|
+
je() && (window.removeEventListener("message", v), window.removeEventListener(
|
|
4814
4807
|
"builder:component:stateChangeListenerActivated",
|
|
4815
|
-
|
|
4808
|
+
ne
|
|
4816
4809
|
));
|
|
4817
|
-
}, []), /* @__PURE__ */ p(
|
|
4818
|
-
|
|
4810
|
+
}, []), /* @__PURE__ */ p(en.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ cr(
|
|
4811
|
+
f,
|
|
4819
4812
|
{
|
|
4820
4813
|
key: r,
|
|
4821
4814
|
ref: t,
|
|
4822
|
-
onClick: (
|
|
4823
|
-
"builder-content-id": (
|
|
4815
|
+
onClick: (C) => L(C),
|
|
4816
|
+
"builder-content-id": (ke = e.builderContextSignal.content) == null ? void 0 : ke.id,
|
|
4824
4817
|
"builder-model": e.model,
|
|
4825
4818
|
...e.showContent ? {} : {
|
|
4826
4819
|
hidden: !0,
|
|
4827
4820
|
"aria-hidden": !0
|
|
4828
4821
|
},
|
|
4829
4822
|
...e.contentWrapperProps,
|
|
4830
|
-
className: `variant-${((
|
|
4823
|
+
className: `variant-${((ue = e.content) == null ? void 0 : ue.testVariationId) || ((H = e.content) == null ? void 0 : H.id)}`
|
|
4831
4824
|
},
|
|
4832
4825
|
e.children
|
|
4833
4826
|
) }) : null });
|
|
@@ -4868,7 +4861,7 @@ font-weight: ${u};
|
|
|
4868
4861
|
contentId: t
|
|
4869
4862
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4870
4863
|
function Co(e) {
|
|
4871
|
-
const [t, r] =
|
|
4864
|
+
const [t, r] = V(
|
|
4872
4865
|
() => `
|
|
4873
4866
|
${ko({
|
|
4874
4867
|
cssCode: e.cssCode,
|
|
@@ -4892,7 +4885,7 @@ ${wo({
|
|
|
4892
4885
|
}
|
|
4893
4886
|
`.trim()
|
|
4894
4887
|
);
|
|
4895
|
-
return /* @__PURE__ */ p(
|
|
4888
|
+
return /* @__PURE__ */ p(xt, { styles: t });
|
|
4896
4889
|
}
|
|
4897
4890
|
const Eo = ({
|
|
4898
4891
|
content: e,
|
|
@@ -4922,46 +4915,46 @@ const Eo = ({
|
|
|
4922
4915
|
},
|
|
4923
4916
|
meta: e == null ? void 0 : e.meta
|
|
4924
4917
|
} : void 0;
|
|
4925
|
-
function
|
|
4926
|
-
var f, g, v,
|
|
4927
|
-
const [t, r] =
|
|
4918
|
+
function sr(e) {
|
|
4919
|
+
var f, g, v, b, U, F, O;
|
|
4920
|
+
const [t, r] = V(
|
|
4928
4921
|
() => {
|
|
4929
|
-
var
|
|
4922
|
+
var P, L;
|
|
4930
4923
|
return ho({
|
|
4931
4924
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4932
|
-
variationId: (
|
|
4925
|
+
variationId: (P = e.content) == null ? void 0 : P.testVariationId,
|
|
4933
4926
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4934
|
-
contentId: (
|
|
4927
|
+
contentId: (L = e.content) == null ? void 0 : L.id
|
|
4935
4928
|
});
|
|
4936
4929
|
}
|
|
4937
4930
|
);
|
|
4938
|
-
function n(
|
|
4939
|
-
u((
|
|
4940
|
-
...
|
|
4941
|
-
rootState:
|
|
4931
|
+
function n(P) {
|
|
4932
|
+
u((L) => ({
|
|
4933
|
+
...L,
|
|
4934
|
+
rootState: P
|
|
4942
4935
|
}));
|
|
4943
4936
|
}
|
|
4944
|
-
const [i, a] =
|
|
4937
|
+
const [i, a] = V(
|
|
4945
4938
|
() => [
|
|
4946
|
-
...
|
|
4939
|
+
...rr(),
|
|
4947
4940
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
4948
4941
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
4949
4942
|
// existing usage.
|
|
4950
4943
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
4951
4944
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
4952
|
-
...
|
|
4945
|
+
...Kn,
|
|
4953
4946
|
...e.customComponents || []
|
|
4954
4947
|
].reduce(
|
|
4955
|
-
(
|
|
4956
|
-
...
|
|
4957
|
-
[
|
|
4958
|
-
component:
|
|
4959
|
-
...
|
|
4948
|
+
(P, { component: L, ...Y }) => ({
|
|
4949
|
+
...P,
|
|
4950
|
+
[Y.name]: {
|
|
4951
|
+
component: L,
|
|
4952
|
+
...Gn(Y)
|
|
4960
4953
|
}
|
|
4961
4954
|
}),
|
|
4962
4955
|
{}
|
|
4963
4956
|
)
|
|
4964
|
-
), [s, u] =
|
|
4957
|
+
), [s, u] = V(() => ({
|
|
4965
4958
|
content: Io({
|
|
4966
4959
|
content: e.content,
|
|
4967
4960
|
data: e.data
|
|
@@ -4977,18 +4970,18 @@ function lr(e) {
|
|
|
4977
4970
|
apiKey: e.apiKey,
|
|
4978
4971
|
apiVersion: e.apiVersion,
|
|
4979
4972
|
componentInfos: [
|
|
4980
|
-
...
|
|
4973
|
+
...rr(),
|
|
4981
4974
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
4982
4975
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
4983
4976
|
// existing usage.
|
|
4984
4977
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
4985
4978
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
4986
|
-
...
|
|
4979
|
+
...Kn,
|
|
4987
4980
|
...e.customComponents || []
|
|
4988
4981
|
].reduce(
|
|
4989
|
-
(
|
|
4990
|
-
...
|
|
4991
|
-
[
|
|
4982
|
+
(P, { component: L, ...Y }) => ({
|
|
4983
|
+
...P,
|
|
4984
|
+
[Y.name]: Gn(Y)
|
|
4992
4985
|
}),
|
|
4993
4986
|
{}
|
|
4994
4987
|
),
|
|
@@ -4997,15 +4990,16 @@ function lr(e) {
|
|
|
4997
4990
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4998
4991
|
}));
|
|
4999
4992
|
return /* @__PURE__ */ p(
|
|
5000
|
-
|
|
4993
|
+
dr.Provider,
|
|
5001
4994
|
{
|
|
5002
4995
|
value: {
|
|
5003
4996
|
registeredComponents: i
|
|
5004
4997
|
},
|
|
5005
|
-
children: /* @__PURE__ */
|
|
5006
|
-
|
|
4998
|
+
children: /* @__PURE__ */ te(
|
|
4999
|
+
bo,
|
|
5007
5000
|
{
|
|
5008
5001
|
content: e.content,
|
|
5002
|
+
data: e.data,
|
|
5009
5003
|
model: e.model,
|
|
5010
5004
|
context: e.context,
|
|
5011
5005
|
apiKey: e.apiKey,
|
|
@@ -5019,19 +5013,19 @@ function lr(e) {
|
|
|
5019
5013
|
contentWrapperProps: e.contentWrapperProps,
|
|
5020
5014
|
setBuilderContextSignal: u,
|
|
5021
5015
|
children: [
|
|
5022
|
-
e.isSsrAbTest ? /* @__PURE__ */ p(
|
|
5023
|
-
/* @__PURE__ */ p(
|
|
5016
|
+
e.isSsrAbTest ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(qt, { scriptStr: t }) }) : null,
|
|
5017
|
+
/* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
5024
5018
|
Co,
|
|
5025
5019
|
{
|
|
5026
5020
|
contentId: (f = s.content) == null ? void 0 : f.id,
|
|
5027
5021
|
cssCode: (v = (g = s.content) == null ? void 0 : g.data) == null ? void 0 : v.cssCode,
|
|
5028
|
-
customFonts: (U = (
|
|
5022
|
+
customFonts: (U = (b = s.content) == null ? void 0 : b.data) == null ? void 0 : U.customFonts
|
|
5029
5023
|
}
|
|
5030
5024
|
) }),
|
|
5031
5025
|
/* @__PURE__ */ p(
|
|
5032
5026
|
hn,
|
|
5033
5027
|
{
|
|
5034
|
-
blocks: (
|
|
5028
|
+
blocks: (O = (F = s.content) == null ? void 0 : F.data) == null ? void 0 : O.blocks,
|
|
5035
5029
|
context: s,
|
|
5036
5030
|
registeredComponents: i
|
|
5037
5031
|
}
|
|
@@ -5042,18 +5036,18 @@ function lr(e) {
|
|
|
5042
5036
|
}
|
|
5043
5037
|
);
|
|
5044
5038
|
}
|
|
5045
|
-
function
|
|
5039
|
+
function Er(e) {
|
|
5046
5040
|
var s, u;
|
|
5047
|
-
const [t, r] =
|
|
5041
|
+
const [t, r] = V(
|
|
5048
5042
|
() => lo({
|
|
5049
|
-
canTrack:
|
|
5043
|
+
canTrack: pt(e.canTrack),
|
|
5050
5044
|
content: e.content
|
|
5051
5045
|
})
|
|
5052
5046
|
);
|
|
5053
5047
|
function n() {
|
|
5054
5048
|
var f;
|
|
5055
5049
|
return fo(
|
|
5056
|
-
|
|
5050
|
+
ht(e.content).map((g) => ({
|
|
5057
5051
|
id: g.testVariationId,
|
|
5058
5052
|
testRatio: g.testRatio
|
|
5059
5053
|
})),
|
|
@@ -5061,32 +5055,32 @@ function Ir(e) {
|
|
|
5061
5055
|
);
|
|
5062
5056
|
}
|
|
5063
5057
|
function i() {
|
|
5064
|
-
return
|
|
5058
|
+
return ht(e.content).map((f) => `.variant-${f.testVariationId} { display: none; } `).join("");
|
|
5065
5059
|
}
|
|
5066
5060
|
function a() {
|
|
5067
5061
|
var f;
|
|
5068
5062
|
return t ? {
|
|
5069
5063
|
...e.content,
|
|
5070
5064
|
testVariationId: (f = e.content) == null ? void 0 : f.id
|
|
5071
|
-
} :
|
|
5065
|
+
} : zr({
|
|
5072
5066
|
item: e.content,
|
|
5073
|
-
canTrack:
|
|
5067
|
+
canTrack: pt(e.canTrack)
|
|
5074
5068
|
});
|
|
5075
5069
|
}
|
|
5076
|
-
return
|
|
5077
|
-
}, []), /* @__PURE__ */
|
|
5078
|
-
!e.__isNestedRender &&
|
|
5079
|
-
t ? /* @__PURE__ */
|
|
5070
|
+
return Z(() => {
|
|
5071
|
+
}, []), /* @__PURE__ */ te(N, { children: [
|
|
5072
|
+
!e.__isNestedRender && rt !== "reactNative" ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(qt, { scriptStr: uo() }) }) : null,
|
|
5073
|
+
t ? /* @__PURE__ */ te(N, { children: [
|
|
5080
5074
|
/* @__PURE__ */ p(
|
|
5081
|
-
|
|
5075
|
+
xt,
|
|
5082
5076
|
{
|
|
5083
5077
|
id: `variants-styles-${(s = e.content) == null ? void 0 : s.id}`,
|
|
5084
5078
|
styles: i()
|
|
5085
5079
|
}
|
|
5086
5080
|
),
|
|
5087
|
-
/* @__PURE__ */ p(
|
|
5088
|
-
(u =
|
|
5089
|
-
|
|
5081
|
+
/* @__PURE__ */ p(qt, { scriptStr: n() }),
|
|
5082
|
+
(u = ht(e.content)) == null ? void 0 : u.map((f) => /* @__PURE__ */ p(
|
|
5083
|
+
sr,
|
|
5090
5084
|
{
|
|
5091
5085
|
content: f,
|
|
5092
5086
|
showContent: !1,
|
|
@@ -5110,7 +5104,7 @@ function Ir(e) {
|
|
|
5110
5104
|
))
|
|
5111
5105
|
] }) : null,
|
|
5112
5106
|
/* @__PURE__ */ p(
|
|
5113
|
-
|
|
5107
|
+
sr,
|
|
5114
5108
|
{
|
|
5115
5109
|
content: a(),
|
|
5116
5110
|
showContent: !0,
|
|
@@ -5139,7 +5133,7 @@ const To = async ({
|
|
|
5139
5133
|
}) => {
|
|
5140
5134
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5141
5135
|
(e != null && e.apiKey))
|
|
5142
|
-
return
|
|
5136
|
+
return ur({
|
|
5143
5137
|
model: t.model,
|
|
5144
5138
|
apiKey: e.apiKey,
|
|
5145
5139
|
apiVersion: e.apiVersion,
|
|
@@ -5149,7 +5143,7 @@ const To = async ({
|
|
|
5149
5143
|
}
|
|
5150
5144
|
}
|
|
5151
5145
|
}).catch((r) => {
|
|
5152
|
-
|
|
5146
|
+
Ue.error("Could not fetch symbol content: ", r);
|
|
5153
5147
|
});
|
|
5154
5148
|
};
|
|
5155
5149
|
function jo(e) {
|
|
@@ -5163,7 +5157,7 @@ function jo(e) {
|
|
|
5163
5157
|
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5164
5158
|
].filter(Boolean).join(" ");
|
|
5165
5159
|
}
|
|
5166
|
-
const [r, n] =
|
|
5160
|
+
const [r, n] = V(() => {
|
|
5167
5161
|
var f;
|
|
5168
5162
|
return (f = e.symbol) == null ? void 0 : f.content;
|
|
5169
5163
|
});
|
|
@@ -5175,11 +5169,11 @@ function jo(e) {
|
|
|
5175
5169
|
f && n(f);
|
|
5176
5170
|
});
|
|
5177
5171
|
}
|
|
5178
|
-
return
|
|
5179
|
-
}, []),
|
|
5172
|
+
return Z(() => {
|
|
5173
|
+
}, []), Z(() => {
|
|
5180
5174
|
i();
|
|
5181
5175
|
}, [e.symbol]), /* @__PURE__ */ p("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ p(
|
|
5182
|
-
|
|
5176
|
+
Er,
|
|
5183
5177
|
{
|
|
5184
5178
|
__isNestedRender: !0,
|
|
5185
5179
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5196,12 +5190,12 @@ function jo(e) {
|
|
|
5196
5190
|
}
|
|
5197
5191
|
) });
|
|
5198
5192
|
}
|
|
5199
|
-
const Po = hn, No =
|
|
5193
|
+
const Po = hn, No = Er;
|
|
5200
5194
|
export {
|
|
5201
5195
|
hn as Blocks,
|
|
5202
|
-
|
|
5196
|
+
Xr as Button,
|
|
5203
5197
|
Fi as Columns,
|
|
5204
|
-
|
|
5198
|
+
Er as Content,
|
|
5205
5199
|
Ui as Fragment,
|
|
5206
5200
|
Wi as Image,
|
|
5207
5201
|
Po as RenderBlocks,
|
|
@@ -5211,16 +5205,16 @@ export {
|
|
|
5211
5205
|
ro as Text,
|
|
5212
5206
|
oo as Video,
|
|
5213
5207
|
Fo as _processContentResult,
|
|
5214
|
-
|
|
5208
|
+
Kr as createRegisterComponentMessage,
|
|
5215
5209
|
Uo as fetchBuilderProps,
|
|
5216
5210
|
_o as fetchEntries,
|
|
5217
|
-
|
|
5211
|
+
ur as fetchOneEntry,
|
|
5218
5212
|
Do as getAllContent,
|
|
5219
5213
|
Wo as getBuilderSearchParams,
|
|
5220
5214
|
Vo as getContent,
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5215
|
+
Te as isEditing,
|
|
5216
|
+
Hr as isPreviewing,
|
|
5217
|
+
$r as register,
|
|
5224
5218
|
Lo as setEditorSettings,
|
|
5225
5219
|
$o as track
|
|
5226
5220
|
};
|