@builder.io/sdk-react 0.11.1 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/index.cjs +25 -25
- package/lib/browser/index.mjs +526 -551
- package/lib/edge/index.cjs +29 -29
- package/lib/edge/index.mjs +782 -807
- package/lib/node/index.cjs +18 -18
- package/lib/node/index.mjs +394 -419
- 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-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 Ie, j as Te, k as
|
|
2
|
+
import { jsxs as Q, Fragment as N, jsx as p } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as lr, useState as H, useContext as $n, createElement as cr, useRef as qt, useEffect as ee } from "react";
|
|
4
|
+
import { i as Ie, j as Te, k as Lr, l as Fe, m as Zt, n as Kt, T as nt, r as $r, o as ht, 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__ */ Q(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 Qt =
|
|
31
|
+
const Qt = 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
|
-
}),
|
|
68
|
+
}), Jr = () => ({
|
|
69
69
|
isEditing: Ie(),
|
|
70
70
|
isBrowser: Te(),
|
|
71
71
|
isServer: !Te(),
|
|
72
|
-
getUserAttributes: () =>
|
|
73
|
-
}),
|
|
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,31 +101,31 @@ 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 U, 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
|
-
for (var c =
|
|
119
|
-
dt.lastIndex =
|
|
118
|
+
for (var c = b, h = 1, j = 0; ; ) {
|
|
119
|
+
dt.lastIndex = j;
|
|
120
120
|
var Y = dt.exec(c);
|
|
121
121
|
if (Y && Y.index < o)
|
|
122
|
-
++h,
|
|
122
|
+
++h, j = Y.index + Y[0].length;
|
|
123
123
|
else
|
|
124
124
|
break;
|
|
125
125
|
}
|
|
126
126
|
throw c = {
|
|
127
127
|
line: h,
|
|
128
|
-
ab: o -
|
|
128
|
+
ab: o - j
|
|
129
129
|
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = o, l.X = c, l.o = d, l;
|
|
130
130
|
}
|
|
131
131
|
function i(o) {
|
|
@@ -140,39 +140,39 @@ var F, ti = function(e) {
|
|
|
140
140
|
this.line = Ce, this.ab = d - fe;
|
|
141
141
|
}
|
|
142
142
|
function s(o, l) {
|
|
143
|
-
Re = d,
|
|
143
|
+
Re = d, A.C && (Tt = new a()), T = o, f(), le = l, Ve = o.m;
|
|
144
144
|
}
|
|
145
145
|
function u() {
|
|
146
|
-
for (var o = d, l =
|
|
147
|
-
++d, c =
|
|
148
|
-
|
|
146
|
+
for (var o = d, l = A.va && A.C && new a(), c = b.charCodeAt(d += 2); d < Ae && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
147
|
+
++d, c = b.charCodeAt(d);
|
|
148
|
+
A.va && A.va(!1, b.slice(o + 2, d), o, d, l, A.C && new a());
|
|
149
149
|
}
|
|
150
150
|
function f() {
|
|
151
151
|
for (; d < Ae; ) {
|
|
152
|
-
var o =
|
|
152
|
+
var o = b.charCodeAt(d);
|
|
153
153
|
if (o === 32)
|
|
154
154
|
++d;
|
|
155
155
|
else if (o === 13)
|
|
156
|
-
++d, o =
|
|
156
|
+
++d, o = b.charCodeAt(d), o === 10 && ++d, A.C && (++Ce, fe = d);
|
|
157
157
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
158
|
-
++d,
|
|
158
|
+
++d, A.C && (++Ce, fe = d);
|
|
159
159
|
else if (8 < o && 14 > o)
|
|
160
160
|
++d;
|
|
161
161
|
else if (o === 47)
|
|
162
|
-
if (o =
|
|
162
|
+
if (o = b.charCodeAt(d + 1), o === 42) {
|
|
163
163
|
o = void 0;
|
|
164
|
-
var l =
|
|
165
|
-
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2,
|
|
166
|
-
for (dt.lastIndex = c; (o = dt.exec(
|
|
164
|
+
var l = A.va && A.C && new a(), c = d, h = b.indexOf("*/", d += 2);
|
|
165
|
+
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2, A.C)
|
|
166
|
+
for (dt.lastIndex = c; (o = dt.exec(b)) && o.index < d; )
|
|
167
167
|
++Ce, fe = o.index + o[0].length;
|
|
168
|
-
|
|
168
|
+
A.va && A.va(!0, b.slice(c + 2, h), c, d, l, A.C && new a());
|
|
169
169
|
} else if (o === 47)
|
|
170
170
|
u();
|
|
171
171
|
else
|
|
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,7 +181,7 @@ var F, ti = function(e) {
|
|
|
181
181
|
function g(o) {
|
|
182
182
|
switch (o) {
|
|
183
183
|
case 46:
|
|
184
|
-
o =
|
|
184
|
+
o = b.charCodeAt(d + 1), 48 <= o && 57 >= o ? O(!0) : (++d, s(Mn));
|
|
185
185
|
return;
|
|
186
186
|
case 40:
|
|
187
187
|
return ++d, s(he);
|
|
@@ -202,10 +202,10 @@ var F, ti = function(e) {
|
|
|
202
202
|
case 58:
|
|
203
203
|
return ++d, s(Ke);
|
|
204
204
|
case 63:
|
|
205
|
-
return ++d, s(
|
|
205
|
+
return ++d, s(Bn);
|
|
206
206
|
case 48:
|
|
207
|
-
if (o =
|
|
208
|
-
d += 2, o =
|
|
207
|
+
if (o = b.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
208
|
+
d += 2, o = M(16), o === null && n(z + 2, "Expected hexadecimal number"), r(b.charCodeAt(d)) && n(d, "Identifier directly after number"), s($e, o);
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
211
|
case 49:
|
|
@@ -217,20 +217,20 @@ 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 >= Ae && n(
|
|
226
|
-
var c =
|
|
225
|
+
d >= Ae && n(z, "Unterminated string constant");
|
|
226
|
+
var c = b.charCodeAt(d);
|
|
227
227
|
if (c === o) {
|
|
228
228
|
++d, s(st, l);
|
|
229
229
|
break;
|
|
230
230
|
}
|
|
231
231
|
if (c === 92) {
|
|
232
|
-
c =
|
|
233
|
-
var h = /^[0-7]+/.exec(
|
|
232
|
+
c = b.charCodeAt(++d);
|
|
233
|
+
var h = /^[0-7]+/.exec(b.slice(d, d + 3));
|
|
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)
|
|
@@ -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 += " ";
|
|
@@ -269,69 +269,69 @@ var F, ti = function(e) {
|
|
|
269
269
|
l += "\0";
|
|
270
270
|
break;
|
|
271
271
|
case 13:
|
|
272
|
-
|
|
272
|
+
b.charCodeAt(d) === 10 && ++d;
|
|
273
273
|
case 10:
|
|
274
|
-
|
|
274
|
+
A.C && (fe = d, ++Ce);
|
|
275
275
|
break;
|
|
276
276
|
default:
|
|
277
277
|
l += String.fromCharCode(c);
|
|
278
278
|
}
|
|
279
279
|
} else
|
|
280
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || n(
|
|
280
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || n(z, "Unterminated string constant"), l += String.fromCharCode(c), ++d;
|
|
281
281
|
}
|
|
282
282
|
return;
|
|
283
283
|
case 47:
|
|
284
|
-
o =
|
|
284
|
+
o = b.charCodeAt(d + 1), Ve ? (++d, _()) : o === 61 ? S(Ee, 2) : S(Fn, 1);
|
|
285
285
|
return;
|
|
286
286
|
case 37:
|
|
287
287
|
case 42:
|
|
288
|
-
|
|
288
|
+
b.charCodeAt(d + 1) === 61 ? S(Ee, 2) : S(Fr, 1);
|
|
289
289
|
return;
|
|
290
290
|
case 124:
|
|
291
291
|
case 38:
|
|
292
|
-
l =
|
|
292
|
+
l = b.charCodeAt(d + 1), l === o ? S(o === 124 ? Dn : Wn, 2) : l === 61 ? S(Ee, 2) : S(o === 124 ? Ar : Or, 1);
|
|
293
293
|
return;
|
|
294
294
|
case 94:
|
|
295
|
-
|
|
295
|
+
b.charCodeAt(d + 1) === 61 ? S(Ee, 2) : S(Rr, 1);
|
|
296
296
|
return;
|
|
297
297
|
case 43:
|
|
298
298
|
case 45:
|
|
299
|
-
l =
|
|
299
|
+
l = b.charCodeAt(d + 1), l === o ? l === 45 && b.charCodeAt(d + 2) === 62 && ut.test(b.slice(be, d)) ? (d += 3, u(), f(), v()) : S(jr, 2) : l === 61 ? S(Ee, 2) : S(Br, 1);
|
|
300
300
|
return;
|
|
301
301
|
case 60:
|
|
302
302
|
case 62:
|
|
303
|
-
l =
|
|
303
|
+
l = b.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && b.charCodeAt(d + 2) === 62 ? 3 : 2, b.charCodeAt(d + c) === 61 ? S(Ee, c + 1) : S(Mr, c)) : l === 33 && o === 60 && b.charCodeAt(d + 2) === 45 && b.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), v()) : (l === 61 && (c = b.charCodeAt(d + 2) === 61 ? 3 : 2), S(Nr, c));
|
|
304
304
|
return;
|
|
305
305
|
case 61:
|
|
306
306
|
case 33:
|
|
307
|
-
|
|
307
|
+
b.charCodeAt(d + 1) === 61 ? S(Pr, b.charCodeAt(d + 2) === 61 ? 3 : 2) : S(o === 61 ? Un : _n, 1);
|
|
308
308
|
return;
|
|
309
309
|
case 126:
|
|
310
|
-
return S(
|
|
310
|
+
return S(_n, 1);
|
|
311
311
|
}
|
|
312
312
|
return !1;
|
|
313
313
|
}
|
|
314
314
|
function v(o) {
|
|
315
|
-
if (o ? d =
|
|
316
|
-
return
|
|
315
|
+
if (o ? d = z + 1 : z = d, A.C && (It = new a()), o)
|
|
316
|
+
return _();
|
|
317
317
|
if (d >= Ae)
|
|
318
318
|
return s(Rt);
|
|
319
|
-
if (o =
|
|
320
|
-
return
|
|
319
|
+
if (o = b.charCodeAt(d), r(o) || o === 92)
|
|
320
|
+
return X();
|
|
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 X();
|
|
324
324
|
n(d, "Unexpected character '" + o + "'");
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
function S(o, l) {
|
|
328
|
-
var c =
|
|
328
|
+
var c = b.slice(d, d + l);
|
|
329
329
|
d += l, s(o, c);
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function _() {
|
|
332
332
|
for (var o, l, c = d; ; ) {
|
|
333
333
|
d >= Ae && n(c, "Unterminated regexp");
|
|
334
|
-
var h =
|
|
334
|
+
var h = b.charAt(d);
|
|
335
335
|
if (ut.test(h) && n(c, "Unterminated regexp"), o)
|
|
336
336
|
o = !1;
|
|
337
337
|
else {
|
|
@@ -345,323 +345,323 @@ var F, ti = function(e) {
|
|
|
345
345
|
}
|
|
346
346
|
++d;
|
|
347
347
|
}
|
|
348
|
-
o =
|
|
348
|
+
o = b.slice(c, d), ++d, (l = V()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
349
349
|
try {
|
|
350
|
-
var
|
|
350
|
+
var j = new RegExp(o, l);
|
|
351
351
|
} catch (Y) {
|
|
352
352
|
throw Y instanceof SyntaxError && n(c, Y.message), Y;
|
|
353
353
|
}
|
|
354
|
-
s(
|
|
354
|
+
s(mn, j);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
for (var c = d, h = 0,
|
|
358
|
-
var ne =
|
|
356
|
+
function M(o, l) {
|
|
357
|
+
for (var c = d, h = 0, j = l === void 0 ? 1 / 0 : l, Y = 0; Y < j; ++Y) {
|
|
358
|
+
var ne = b.charCodeAt(d);
|
|
359
359
|
if (ne = 97 <= ne ? ne - 97 + 10 : 65 <= ne ? ne - 65 + 10 : 48 <= ne && 57 >= ne ? ne - 48 : 1 / 0, ne >= o)
|
|
360
360
|
break;
|
|
361
361
|
++d, h = h * o + ne;
|
|
362
362
|
}
|
|
363
363
|
return d === c || l !== void 0 && d - c !== l ? null : h;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
var l = d, c = !1, h =
|
|
367
|
-
o ||
|
|
368
|
-
var
|
|
369
|
-
c ?
|
|
365
|
+
function O(o) {
|
|
366
|
+
var l = d, c = !1, h = b.charCodeAt(d) === 48;
|
|
367
|
+
o || M(10) !== null || n(l, "Invalid number"), b.charCodeAt(d) === 46 && (++d, M(10), c = !0), o = b.charCodeAt(d), (o === 69 || o === 101) && (o = b.charCodeAt(++d), o !== 43 && o !== 45 || ++d, M(10) === null && n(l, "Invalid number"), c = !0), r(b.charCodeAt(d)) && n(d, "Identifier directly after number"), o = b.slice(l, d);
|
|
368
|
+
var j;
|
|
369
|
+
c ? j = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || oe ? n(l, "Invalid number") : j = parseInt(o, 8) : j = parseInt(o, 10), s($e, j);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return o =
|
|
371
|
+
function P(o) {
|
|
372
|
+
return o = M(16, o), o === null && n(z, "Bad character escape sequence"), o;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function V() {
|
|
375
375
|
Ne = !1;
|
|
376
376
|
for (var o, l = !0, c = d; ; ) {
|
|
377
|
-
var h =
|
|
377
|
+
var h = b.charCodeAt(d);
|
|
378
378
|
if (t(h))
|
|
379
|
-
Ne && (o +=
|
|
379
|
+
Ne && (o += b.charAt(d)), ++d;
|
|
380
380
|
else if (h === 92) {
|
|
381
|
-
Ne || (o =
|
|
382
|
-
var
|
|
383
|
-
|
|
381
|
+
Ne || (o = b.slice(c, d)), Ne = !0, b.charCodeAt(++d) !== 117 && n(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = P(4);
|
|
382
|
+
var j = String.fromCharCode(h);
|
|
383
|
+
j || n(d - 1, "Invalid Unicode escape"), (l ? r(h) : t(h)) || n(d - 4, "Invalid Unicode escape"), o += j;
|
|
384
384
|
} else
|
|
385
385
|
break;
|
|
386
386
|
l = !1;
|
|
387
387
|
}
|
|
388
|
-
return Ne ? o :
|
|
388
|
+
return Ne ? o : b.slice(c, d);
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
var o =
|
|
392
|
-
!Ne &&
|
|
390
|
+
function X() {
|
|
391
|
+
var o = V(), l = Oe;
|
|
392
|
+
!Ne && _r(o) && (l = Tr[o]), s(l, o);
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
jt =
|
|
394
|
+
function x() {
|
|
395
|
+
jt = z, be = Re, At = Tt, v();
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
if (oe = o, d =
|
|
397
|
+
function L(o) {
|
|
398
|
+
if (oe = o, d = z, A.C)
|
|
399
399
|
for (; d < fe; )
|
|
400
|
-
fe =
|
|
400
|
+
fe = b.lastIndexOf(`
|
|
401
401
|
`, fe - 2) + 1, --Ce;
|
|
402
402
|
f(), v();
|
|
403
403
|
}
|
|
404
404
|
function ae() {
|
|
405
|
-
this.type = null, this.start =
|
|
405
|
+
this.type = null, this.start = z, this.end = null;
|
|
406
406
|
}
|
|
407
407
|
function se() {
|
|
408
408
|
this.start = It, this.end = null, Et && (this.source = Et);
|
|
409
409
|
}
|
|
410
410
|
function K() {
|
|
411
411
|
var o = new ae();
|
|
412
|
-
return
|
|
412
|
+
return A.C && (o.X = new se()), A.vb && (o.sourceFile = A.vb), A.Xa && (o.j = [z, 0]), o;
|
|
413
413
|
}
|
|
414
414
|
function te(o) {
|
|
415
415
|
var l = new ae();
|
|
416
|
-
return l.start = o.start,
|
|
416
|
+
return l.start = o.start, A.C && (l.X = new se(), l.X.start = o.X.start), A.Xa && (l.j = [o.j[0], 0]), l;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
return o.type = l, o.end =
|
|
418
|
+
function I(o, l) {
|
|
419
|
+
return o.type = l, o.end = be, A.C && (o.X.end = At), A.Xa && (o.j[1] = be), o;
|
|
420
420
|
}
|
|
421
421
|
function je(o) {
|
|
422
422
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
return
|
|
424
|
+
function W(o) {
|
|
425
|
+
return T === o ? (x(), !0) : !1;
|
|
426
426
|
}
|
|
427
427
|
function ke() {
|
|
428
|
-
return !
|
|
428
|
+
return !A.fc && (T === Rt || T === Pe || ut.test(b.slice(be, z)));
|
|
429
429
|
}
|
|
430
430
|
function ce() {
|
|
431
|
-
|
|
431
|
+
W(pe) || ke() || E();
|
|
432
432
|
}
|
|
433
433
|
function y(o) {
|
|
434
|
-
|
|
434
|
+
T === o ? x() : E();
|
|
435
435
|
}
|
|
436
|
-
function
|
|
437
|
-
n(
|
|
436
|
+
function E() {
|
|
437
|
+
n(z, "Unexpected token");
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function F(o) {
|
|
440
440
|
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), oe && o.type === "Identifier" && ct(o.name) && n(o.start, "Assigning to " + o.name + " in strict mode");
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
(
|
|
444
|
-
var o =
|
|
442
|
+
function R() {
|
|
443
|
+
(T === Fn || T === Ee && le === "/=") && v(!0);
|
|
444
|
+
var o = T, l = K();
|
|
445
445
|
switch (o) {
|
|
446
446
|
case Ot:
|
|
447
|
-
case
|
|
448
|
-
|
|
447
|
+
case vn:
|
|
448
|
+
x();
|
|
449
449
|
var c = o === Ot;
|
|
450
|
-
|
|
451
|
-
for (var h = 0; h <
|
|
452
|
-
var
|
|
453
|
-
if ((l.label === null ||
|
|
450
|
+
W(pe) || ke() ? l.label = null : T !== Oe ? E() : (l.label = de(), ce());
|
|
451
|
+
for (var h = 0; h < G.length; ++h) {
|
|
452
|
+
var j = G[h];
|
|
453
|
+
if ((l.label === null || j.name === l.label.name) && (j.kind !== null && (c || j.kind === "loop") || l.label && c))
|
|
454
454
|
break;
|
|
455
455
|
}
|
|
456
|
-
return h ===
|
|
456
|
+
return h === G.length && n(l.start, "Unsyntactic " + o.l), I(l, c ? "BreakStatement" : "ContinueStatement");
|
|
457
|
+
case yn:
|
|
458
|
+
return x(), ce(), I(l, "DebuggerStatement");
|
|
457
459
|
case bn:
|
|
458
|
-
return
|
|
459
|
-
case
|
|
460
|
-
return
|
|
461
|
-
case Cn:
|
|
462
|
-
return b(), z.push(Dt), y(he), j === pe ? be(l, null) : j === Bt ? (o = K(), b(), pn(o, !0), T(o, "VariableDeclaration"), o.fa.length === 1 && V(lt) ? ot(l, o) : be(l, o)) : (o = Q(!1, !0), V(lt) ? (B(o), ot(l, o)) : be(l, o));
|
|
460
|
+
return x(), G.push(Dt), l.body = R(), G.pop(), y(Ft), l.test = D(), ce(), I(l, "DoWhileStatement");
|
|
461
|
+
case kn:
|
|
462
|
+
return x(), G.push(Dt), y(he), T === pe ? xe(l, null) : T === Bt ? (o = K(), x(), hn(o, !0), I(o, "VariableDeclaration"), o.fa.length === 1 && W(lt) ? ot(l, o) : xe(l, o)) : (o = Z(!1, !0), W(lt) ? (F(o), ot(l, o)) : xe(l, o));
|
|
463
463
|
case Nt:
|
|
464
|
-
return
|
|
464
|
+
return x(), kt(l, !0);
|
|
465
|
+
case Cn:
|
|
466
|
+
return x(), l.test = D(), l.da = R(), l.alternate = W(Sn) ? R() : null, I(l, "IfStatement");
|
|
465
467
|
case En:
|
|
466
|
-
return
|
|
467
|
-
case In:
|
|
468
|
-
return Le || R.Ib || n(X, "'return' outside of function"), b(), V(pe) || ke() ? l.K = null : (l.K = Q(), ce()), T(l, "ReturnStatement");
|
|
468
|
+
return Le || A.Ib || n(z, "'return' outside of function"), x(), W(pe) || ke() ? l.K = null : (l.K = Z(), ce()), I(l, "ReturnStatement");
|
|
469
469
|
case Mt:
|
|
470
|
-
for (
|
|
471
|
-
|
|
472
|
-
return h &&
|
|
470
|
+
for (x(), l.Qb = D(), l.tb = [], y(He), G.push(Vr); T !== Pe; )
|
|
471
|
+
T === Pt || T === xn ? (o = T === Pt, h && I(h, "SwitchCase"), l.tb.push(h = K()), h.da = [], x(), o ? h.test = Z() : (c && n(jt, "Multiple default clauses"), c = !0, h.test = null), y(Ke)) : (h || E(), h.da.push(R()));
|
|
472
|
+
return h && I(h, "SwitchCase"), x(), G.pop(), I(l, "SwitchStatement");
|
|
473
|
+
case In:
|
|
474
|
+
return x(), ut.test(b.slice(be, z)) && n(be, "Illegal newline after throw"), l.K = Z(), ce(), I(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");
|
|
476
|
+
return x(), l.block = $(), l.Ea = null, T === gn && (o = K(), x(), 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.Ea = I(o, "CatchClause")), l.fb = W(wn) ? $() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), I(l, "TryStatement");
|
|
477
477
|
case Bt:
|
|
478
|
-
return
|
|
478
|
+
return x(), hn(l), ce(), I(l, "VariableDeclaration");
|
|
479
479
|
case Ft:
|
|
480
|
-
return
|
|
481
|
-
case
|
|
482
|
-
return oe && n(
|
|
480
|
+
return x(), l.test = D(), G.push(Dt), l.body = R(), G.pop(), I(l, "WhileStatement");
|
|
481
|
+
case jn:
|
|
482
|
+
return oe && n(z, "'with' in strict mode"), x(), l.object = D(), l.body = R(), I(l, "WithStatement");
|
|
483
483
|
case He:
|
|
484
|
-
return
|
|
484
|
+
return $();
|
|
485
485
|
case pe:
|
|
486
|
-
return
|
|
486
|
+
return x(), I(l, "EmptyStatement");
|
|
487
487
|
default:
|
|
488
|
-
if (c = le,
|
|
489
|
-
for (h = 0; h <
|
|
490
|
-
|
|
491
|
-
return
|
|
488
|
+
if (c = le, j = Z(), o === Oe && j.type === "Identifier" && W(Ke)) {
|
|
489
|
+
for (h = 0; h < G.length; ++h)
|
|
490
|
+
G[h].name === c && n(j.start, "Label '" + c + "' is already declared");
|
|
491
|
+
return G.push({
|
|
492
492
|
name: c,
|
|
493
|
-
kind:
|
|
494
|
-
}), l.body =
|
|
493
|
+
kind: T.W ? "loop" : T === Mt ? "switch" : null
|
|
494
|
+
}), l.body = R(), G.pop(), l.label = j, I(l, "LabeledStatement");
|
|
495
495
|
}
|
|
496
|
-
return l.la =
|
|
496
|
+
return l.la = j, ce(), I(l, "ExpressionStatement");
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function D() {
|
|
500
500
|
y(he);
|
|
501
|
-
var o =
|
|
501
|
+
var o = Z();
|
|
502
502
|
return y(ue), o;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function $(o) {
|
|
505
505
|
var l = K(), c = !0, h = !1;
|
|
506
|
-
for (l.body = [], y(He); !
|
|
507
|
-
var
|
|
508
|
-
if (l.body.push(
|
|
506
|
+
for (l.body = [], y(He); !W(Pe); ) {
|
|
507
|
+
var j = R();
|
|
508
|
+
if (l.body.push(j), c && o && je(j)) {
|
|
509
509
|
var Y = h;
|
|
510
|
-
|
|
510
|
+
L(h = !0);
|
|
511
511
|
}
|
|
512
512
|
c = !1;
|
|
513
513
|
}
|
|
514
|
-
return h && !Y &&
|
|
514
|
+
return h && !Y && L(!1), I(l, "BlockStatement");
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
return o.ua = l, y(pe), o.test =
|
|
516
|
+
function xe(o, l) {
|
|
517
|
+
return o.ua = l, y(pe), o.test = T === pe ? null : Z(), y(pe), o.update = T === ue ? null : Z(), y(ue), o.body = R(), G.pop(), I(o, "ForStatement");
|
|
518
518
|
}
|
|
519
519
|
function ot(o, l) {
|
|
520
|
-
return o.left = l, o.right =
|
|
520
|
+
return o.left = l, o.right = Z(), y(ue), o.body = R(), G.pop(), I(o, "ForInStatement");
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function hn(o, l) {
|
|
523
523
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
524
524
|
var c = K();
|
|
525
|
-
if (c.id = de(), oe && ct(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua =
|
|
525
|
+
if (c.id = de(), oe && ct(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = W(Un) ? Z(!0, l) : null, o.fa.push(I(c, "VariableDeclarator")), !W(Se))
|
|
526
526
|
break;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
function
|
|
530
|
-
var c =
|
|
531
|
-
if (!o &&
|
|
532
|
-
for (o = te(c), o.xb = [c];
|
|
533
|
-
o.xb.push(
|
|
534
|
-
return
|
|
529
|
+
function Z(o, l) {
|
|
530
|
+
var c = bt(l);
|
|
531
|
+
if (!o && T === Se) {
|
|
532
|
+
for (o = te(c), o.xb = [c]; W(Se); )
|
|
533
|
+
o.xb.push(bt(l));
|
|
534
|
+
return I(o, "SequenceExpression");
|
|
535
535
|
}
|
|
536
536
|
return c;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function bt(o) {
|
|
539
539
|
var l = St(wt(), -1, o);
|
|
540
|
-
if (
|
|
540
|
+
if (W(Bn)) {
|
|
541
541
|
var c = te(l);
|
|
542
|
-
c.test = l, c.da =
|
|
542
|
+
c.test = l, c.da = Z(!0), y(Ke), c.alternate = Z(!0, o), l = I(c, "ConditionalExpression");
|
|
543
543
|
}
|
|
544
|
-
return
|
|
544
|
+
return T.Cb ? (c = te(l), c.operator = le, c.left = l, x(), c.right = bt(o), F(l), I(c, "AssignmentExpression")) : l;
|
|
545
545
|
}
|
|
546
546
|
function St(o, l, c) {
|
|
547
|
-
var h =
|
|
548
|
-
if (h !== null && (!c ||
|
|
549
|
-
var
|
|
550
|
-
return
|
|
547
|
+
var h = T.L;
|
|
548
|
+
if (h !== null && (!c || T !== lt) && h > l) {
|
|
549
|
+
var j = te(o);
|
|
550
|
+
return j.left = o, j.operator = le, o = T, x(), j.right = St(wt(), h, c), h = I(j, o === Dn || o === Wn ? "LogicalExpression" : "BinaryExpression"), St(h, l, c);
|
|
551
551
|
}
|
|
552
552
|
return o;
|
|
553
553
|
}
|
|
554
554
|
function wt() {
|
|
555
|
-
if (
|
|
556
|
-
var o = K(), l =
|
|
557
|
-
return o.operator = le, Ve = o.prefix = !0,
|
|
555
|
+
if (T.prefix) {
|
|
556
|
+
var o = K(), l = T.$b;
|
|
557
|
+
return o.operator = le, Ve = o.prefix = !0, x(), o.K = wt(), l ? F(o.K) : oe && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), I(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
558
558
|
}
|
|
559
|
-
for (l = We(at());
|
|
560
|
-
o = te(l), o.operator = le, o.prefix = !1, o.K = l,
|
|
559
|
+
for (l = We(at()); T.cc && !ke(); )
|
|
560
|
+
o = te(l), o.operator = le, o.prefix = !1, o.K = l, F(l), x(), l = I(o, "UpdateExpression");
|
|
561
561
|
return l;
|
|
562
562
|
}
|
|
563
563
|
function We(o, l) {
|
|
564
|
-
if (
|
|
564
|
+
if (W(Mn)) {
|
|
565
565
|
var c = te(o);
|
|
566
|
-
return c.object = o, c.Wa = de(!0), c.bb = !1, We(
|
|
566
|
+
return c.object = o, c.Wa = de(!0), c.bb = !1, We(I(c, "MemberExpression"), l);
|
|
567
567
|
}
|
|
568
|
-
return
|
|
568
|
+
return W(Ut) ? (c = te(o), c.object = o, c.Wa = Z(), c.bb = !0, y(_t), We(I(c, "MemberExpression"), l)) : !l && W(he) ? (c = te(o), c.callee = o, c.arguments = Ct(ue, !1), We(I(c, "CallExpression"), l)) : o;
|
|
569
569
|
}
|
|
570
570
|
function at() {
|
|
571
|
-
switch (
|
|
572
|
-
case
|
|
571
|
+
switch (T) {
|
|
572
|
+
case Rn:
|
|
573
573
|
var o = K();
|
|
574
|
-
return
|
|
574
|
+
return x(), I(o, "ThisExpression");
|
|
575
575
|
case Oe:
|
|
576
576
|
return de();
|
|
577
577
|
case $e:
|
|
578
578
|
case st:
|
|
579
|
-
case
|
|
580
|
-
return o = K(), o.value = le, o.raw =
|
|
579
|
+
case mn:
|
|
580
|
+
return o = K(), o.value = le, o.raw = b.slice(z, Re), x(), I(o, "Literal");
|
|
581
|
+
case On:
|
|
581
582
|
case Pn:
|
|
582
583
|
case Nn:
|
|
583
|
-
|
|
584
|
-
return o = K(), o.value = j.$a, o.raw = j.l, b(), T(o, "Literal");
|
|
584
|
+
return o = K(), o.value = T.$a, o.raw = T.l, x(), I(o, "Literal");
|
|
585
585
|
case he:
|
|
586
586
|
o = It;
|
|
587
|
-
var l =
|
|
588
|
-
|
|
589
|
-
var c =
|
|
590
|
-
return c.start = l, c.end = Re,
|
|
587
|
+
var l = z;
|
|
588
|
+
x();
|
|
589
|
+
var c = Z();
|
|
590
|
+
return c.start = l, c.end = Re, A.C && (c.X.start = o, c.X.end = Tt), A.Xa && (c.j = [l, Re]), y(ue), c;
|
|
591
591
|
case Ut:
|
|
592
|
-
return o = K(),
|
|
592
|
+
return o = K(), x(), o.elements = Ct(_t, !0, !0), I(o, "ArrayExpression");
|
|
593
593
|
case He:
|
|
594
|
-
for (o = K(), l = !0, c = !1, o.h = [],
|
|
594
|
+
for (o = K(), l = !0, c = !1, o.h = [], x(); !W(Pe); ) {
|
|
595
595
|
if (l)
|
|
596
596
|
l = !1;
|
|
597
|
-
else if (y(Se),
|
|
597
|
+
else if (y(Se), A.sb && W(Pe))
|
|
598
598
|
break;
|
|
599
599
|
var h = {
|
|
600
|
-
key:
|
|
601
|
-
},
|
|
602
|
-
if (
|
|
603
|
-
h.value =
|
|
600
|
+
key: T === $e || T === st ? at() : de(!0)
|
|
601
|
+
}, j = !1;
|
|
602
|
+
if (W(Ke)) {
|
|
603
|
+
h.value = Z(!0);
|
|
604
604
|
var Y = h.kind = "init";
|
|
605
605
|
} else
|
|
606
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ?
|
|
606
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? E() : (j = c = !0, Y = h.kind = h.key.name, h.key = T === $e || T === st ? at() : de(!0), T !== he && E(), h.value = kt(K(), !1));
|
|
607
607
|
if (h.key.type === "Identifier" && (oe || c))
|
|
608
608
|
for (var ne = 0; ne < o.h.length; ++ne) {
|
|
609
609
|
var Me = o.h[ne];
|
|
610
610
|
if (Me.key.name === h.key.name) {
|
|
611
|
-
var Wt = Y === Me.kind ||
|
|
611
|
+
var Wt = Y === Me.kind || j && Me.kind === "init" || Y === "init" && (Me.kind === "get" || Me.kind === "set");
|
|
612
612
|
Wt && !oe && Y === "init" && Me.kind === "init" && (Wt = !1), Wt && n(h.key.start, "Redefinition of property");
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
o.h.push(h);
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return I(o, "ObjectExpression");
|
|
618
618
|
case Nt:
|
|
619
|
-
return o = K(),
|
|
620
|
-
case
|
|
621
|
-
return o = K(),
|
|
619
|
+
return o = K(), x(), kt(o, !1);
|
|
620
|
+
case An:
|
|
621
|
+
return o = K(), x(), o.callee = We(at(), !0), o.arguments = W(he) ? Ct(ue, !1) : Ir, I(o, "NewExpression");
|
|
622
622
|
}
|
|
623
|
-
|
|
623
|
+
E();
|
|
624
624
|
}
|
|
625
625
|
function kt(o, l) {
|
|
626
|
-
|
|
626
|
+
T === Oe ? o.id = de() : l ? E() : o.id = null, o.oa = [];
|
|
627
627
|
var c = !0;
|
|
628
|
-
for (y(he); !
|
|
628
|
+
for (y(he); !W(ue); )
|
|
629
629
|
c ? c = !1 : y(Se), o.oa.push(de());
|
|
630
630
|
c = Le;
|
|
631
|
-
var h =
|
|
632
|
-
if (Le = !0,
|
|
631
|
+
var h = G;
|
|
632
|
+
if (Le = !0, G = [], o.body = $(!0), Le = c, G = h, oe || o.body.body.length && je(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], (
|
|
635
|
-
for (var
|
|
636
|
-
h.name === o.oa[
|
|
634
|
+
if (h = 0 > c ? o.id : o.oa[c], (Vn(h.name) || ct(h.name)) && n(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
635
|
+
for (var j = 0; j < c; ++j)
|
|
636
|
+
h.name === o.oa[j].name && n(h.start, "Argument name clash in strict mode");
|
|
637
637
|
}
|
|
638
|
-
return
|
|
638
|
+
return I(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
639
639
|
}
|
|
640
640
|
function Ct(o, l, c) {
|
|
641
|
-
for (var h = [],
|
|
642
|
-
if (
|
|
643
|
-
|
|
644
|
-
else if (y(Se), l &&
|
|
641
|
+
for (var h = [], j = !0; !W(o); ) {
|
|
642
|
+
if (j)
|
|
643
|
+
j = !1;
|
|
644
|
+
else if (y(Se), l && A.sb && W(o))
|
|
645
645
|
break;
|
|
646
|
-
h.push(c &&
|
|
646
|
+
h.push(c && T === Se ? null : Z(!0));
|
|
647
647
|
}
|
|
648
648
|
return h;
|
|
649
649
|
}
|
|
650
650
|
function de(o) {
|
|
651
651
|
var l = K();
|
|
652
|
-
return o &&
|
|
652
|
+
return o && A.yb === "everywhere" && (o = !1), T === Oe ? (!o && (A.yb && Ur(le) || oe && Vn(le)) && b.slice(z, Re).indexOf("\\") === -1 && n(z, "The keyword '" + le + "' is reserved"), l.name = le) : o && T.l ? l.name = T.l : E(), Ve = !1, x(), I(l, "Identifier");
|
|
653
653
|
}
|
|
654
654
|
e.version = "0.5.0";
|
|
655
|
-
var
|
|
655
|
+
var A, b = "", Ae, Et;
|
|
656
656
|
e.parse = function(o, l) {
|
|
657
|
-
|
|
658
|
-
for (var c in
|
|
659
|
-
Object.prototype.hasOwnProperty.call(
|
|
660
|
-
for (Et =
|
|
661
|
-
c =
|
|
662
|
-
return
|
|
657
|
+
b = String(o), Ae = b.length, A = l || {};
|
|
658
|
+
for (var c in pn)
|
|
659
|
+
Object.prototype.hasOwnProperty.call(A, c) || (A[c] = pn[c]);
|
|
660
|
+
for (Et = A.sourceFile, Ce = 1, d = fe = 0, Ve = !0, f(), c = A.dc, jt = be = d, A.C && (At = new a()), Le = oe = !1, G = [], v(), o = c || K(), l = !0, c || (o.body = []); T !== Rt; )
|
|
661
|
+
c = R(), o.body.push(c), l && je(c) && L(!0), l = !1;
|
|
662
|
+
return I(o, "Program");
|
|
663
663
|
};
|
|
664
|
-
var
|
|
664
|
+
var pn = {
|
|
665
665
|
fc: !1,
|
|
666
666
|
sb: !0,
|
|
667
667
|
yb: !1,
|
|
@@ -672,9 +672,9 @@ var F, ti = function(e) {
|
|
|
672
672
|
dc: null,
|
|
673
673
|
sourceFile: null,
|
|
674
674
|
vb: null
|
|
675
|
-
}, d = 0,
|
|
675
|
+
}, d = 0, z = 0, Re = 0, It, Tt, T, le, Ve, Ce, fe, jt = 0, be = 0, At, Le, G, oe, Ir = [], $e = {
|
|
676
676
|
type: "num"
|
|
677
|
-
},
|
|
677
|
+
}, mn = {
|
|
678
678
|
type: "regexp"
|
|
679
679
|
}, st = {
|
|
680
680
|
type: "string"
|
|
@@ -687,95 +687,95 @@ var F, ti = function(e) {
|
|
|
687
687
|
}, Pt = {
|
|
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
|
}, Nt = {
|
|
710
710
|
l: "function"
|
|
711
|
-
},
|
|
711
|
+
}, Cn = {
|
|
712
712
|
l: "if"
|
|
713
|
-
},
|
|
713
|
+
}, En = {
|
|
714
714
|
l: "return",
|
|
715
715
|
m: !0
|
|
716
716
|
}, Mt = {
|
|
717
717
|
l: "switch"
|
|
718
|
-
},
|
|
718
|
+
}, In = {
|
|
719
719
|
l: "throw",
|
|
720
720
|
m: !0
|
|
721
|
-
},
|
|
721
|
+
}, Tn = {
|
|
722
722
|
l: "try"
|
|
723
723
|
}, Bt = {
|
|
724
724
|
l: "var"
|
|
725
725
|
}, Ft = {
|
|
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
|
}, lt = {
|
|
745
745
|
l: "in",
|
|
746
746
|
L: 7,
|
|
747
747
|
m: !0
|
|
748
|
-
},
|
|
748
|
+
}, Tr = {
|
|
749
749
|
break: Ot,
|
|
750
750
|
case: Pt,
|
|
751
|
-
catch:
|
|
752
|
-
continue:
|
|
753
|
-
debugger:
|
|
751
|
+
catch: gn,
|
|
752
|
+
continue: vn,
|
|
753
|
+
debugger: yn,
|
|
754
754
|
default: xn,
|
|
755
|
-
do:
|
|
756
|
-
else:
|
|
757
|
-
finally:
|
|
758
|
-
for:
|
|
755
|
+
do: bn,
|
|
756
|
+
else: Sn,
|
|
757
|
+
finally: wn,
|
|
758
|
+
for: kn,
|
|
759
759
|
function: Nt,
|
|
760
|
-
if:
|
|
761
|
-
return:
|
|
760
|
+
if: Cn,
|
|
761
|
+
return: En,
|
|
762
762
|
switch: Mt,
|
|
763
|
-
throw:
|
|
764
|
-
try:
|
|
763
|
+
throw: In,
|
|
764
|
+
try: Tn,
|
|
765
765
|
var: Bt,
|
|
766
766
|
while: Ft,
|
|
767
|
-
with:
|
|
768
|
-
null:
|
|
769
|
-
true:
|
|
770
|
-
false:
|
|
771
|
-
new:
|
|
767
|
+
with: jn,
|
|
768
|
+
null: On,
|
|
769
|
+
true: Pn,
|
|
770
|
+
false: Nn,
|
|
771
|
+
new: An,
|
|
772
772
|
in: lt,
|
|
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,
|
|
@@ -815,65 +815,65 @@ var F, ti = function(e) {
|
|
|
815
815
|
}, Ke = {
|
|
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
|
}, Ee = {
|
|
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"), ct = 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_]"), ut = /[\n\r\u2028\u2029]/, dt = /\r\n|[\n\r\u2028\u2029]/g, Ne, Dt = {
|
|
871
871
|
kind: "loop"
|
|
872
|
-
},
|
|
872
|
+
}, Vr = {
|
|
873
873
|
kind: "switch"
|
|
874
874
|
};
|
|
875
875
|
}, Gt = Gt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
876
|
-
|
|
876
|
+
ei(Gt.j || (Gt.j = {}));
|
|
877
877
|
function m(e, t) {
|
|
878
878
|
typeof e == "string" && (e = Ue(e, "code"));
|
|
879
879
|
var r = e.constructor;
|
|
@@ -892,7 +892,7 @@ function m(e, t) {
|
|
|
892
892
|
this.N = Xt(this, this.ra, null), this.Na = this.N.object, this.ra = Ue(this.ba.join(`
|
|
893
893
|
`), "polyfills"), this.ba = void 0, gt(this.ra), a = new k(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = n, a = new k(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
894
894
|
}
|
|
895
|
-
var
|
|
895
|
+
var zn = {
|
|
896
896
|
C: !0,
|
|
897
897
|
kc: 5
|
|
898
898
|
}, en = {
|
|
@@ -911,11 +911,11 @@ var Xn = {
|
|
|
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
|
}, De = {
|
|
921
921
|
SCOPE_REFERENCE: !0
|
|
@@ -923,7 +923,7 @@ var Xn = {
|
|
|
923
923
|
VALUE_IN_DESCRIPTOR: !0
|
|
924
924
|
}, Be = {
|
|
925
925
|
REGEXP_TIMEOUT: !0
|
|
926
|
-
},
|
|
926
|
+
}, Yn = [], ge = null, qe = 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
927
|
function tn(e) {
|
|
928
928
|
var t = e >>> 0;
|
|
929
929
|
return t === Number(e) ? t : NaN;
|
|
@@ -943,18 +943,18 @@ function gt(e, t, r) {
|
|
|
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
|
-
|
|
946
|
+
U = m.prototype;
|
|
947
|
+
U.P = !1;
|
|
948
|
+
U.Ka = !1;
|
|
949
|
+
U.Kb = 0;
|
|
950
|
+
U.ic = 0;
|
|
951
951
|
function Ue(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
|
+
U.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");
|
|
@@ -962,7 +962,7 @@ F.Jb = function(e) {
|
|
|
962
962
|
throw Error("Expecting new AST to start with a Program node");
|
|
963
963
|
et(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
|
+
U.lb = function() {
|
|
966
966
|
var e = this.o, t;
|
|
967
967
|
do {
|
|
968
968
|
var r = e[e.length - 1];
|
|
@@ -974,7 +974,7 @@ 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 &&
|
|
977
|
+
this.ca.shift(), 0 <= r.interval && vr(this, r, r.interval);
|
|
978
978
|
var n = new k(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
|
}
|
|
@@ -987,7 +987,7 @@ F.lb = function() {
|
|
|
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
|
qe = i;
|
|
@@ -1000,13 +1000,13 @@ F.lb = function() {
|
|
|
1000
1000
|
} while (!n.end && t > Date.now());
|
|
1001
1001
|
return !0;
|
|
1002
1002
|
};
|
|
1003
|
-
|
|
1003
|
+
U.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, Ge), e.g(t, "Infinity", 1 / 0, Ge), e.g(t, "undefined", void 0, Ge), e.g(t, "window", t, en), e.g(t, "this", t, Ge), e.g(t, "self", t), e.M = new
|
|
1008
|
+
function ni(e, t) {
|
|
1009
|
+
e.g(t, "NaN", NaN, Ge), e.g(t, "Infinity", 1 / 0, Ge), e.g(t, "undefined", void 0, Ge), e.g(t, "window", t, en), e.g(t, "this", t, Ge), 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, w), 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);
|
|
@@ -1022,17 +1022,17 @@ function ri(e, t) {
|
|
|
1022
1022
|
};
|
|
1023
1023
|
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1), w);
|
|
1024
1024
|
r = function(a) {
|
|
1025
|
-
return
|
|
1025
|
+
return Jn(e, !1, arguments);
|
|
1026
1026
|
}, e.g(t, "setTimeout", e.i(r, !1), w), r = function(a) {
|
|
1027
|
-
return
|
|
1027
|
+
return Jn(e, !0, arguments);
|
|
1028
1028
|
}, e.g(t, "setInterval", e.i(r, !1), w), r = function(a) {
|
|
1029
|
-
|
|
1029
|
+
qn(e, a);
|
|
1030
1030
|
}, e.g(t, "clearTimeout", e.i(r, !1), w), r = function(a) {
|
|
1031
|
-
|
|
1031
|
+
qn(e, a);
|
|
1032
1032
|
}, e.g(t, "clearInterval", e.i(r, !1), w), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1033
1033
|
}
|
|
1034
|
-
|
|
1035
|
-
function
|
|
1034
|
+
U.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) {
|
|
@@ -1053,7 +1053,7 @@ function ii(e, t) {
|
|
|
1053
1053
|
e.O = e.i(n, !0), e.g(t, "Function", e.O, w), e.g(e.O, "prototype", e.Z, w), e.g(e.Z, "constructor", e.O, w), e.Z.Ta = function() {
|
|
1054
1054
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ie), 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
|
|
1056
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof B ? s.F = mr(e, a) : C(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1057
1057
|
}, J(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 = [];
|
|
@@ -1066,29 +1066,29 @@ function ii(e, t) {
|
|
|
1066
1066
|
return this.valueOf();
|
|
1067
1067
|
}, J(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), w);
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function ii(e, t) {
|
|
1070
1070
|
function r(i) {
|
|
1071
1071
|
i != null || C(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1072
1072
|
}
|
|
1073
1073
|
var n = function(i) {
|
|
1074
1074
|
if (i == null)
|
|
1075
1075
|
return ye(e) ? this : e.s(e.M);
|
|
1076
|
-
if (!(i instanceof
|
|
1076
|
+
if (!(i instanceof B)) {
|
|
1077
1077
|
var a = e.s(ve(e, i));
|
|
1078
1078
|
return a.data = i, a;
|
|
1079
1079
|
}
|
|
1080
1080
|
return i;
|
|
1081
1081
|
};
|
|
1082
1082
|
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M, w), e.g(e.M, "constructor", e.v, w), e.g(t, "Object", e.v, w), n = function(i) {
|
|
1083
|
-
return r(i), me(e, Object.getOwnPropertyNames(i instanceof
|
|
1083
|
+
return r(i), me(e, Object.getOwnPropertyNames(i instanceof B ? i.h : i));
|
|
1084
1084
|
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1), w), n = function(i) {
|
|
1085
|
-
return r(i), i instanceof
|
|
1085
|
+
return r(i), i instanceof B && (i = i.h), me(e, Object.keys(i));
|
|
1086
1086
|
}, e.g(e.v, "keys", e.i(n, !1), w), n = function(i) {
|
|
1087
|
-
return i === null ? e.s(null) : (i instanceof
|
|
1087
|
+
return i === null ? e.s(null) : (i instanceof B || C(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1088
1088
|
}, e.g(e.v, "create", e.i(n, !1), w), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), n = function(i, a, s) {
|
|
1089
|
-
return a = String(a), i instanceof
|
|
1089
|
+
return a = String(a), i instanceof B || C(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof B || C(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || C(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, Qe, s.h), i;
|
|
1090
1090
|
}, e.g(e.v, "defineProperty", e.i(n, !1), w), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), n = function(i, a) {
|
|
1091
|
-
if (i instanceof
|
|
1091
|
+
if (i instanceof B || C(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
|
}
|
|
@@ -1097,11 +1097,11 @@ function oi(e, t) {
|
|
|
1097
1097
|
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), w), n = function(i) {
|
|
1098
1098
|
return !!i && !i.preventExtensions;
|
|
1099
1099
|
}, e.g(e.v, "isExtensible", e.i(n, !1), w), n = function(i) {
|
|
1100
|
-
return i instanceof
|
|
1101
|
-
}, e.g(e.v, "preventExtensions", e.i(n, !1), w), J(e, e.v, "toString",
|
|
1102
|
-
return r(this), this instanceof
|
|
1100
|
+
return i instanceof B && (i.preventExtensions = !0), i;
|
|
1101
|
+
}, e.g(e.v, "preventExtensions", e.i(n, !1), w), J(e, e.v, "toString", B.prototype.toString), J(e, e.v, "toLocaleString", B.prototype.toString), J(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
1103
|
}, J(e, e.v, "hasOwnProperty", n), n = function(i) {
|
|
1104
|
-
return r(this), this instanceof
|
|
1104
|
+
return r(this), this instanceof B ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1105
1105
|
}, J(e, e.v, "propertyIsEnumerable", n), n = function(i) {
|
|
1106
1106
|
for (; ; ) {
|
|
1107
1107
|
if (i = ve(e, i), !i)
|
|
@@ -1111,7 +1111,7 @@ function oi(e, t) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
}, J(e, e.v, "isPrototypeOf", n);
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function oi(e, t) {
|
|
1115
1115
|
var r = function(n) {
|
|
1116
1116
|
var i = ye(e) ? this : _e(e), a = arguments[0];
|
|
1117
1117
|
if (arguments.length === 1 && typeof a == "number")
|
|
@@ -1131,7 +1131,7 @@ function ai(e, t) {
|
|
|
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
1136
|
return n = arguments.length ? we.String(n) : "", ye(e) ? (this.data = n, this) : n;
|
|
1137
1137
|
};
|
|
@@ -1214,12 +1214,12 @@ function si(e, t) {
|
|
|
1214
1214
|
a(s.replace(n, i));
|
|
1215
1215
|
}, Je(e, e.J, "replace", r), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function si(e, t) {
|
|
1218
1218
|
e.mb = e.i(function(r) {
|
|
1219
1219
|
return r = we.Boolean(r), ye(e) ? (this.data = r, this) : r;
|
|
1220
1220
|
}, !0), e.g(t, "Boolean", e.mb, w);
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function li(e, t) {
|
|
1223
1223
|
var r = function(n) {
|
|
1224
1224
|
return n = arguments.length ? we.Number(n) : 0, ye(e) ? (this.data = n, this) : n;
|
|
1225
1225
|
};
|
|
@@ -1258,7 +1258,7 @@ function ci(e, t) {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
}, J(e, e.aa, "toLocaleString", r);
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function ci(e, t) {
|
|
1262
1262
|
var r = function(i, a) {
|
|
1263
1263
|
if (!ye(e))
|
|
1264
1264
|
return we.Date();
|
|
@@ -1277,7 +1277,7 @@ function ui(e, t) {
|
|
|
1277
1277
|
};
|
|
1278
1278
|
}(t[n]), J(e, e.$, t[n], r);
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function ui(e, t) {
|
|
1281
1281
|
var r = function(n, i) {
|
|
1282
1282
|
if (ye(e))
|
|
1283
1283
|
var a = this;
|
|
@@ -1319,7 +1319,7 @@ function di(e, t) {
|
|
|
1319
1319
|
n = s.exec(n), e.g(this, "lastIndex", s.lastIndex), i(a(n));
|
|
1320
1320
|
}, Je(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
1325
|
var s = ye(e) ? this : e.Aa(i);
|
|
@@ -1332,7 +1332,7 @@ function fi(e, t) {
|
|
|
1332
1332
|
return zt(e, i, n), i;
|
|
1333
1333
|
}, !0), e.g(t, "Error", e.D, w), e.g(e.D.h.prototype, "message", "", w), e.g(e.D.h.prototype, "name", "Error", w), r("EvalError"), e.ob = r("RangeError"), e.pb = r("ReferenceError"), e.T = r("SyntaxError"), e.j = r("TypeError"), e.Gb = r("URIError");
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function fi(e, t) {
|
|
1336
1336
|
var r = e.s(e.M);
|
|
1337
1337
|
e.g(t, "Math", r, w);
|
|
1338
1338
|
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1341,7 +1341,7 @@ function hi(e, t) {
|
|
|
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
1342
|
e.g(r, n[t], e.i(Math[n[t]], !1), w);
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function hi(e, t) {
|
|
1345
1345
|
var r = e.s(e.M);
|
|
1346
1346
|
e.g(t, "JSON", r, w), t = function(n) {
|
|
1347
1347
|
try {
|
|
@@ -1351,7 +1351,7 @@ function pi(e, t) {
|
|
|
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" ? C(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i =
|
|
1354
|
+
i && i.H === "Function" ? C(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 {
|
|
@@ -1394,9 +1394,9 @@ function zt(e, t, r) {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
e.g(t, "stack", a.trim(), w);
|
|
1396
1396
|
}
|
|
1397
|
-
|
|
1397
|
+
U.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));
|
|
@@ -1440,13 +1440,13 @@ function Ye(e, t, r, n) {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1442
1442
|
}
|
|
1443
|
-
|
|
1443
|
+
U.Aa = function(e) {
|
|
1444
1444
|
return this.s(e && e.h.prototype);
|
|
1445
1445
|
};
|
|
1446
|
-
|
|
1446
|
+
U.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
1451
|
function _e(e) {
|
|
1452
1452
|
var t = e.s(e.La);
|
|
@@ -1464,15 +1464,15 @@ function on(e, t, r, n) {
|
|
|
1464
1464
|
var i = rn(e, t.oa.length, !0);
|
|
1465
1465
|
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "", ie), i;
|
|
1466
1466
|
}
|
|
1467
|
-
|
|
1467
|
+
U.i = function(e, t) {
|
|
1468
1468
|
return t = rn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ie), t;
|
|
1469
1469
|
};
|
|
1470
|
-
|
|
1470
|
+
U.ub = function(e) {
|
|
1471
1471
|
var t = rn(this, e.length, !0);
|
|
1472
1472
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ie), t;
|
|
1473
1473
|
};
|
|
1474
|
-
|
|
1475
|
-
if (e instanceof
|
|
1474
|
+
U.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;
|
|
@@ -1502,10 +1502,10 @@ F.Ia = function(e) {
|
|
|
1502
1502
|
this.g(t, n, this.Ia(e[n]));
|
|
1503
1503
|
return t;
|
|
1504
1504
|
};
|
|
1505
|
-
|
|
1505
|
+
U.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
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;
|
|
@@ -1537,7 +1537,7 @@ function me(e, t) {
|
|
|
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);
|
|
@@ -1554,10 +1554,10 @@ function ve(e, t) {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
return t ? t.xa : null;
|
|
1556
1556
|
}
|
|
1557
|
-
|
|
1557
|
+
U.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 || C(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1560
|
+
if (t = String(t), e != null || C(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
1563
|
if (q(this, e, this.J))
|
|
@@ -1573,7 +1573,7 @@ F.G = function(e, t) {
|
|
|
1573
1573
|
while (e = ve(this, e));
|
|
1574
1574
|
};
|
|
1575
1575
|
function vt(e, t, r) {
|
|
1576
|
-
if (!(t instanceof
|
|
1576
|
+
if (!(t instanceof B))
|
|
1577
1577
|
throw TypeError("Primitive data type has no properties");
|
|
1578
1578
|
if (r = String(r), r === "length" && q(e, t, e.J))
|
|
1579
1579
|
return !0;
|
|
@@ -1588,14 +1588,14 @@ function vt(e, t, r) {
|
|
|
1588
1588
|
while (t = ve(e, t));
|
|
1589
1589
|
return !1;
|
|
1590
1590
|
}
|
|
1591
|
-
|
|
1591
|
+
U.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 || C(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1594
|
+
if (t = String(t), e != null || C(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
1596
|
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && C(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1597
1597
|
var i = !this.o || an(this).S;
|
|
1598
|
-
if (e instanceof
|
|
1598
|
+
if (e instanceof B) {
|
|
1599
1599
|
if (q(this, e, this.J)) {
|
|
1600
1600
|
var a = Ze(t);
|
|
1601
1601
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
@@ -1650,10 +1650,10 @@ F.g = function(e, t, r, n) {
|
|
|
1650
1650
|
} else
|
|
1651
1651
|
i && C(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1652
1652
|
};
|
|
1653
|
-
|
|
1653
|
+
U.g.ac = function() {
|
|
1654
1654
|
throw Error("Placeholder getter");
|
|
1655
1655
|
};
|
|
1656
|
-
|
|
1656
|
+
U.g.bc = function() {
|
|
1657
1657
|
throw Error("Placeholder setter");
|
|
1658
1658
|
};
|
|
1659
1659
|
function J(e, t, r, n) {
|
|
@@ -1675,12 +1675,12 @@ 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), et(e, t, n), n;
|
|
1679
1679
|
}
|
|
1680
1680
|
function sn(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
1685
|
function ln(e, t) {
|
|
1686
1686
|
for (var r = an(e); r && r !== e.N; ) {
|
|
@@ -1692,7 +1692,7 @@ function ln(e, t) {
|
|
|
1692
1692
|
return e.G(r.object, t);
|
|
1693
1693
|
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || C(e, e.pb, t + " is not defined");
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1695
|
+
function gr(e, t, r) {
|
|
1696
1696
|
for (var n = an(e), i = n.S; n && n !== e.N; ) {
|
|
1697
1697
|
if (t in n.object.h) {
|
|
1698
1698
|
try {
|
|
@@ -1754,7 +1754,7 @@ 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, on(e, n[s], r), Xn);
|
|
1758
1758
|
return n;
|
|
1759
1759
|
}
|
|
1760
1760
|
function ye(e) {
|
|
@@ -1764,10 +1764,10 @@ function cn(e, t) {
|
|
|
1764
1764
|
return t[0] === De ? ln(e, t[1]) : e.G(t[0], t[1]);
|
|
1765
1765
|
}
|
|
1766
1766
|
function un(e, t, r) {
|
|
1767
|
-
return t[0] === De ?
|
|
1767
|
+
return t[0] === De ? gr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1768
1768
|
}
|
|
1769
1769
|
function C(e, t, r) {
|
|
1770
|
-
throw e.N ? (r !== void 0 && t instanceof
|
|
1770
|
+
throw e.N ? (r !== void 0 && t instanceof B && (t = e.Aa(t), zt(e, t, r)), rt(e, 4, t), pr) : r === void 0 ? t : r;
|
|
1771
1771
|
}
|
|
1772
1772
|
function rt(e, t, r, n) {
|
|
1773
1773
|
if (t === 0)
|
|
@@ -1845,11 +1845,11 @@ function re(e, t) {
|
|
|
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 {
|
|
@@ -1860,14 +1860,14 @@ function qn(e, t, r) {
|
|
|
1860
1860
|
}
|
|
1861
1861
|
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0], gt(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);
|
|
@@ -1889,44 +1889,44 @@ function dn(e, t, r, n) {
|
|
|
1889
1889
|
return i.type = "CallExpression", e = new k(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [n], e;
|
|
1890
1890
|
}
|
|
1891
1891
|
function Vt(e, t) {
|
|
1892
|
-
return t == null ? e.Na : t instanceof
|
|
1892
|
+
return t == null ? e.Na : t instanceof B ? t : (e = e.s(ve(e, t)), e.data = t, e);
|
|
1893
1893
|
}
|
|
1894
|
-
|
|
1894
|
+
U.Xb = function() {
|
|
1895
1895
|
return this.N;
|
|
1896
1896
|
};
|
|
1897
|
-
|
|
1897
|
+
U.Yb = function() {
|
|
1898
1898
|
return this.o;
|
|
1899
1899
|
};
|
|
1900
|
-
|
|
1900
|
+
U.ec = function(e) {
|
|
1901
1901
|
this.o = e;
|
|
1902
1902
|
};
|
|
1903
1903
|
function k(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
|
-
|
|
1912
|
+
U = B.prototype;
|
|
1913
|
+
U.xa = null;
|
|
1914
|
+
U.H = "Object";
|
|
1915
|
+
U.data = null;
|
|
1916
|
+
U.toString = function() {
|
|
1917
1917
|
if (!qe)
|
|
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,13 +1961,13 @@ F.toString = function() {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1963
1963
|
};
|
|
1964
|
-
|
|
1964
|
+
U.valueOf = function() {
|
|
1965
1965
|
return !qe || 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;
|
|
@@ -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 || C(this, this.j, "'in' expects an object, not '" + t + "'"), r = vt(this, t, n);
|
|
2102
2102
|
break;
|
|
2103
2103
|
case "instanceof":
|
|
2104
|
-
q(this, t, this.O) || C(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof
|
|
2104
|
+
q(this, t, this.O) || C(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);
|
|
@@ -2138,7 +2138,7 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2138
2138
|
if (t.A !== 0 && t.F.push(t.value), r.arguments[t.A])
|
|
2139
2139
|
return new k(r.arguments[t.A++], t.scope);
|
|
2140
2140
|
if (r.type === "NewExpression") {
|
|
2141
|
-
if (i instanceof
|
|
2141
|
+
if (i instanceof B && !i.Ab || C(this, this.j, re(this, r.callee) + " is not a constructor"), i === this.qa)
|
|
2142
2142
|
t.B = _e(this);
|
|
2143
2143
|
else {
|
|
2144
2144
|
var a = i.h.prototype;
|
|
@@ -2151,7 +2151,7 @@ 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
|
|
2154
|
+
if (t.eb = !0, i instanceof B || C(this, this.j, re(this, r.callee) + " is not a function"), e = i.node) {
|
|
2155
2155
|
for (r = Xt(this, e.body, i.Va), n = _e(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++)
|
|
@@ -2229,7 +2229,7 @@ m.prototype.stepForInStatement = function(e, t, r) {
|
|
|
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)
|
|
@@ -2488,7 +2488,7 @@ m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
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
2493
|
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new k(i.ua, t.scope);
|
|
2494
2494
|
i = r[++n];
|
|
@@ -2515,7 +2515,7 @@ m.prototype.getGlobalScope = m.prototype.Xb;
|
|
|
2515
2515
|
m.prototype.getStateStack = m.prototype.Yb;
|
|
2516
2516
|
m.prototype.setStateStack = m.prototype.ec;
|
|
2517
2517
|
m.VALUE_IN_DESCRIPTOR = Qe;
|
|
2518
|
-
const
|
|
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,16 +2540,16 @@ 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
|
Fe.warn("Skipping evaluation of empty code block.");
|
|
2555
2555
|
return;
|
|
@@ -2561,25 +2561,25 @@ function theFunction() {
|
|
|
2561
2561
|
${v}
|
|
2562
2562
|
}
|
|
2563
2563
|
theFunction();
|
|
2564
|
-
`,
|
|
2565
|
-
const
|
|
2566
|
-
a == null || a(
|
|
2567
|
-
},
|
|
2568
|
-
f.forEach(([
|
|
2569
|
-
const
|
|
2570
|
-
|
|
2571
|
-
}),
|
|
2564
|
+
`, _ = (O, P) => {
|
|
2565
|
+
const V = hr(u, O, P);
|
|
2566
|
+
a == null || a(V);
|
|
2567
|
+
}, M = function(O, P) {
|
|
2568
|
+
f.forEach(([V, X]) => {
|
|
2569
|
+
const x = JSON.stringify(X);
|
|
2570
|
+
O.setProperty(P, Zn(V), x);
|
|
2571
|
+
}), O.setProperty(P, "setRootState", O.createNativeFunction(_));
|
|
2572
2572
|
};
|
|
2573
2573
|
try {
|
|
2574
|
-
const
|
|
2575
|
-
return
|
|
2576
|
-
} catch (
|
|
2574
|
+
const O = new m(S, M);
|
|
2575
|
+
return O.run(), O.pseudoToNative(O.value);
|
|
2576
|
+
} catch (O) {
|
|
2577
2577
|
Fe.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2578
|
-
e:
|
|
2578
|
+
e: O
|
|
2579
2579
|
});
|
|
2580
2580
|
return;
|
|
2581
2581
|
}
|
|
2582
|
-
},
|
|
2582
|
+
}, yi = (e) => Te() ? Zr(e) : vi(e);
|
|
2583
2583
|
function tt({
|
|
2584
2584
|
code: e,
|
|
2585
2585
|
context: t,
|
|
@@ -2594,10 +2594,10 @@ function tt({
|
|
|
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,7 +2605,7 @@ function tt({
|
|
|
2605
2605
|
localState: r
|
|
2606
2606
|
};
|
|
2607
2607
|
try {
|
|
2608
|
-
return
|
|
2608
|
+
return yi(u);
|
|
2609
2609
|
} catch (f) {
|
|
2610
2610
|
Fe.error("Failed code evaluation: " + f.message, {
|
|
2611
2611
|
code: e
|
|
@@ -2639,7 +2639,7 @@ const xi = ({
|
|
|
2639
2639
|
rootSetState: i,
|
|
2640
2640
|
context: t
|
|
2641
2641
|
});
|
|
2642
|
-
|
|
2642
|
+
hr(s, u, g);
|
|
2643
2643
|
}
|
|
2644
2644
|
return s;
|
|
2645
2645
|
};
|
|
@@ -2660,7 +2660,7 @@ 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"], Lt = (e) => typeof e == "string" && bi.includes(e.toLowerCase()), Si = ({
|
|
2664
2664
|
block: e,
|
|
2665
2665
|
context: t,
|
|
2666
2666
|
registeredComponents: r
|
|
@@ -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
|
}) => {
|
|
@@ -2731,7 +2731,7 @@ 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
|
}) => {
|
|
@@ -2757,17 +2757,17 @@ 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(Kt),
|
|
2762
|
+
return `${ki(r)}: ${n};`;
|
|
2763
|
+
}).filter(Kt), Ci = (e) => Sr(e).join(`
|
|
2764
2764
|
`), $t = ({
|
|
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}
|
|
@@ -2776,7 +2776,7 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2776
2776
|
function yt(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
2781
|
const n = pt({
|
|
2782
2782
|
block: e.block,
|
|
@@ -2789,7 +2789,7 @@ function fn(e) {
|
|
|
2789
2789
|
return Kt(n.hide) ? !n.hide : Kt(n.show) ? n.show : !0;
|
|
2790
2790
|
}
|
|
2791
2791
|
function r() {
|
|
2792
|
-
var
|
|
2792
|
+
var O;
|
|
2793
2793
|
const n = pt({
|
|
2794
2794
|
block: e.block,
|
|
2795
2795
|
localState: e.context.localState,
|
|
@@ -2797,32 +2797,32 @@ function fn(e) {
|
|
|
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
2805
|
const S = u ? $t({
|
|
2806
2806
|
className: v,
|
|
2807
2807
|
styles: u
|
|
2808
|
-
}) : "",
|
|
2808
|
+
}) : "", _ = f ? $t({
|
|
2809
2809
|
className: v,
|
|
2810
2810
|
styles: f,
|
|
2811
|
-
mediaQuery:
|
|
2811
|
+
mediaQuery: Qn(
|
|
2812
2812
|
"medium",
|
|
2813
2813
|
s
|
|
2814
2814
|
)
|
|
2815
|
-
}) : "",
|
|
2815
|
+
}) : "", M = g ? $t({
|
|
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 [S,
|
|
2823
|
+
return [S, _, M].join(" ");
|
|
2824
2824
|
}
|
|
2825
|
-
return /* @__PURE__ */ p(
|
|
2825
|
+
return /* @__PURE__ */ p(N, { children: r() && t() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(yt, { styles: r() }) }) : null });
|
|
2826
2826
|
}
|
|
2827
2827
|
function Ii(e) {
|
|
2828
2828
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -2888,7 +2888,7 @@ function Oi(e) {
|
|
|
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,10 +2896,10 @@ function Oi(e) {
|
|
|
2896
2896
|
return e;
|
|
2897
2897
|
}
|
|
2898
2898
|
}
|
|
2899
|
-
function
|
|
2900
|
-
return /* @__PURE__ */
|
|
2899
|
+
function er(e) {
|
|
2900
|
+
return /* @__PURE__ */ Q(N, { children: [
|
|
2901
2901
|
" ",
|
|
2902
|
-
e.hasChildren ? /* @__PURE__ */ p(
|
|
2902
|
+
e.hasChildren ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ Q(
|
|
2903
2903
|
e.Wrapper,
|
|
2904
2904
|
{
|
|
2905
2905
|
...mt({
|
|
@@ -2920,7 +2920,7 @@ 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
|
...mt({
|
|
@@ -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] = H(
|
|
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,32 +3009,22 @@ 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
|
+
xt,
|
|
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] =
|
|
3025
|
+
const [t, r] = H(() => e.repeatContext);
|
|
3036
3026
|
return /* @__PURE__ */ p(Qt.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3037
|
-
|
|
3027
|
+
xt,
|
|
3038
3028
|
{
|
|
3039
3029
|
block: e.block,
|
|
3040
3030
|
context: t,
|
|
@@ -3042,24 +3032,24 @@ function Mi(e) {
|
|
|
3042
3032
|
}
|
|
3043
3033
|
) });
|
|
3044
3034
|
}
|
|
3045
|
-
function
|
|
3046
|
-
var v, S,
|
|
3035
|
+
function xt(e) {
|
|
3036
|
+
var v, S, _;
|
|
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 M;
|
|
3052
|
+
return (M = e.block.repeat) != null && M.collection ? e.block : pt({
|
|
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, V;
|
|
3066
|
+
if ((P = e.block.repeat) != null && P.collection)
|
|
3067
|
+
return !!((V = r == null ? void 0 : r()) != null && V.length);
|
|
3068
|
+
const M = "hide" in n() ? n().hide : !1;
|
|
3069
|
+
return ("show" in n() ? n().show : !0) && !M;
|
|
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 M, O, P, V, X, x;
|
|
3087
3077
|
return {
|
|
3088
|
-
blockChildren: (
|
|
3089
|
-
componentRef: (
|
|
3078
|
+
blockChildren: (M = n().children) != null ? M : [],
|
|
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" || ((V = t == null ? void 0 : t()) == null ? void 0 : V.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: ((X = t == null ? void 0 : t()) == null ? void 0 : X.noWrap) === !0,
|
|
3091
|
+
isInteractive: !((x = t == null ? void 0 : t()) != null && x.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] = H(() => e.context);
|
|
3095
|
+
return /* @__PURE__ */ p(N, { children: a() ? /* @__PURE__ */ Q(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
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
{
|
|
3130
|
-
repeatContext: E.context,
|
|
3131
|
-
block: E.block,
|
|
3132
|
-
registeredComponents: e.registeredComponents
|
|
3133
|
-
},
|
|
3134
|
-
N
|
|
3135
|
-
)) }) : null,
|
|
3136
|
-
!Lt(i()) && !r() ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ Z(
|
|
3137
|
-
tr,
|
|
3138
|
-
{
|
|
3139
|
-
Wrapper: i(),
|
|
3140
|
-
block: n(),
|
|
3141
|
-
context: e.context,
|
|
3142
|
-
hasChildren: !0,
|
|
3143
|
-
children: [
|
|
3144
|
-
/* @__PURE__ */ p(
|
|
3145
|
-
nr,
|
|
3146
|
-
{
|
|
3147
|
-
componentRef: u().componentRef,
|
|
3148
|
-
componentOptions: u().componentOptions,
|
|
3149
|
-
blockChildren: u().blockChildren,
|
|
3150
|
-
context: u().context,
|
|
3151
|
-
registeredComponents: u().registeredComponents,
|
|
3152
|
-
builderBlock: u().builderBlock,
|
|
3153
|
-
includeBlockProps: u().includeBlockProps,
|
|
3154
|
-
isInteractive: u().isInteractive
|
|
3155
|
-
}
|
|
3156
|
-
),
|
|
3157
|
-
(U = s()) == null ? void 0 : U.map((E) => /* @__PURE__ */ p(
|
|
3158
|
-
bt,
|
|
3159
|
-
{
|
|
3160
|
-
block: E,
|
|
3161
|
-
context: f,
|
|
3162
|
-
registeredComponents: e.registeredComponents
|
|
3163
|
-
},
|
|
3164
|
-
"block-" + E.id
|
|
3165
|
-
)),
|
|
3166
|
-
(H = s()) == null ? void 0 : H.map((E) => /* @__PURE__ */ p(
|
|
3167
|
-
fn,
|
|
3168
|
-
{
|
|
3169
|
-
block: E,
|
|
3170
|
-
context: f
|
|
3171
|
-
},
|
|
3172
|
-
"block-style-" + E.id
|
|
3173
|
-
))
|
|
3174
|
-
]
|
|
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
|
|
3175
3108
|
}
|
|
3176
|
-
) }) :
|
|
3177
|
-
|
|
3109
|
+
) }) : /* @__PURE__ */ Q(N, { children: [
|
|
3110
|
+
Lt(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
|
+
!Lt(i()) && r() ? /* @__PURE__ */ p(N, { children: (S = r()) == null ? void 0 : S.map((M, O) => /* @__PURE__ */ p(
|
|
3120
|
+
Mi,
|
|
3121
|
+
{
|
|
3122
|
+
repeatContext: M.context,
|
|
3123
|
+
block: M.block,
|
|
3124
|
+
registeredComponents: e.registeredComponents
|
|
3125
|
+
},
|
|
3126
|
+
O
|
|
3127
|
+
)) }) : null,
|
|
3128
|
+
!Lt(i()) && !r() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ Q(
|
|
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
|
+
(_ = s()) == null ? void 0 : _.map((M) => /* @__PURE__ */ p(
|
|
3150
|
+
xt,
|
|
3151
|
+
{
|
|
3152
|
+
block: M,
|
|
3153
|
+
context: f,
|
|
3154
|
+
registeredComponents: e.registeredComponents
|
|
3155
|
+
},
|
|
3156
|
+
M.id
|
|
3157
|
+
))
|
|
3158
|
+
]
|
|
3159
|
+
}
|
|
3160
|
+
) }) : null
|
|
3161
|
+
] })
|
|
3162
|
+
] }) : null });
|
|
3178
3163
|
}
|
|
3179
3164
|
function Bi(e) {
|
|
3180
3165
|
function t() {
|
|
@@ -3207,7 +3192,7 @@ function Bi(e) {
|
|
|
3207
3192
|
"*"
|
|
3208
3193
|
));
|
|
3209
3194
|
}
|
|
3210
|
-
return /* @__PURE__ */
|
|
3195
|
+
return /* @__PURE__ */ Q(N, { children: [
|
|
3211
3196
|
/* @__PURE__ */ p(
|
|
3212
3197
|
e.BlocksWrapper,
|
|
3213
3198
|
{
|
|
@@ -3229,10 +3214,10 @@ function Bi(e) {
|
|
|
3229
3214
|
}` })
|
|
3230
3215
|
] });
|
|
3231
3216
|
}
|
|
3232
|
-
function
|
|
3233
|
-
var n, i, a
|
|
3234
|
-
const t =
|
|
3235
|
-
return /* @__PURE__ */
|
|
3217
|
+
function fn(e) {
|
|
3218
|
+
var n, i, a;
|
|
3219
|
+
const t = $n(Qt), r = $n(dr);
|
|
3220
|
+
return /* @__PURE__ */ p(
|
|
3236
3221
|
Bi,
|
|
3237
3222
|
{
|
|
3238
3223
|
blocks: e.blocks,
|
|
@@ -3241,59 +3226,49 @@ 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
|
+
xt,
|
|
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 X;
|
|
3243
|
+
const [t, r] = H(
|
|
3269
3244
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3270
|
-
), [n, i] =
|
|
3245
|
+
), [n, i] = H(() => e.columns || []), [a, s] = H(
|
|
3271
3246
|
() => e.stackColumnsAt || "tablet"
|
|
3272
3247
|
);
|
|
3273
|
-
function u(
|
|
3274
|
-
var
|
|
3275
|
-
return ((
|
|
3248
|
+
function u(x) {
|
|
3249
|
+
var L;
|
|
3250
|
+
return ((L = n[x]) == null ? void 0 : L.width) || 100 / n.length;
|
|
3276
3251
|
}
|
|
3277
|
-
function f(
|
|
3278
|
-
const
|
|
3279
|
-
return `calc(${u(
|
|
3252
|
+
function f(x) {
|
|
3253
|
+
const L = t * (n.length - 1) / n.length;
|
|
3254
|
+
return `calc(${u(x)}% - ${L}px)`;
|
|
3280
3255
|
}
|
|
3281
3256
|
function g({
|
|
3282
|
-
stackedStyle:
|
|
3283
|
-
desktopStyle:
|
|
3257
|
+
stackedStyle: x,
|
|
3258
|
+
desktopStyle: L
|
|
3284
3259
|
}) {
|
|
3285
|
-
return a === "tablet" ?
|
|
3260
|
+
return a === "tablet" ? x : L;
|
|
3286
3261
|
}
|
|
3287
3262
|
function v({
|
|
3288
|
-
stackedStyle:
|
|
3289
|
-
desktopStyle:
|
|
3263
|
+
stackedStyle: x,
|
|
3264
|
+
desktopStyle: L
|
|
3290
3265
|
}) {
|
|
3291
|
-
return a === "never" ?
|
|
3266
|
+
return a === "never" ? L : x;
|
|
3292
3267
|
}
|
|
3293
|
-
const [S,
|
|
3268
|
+
const [S, _] = H(
|
|
3294
3269
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3295
3270
|
);
|
|
3296
|
-
function
|
|
3271
|
+
function M() {
|
|
3297
3272
|
return {
|
|
3298
3273
|
"--flex-dir": S,
|
|
3299
3274
|
"--flex-dir-tablet": g({
|
|
@@ -3302,8 +3277,8 @@ function Fi(e) {
|
|
|
3302
3277
|
})
|
|
3303
3278
|
};
|
|
3304
3279
|
}
|
|
3305
|
-
function
|
|
3306
|
-
const
|
|
3280
|
+
function O(x) {
|
|
3281
|
+
const L = x === 0 ? 0 : t, ae = f(x), se = `${L}px`, K = "100%", te = 0;
|
|
3307
3282
|
return {
|
|
3308
3283
|
width: ae,
|
|
3309
3284
|
["marginLeft"]: se,
|
|
@@ -3325,15 +3300,15 @@ function Fi(e) {
|
|
|
3325
3300
|
})
|
|
3326
3301
|
};
|
|
3327
3302
|
}
|
|
3328
|
-
function
|
|
3303
|
+
function P(x) {
|
|
3329
3304
|
var ae, se;
|
|
3330
|
-
return
|
|
3305
|
+
return br(
|
|
3331
3306
|
((se = (ae = e.builderContext.content) == null ? void 0 : ae.meta) == null ? void 0 : se.breakpoints) || {}
|
|
3332
|
-
)[
|
|
3307
|
+
)[x].max;
|
|
3333
3308
|
}
|
|
3334
|
-
function
|
|
3309
|
+
function V() {
|
|
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__ */ Q(N, { children: [
|
|
3337
|
+
/* @__PURE__ */ Q(
|
|
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: M(),
|
|
3367
3342
|
children: [
|
|
3368
|
-
/* @__PURE__ */ p(
|
|
3369
|
-
(
|
|
3343
|
+
/* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(yt, { styles: V() }) }),
|
|
3344
|
+
(X = e.columns) == null ? void 0 : X.map((x, L) => /* @__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(L),
|
|
3349
|
+
key: L
|
|
3375
3350
|
},
|
|
3376
3351
|
/* @__PURE__ */ p(
|
|
3377
|
-
|
|
3352
|
+
fn,
|
|
3378
3353
|
{
|
|
3379
|
-
path: `component.options.columns.${
|
|
3354
|
+
path: `component.options.columns.${L}.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: x.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,11 +3389,11 @@ 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
|
}
|
|
@@ -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__ */ Q(N, { children: [
|
|
3442
|
+
/* @__PURE__ */ Q(N, { children: [
|
|
3443
|
+
/* @__PURE__ */ Q("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,7 +3770,7 @@ const Li = {
|
|
|
3795
3770
|
}]
|
|
3796
3771
|
};
|
|
3797
3772
|
function Ki(e) {
|
|
3798
|
-
const t = qt(null), [r, n] =
|
|
3773
|
+
const t = qt(null), [r, n] = H(() => []), [i, a] = H(() => []);
|
|
3799
3774
|
return ee(() => {
|
|
3800
3775
|
var u;
|
|
3801
3776
|
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -3859,7 +3834,7 @@ 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 = qt(null), [r, n] =
|
|
3837
|
+
const t = qt(null), [r, n] = H(() => []), [i, a] = H(() => []), [s, u] = H(() => !1);
|
|
3863
3838
|
function f() {
|
|
3864
3839
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3865
3840
|
return;
|
|
@@ -3868,13 +3843,13 @@ function Yi(e) {
|
|
|
3868
3843
|
const S = g[v];
|
|
3869
3844
|
if (S.src && !r.includes(S.src)) {
|
|
3870
3845
|
r.push(S.src);
|
|
3871
|
-
const
|
|
3872
|
-
|
|
3846
|
+
const _ = document.createElement("script");
|
|
3847
|
+
_.async = !0, _.src = S.src, document.head.appendChild(_);
|
|
3873
3848
|
} else if (Xi(S) && !i.includes(S.innerText))
|
|
3874
3849
|
try {
|
|
3875
3850
|
i.push(S.innerText), new Function(S.innerText)();
|
|
3876
|
-
} catch (
|
|
3877
|
-
console.warn("`Embed`: Error running script:",
|
|
3851
|
+
} catch (_) {
|
|
3852
|
+
console.warn("`Embed`: Error running script:", _);
|
|
3878
3853
|
}
|
|
3879
3854
|
}
|
|
3880
3855
|
}
|
|
@@ -3921,8 +3896,8 @@ const Ji = {
|
|
|
3921
3896
|
let S = !1;
|
|
3922
3897
|
v.onload = () => {
|
|
3923
3898
|
S = !0, f(v);
|
|
3924
|
-
}, v.addEventListener("error", (
|
|
3925
|
-
console.warn("Image load failed",
|
|
3899
|
+
}, v.addEventListener("error", (_) => {
|
|
3900
|
+
console.warn("Image load failed", _.error), g(_.error);
|
|
3926
3901
|
}), v.src = s, setTimeout(() => {
|
|
3927
3902
|
S || g(new Error("Image load timed out"));
|
|
3928
3903
|
}, u);
|
|
@@ -4237,7 +4212,7 @@ function oo(e) {
|
|
|
4237
4212
|
...t()
|
|
4238
4213
|
};
|
|
4239
4214
|
}
|
|
4240
|
-
return /* @__PURE__ */
|
|
4215
|
+
return /* @__PURE__ */ Q(
|
|
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,24 +4410,24 @@ const ir = () => [{
|
|
|
4435
4410
|
thisScriptEl?.remove();
|
|
4436
4411
|
}
|
|
4437
4412
|
return;
|
|
4438
|
-
}`,
|
|
4413
|
+
}`, wr = "builderIoAbTest", kr = "builderIoRenderContent", ft = (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
|
-
}) => !(!(ft(t).length > 0) || !e || Te()), co = (e) => e === "react" || e === "reactNative",
|
|
4446
|
-
window.${
|
|
4447
|
-
window.${
|
|
4420
|
+
}) => !(!(ft(t).length > 0) || !e || Te()), co = (e) => e === "react" || e === "reactNative", Cr = co(nt), 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
4432
|
function Jt(e) {
|
|
4458
4433
|
return /* @__PURE__ */ p(
|
|
@@ -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.3", yo = () => {
|
|
4484
|
+
$r("insertMenu", {
|
|
4510
4485
|
name: "_default",
|
|
4511
4486
|
default: !0,
|
|
4512
4487
|
items: [{
|
|
@@ -4528,10 +4503,10 @@ 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, Te() && ((t = window.parent) == null || t.postMessage({
|
|
4535
4510
|
type: "builder.sdkInfo",
|
|
4536
4511
|
data: {
|
|
4537
4512
|
target: nt,
|
|
@@ -4558,8 +4533,8 @@ const bo = (e = {}) => {
|
|
|
4558
4533
|
let v, S = null;
|
|
4559
4534
|
try {
|
|
4560
4535
|
v = g.apply(null, u);
|
|
4561
|
-
} catch (
|
|
4562
|
-
S =
|
|
4536
|
+
} catch (_) {
|
|
4537
|
+
S = _;
|
|
4563
4538
|
}
|
|
4564
4539
|
S ? (i = window.parent) == null || i.postMessage({
|
|
4565
4540
|
type: "builder.evaluateError",
|
|
@@ -4567,13 +4542,13 @@ const bo = (e = {}) => {
|
|
|
4567
4542
|
id: f,
|
|
4568
4543
|
error: S.message
|
|
4569
4544
|
}
|
|
4570
|
-
}, "*") : v && typeof v.then == "function" ? v.then((
|
|
4571
|
-
var
|
|
4572
|
-
(
|
|
4545
|
+
}, "*") : v && typeof v.then == "function" ? v.then((_) => {
|
|
4546
|
+
var M;
|
|
4547
|
+
(M = window.parent) == null || M.postMessage({
|
|
4573
4548
|
type: "builder.evaluateResult",
|
|
4574
4549
|
data: {
|
|
4575
4550
|
id: f,
|
|
4576
|
-
result:
|
|
4551
|
+
result: _
|
|
4577
4552
|
}
|
|
4578
4553
|
}, "*");
|
|
4579
4554
|
}).catch(console.error) : (a = window.parent) == null || a.postMessage({
|
|
@@ -4588,61 +4563,61 @@ const bo = (e = {}) => {
|
|
|
4588
4563
|
}
|
|
4589
4564
|
})));
|
|
4590
4565
|
};
|
|
4591
|
-
function
|
|
4592
|
-
var K, te,
|
|
4593
|
-
const t = qt(null), [r, n] =
|
|
4566
|
+
function bo(e) {
|
|
4567
|
+
var K, te, I, je, W, ke, ce;
|
|
4568
|
+
const t = qt(null), [r, n] = H(() => 0);
|
|
4594
4569
|
function i(y) {
|
|
4595
|
-
var
|
|
4596
|
-
const
|
|
4570
|
+
var F, R, D, $, xe;
|
|
4571
|
+
const E = {
|
|
4597
4572
|
...e.builderContextSignal.content,
|
|
4598
4573
|
...y,
|
|
4599
4574
|
data: {
|
|
4600
|
-
...(
|
|
4575
|
+
...(F = e.builderContextSignal.content) == null ? void 0 : F.data,
|
|
4601
4576
|
...y == null ? void 0 : y.data
|
|
4602
4577
|
},
|
|
4603
4578
|
meta: {
|
|
4604
|
-
...(
|
|
4579
|
+
...(R = e.builderContextSignal.content) == null ? void 0 : R.meta,
|
|
4605
4580
|
...y == null ? void 0 : y.meta,
|
|
4606
|
-
breakpoints: ((
|
|
4581
|
+
breakpoints: ((D = y == null ? void 0 : y.meta) == null ? void 0 : D.breakpoints) || ((xe = ($ = e.builderContextSignal.content) == null ? void 0 : $.meta) == null ? void 0 : xe.breakpoints)
|
|
4607
4582
|
}
|
|
4608
4583
|
};
|
|
4609
4584
|
e.setBuilderContextSignal((ot) => ({
|
|
4610
4585
|
...ot,
|
|
4611
|
-
content:
|
|
4586
|
+
content: E
|
|
4612
4587
|
}));
|
|
4613
4588
|
}
|
|
4614
|
-
|
|
4615
|
-
const [a, s] =
|
|
4589
|
+
H(() => 0);
|
|
4590
|
+
const [a, s] = H(
|
|
4616
4591
|
() => !1
|
|
4617
|
-
), [u, f] =
|
|
4592
|
+
), [u, f] = H(
|
|
4618
4593
|
() => e.contentWrapper || "div"
|
|
4619
4594
|
);
|
|
4620
4595
|
function g(y) {
|
|
4621
|
-
var
|
|
4622
|
-
const { data:
|
|
4623
|
-
if (
|
|
4624
|
-
switch (
|
|
4596
|
+
var F;
|
|
4597
|
+
const { data: E } = y;
|
|
4598
|
+
if (E)
|
|
4599
|
+
switch (E.type) {
|
|
4625
4600
|
case "builder.configureSdk": {
|
|
4626
|
-
const
|
|
4627
|
-
if (
|
|
4601
|
+
const R = E.data, { breakpoints: D, contentId: $ } = R;
|
|
4602
|
+
if (!$ || $ !== ((F = e.builderContextSignal.content) == null ? void 0 : F.id))
|
|
4628
4603
|
return;
|
|
4629
|
-
|
|
4604
|
+
D && i({
|
|
4630
4605
|
meta: {
|
|
4631
|
-
breakpoints:
|
|
4606
|
+
breakpoints: D
|
|
4632
4607
|
}
|
|
4633
4608
|
}), n(r + 1);
|
|
4634
4609
|
break;
|
|
4635
4610
|
}
|
|
4636
4611
|
case "builder.contentUpdate": {
|
|
4637
|
-
const
|
|
4638
|
-
|
|
4612
|
+
const R = E.data, D = R.key || R.alias || R.entry || R.modelName, $ = R.data;
|
|
4613
|
+
D === e.model && (i($), n(r + 1));
|
|
4639
4614
|
break;
|
|
4640
4615
|
}
|
|
4641
4616
|
}
|
|
4642
4617
|
}
|
|
4643
4618
|
function v() {
|
|
4644
|
-
var
|
|
4645
|
-
const y = (
|
|
4619
|
+
var E, F;
|
|
4620
|
+
const y = (F = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : F.jsCode;
|
|
4646
4621
|
y && tt({
|
|
4647
4622
|
code: y,
|
|
4648
4623
|
context: e.context || {},
|
|
@@ -4651,28 +4626,28 @@ function xo(e) {
|
|
|
4651
4626
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4652
4627
|
});
|
|
4653
4628
|
}
|
|
4654
|
-
const [S,
|
|
4655
|
-
function
|
|
4656
|
-
var
|
|
4629
|
+
const [S, _] = H(() => ({})), [M, O] = H(() => !1);
|
|
4630
|
+
function P(y) {
|
|
4631
|
+
var E, F;
|
|
4657
4632
|
if (e.builderContextSignal.content) {
|
|
4658
|
-
const
|
|
4659
|
-
|
|
4633
|
+
const R = (E = e.builderContextSignal.content) == null ? void 0 : E.testVariationId, D = (F = e.builderContextSignal.content) == null ? void 0 : F.id;
|
|
4634
|
+
Hn({
|
|
4660
4635
|
type: "click",
|
|
4661
4636
|
canTrack: ht(e.canTrack),
|
|
4662
|
-
contentId:
|
|
4637
|
+
contentId: D,
|
|
4663
4638
|
apiKey: e.apiKey,
|
|
4664
|
-
variationId:
|
|
4639
|
+
variationId: R !== D ? R : void 0,
|
|
4665
4640
|
...go(y),
|
|
4666
|
-
unique: !
|
|
4641
|
+
unique: !M
|
|
4667
4642
|
});
|
|
4668
4643
|
}
|
|
4669
|
-
|
|
4644
|
+
M || O(!0);
|
|
4670
4645
|
}
|
|
4671
|
-
function
|
|
4646
|
+
function V(y) {
|
|
4672
4647
|
return y.replace(
|
|
4673
4648
|
/{{([^}]+)}}/g,
|
|
4674
|
-
(
|
|
4675
|
-
code:
|
|
4649
|
+
(E, F) => tt({
|
|
4650
|
+
code: F,
|
|
4676
4651
|
context: e.context || {},
|
|
4677
4652
|
localState: void 0,
|
|
4678
4653
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4680,32 +4655,32 @@ function xo(e) {
|
|
|
4680
4655
|
})
|
|
4681
4656
|
);
|
|
4682
4657
|
}
|
|
4683
|
-
function
|
|
4684
|
-
|
|
4685
|
-
var
|
|
4686
|
-
const
|
|
4658
|
+
function X({ url: y, key: E }) {
|
|
4659
|
+
Gr(y).then((F) => F.json()).then((F) => {
|
|
4660
|
+
var D, $;
|
|
4661
|
+
const R = {
|
|
4687
4662
|
...e.builderContextSignal.rootState,
|
|
4688
|
-
[
|
|
4663
|
+
[E]: F
|
|
4689
4664
|
};
|
|
4690
|
-
(
|
|
4691
|
-
}).catch((
|
|
4692
|
-
console.error("error fetching dynamic data", y,
|
|
4665
|
+
($ = (D = e.builderContextSignal).rootSetState) == null || $.call(D, R), S[E] = !0;
|
|
4666
|
+
}).catch((F) => {
|
|
4667
|
+
console.error("error fetching dynamic data", y, F);
|
|
4693
4668
|
});
|
|
4694
4669
|
}
|
|
4695
|
-
function
|
|
4696
|
-
var
|
|
4697
|
-
const y = (
|
|
4698
|
-
Object.entries(y).forEach(([
|
|
4699
|
-
if (
|
|
4700
|
-
const
|
|
4701
|
-
|
|
4702
|
-
url:
|
|
4703
|
-
key:
|
|
4670
|
+
function x() {
|
|
4671
|
+
var E, F, R;
|
|
4672
|
+
const y = (R = (F = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : F.httpRequests) != null ? R : {};
|
|
4673
|
+
Object.entries(y).forEach(([D, $]) => {
|
|
4674
|
+
if ($ && (!S[D] || Ie())) {
|
|
4675
|
+
const xe = V($);
|
|
4676
|
+
X({
|
|
4677
|
+
url: xe,
|
|
4678
|
+
key: D
|
|
4704
4679
|
});
|
|
4705
4680
|
}
|
|
4706
4681
|
});
|
|
4707
4682
|
}
|
|
4708
|
-
function
|
|
4683
|
+
function L() {
|
|
4709
4684
|
Ie() && window.dispatchEvent(
|
|
4710
4685
|
new CustomEvent(
|
|
4711
4686
|
"builder:component:stateChange",
|
|
@@ -4721,7 +4696,7 @@ function xo(e) {
|
|
|
4721
4696
|
);
|
|
4722
4697
|
}
|
|
4723
4698
|
function ae(y) {
|
|
4724
|
-
n(r + 1), window.addEventListener("message", g), yo(),
|
|
4699
|
+
n(r + 1), window.addEventListener("message", g), yo(), xo({
|
|
4725
4700
|
...e.locale ? {
|
|
4726
4701
|
locale: e.locale
|
|
4727
4702
|
} : {},
|
|
@@ -4733,25 +4708,25 @@ function xo(e) {
|
|
|
4733
4708
|
} : {}
|
|
4734
4709
|
}), Object.values(
|
|
4735
4710
|
e.builderContextSignal.componentInfos
|
|
4736
|
-
).forEach((
|
|
4737
|
-
var
|
|
4738
|
-
const
|
|
4739
|
-
(
|
|
4711
|
+
).forEach((E) => {
|
|
4712
|
+
var R;
|
|
4713
|
+
const F = Kr(E);
|
|
4714
|
+
(R = window.parent) == null || R.postMessage(F, "*");
|
|
4740
4715
|
}), window.addEventListener(
|
|
4741
4716
|
"builder:component:stateChangeListenerActivated",
|
|
4742
|
-
|
|
4717
|
+
L
|
|
4743
4718
|
);
|
|
4744
4719
|
}
|
|
4745
4720
|
function se(y) {
|
|
4746
|
-
const
|
|
4747
|
-
`builder.preview.${
|
|
4748
|
-
),
|
|
4749
|
-
|
|
4721
|
+
const E = new URL(location.href).searchParams, F = E.get("builder.preview"), R = E.get(
|
|
4722
|
+
`builder.preview.${F}`
|
|
4723
|
+
), D = E.get("apiKey") || E.get("builder.space");
|
|
4724
|
+
F === e.model && D === e.apiKey && (!e.content || R === e.content.id) && ur({
|
|
4750
4725
|
model: e.model,
|
|
4751
4726
|
apiKey: e.apiKey,
|
|
4752
4727
|
apiVersion: e.builderContextSignal.apiVersion
|
|
4753
|
-
}).then((
|
|
4754
|
-
|
|
4728
|
+
}).then(($) => {
|
|
4729
|
+
$ && i($);
|
|
4755
4730
|
});
|
|
4756
4731
|
}
|
|
4757
4732
|
return ee(() => {
|
|
@@ -4760,8 +4735,8 @@ function xo(e) {
|
|
|
4760
4735
|
"initeditingbldr",
|
|
4761
4736
|
ae
|
|
4762
4737
|
), () => {
|
|
4763
|
-
var
|
|
4764
|
-
return (
|
|
4738
|
+
var E;
|
|
4739
|
+
return (E = t.current) == null ? void 0 : E.removeEventListener(
|
|
4765
4740
|
"initeditingbldr",
|
|
4766
4741
|
ae
|
|
4767
4742
|
);
|
|
@@ -4772,31 +4747,31 @@ function xo(e) {
|
|
|
4772
4747
|
"initpreviewingbldr",
|
|
4773
4748
|
se
|
|
4774
4749
|
), () => {
|
|
4775
|
-
var
|
|
4776
|
-
return (
|
|
4750
|
+
var E;
|
|
4751
|
+
return (E = t.current) == null ? void 0 : E.removeEventListener(
|
|
4777
4752
|
"initpreviewingbldr",
|
|
4778
4753
|
se
|
|
4779
4754
|
);
|
|
4780
4755
|
};
|
|
4781
4756
|
}, []), ee(() => {
|
|
4782
|
-
var y,
|
|
4757
|
+
var y, E;
|
|
4783
4758
|
if (Te()) {
|
|
4784
4759
|
if (Ie() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && ht(e.canTrack)) {
|
|
4785
|
-
const
|
|
4786
|
-
|
|
4760
|
+
const R = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, D = (E = e.builderContextSignal.content) == null ? void 0 : E.id, $ = e.apiKey;
|
|
4761
|
+
Hn({
|
|
4787
4762
|
type: "impression",
|
|
4788
4763
|
canTrack: !0,
|
|
4789
|
-
contentId:
|
|
4790
|
-
apiKey:
|
|
4791
|
-
variationId:
|
|
4764
|
+
contentId: D,
|
|
4765
|
+
apiKey: $,
|
|
4766
|
+
variationId: R !== D ? R : void 0
|
|
4792
4767
|
});
|
|
4793
4768
|
}
|
|
4794
|
-
|
|
4769
|
+
Hr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
4795
4770
|
}
|
|
4796
4771
|
}, []), ee(() => {
|
|
4797
4772
|
e.apiKey || Fe.error(
|
|
4798
4773
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4799
|
-
), v(),
|
|
4774
|
+
), v(), x(), L();
|
|
4800
4775
|
}, []), ee(() => {
|
|
4801
4776
|
e.content && i(e.content);
|
|
4802
4777
|
}, [e.content]), ee(() => {
|
|
@@ -4806,21 +4781,21 @@ function xo(e) {
|
|
|
4806
4781
|
(te = (K = e.builderContextSignal.content) == null ? void 0 : K.data) == null ? void 0 : te.jsCode,
|
|
4807
4782
|
e.builderContextSignal.rootState
|
|
4808
4783
|
]), ee(() => {
|
|
4809
|
-
|
|
4810
|
-
}, [(je = (
|
|
4811
|
-
|
|
4784
|
+
x();
|
|
4785
|
+
}, [(je = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : je.httpRequests]), ee(() => {
|
|
4786
|
+
L();
|
|
4812
4787
|
}, [e.builderContextSignal.rootState]), ee(() => () => {
|
|
4813
4788
|
Te() && (window.removeEventListener("message", g), window.removeEventListener(
|
|
4814
4789
|
"builder:component:stateChangeListenerActivated",
|
|
4815
|
-
|
|
4790
|
+
L
|
|
4816
4791
|
));
|
|
4817
|
-
}, []), /* @__PURE__ */ p(Qt.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(
|
|
4792
|
+
}, []), /* @__PURE__ */ p(Qt.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ cr(
|
|
4818
4793
|
u,
|
|
4819
4794
|
{
|
|
4820
4795
|
key: r,
|
|
4821
4796
|
ref: t,
|
|
4822
|
-
onClick: (y) =>
|
|
4823
|
-
"builder-content-id": (
|
|
4797
|
+
onClick: (y) => P(y),
|
|
4798
|
+
"builder-content-id": (W = e.builderContextSignal.content) == null ? void 0 : W.id,
|
|
4824
4799
|
"builder-model": e.model,
|
|
4825
4800
|
...e.showContent ? {} : {
|
|
4826
4801
|
hidden: !0,
|
|
@@ -4868,7 +4843,7 @@ font-weight: ${u};
|
|
|
4868
4843
|
contentId: t
|
|
4869
4844
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4870
4845
|
function Co(e) {
|
|
4871
|
-
const [t, r] =
|
|
4846
|
+
const [t, r] = H(
|
|
4872
4847
|
() => `
|
|
4873
4848
|
${ko({
|
|
4874
4849
|
cssCode: e.cssCode,
|
|
@@ -4922,46 +4897,46 @@ const Eo = ({
|
|
|
4922
4897
|
},
|
|
4923
4898
|
meta: e == null ? void 0 : e.meta
|
|
4924
4899
|
} : void 0;
|
|
4925
|
-
function
|
|
4926
|
-
var f, g, v, S,
|
|
4927
|
-
const [t, r] =
|
|
4900
|
+
function sr(e) {
|
|
4901
|
+
var f, g, v, S, _, M, O;
|
|
4902
|
+
const [t, r] = H(
|
|
4928
4903
|
() => {
|
|
4929
|
-
var
|
|
4904
|
+
var P, V;
|
|
4930
4905
|
return ho({
|
|
4931
4906
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4932
|
-
variationId: (
|
|
4907
|
+
variationId: (P = e.content) == null ? void 0 : P.testVariationId,
|
|
4933
4908
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4934
|
-
contentId: (
|
|
4909
|
+
contentId: (V = e.content) == null ? void 0 : V.id
|
|
4935
4910
|
});
|
|
4936
4911
|
}
|
|
4937
4912
|
);
|
|
4938
|
-
function n(
|
|
4939
|
-
u((
|
|
4940
|
-
...
|
|
4941
|
-
rootState:
|
|
4913
|
+
function n(P) {
|
|
4914
|
+
u((V) => ({
|
|
4915
|
+
...V,
|
|
4916
|
+
rootState: P
|
|
4942
4917
|
}));
|
|
4943
4918
|
}
|
|
4944
|
-
const [i, a] =
|
|
4919
|
+
const [i, a] = H(
|
|
4945
4920
|
() => [
|
|
4946
|
-
...
|
|
4921
|
+
...rr(),
|
|
4947
4922
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
4948
4923
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
4949
4924
|
// existing usage.
|
|
4950
4925
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
4951
4926
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
4952
|
-
...
|
|
4927
|
+
...Kn,
|
|
4953
4928
|
...e.customComponents || []
|
|
4954
4929
|
].reduce(
|
|
4955
|
-
(
|
|
4956
|
-
...
|
|
4957
|
-
[
|
|
4958
|
-
component:
|
|
4959
|
-
...
|
|
4930
|
+
(P, { component: V, ...X }) => ({
|
|
4931
|
+
...P,
|
|
4932
|
+
[X.name]: {
|
|
4933
|
+
component: V,
|
|
4934
|
+
...Gn(X)
|
|
4960
4935
|
}
|
|
4961
4936
|
}),
|
|
4962
4937
|
{}
|
|
4963
4938
|
)
|
|
4964
|
-
), [s, u] =
|
|
4939
|
+
), [s, u] = H(() => ({
|
|
4965
4940
|
content: Io({
|
|
4966
4941
|
content: e.content,
|
|
4967
4942
|
data: e.data
|
|
@@ -4977,18 +4952,18 @@ function lr(e) {
|
|
|
4977
4952
|
apiKey: e.apiKey,
|
|
4978
4953
|
apiVersion: e.apiVersion,
|
|
4979
4954
|
componentInfos: [
|
|
4980
|
-
...
|
|
4955
|
+
...rr(),
|
|
4981
4956
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
4982
4957
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
4983
4958
|
// existing usage.
|
|
4984
4959
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
4985
4960
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
4986
|
-
...
|
|
4961
|
+
...Kn,
|
|
4987
4962
|
...e.customComponents || []
|
|
4988
4963
|
].reduce(
|
|
4989
|
-
(
|
|
4990
|
-
...
|
|
4991
|
-
[
|
|
4964
|
+
(P, { component: V, ...X }) => ({
|
|
4965
|
+
...P,
|
|
4966
|
+
[X.name]: Gn(X)
|
|
4992
4967
|
}),
|
|
4993
4968
|
{}
|
|
4994
4969
|
),
|
|
@@ -4997,13 +4972,13 @@ function lr(e) {
|
|
|
4997
4972
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4998
4973
|
}));
|
|
4999
4974
|
return /* @__PURE__ */ p(
|
|
5000
|
-
|
|
4975
|
+
dr.Provider,
|
|
5001
4976
|
{
|
|
5002
4977
|
value: {
|
|
5003
4978
|
registeredComponents: i
|
|
5004
4979
|
},
|
|
5005
|
-
children: /* @__PURE__ */
|
|
5006
|
-
|
|
4980
|
+
children: /* @__PURE__ */ Q(
|
|
4981
|
+
bo,
|
|
5007
4982
|
{
|
|
5008
4983
|
content: e.content,
|
|
5009
4984
|
model: e.model,
|
|
@@ -5019,19 +4994,19 @@ function lr(e) {
|
|
|
5019
4994
|
contentWrapperProps: e.contentWrapperProps,
|
|
5020
4995
|
setBuilderContextSignal: u,
|
|
5021
4996
|
children: [
|
|
5022
|
-
e.isSsrAbTest ? /* @__PURE__ */ p(
|
|
5023
|
-
/* @__PURE__ */ p(
|
|
4997
|
+
e.isSsrAbTest ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(Jt, { scriptStr: t }) }) : null,
|
|
4998
|
+
/* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
5024
4999
|
Co,
|
|
5025
5000
|
{
|
|
5026
5001
|
contentId: (f = s.content) == null ? void 0 : f.id,
|
|
5027
5002
|
cssCode: (v = (g = s.content) == null ? void 0 : g.data) == null ? void 0 : v.cssCode,
|
|
5028
|
-
customFonts: (
|
|
5003
|
+
customFonts: (_ = (S = s.content) == null ? void 0 : S.data) == null ? void 0 : _.customFonts
|
|
5029
5004
|
}
|
|
5030
5005
|
) }),
|
|
5031
5006
|
/* @__PURE__ */ p(
|
|
5032
|
-
|
|
5007
|
+
fn,
|
|
5033
5008
|
{
|
|
5034
|
-
blocks: (
|
|
5009
|
+
blocks: (O = (M = s.content) == null ? void 0 : M.data) == null ? void 0 : O.blocks,
|
|
5035
5010
|
context: s,
|
|
5036
5011
|
registeredComponents: i
|
|
5037
5012
|
}
|
|
@@ -5042,9 +5017,9 @@ function lr(e) {
|
|
|
5042
5017
|
}
|
|
5043
5018
|
);
|
|
5044
5019
|
}
|
|
5045
|
-
function
|
|
5020
|
+
function Er(e) {
|
|
5046
5021
|
var s, u;
|
|
5047
|
-
const [t, r] =
|
|
5022
|
+
const [t, r] = H(
|
|
5048
5023
|
() => lo({
|
|
5049
5024
|
canTrack: ht(e.canTrack),
|
|
5050
5025
|
content: e.content
|
|
@@ -5068,15 +5043,15 @@ function Ir(e) {
|
|
|
5068
5043
|
return t ? {
|
|
5069
5044
|
...e.content,
|
|
5070
5045
|
testVariationId: (f = e.content) == null ? void 0 : f.id
|
|
5071
|
-
} :
|
|
5046
|
+
} : zr({
|
|
5072
5047
|
item: e.content,
|
|
5073
5048
|
canTrack: ht(e.canTrack)
|
|
5074
5049
|
});
|
|
5075
5050
|
}
|
|
5076
5051
|
return ee(() => {
|
|
5077
|
-
}, []), /* @__PURE__ */
|
|
5078
|
-
!e.__isNestedRender && nt !== "reactNative" ? /* @__PURE__ */ p(
|
|
5079
|
-
t ? /* @__PURE__ */
|
|
5052
|
+
}, []), /* @__PURE__ */ Q(N, { children: [
|
|
5053
|
+
!e.__isNestedRender && nt !== "reactNative" ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(Jt, { scriptStr: uo() }) }) : null,
|
|
5054
|
+
t ? /* @__PURE__ */ Q(N, { children: [
|
|
5080
5055
|
/* @__PURE__ */ p(
|
|
5081
5056
|
yt,
|
|
5082
5057
|
{
|
|
@@ -5086,7 +5061,7 @@ function Ir(e) {
|
|
|
5086
5061
|
),
|
|
5087
5062
|
/* @__PURE__ */ p(Jt, { scriptStr: n() }),
|
|
5088
5063
|
(u = ft(e.content)) == null ? void 0 : u.map((f) => /* @__PURE__ */ p(
|
|
5089
|
-
|
|
5064
|
+
sr,
|
|
5090
5065
|
{
|
|
5091
5066
|
content: f,
|
|
5092
5067
|
showContent: !1,
|
|
@@ -5110,7 +5085,7 @@ function Ir(e) {
|
|
|
5110
5085
|
))
|
|
5111
5086
|
] }) : null,
|
|
5112
5087
|
/* @__PURE__ */ p(
|
|
5113
|
-
|
|
5088
|
+
sr,
|
|
5114
5089
|
{
|
|
5115
5090
|
content: a(),
|
|
5116
5091
|
showContent: !0,
|
|
@@ -5139,7 +5114,7 @@ const To = async ({
|
|
|
5139
5114
|
}) => {
|
|
5140
5115
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5141
5116
|
(e != null && e.apiKey))
|
|
5142
|
-
return
|
|
5117
|
+
return ur({
|
|
5143
5118
|
model: t.model,
|
|
5144
5119
|
apiKey: e.apiKey,
|
|
5145
5120
|
apiVersion: e.apiVersion,
|
|
@@ -5163,7 +5138,7 @@ function jo(e) {
|
|
|
5163
5138
|
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5164
5139
|
].filter(Boolean).join(" ");
|
|
5165
5140
|
}
|
|
5166
|
-
const [r, n] =
|
|
5141
|
+
const [r, n] = H(() => {
|
|
5167
5142
|
var f;
|
|
5168
5143
|
return (f = e.symbol) == null ? void 0 : f.content;
|
|
5169
5144
|
});
|
|
@@ -5179,7 +5154,7 @@ function jo(e) {
|
|
|
5179
5154
|
}, []), ee(() => {
|
|
5180
5155
|
i();
|
|
5181
5156
|
}, [e.symbol]), /* @__PURE__ */ p("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ p(
|
|
5182
|
-
|
|
5157
|
+
Er,
|
|
5183
5158
|
{
|
|
5184
5159
|
__isNestedRender: !0,
|
|
5185
5160
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5196,12 +5171,12 @@ function jo(e) {
|
|
|
5196
5171
|
}
|
|
5197
5172
|
) });
|
|
5198
5173
|
}
|
|
5199
|
-
const Po =
|
|
5174
|
+
const Po = fn, No = Er;
|
|
5200
5175
|
export {
|
|
5201
|
-
|
|
5202
|
-
|
|
5176
|
+
fn as Blocks,
|
|
5177
|
+
Xr as Button,
|
|
5203
5178
|
Fi as Columns,
|
|
5204
|
-
|
|
5179
|
+
Er as Content,
|
|
5205
5180
|
Ui as Fragment,
|
|
5206
5181
|
Wi as Image,
|
|
5207
5182
|
Po as RenderBlocks,
|
|
@@ -5211,16 +5186,16 @@ export {
|
|
|
5211
5186
|
ro as Text,
|
|
5212
5187
|
oo as Video,
|
|
5213
5188
|
Fo as _processContentResult,
|
|
5214
|
-
|
|
5189
|
+
Kr as createRegisterComponentMessage,
|
|
5215
5190
|
Uo as fetchBuilderProps,
|
|
5216
5191
|
_o as fetchEntries,
|
|
5217
|
-
|
|
5192
|
+
ur as fetchOneEntry,
|
|
5218
5193
|
Do as getAllContent,
|
|
5219
5194
|
Wo as getBuilderSearchParams,
|
|
5220
5195
|
Vo as getContent,
|
|
5221
5196
|
Ie as isEditing,
|
|
5222
|
-
|
|
5223
|
-
|
|
5197
|
+
Hr as isPreviewing,
|
|
5198
|
+
$r as register,
|
|
5224
5199
|
Lo as setEditorSettings,
|
|
5225
5200
|
$o as track
|
|
5226
5201
|
};
|