@builder.io/sdk-react-nextjs 0.16.8 → 0.16.9
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/blocks-exports.cjs +20 -20
- package/lib/browser/blocks-exports.mjs +295 -284
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/{node/server-entry-89b4c0d0.cjs → browser/server-entry-ed0910dd.cjs} +1 -1
- package/lib/browser/{server-entry-30b63436.js → server-entry-ff1eb217.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +28 -28
- package/lib/edge/blocks-exports.mjs +599 -588
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/{browser/server-entry-89b4c0d0.cjs → edge/server-entry-ed0910dd.cjs} +1 -1
- package/lib/{node/server-entry-30b63436.js → edge/server-entry-ff1eb217.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +20 -20
- package/lib/node/blocks-exports.mjs +292 -281
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-60abefbd.cjs → node-runtime-3b9a05b3.cjs} +1 -1
- package/lib/node/{node-runtime-c36924d7.js → node-runtime-606c2607.js} +1 -1
- package/lib/{edge/server-entry-89b4c0d0.cjs → node/server-entry-ed0910dd.cjs} +1 -1
- package/lib/{edge/server-entry-30b63436.js → node/server-entry-ff1eb217.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/cjs/blocks/slot/slot.d.ts +2 -2
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/esm/blocks/slot/slot.d.ts +2 -2
- package/types/esm/constants/sdk-version.d.ts +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var Kt = (e, t, n) => (
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { TARGET as je, isEditing as Ce, isBrowser as We, getUserAttributes as
|
|
2
|
+
var $r = Object.defineProperty;
|
|
3
|
+
var Hr = (e, t, n) => t in e ? $r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var Kt = (e, t, n) => (Hr(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as m, Fragment as K, jsxs as se } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as je, isEditing as Ce, isBrowser as We, getUserAttributes as Kr, logger as ot, checkIsDefined as yt, isPreviewing as cr, init as Gr, getDefaultCanTrack as vt, _track as Gn, createEditorListener as zr, fetch as Yr, registerInsertMenu as Xr, setupBrowserForEditing as Jr, createRegisterComponentMessage as qr, fetchOneEntry as ur, serializeIncludingFunctions as zn, handleABTestingSync as Zr } from "./server-entry-ff1eb217.js";
|
|
7
7
|
import "lru-cache";
|
|
8
|
-
import { useRef as bt, useEffect as Q, useState as ye, createContext as
|
|
9
|
-
import { useRouter as
|
|
10
|
-
const
|
|
8
|
+
import { useRef as bt, useEffect as Q, useState as ye, createContext as Qr } from "react";
|
|
9
|
+
import { useRouter as ei } from "next/navigation";
|
|
10
|
+
const ti = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ni = (e) => typeof e == "string" && ti.has(e.toLowerCase());
|
|
11
11
|
function Qt(e) {
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ m(K, { children: ni(e.TagName) ? /* @__PURE__ */ m(K, { children: /* @__PURE__ */ m(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ m(K, { children: typeof e.TagName == "string" ? /* @__PURE__ */ m(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ m(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
13
13
|
}
|
|
14
14
|
const nt = () => {
|
|
15
15
|
switch (je) {
|
|
@@ -25,7 +25,7 @@ const nt = () => {
|
|
|
25
25
|
return "class";
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
function
|
|
28
|
+
function ri(e) {
|
|
29
29
|
function t() {
|
|
30
30
|
return {
|
|
31
31
|
...e.attributes,
|
|
@@ -39,7 +39,7 @@ function ni(e) {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ m(
|
|
43
43
|
Qt,
|
|
44
44
|
{
|
|
45
45
|
attributes: t(),
|
|
@@ -49,20 +49,20 @@ function ni(e) {
|
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ii(e) {
|
|
53
53
|
var t;
|
|
54
54
|
return {
|
|
55
55
|
...(t = e.component) == null ? void 0 : t.options,
|
|
56
56
|
...e.options
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function oi(e, ...t) {
|
|
60
60
|
const n = Object.assign({}, e);
|
|
61
61
|
for (const r of t)
|
|
62
62
|
delete n[r];
|
|
63
63
|
return n;
|
|
64
64
|
}
|
|
65
|
-
const
|
|
65
|
+
const dr = ({
|
|
66
66
|
builder: e,
|
|
67
67
|
context: t,
|
|
68
68
|
event: n,
|
|
@@ -74,14 +74,14 @@ const ur = ({
|
|
|
74
74
|
builder: e,
|
|
75
75
|
context: t,
|
|
76
76
|
event: n
|
|
77
|
-
}),
|
|
77
|
+
}), ai = () => ({
|
|
78
78
|
isEditing: Ce(),
|
|
79
79
|
isBrowser: We(),
|
|
80
80
|
isServer: !We(),
|
|
81
|
-
getUserAttributes: () =>
|
|
82
|
-
}),
|
|
81
|
+
getUserAttributes: () => Kr()
|
|
82
|
+
}), si = (e, {
|
|
83
83
|
isExpression: t = !0
|
|
84
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
84
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, li = ({
|
|
85
85
|
code: e,
|
|
86
86
|
builder: t,
|
|
87
87
|
context: n,
|
|
@@ -90,11 +90,11 @@ const ur = ({
|
|
|
90
90
|
rootSetState: a,
|
|
91
91
|
rootState: s
|
|
92
92
|
}) => {
|
|
93
|
-
const u =
|
|
93
|
+
const u = dr({
|
|
94
94
|
builder: t,
|
|
95
95
|
context: n,
|
|
96
96
|
event: r,
|
|
97
|
-
state:
|
|
97
|
+
state: fr({
|
|
98
98
|
rootState: s,
|
|
99
99
|
localState: i,
|
|
100
100
|
rootSetState: a
|
|
@@ -102,7 +102,7 @@ const ur = ({
|
|
|
102
102
|
});
|
|
103
103
|
return new Function(...u.map(([f]) => f), e)(...u.map(([, f]) => f));
|
|
104
104
|
};
|
|
105
|
-
function
|
|
105
|
+
function fr({
|
|
106
106
|
rootState: e,
|
|
107
107
|
localState: t,
|
|
108
108
|
rootSetState: n
|
|
@@ -112,7 +112,7 @@ function dr({
|
|
|
112
112
|
if (t && i in t)
|
|
113
113
|
return t[i];
|
|
114
114
|
const a = r[i];
|
|
115
|
-
return typeof a == "object" && a !== null ?
|
|
115
|
+
return typeof a == "object" && a !== null ? fr({
|
|
116
116
|
rootState: a,
|
|
117
117
|
localState: void 0,
|
|
118
118
|
rootSetState: n ? (s) => {
|
|
@@ -127,31 +127,31 @@ function dr({
|
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
const
|
|
130
|
+
const hr = (e, t, n) => {
|
|
131
131
|
if (Object(e) !== e)
|
|
132
132
|
return e;
|
|
133
133
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
134
134
|
return r.slice(0, -1).reduce((i, a, s) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
135
135
|
};
|
|
136
|
-
var
|
|
136
|
+
var U, ci = function(e) {
|
|
137
137
|
function t(o) {
|
|
138
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
138
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Vr.test(String.fromCharCode(o));
|
|
139
139
|
}
|
|
140
140
|
function n(o) {
|
|
141
141
|
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Kn.test(String.fromCharCode(o));
|
|
142
142
|
}
|
|
143
143
|
function r(o, l) {
|
|
144
|
-
for (var c = S, h = 1,
|
|
145
|
-
pt.lastIndex =
|
|
144
|
+
for (var c = S, h = 1, R = 0; ; ) {
|
|
145
|
+
pt.lastIndex = R;
|
|
146
146
|
var Y = pt.exec(c);
|
|
147
147
|
if (Y && Y.index < o)
|
|
148
|
-
++h,
|
|
148
|
+
++h, R = Y.index + Y[0].length;
|
|
149
149
|
else
|
|
150
150
|
break;
|
|
151
151
|
}
|
|
152
152
|
throw c = {
|
|
153
153
|
line: h,
|
|
154
|
-
ab: o -
|
|
154
|
+
ab: o - R
|
|
155
155
|
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = o, l.X = c, l.o = d, l;
|
|
156
156
|
}
|
|
157
157
|
function i(o) {
|
|
@@ -166,7 +166,7 @@ var W, li = function(e) {
|
|
|
166
166
|
this.line = Te, this.ab = d - fe;
|
|
167
167
|
}
|
|
168
168
|
function s(o, l) {
|
|
169
|
-
Oe = d, O.C && (Ot = new a()),
|
|
169
|
+
Oe = d, O.C && (Ot = new a()), j = o, f(), ae = l, He = o.m;
|
|
170
170
|
}
|
|
171
171
|
function u() {
|
|
172
172
|
for (var o = d, l = O.va && O.C && new a(), c = S.charCodeAt(d += 2); d < Re && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
@@ -198,16 +198,16 @@ var W, li = function(e) {
|
|
|
198
198
|
break;
|
|
199
199
|
else if (o === 160)
|
|
200
200
|
++d;
|
|
201
|
-
else if (5760 <= o &&
|
|
201
|
+
else if (5760 <= o && Lr.test(String.fromCharCode(o)))
|
|
202
202
|
++d;
|
|
203
203
|
else
|
|
204
204
|
break;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function g(o) {
|
|
208
208
|
switch (o) {
|
|
209
209
|
case 46:
|
|
210
|
-
o = S.charCodeAt(d + 1), 48 <= o && 57 >= o ?
|
|
210
|
+
o = S.charCodeAt(d + 1), 48 <= o && 57 >= o ? W(!0) : (++d, s(Fn));
|
|
211
211
|
return;
|
|
212
212
|
case 40:
|
|
213
213
|
return ++d, s(he);
|
|
@@ -231,7 +231,7 @@ var W, li = function(e) {
|
|
|
231
231
|
return ++d, s(Wn);
|
|
232
232
|
case 48:
|
|
233
233
|
if (o = S.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
234
|
-
d += 2, o =
|
|
234
|
+
d += 2, o = N(16), o === null && r(z + 2, "Expected hexadecimal number"), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), s(Ge, o);
|
|
235
235
|
return;
|
|
236
236
|
}
|
|
237
237
|
case 49:
|
|
@@ -243,7 +243,7 @@ var W, li = function(e) {
|
|
|
243
243
|
case 55:
|
|
244
244
|
case 56:
|
|
245
245
|
case 57:
|
|
246
|
-
return
|
|
246
|
+
return W(!1);
|
|
247
247
|
case 34:
|
|
248
248
|
case 39:
|
|
249
249
|
d++;
|
|
@@ -271,13 +271,13 @@ var W, li = function(e) {
|
|
|
271
271
|
l += "\r";
|
|
272
272
|
break;
|
|
273
273
|
case 120:
|
|
274
|
-
l += String.fromCharCode(
|
|
274
|
+
l += String.fromCharCode(E(2));
|
|
275
275
|
break;
|
|
276
276
|
case 117:
|
|
277
|
-
l += String.fromCharCode(
|
|
277
|
+
l += String.fromCharCode(E(4));
|
|
278
278
|
break;
|
|
279
279
|
case 85:
|
|
280
|
-
l += String.fromCharCode(
|
|
280
|
+
l += String.fromCharCode(E(8));
|
|
281
281
|
break;
|
|
282
282
|
case 116:
|
|
283
283
|
l += " ";
|
|
@@ -307,30 +307,30 @@ var W, li = function(e) {
|
|
|
307
307
|
}
|
|
308
308
|
return;
|
|
309
309
|
case 47:
|
|
310
|
-
o = S.charCodeAt(d + 1), He ? (++d,
|
|
310
|
+
o = S.charCodeAt(d + 1), He ? (++d, F()) : o === 61 ? v(Ae, 2) : v(Un, 1);
|
|
311
311
|
return;
|
|
312
312
|
case 37:
|
|
313
313
|
case 42:
|
|
314
|
-
S.charCodeAt(d + 1) === 61 ? v(Ae, 2) : v(
|
|
314
|
+
S.charCodeAt(d + 1) === 61 ? v(Ae, 2) : v(Fr, 1);
|
|
315
315
|
return;
|
|
316
316
|
case 124:
|
|
317
317
|
case 38:
|
|
318
|
-
l = S.charCodeAt(d + 1), l === o ? v(o === 124 ? _n : $n, 2) : l === 61 ? v(Ae, 2) : v(o === 124 ?
|
|
318
|
+
l = S.charCodeAt(d + 1), l === o ? v(o === 124 ? _n : $n, 2) : l === 61 ? v(Ae, 2) : v(o === 124 ? Rr : Pr, 1);
|
|
319
319
|
return;
|
|
320
320
|
case 94:
|
|
321
|
-
S.charCodeAt(d + 1) === 61 ? v(Ae, 2) : v(
|
|
321
|
+
S.charCodeAt(d + 1) === 61 ? v(Ae, 2) : v(Or, 1);
|
|
322
322
|
return;
|
|
323
323
|
case 43:
|
|
324
324
|
case 45:
|
|
325
|
-
l = S.charCodeAt(d + 1), l === o ? l === 45 && S.charCodeAt(d + 2) === 62 && ht.test(S.slice(Se, d)) ? (d += 3, u(), f(), b()) : v(
|
|
325
|
+
l = S.charCodeAt(d + 1), l === o ? l === 45 && S.charCodeAt(d + 2) === 62 && ht.test(S.slice(Se, d)) ? (d += 3, u(), f(), b()) : v(jr, 2) : l === 61 ? v(Ae, 2) : v(Dr, 1);
|
|
326
326
|
return;
|
|
327
327
|
case 60:
|
|
328
328
|
case 62:
|
|
329
|
-
l = S.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && S.charCodeAt(d + 2) === 62 ? 3 : 2, S.charCodeAt(d + c) === 61 ? v(Ae, c + 1) : v(
|
|
329
|
+
l = S.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && S.charCodeAt(d + 2) === 62 ? 3 : 2, S.charCodeAt(d + c) === 61 ? v(Ae, c + 1) : v(Mr, c)) : l === 33 && o === 60 && S.charCodeAt(d + 2) === 45 && S.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), b()) : (l === 61 && (c = S.charCodeAt(d + 2) === 61 ? 3 : 2), v(Br, c));
|
|
330
330
|
return;
|
|
331
331
|
case 61:
|
|
332
332
|
case 33:
|
|
333
|
-
S.charCodeAt(d + 1) === 61 ? v(
|
|
333
|
+
S.charCodeAt(d + 1) === 61 ? v(Nr, S.charCodeAt(d + 2) === 61 ? 3 : 2) : v(o === 61 ? Ln : Vn, 1);
|
|
334
334
|
return;
|
|
335
335
|
case 126:
|
|
336
336
|
return v(Vn, 1);
|
|
@@ -339,14 +339,14 @@ var W, li = function(e) {
|
|
|
339
339
|
}
|
|
340
340
|
function b(o) {
|
|
341
341
|
if (o ? d = z + 1 : z = d, O.C && (Rt = new a()), o)
|
|
342
|
-
return
|
|
342
|
+
return F();
|
|
343
343
|
if (d >= Re)
|
|
344
344
|
return s(Bt);
|
|
345
345
|
if (o = S.charCodeAt(d), n(o) || o === 92)
|
|
346
|
-
return
|
|
347
|
-
if (
|
|
346
|
+
return I();
|
|
347
|
+
if (g(o) === !1) {
|
|
348
348
|
if (o = String.fromCharCode(o), o === "\\" || Kn.test(o))
|
|
349
|
-
return
|
|
349
|
+
return I();
|
|
350
350
|
r(d, "Unexpected character '" + o + "'");
|
|
351
351
|
}
|
|
352
352
|
}
|
|
@@ -354,7 +354,7 @@ var W, li = function(e) {
|
|
|
354
354
|
var c = S.slice(d, d + l);
|
|
355
355
|
d += l, s(o, c);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function F() {
|
|
358
358
|
for (var o, l, c = d; ; ) {
|
|
359
359
|
d >= Re && r(c, "Unterminated regexp");
|
|
360
360
|
var h = S.charAt(d);
|
|
@@ -371,16 +371,16 @@ var W, li = function(e) {
|
|
|
371
371
|
}
|
|
372
372
|
++d;
|
|
373
373
|
}
|
|
374
|
-
o = S.slice(c, d), ++d, (l =
|
|
374
|
+
o = S.slice(c, d), ++d, (l = M()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
375
375
|
try {
|
|
376
|
-
var
|
|
376
|
+
var R = new RegExp(o, l);
|
|
377
377
|
} catch (Y) {
|
|
378
378
|
throw Y instanceof SyntaxError && r(c, Y.message), Y;
|
|
379
379
|
}
|
|
380
|
-
s(vn,
|
|
380
|
+
s(vn, R);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
for (var c = d, h = 0,
|
|
382
|
+
function N(o, l) {
|
|
383
|
+
for (var c = d, h = 0, R = l === void 0 ? 1 / 0 : l, Y = 0; Y < R; ++Y) {
|
|
384
384
|
var te = S.charCodeAt(d);
|
|
385
385
|
if (te = 97 <= te ? te - 97 + 10 : 65 <= te ? te - 65 + 10 : 48 <= te && 57 >= te ? te - 48 : 1 / 0, te >= o)
|
|
386
386
|
break;
|
|
@@ -388,34 +388,34 @@ var W, li = function(e) {
|
|
|
388
388
|
}
|
|
389
389
|
return d === c || l !== void 0 && d - c !== l ? null : h;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function W(o) {
|
|
392
392
|
var l = d, c = !1, h = S.charCodeAt(d) === 48;
|
|
393
|
-
o ||
|
|
394
|
-
var
|
|
395
|
-
c ?
|
|
393
|
+
o || N(10) !== null || r(l, "Invalid number"), S.charCodeAt(d) === 46 && (++d, N(10), c = !0), o = S.charCodeAt(d), (o === 69 || o === 101) && (o = S.charCodeAt(++d), o !== 43 && o !== 45 || ++d, N(10) === null && r(l, "Invalid number"), c = !0), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), o = S.slice(l, d);
|
|
394
|
+
var R;
|
|
395
|
+
c ? R = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || ie ? r(l, "Invalid number") : R = parseInt(o, 8) : R = parseInt(o, 10), s(Ge, R);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
return o =
|
|
397
|
+
function E(o) {
|
|
398
|
+
return o = N(16, o), o === null && r(z, "Bad character escape sequence"), o;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function M() {
|
|
401
401
|
Be = !1;
|
|
402
402
|
for (var o, l = !0, c = d; ; ) {
|
|
403
403
|
var h = S.charCodeAt(d);
|
|
404
404
|
if (t(h))
|
|
405
405
|
Be && (o += S.charAt(d)), ++d;
|
|
406
406
|
else if (h === 92) {
|
|
407
|
-
Be || (o = S.slice(c, d)), Be = !0, S.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h =
|
|
408
|
-
var
|
|
409
|
-
|
|
407
|
+
Be || (o = S.slice(c, d)), Be = !0, S.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = E(4);
|
|
408
|
+
var R = String.fromCharCode(h);
|
|
409
|
+
R || r(d - 1, "Invalid Unicode escape"), (l ? n(h) : t(h)) || r(d - 4, "Invalid Unicode escape"), o += R;
|
|
410
410
|
} else
|
|
411
411
|
break;
|
|
412
412
|
l = !1;
|
|
413
413
|
}
|
|
414
414
|
return Be ? o : S.slice(c, d);
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
var o =
|
|
418
|
-
!Be &&
|
|
416
|
+
function I() {
|
|
417
|
+
var o = M(), l = Pe;
|
|
418
|
+
!Be && Ur(o) && (l = Ar[o]), s(l, o);
|
|
419
419
|
}
|
|
420
420
|
function y() {
|
|
421
421
|
Pt = z, Se = Oe, Nt = Ot, b();
|
|
@@ -441,23 +441,23 @@ var W, li = function(e) {
|
|
|
441
441
|
var l = new G();
|
|
442
442
|
return l.start = o.start, O.C && (l.X = new oe(), l.X.start = o.X.start), O.Xa && (l.j = [o.j[0], 0]), l;
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function T(o, l) {
|
|
445
445
|
return o.type = l, o.end = Se, O.C && (o.X.end = Nt), O.Xa && (o.j[1] = Se), o;
|
|
446
446
|
}
|
|
447
447
|
function Ee(o) {
|
|
448
448
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
449
449
|
}
|
|
450
450
|
function _(o) {
|
|
451
|
-
return
|
|
451
|
+
return j === o ? (y(), !0) : !1;
|
|
452
452
|
}
|
|
453
453
|
function Ie() {
|
|
454
|
-
return !O.fc && (
|
|
454
|
+
return !O.fc && (j === Bt || j === Ne || ht.test(S.slice(Se, z)));
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function A() {
|
|
457
457
|
_(pe) || Ie() || B();
|
|
458
458
|
}
|
|
459
459
|
function x(o) {
|
|
460
|
-
|
|
460
|
+
j === o ? y() : B();
|
|
461
461
|
}
|
|
462
462
|
function B() {
|
|
463
463
|
r(z, "Unexpected token");
|
|
@@ -465,61 +465,61 @@ var W, li = function(e) {
|
|
|
465
465
|
function L(o) {
|
|
466
466
|
o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"), ie && o.type === "Identifier" && ft(o.name) && r(o.start, "Assigning to " + o.name + " in strict mode");
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
(
|
|
470
|
-
var o =
|
|
468
|
+
function D() {
|
|
469
|
+
(j === Un || j === Ae && ae === "/=") && b(!0);
|
|
470
|
+
var o = j, l = $();
|
|
471
471
|
switch (o) {
|
|
472
472
|
case Mt:
|
|
473
473
|
case xn:
|
|
474
474
|
y();
|
|
475
475
|
var c = o === Mt;
|
|
476
|
-
_(pe) || Ie() ? l.label = null :
|
|
476
|
+
_(pe) || Ie() ? l.label = null : j !== Pe ? B() : (l.label = de(), A());
|
|
477
477
|
for (var h = 0; h < H.length; ++h) {
|
|
478
|
-
var
|
|
479
|
-
if ((l.label === null ||
|
|
478
|
+
var R = H[h];
|
|
479
|
+
if ((l.label === null || R.name === l.label.name) && (R.kind !== null && (c || R.kind === "loop") || l.label && c))
|
|
480
480
|
break;
|
|
481
481
|
}
|
|
482
|
-
return h === H.length && r(l.start, "Unsyntactic " + o.l),
|
|
482
|
+
return h === H.length && r(l.start, "Unsyntactic " + o.l), T(l, c ? "BreakStatement" : "ContinueStatement");
|
|
483
483
|
case Sn:
|
|
484
|
-
return y(),
|
|
484
|
+
return y(), A(), T(l, "DebuggerStatement");
|
|
485
485
|
case Cn:
|
|
486
|
-
return y(), H.push($t), l.body =
|
|
486
|
+
return y(), H.push($t), l.body = D(), H.pop(), x(Lt), l.test = J(), A(), T(l, "DoWhileStatement");
|
|
487
487
|
case In:
|
|
488
|
-
return y(), H.push($t), x(he),
|
|
488
|
+
return y(), H.push($t), x(he), j === pe ? ce(l, null) : j === Ut ? (o = $(), y(), gn(o, !0), T(o, "VariableDeclaration"), o.fa.length === 1 && _(dt) ? lt(l, o) : ce(l, o)) : (o = Z(!1, !0), _(dt) ? (L(o), lt(l, o)) : ce(l, o));
|
|
489
489
|
case Ft:
|
|
490
490
|
return y(), Tt(l, !0);
|
|
491
491
|
case Tn:
|
|
492
|
-
return y(), l.test = J(), l.da =
|
|
492
|
+
return y(), l.test = J(), l.da = D(), l.alternate = _(wn) ? D() : null, T(l, "IfStatement");
|
|
493
493
|
case An:
|
|
494
|
-
return Ke || O.Ib || r(z, "'return' outside of function"), y(), _(pe) || Ie() ? l.K = null : (l.K = Z(),
|
|
494
|
+
return Ke || O.Ib || r(z, "'return' outside of function"), y(), _(pe) || Ie() ? l.K = null : (l.K = Z(), A()), T(l, "ReturnStatement");
|
|
495
495
|
case Wt:
|
|
496
|
-
for (y(), l.Qb = J(), l.tb = [], x(ze), H.push(
|
|
497
|
-
|
|
498
|
-
return h &&
|
|
496
|
+
for (y(), l.Qb = J(), l.tb = [], x(ze), H.push(_r); j !== Ne; )
|
|
497
|
+
j === Dt || j === kn ? (o = j === Dt, h && T(h, "SwitchCase"), l.tb.push(h = $()), h.da = [], y(), o ? h.test = Z() : (c && r(Pt, "Multiple default clauses"), c = !0, h.test = null), x(Ye)) : (h || B(), h.da.push(D()));
|
|
498
|
+
return h && T(h, "SwitchCase"), y(), H.pop(), T(l, "SwitchStatement");
|
|
499
499
|
case jn:
|
|
500
|
-
return y(), ht.test(S.slice(Se, z)) && r(Se, "Illegal newline after throw"), l.K = Z(),
|
|
500
|
+
return y(), ht.test(S.slice(Se, z)) && r(Se, "Illegal newline after throw"), l.K = Z(), A(), T(l, "ThrowStatement");
|
|
501
501
|
case Rn:
|
|
502
|
-
return y(), l.block = le(), l.Ea = null,
|
|
502
|
+
return y(), l.block = le(), l.Ea = null, j === bn && (o = $(), y(), x(he), o.Ua = de(), ie && ft(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), x(ue), o.body = le(), l.Ea = T(o, "CatchClause")), l.fb = _(En) ? le() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
503
503
|
case Ut:
|
|
504
|
-
return y(), gn(l),
|
|
504
|
+
return y(), gn(l), A(), T(l, "VariableDeclaration");
|
|
505
505
|
case Lt:
|
|
506
|
-
return y(), l.test = J(), H.push($t), l.body =
|
|
506
|
+
return y(), l.test = J(), H.push($t), l.body = D(), H.pop(), T(l, "WhileStatement");
|
|
507
507
|
case On:
|
|
508
|
-
return ie && r(z, "'with' in strict mode"), y(), l.object = J(), l.body =
|
|
508
|
+
return ie && r(z, "'with' in strict mode"), y(), l.object = J(), l.body = D(), T(l, "WithStatement");
|
|
509
509
|
case ze:
|
|
510
510
|
return le();
|
|
511
511
|
case pe:
|
|
512
|
-
return y(),
|
|
512
|
+
return y(), T(l, "EmptyStatement");
|
|
513
513
|
default:
|
|
514
|
-
if (c = ae,
|
|
514
|
+
if (c = ae, R = Z(), o === Pe && R.type === "Identifier" && _(Ye)) {
|
|
515
515
|
for (h = 0; h < H.length; ++h)
|
|
516
|
-
H[h].name === c && r(
|
|
516
|
+
H[h].name === c && r(R.start, "Label '" + c + "' is already declared");
|
|
517
517
|
return H.push({
|
|
518
518
|
name: c,
|
|
519
|
-
kind:
|
|
520
|
-
}), l.body =
|
|
519
|
+
kind: j.W ? "loop" : j === Wt ? "switch" : null
|
|
520
|
+
}), l.body = D(), H.pop(), l.label = R, T(l, "LabeledStatement");
|
|
521
521
|
}
|
|
522
|
-
return l.la =
|
|
522
|
+
return l.la = R, A(), T(l, "ExpressionStatement");
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
function J() {
|
|
@@ -530,34 +530,34 @@ var W, li = function(e) {
|
|
|
530
530
|
function le(o) {
|
|
531
531
|
var l = $(), c = !0, h = !1;
|
|
532
532
|
for (l.body = [], x(ze); !_(Ne); ) {
|
|
533
|
-
var
|
|
534
|
-
if (l.body.push(
|
|
533
|
+
var R = D();
|
|
534
|
+
if (l.body.push(R), c && o && Ee(R)) {
|
|
535
535
|
var Y = h;
|
|
536
536
|
V(h = !0);
|
|
537
537
|
}
|
|
538
538
|
c = !1;
|
|
539
539
|
}
|
|
540
|
-
return h && !Y && V(!1),
|
|
540
|
+
return h && !Y && V(!1), T(l, "BlockStatement");
|
|
541
541
|
}
|
|
542
542
|
function ce(o, l) {
|
|
543
|
-
return o.ua = l, x(pe), o.test =
|
|
543
|
+
return o.ua = l, x(pe), o.test = j === pe ? null : Z(), x(pe), o.update = j === ue ? null : Z(), x(ue), o.body = D(), H.pop(), T(o, "ForStatement");
|
|
544
544
|
}
|
|
545
545
|
function lt(o, l) {
|
|
546
|
-
return o.left = l, o.right = Z(), x(ue), o.body =
|
|
546
|
+
return o.left = l, o.right = Z(), x(ue), o.body = D(), H.pop(), T(o, "ForInStatement");
|
|
547
547
|
}
|
|
548
548
|
function gn(o, l) {
|
|
549
549
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
550
550
|
var c = $();
|
|
551
|
-
if (c.id = de(), ie && ft(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = _(Ln) ? Z(!0, l) : null, o.fa.push(
|
|
551
|
+
if (c.id = de(), ie && ft(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = _(Ln) ? Z(!0, l) : null, o.fa.push(T(c, "VariableDeclarator")), !_(ke))
|
|
552
552
|
break;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
function Z(o, l) {
|
|
556
556
|
var c = wt(l);
|
|
557
|
-
if (!o &&
|
|
557
|
+
if (!o && j === ke) {
|
|
558
558
|
for (o = ee(c), o.xb = [c]; _(ke); )
|
|
559
559
|
o.xb.push(wt(l));
|
|
560
|
-
return
|
|
560
|
+
return T(o, "SequenceExpression");
|
|
561
561
|
}
|
|
562
562
|
return c;
|
|
563
563
|
}
|
|
@@ -565,49 +565,49 @@ var W, li = function(e) {
|
|
|
565
565
|
var l = Et(It(), -1, o);
|
|
566
566
|
if (_(Wn)) {
|
|
567
567
|
var c = ee(l);
|
|
568
|
-
c.test = l, c.da = Z(!0), x(Ye), c.alternate = Z(!0, o), l =
|
|
568
|
+
c.test = l, c.da = Z(!0), x(Ye), c.alternate = Z(!0, o), l = T(c, "ConditionalExpression");
|
|
569
569
|
}
|
|
570
|
-
return
|
|
570
|
+
return j.Cb ? (c = ee(l), c.operator = ae, c.left = l, y(), c.right = wt(o), L(l), T(c, "AssignmentExpression")) : l;
|
|
571
571
|
}
|
|
572
572
|
function Et(o, l, c) {
|
|
573
|
-
var h =
|
|
574
|
-
if (h !== null && (!c ||
|
|
575
|
-
var
|
|
576
|
-
return
|
|
573
|
+
var h = j.L;
|
|
574
|
+
if (h !== null && (!c || j !== dt) && h > l) {
|
|
575
|
+
var R = ee(o);
|
|
576
|
+
return R.left = o, R.operator = ae, o = j, y(), R.right = Et(It(), h, c), h = T(R, o === _n || o === $n ? "LogicalExpression" : "BinaryExpression"), Et(h, l, c);
|
|
577
577
|
}
|
|
578
578
|
return o;
|
|
579
579
|
}
|
|
580
580
|
function It() {
|
|
581
|
-
if (
|
|
582
|
-
var o = $(), l =
|
|
583
|
-
return o.operator = ae, He = o.prefix = !0, y(), o.K = It(), l ? L(o.K) : ie && o.operator === "delete" && o.K.type === "Identifier" && r(o.start, "Deleting local variable in strict mode"),
|
|
581
|
+
if (j.prefix) {
|
|
582
|
+
var o = $(), l = j.$b;
|
|
583
|
+
return o.operator = ae, He = o.prefix = !0, y(), o.K = It(), l ? L(o.K) : ie && o.operator === "delete" && o.K.type === "Identifier" && r(o.start, "Deleting local variable in strict mode"), T(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
584
584
|
}
|
|
585
|
-
for (l = $e(ct());
|
|
586
|
-
o = ee(l), o.operator = ae, o.prefix = !1, o.K = l, L(l), y(), l =
|
|
585
|
+
for (l = $e(ct()); j.cc && !Ie(); )
|
|
586
|
+
o = ee(l), o.operator = ae, o.prefix = !1, o.K = l, L(l), y(), l = T(o, "UpdateExpression");
|
|
587
587
|
return l;
|
|
588
588
|
}
|
|
589
589
|
function $e(o, l) {
|
|
590
590
|
if (_(Fn)) {
|
|
591
591
|
var c = ee(o);
|
|
592
|
-
return c.object = o, c.Wa = de(!0), c.bb = !1, $e(
|
|
592
|
+
return c.object = o, c.Wa = de(!0), c.bb = !1, $e(T(c, "MemberExpression"), l);
|
|
593
593
|
}
|
|
594
|
-
return _(Vt) ? (c = ee(o), c.object = o, c.Wa = Z(), c.bb = !0, x(_t), $e(
|
|
594
|
+
return _(Vt) ? (c = ee(o), c.object = o, c.Wa = Z(), c.bb = !0, x(_t), $e(T(c, "MemberExpression"), l)) : !l && _(he) ? (c = ee(o), c.callee = o, c.arguments = At(ue, !1), $e(T(c, "CallExpression"), l)) : o;
|
|
595
595
|
}
|
|
596
596
|
function ct() {
|
|
597
|
-
switch (
|
|
597
|
+
switch (j) {
|
|
598
598
|
case Nn:
|
|
599
599
|
var o = $();
|
|
600
|
-
return y(),
|
|
600
|
+
return y(), T(o, "ThisExpression");
|
|
601
601
|
case Pe:
|
|
602
602
|
return de();
|
|
603
603
|
case Ge:
|
|
604
604
|
case ut:
|
|
605
605
|
case vn:
|
|
606
|
-
return o = $(), o.value = ae, o.raw = S.slice(z, Oe), y(),
|
|
606
|
+
return o = $(), o.value = ae, o.raw = S.slice(z, Oe), y(), T(o, "Literal");
|
|
607
607
|
case Bn:
|
|
608
608
|
case Mn:
|
|
609
609
|
case Dn:
|
|
610
|
-
return o = $(), o.value =
|
|
610
|
+
return o = $(), o.value = j.$a, o.raw = j.l, y(), T(o, "Literal");
|
|
611
611
|
case he:
|
|
612
612
|
o = Rt;
|
|
613
613
|
var l = z;
|
|
@@ -615,7 +615,7 @@ var W, li = function(e) {
|
|
|
615
615
|
var c = Z();
|
|
616
616
|
return c.start = l, c.end = Oe, O.C && (c.X.start = o, c.X.end = Ot), O.Xa && (c.j = [l, Oe]), x(ue), c;
|
|
617
617
|
case Vt:
|
|
618
|
-
return o = $(), y(), o.elements = At(_t, !0, !0),
|
|
618
|
+
return o = $(), y(), o.elements = At(_t, !0, !0), T(o, "ArrayExpression");
|
|
619
619
|
case ze:
|
|
620
620
|
for (o = $(), l = !0, c = !1, o.h = [], y(); !_(Ne); ) {
|
|
621
621
|
if (l)
|
|
@@ -623,33 +623,33 @@ var W, li = function(e) {
|
|
|
623
623
|
else if (x(ke), O.sb && _(Ne))
|
|
624
624
|
break;
|
|
625
625
|
var h = {
|
|
626
|
-
key:
|
|
627
|
-
},
|
|
626
|
+
key: j === Ge || j === ut ? ct() : de(!0)
|
|
627
|
+
}, R = !1;
|
|
628
628
|
if (_(Ye)) {
|
|
629
629
|
h.value = Z(!0);
|
|
630
630
|
var Y = h.kind = "init";
|
|
631
631
|
} else
|
|
632
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? B() : (
|
|
632
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? B() : (R = c = !0, Y = h.kind = h.key.name, h.key = j === Ge || j === ut ? ct() : de(!0), j !== he && B(), h.value = Tt($(), !1));
|
|
633
633
|
if (h.key.type === "Identifier" && (ie || c))
|
|
634
634
|
for (var te = 0; te < o.h.length; ++te) {
|
|
635
635
|
var Me = o.h[te];
|
|
636
636
|
if (Me.key.name === h.key.name) {
|
|
637
|
-
var Ht = Y === Me.kind ||
|
|
637
|
+
var Ht = Y === Me.kind || R && Me.kind === "init" || Y === "init" && (Me.kind === "get" || Me.kind === "set");
|
|
638
638
|
Ht && !ie && Y === "init" && Me.kind === "init" && (Ht = !1), Ht && r(h.key.start, "Redefinition of property");
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
o.h.push(h);
|
|
642
642
|
}
|
|
643
|
-
return
|
|
643
|
+
return T(o, "ObjectExpression");
|
|
644
644
|
case Ft:
|
|
645
645
|
return o = $(), y(), Tt(o, !1);
|
|
646
646
|
case Pn:
|
|
647
|
-
return o = $(), y(), o.callee = $e(ct(), !0), o.arguments = _(he) ? At(ue, !1) :
|
|
647
|
+
return o = $(), y(), o.callee = $e(ct(), !0), o.arguments = _(he) ? At(ue, !1) : Tr, T(o, "NewExpression");
|
|
648
648
|
}
|
|
649
649
|
B();
|
|
650
650
|
}
|
|
651
651
|
function Tt(o, l) {
|
|
652
|
-
|
|
652
|
+
j === Pe ? o.id = de() : l ? B() : o.id = null, o.oa = [];
|
|
653
653
|
var c = !0;
|
|
654
654
|
for (x(he); !_(ue); )
|
|
655
655
|
c ? c = !1 : x(ke), o.oa.push(de());
|
|
@@ -658,24 +658,24 @@ var W, li = function(e) {
|
|
|
658
658
|
if (Ke = !0, H = [], o.body = le(!0), Ke = c, H = h, ie || o.body.body.length && Ee(o.body.body[0])) {
|
|
659
659
|
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
660
660
|
if (h = 0 > c ? o.id : o.oa[c], (Hn(h.name) || ft(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
661
|
-
for (var
|
|
662
|
-
h.name === o.oa[
|
|
661
|
+
for (var R = 0; R < c; ++R)
|
|
662
|
+
h.name === o.oa[R].name && r(h.start, "Argument name clash in strict mode");
|
|
663
663
|
}
|
|
664
|
-
return
|
|
664
|
+
return T(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
665
665
|
}
|
|
666
666
|
function At(o, l, c) {
|
|
667
|
-
for (var h = [],
|
|
668
|
-
if (
|
|
669
|
-
|
|
667
|
+
for (var h = [], R = !0; !_(o); ) {
|
|
668
|
+
if (R)
|
|
669
|
+
R = !1;
|
|
670
670
|
else if (x(ke), l && O.sb && _(o))
|
|
671
671
|
break;
|
|
672
|
-
h.push(c &&
|
|
672
|
+
h.push(c && j === ke ? null : Z(!0));
|
|
673
673
|
}
|
|
674
674
|
return h;
|
|
675
675
|
}
|
|
676
676
|
function de(o) {
|
|
677
677
|
var l = $();
|
|
678
|
-
return o && O.yb === "everywhere" && (o = !1),
|
|
678
|
+
return o && O.yb === "everywhere" && (o = !1), j === Pe ? (!o && (O.yb && Wr(ae) || ie && Hn(ae)) && S.slice(z, Oe).indexOf("\\") === -1 && r(z, "The keyword '" + ae + "' is reserved"), l.name = ae) : o && j.l ? l.name = j.l : B(), He = !1, y(), T(l, "Identifier");
|
|
679
679
|
}
|
|
680
680
|
e.version = "0.5.0";
|
|
681
681
|
var O, S = "", Re, jt;
|
|
@@ -683,9 +683,9 @@ var W, li = function(e) {
|
|
|
683
683
|
S = String(o), Re = S.length, O = l || {};
|
|
684
684
|
for (var c in yn)
|
|
685
685
|
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = yn[c]);
|
|
686
|
-
for (jt = O.sourceFile, Te = 1, d = fe = 0, He = !0, f(), c = O.dc, Pt = Se = d, O.C && (Nt = new a()), Ke = ie = !1, H = [], b(), o = c || $(), l = !0, c || (o.body = []);
|
|
687
|
-
c =
|
|
688
|
-
return
|
|
686
|
+
for (jt = O.sourceFile, Te = 1, d = fe = 0, He = !0, f(), c = O.dc, Pt = Se = d, O.C && (Nt = new a()), Ke = ie = !1, H = [], b(), o = c || $(), l = !0, c || (o.body = []); j !== Bt; )
|
|
687
|
+
c = D(), o.body.push(c), l && Ee(c) && V(!0), l = !1;
|
|
688
|
+
return T(o, "Program");
|
|
689
689
|
};
|
|
690
690
|
var yn = {
|
|
691
691
|
fc: !1,
|
|
@@ -698,7 +698,7 @@ var W, li = function(e) {
|
|
|
698
698
|
dc: null,
|
|
699
699
|
sourceFile: null,
|
|
700
700
|
vb: null
|
|
701
|
-
}, d = 0, z = 0, Oe = 0, Rt, Ot,
|
|
701
|
+
}, d = 0, z = 0, Oe = 0, Rt, Ot, j, ae, He, Te, fe, Pt = 0, Se = 0, Nt, Ke, H, ie, Tr = [], Ge = {
|
|
702
702
|
type: "num"
|
|
703
703
|
}, vn = {
|
|
704
704
|
type: "regexp"
|
|
@@ -771,7 +771,7 @@ var W, li = function(e) {
|
|
|
771
771
|
l: "in",
|
|
772
772
|
L: 7,
|
|
773
773
|
m: !0
|
|
774
|
-
},
|
|
774
|
+
}, Ar = {
|
|
775
775
|
break: Mt,
|
|
776
776
|
case: Dt,
|
|
777
777
|
catch: bn,
|
|
@@ -855,7 +855,7 @@ var W, li = function(e) {
|
|
|
855
855
|
}, Ae = {
|
|
856
856
|
Cb: !0,
|
|
857
857
|
m: !0
|
|
858
|
-
},
|
|
858
|
+
}, jr = {
|
|
859
859
|
cc: !0,
|
|
860
860
|
prefix: !0,
|
|
861
861
|
$b: !0
|
|
@@ -868,38 +868,38 @@ var W, li = function(e) {
|
|
|
868
868
|
}, $n = {
|
|
869
869
|
L: 2,
|
|
870
870
|
m: !0
|
|
871
|
-
},
|
|
871
|
+
}, Rr = {
|
|
872
872
|
L: 3,
|
|
873
873
|
m: !0
|
|
874
|
-
},
|
|
874
|
+
}, Or = {
|
|
875
875
|
L: 4,
|
|
876
876
|
m: !0
|
|
877
|
-
},
|
|
877
|
+
}, Pr = {
|
|
878
878
|
L: 5,
|
|
879
879
|
m: !0
|
|
880
|
-
},
|
|
880
|
+
}, Nr = {
|
|
881
881
|
L: 6,
|
|
882
882
|
m: !0
|
|
883
|
-
},
|
|
883
|
+
}, Br = {
|
|
884
884
|
L: 7,
|
|
885
885
|
m: !0
|
|
886
|
-
},
|
|
886
|
+
}, Mr = {
|
|
887
887
|
L: 8,
|
|
888
888
|
m: !0
|
|
889
|
-
},
|
|
889
|
+
}, Dr = {
|
|
890
890
|
L: 9,
|
|
891
891
|
prefix: !0,
|
|
892
892
|
m: !0
|
|
893
|
-
},
|
|
893
|
+
}, Fr = {
|
|
894
894
|
L: 10,
|
|
895
895
|
m: !0
|
|
896
|
-
},
|
|
896
|
+
}, Wr = i("class enum extends super const export import"), Hn = i("implements interface let package private protected public static yield"), ft = i("eval arguments"), Ur = 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"), Lr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Kn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Vr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ht = /[\n\r\u2028\u2029]/, pt = /\r\n|[\n\r\u2028\u2029]/g, Be, $t = {
|
|
897
897
|
kind: "loop"
|
|
898
|
-
},
|
|
898
|
+
}, _r = {
|
|
899
899
|
kind: "switch"
|
|
900
900
|
};
|
|
901
901
|
}, Yt = Yt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
902
|
-
|
|
902
|
+
ci(Yt.j || (Yt.j = {}));
|
|
903
903
|
function p(e, t) {
|
|
904
904
|
typeof e == "string" && (e = Ue(e, "code"));
|
|
905
905
|
var n = e.constructor;
|
|
@@ -941,7 +941,7 @@ var Yn = {
|
|
|
941
941
|
configurable: !1,
|
|
942
942
|
enumerable: !0,
|
|
943
943
|
writable: !0
|
|
944
|
-
},
|
|
944
|
+
}, pr = {
|
|
945
945
|
STEP_ERROR: !0
|
|
946
946
|
}, _e = {
|
|
947
947
|
SCOPE_REFERENCE: !0
|
|
@@ -949,7 +949,7 @@ var Yn = {
|
|
|
949
949
|
VALUE_IN_DESCRIPTOR: !0
|
|
950
950
|
}, De = {
|
|
951
951
|
REGEXP_TIMEOUT: !0
|
|
952
|
-
}, Jn = [], ve = null, et = null, we = typeof globalThis == "undefined" ? void 0 : globalThis,
|
|
952
|
+
}, Jn = [], ve = null, et = null, we = typeof globalThis == "undefined" ? void 0 : globalThis, ui = ["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();", "};"];
|
|
953
953
|
function tn(e) {
|
|
954
954
|
var t = e >>> 0;
|
|
955
955
|
return t === Number(e) ? t : NaN;
|
|
@@ -969,18 +969,18 @@ function xt(e, t, n) {
|
|
|
969
969
|
p.prototype.REGEXP_MODE = 2;
|
|
970
970
|
p.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
971
971
|
p.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
972
|
+
U = p.prototype;
|
|
973
|
+
U.P = !1;
|
|
974
|
+
U.Ka = !1;
|
|
975
|
+
U.Kb = 0;
|
|
976
|
+
U.ic = 0;
|
|
977
977
|
function Ue(e, t) {
|
|
978
978
|
var n = {}, r;
|
|
979
979
|
for (r in Yn)
|
|
980
980
|
n[r] = Yn[r];
|
|
981
981
|
return n.sourceFile = t, we.j.parse(e, n);
|
|
982
982
|
}
|
|
983
|
-
|
|
983
|
+
U.Jb = function(e) {
|
|
984
984
|
var t = this.o[0];
|
|
985
985
|
if (!t || t.node.type !== "Program")
|
|
986
986
|
throw Error("Expecting original AST to start with a Program node");
|
|
@@ -988,7 +988,7 @@ W.Jb = function(e) {
|
|
|
988
988
|
throw Error("Expecting new AST to start with a Program node");
|
|
989
989
|
it(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
990
990
|
};
|
|
991
|
-
|
|
991
|
+
U.lb = function() {
|
|
992
992
|
var e = this.o, t;
|
|
993
993
|
do {
|
|
994
994
|
var n = e[e.length - 1];
|
|
@@ -1000,7 +1000,7 @@ W.lb = function() {
|
|
|
1000
1000
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
1001
1001
|
n = null;
|
|
1002
1002
|
else {
|
|
1003
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
1003
|
+
this.ca.shift(), 0 <= n.interval && yr(this, n, n.interval);
|
|
1004
1004
|
var r = new C(n.node, n.scope);
|
|
1005
1005
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1006
1006
|
}
|
|
@@ -1013,7 +1013,7 @@ W.lb = function() {
|
|
|
1013
1013
|
try {
|
|
1014
1014
|
var a = this.rb[r.type](e, n, r);
|
|
1015
1015
|
} catch (s) {
|
|
1016
|
-
if (s !==
|
|
1016
|
+
if (s !== pr)
|
|
1017
1017
|
throw this.value !== s && (this.value = void 0), s;
|
|
1018
1018
|
} finally {
|
|
1019
1019
|
et = i;
|
|
@@ -1026,13 +1026,13 @@ W.lb = function() {
|
|
|
1026
1026
|
} while (!r.end && t > Date.now());
|
|
1027
1027
|
return !0;
|
|
1028
1028
|
};
|
|
1029
|
-
|
|
1029
|
+
U.Eb = function() {
|
|
1030
1030
|
for (; !this.za && this.lb(); )
|
|
1031
1031
|
;
|
|
1032
1032
|
return this.za;
|
|
1033
1033
|
};
|
|
1034
|
-
function
|
|
1035
|
-
e.g(t, "NaN", NaN, Xe), e.g(t, "Infinity", 1 / 0, Xe), e.g(t, "undefined", void 0, Xe), e.g(t, "window", t, en), e.g(t, "this", t, Xe), e.g(t, "self", t), e.M = new
|
|
1034
|
+
function di(e, t) {
|
|
1035
|
+
e.g(t, "NaN", NaN, Xe), e.g(t, "Infinity", 1 / 0, Xe), e.g(t, "undefined", void 0, Xe), e.g(t, "window", t, en), e.g(t, "this", t, Xe), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), fi(e, t), hi(e, t), t.xa = e.M, e.g(t, "constructor", e.v, k), pi(e, t), mi(e, t), gi(e, t), yi(e, t), vi(e, t), bi(e, t), xi(e, t), Si(e, t), ki(e, t);
|
|
1036
1036
|
var n = e.i(function() {
|
|
1037
1037
|
throw EvalError("Can't happen");
|
|
1038
1038
|
}, !1);
|
|
@@ -1057,8 +1057,8 @@ function ui(e, t) {
|
|
|
1057
1057
|
Zn(e, a);
|
|
1058
1058
|
}, e.g(t, "clearInterval", e.i(n, !1), k), 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);
|
|
1059
1059
|
}
|
|
1060
|
-
|
|
1061
|
-
function
|
|
1060
|
+
U.Wb = 0;
|
|
1061
|
+
function fi(e, t) {
|
|
1062
1062
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(i) {
|
|
1063
1063
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1064
1064
|
if (s) {
|
|
@@ -1070,16 +1070,16 @@ function di(e, t) {
|
|
|
1070
1070
|
s = s.join(", ");
|
|
1071
1071
|
}
|
|
1072
1072
|
try {
|
|
1073
|
-
var
|
|
1073
|
+
var g = Ue("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1074
1074
|
} catch (b) {
|
|
1075
1075
|
w(e, e.T, "Invalid code: " + b.message);
|
|
1076
1076
|
}
|
|
1077
|
-
return
|
|
1077
|
+
return g.body.length !== 1 && w(e, e.T, "Invalid code in function body"), on(e, g.body[0].la, e.N, "anonymous");
|
|
1078
1078
|
};
|
|
1079
1079
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, k), e.g(e.O, "prototype", e.Z, k), e.g(e.Z, "constructor", e.O, k), e.Z.Ta = function() {
|
|
1080
1080
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, re), e.Z.H = "Function", r = function(i, a) {
|
|
1081
1081
|
var s = e.o[e.o.length - 1];
|
|
1082
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof
|
|
1082
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof P ? s.F = mr(e, a) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1083
1083
|
}, X(e, e.O, "apply", r), r = function(i) {
|
|
1084
1084
|
var a = e.o[e.o.length - 1];
|
|
1085
1085
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1092,29 +1092,29 @@ function di(e, t) {
|
|
|
1092
1092
|
return this.valueOf();
|
|
1093
1093
|
}, X(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), k);
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function hi(e, t) {
|
|
1096
1096
|
function n(i) {
|
|
1097
1097
|
i != null || w(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1098
1098
|
}
|
|
1099
1099
|
var r = function(i) {
|
|
1100
1100
|
if (i == null)
|
|
1101
1101
|
return xe(e) ? this : e.s(e.M);
|
|
1102
|
-
if (!(i instanceof
|
|
1102
|
+
if (!(i instanceof P)) {
|
|
1103
1103
|
var a = e.s(be(e, i));
|
|
1104
1104
|
return a.data = i, a;
|
|
1105
1105
|
}
|
|
1106
1106
|
return i;
|
|
1107
1107
|
};
|
|
1108
1108
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, k), e.g(e.M, "constructor", e.v, k), e.g(t, "Object", e.v, k), r = function(i) {
|
|
1109
|
-
return n(i), ge(e, Object.getOwnPropertyNames(i instanceof
|
|
1109
|
+
return n(i), ge(e, Object.getOwnPropertyNames(i instanceof P ? i.h : i));
|
|
1110
1110
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), k), r = function(i) {
|
|
1111
|
-
return n(i), i instanceof
|
|
1111
|
+
return n(i), i instanceof P && (i = i.h), ge(e, Object.keys(i));
|
|
1112
1112
|
}, e.g(e.v, "keys", e.i(r, !1), k), r = function(i) {
|
|
1113
|
-
return i === null ? e.s(null) : (i instanceof
|
|
1113
|
+
return i === null ? e.s(null) : (i instanceof P || w(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1114
1114
|
}, e.g(e.v, "create", e.i(r, !1), k), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(i, a, s) {
|
|
1115
|
-
return a = String(a), i instanceof
|
|
1115
|
+
return a = String(a), i instanceof P || w(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof P || w(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || w(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, rt, s.h), i;
|
|
1116
1116
|
}, e.g(e.v, "defineProperty", e.i(r, !1), k), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(i, a) {
|
|
1117
|
-
if (i instanceof
|
|
1117
|
+
if (i instanceof P || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1118
1118
|
var s = Object.getOwnPropertyDescriptor(i.h, a), u = i.V[a];
|
|
1119
1119
|
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;
|
|
1120
1120
|
}
|
|
@@ -1123,11 +1123,11 @@ function fi(e, t) {
|
|
|
1123
1123
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), k), r = function(i) {
|
|
1124
1124
|
return !!i && !i.preventExtensions;
|
|
1125
1125
|
}, e.g(e.v, "isExtensible", e.i(r, !1), k), r = function(i) {
|
|
1126
|
-
return i instanceof
|
|
1127
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), k), X(e, e.v, "toString",
|
|
1128
|
-
return n(this), this instanceof
|
|
1126
|
+
return i instanceof P && (i.preventExtensions = !0), i;
|
|
1127
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), k), X(e, e.v, "toString", P.prototype.toString), X(e, e.v, "toLocaleString", P.prototype.toString), X(e, e.v, "valueOf", P.prototype.valueOf), r = function(i) {
|
|
1128
|
+
return n(this), this instanceof P ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1129
1129
|
}, X(e, e.v, "hasOwnProperty", r), r = function(i) {
|
|
1130
|
-
return n(this), this instanceof
|
|
1130
|
+
return n(this), this instanceof P ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1131
1131
|
}, X(e, e.v, "propertyIsEnumerable", r), r = function(i) {
|
|
1132
1132
|
for (; ; ) {
|
|
1133
1133
|
if (i = be(e, i), !i)
|
|
@@ -1137,7 +1137,7 @@ function fi(e, t) {
|
|
|
1137
1137
|
}
|
|
1138
1138
|
}, X(e, e.v, "isPrototypeOf", r);
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function pi(e, t) {
|
|
1141
1141
|
var n = function(r) {
|
|
1142
1142
|
var i = xe(e) ? this : Le(e), a = arguments[0];
|
|
1143
1143
|
if (arguments.length === 1 && typeof a == "number")
|
|
@@ -1157,7 +1157,7 @@ function hi(e, t) {
|
|
|
1157
1157
|
writable: !0
|
|
1158
1158
|
}), 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(',');", "}", ");", "})();", "");
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function mi(e, t) {
|
|
1161
1161
|
var n = function(r) {
|
|
1162
1162
|
return r = arguments.length ? we.String(r) : "", xe(e) ? (this.data = r, this) : r;
|
|
1163
1163
|
};
|
|
@@ -1181,8 +1181,8 @@ function pi(e, t) {
|
|
|
1181
1181
|
}, r, a), r !== De && a(ge(e, r));
|
|
1182
1182
|
else {
|
|
1183
1183
|
var u = e.ha(), f = Ze(e, r, u, a);
|
|
1184
|
-
u.onmessage = function(
|
|
1185
|
-
clearTimeout(f), a(ge(e,
|
|
1184
|
+
u.onmessage = function(g) {
|
|
1185
|
+
clearTimeout(f), a(ge(e, g.data));
|
|
1186
1186
|
}, u.postMessage(["split", s, r, i]);
|
|
1187
1187
|
}
|
|
1188
1188
|
return;
|
|
@@ -1231,8 +1231,8 @@ function pi(e, t) {
|
|
|
1231
1231
|
}, r, a), r !== De && a(r);
|
|
1232
1232
|
else {
|
|
1233
1233
|
var u = e.ha(), f = Ze(e, r, u, a);
|
|
1234
|
-
u.onmessage = function(
|
|
1235
|
-
clearTimeout(f), a(
|
|
1234
|
+
u.onmessage = function(g) {
|
|
1235
|
+
clearTimeout(f), a(g.data);
|
|
1236
1236
|
}, u.postMessage(["replace", s, r, i]);
|
|
1237
1237
|
}
|
|
1238
1238
|
return;
|
|
@@ -1240,12 +1240,12 @@ function pi(e, t) {
|
|
|
1240
1240
|
a(s.replace(r, i));
|
|
1241
1241
|
}, Qe(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function gi(e, t) {
|
|
1244
1244
|
e.mb = e.i(function(n) {
|
|
1245
1245
|
return n = we.Boolean(n), xe(e) ? (this.data = n, this) : n;
|
|
1246
1246
|
}, !0), e.g(t, "Boolean", e.mb, k);
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function yi(e, t) {
|
|
1249
1249
|
var n = function(r) {
|
|
1250
1250
|
return r = arguments.length ? we.Number(r) : 0, xe(e) ? (this.data = r, this) : r;
|
|
1251
1251
|
};
|
|
@@ -1284,7 +1284,7 @@ function gi(e, t) {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
}, X(e, e.aa, "toLocaleString", n);
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function vi(e, t) {
|
|
1288
1288
|
var n = function(i, a) {
|
|
1289
1289
|
if (!xe(e))
|
|
1290
1290
|
return we.Date();
|
|
@@ -1303,7 +1303,7 @@ function yi(e, t) {
|
|
|
1303
1303
|
};
|
|
1304
1304
|
}(t[r]), X(e, e.$, t[r], n);
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function bi(e, t) {
|
|
1307
1307
|
var n = function(r, i) {
|
|
1308
1308
|
if (xe(e))
|
|
1309
1309
|
var a = this;
|
|
@@ -1336,16 +1336,16 @@ function vi(e, t) {
|
|
|
1336
1336
|
regexp: s
|
|
1337
1337
|
}, s, i), r !== De && (e.g(this, "lastIndex", s.lastIndex), i(a(r)));
|
|
1338
1338
|
else {
|
|
1339
|
-
var u = e.ha(), f = Ze(e, s, u, i),
|
|
1339
|
+
var u = e.ha(), f = Ze(e, s, u, i), g = this;
|
|
1340
1340
|
u.onmessage = function(b) {
|
|
1341
|
-
clearTimeout(f), e.g(
|
|
1341
|
+
clearTimeout(f), e.g(g, "lastIndex", b.data[1]), i(a(b.data[0]));
|
|
1342
1342
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1343
1343
|
}
|
|
1344
1344
|
else
|
|
1345
1345
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), i(a(r));
|
|
1346
1346
|
}, Qe(e, e.I, "exec", n);
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1348
|
+
function xi(e, t) {
|
|
1349
1349
|
function n(r) {
|
|
1350
1350
|
var i = e.i(function(a) {
|
|
1351
1351
|
var s = xe(e) ? this : e.Aa(i);
|
|
@@ -1358,7 +1358,7 @@ function bi(e, t) {
|
|
|
1358
1358
|
return Xt(e, i, r), i;
|
|
1359
1359
|
}, !0), e.g(t, "Error", e.D, k), e.g(e.D.h.prototype, "message", "", k), e.g(e.D.h.prototype, "name", "Error", k), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function Si(e, t) {
|
|
1362
1362
|
var n = e.s(e.M);
|
|
1363
1363
|
e.g(t, "Math", n, k);
|
|
1364
1364
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1367,7 +1367,7 @@ function xi(e, t) {
|
|
|
1367
1367
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1368
1368
|
e.g(n, r[t], e.i(Math[r[t]], !1), k);
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function ki(e, t) {
|
|
1371
1371
|
var n = e.s(e.M);
|
|
1372
1372
|
e.g(t, "JSON", n, k), t = function(r) {
|
|
1373
1373
|
try {
|
|
@@ -1377,7 +1377,7 @@ function Si(e, t) {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
return e.Ia(i);
|
|
1379
1379
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, i, a) {
|
|
1380
|
-
i && i.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i =
|
|
1380
|
+
i && i.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = mr(e, i), i = i.filter(function(u) {
|
|
1381
1381
|
return typeof u == "string" || typeof u == "number";
|
|
1382
1382
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), r = e.R(r);
|
|
1383
1383
|
try {
|
|
@@ -1420,9 +1420,9 @@ function Xt(e, t, n) {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
e.g(t, "stack", a.trim(), k);
|
|
1422
1422
|
}
|
|
1423
|
-
|
|
1423
|
+
U.ha = function() {
|
|
1424
1424
|
var e = this.ha.Mb;
|
|
1425
|
-
return e || (e = new Blob([
|
|
1425
|
+
return e || (e = new Blob([ui.join(`
|
|
1426
1426
|
`)], {
|
|
1427
1427
|
type: "application/javascript"
|
|
1428
1428
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1466,13 +1466,13 @@ function Ze(e, t, n, r) {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1468
1468
|
}
|
|
1469
|
-
|
|
1469
|
+
U.Aa = function(e) {
|
|
1470
1470
|
return this.s(e && e.h.prototype);
|
|
1471
1471
|
};
|
|
1472
|
-
|
|
1472
|
+
U.s = function(e) {
|
|
1473
1473
|
if (typeof e != "object")
|
|
1474
1474
|
throw Error("Non object prototype");
|
|
1475
|
-
return e = new
|
|
1475
|
+
return e = new P(e), q(this, e, this.D) && (e.H = "Error"), e;
|
|
1476
1476
|
};
|
|
1477
1477
|
function Le(e) {
|
|
1478
1478
|
var t = e.s(e.La);
|
|
@@ -1490,15 +1490,15 @@ function on(e, t, n, r) {
|
|
|
1490
1490
|
var i = rn(e, t.oa.length, !0);
|
|
1491
1491
|
return i.Va = n, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : r || "", re), i;
|
|
1492
1492
|
}
|
|
1493
|
-
|
|
1493
|
+
U.i = function(e, t) {
|
|
1494
1494
|
return t = rn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, re), t;
|
|
1495
1495
|
};
|
|
1496
|
-
|
|
1496
|
+
U.ub = function(e) {
|
|
1497
1497
|
var t = rn(this, e.length, !0);
|
|
1498
1498
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, re), t;
|
|
1499
1499
|
};
|
|
1500
|
-
|
|
1501
|
-
if (e instanceof
|
|
1500
|
+
U.Ia = function(e) {
|
|
1501
|
+
if (e instanceof P)
|
|
1502
1502
|
throw Error("Object is already pseudo");
|
|
1503
1503
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1504
1504
|
return e;
|
|
@@ -1528,10 +1528,10 @@ W.Ia = function(e) {
|
|
|
1528
1528
|
this.g(t, r, this.Ia(e[r]));
|
|
1529
1529
|
return t;
|
|
1530
1530
|
};
|
|
1531
|
-
|
|
1531
|
+
U.R = function(e, t) {
|
|
1532
1532
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1533
1533
|
return e;
|
|
1534
|
-
if (!(e instanceof
|
|
1534
|
+
if (!(e instanceof P))
|
|
1535
1535
|
throw Error("Object is not pseudo");
|
|
1536
1536
|
if (q(this, e, this.I))
|
|
1537
1537
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1563,7 +1563,7 @@ function ge(e, t) {
|
|
|
1563
1563
|
e.g(n, r[i], t[r[i]]);
|
|
1564
1564
|
return n;
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1566
|
+
function mr(e, t) {
|
|
1567
1567
|
var n = [], r;
|
|
1568
1568
|
for (r in t.h)
|
|
1569
1569
|
n[r] = e.G(t, r);
|
|
@@ -1580,10 +1580,10 @@ function be(e, t) {
|
|
|
1580
1580
|
}
|
|
1581
1581
|
return t ? t.xa : null;
|
|
1582
1582
|
}
|
|
1583
|
-
|
|
1583
|
+
U.G = function(e, t) {
|
|
1584
1584
|
if (this.P)
|
|
1585
1585
|
throw Error("Getter not supported in that context");
|
|
1586
|
-
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1586
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
1587
1587
|
throw TypeError("Expecting native value or pseudo object");
|
|
1588
1588
|
if (t === "length") {
|
|
1589
1589
|
if (q(this, e, this.J))
|
|
@@ -1599,7 +1599,7 @@ W.G = function(e, t) {
|
|
|
1599
1599
|
while (e = be(this, e));
|
|
1600
1600
|
};
|
|
1601
1601
|
function St(e, t, n) {
|
|
1602
|
-
if (!(t instanceof
|
|
1602
|
+
if (!(t instanceof P))
|
|
1603
1603
|
throw TypeError("Primitive data type has no properties");
|
|
1604
1604
|
if (n = String(n), n === "length" && q(e, t, e.J))
|
|
1605
1605
|
return !0;
|
|
@@ -1614,14 +1614,14 @@ function St(e, t, n) {
|
|
|
1614
1614
|
while (t = be(e, t));
|
|
1615
1615
|
return !1;
|
|
1616
1616
|
}
|
|
1617
|
-
|
|
1617
|
+
U.g = function(e, t, n, r) {
|
|
1618
1618
|
if (this.Ka)
|
|
1619
1619
|
throw Error("Setter not supported in that context");
|
|
1620
|
-
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1620
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
1621
1621
|
throw TypeError("Expecting native value or pseudo object");
|
|
1622
1622
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1623
1623
|
var i = !this.o || an(this).S;
|
|
1624
|
-
if (e instanceof
|
|
1624
|
+
if (e instanceof P) {
|
|
1625
1625
|
if (q(this, e, this.J)) {
|
|
1626
1626
|
var a = tt(t);
|
|
1627
1627
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
@@ -1676,10 +1676,10 @@ W.g = function(e, t, n, r) {
|
|
|
1676
1676
|
} else
|
|
1677
1677
|
i && w(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1678
1678
|
};
|
|
1679
|
-
|
|
1679
|
+
U.g.ac = function() {
|
|
1680
1680
|
throw Error("Placeholder getter");
|
|
1681
1681
|
};
|
|
1682
|
-
|
|
1682
|
+
U.g.bc = function() {
|
|
1683
1683
|
throw Error("Placeholder setter");
|
|
1684
1684
|
};
|
|
1685
1685
|
function X(e, t, n, r) {
|
|
@@ -1701,12 +1701,12 @@ function Jt(e, t, n) {
|
|
|
1701
1701
|
var i = t.body && t.body[0];
|
|
1702
1702
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (r = !0);
|
|
1703
1703
|
}
|
|
1704
|
-
return i = e.s(null), r = new
|
|
1704
|
+
return i = e.s(null), r = new vr(n, r, i), n || di(e, r.object), it(e, t, r), r;
|
|
1705
1705
|
}
|
|
1706
1706
|
function sn(e, t, n) {
|
|
1707
1707
|
if (!t)
|
|
1708
1708
|
throw Error("parentScope required");
|
|
1709
|
-
return e = n || e.s(null), new
|
|
1709
|
+
return e = n || e.s(null), new vr(t, t.S, e);
|
|
1710
1710
|
}
|
|
1711
1711
|
function ln(e, t) {
|
|
1712
1712
|
for (var n = an(e); n && n !== e.N; ) {
|
|
@@ -1718,7 +1718,7 @@ function ln(e, t) {
|
|
|
1718
1718
|
return e.G(n.object, t);
|
|
1719
1719
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function gr(e, t, n) {
|
|
1722
1722
|
for (var r = an(e), i = r.S; r && r !== e.N; ) {
|
|
1723
1723
|
if (t in r.object.h) {
|
|
1724
1724
|
try {
|
|
@@ -1790,10 +1790,10 @@ function cn(e, t) {
|
|
|
1790
1790
|
return t[0] === _e ? ln(e, t[1]) : e.G(t[0], t[1]);
|
|
1791
1791
|
}
|
|
1792
1792
|
function un(e, t, n) {
|
|
1793
|
-
return t[0] === _e ?
|
|
1793
|
+
return t[0] === _e ? gr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1794
1794
|
}
|
|
1795
1795
|
function w(e, t, n) {
|
|
1796
|
-
throw e.N ? (n !== void 0 && t instanceof
|
|
1796
|
+
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), Xt(e, t, n)), at(e, 4, t), pr) : n === void 0 ? t : n;
|
|
1797
1797
|
}
|
|
1798
1798
|
function at(e, t, n, r) {
|
|
1799
1799
|
if (t === 0)
|
|
@@ -1875,20 +1875,20 @@ function qn(e, t, n) {
|
|
|
1875
1875
|
var r = e.o[e.o.length - 1], i = Array.from(n), a = i.shift();
|
|
1876
1876
|
n = Math.max(Number(i.shift() || 0), 0);
|
|
1877
1877
|
var s = e.ya();
|
|
1878
|
-
if (a instanceof
|
|
1878
|
+
if (a instanceof P && a.H === "Function") {
|
|
1879
1879
|
var u = a;
|
|
1880
1880
|
s.type = "CallExpression", r = r.scope;
|
|
1881
1881
|
} else {
|
|
1882
1882
|
try {
|
|
1883
1883
|
var f = Ue(String(a), "taskCode" + e.ic++);
|
|
1884
|
-
} catch (
|
|
1885
|
-
w(e, e.T, "Invalid code: " +
|
|
1884
|
+
} catch (g) {
|
|
1885
|
+
w(e, e.T, "Invalid code: " + g.message);
|
|
1886
1886
|
}
|
|
1887
1887
|
s.type = "EvalProgram_", s.body = f.body, r = r.node.arguments[0], xt(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, i.length = 0;
|
|
1888
1888
|
}
|
|
1889
|
-
return t = new
|
|
1889
|
+
return t = new Ci(u, i, r, s, t ? n : -1), yr(e, t, n), t.Db;
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1891
|
+
function yr(e, t, n) {
|
|
1892
1892
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, i) {
|
|
1893
1893
|
return r.time - i.time;
|
|
1894
1894
|
});
|
|
@@ -1915,34 +1915,34 @@ function dn(e, t, n, r) {
|
|
|
1915
1915
|
return i.type = "CallExpression", e = new C(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1916
1916
|
}
|
|
1917
1917
|
function Gt(e, t) {
|
|
1918
|
-
return t == null ? e.Na : t instanceof
|
|
1918
|
+
return t == null ? e.Na : t instanceof P ? t : (e = e.s(be(e, t)), e.data = t, e);
|
|
1919
1919
|
}
|
|
1920
|
-
|
|
1920
|
+
U.Xb = function() {
|
|
1921
1921
|
return this.N;
|
|
1922
1922
|
};
|
|
1923
|
-
|
|
1923
|
+
U.Yb = function() {
|
|
1924
1924
|
return this.o;
|
|
1925
1925
|
};
|
|
1926
|
-
|
|
1926
|
+
U.ec = function(e) {
|
|
1927
1927
|
this.o = e;
|
|
1928
1928
|
};
|
|
1929
1929
|
function C(e, t) {
|
|
1930
1930
|
this.node = e, this.scope = t;
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function vr(e, t, n) {
|
|
1933
1933
|
this.Va = e, this.S = t, this.object = n;
|
|
1934
1934
|
}
|
|
1935
|
-
function
|
|
1935
|
+
function P(e) {
|
|
1936
1936
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1937
1937
|
}
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1938
|
+
U = P.prototype;
|
|
1939
|
+
U.xa = null;
|
|
1940
|
+
U.H = "Object";
|
|
1941
|
+
U.data = null;
|
|
1942
|
+
U.toString = function() {
|
|
1943
1943
|
if (!et)
|
|
1944
1944
|
return "[object Interpreter.Object]";
|
|
1945
|
-
if (!(this instanceof
|
|
1945
|
+
if (!(this instanceof P))
|
|
1946
1946
|
return String(this);
|
|
1947
1947
|
if (this.H === "Array") {
|
|
1948
1948
|
var e = Jn;
|
|
@@ -1952,7 +1952,7 @@ W.toString = function() {
|
|
|
1952
1952
|
1024 < n && (n = 1e3, r = !0);
|
|
1953
1953
|
for (var i = 0; i < n; i++) {
|
|
1954
1954
|
var a = this.h[i];
|
|
1955
|
-
t[i] = a instanceof
|
|
1955
|
+
t[i] = a instanceof P && e.indexOf(a) !== -1 ? "..." : a;
|
|
1956
1956
|
}
|
|
1957
1957
|
r && t.push("...");
|
|
1958
1958
|
} finally {
|
|
@@ -1987,13 +1987,13 @@ W.toString = function() {
|
|
|
1987
1987
|
}
|
|
1988
1988
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1989
1989
|
};
|
|
1990
|
-
|
|
1990
|
+
U.valueOf = function() {
|
|
1991
1991
|
return !et || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1992
1992
|
};
|
|
1993
|
-
function
|
|
1994
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++
|
|
1993
|
+
function Ci(e, t, n, r, i) {
|
|
1994
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++wi, this.time = 0;
|
|
1995
1995
|
}
|
|
1996
|
-
var
|
|
1996
|
+
var wi = 0;
|
|
1997
1997
|
p.prototype.stepArrayExpression = function(e, t, n) {
|
|
1998
1998
|
n = n.elements;
|
|
1999
1999
|
var r = t.A || 0;
|
|
@@ -2124,10 +2124,10 @@ p.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2124
2124
|
n = r >>> t;
|
|
2125
2125
|
break;
|
|
2126
2126
|
case "in":
|
|
2127
|
-
t instanceof
|
|
2127
|
+
t instanceof P || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = St(this, t, r);
|
|
2128
2128
|
break;
|
|
2129
2129
|
case "instanceof":
|
|
2130
|
-
q(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof
|
|
2130
|
+
q(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof P ? q(this, r, t) : !1;
|
|
2131
2131
|
break;
|
|
2132
2132
|
default:
|
|
2133
2133
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2164,7 +2164,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2164
2164
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2165
2165
|
return new C(n.arguments[t.A++], t.scope);
|
|
2166
2166
|
if (n.type === "NewExpression") {
|
|
2167
|
-
if (i instanceof
|
|
2167
|
+
if (i instanceof P && !i.Ab || w(this, this.j, ne(this, n.callee) + " is not a constructor"), i === this.qa)
|
|
2168
2168
|
t.B = Le(this);
|
|
2169
2169
|
else {
|
|
2170
2170
|
var a = i.h.prototype;
|
|
@@ -2177,7 +2177,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2177
2177
|
if (t.eb)
|
|
2178
2178
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2179
2179
|
else {
|
|
2180
|
-
if (t.eb = !0, i instanceof
|
|
2180
|
+
if (t.eb = !0, i instanceof P || w(this, this.j, ne(this, n.callee) + " is not a function"), e = i.node) {
|
|
2181
2181
|
for (n = Jt(this, e.body, i.Va), r = Le(this), i = 0; i < t.F.length; i++)
|
|
2182
2182
|
this.g(r, i, t.F[i]);
|
|
2183
2183
|
for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
|
|
@@ -2255,7 +2255,7 @@ p.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2255
2255
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2256
2256
|
e:
|
|
2257
2257
|
for (; ; ) {
|
|
2258
|
-
if (t.u instanceof
|
|
2258
|
+
if (t.u instanceof P)
|
|
2259
2259
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2260
2260
|
var r = t.wa.shift();
|
|
2261
2261
|
if (r === void 0)
|
|
@@ -2514,7 +2514,7 @@ p.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2514
2514
|
p.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2515
2515
|
n = n.fa;
|
|
2516
2516
|
var r = t.A || 0, i = n[r];
|
|
2517
|
-
for (t.Bb && i && (
|
|
2517
|
+
for (t.Bb && i && (gr(this, i.id.name, t.value), t.Bb = !1, i = n[++r]); i; ) {
|
|
2518
2518
|
if (i.ua)
|
|
2519
2519
|
return t.A = r, t.Bb = !0, t.Pa = i.id.name, new C(i.ua, t.scope);
|
|
2520
2520
|
i = n[++r];
|
|
@@ -2541,7 +2541,7 @@ p.prototype.getGlobalScope = p.prototype.Xb;
|
|
|
2541
2541
|
p.prototype.getStateStack = p.prototype.Yb;
|
|
2542
2542
|
p.prototype.setStateStack = p.prototype.ec;
|
|
2543
2543
|
p.VALUE_IN_DESCRIPTOR = rt;
|
|
2544
|
-
const
|
|
2544
|
+
const Ei = (e) => e.split(`
|
|
2545
2545
|
`).map((t) => {
|
|
2546
2546
|
const n = t.trim();
|
|
2547
2547
|
if (t.includes("__awaiter"))
|
|
@@ -2554,7 +2554,7 @@ const wi = (e) => e.split(`
|
|
|
2554
2554
|
${u}
|
|
2555
2555
|
`;
|
|
2556
2556
|
}).filter(Boolean).join(`
|
|
2557
|
-
`), Qn = (e) => e + "JSON",
|
|
2557
|
+
`), Qn = (e) => e + "JSON", Ii = ({
|
|
2558
2558
|
builder: e,
|
|
2559
2559
|
context: t,
|
|
2560
2560
|
event: n,
|
|
@@ -2566,49 +2566,49 @@ const wi = (e) => e.split(`
|
|
|
2566
2566
|
const u = {
|
|
2567
2567
|
...r,
|
|
2568
2568
|
...i
|
|
2569
|
-
}, f =
|
|
2569
|
+
}, f = dr({
|
|
2570
2570
|
builder: e,
|
|
2571
2571
|
context: t,
|
|
2572
2572
|
event: n,
|
|
2573
2573
|
state: u
|
|
2574
|
-
}),
|
|
2575
|
-
const
|
|
2576
|
-
return `var ${
|
|
2574
|
+
}), g = f.map(([M]) => {
|
|
2575
|
+
const I = Qn(M);
|
|
2576
|
+
return `var ${M} = ${I} === undefined ? undefined : JSON.parse(${I});`;
|
|
2577
2577
|
}).join(`
|
|
2578
|
-
`), b =
|
|
2578
|
+
`), b = Ei(s);
|
|
2579
2579
|
if (b === "") {
|
|
2580
2580
|
ot.warn("Skipping evaluation of empty code block.");
|
|
2581
2581
|
return;
|
|
2582
2582
|
}
|
|
2583
2583
|
const v = `
|
|
2584
2584
|
function theFunction() {
|
|
2585
|
-
${
|
|
2585
|
+
${g}
|
|
2586
2586
|
|
|
2587
2587
|
${b}
|
|
2588
2588
|
}
|
|
2589
2589
|
theFunction();
|
|
2590
|
-
`,
|
|
2591
|
-
const y =
|
|
2590
|
+
`, F = (M, I) => {
|
|
2591
|
+
const y = hr(u, M, I);
|
|
2592
2592
|
a == null || a(y);
|
|
2593
|
-
},
|
|
2593
|
+
}, N = function(M, I) {
|
|
2594
2594
|
f.forEach(([y, V]) => {
|
|
2595
2595
|
const G = JSON.stringify(V);
|
|
2596
|
-
|
|
2597
|
-
}),
|
|
2598
|
-
},
|
|
2599
|
-
return
|
|
2596
|
+
M.setProperty(I, Qn(y), G);
|
|
2597
|
+
}), M.setProperty(I, "setRootState", M.createNativeFunction(F));
|
|
2598
|
+
}, W = new p(v, N);
|
|
2599
|
+
return W.run(), W.pseudoToNative(W.value);
|
|
2600
2600
|
};
|
|
2601
|
-
function
|
|
2601
|
+
function Ti() {
|
|
2602
2602
|
var e;
|
|
2603
2603
|
return typeof process != "undefined" && yt((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2604
2604
|
}
|
|
2605
|
-
const
|
|
2605
|
+
const Ai = () => {
|
|
2606
2606
|
var r;
|
|
2607
|
-
if (!
|
|
2607
|
+
if (!Ti())
|
|
2608
2608
|
return !1;
|
|
2609
2609
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2610
2610
|
return e && t && !n ? (ot.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2611
|
-
},
|
|
2611
|
+
}, ji = (e) => We() || Ai() ? li(e) : Ii(e), Ri = !0, me = class me {
|
|
2612
2612
|
static getCacheKey(t) {
|
|
2613
2613
|
return JSON.stringify({
|
|
2614
2614
|
...t,
|
|
@@ -2641,30 +2641,30 @@ function Ve({
|
|
|
2641
2641
|
if (e === "")
|
|
2642
2642
|
return;
|
|
2643
2643
|
const f = {
|
|
2644
|
-
code:
|
|
2644
|
+
code: si(e, {
|
|
2645
2645
|
isExpression: s
|
|
2646
2646
|
}),
|
|
2647
|
-
builder:
|
|
2647
|
+
builder: ai(),
|
|
2648
2648
|
context: t,
|
|
2649
2649
|
event: a,
|
|
2650
2650
|
rootSetState: i,
|
|
2651
2651
|
rootState: r,
|
|
2652
2652
|
localState: n
|
|
2653
2653
|
};
|
|
2654
|
-
if (u && !
|
|
2655
|
-
const
|
|
2654
|
+
if (u && !Ri) {
|
|
2655
|
+
const g = Fe.getCacheKey(f), b = Fe.getCachedValue(g);
|
|
2656
2656
|
if (b)
|
|
2657
2657
|
return b.value;
|
|
2658
2658
|
}
|
|
2659
2659
|
try {
|
|
2660
|
-
const
|
|
2660
|
+
const g = ji(f);
|
|
2661
2661
|
if (u) {
|
|
2662
2662
|
const b = Fe.getCacheKey(f);
|
|
2663
|
-
Fe.setCachedValue(b,
|
|
2663
|
+
Fe.setCachedValue(b, g);
|
|
2664
2664
|
}
|
|
2665
|
-
return
|
|
2666
|
-
} catch (
|
|
2667
|
-
ot.error("Failed code evaluation: " +
|
|
2665
|
+
return g;
|
|
2666
|
+
} catch (g) {
|
|
2667
|
+
ot.error("Failed code evaluation: " + g.message, {
|
|
2668
2668
|
code: e
|
|
2669
2669
|
});
|
|
2670
2670
|
return;
|
|
@@ -2683,8 +2683,8 @@ function qt(e) {
|
|
|
2683
2683
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = qt(e[n]));
|
|
2684
2684
|
return t;
|
|
2685
2685
|
}
|
|
2686
|
-
const
|
|
2687
|
-
if (
|
|
2686
|
+
const Oi = ["svelte", "vue", "angular", "qwik", "solid"].includes(je), Pi = (e) => {
|
|
2687
|
+
if (Oi) {
|
|
2688
2688
|
const t = fn(e);
|
|
2689
2689
|
return {
|
|
2690
2690
|
...t,
|
|
@@ -2696,7 +2696,7 @@ const Ri = ["svelte", "vue", "angular", "qwik", "solid"].includes(je), Oi = (e)
|
|
|
2696
2696
|
}
|
|
2697
2697
|
};
|
|
2698
2698
|
} else {
|
|
2699
|
-
const t = qt(
|
|
2699
|
+
const t = qt(oi(e, "children", "meta"));
|
|
2700
2700
|
return {
|
|
2701
2701
|
...t,
|
|
2702
2702
|
properties: {
|
|
@@ -2709,7 +2709,7 @@ const Ri = ["svelte", "vue", "angular", "qwik", "solid"].includes(je), Oi = (e)
|
|
|
2709
2709
|
meta: e.meta
|
|
2710
2710
|
};
|
|
2711
2711
|
}
|
|
2712
|
-
},
|
|
2712
|
+
}, Ni = ({
|
|
2713
2713
|
block: e,
|
|
2714
2714
|
context: t,
|
|
2715
2715
|
localState: n,
|
|
@@ -2718,7 +2718,7 @@ const Ri = ["svelte", "vue", "angular", "qwik", "solid"].includes(je), Oi = (e)
|
|
|
2718
2718
|
}) => {
|
|
2719
2719
|
if (!e.bindings)
|
|
2720
2720
|
return e;
|
|
2721
|
-
const a =
|
|
2721
|
+
const a = Pi(e);
|
|
2722
2722
|
for (const s in e.bindings) {
|
|
2723
2723
|
const u = e.bindings[s], f = Ve({
|
|
2724
2724
|
code: u,
|
|
@@ -2728,11 +2728,11 @@ const Ri = ["svelte", "vue", "angular", "qwik", "solid"].includes(je), Oi = (e)
|
|
|
2728
2728
|
context: t,
|
|
2729
2729
|
enableCache: !0
|
|
2730
2730
|
});
|
|
2731
|
-
|
|
2731
|
+
hr(a, s, f);
|
|
2732
2732
|
}
|
|
2733
2733
|
return a;
|
|
2734
2734
|
};
|
|
2735
|
-
function
|
|
2735
|
+
function Bi({
|
|
2736
2736
|
block: e,
|
|
2737
2737
|
context: t,
|
|
2738
2738
|
shouldEvaluateBindings: n,
|
|
@@ -2741,7 +2741,7 @@ function Ni({
|
|
|
2741
2741
|
rootSetState: a
|
|
2742
2742
|
}) {
|
|
2743
2743
|
const s = e;
|
|
2744
|
-
return n ?
|
|
2744
|
+
return n ? Ni({
|
|
2745
2745
|
block: s,
|
|
2746
2746
|
localState: r,
|
|
2747
2747
|
rootState: i,
|
|
@@ -2749,42 +2749,42 @@ function Ni({
|
|
|
2749
2749
|
context: t
|
|
2750
2750
|
}) : s;
|
|
2751
2751
|
}
|
|
2752
|
-
const hn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "",
|
|
2752
|
+
const hn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", br = (e) => Object.entries(e).map(([n, r]) => {
|
|
2753
2753
|
if (typeof r == "string")
|
|
2754
2754
|
return `${hn(n)}: ${r};`;
|
|
2755
|
-
}).filter(yt),
|
|
2755
|
+
}).filter(yt), Mi = (e) => br(e).join(`
|
|
2756
2756
|
`), mt = ({
|
|
2757
2757
|
mediaQuery: e,
|
|
2758
2758
|
className: t,
|
|
2759
2759
|
styles: n
|
|
2760
2760
|
}) => {
|
|
2761
2761
|
const r = `.${t} {
|
|
2762
|
-
${
|
|
2762
|
+
${Mi(n)}
|
|
2763
2763
|
}`;
|
|
2764
2764
|
return e ? `${e} {
|
|
2765
2765
|
${r}
|
|
2766
2766
|
}` : r;
|
|
2767
2767
|
};
|
|
2768
|
-
function
|
|
2768
|
+
function Di({
|
|
2769
2769
|
style: e
|
|
2770
2770
|
}) {
|
|
2771
2771
|
return e;
|
|
2772
2772
|
}
|
|
2773
|
-
const
|
|
2773
|
+
const Fi = ({
|
|
2774
2774
|
block: e,
|
|
2775
2775
|
context: t
|
|
2776
|
-
}) =>
|
|
2776
|
+
}) => xr(Di({
|
|
2777
2777
|
style: e.style || {},
|
|
2778
2778
|
context: t,
|
|
2779
2779
|
block: e
|
|
2780
2780
|
}));
|
|
2781
|
-
function
|
|
2781
|
+
function xr(e) {
|
|
2782
2782
|
switch (je) {
|
|
2783
2783
|
case "svelte":
|
|
2784
2784
|
case "vue":
|
|
2785
2785
|
case "solid":
|
|
2786
2786
|
case "angular":
|
|
2787
|
-
return
|
|
2787
|
+
return br(e).join(" ");
|
|
2788
2788
|
case "qwik":
|
|
2789
2789
|
case "reactNative":
|
|
2790
2790
|
case "react":
|
|
@@ -2792,7 +2792,7 @@ function br(e) {
|
|
|
2792
2792
|
return e;
|
|
2793
2793
|
}
|
|
2794
2794
|
}
|
|
2795
|
-
const
|
|
2795
|
+
const Wi = ({
|
|
2796
2796
|
block: e,
|
|
2797
2797
|
registeredComponents: t
|
|
2798
2798
|
}) => {
|
|
@@ -2806,7 +2806,7 @@ const Fi = ({
|
|
|
2806
2806
|
console.warn(`
|
|
2807
2807
|
Could not find a registered component named "${n}".
|
|
2808
2808
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2809
|
-
},
|
|
2809
|
+
}, Ui = ({
|
|
2810
2810
|
block: e,
|
|
2811
2811
|
context: t
|
|
2812
2812
|
}) => {
|
|
@@ -2827,40 +2827,40 @@ const Fi = ({
|
|
|
2827
2827
|
if (!Array.isArray(i))
|
|
2828
2828
|
return;
|
|
2829
2829
|
const a = n.collection.split(".").pop(), s = n.itemName || (a ? a + "Item" : "item");
|
|
2830
|
-
return i.map((f,
|
|
2830
|
+
return i.map((f, g) => ({
|
|
2831
2831
|
context: {
|
|
2832
2832
|
...t,
|
|
2833
2833
|
localState: {
|
|
2834
2834
|
...t.localState,
|
|
2835
|
-
$index:
|
|
2835
|
+
$index: g,
|
|
2836
2836
|
$item: f,
|
|
2837
2837
|
[s]: f,
|
|
2838
|
-
[`$${s}Index`]:
|
|
2838
|
+
[`$${s}Index`]: g
|
|
2839
2839
|
}
|
|
2840
2840
|
},
|
|
2841
2841
|
block: r
|
|
2842
2842
|
}));
|
|
2843
|
-
},
|
|
2843
|
+
}, Li = (e, t) => {
|
|
2844
2844
|
var n;
|
|
2845
2845
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
2846
2846
|
builderLinkComponent: t
|
|
2847
2847
|
} : {};
|
|
2848
|
-
},
|
|
2848
|
+
}, Vi = (e, t) => {
|
|
2849
2849
|
var n;
|
|
2850
2850
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
2851
2851
|
builderComponents: t
|
|
2852
2852
|
} : {};
|
|
2853
|
-
},
|
|
2853
|
+
}, _i = (e, t) => {
|
|
2854
2854
|
var n;
|
|
2855
2855
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
2856
2856
|
builderBlock: t
|
|
2857
2857
|
} : {};
|
|
2858
|
-
},
|
|
2858
|
+
}, $i = (e, t) => {
|
|
2859
2859
|
var n;
|
|
2860
2860
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
2861
2861
|
builderContext: t
|
|
2862
2862
|
} : {};
|
|
2863
|
-
},
|
|
2863
|
+
}, Sr = {
|
|
2864
2864
|
small: {
|
|
2865
2865
|
min: 320,
|
|
2866
2866
|
default: 321,
|
|
@@ -2876,11 +2876,11 @@ const Fi = ({
|
|
|
2876
2876
|
default: 991,
|
|
2877
2877
|
max: 1200
|
|
2878
2878
|
}
|
|
2879
|
-
}, er = (e, t =
|
|
2879
|
+
}, er = (e, t = Sr) => `@media (max-width: ${t[e].max}px)`, kr = ({
|
|
2880
2880
|
small: e,
|
|
2881
2881
|
medium: t
|
|
2882
2882
|
}) => {
|
|
2883
|
-
const n = fn(
|
|
2883
|
+
const n = fn(Sr);
|
|
2884
2884
|
if (!e || !t)
|
|
2885
2885
|
return n;
|
|
2886
2886
|
const r = Math.floor(e / 2);
|
|
@@ -2904,7 +2904,7 @@ const Fi = ({
|
|
|
2904
2904
|
}, n;
|
|
2905
2905
|
};
|
|
2906
2906
|
function kt(e) {
|
|
2907
|
-
return /* @__PURE__ */
|
|
2907
|
+
return /* @__PURE__ */ m(
|
|
2908
2908
|
"style",
|
|
2909
2909
|
{
|
|
2910
2910
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -2913,57 +2913,57 @@ function kt(e) {
|
|
|
2913
2913
|
}
|
|
2914
2914
|
);
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2916
|
+
function Hi(e) {
|
|
2917
2917
|
const t = function() {
|
|
2918
2918
|
const i = e.block;
|
|
2919
2919
|
return yt(i.hide) ? !i.hide : yt(i.show) ? i.show : !0;
|
|
2920
2920
|
}, n = function() {
|
|
2921
|
-
var
|
|
2922
|
-
const i = e.block, a = i.responsiveStyles, s = e.context.content, u =
|
|
2923
|
-
((
|
|
2924
|
-
), f = a == null ? void 0 : a.large,
|
|
2921
|
+
var I, y, V;
|
|
2922
|
+
const i = e.block, a = i.responsiveStyles, s = e.context.content, u = kr(
|
|
2923
|
+
((I = s == null ? void 0 : s.meta) == null ? void 0 : I.breakpoints) || {}
|
|
2924
|
+
), f = a == null ? void 0 : a.large, g = a == null ? void 0 : a.medium, b = a == null ? void 0 : a.small, v = i.id;
|
|
2925
2925
|
if (!v)
|
|
2926
2926
|
return "";
|
|
2927
|
-
const
|
|
2927
|
+
const F = f ? mt({
|
|
2928
2928
|
className: v,
|
|
2929
2929
|
styles: f
|
|
2930
|
-
}) : "",
|
|
2930
|
+
}) : "", N = g ? mt({
|
|
2931
2931
|
className: v,
|
|
2932
|
-
styles:
|
|
2932
|
+
styles: g,
|
|
2933
2933
|
mediaQuery: er(
|
|
2934
2934
|
"medium",
|
|
2935
2935
|
u
|
|
2936
2936
|
)
|
|
2937
|
-
}) : "",
|
|
2937
|
+
}) : "", W = b ? mt({
|
|
2938
2938
|
className: v,
|
|
2939
2939
|
styles: b,
|
|
2940
2940
|
mediaQuery: er(
|
|
2941
2941
|
"small",
|
|
2942
2942
|
u
|
|
2943
2943
|
)
|
|
2944
|
-
}) : "",
|
|
2945
|
-
let
|
|
2946
|
-
if (
|
|
2947
|
-
const G = ((V = (y =
|
|
2948
|
-
|
|
2944
|
+
}) : "", E = i.animations && i.animations.find((G) => G.trigger === "hover");
|
|
2945
|
+
let M = "";
|
|
2946
|
+
if (E) {
|
|
2947
|
+
const G = ((V = (y = E.steps) == null ? void 0 : y[1]) == null ? void 0 : V.styles) || {};
|
|
2948
|
+
M = mt({
|
|
2949
2949
|
className: `${v}:hover`,
|
|
2950
2950
|
styles: {
|
|
2951
2951
|
...G,
|
|
2952
|
-
transition: `all ${
|
|
2953
|
-
|
|
2952
|
+
transition: `all ${E.duration}s ${hn(
|
|
2953
|
+
E.easing
|
|
2954
2954
|
)}`,
|
|
2955
|
-
transitionDelay:
|
|
2955
|
+
transitionDelay: E.delay ? `${E.delay}s` : "0s"
|
|
2956
2956
|
}
|
|
2957
2957
|
}) || "";
|
|
2958
2958
|
}
|
|
2959
2959
|
return [
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2960
|
+
F,
|
|
2961
|
+
N,
|
|
2962
|
+
W,
|
|
2963
|
+
M
|
|
2964
2964
|
].join(" ");
|
|
2965
2965
|
};
|
|
2966
|
-
return /* @__PURE__ */
|
|
2966
|
+
return /* @__PURE__ */ m(K, { children: n() && t() ? /* @__PURE__ */ m(K, { children: /* @__PURE__ */ m(
|
|
2967
2967
|
kt,
|
|
2968
2968
|
{
|
|
2969
2969
|
id: "builderio-block",
|
|
@@ -2972,10 +2972,10 @@ function $i(e) {
|
|
|
2972
2972
|
}
|
|
2973
2973
|
) }) : null });
|
|
2974
2974
|
}
|
|
2975
|
-
function
|
|
2975
|
+
function Ki(e) {
|
|
2976
2976
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2977
2977
|
}
|
|
2978
|
-
const
|
|
2978
|
+
const Gi = (e) => `on${Ki(e)}`, zi = (e, t) => (n) => Ve({
|
|
2979
2979
|
code: e,
|
|
2980
2980
|
context: t.context,
|
|
2981
2981
|
localState: t.localState,
|
|
@@ -2985,14 +2985,14 @@ const Ki = (e) => `on${Hi(e)}`, Gi = (e, t) => (n) => Ve({
|
|
|
2985
2985
|
isExpression: !1,
|
|
2986
2986
|
enableCache: !0
|
|
2987
2987
|
});
|
|
2988
|
-
function
|
|
2988
|
+
function Cr(e) {
|
|
2989
2989
|
var r;
|
|
2990
2990
|
const t = {}, n = (r = e.block.actions) != null ? r : {};
|
|
2991
2991
|
for (const i in n) {
|
|
2992
2992
|
if (!n.hasOwnProperty(i))
|
|
2993
2993
|
continue;
|
|
2994
2994
|
const a = n[i];
|
|
2995
|
-
let s =
|
|
2995
|
+
let s = Gi(i);
|
|
2996
2996
|
if (e.stripPrefix)
|
|
2997
2997
|
switch (je) {
|
|
2998
2998
|
case "vue":
|
|
@@ -3002,16 +3002,16 @@ function kr(e) {
|
|
|
3002
3002
|
s = s.replace("on:", "");
|
|
3003
3003
|
break;
|
|
3004
3004
|
}
|
|
3005
|
-
t[s] =
|
|
3005
|
+
t[s] = zi(a, e);
|
|
3006
3006
|
}
|
|
3007
3007
|
return t;
|
|
3008
3008
|
}
|
|
3009
|
-
function
|
|
3009
|
+
function Yi({
|
|
3010
3010
|
properties: e
|
|
3011
3011
|
}) {
|
|
3012
3012
|
return e;
|
|
3013
3013
|
}
|
|
3014
|
-
const
|
|
3014
|
+
const Xi = (e) => ({
|
|
3015
3015
|
href: e.href
|
|
3016
3016
|
});
|
|
3017
3017
|
function pn({
|
|
@@ -3020,23 +3020,23 @@ function pn({
|
|
|
3020
3020
|
}) {
|
|
3021
3021
|
var r;
|
|
3022
3022
|
const n = {
|
|
3023
|
-
...
|
|
3023
|
+
...Xi(e),
|
|
3024
3024
|
...e.properties,
|
|
3025
3025
|
"builder-id": e.id,
|
|
3026
|
-
style:
|
|
3026
|
+
style: Fi({
|
|
3027
3027
|
block: e,
|
|
3028
3028
|
context: t
|
|
3029
3029
|
}),
|
|
3030
3030
|
[nt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3031
3031
|
};
|
|
3032
|
-
return
|
|
3032
|
+
return Yi({
|
|
3033
3033
|
properties: n,
|
|
3034
3034
|
context: t,
|
|
3035
3035
|
block: e
|
|
3036
3036
|
});
|
|
3037
3037
|
}
|
|
3038
|
-
function
|
|
3039
|
-
return /* @__PURE__ */
|
|
3038
|
+
function Ji(e) {
|
|
3039
|
+
return /* @__PURE__ */ m(
|
|
3040
3040
|
Qt,
|
|
3041
3041
|
{
|
|
3042
3042
|
TagName: e.Wrapper,
|
|
@@ -3044,7 +3044,7 @@ function Xi(e) {
|
|
|
3044
3044
|
block: e.block,
|
|
3045
3045
|
context: e.context
|
|
3046
3046
|
}),
|
|
3047
|
-
actionAttributes:
|
|
3047
|
+
actionAttributes: Cr({
|
|
3048
3048
|
block: e.block,
|
|
3049
3049
|
rootState: e.context.rootState,
|
|
3050
3050
|
rootSetState: e.context.rootSetState,
|
|
@@ -3056,14 +3056,14 @@ function Xi(e) {
|
|
|
3056
3056
|
}
|
|
3057
3057
|
);
|
|
3058
3058
|
}
|
|
3059
|
-
function
|
|
3059
|
+
function qi(e) {
|
|
3060
3060
|
function t() {
|
|
3061
3061
|
return e.includeBlockProps ? {
|
|
3062
3062
|
...pn({
|
|
3063
3063
|
block: e.block,
|
|
3064
3064
|
context: e.context
|
|
3065
3065
|
}),
|
|
3066
|
-
...
|
|
3066
|
+
...Cr({
|
|
3067
3067
|
block: e.block,
|
|
3068
3068
|
rootState: e.context.rootState,
|
|
3069
3069
|
rootSetState: e.context.rootSetState,
|
|
@@ -3072,9 +3072,9 @@ function Ji(e) {
|
|
|
3072
3072
|
})
|
|
3073
3073
|
} : {};
|
|
3074
3074
|
}
|
|
3075
|
-
return /* @__PURE__ */
|
|
3075
|
+
return /* @__PURE__ */ m(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
3076
3076
|
}
|
|
3077
|
-
const
|
|
3077
|
+
const Zi = ({
|
|
3078
3078
|
componentOptions: e,
|
|
3079
3079
|
builderBlock: t,
|
|
3080
3080
|
context: n,
|
|
@@ -3106,11 +3106,11 @@ const qi = ({
|
|
|
3106
3106
|
};
|
|
3107
3107
|
function tr(e) {
|
|
3108
3108
|
var n;
|
|
3109
|
-
const t = e.isInteractive ?
|
|
3110
|
-
return /* @__PURE__ */
|
|
3109
|
+
const t = e.isInteractive ? qi : e.componentRef;
|
|
3110
|
+
return /* @__PURE__ */ m(K, { children: e.componentRef ? /* @__PURE__ */ m(K, { children: /* @__PURE__ */ m(
|
|
3111
3111
|
t,
|
|
3112
3112
|
{
|
|
3113
|
-
...
|
|
3113
|
+
...Zi({
|
|
3114
3114
|
componentOptions: e.componentOptions,
|
|
3115
3115
|
builderBlock: e.builderBlock,
|
|
3116
3116
|
context: e.context,
|
|
@@ -3120,7 +3120,7 @@ function tr(e) {
|
|
|
3120
3120
|
isInteractive: e.isInteractive,
|
|
3121
3121
|
contextValue: e.context
|
|
3122
3122
|
}),
|
|
3123
|
-
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */
|
|
3123
|
+
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ m(
|
|
3124
3124
|
Ct,
|
|
3125
3125
|
{
|
|
3126
3126
|
block: r,
|
|
@@ -3133,9 +3133,9 @@ function tr(e) {
|
|
|
3133
3133
|
}
|
|
3134
3134
|
) }) : null });
|
|
3135
3135
|
}
|
|
3136
|
-
function
|
|
3136
|
+
function nr(e) {
|
|
3137
3137
|
const t = e.repeatContext;
|
|
3138
|
-
return /* @__PURE__ */
|
|
3138
|
+
return /* @__PURE__ */ m(
|
|
3139
3139
|
Ct,
|
|
3140
3140
|
{
|
|
3141
3141
|
block: e.block,
|
|
@@ -3146,9 +3146,9 @@ function Zi(e) {
|
|
|
3146
3146
|
);
|
|
3147
3147
|
}
|
|
3148
3148
|
function Ct(e) {
|
|
3149
|
-
var
|
|
3149
|
+
var g, b, v, F;
|
|
3150
3150
|
const t = function() {
|
|
3151
|
-
return
|
|
3151
|
+
return Ui({
|
|
3152
3152
|
block: e.block,
|
|
3153
3153
|
context: e.context
|
|
3154
3154
|
});
|
|
@@ -3156,10 +3156,10 @@ function Ct(e) {
|
|
|
3156
3156
|
value: null,
|
|
3157
3157
|
update: !1
|
|
3158
3158
|
}, r = function() {
|
|
3159
|
-
var
|
|
3160
|
-
if (n.value && !n.update && !
|
|
3159
|
+
var E;
|
|
3160
|
+
if (n.value && !n.update && !cr())
|
|
3161
3161
|
return n.value;
|
|
3162
|
-
const
|
|
3162
|
+
const W = (E = e.block.repeat) != null && E.collection ? e.block : Bi({
|
|
3163
3163
|
block: e.block,
|
|
3164
3164
|
localState: e.context.localState,
|
|
3165
3165
|
rootState: e.context.rootState,
|
|
@@ -3167,35 +3167,35 @@ function Ct(e) {
|
|
|
3167
3167
|
context: e.context.context,
|
|
3168
3168
|
shouldEvaluateBindings: !0
|
|
3169
3169
|
});
|
|
3170
|
-
return n.value =
|
|
3170
|
+
return n.value = W, n.update = !1, W;
|
|
3171
3171
|
}, i = function() {
|
|
3172
|
-
return
|
|
3172
|
+
return Wi({
|
|
3173
3173
|
block: r(),
|
|
3174
3174
|
registeredComponents: e.registeredComponents
|
|
3175
3175
|
});
|
|
3176
3176
|
}, a = function() {
|
|
3177
|
-
var
|
|
3178
|
-
return e.block.tagName === "a" || ((
|
|
3177
|
+
var E;
|
|
3178
|
+
return e.block.tagName === "a" || ((E = r().properties) == null ? void 0 : E.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3179
3179
|
}, s = function() {
|
|
3180
|
-
var
|
|
3181
|
-
if ((
|
|
3182
|
-
return !!((
|
|
3183
|
-
const
|
|
3184
|
-
return ("show" in r() ? r().show : !0) && !
|
|
3180
|
+
var M, I;
|
|
3181
|
+
if ((M = e.block.repeat) != null && M.collection)
|
|
3182
|
+
return !!((I = t()) != null && I.length);
|
|
3183
|
+
const W = "hide" in r() ? r().hide : !1;
|
|
3184
|
+
return ("show" in r() ? r().show : !0) && !W;
|
|
3185
3185
|
}, u = function() {
|
|
3186
|
-
var
|
|
3187
|
-
return !((
|
|
3186
|
+
var E, M;
|
|
3187
|
+
return !((E = i()) != null && E.component) && !t() ? (M = r().children) != null ? M : [] : [];
|
|
3188
3188
|
}, f = function() {
|
|
3189
|
-
var
|
|
3189
|
+
var W, E, M, I;
|
|
3190
3190
|
return {
|
|
3191
|
-
blockChildren: (
|
|
3192
|
-
componentRef: (
|
|
3191
|
+
blockChildren: (W = r().children) != null ? W : [],
|
|
3192
|
+
componentRef: (E = i()) == null ? void 0 : E.component,
|
|
3193
3193
|
componentOptions: {
|
|
3194
|
-
...
|
|
3195
|
-
...
|
|
3196
|
-
|
|
3197
|
-
...
|
|
3198
|
-
...
|
|
3194
|
+
...ii(r()),
|
|
3195
|
+
..._i(i(), r()),
|
|
3196
|
+
...$i(i(), e.context),
|
|
3197
|
+
...Li(i(), e.linkComponent),
|
|
3198
|
+
...Vi(
|
|
3199
3199
|
i(),
|
|
3200
3200
|
e.registeredComponents
|
|
3201
3201
|
)
|
|
@@ -3204,13 +3204,22 @@ function Ct(e) {
|
|
|
3204
3204
|
linkComponent: e.linkComponent,
|
|
3205
3205
|
registeredComponents: e.registeredComponents,
|
|
3206
3206
|
builderBlock: r(),
|
|
3207
|
-
includeBlockProps: ((
|
|
3208
|
-
isInteractive: !((
|
|
3207
|
+
includeBlockProps: ((M = i()) == null ? void 0 : M.noWrap) === !0,
|
|
3208
|
+
isInteractive: !((I = i()) != null && I.isRSC && je === "rsc")
|
|
3209
3209
|
};
|
|
3210
3210
|
};
|
|
3211
|
-
return /* @__PURE__ */
|
|
3212
|
-
/* @__PURE__ */
|
|
3213
|
-
(
|
|
3211
|
+
return /* @__PURE__ */ m(K, { children: s() ? /* @__PURE__ */ se(K, { children: [
|
|
3212
|
+
/* @__PURE__ */ m(Hi, { block: r(), context: e.context }),
|
|
3213
|
+
(g = i()) != null && g.noWrap ? t() ? /* @__PURE__ */ m(K, { children: (F = t()) == null ? void 0 : F.map((N, W) => /* @__PURE__ */ m(
|
|
3214
|
+
nr,
|
|
3215
|
+
{
|
|
3216
|
+
repeatContext: N.context,
|
|
3217
|
+
block: N.block,
|
|
3218
|
+
registeredComponents: e.registeredComponents,
|
|
3219
|
+
linkComponent: e.linkComponent
|
|
3220
|
+
},
|
|
3221
|
+
W
|
|
3222
|
+
)) }) : /* @__PURE__ */ m(
|
|
3214
3223
|
tr,
|
|
3215
3224
|
{
|
|
3216
3225
|
componentRef: f().componentRef,
|
|
@@ -3223,23 +3232,23 @@ function Ct(e) {
|
|
|
3223
3232
|
includeBlockProps: f().includeBlockProps,
|
|
3224
3233
|
isInteractive: f().isInteractive
|
|
3225
3234
|
}
|
|
3226
|
-
)
|
|
3227
|
-
|
|
3235
|
+
) : /* @__PURE__ */ m(K, { children: t() ? /* @__PURE__ */ m(K, { children: (v = t()) == null ? void 0 : v.map((N, W) => /* @__PURE__ */ m(
|
|
3236
|
+
nr,
|
|
3228
3237
|
{
|
|
3229
|
-
repeatContext:
|
|
3230
|
-
block:
|
|
3238
|
+
repeatContext: N.context,
|
|
3239
|
+
block: N.block,
|
|
3231
3240
|
registeredComponents: e.registeredComponents,
|
|
3232
3241
|
linkComponent: e.linkComponent
|
|
3233
3242
|
},
|
|
3234
|
-
|
|
3243
|
+
W
|
|
3235
3244
|
)) }) : /* @__PURE__ */ se(
|
|
3236
|
-
|
|
3245
|
+
Ji,
|
|
3237
3246
|
{
|
|
3238
3247
|
Wrapper: a(),
|
|
3239
3248
|
block: r(),
|
|
3240
3249
|
context: e.context,
|
|
3241
3250
|
children: [
|
|
3242
|
-
/* @__PURE__ */
|
|
3251
|
+
/* @__PURE__ */ m(
|
|
3243
3252
|
tr,
|
|
3244
3253
|
{
|
|
3245
3254
|
componentRef: f().componentRef,
|
|
@@ -3253,15 +3262,15 @@ function Ct(e) {
|
|
|
3253
3262
|
isInteractive: f().isInteractive
|
|
3254
3263
|
}
|
|
3255
3264
|
),
|
|
3256
|
-
(b = u()) == null ? void 0 : b.map((
|
|
3265
|
+
(b = u()) == null ? void 0 : b.map((N) => /* @__PURE__ */ m(
|
|
3257
3266
|
Ct,
|
|
3258
3267
|
{
|
|
3259
|
-
block:
|
|
3268
|
+
block: N,
|
|
3260
3269
|
registeredComponents: e.registeredComponents,
|
|
3261
3270
|
linkComponent: e.linkComponent,
|
|
3262
3271
|
context: e.context
|
|
3263
3272
|
},
|
|
3264
|
-
|
|
3273
|
+
N.id
|
|
3265
3274
|
))
|
|
3266
3275
|
]
|
|
3267
3276
|
}
|
|
@@ -3302,7 +3311,7 @@ function Qi(e) {
|
|
|
3302
3311
|
}
|
|
3303
3312
|
return Q(() => {
|
|
3304
3313
|
}, []), /* @__PURE__ */ se(K, { children: [
|
|
3305
|
-
/* @__PURE__ */
|
|
3314
|
+
/* @__PURE__ */ m(
|
|
3306
3315
|
e.BlocksWrapper,
|
|
3307
3316
|
{
|
|
3308
3317
|
ref: t,
|
|
@@ -3317,7 +3326,7 @@ function Qi(e) {
|
|
|
3317
3326
|
children: e.children
|
|
3318
3327
|
}
|
|
3319
3328
|
),
|
|
3320
|
-
/* @__PURE__ */
|
|
3329
|
+
/* @__PURE__ */ m("style", { children: `.props-blocks-wrapper-51ef31b4 {
|
|
3321
3330
|
display: flex;
|
|
3322
3331
|
flex-direction: column;
|
|
3323
3332
|
align-items: stretch;
|
|
@@ -3326,7 +3335,7 @@ function Qi(e) {
|
|
|
3326
3335
|
}
|
|
3327
3336
|
function mn(e) {
|
|
3328
3337
|
var t, n, r;
|
|
3329
|
-
return /* @__PURE__ */
|
|
3338
|
+
return /* @__PURE__ */ m(
|
|
3330
3339
|
Qi,
|
|
3331
3340
|
{
|
|
3332
3341
|
blocks: e.blocks,
|
|
@@ -3335,7 +3344,7 @@ function mn(e) {
|
|
|
3335
3344
|
styleProp: e.styleProp,
|
|
3336
3345
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3337
3346
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3338
|
-
children: e.blocks ? /* @__PURE__ */
|
|
3347
|
+
children: e.blocks ? /* @__PURE__ */ m(K, { children: (r = e.blocks) == null ? void 0 : r.map((i) => /* @__PURE__ */ m(
|
|
3339
3348
|
Ct,
|
|
3340
3349
|
{
|
|
3341
3350
|
block: i,
|
|
@@ -3350,7 +3359,7 @@ function mn(e) {
|
|
|
3350
3359
|
}
|
|
3351
3360
|
const eo = (e) => `builder-columns ${e}-breakpoints`;
|
|
3352
3361
|
function to(e) {
|
|
3353
|
-
var
|
|
3362
|
+
var E, M;
|
|
3354
3363
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(y) {
|
|
3355
3364
|
return y.link ? e.builderLinkComponent || "a" : "div";
|
|
3356
3365
|
}, a = function(y) {
|
|
@@ -3369,11 +3378,11 @@ function to(e) {
|
|
|
3369
3378
|
desktopStyle: V
|
|
3370
3379
|
}) {
|
|
3371
3380
|
return r === "never" ? V : y;
|
|
3372
|
-
},
|
|
3381
|
+
}, g = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", b = function() {
|
|
3373
3382
|
return {
|
|
3374
|
-
"--flex-dir":
|
|
3383
|
+
"--flex-dir": g,
|
|
3375
3384
|
"--flex-dir-tablet": u({
|
|
3376
|
-
stackedStyle:
|
|
3385
|
+
stackedStyle: g,
|
|
3377
3386
|
desktopStyle: "row"
|
|
3378
3387
|
})
|
|
3379
3388
|
};
|
|
@@ -3404,15 +3413,15 @@ function to(e) {
|
|
|
3404
3413
|
desktopStyle: oe
|
|
3405
3414
|
})
|
|
3406
3415
|
};
|
|
3407
|
-
},
|
|
3416
|
+
}, F = function(y) {
|
|
3408
3417
|
var G, oe;
|
|
3409
|
-
return
|
|
3418
|
+
return kr(
|
|
3410
3419
|
((oe = (G = e.builderContext.content) == null ? void 0 : G.meta) == null ? void 0 : oe.breakpoints) || {}
|
|
3411
3420
|
)[y].max;
|
|
3412
|
-
},
|
|
3421
|
+
}, N = function() {
|
|
3413
3422
|
const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
3414
3423
|
return `
|
|
3415
|
-
@media (max-width: ${
|
|
3424
|
+
@media (max-width: ${F("medium")}px) {
|
|
3416
3425
|
.${e.builderBlock.id}-breakpoints {
|
|
3417
3426
|
flex-direction: var(--flex-dir-tablet);
|
|
3418
3427
|
align-items: stretch;
|
|
@@ -3424,7 +3433,7 @@ function to(e) {
|
|
|
3424
3433
|
}
|
|
3425
3434
|
}
|
|
3426
3435
|
|
|
3427
|
-
@media (max-width: ${
|
|
3436
|
+
@media (max-width: ${F("small")}px) {
|
|
3428
3437
|
.${e.builderBlock.id}-breakpoints {
|
|
3429
3438
|
flex-direction: var(--flex-dir);
|
|
3430
3439
|
align-items: stretch;
|
|
@@ -3436,37 +3445,37 @@ function to(e) {
|
|
|
3436
3445
|
}
|
|
3437
3446
|
},
|
|
3438
3447
|
`;
|
|
3439
|
-
},
|
|
3448
|
+
}, W = function(y, V) {
|
|
3440
3449
|
return {
|
|
3441
3450
|
...y.link ? {
|
|
3442
3451
|
href: y.link
|
|
3443
3452
|
} : {},
|
|
3444
3453
|
[nt()]: "builder-column",
|
|
3445
|
-
style:
|
|
3454
|
+
style: xr(v(V))
|
|
3446
3455
|
};
|
|
3447
3456
|
};
|
|
3448
3457
|
return /* @__PURE__ */ se(K, { children: [
|
|
3449
3458
|
/* @__PURE__ */ se(
|
|
3450
3459
|
"div",
|
|
3451
3460
|
{
|
|
3452
|
-
className: eo((
|
|
3461
|
+
className: eo((E = e.builderBlock) == null ? void 0 : E.id) + " div-2cd13691",
|
|
3453
3462
|
style: b(),
|
|
3454
3463
|
children: [
|
|
3455
|
-
/* @__PURE__ */
|
|
3464
|
+
/* @__PURE__ */ m(
|
|
3456
3465
|
kt,
|
|
3457
3466
|
{
|
|
3458
3467
|
id: "builderio-columns",
|
|
3459
|
-
styles:
|
|
3468
|
+
styles: N(),
|
|
3460
3469
|
nonce: e.builderContext.nonce
|
|
3461
3470
|
}
|
|
3462
3471
|
),
|
|
3463
|
-
(
|
|
3472
|
+
(M = e.columns) == null ? void 0 : M.map((I, y) => /* @__PURE__ */ m(
|
|
3464
3473
|
Qt,
|
|
3465
3474
|
{
|
|
3466
|
-
TagName: i(
|
|
3475
|
+
TagName: i(I),
|
|
3467
3476
|
actionAttributes: {},
|
|
3468
|
-
attributes:
|
|
3469
|
-
children: /* @__PURE__ */
|
|
3477
|
+
attributes: W(I, y),
|
|
3478
|
+
children: /* @__PURE__ */ m(
|
|
3470
3479
|
mn,
|
|
3471
3480
|
{
|
|
3472
3481
|
path: `component.options.columns.${y}.blocks`,
|
|
@@ -3477,7 +3486,7 @@ function to(e) {
|
|
|
3477
3486
|
context: e.builderContext,
|
|
3478
3487
|
registeredComponents: e.builderComponents,
|
|
3479
3488
|
linkComponent: e.builderLinkComponent,
|
|
3480
|
-
blocks:
|
|
3489
|
+
blocks: I.blocks
|
|
3481
3490
|
}
|
|
3482
3491
|
)
|
|
3483
3492
|
},
|
|
@@ -3486,16 +3495,16 @@ function to(e) {
|
|
|
3486
3495
|
]
|
|
3487
3496
|
}
|
|
3488
3497
|
),
|
|
3489
|
-
/* @__PURE__ */
|
|
3498
|
+
/* @__PURE__ */ m("style", { children: `.div-2cd13691 {
|
|
3490
3499
|
display: flex;
|
|
3491
3500
|
line-height: normal;
|
|
3492
3501
|
}` })
|
|
3493
3502
|
] });
|
|
3494
3503
|
}
|
|
3495
3504
|
function no(e) {
|
|
3496
|
-
return /* @__PURE__ */
|
|
3505
|
+
return /* @__PURE__ */ m("span", { children: e.children });
|
|
3497
3506
|
}
|
|
3498
|
-
function
|
|
3507
|
+
function rr(e) {
|
|
3499
3508
|
return e.replace(/http(s)?:/, "");
|
|
3500
3509
|
}
|
|
3501
3510
|
function ro(e = "", t, n) {
|
|
@@ -3506,11 +3515,11 @@ function io(e, t) {
|
|
|
3506
3515
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3507
3516
|
return e;
|
|
3508
3517
|
if (t === "master")
|
|
3509
|
-
return
|
|
3518
|
+
return rr(e);
|
|
3510
3519
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3511
3520
|
if (n) {
|
|
3512
3521
|
const r = e.split(n[0]), i = n[3], a = t.match("x") ? t : `${t}x`;
|
|
3513
|
-
return
|
|
3522
|
+
return rr(`${r[0]}_${a}${i}`);
|
|
3514
3523
|
}
|
|
3515
3524
|
return null;
|
|
3516
3525
|
}
|
|
@@ -3526,16 +3535,16 @@ function zt(e) {
|
|
|
3526
3535
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [io(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3527
3536
|
}
|
|
3528
3537
|
function oo(e) {
|
|
3529
|
-
var i, a, s, u, f,
|
|
3538
|
+
var i, a, s, u, f, g;
|
|
3530
3539
|
function t() {
|
|
3531
|
-
var
|
|
3540
|
+
var F;
|
|
3532
3541
|
const v = e.image || e.src;
|
|
3533
3542
|
if (!v || // We can auto add srcset for cdn.builder.io and shopify
|
|
3534
3543
|
// images, otherwise you can supply this prop manually
|
|
3535
3544
|
!(v.match(/builder\.io/) || v.match(/cdn\.shopify\.com/)))
|
|
3536
3545
|
return e.srcset;
|
|
3537
3546
|
if (!e.noWebp) {
|
|
3538
|
-
if (e.srcset && ((
|
|
3547
|
+
if (e.srcset && ((F = e.image) != null && F.includes("builder.io/api/v1/image"))) {
|
|
3539
3548
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3540
3549
|
return console.debug("Removed given srcset"), zt(v);
|
|
3541
3550
|
} else if (e.image && !e.srcset)
|
|
@@ -3561,8 +3570,8 @@ function oo(e) {
|
|
|
3561
3570
|
}, []), /* @__PURE__ */ se(K, { children: [
|
|
3562
3571
|
/* @__PURE__ */ se(K, { children: [
|
|
3563
3572
|
/* @__PURE__ */ se("picture", { children: [
|
|
3564
|
-
n() ? /* @__PURE__ */
|
|
3565
|
-
/* @__PURE__ */
|
|
3573
|
+
n() ? /* @__PURE__ */ m("source", { type: "image/webp", srcSet: n() }) : null,
|
|
3574
|
+
/* @__PURE__ */ m(
|
|
3566
3575
|
"img",
|
|
3567
3576
|
{
|
|
3568
3577
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -3581,7 +3590,7 @@ function oo(e) {
|
|
|
3581
3590
|
}
|
|
3582
3591
|
)
|
|
3583
3592
|
] }),
|
|
3584
|
-
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
3593
|
+
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ m(
|
|
3585
3594
|
"div",
|
|
3586
3595
|
{
|
|
3587
3596
|
className: "builder-image-sizer div-2d6925f2",
|
|
@@ -3590,10 +3599,10 @@ function oo(e) {
|
|
|
3590
3599
|
}
|
|
3591
3600
|
}
|
|
3592
3601
|
) : null,
|
|
3593
|
-
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */
|
|
3594
|
-
!e.fitContent && ((
|
|
3602
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ m(K, { children: e.children }) : null,
|
|
3603
|
+
!e.fitContent && ((g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length) ? /* @__PURE__ */ m("div", { className: "div-2d6925f2-2", children: e.children }) : null
|
|
3595
3604
|
] }),
|
|
3596
|
-
/* @__PURE__ */
|
|
3605
|
+
/* @__PURE__ */ m("style", { children: `.img-2d6925f2 {
|
|
3597
3606
|
opacity: 1;
|
|
3598
3607
|
transition: opacity 0.2s ease-in-out;
|
|
3599
3608
|
}.div-2d6925f2 {
|
|
@@ -3613,7 +3622,7 @@ function oo(e) {
|
|
|
3613
3622
|
] });
|
|
3614
3623
|
}
|
|
3615
3624
|
function ao(e) {
|
|
3616
|
-
return /* @__PURE__ */
|
|
3625
|
+
return /* @__PURE__ */ m(
|
|
3617
3626
|
"section",
|
|
3618
3627
|
{
|
|
3619
3628
|
...e.attributes,
|
|
@@ -3903,15 +3912,15 @@ const so = {
|
|
|
3903
3912
|
onChange: (e) => {
|
|
3904
3913
|
e.delete("srcset"), e.delete("noWebp");
|
|
3905
3914
|
function n(s, u = 6e4) {
|
|
3906
|
-
return new Promise((f,
|
|
3915
|
+
return new Promise((f, g) => {
|
|
3907
3916
|
const b = document.createElement("img");
|
|
3908
3917
|
let v = !1;
|
|
3909
3918
|
b.onload = () => {
|
|
3910
3919
|
v = !0, f(b);
|
|
3911
|
-
}, b.addEventListener("error", (
|
|
3912
|
-
console.warn("Image load failed",
|
|
3920
|
+
}, b.addEventListener("error", (F) => {
|
|
3921
|
+
console.warn("Image load failed", F.error), g(F.error);
|
|
3913
3922
|
}), b.src = s, setTimeout(() => {
|
|
3914
|
-
v ||
|
|
3923
|
+
v || g(new Error("Image load timed out"));
|
|
3915
3924
|
}, u);
|
|
3916
3925
|
});
|
|
3917
3926
|
}
|
|
@@ -4043,12 +4052,13 @@ const so = {
|
|
|
4043
4052
|
defaultValue: "children"
|
|
4044
4053
|
}],
|
|
4045
4054
|
shouldReceiveBuilderProps: {
|
|
4046
|
-
builderContext: !0
|
|
4055
|
+
builderContext: !0,
|
|
4056
|
+
builderComponents: !0
|
|
4047
4057
|
}
|
|
4048
4058
|
};
|
|
4049
4059
|
function po(e) {
|
|
4050
4060
|
var t, n, r;
|
|
4051
|
-
return /* @__PURE__ */
|
|
4061
|
+
return /* @__PURE__ */ m(
|
|
4052
4062
|
"div",
|
|
4053
4063
|
{
|
|
4054
4064
|
style: {
|
|
@@ -4057,12 +4067,13 @@ function po(e) {
|
|
|
4057
4067
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
4058
4068
|
"builder-slot": e.name
|
|
4059
4069
|
},
|
|
4060
|
-
children: /* @__PURE__ */
|
|
4070
|
+
children: /* @__PURE__ */ m(
|
|
4061
4071
|
mn,
|
|
4062
4072
|
{
|
|
4063
4073
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
4064
4074
|
path: `symbol.data.${e.name}`,
|
|
4065
4075
|
context: e.builderContext,
|
|
4076
|
+
registeredComponents: e.builderComponents,
|
|
4066
4077
|
blocks: (r = e.builderContext.rootState) == null ? void 0 : r[e.name]
|
|
4067
4078
|
}
|
|
4068
4079
|
)
|
|
@@ -4132,7 +4143,7 @@ const mo = {
|
|
|
4132
4143
|
}
|
|
4133
4144
|
};
|
|
4134
4145
|
function yo(e) {
|
|
4135
|
-
return /* @__PURE__ */
|
|
4146
|
+
return /* @__PURE__ */ m(
|
|
4136
4147
|
"div",
|
|
4137
4148
|
{
|
|
4138
4149
|
className: "builder-text",
|
|
@@ -4146,7 +4157,7 @@ function yo(e) {
|
|
|
4146
4157
|
} = r;
|
|
4147
4158
|
return String(((f = e.text) == null ? void 0 : f.toString()) || "").replace(
|
|
4148
4159
|
/{{([^}]+)}}/g,
|
|
4149
|
-
(
|
|
4160
|
+
(g, b) => Ve({
|
|
4150
4161
|
code: b,
|
|
4151
4162
|
context: i,
|
|
4152
4163
|
localState: a,
|
|
@@ -4193,28 +4204,28 @@ function bo(e) {
|
|
|
4193
4204
|
return;
|
|
4194
4205
|
const s = t.current.getElementsByTagName("script");
|
|
4195
4206
|
for (let f = 0; f < s.length; f++) {
|
|
4196
|
-
const
|
|
4197
|
-
if (
|
|
4198
|
-
if (n.includes(
|
|
4207
|
+
const g = s[f];
|
|
4208
|
+
if (g.src) {
|
|
4209
|
+
if (n.includes(g.src))
|
|
4199
4210
|
continue;
|
|
4200
|
-
n.push(
|
|
4211
|
+
n.push(g.src);
|
|
4201
4212
|
const b = document.createElement("script");
|
|
4202
|
-
b.async = !0, b.src =
|
|
4203
|
-
} else if (!
|
|
4213
|
+
b.async = !0, b.src = g.src, document.head.appendChild(b);
|
|
4214
|
+
} else if (!g.type || [
|
|
4204
4215
|
"text/javascript",
|
|
4205
4216
|
"application/javascript",
|
|
4206
4217
|
"application/ecmascript"
|
|
4207
|
-
].includes(
|
|
4208
|
-
if (i.includes(
|
|
4218
|
+
].includes(g.type)) {
|
|
4219
|
+
if (i.includes(g.innerText))
|
|
4209
4220
|
continue;
|
|
4210
4221
|
try {
|
|
4211
|
-
i.push(
|
|
4222
|
+
i.push(g.innerText), new Function(g.innerText)();
|
|
4212
4223
|
} catch (b) {
|
|
4213
4224
|
console.warn("`CustomCode`: Error running script:", b);
|
|
4214
4225
|
}
|
|
4215
4226
|
}
|
|
4216
4227
|
}
|
|
4217
|
-
}, []), /* @__PURE__ */
|
|
4228
|
+
}, []), /* @__PURE__ */ m(
|
|
4218
4229
|
"div",
|
|
4219
4230
|
{
|
|
4220
4231
|
ref: t,
|
|
@@ -4244,24 +4255,24 @@ function Co(e) {
|
|
|
4244
4255
|
function f() {
|
|
4245
4256
|
if (!t.current || !t.current.getElementsByTagName)
|
|
4246
4257
|
return;
|
|
4247
|
-
const
|
|
4248
|
-
for (let b = 0; b <
|
|
4249
|
-
const v =
|
|
4258
|
+
const g = t.current.getElementsByTagName("script");
|
|
4259
|
+
for (let b = 0; b < g.length; b++) {
|
|
4260
|
+
const v = g[b];
|
|
4250
4261
|
if (v.src && !n.includes(v.src)) {
|
|
4251
4262
|
n.push(v.src);
|
|
4252
|
-
const
|
|
4253
|
-
|
|
4263
|
+
const F = document.createElement("script");
|
|
4264
|
+
F.async = !0, F.src = v.src, document.head.appendChild(F);
|
|
4254
4265
|
} else if (ko(v) && !i.includes(v.innerText))
|
|
4255
4266
|
try {
|
|
4256
4267
|
i.push(v.innerText), new Function(v.innerText)();
|
|
4257
|
-
} catch (
|
|
4258
|
-
console.warn("`Embed`: Error running script:",
|
|
4268
|
+
} catch (F) {
|
|
4269
|
+
console.warn("`Embed`: Error running script:", F);
|
|
4259
4270
|
}
|
|
4260
4271
|
}
|
|
4261
4272
|
}
|
|
4262
4273
|
return Q(() => {
|
|
4263
4274
|
t.current && !s && (u(!0), f());
|
|
4264
|
-
}, [t.current, s]), /* @__PURE__ */
|
|
4275
|
+
}, [t.current, s]), /* @__PURE__ */ m(
|
|
4265
4276
|
"div",
|
|
4266
4277
|
{
|
|
4267
4278
|
className: "builder-embed",
|
|
@@ -4286,7 +4297,7 @@ const wo = {
|
|
|
4286
4297
|
static: !0
|
|
4287
4298
|
};
|
|
4288
4299
|
function Eo(e) {
|
|
4289
|
-
return /* @__PURE__ */
|
|
4300
|
+
return /* @__PURE__ */ m(
|
|
4290
4301
|
"img",
|
|
4291
4302
|
{
|
|
4292
4303
|
style: {
|
|
@@ -4386,7 +4397,7 @@ const Io = {
|
|
|
4386
4397
|
}
|
|
4387
4398
|
};
|
|
4388
4399
|
function To(e) {
|
|
4389
|
-
var r, i, a, s, u, f,
|
|
4400
|
+
var r, i, a, s, u, f, g;
|
|
4390
4401
|
function t() {
|
|
4391
4402
|
return {
|
|
4392
4403
|
...e.autoPlay === !0 ? {
|
|
@@ -4418,7 +4429,7 @@ function To(e) {
|
|
|
4418
4429
|
position: "relative"
|
|
4419
4430
|
},
|
|
4420
4431
|
children: [
|
|
4421
|
-
/* @__PURE__ */
|
|
4432
|
+
/* @__PURE__ */ m(
|
|
4422
4433
|
"video",
|
|
4423
4434
|
{
|
|
4424
4435
|
className: "builder-video",
|
|
@@ -4440,10 +4451,10 @@ function To(e) {
|
|
|
4440
4451
|
},
|
|
4441
4452
|
src: e.video || "no-src",
|
|
4442
4453
|
poster: e.posterImage,
|
|
4443
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
4454
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ m("source", { type: "video/mp4", src: e.video })
|
|
4444
4455
|
}
|
|
4445
4456
|
),
|
|
4446
|
-
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */
|
|
4457
|
+
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ m(
|
|
4447
4458
|
"div",
|
|
4448
4459
|
{
|
|
4449
4460
|
style: {
|
|
@@ -4454,7 +4465,7 @@ function To(e) {
|
|
|
4454
4465
|
}
|
|
4455
4466
|
}
|
|
4456
4467
|
) : null,
|
|
4457
|
-
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */
|
|
4468
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ m(
|
|
4458
4469
|
"div",
|
|
4459
4470
|
{
|
|
4460
4471
|
style: {
|
|
@@ -4465,7 +4476,7 @@ function To(e) {
|
|
|
4465
4476
|
children: e.children
|
|
4466
4477
|
}
|
|
4467
4478
|
) : null,
|
|
4468
|
-
(
|
|
4479
|
+
(g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length && !e.fitContent ? /* @__PURE__ */ m(
|
|
4469
4480
|
"div",
|
|
4470
4481
|
{
|
|
4471
4482
|
style: {
|
|
@@ -4498,8 +4509,8 @@ const Ao = () => [{
|
|
|
4498
4509
|
}, {
|
|
4499
4510
|
component: To,
|
|
4500
4511
|
...Io
|
|
4501
|
-
}],
|
|
4502
|
-
component:
|
|
4512
|
+
}], ir = () => [{
|
|
4513
|
+
component: ri,
|
|
4503
4514
|
...so
|
|
4504
4515
|
}, {
|
|
4505
4516
|
component: to,
|
|
@@ -4612,27 +4623,27 @@ const Ao = () => [{
|
|
|
4612
4623
|
thisScriptEl?.remove();
|
|
4613
4624
|
}
|
|
4614
4625
|
return;
|
|
4615
|
-
}`,
|
|
4626
|
+
}`, wr = "builderIoAbTest", Er = "builderIoRenderContent", gt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4616
4627
|
...t,
|
|
4617
4628
|
testVariationId: t.id,
|
|
4618
4629
|
id: e == null ? void 0 : e.id
|
|
4619
4630
|
})), Oo = ({
|
|
4620
4631
|
canTrack: e,
|
|
4621
4632
|
content: t
|
|
4622
|
-
}) => !(!(gt(t).length > 0) || !e || We()), Po = (e) => e === "react" || e === "reactNative",
|
|
4623
|
-
window.${
|
|
4624
|
-
window.${
|
|
4633
|
+
}) => !(!(gt(t).length > 0) || !e || We()), Po = (e) => e === "react" || e === "reactNative", Ir = Po(je), No = () => `
|
|
4634
|
+
window.${wr} = ${jo}
|
|
4635
|
+
window.${Er} = ${Ro}
|
|
4625
4636
|
`, Bo = (e, t) => `
|
|
4626
|
-
window.${
|
|
4627
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4637
|
+
window.${wr}(
|
|
4638
|
+
"${t}",${JSON.stringify(e)}, ${Ir}
|
|
4628
4639
|
)`, Mo = ({
|
|
4629
4640
|
contentId: e,
|
|
4630
4641
|
variationId: t
|
|
4631
|
-
}) => `window.${
|
|
4632
|
-
"${t}", "${e}", ${
|
|
4642
|
+
}) => `window.${Er}(
|
|
4643
|
+
"${t}", "${e}", ${Ir}
|
|
4633
4644
|
)`;
|
|
4634
4645
|
function Zt(e) {
|
|
4635
|
-
return /* @__PURE__ */
|
|
4646
|
+
return /* @__PURE__ */ m(
|
|
4636
4647
|
"script",
|
|
4637
4648
|
{
|
|
4638
4649
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -4641,7 +4652,7 @@ function Zt(e) {
|
|
|
4641
4652
|
}
|
|
4642
4653
|
);
|
|
4643
4654
|
}
|
|
4644
|
-
const Do =
|
|
4655
|
+
const Do = Qr({
|
|
4645
4656
|
content: null,
|
|
4646
4657
|
context: {},
|
|
4647
4658
|
localState: void 0,
|
|
@@ -4656,7 +4667,7 @@ const Do = Zr({
|
|
|
4656
4667
|
BlocksWrapperProps: {},
|
|
4657
4668
|
nonce: ""
|
|
4658
4669
|
});
|
|
4659
|
-
function
|
|
4670
|
+
function or(e) {
|
|
4660
4671
|
return Math.round(e * 1e3) / 1e3;
|
|
4661
4672
|
}
|
|
4662
4673
|
const Fo = (e, t, n = !0) => {
|
|
@@ -4673,11 +4684,11 @@ const Fo = (e, t, n = !0) => {
|
|
|
4673
4684
|
}, Wo = (e) => Fo(e, (t) => {
|
|
4674
4685
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4675
4686
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4676
|
-
}),
|
|
4687
|
+
}), ar = ({
|
|
4677
4688
|
event: e,
|
|
4678
4689
|
target: t
|
|
4679
4690
|
}) => {
|
|
4680
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left, i = e.clientY - n.top, a =
|
|
4691
|
+
const n = t.getBoundingClientRect(), r = e.clientX - n.left, i = e.clientY - n.top, a = or(r / n.width), s = or(i / n.height);
|
|
4681
4692
|
return {
|
|
4682
4693
|
x: a,
|
|
4683
4694
|
y: s
|
|
@@ -4687,11 +4698,11 @@ const Fo = (e, t, n = !0) => {
|
|
|
4687
4698
|
return {
|
|
4688
4699
|
targetBuilderElement: r || void 0,
|
|
4689
4700
|
metadata: {
|
|
4690
|
-
targetOffset: t ?
|
|
4701
|
+
targetOffset: t ? ar({
|
|
4691
4702
|
event: e,
|
|
4692
4703
|
target: t
|
|
4693
4704
|
}) : void 0,
|
|
4694
|
-
builderTargetOffset: n ?
|
|
4705
|
+
builderTargetOffset: n ? ar({
|
|
4695
4706
|
event: e,
|
|
4696
4707
|
target: n
|
|
4697
4708
|
}) : void 0,
|
|
@@ -4703,9 +4714,9 @@ async function Lo({
|
|
|
4703
4714
|
key: e,
|
|
4704
4715
|
value: t
|
|
4705
4716
|
}) {
|
|
4706
|
-
return
|
|
4717
|
+
return Gr(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
|
|
4707
4718
|
}
|
|
4708
|
-
function
|
|
4719
|
+
function sr(e, ...t) {
|
|
4709
4720
|
const n = Object(e);
|
|
4710
4721
|
for (let r = 1; r < arguments.length; r++) {
|
|
4711
4722
|
const i = arguments[r];
|
|
@@ -4738,8 +4749,8 @@ function Ho(e) {
|
|
|
4738
4749
|
return;
|
|
4739
4750
|
}
|
|
4740
4751
|
Array.from(t).forEach((n) => {
|
|
4741
|
-
_o(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
4742
|
-
n.style.transition = `all ${e.duration}s ${hn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
4752
|
+
_o(e, n), n.style.transition = "none", n.style.transitionDelay = "0", sr(n.style, e.steps[0].styles), setTimeout(() => {
|
|
4753
|
+
n.style.transition = `all ${e.duration}s ${hn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), sr(n.style, e.steps[1].styles), setTimeout(() => {
|
|
4743
4754
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
4744
4755
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
4745
4756
|
});
|
|
@@ -4760,11 +4771,11 @@ font-weight: 400;
|
|
|
4760
4771
|
for (const u in e.files) {
|
|
4761
4772
|
if (!(String(Number(u)) === u))
|
|
4762
4773
|
continue;
|
|
4763
|
-
const
|
|
4764
|
-
|
|
4774
|
+
const g = e.files[u];
|
|
4775
|
+
g && g !== r && (i += `
|
|
4765
4776
|
@font-face {
|
|
4766
4777
|
font-family: "${t}";
|
|
4767
|
-
src: url('${
|
|
4778
|
+
src: url('${g}') format('woff2');
|
|
4768
4779
|
font-display: fallback;
|
|
4769
4780
|
font-weight: ${u};
|
|
4770
4781
|
}
|
|
@@ -4798,29 +4809,29 @@ font-weight: ${u};
|
|
|
4798
4809
|
}
|
|
4799
4810
|
`, Xo = (e) => e ? "" : Yo, Jo = (e) => `variant-${e}`;
|
|
4800
4811
|
function qo(e) {
|
|
4801
|
-
var oe, $, ee,
|
|
4812
|
+
var oe, $, ee, T, Ee, _, Ie;
|
|
4802
4813
|
const t = bt(null);
|
|
4803
|
-
function n(
|
|
4814
|
+
function n(A) {
|
|
4804
4815
|
var B, L;
|
|
4805
4816
|
const x = {
|
|
4806
4817
|
...e.builderContextSignal.rootState,
|
|
4807
|
-
...
|
|
4818
|
+
...A
|
|
4808
4819
|
};
|
|
4809
4820
|
e.builderContextSignal.rootSetState ? (L = (B = e.builderContextSignal).rootSetState) == null || L.call(B, x) : e.builderContextSignal.rootState = x;
|
|
4810
4821
|
}
|
|
4811
|
-
function r(
|
|
4812
|
-
var B, L,
|
|
4822
|
+
function r(A) {
|
|
4823
|
+
var B, L, D, J, le;
|
|
4813
4824
|
const x = {
|
|
4814
4825
|
...e.builderContextSignal.content,
|
|
4815
|
-
...
|
|
4826
|
+
...A,
|
|
4816
4827
|
data: {
|
|
4817
4828
|
...(B = e.builderContextSignal.content) == null ? void 0 : B.data,
|
|
4818
|
-
...
|
|
4829
|
+
...A == null ? void 0 : A.data
|
|
4819
4830
|
},
|
|
4820
4831
|
meta: {
|
|
4821
4832
|
...(L = e.builderContextSignal.content) == null ? void 0 : L.meta,
|
|
4822
|
-
...
|
|
4823
|
-
breakpoints: ((
|
|
4833
|
+
...A == null ? void 0 : A.meta,
|
|
4834
|
+
breakpoints: ((D = A == null ? void 0 : A.meta) == null ? void 0 : D.breakpoints) || ((le = (J = e.builderContextSignal.content) == null ? void 0 : J.meta) == null ? void 0 : le.breakpoints)
|
|
4824
4835
|
}
|
|
4825
4836
|
};
|
|
4826
4837
|
Lo({
|
|
@@ -4839,15 +4850,15 @@ function qo(e) {
|
|
|
4839
4850
|
const [a, s] = ye(
|
|
4840
4851
|
() => e.contentWrapper || "div"
|
|
4841
4852
|
);
|
|
4842
|
-
function u(
|
|
4843
|
-
return
|
|
4853
|
+
function u(A) {
|
|
4854
|
+
return zr({
|
|
4844
4855
|
model: e.model,
|
|
4845
4856
|
trustedHosts: e.trustedHosts,
|
|
4846
4857
|
callbacks: {
|
|
4847
4858
|
configureSdk: (x) => {
|
|
4848
|
-
var
|
|
4859
|
+
var D;
|
|
4849
4860
|
const { breakpoints: B, contentId: L } = x;
|
|
4850
|
-
!L || L !== ((
|
|
4861
|
+
!L || L !== ((D = e.builderContextSignal.content) == null ? void 0 : D.id) || B && r({
|
|
4851
4862
|
meta: {
|
|
4852
4863
|
breakpoints: B
|
|
4853
4864
|
}
|
|
@@ -4860,13 +4871,13 @@ function qo(e) {
|
|
|
4860
4871
|
r(x);
|
|
4861
4872
|
}
|
|
4862
4873
|
}
|
|
4863
|
-
})(
|
|
4874
|
+
})(A);
|
|
4864
4875
|
}
|
|
4865
4876
|
function f() {
|
|
4866
4877
|
var x, B;
|
|
4867
|
-
const
|
|
4868
|
-
|
|
4869
|
-
code:
|
|
4878
|
+
const A = (B = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : B.jsCode;
|
|
4879
|
+
A && Ve({
|
|
4880
|
+
code: A,
|
|
4870
4881
|
context: e.context || {},
|
|
4871
4882
|
localState: void 0,
|
|
4872
4883
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4877,30 +4888,30 @@ function qo(e) {
|
|
|
4877
4888
|
enableCache: !1
|
|
4878
4889
|
});
|
|
4879
4890
|
}
|
|
4880
|
-
const [
|
|
4881
|
-
function
|
|
4891
|
+
const [g, b] = ye(() => ({})), [v, F] = ye(() => ({})), [N, W] = ye(() => !1);
|
|
4892
|
+
function E(A) {
|
|
4882
4893
|
var x, B;
|
|
4883
4894
|
if (e.builderContextSignal.content) {
|
|
4884
|
-
const L = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId,
|
|
4895
|
+
const L = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, D = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
|
|
4885
4896
|
Gn({
|
|
4886
4897
|
type: "click",
|
|
4887
4898
|
canTrack: vt(e.canTrack),
|
|
4888
|
-
contentId:
|
|
4899
|
+
contentId: D,
|
|
4889
4900
|
apiKey: e.apiKey,
|
|
4890
|
-
variationId: L !==
|
|
4891
|
-
...Uo(
|
|
4892
|
-
unique: !
|
|
4901
|
+
variationId: L !== D ? L : void 0,
|
|
4902
|
+
...Uo(A),
|
|
4903
|
+
unique: !N
|
|
4893
4904
|
});
|
|
4894
4905
|
}
|
|
4895
|
-
|
|
4906
|
+
N || W(!0);
|
|
4896
4907
|
}
|
|
4897
|
-
function
|
|
4908
|
+
function M() {
|
|
4898
4909
|
var x, B, L;
|
|
4899
|
-
const
|
|
4900
|
-
Object.entries(
|
|
4901
|
-
if (!J || v[
|
|
4910
|
+
const A = (L = (B = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : B.httpRequests) != null ? L : {};
|
|
4911
|
+
Object.entries(A).forEach(([D, J]) => {
|
|
4912
|
+
if (!J || v[D] || g[D] && !Ce())
|
|
4902
4913
|
return;
|
|
4903
|
-
v[
|
|
4914
|
+
v[D] = !0;
|
|
4904
4915
|
const le = J.replace(
|
|
4905
4916
|
/{{([^}]+)}}/g,
|
|
4906
4917
|
(ce, lt) => String(
|
|
@@ -4914,18 +4925,18 @@ function qo(e) {
|
|
|
4914
4925
|
})
|
|
4915
4926
|
)
|
|
4916
4927
|
);
|
|
4917
|
-
|
|
4928
|
+
Yr(le).then((ce) => ce.json()).then((ce) => {
|
|
4918
4929
|
n({
|
|
4919
|
-
[
|
|
4920
|
-
}),
|
|
4930
|
+
[D]: ce
|
|
4931
|
+
}), g[D] = !0;
|
|
4921
4932
|
}).catch((ce) => {
|
|
4922
4933
|
console.error("error fetching dynamic data", J, ce);
|
|
4923
4934
|
}).finally(() => {
|
|
4924
|
-
v[
|
|
4935
|
+
v[D] = !1;
|
|
4925
4936
|
});
|
|
4926
4937
|
});
|
|
4927
4938
|
}
|
|
4928
|
-
function
|
|
4939
|
+
function I() {
|
|
4929
4940
|
Ce() && window.dispatchEvent(
|
|
4930
4941
|
new CustomEvent(
|
|
4931
4942
|
"builder:component:stateChange",
|
|
@@ -4940,8 +4951,8 @@ function qo(e) {
|
|
|
4940
4951
|
)
|
|
4941
4952
|
);
|
|
4942
4953
|
}
|
|
4943
|
-
function y(
|
|
4944
|
-
window.addEventListener("message", u),
|
|
4954
|
+
function y(A) {
|
|
4955
|
+
window.addEventListener("message", u), Xr(), Jr({
|
|
4945
4956
|
...e.locale ? {
|
|
4946
4957
|
locale: e.locale
|
|
4947
4958
|
} : {},
|
|
@@ -4955,18 +4966,18 @@ function qo(e) {
|
|
|
4955
4966
|
e.builderContextSignal.componentInfos
|
|
4956
4967
|
).forEach((x) => {
|
|
4957
4968
|
var L;
|
|
4958
|
-
const B =
|
|
4969
|
+
const B = qr(x);
|
|
4959
4970
|
(L = window.parent) == null || L.postMessage(B, "*");
|
|
4960
4971
|
}), window.addEventListener(
|
|
4961
4972
|
"builder:component:stateChangeListenerActivated",
|
|
4962
|
-
|
|
4973
|
+
I
|
|
4963
4974
|
);
|
|
4964
4975
|
}
|
|
4965
|
-
function V(
|
|
4976
|
+
function V(A) {
|
|
4966
4977
|
const x = new URL(location.href).searchParams, B = x.get("builder.preview"), L = x.get(
|
|
4967
4978
|
`builder.overrides.${B}`
|
|
4968
|
-
),
|
|
4969
|
-
B === e.model &&
|
|
4979
|
+
), D = x.get("apiKey") || x.get("builder.space");
|
|
4980
|
+
B === e.model && D === e.apiKey && (!e.content || L === e.content.id) && ur({
|
|
4970
4981
|
model: e.model,
|
|
4971
4982
|
apiKey: e.apiKey,
|
|
4972
4983
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -4974,10 +4985,10 @@ function qo(e) {
|
|
|
4974
4985
|
J && r(J);
|
|
4975
4986
|
});
|
|
4976
4987
|
}
|
|
4977
|
-
const G =
|
|
4988
|
+
const G = ei();
|
|
4978
4989
|
return Q(() => {
|
|
4979
|
-
var
|
|
4980
|
-
return (
|
|
4990
|
+
var A;
|
|
4991
|
+
return (A = t.current) == null || A.addEventListener(
|
|
4981
4992
|
"initeditingbldr",
|
|
4982
4993
|
y
|
|
4983
4994
|
), () => {
|
|
@@ -4988,8 +4999,8 @@ function qo(e) {
|
|
|
4988
4999
|
);
|
|
4989
5000
|
};
|
|
4990
5001
|
}, []), Q(() => {
|
|
4991
|
-
var
|
|
4992
|
-
return (
|
|
5002
|
+
var A;
|
|
5003
|
+
return (A = t.current) == null || A.addEventListener(
|
|
4993
5004
|
"initpreviewingbldr",
|
|
4994
5005
|
V
|
|
4995
5006
|
), () => {
|
|
@@ -5000,31 +5011,31 @@ function qo(e) {
|
|
|
5000
5011
|
);
|
|
5001
5012
|
};
|
|
5002
5013
|
}, []), Q(() => {
|
|
5003
|
-
var
|
|
5014
|
+
var A, x;
|
|
5004
5015
|
if (We()) {
|
|
5005
5016
|
if (Ce() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && vt(e.canTrack)) {
|
|
5006
|
-
const L = (
|
|
5017
|
+
const L = (A = e.builderContextSignal.content) == null ? void 0 : A.testVariationId, D = (x = e.builderContextSignal.content) == null ? void 0 : x.id, J = e.apiKey;
|
|
5007
5018
|
Gn({
|
|
5008
5019
|
type: "impression",
|
|
5009
5020
|
canTrack: !0,
|
|
5010
|
-
contentId:
|
|
5021
|
+
contentId: D,
|
|
5011
5022
|
apiKey: J,
|
|
5012
|
-
variationId: L !==
|
|
5023
|
+
variationId: L !== D ? L : void 0
|
|
5013
5024
|
});
|
|
5014
5025
|
}
|
|
5015
|
-
|
|
5026
|
+
cr() && Ce();
|
|
5016
5027
|
}
|
|
5017
5028
|
}, []), Q(() => {
|
|
5018
5029
|
e.apiKey || ot.error(
|
|
5019
5030
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
5020
|
-
), f(),
|
|
5031
|
+
), f(), M(), I();
|
|
5021
5032
|
}, []), Q(() => {
|
|
5022
5033
|
}, [e.content]), Q(() => {
|
|
5023
5034
|
f();
|
|
5024
5035
|
}, [($ = (oe = e.builderContextSignal.content) == null ? void 0 : oe.data) == null ? void 0 : $.jsCode]), Q(() => {
|
|
5025
|
-
|
|
5026
|
-
}, [(
|
|
5027
|
-
|
|
5036
|
+
M();
|
|
5037
|
+
}, [(T = (ee = e.builderContextSignal.content) == null ? void 0 : ee.data) == null ? void 0 : T.httpRequests]), Q(() => {
|
|
5038
|
+
I();
|
|
5028
5039
|
}, [e.builderContextSignal.rootState]), Q(() => {
|
|
5029
5040
|
e.data && n(e.data);
|
|
5030
5041
|
}, [e.data]), Q(() => {
|
|
@@ -5034,13 +5045,13 @@ function qo(e) {
|
|
|
5034
5045
|
}, [e.locale]), Q(() => () => {
|
|
5035
5046
|
We() && (window.removeEventListener("message", u), window.removeEventListener(
|
|
5036
5047
|
"builder:component:stateChangeListenerActivated",
|
|
5037
|
-
|
|
5048
|
+
I
|
|
5038
5049
|
));
|
|
5039
|
-
}, []), /* @__PURE__ */
|
|
5050
|
+
}, []), /* @__PURE__ */ m(Do.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ m(
|
|
5040
5051
|
a,
|
|
5041
5052
|
{
|
|
5042
5053
|
ref: t,
|
|
5043
|
-
onClick: (
|
|
5054
|
+
onClick: (A) => E(A),
|
|
5044
5055
|
"builder-content-id": (Ee = e.builderContextSignal.content) == null ? void 0 : Ee.id,
|
|
5045
5056
|
"builder-model": e.model,
|
|
5046
5057
|
...i(),
|
|
@@ -5063,7 +5074,7 @@ ${Go({
|
|
|
5063
5074
|
})}
|
|
5064
5075
|
${Xo(e.isNestedRender)}
|
|
5065
5076
|
`.trim();
|
|
5066
|
-
return /* @__PURE__ */
|
|
5077
|
+
return /* @__PURE__ */ m(
|
|
5067
5078
|
kt,
|
|
5068
5079
|
{
|
|
5069
5080
|
id: "builderio-content",
|
|
@@ -5100,22 +5111,22 @@ const Qo = ({
|
|
|
5100
5111
|
},
|
|
5101
5112
|
meta: e == null ? void 0 : e.meta
|
|
5102
5113
|
} : void 0;
|
|
5103
|
-
function
|
|
5104
|
-
var i, a, s, u, f,
|
|
5114
|
+
function lr(e) {
|
|
5115
|
+
var i, a, s, u, f, g, b, v, F, N, W;
|
|
5105
5116
|
const t = Mo({
|
|
5106
5117
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5107
5118
|
variationId: (i = e.content) == null ? void 0 : i.testVariationId,
|
|
5108
5119
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5109
5120
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
5110
5121
|
}), n = [
|
|
5111
|
-
...
|
|
5112
|
-
...((s = e.customComponents) == null ? void 0 : s.filter(({ models:
|
|
5122
|
+
...ir(),
|
|
5123
|
+
...((s = e.customComponents) == null ? void 0 : s.filter(({ models: E }) => !(E != null && E.length) || !e.model ? !0 : E.includes(e.model))) || []
|
|
5113
5124
|
].reduce(
|
|
5114
|
-
(
|
|
5115
|
-
...
|
|
5116
|
-
[
|
|
5117
|
-
component:
|
|
5118
|
-
...zn(
|
|
5125
|
+
(E, { component: M, ...I }) => ({
|
|
5126
|
+
...E,
|
|
5127
|
+
[I.name]: {
|
|
5128
|
+
component: M,
|
|
5129
|
+
...zn(I)
|
|
5119
5130
|
}
|
|
5120
5131
|
}),
|
|
5121
5132
|
{}
|
|
@@ -5136,12 +5147,12 @@ function sr(e) {
|
|
|
5136
5147
|
apiKey: e.apiKey,
|
|
5137
5148
|
apiVersion: e.apiVersion,
|
|
5138
5149
|
componentInfos: [
|
|
5139
|
-
...
|
|
5140
|
-
...((u = e.customComponents) == null ? void 0 : u.filter(({ models:
|
|
5150
|
+
...ir(),
|
|
5151
|
+
...((u = e.customComponents) == null ? void 0 : u.filter(({ models: E }) => !(E != null && E.length) || !e.model ? !0 : E.includes(e.model))) || []
|
|
5141
5152
|
].reduce(
|
|
5142
|
-
(
|
|
5143
|
-
...
|
|
5144
|
-
[
|
|
5153
|
+
(E, { component: M, ...I }) => ({
|
|
5154
|
+
...E,
|
|
5155
|
+
[I.name]: zn(I)
|
|
5145
5156
|
}),
|
|
5146
5157
|
{}
|
|
5147
5158
|
),
|
|
@@ -5168,7 +5179,7 @@ function sr(e) {
|
|
|
5168
5179
|
contentWrapperProps: e.contentWrapperProps,
|
|
5169
5180
|
trustedHosts: e.trustedHosts,
|
|
5170
5181
|
children: [
|
|
5171
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
5182
|
+
e.isSsrAbTest ? /* @__PURE__ */ m(
|
|
5172
5183
|
Zt,
|
|
5173
5184
|
{
|
|
5174
5185
|
id: "builderio-variant-visibility",
|
|
@@ -5176,20 +5187,20 @@ function sr(e) {
|
|
|
5176
5187
|
nonce: e.nonce || ""
|
|
5177
5188
|
}
|
|
5178
5189
|
) : null,
|
|
5179
|
-
/* @__PURE__ */
|
|
5190
|
+
/* @__PURE__ */ m(
|
|
5180
5191
|
Zo,
|
|
5181
5192
|
{
|
|
5182
5193
|
nonce: e.nonce || "",
|
|
5183
5194
|
isNestedRender: e.isNestedRender,
|
|
5184
5195
|
contentId: (f = r.content) == null ? void 0 : f.id,
|
|
5185
|
-
cssCode: (b = (
|
|
5186
|
-
customFonts: (
|
|
5196
|
+
cssCode: (b = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : b.cssCode,
|
|
5197
|
+
customFonts: (F = (v = r.content) == null ? void 0 : v.data) == null ? void 0 : F.customFonts
|
|
5187
5198
|
}
|
|
5188
5199
|
),
|
|
5189
|
-
/* @__PURE__ */
|
|
5200
|
+
/* @__PURE__ */ m(
|
|
5190
5201
|
mn,
|
|
5191
5202
|
{
|
|
5192
|
-
blocks: (
|
|
5203
|
+
blocks: (W = (N = r.content) == null ? void 0 : N.data) == null ? void 0 : W.blocks,
|
|
5193
5204
|
context: r,
|
|
5194
5205
|
registeredComponents: n,
|
|
5195
5206
|
linkComponent: e.linkComponent
|
|
@@ -5220,13 +5231,13 @@ function ta(e) {
|
|
|
5220
5231
|
return t ? {
|
|
5221
5232
|
...e.content,
|
|
5222
5233
|
testVariationId: (u = e.content) == null ? void 0 : u.id
|
|
5223
|
-
} :
|
|
5234
|
+
} : Zr({
|
|
5224
5235
|
item: e.content,
|
|
5225
5236
|
canTrack: vt(e.canTrack)
|
|
5226
5237
|
});
|
|
5227
5238
|
};
|
|
5228
5239
|
return /* @__PURE__ */ se(K, { children: [
|
|
5229
|
-
!e.isNestedRender && je !== "reactNative" ? /* @__PURE__ */
|
|
5240
|
+
!e.isNestedRender && je !== "reactNative" ? /* @__PURE__ */ m(
|
|
5230
5241
|
Zt,
|
|
5231
5242
|
{
|
|
5232
5243
|
id: "builderio-init-variants-fns",
|
|
@@ -5235,7 +5246,7 @@ function ta(e) {
|
|
|
5235
5246
|
}
|
|
5236
5247
|
) : null,
|
|
5237
5248
|
t ? /* @__PURE__ */ se(K, { children: [
|
|
5238
|
-
/* @__PURE__ */
|
|
5249
|
+
/* @__PURE__ */ m(
|
|
5239
5250
|
kt,
|
|
5240
5251
|
{
|
|
5241
5252
|
id: "builderio-variants",
|
|
@@ -5243,7 +5254,7 @@ function ta(e) {
|
|
|
5243
5254
|
nonce: e.nonce || ""
|
|
5244
5255
|
}
|
|
5245
5256
|
),
|
|
5246
|
-
/* @__PURE__ */
|
|
5257
|
+
/* @__PURE__ */ m(
|
|
5247
5258
|
Zt,
|
|
5248
5259
|
{
|
|
5249
5260
|
id: "builderio-variants-visibility",
|
|
@@ -5251,8 +5262,8 @@ function ta(e) {
|
|
|
5251
5262
|
nonce: e.nonce || ""
|
|
5252
5263
|
}
|
|
5253
5264
|
),
|
|
5254
|
-
(a = gt(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */
|
|
5255
|
-
|
|
5265
|
+
(a = gt(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */ m(
|
|
5266
|
+
lr,
|
|
5256
5267
|
{
|
|
5257
5268
|
isNestedRender: e.isNestedRender,
|
|
5258
5269
|
nonce: e.nonce,
|
|
@@ -5278,8 +5289,8 @@ function ta(e) {
|
|
|
5278
5289
|
s.testVariationId
|
|
5279
5290
|
))
|
|
5280
5291
|
] }) : null,
|
|
5281
|
-
/* @__PURE__ */
|
|
5282
|
-
|
|
5292
|
+
/* @__PURE__ */ m(
|
|
5293
|
+
lr,
|
|
5283
5294
|
{
|
|
5284
5295
|
nonce: e.nonce,
|
|
5285
5296
|
isNestedRender: e.isNestedRender,
|
|
@@ -5311,7 +5322,7 @@ const na = async ({
|
|
|
5311
5322
|
}) => {
|
|
5312
5323
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5313
5324
|
(e != null && e.apiKey))
|
|
5314
|
-
return
|
|
5325
|
+
return ur({
|
|
5315
5326
|
model: t.model,
|
|
5316
5327
|
apiKey: e.apiKey,
|
|
5317
5328
|
apiVersion: e.apiVersion,
|
|
@@ -5325,24 +5336,24 @@ const na = async ({
|
|
|
5325
5336
|
});
|
|
5326
5337
|
};
|
|
5327
5338
|
async function ra(e) {
|
|
5328
|
-
var a, s, u, f,
|
|
5339
|
+
var a, s, u, f, g;
|
|
5329
5340
|
const t = function() {
|
|
5330
5341
|
return "div";
|
|
5331
5342
|
}, n = function() {
|
|
5332
5343
|
return "div";
|
|
5333
5344
|
}, r = function() {
|
|
5334
|
-
var v,
|
|
5345
|
+
var v, F;
|
|
5335
5346
|
return [
|
|
5336
5347
|
e.attributes[nt()],
|
|
5337
5348
|
"builder-symbol",
|
|
5338
5349
|
(v = e.symbol) != null && v.inline ? "builder-inline-symbol" : void 0,
|
|
5339
|
-
(
|
|
5350
|
+
(F = e.symbol) != null && F.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5340
5351
|
].filter(Boolean).join(" ");
|
|
5341
5352
|
}, i = ((a = e.symbol) == null ? void 0 : a.content) || await na({
|
|
5342
5353
|
symbol: e.symbol,
|
|
5343
5354
|
builderContextValue: e.builderContext
|
|
5344
5355
|
});
|
|
5345
|
-
return /* @__PURE__ */
|
|
5356
|
+
return /* @__PURE__ */ m("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ m(
|
|
5346
5357
|
ta,
|
|
5347
5358
|
{
|
|
5348
5359
|
nonce: e.builderContext.nonce,
|
|
@@ -5360,7 +5371,7 @@ async function ra(e) {
|
|
|
5360
5371
|
...(f = i == null ? void 0 : i.data) == null ? void 0 : f.state
|
|
5361
5372
|
},
|
|
5362
5373
|
canTrack: e.builderContext.canTrack,
|
|
5363
|
-
model: (
|
|
5374
|
+
model: (g = e.symbol) == null ? void 0 : g.model,
|
|
5364
5375
|
content: i,
|
|
5365
5376
|
linkComponent: e.builderLinkComponent,
|
|
5366
5377
|
blocksWrapper: t(),
|
|
@@ -5371,7 +5382,7 @@ async function ra(e) {
|
|
|
5371
5382
|
export {
|
|
5372
5383
|
mn as Blocks,
|
|
5373
5384
|
Do as BuilderContext,
|
|
5374
|
-
|
|
5385
|
+
ri as Button,
|
|
5375
5386
|
to as Columns,
|
|
5376
5387
|
ta as Content,
|
|
5377
5388
|
no as Fragment,
|