@builder.io/sdk-react-nextjs 0.14.16 → 0.14.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/USE_CLIENT_BUNDLE-a0af5379.cjs +21 -0
- package/lib/{node/USE_CLIENT_BUNDLE-f8067984.js → browser/USE_CLIENT_BUNDLE-b63f19ab.js} +251 -247
- package/lib/{edge/USE_SERVER_BUNDLE-0f9fd6f2.js → browser/USE_SERVER_BUNDLE-60e66f1c.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-b3d619da.cjs → browser/USE_SERVER_BUNDLE-c0e4ee23.cjs} +1 -1
- package/lib/browser/bundle-9732e1d3.cjs +169 -0
- package/lib/browser/{bundle-5c0a9d7a.js → bundle-edd2e835.js} +591 -581
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +4 -4
- package/lib/edge/USE_CLIENT_BUNDLE-0a51f6af.cjs +21 -0
- package/lib/{browser/USE_CLIENT_BUNDLE-30c6c6c1.js → edge/USE_CLIENT_BUNDLE-8bf08d5b.js} +251 -247
- package/lib/{node/USE_SERVER_BUNDLE-e1e73ba6.cjs → edge/USE_SERVER_BUNDLE-7acc7eaf.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-4b52a0c0.js → edge/USE_SERVER_BUNDLE-90c6ce15.js} +1 -1
- package/lib/edge/bundle-af88805d.cjs +189 -0
- package/lib/edge/{bundle-b24e7c9b.js → bundle-e86f8464.js} +998 -988
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +4 -4
- package/lib/node/USE_CLIENT_BUNDLE-8a32af0d.cjs +21 -0
- package/lib/{edge/USE_CLIENT_BUNDLE-5b0b3e9b.js → node/USE_CLIENT_BUNDLE-e4c15aa7.js} +251 -247
- package/lib/{browser/USE_SERVER_BUNDLE-685e6983.js → node/USE_SERVER_BUNDLE-4fd50e3b.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-ce31724e.cjs → node/USE_SERVER_BUNDLE-d6552b77.cjs} +1 -1
- package/lib/node/{bundle-8d3cab60.js → bundle-1280dc1a.js} +257 -245
- package/lib/node/{bundle-0fc157c8.cjs → bundle-23855e1a.cjs} +18 -18
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +4 -4
- package/package.json +1 -1
- package/types/cjs/blocks/columns/columns.types.d.ts +1 -1
- package/types/cjs/blocks/columns/helpers.d.ts +1 -0
- package/types/cjs/blocks/tabs/component-info.d.ts +2 -0
- package/types/cjs/blocks/tabs/index.d.ts +1 -0
- package/types/cjs/blocks/tabs/tabs.d.ts +4 -0
- package/types/cjs/blocks/tabs/tabs.types.d.ts +13 -0
- package/types/cjs/blocks/text/text.types.d.ts +2 -1
- package/types/cjs/components/block/block.helpers.d.ts +4 -2
- package/types/cjs/components/content/components/styles.helpers.d.ts +1 -0
- package/types/cjs/components/dynamic-div.d.ts +15 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/types/targets.d.ts +1 -1
- package/types/esm/blocks/columns/columns.types.d.ts +1 -1
- package/types/esm/blocks/columns/helpers.d.ts +1 -0
- package/types/esm/blocks/tabs/component-info.d.ts +2 -0
- package/types/esm/blocks/tabs/index.d.ts +1 -0
- package/types/esm/blocks/tabs/tabs.d.ts +4 -0
- package/types/esm/blocks/tabs/tabs.types.d.ts +13 -0
- package/types/esm/blocks/text/text.types.d.ts +2 -1
- package/types/esm/components/block/block.helpers.d.ts +4 -2
- package/types/esm/components/content/components/styles.helpers.d.ts +1 -0
- package/types/esm/components/dynamic-div.d.ts +15 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/types/targets.d.ts +1 -1
- package/lib/browser/USE_CLIENT_BUNDLE-026b8026.cjs +0 -21
- package/lib/browser/bundle-9744b895.cjs +0 -169
- package/lib/edge/USE_CLIENT_BUNDLE-9b110136.cjs +0 -21
- package/lib/edge/bundle-f1760904.cjs +0 -189
- package/lib/node/USE_CLIENT_BUNDLE-f9ebade4.cjs +0 -21
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as I, Fragment as ee, jsxs as xe } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { LRUCache as ro } from "lru-cache";
|
|
4
|
+
import { I as oo, B as io, a as ao, D as so, C as lo, E as co, b as uo, V as fo, c as po, F as ho, d as mo, S as go, e as yo } from "./USE_CLIENT_BUNDLE-8bf08d5b.js";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const vo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]),
|
|
7
|
-
switch (
|
|
6
|
+
const vo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ja = (e) => typeof e == "string" && vo.has(e.toLowerCase()), me = "rsc", Yt = () => {
|
|
7
|
+
switch (me) {
|
|
8
8
|
case "react":
|
|
9
9
|
case "reactNative":
|
|
10
10
|
case "rsc":
|
|
@@ -13,6 +13,7 @@ const vo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
|
|
|
13
13
|
case "vue":
|
|
14
14
|
case "solid":
|
|
15
15
|
case "qwik":
|
|
16
|
+
case "angular":
|
|
16
17
|
return "class";
|
|
17
18
|
}
|
|
18
19
|
};
|
|
@@ -27,11 +28,11 @@ function bo(e) {
|
|
|
27
28
|
builderBlock: e
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
|
-
const
|
|
31
|
-
log: (...e) => console.log(
|
|
32
|
-
error: (...e) => console.error(
|
|
33
|
-
warn: (...e) => console.warn(
|
|
34
|
-
debug: (...e) => console.debug(
|
|
31
|
+
const lt = "[Builder.io]: ", Z = {
|
|
32
|
+
log: (...e) => console.log(lt, ...e),
|
|
33
|
+
error: (...e) => console.error(lt, ...e),
|
|
34
|
+
warn: (...e) => console.warn(lt, ...e),
|
|
35
|
+
debug: (...e) => console.debug(lt, ...e)
|
|
35
36
|
};
|
|
36
37
|
function G() {
|
|
37
38
|
return typeof window < "u" && typeof document < "u";
|
|
@@ -73,7 +74,7 @@ const xo = () => {
|
|
|
73
74
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
74
75
|
},
|
|
75
76
|
any() {
|
|
76
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
77
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || me === "reactNative";
|
|
77
78
|
}
|
|
78
79
|
}, n = e.match(/Tablet|iPad/i), r = xo();
|
|
79
80
|
return {
|
|
@@ -152,7 +153,7 @@ const hr = (e, t, n) => {
|
|
|
152
153
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
153
154
|
return r.slice(0, -1).reduce((o, i, s) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
154
155
|
};
|
|
155
|
-
var
|
|
156
|
+
var B, To = function(e) {
|
|
156
157
|
function t(a) {
|
|
157
158
|
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && to.test(String.fromCharCode(a));
|
|
158
159
|
}
|
|
@@ -160,17 +161,17 @@ var U, To = function(e) {
|
|
|
160
161
|
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Wn.test(String.fromCharCode(a));
|
|
161
162
|
}
|
|
162
163
|
function r(a, l) {
|
|
163
|
-
for (var c =
|
|
164
|
-
|
|
165
|
-
var W =
|
|
164
|
+
for (var c = y, d = 1, C = 0; ; ) {
|
|
165
|
+
st.lastIndex = C;
|
|
166
|
+
var W = st.exec(c);
|
|
166
167
|
if (W && W.index < a)
|
|
167
|
-
++d,
|
|
168
|
+
++d, C = W.index + W[0].length;
|
|
168
169
|
else
|
|
169
170
|
break;
|
|
170
171
|
}
|
|
171
172
|
throw c = {
|
|
172
173
|
line: d,
|
|
173
|
-
ab: a -
|
|
174
|
+
ab: a - C
|
|
174
175
|
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = a, l.X = c, l.o = f, l;
|
|
175
176
|
}
|
|
176
177
|
function o(a) {
|
|
@@ -182,35 +183,35 @@ var U, To = function(e) {
|
|
|
182
183
|
};
|
|
183
184
|
}
|
|
184
185
|
function i() {
|
|
185
|
-
this.line = Se, this.ab = f -
|
|
186
|
+
this.line = Se, this.ab = f - le;
|
|
186
187
|
}
|
|
187
188
|
function s(a, l) {
|
|
188
|
-
Ce = f,
|
|
189
|
+
Ce = f, A.C && (Tt = new i()), k = a, p(), te = l, Me = a.m;
|
|
189
190
|
}
|
|
190
191
|
function u() {
|
|
191
|
-
for (var a = f, l =
|
|
192
|
-
++f, c =
|
|
193
|
-
|
|
192
|
+
for (var a = f, l = A.va && A.C && new i(), c = y.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
193
|
+
++f, c = y.charCodeAt(f);
|
|
194
|
+
A.va && A.va(!1, y.slice(a + 2, f), a, f, l, A.C && new i());
|
|
194
195
|
}
|
|
195
196
|
function p() {
|
|
196
197
|
for (; f < ke; ) {
|
|
197
|
-
var a =
|
|
198
|
+
var a = y.charCodeAt(f);
|
|
198
199
|
if (a === 32)
|
|
199
200
|
++f;
|
|
200
201
|
else if (a === 13)
|
|
201
|
-
++f, a =
|
|
202
|
+
++f, a = y.charCodeAt(f), a === 10 && ++f, A.C && (++Se, le = f);
|
|
202
203
|
else if (a === 10 || a === 8232 || a === 8233)
|
|
203
|
-
++f,
|
|
204
|
+
++f, A.C && (++Se, le = f);
|
|
204
205
|
else if (8 < a && 14 > a)
|
|
205
206
|
++f;
|
|
206
207
|
else if (a === 47)
|
|
207
|
-
if (a =
|
|
208
|
+
if (a = y.charCodeAt(f + 1), a === 42) {
|
|
208
209
|
a = void 0;
|
|
209
|
-
var l =
|
|
210
|
-
if (d === -1 && r(f - 2, "Unterminated comment"), f = d + 2,
|
|
211
|
-
for (
|
|
212
|
-
++Se,
|
|
213
|
-
|
|
210
|
+
var l = A.va && A.C && new i(), c = f, d = y.indexOf("*/", f += 2);
|
|
211
|
+
if (d === -1 && r(f - 2, "Unterminated comment"), f = d + 2, A.C)
|
|
212
|
+
for (st.lastIndex = c; (a = st.exec(y)) && a.index < f; )
|
|
213
|
+
++Se, le = a.index + a[0].length;
|
|
214
|
+
A.va && A.va(!0, y.slice(c + 2, d), c, f, l, A.C && new i());
|
|
214
215
|
} else if (a === 47)
|
|
215
216
|
u();
|
|
216
217
|
else
|
|
@@ -223,17 +224,17 @@ var U, To = function(e) {
|
|
|
223
224
|
break;
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
|
-
function
|
|
227
|
+
function b(a) {
|
|
227
228
|
switch (a) {
|
|
228
229
|
case 46:
|
|
229
|
-
a =
|
|
230
|
+
a = y.charCodeAt(f + 1), 48 <= a && 57 >= a ? j(!0) : (++f, s(Bn));
|
|
230
231
|
return;
|
|
231
232
|
case 40:
|
|
232
|
-
return ++f, s(
|
|
233
|
+
return ++f, s(ce);
|
|
233
234
|
case 41:
|
|
234
|
-
return ++f, s(
|
|
235
|
+
return ++f, s(oe);
|
|
235
236
|
case 59:
|
|
236
|
-
return ++f, s(
|
|
237
|
+
return ++f, s(ue);
|
|
237
238
|
case 44:
|
|
238
239
|
return ++f, s(ye);
|
|
239
240
|
case 91:
|
|
@@ -247,10 +248,10 @@ var U, To = function(e) {
|
|
|
247
248
|
case 58:
|
|
248
249
|
return ++f, s(_e);
|
|
249
250
|
case 63:
|
|
250
|
-
return ++f, s(
|
|
251
|
+
return ++f, s(Un);
|
|
251
252
|
case 48:
|
|
252
|
-
if (a =
|
|
253
|
-
f += 2, a =
|
|
253
|
+
if (a = y.charCodeAt(f + 1), a === 120 || a === 88) {
|
|
254
|
+
f += 2, a = N(16), a === null && r(_ + 2, "Expected hexadecimal number"), n(y.charCodeAt(f)) && r(f, "Identifier directly after number"), s(De, a);
|
|
254
255
|
return;
|
|
255
256
|
}
|
|
256
257
|
case 49:
|
|
@@ -262,24 +263,24 @@ var U, To = function(e) {
|
|
|
262
263
|
case 55:
|
|
263
264
|
case 56:
|
|
264
265
|
case 57:
|
|
265
|
-
return
|
|
266
|
+
return j(!1);
|
|
266
267
|
case 34:
|
|
267
268
|
case 39:
|
|
268
269
|
f++;
|
|
269
270
|
for (var l = ""; ; ) {
|
|
270
|
-
f >= ke && r(
|
|
271
|
-
var c =
|
|
271
|
+
f >= ke && r(_, "Unterminated string constant");
|
|
272
|
+
var c = y.charCodeAt(f);
|
|
272
273
|
if (c === a) {
|
|
273
|
-
++f, s(
|
|
274
|
+
++f, s(rt, l);
|
|
274
275
|
break;
|
|
275
276
|
}
|
|
276
277
|
if (c === 92) {
|
|
277
|
-
c =
|
|
278
|
-
var d = /^[0-7]+/.exec(
|
|
278
|
+
c = y.charCodeAt(++f);
|
|
279
|
+
var d = /^[0-7]+/.exec(y.slice(f, f + 3));
|
|
279
280
|
for (d && (d = d[0]); d && 255 < parseInt(d, 8); )
|
|
280
281
|
d = d.slice(0, -1);
|
|
281
282
|
if (d === "0" && (d = null), ++f, d)
|
|
282
|
-
|
|
283
|
+
Q && r(f - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(d, 8)), f += d.length - 1;
|
|
283
284
|
else
|
|
284
285
|
switch (c) {
|
|
285
286
|
case 110:
|
|
@@ -290,13 +291,13 @@ var U, To = function(e) {
|
|
|
290
291
|
l += "\r";
|
|
291
292
|
break;
|
|
292
293
|
case 120:
|
|
293
|
-
l += String.fromCharCode(
|
|
294
|
+
l += String.fromCharCode(R(2));
|
|
294
295
|
break;
|
|
295
296
|
case 117:
|
|
296
|
-
l += String.fromCharCode(
|
|
297
|
+
l += String.fromCharCode(R(4));
|
|
297
298
|
break;
|
|
298
299
|
case 85:
|
|
299
|
-
l += String.fromCharCode(
|
|
300
|
+
l += String.fromCharCode(R(8));
|
|
300
301
|
break;
|
|
301
302
|
case 116:
|
|
302
303
|
l += " ";
|
|
@@ -314,70 +315,70 @@ var U, To = function(e) {
|
|
|
314
315
|
l += "\0";
|
|
315
316
|
break;
|
|
316
317
|
case 13:
|
|
317
|
-
|
|
318
|
+
y.charCodeAt(f) === 10 && ++f;
|
|
318
319
|
case 10:
|
|
319
|
-
|
|
320
|
+
A.C && (le = f, ++Se);
|
|
320
321
|
break;
|
|
321
322
|
default:
|
|
322
323
|
l += String.fromCharCode(c);
|
|
323
324
|
}
|
|
324
325
|
} else
|
|
325
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(
|
|
326
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(_, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
|
|
326
327
|
}
|
|
327
328
|
return;
|
|
328
329
|
case 47:
|
|
329
|
-
a =
|
|
330
|
+
a = y.charCodeAt(f + 1), Me ? (++f, O()) : a === 61 ? m(we, 2) : m(Fn, 1);
|
|
330
331
|
return;
|
|
331
332
|
case 37:
|
|
332
333
|
case 42:
|
|
333
|
-
|
|
334
|
+
y.charCodeAt(f + 1) === 61 ? m(we, 2) : m(qr, 1);
|
|
334
335
|
return;
|
|
335
336
|
case 124:
|
|
336
337
|
case 38:
|
|
337
|
-
l =
|
|
338
|
+
l = y.charCodeAt(f + 1), l === a ? m(a === 124 ? Dn : Ln, 2) : l === 61 ? m(we, 2) : m(a === 124 ? Hr : Gr, 1);
|
|
338
339
|
return;
|
|
339
340
|
case 94:
|
|
340
|
-
|
|
341
|
+
y.charCodeAt(f + 1) === 61 ? m(we, 2) : m(Kr, 1);
|
|
341
342
|
return;
|
|
342
343
|
case 43:
|
|
343
344
|
case 45:
|
|
344
|
-
l =
|
|
345
|
+
l = y.charCodeAt(f + 1), l === a ? l === 45 && y.charCodeAt(f + 2) === 62 && at.test(y.slice(ge, f)) ? (f += 3, u(), p(), x()) : m($r, 2) : l === 61 ? m(we, 2) : m(zr, 1);
|
|
345
346
|
return;
|
|
346
347
|
case 60:
|
|
347
348
|
case 62:
|
|
348
|
-
l =
|
|
349
|
+
l = y.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && y.charCodeAt(f + 2) === 62 ? 3 : 2, y.charCodeAt(f + c) === 61 ? m(we, c + 1) : m(Jr, c)) : l === 33 && a === 60 && y.charCodeAt(f + 2) === 45 && y.charCodeAt(f + 3) === 45 ? (f += 4, u(), p(), x()) : (l === 61 && (c = y.charCodeAt(f + 2) === 61 ? 3 : 2), m(Yr, c));
|
|
349
350
|
return;
|
|
350
351
|
case 61:
|
|
351
352
|
case 33:
|
|
352
|
-
|
|
353
|
+
y.charCodeAt(f + 1) === 61 ? m(Xr, y.charCodeAt(f + 2) === 61 ? 3 : 2) : m(a === 61 ? Mn : Vn, 1);
|
|
353
354
|
return;
|
|
354
355
|
case 126:
|
|
355
356
|
return m(Vn, 1);
|
|
356
357
|
}
|
|
357
358
|
return !1;
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
-
if (a ? f =
|
|
361
|
-
return
|
|
360
|
+
function x(a) {
|
|
361
|
+
if (a ? f = _ + 1 : _ = f, A.C && (It = new i()), a)
|
|
362
|
+
return O();
|
|
362
363
|
if (f >= ke)
|
|
363
364
|
return s(jt);
|
|
364
|
-
if (a =
|
|
365
|
-
return
|
|
366
|
-
if (
|
|
365
|
+
if (a = y.charCodeAt(f), n(a) || a === 92)
|
|
366
|
+
return T();
|
|
367
|
+
if (b(a) === !1) {
|
|
367
368
|
if (a = String.fromCharCode(a), a === "\\" || Wn.test(a))
|
|
368
|
-
return
|
|
369
|
+
return T();
|
|
369
370
|
r(f, "Unexpected character '" + a + "'");
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
373
|
function m(a, l) {
|
|
373
|
-
var c =
|
|
374
|
+
var c = y.slice(f, f + l);
|
|
374
375
|
f += l, s(a, c);
|
|
375
376
|
}
|
|
376
|
-
function
|
|
377
|
+
function O() {
|
|
377
378
|
for (var a, l, c = f; ; ) {
|
|
378
379
|
f >= ke && r(c, "Unterminated regexp");
|
|
379
|
-
var d =
|
|
380
|
-
if (
|
|
380
|
+
var d = y.charAt(f);
|
|
381
|
+
if (at.test(d) && r(c, "Unterminated regexp"), a)
|
|
381
382
|
a = !1;
|
|
382
383
|
else {
|
|
383
384
|
if (d === "[")
|
|
@@ -390,321 +391,321 @@ var U, To = function(e) {
|
|
|
390
391
|
}
|
|
391
392
|
++f;
|
|
392
393
|
}
|
|
393
|
-
a =
|
|
394
|
+
a = y.slice(c, f), ++f, (l = Y()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
394
395
|
try {
|
|
395
|
-
var
|
|
396
|
+
var C = new RegExp(a, l);
|
|
396
397
|
} catch (W) {
|
|
397
398
|
throw W instanceof SyntaxError && r(c, W.message), W;
|
|
398
399
|
}
|
|
399
|
-
s(mn,
|
|
400
|
+
s(mn, C);
|
|
400
401
|
}
|
|
401
|
-
function
|
|
402
|
-
for (var c = f, d = 0,
|
|
403
|
-
var J =
|
|
402
|
+
function N(a, l) {
|
|
403
|
+
for (var c = f, d = 0, C = l === void 0 ? 1 / 0 : l, W = 0; W < C; ++W) {
|
|
404
|
+
var J = y.charCodeAt(f);
|
|
404
405
|
if (J = 97 <= J ? J - 97 + 10 : 65 <= J ? J - 65 + 10 : 48 <= J && 57 >= J ? J - 48 : 1 / 0, J >= a)
|
|
405
406
|
break;
|
|
406
407
|
++f, d = d * a + J;
|
|
407
408
|
}
|
|
408
409
|
return f === c || l !== void 0 && f - c !== l ? null : d;
|
|
409
410
|
}
|
|
410
|
-
function
|
|
411
|
-
var l = f, c = !1, d =
|
|
412
|
-
a ||
|
|
413
|
-
var
|
|
414
|
-
c ?
|
|
411
|
+
function j(a) {
|
|
412
|
+
var l = f, c = !1, d = y.charCodeAt(f) === 48;
|
|
413
|
+
a || N(10) !== null || r(l, "Invalid number"), y.charCodeAt(f) === 46 && (++f, N(10), c = !0), a = y.charCodeAt(f), (a === 69 || a === 101) && (a = y.charCodeAt(++f), a !== 43 && a !== 45 || ++f, N(10) === null && r(l, "Invalid number"), c = !0), n(y.charCodeAt(f)) && r(f, "Identifier directly after number"), a = y.slice(l, f);
|
|
414
|
+
var C;
|
|
415
|
+
c ? C = parseFloat(a) : d && a.length !== 1 ? /[89]/.test(a) || Q ? r(l, "Invalid number") : C = parseInt(a, 8) : C = parseInt(a, 10), s(De, C);
|
|
415
416
|
}
|
|
416
|
-
function
|
|
417
|
-
return a =
|
|
417
|
+
function R(a) {
|
|
418
|
+
return a = N(16, a), a === null && r(_, "Bad character escape sequence"), a;
|
|
418
419
|
}
|
|
419
|
-
function
|
|
420
|
+
function Y() {
|
|
420
421
|
Te = !1;
|
|
421
422
|
for (var a, l = !0, c = f; ; ) {
|
|
422
|
-
var d =
|
|
423
|
+
var d = y.charCodeAt(f);
|
|
423
424
|
if (t(d))
|
|
424
|
-
Te && (a +=
|
|
425
|
+
Te && (a += y.charAt(f)), ++f;
|
|
425
426
|
else if (d === 92) {
|
|
426
|
-
Te || (a =
|
|
427
|
-
var
|
|
428
|
-
|
|
427
|
+
Te || (a = y.slice(c, f)), Te = !0, y.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, d = R(4);
|
|
428
|
+
var C = String.fromCharCode(d);
|
|
429
|
+
C || r(f - 1, "Invalid Unicode escape"), (l ? n(d) : t(d)) || r(f - 4, "Invalid Unicode escape"), a += C;
|
|
429
430
|
} else
|
|
430
431
|
break;
|
|
431
432
|
l = !1;
|
|
432
433
|
}
|
|
433
|
-
return Te ? a :
|
|
434
|
+
return Te ? a : y.slice(c, f);
|
|
434
435
|
}
|
|
435
|
-
function
|
|
436
|
-
var a =
|
|
436
|
+
function T() {
|
|
437
|
+
var a = Y(), l = Ee;
|
|
437
438
|
!Te && Qr(a) && (l = Wr[a]), s(l, a);
|
|
438
439
|
}
|
|
439
|
-
function
|
|
440
|
-
At =
|
|
440
|
+
function g() {
|
|
441
|
+
At = _, ge = Ce, Ot = Tt, x();
|
|
441
442
|
}
|
|
442
|
-
function
|
|
443
|
-
if (
|
|
444
|
-
for (; f <
|
|
445
|
-
|
|
446
|
-
`,
|
|
447
|
-
p(),
|
|
443
|
+
function U(a) {
|
|
444
|
+
if (Q = a, f = _, A.C)
|
|
445
|
+
for (; f < le; )
|
|
446
|
+
le = y.lastIndexOf(`
|
|
447
|
+
`, le - 2) + 1, --Se;
|
|
448
|
+
p(), x();
|
|
448
449
|
}
|
|
449
450
|
function M() {
|
|
450
|
-
this.type = null, this.start =
|
|
451
|
+
this.type = null, this.start = _, this.end = null;
|
|
451
452
|
}
|
|
452
|
-
function
|
|
453
|
+
function X() {
|
|
453
454
|
this.start = It, this.end = null, Et && (this.source = Et);
|
|
454
455
|
}
|
|
455
|
-
function
|
|
456
|
+
function V() {
|
|
456
457
|
var a = new M();
|
|
457
|
-
return
|
|
458
|
+
return A.C && (a.X = new X()), A.vb && (a.sourceFile = A.vb), A.Xa && (a.j = [_, 0]), a;
|
|
458
459
|
}
|
|
459
|
-
function
|
|
460
|
+
function ne(a) {
|
|
460
461
|
var l = new M();
|
|
461
|
-
return l.start = a.start,
|
|
462
|
+
return l.start = a.start, A.C && (l.X = new X(), l.X.start = a.X.start), A.Xa && (l.j = [a.j[0], 0]), l;
|
|
462
463
|
}
|
|
463
|
-
function
|
|
464
|
-
return a.type = l, a.end = ge,
|
|
464
|
+
function E(a, l) {
|
|
465
|
+
return a.type = l, a.end = ge, A.C && (a.X.end = Ot), A.Xa && (a.j[1] = ge), a;
|
|
465
466
|
}
|
|
466
|
-
function
|
|
467
|
+
function Qe(a) {
|
|
467
468
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
468
469
|
}
|
|
469
470
|
function F(a) {
|
|
470
|
-
return
|
|
471
|
+
return k === a ? (g(), !0) : !1;
|
|
471
472
|
}
|
|
472
|
-
function
|
|
473
|
-
return !
|
|
473
|
+
function et() {
|
|
474
|
+
return !A.fc && (k === jt || k === Ie || at.test(y.slice(ge, _)));
|
|
474
475
|
}
|
|
475
476
|
function be() {
|
|
476
|
-
F(
|
|
477
|
+
F(ue) || et() || ae();
|
|
477
478
|
}
|
|
478
|
-
function
|
|
479
|
-
|
|
479
|
+
function D(a) {
|
|
480
|
+
k === a ? g() : ae();
|
|
480
481
|
}
|
|
481
|
-
function
|
|
482
|
-
r(
|
|
482
|
+
function ae() {
|
|
483
|
+
r(_, "Unexpected token");
|
|
483
484
|
}
|
|
484
|
-
function
|
|
485
|
-
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"),
|
|
485
|
+
function tt(a) {
|
|
486
|
+
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), Q && a.type === "Identifier" && it(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
486
487
|
}
|
|
487
|
-
function
|
|
488
|
-
(
|
|
489
|
-
var a =
|
|
488
|
+
function re() {
|
|
489
|
+
(k === Fn || k === we && te === "/=") && x(!0);
|
|
490
|
+
var a = k, l = V();
|
|
490
491
|
switch (a) {
|
|
491
492
|
case Rt:
|
|
492
493
|
case yn:
|
|
493
|
-
|
|
494
|
+
g();
|
|
494
495
|
var c = a === Rt;
|
|
495
|
-
F(
|
|
496
|
-
for (var d = 0; d <
|
|
497
|
-
var
|
|
498
|
-
if ((l.label === null ||
|
|
496
|
+
F(ue) || et() ? l.label = null : k !== Ee ? ae() : (l.label = se(), be());
|
|
497
|
+
for (var d = 0; d < L.length; ++d) {
|
|
498
|
+
var C = L[d];
|
|
499
|
+
if ((l.label === null || C.name === l.label.name) && (C.kind !== null && (c || C.kind === "loop") || l.label && c))
|
|
499
500
|
break;
|
|
500
501
|
}
|
|
501
|
-
return d ===
|
|
502
|
+
return d === L.length && r(l.start, "Unsyntactic " + a.l), E(l, c ? "BreakStatement" : "ContinueStatement");
|
|
502
503
|
case vn:
|
|
503
|
-
return
|
|
504
|
+
return g(), be(), E(l, "DebuggerStatement");
|
|
504
505
|
case Sn:
|
|
505
|
-
return
|
|
506
|
+
return g(), L.push(Dt), l.body = re(), L.pop(), D(Ft), l.test = Be(), be(), E(l, "DoWhileStatement");
|
|
506
507
|
case kn:
|
|
507
|
-
return
|
|
508
|
+
return g(), L.push(Dt), D(ce), k === ue ? bt(l, null) : k === Ut ? (a = V(), g(), pn(a, !0), E(a, "VariableDeclaration"), a.fa.length === 1 && F(ot) ? dn(l, a) : bt(l, a)) : (a = K(!1, !0), F(ot) ? (tt(a), dn(l, a)) : bt(l, a));
|
|
508
509
|
case Nt:
|
|
509
|
-
return
|
|
510
|
+
return g(), kt(l, !0);
|
|
510
511
|
case Cn:
|
|
511
|
-
return
|
|
512
|
+
return g(), l.test = Be(), l.da = re(), l.alternate = F(wn) ? re() : null, E(l, "IfStatement");
|
|
512
513
|
case En:
|
|
513
|
-
return Ve ||
|
|
514
|
-
case
|
|
515
|
-
for (
|
|
516
|
-
|
|
517
|
-
return d &&
|
|
514
|
+
return Ve || A.Ib || r(_, "'return' outside of function"), g(), F(ue) || et() ? l.K = null : (l.K = K(), be()), E(l, "ReturnStatement");
|
|
515
|
+
case Bt:
|
|
516
|
+
for (g(), l.Qb = Be(), l.tb = [], D(Le), L.push(no); k !== Ie; )
|
|
517
|
+
k === Pt || k === bn ? (a = k === Pt, d && E(d, "SwitchCase"), l.tb.push(d = V()), d.da = [], g(), a ? d.test = K() : (c && r(At, "Multiple default clauses"), c = !0, d.test = null), D(_e)) : (d || ae(), d.da.push(re()));
|
|
518
|
+
return d && E(d, "SwitchCase"), g(), L.pop(), E(l, "SwitchStatement");
|
|
518
519
|
case In:
|
|
519
|
-
return
|
|
520
|
+
return g(), at.test(y.slice(ge, _)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), E(l, "ThrowStatement");
|
|
520
521
|
case Tn:
|
|
521
|
-
return
|
|
522
|
-
case
|
|
523
|
-
return
|
|
522
|
+
return g(), l.block = Ue(), l.Ea = null, k === gn && (a = V(), g(), D(ce), a.Ua = se(), Q && it(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), D(oe), a.body = Ue(), l.Ea = E(a, "CatchClause")), l.fb = F(xn) ? Ue() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
523
|
+
case Ut:
|
|
524
|
+
return g(), pn(l), be(), E(l, "VariableDeclaration");
|
|
524
525
|
case Ft:
|
|
525
|
-
return
|
|
526
|
+
return g(), l.test = Be(), L.push(Dt), l.body = re(), L.pop(), E(l, "WhileStatement");
|
|
526
527
|
case An:
|
|
527
|
-
return
|
|
528
|
+
return Q && r(_, "'with' in strict mode"), g(), l.object = Be(), l.body = re(), E(l, "WithStatement");
|
|
528
529
|
case Le:
|
|
529
|
-
return
|
|
530
|
-
case
|
|
531
|
-
return
|
|
530
|
+
return Ue();
|
|
531
|
+
case ue:
|
|
532
|
+
return g(), E(l, "EmptyStatement");
|
|
532
533
|
default:
|
|
533
|
-
if (c = te,
|
|
534
|
-
for (d = 0; d <
|
|
535
|
-
|
|
536
|
-
return
|
|
534
|
+
if (c = te, C = K(), a === Ee && C.type === "Identifier" && F(_e)) {
|
|
535
|
+
for (d = 0; d < L.length; ++d)
|
|
536
|
+
L[d].name === c && r(C.start, "Label '" + c + "' is already declared");
|
|
537
|
+
return L.push({
|
|
537
538
|
name: c,
|
|
538
|
-
kind:
|
|
539
|
-
}), l.body =
|
|
539
|
+
kind: k.W ? "loop" : k === Bt ? "switch" : null
|
|
540
|
+
}), l.body = re(), L.pop(), l.label = C, E(l, "LabeledStatement");
|
|
540
541
|
}
|
|
541
|
-
return l.la =
|
|
542
|
+
return l.la = C, be(), E(l, "ExpressionStatement");
|
|
542
543
|
}
|
|
543
544
|
}
|
|
544
|
-
function
|
|
545
|
-
|
|
545
|
+
function Be() {
|
|
546
|
+
D(ce);
|
|
546
547
|
var a = K();
|
|
547
|
-
return
|
|
548
|
+
return D(oe), a;
|
|
548
549
|
}
|
|
549
|
-
function
|
|
550
|
-
var l =
|
|
551
|
-
for (l.body = [],
|
|
552
|
-
var
|
|
553
|
-
if (l.body.push(
|
|
550
|
+
function Ue(a) {
|
|
551
|
+
var l = V(), c = !0, d = !1;
|
|
552
|
+
for (l.body = [], D(Le); !F(Ie); ) {
|
|
553
|
+
var C = re();
|
|
554
|
+
if (l.body.push(C), c && a && Qe(C)) {
|
|
554
555
|
var W = d;
|
|
555
|
-
|
|
556
|
+
U(d = !0);
|
|
556
557
|
}
|
|
557
558
|
c = !1;
|
|
558
559
|
}
|
|
559
|
-
return d && !W &&
|
|
560
|
+
return d && !W && U(!1), E(l, "BlockStatement");
|
|
560
561
|
}
|
|
561
562
|
function bt(a, l) {
|
|
562
|
-
return a.ua = l,
|
|
563
|
+
return a.ua = l, D(ue), a.test = k === ue ? null : K(), D(ue), a.update = k === oe ? null : K(), D(oe), a.body = re(), L.pop(), E(a, "ForStatement");
|
|
563
564
|
}
|
|
564
565
|
function dn(a, l) {
|
|
565
|
-
return a.left = l, a.right = K(),
|
|
566
|
+
return a.left = l, a.right = K(), D(oe), a.body = re(), L.pop(), E(a, "ForInStatement");
|
|
566
567
|
}
|
|
567
568
|
function pn(a, l) {
|
|
568
569
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
569
|
-
var c =
|
|
570
|
-
if (c.id =
|
|
570
|
+
var c = V();
|
|
571
|
+
if (c.id = se(), Q && it(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = F(Mn) ? K(!0, l) : null, a.fa.push(E(c, "VariableDeclarator")), !F(ye))
|
|
571
572
|
break;
|
|
572
573
|
}
|
|
573
574
|
}
|
|
574
575
|
function K(a, l) {
|
|
575
576
|
var c = St(l);
|
|
576
|
-
if (!a &&
|
|
577
|
-
for (a =
|
|
577
|
+
if (!a && k === ye) {
|
|
578
|
+
for (a = ne(c), a.xb = [c]; F(ye); )
|
|
578
579
|
a.xb.push(St(l));
|
|
579
|
-
return
|
|
580
|
+
return E(a, "SequenceExpression");
|
|
580
581
|
}
|
|
581
582
|
return c;
|
|
582
583
|
}
|
|
583
584
|
function St(a) {
|
|
584
585
|
var l = wt(xt(), -1, a);
|
|
585
|
-
if (F(
|
|
586
|
-
var c =
|
|
587
|
-
c.test = l, c.da = K(!0),
|
|
586
|
+
if (F(Un)) {
|
|
587
|
+
var c = ne(l);
|
|
588
|
+
c.test = l, c.da = K(!0), D(_e), c.alternate = K(!0, a), l = E(c, "ConditionalExpression");
|
|
588
589
|
}
|
|
589
|
-
return
|
|
590
|
+
return k.Cb ? (c = ne(l), c.operator = te, c.left = l, g(), c.right = St(a), tt(l), E(c, "AssignmentExpression")) : l;
|
|
590
591
|
}
|
|
591
592
|
function wt(a, l, c) {
|
|
592
|
-
var d =
|
|
593
|
-
if (d !== null && (!c ||
|
|
594
|
-
var
|
|
595
|
-
return
|
|
593
|
+
var d = k.L;
|
|
594
|
+
if (d !== null && (!c || k !== ot) && d > l) {
|
|
595
|
+
var C = ne(a);
|
|
596
|
+
return C.left = a, C.operator = te, a = k, g(), C.right = wt(xt(), d, c), d = E(C, a === Dn || a === Ln ? "LogicalExpression" : "BinaryExpression"), wt(d, l, c);
|
|
596
597
|
}
|
|
597
598
|
return a;
|
|
598
599
|
}
|
|
599
600
|
function xt() {
|
|
600
|
-
if (
|
|
601
|
-
var a =
|
|
602
|
-
return a.operator = te, Me = a.prefix = !0,
|
|
601
|
+
if (k.prefix) {
|
|
602
|
+
var a = V(), l = k.$b;
|
|
603
|
+
return a.operator = te, Me = a.prefix = !0, g(), a.K = xt(), l ? tt(a.K) : Q && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), E(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
603
604
|
}
|
|
604
|
-
for (l = Fe(
|
|
605
|
-
a =
|
|
605
|
+
for (l = Fe(nt()); k.cc && !et(); )
|
|
606
|
+
a = ne(l), a.operator = te, a.prefix = !1, a.K = l, tt(l), g(), l = E(a, "UpdateExpression");
|
|
606
607
|
return l;
|
|
607
608
|
}
|
|
608
609
|
function Fe(a, l) {
|
|
609
|
-
if (F(
|
|
610
|
-
var c =
|
|
611
|
-
return c.object = a, c.Wa =
|
|
610
|
+
if (F(Bn)) {
|
|
611
|
+
var c = ne(a);
|
|
612
|
+
return c.object = a, c.Wa = se(!0), c.bb = !1, Fe(E(c, "MemberExpression"), l);
|
|
612
613
|
}
|
|
613
|
-
return F(Mt) ? (c =
|
|
614
|
+
return F(Mt) ? (c = ne(a), c.object = a, c.Wa = K(), c.bb = !0, D(Vt), Fe(E(c, "MemberExpression"), l)) : !l && F(ce) ? (c = ne(a), c.callee = a, c.arguments = Ct(oe, !1), Fe(E(c, "CallExpression"), l)) : a;
|
|
614
615
|
}
|
|
615
|
-
function
|
|
616
|
-
switch (
|
|
616
|
+
function nt() {
|
|
617
|
+
switch (k) {
|
|
617
618
|
case jn:
|
|
618
|
-
var a =
|
|
619
|
-
return
|
|
619
|
+
var a = V();
|
|
620
|
+
return g(), E(a, "ThisExpression");
|
|
620
621
|
case Ee:
|
|
621
|
-
return
|
|
622
|
+
return se();
|
|
622
623
|
case De:
|
|
623
|
-
case
|
|
624
|
+
case rt:
|
|
624
625
|
case mn:
|
|
625
|
-
return a =
|
|
626
|
+
return a = V(), a.value = te, a.raw = y.slice(_, Ce), g(), E(a, "Literal");
|
|
626
627
|
case Rn:
|
|
627
628
|
case Pn:
|
|
628
629
|
case Nn:
|
|
629
|
-
return a =
|
|
630
|
-
case
|
|
630
|
+
return a = V(), a.value = k.$a, a.raw = k.l, g(), E(a, "Literal");
|
|
631
|
+
case ce:
|
|
631
632
|
a = It;
|
|
632
|
-
var l =
|
|
633
|
-
|
|
633
|
+
var l = _;
|
|
634
|
+
g();
|
|
634
635
|
var c = K();
|
|
635
|
-
return c.start = l, c.end = Ce,
|
|
636
|
+
return c.start = l, c.end = Ce, A.C && (c.X.start = a, c.X.end = Tt), A.Xa && (c.j = [l, Ce]), D(oe), c;
|
|
636
637
|
case Mt:
|
|
637
|
-
return a =
|
|
638
|
+
return a = V(), g(), a.elements = Ct(Vt, !0, !0), E(a, "ArrayExpression");
|
|
638
639
|
case Le:
|
|
639
|
-
for (a =
|
|
640
|
+
for (a = V(), l = !0, c = !1, a.h = [], g(); !F(Ie); ) {
|
|
640
641
|
if (l)
|
|
641
642
|
l = !1;
|
|
642
|
-
else if (
|
|
643
|
+
else if (D(ye), A.sb && F(Ie))
|
|
643
644
|
break;
|
|
644
645
|
var d = {
|
|
645
|
-
key:
|
|
646
|
-
},
|
|
646
|
+
key: k === De || k === rt ? nt() : se(!0)
|
|
647
|
+
}, C = !1;
|
|
647
648
|
if (F(_e)) {
|
|
648
649
|
d.value = K(!0);
|
|
649
650
|
var W = d.kind = "init";
|
|
650
651
|
} else
|
|
651
|
-
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ?
|
|
652
|
-
if (d.key.type === "Identifier" && (
|
|
652
|
+
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ae() : (C = c = !0, W = d.kind = d.key.name, d.key = k === De || k === rt ? nt() : se(!0), k !== ce && ae(), d.value = kt(V(), !1));
|
|
653
|
+
if (d.key.type === "Identifier" && (Q || c))
|
|
653
654
|
for (var J = 0; J < a.h.length; ++J) {
|
|
654
655
|
var Ae = a.h[J];
|
|
655
656
|
if (Ae.key.name === d.key.name) {
|
|
656
|
-
var Lt = W === Ae.kind ||
|
|
657
|
-
Lt && !
|
|
657
|
+
var Lt = W === Ae.kind || C && Ae.kind === "init" || W === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
658
|
+
Lt && !Q && W === "init" && Ae.kind === "init" && (Lt = !1), Lt && r(d.key.start, "Redefinition of property");
|
|
658
659
|
}
|
|
659
660
|
}
|
|
660
661
|
a.h.push(d);
|
|
661
662
|
}
|
|
662
|
-
return
|
|
663
|
+
return E(a, "ObjectExpression");
|
|
663
664
|
case Nt:
|
|
664
|
-
return a =
|
|
665
|
+
return a = V(), g(), kt(a, !1);
|
|
665
666
|
case On:
|
|
666
|
-
return a =
|
|
667
|
+
return a = V(), g(), a.callee = Fe(nt(), !0), a.arguments = F(ce) ? Ct(oe, !1) : _r, E(a, "NewExpression");
|
|
667
668
|
}
|
|
668
|
-
|
|
669
|
+
ae();
|
|
669
670
|
}
|
|
670
671
|
function kt(a, l) {
|
|
671
|
-
|
|
672
|
+
k === Ee ? a.id = se() : l ? ae() : a.id = null, a.oa = [];
|
|
672
673
|
var c = !0;
|
|
673
|
-
for (
|
|
674
|
-
c ? c = !1 :
|
|
674
|
+
for (D(ce); !F(oe); )
|
|
675
|
+
c ? c = !1 : D(ye), a.oa.push(se());
|
|
675
676
|
c = Ve;
|
|
676
|
-
var d =
|
|
677
|
-
if (Ve = !0,
|
|
677
|
+
var d = L;
|
|
678
|
+
if (Ve = !0, L = [], a.body = Ue(!0), Ve = c, L = d, Q || a.body.body.length && Qe(a.body.body[0])) {
|
|
678
679
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
679
|
-
if (d = 0 > c ? a.id : a.oa[c], (_n(d.name) ||
|
|
680
|
-
for (var
|
|
681
|
-
d.name === a.oa[
|
|
680
|
+
if (d = 0 > c ? a.id : a.oa[c], (_n(d.name) || it(d.name)) && r(d.start, "Defining '" + d.name + "' in strict mode"), 0 <= c)
|
|
681
|
+
for (var C = 0; C < c; ++C)
|
|
682
|
+
d.name === a.oa[C].name && r(d.start, "Argument name clash in strict mode");
|
|
682
683
|
}
|
|
683
|
-
return
|
|
684
|
+
return E(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
684
685
|
}
|
|
685
686
|
function Ct(a, l, c) {
|
|
686
|
-
for (var d = [],
|
|
687
|
-
if (
|
|
688
|
-
|
|
689
|
-
else if (
|
|
687
|
+
for (var d = [], C = !0; !F(a); ) {
|
|
688
|
+
if (C)
|
|
689
|
+
C = !1;
|
|
690
|
+
else if (D(ye), l && A.sb && F(a))
|
|
690
691
|
break;
|
|
691
|
-
d.push(c &&
|
|
692
|
+
d.push(c && k === ye ? null : K(!0));
|
|
692
693
|
}
|
|
693
694
|
return d;
|
|
694
695
|
}
|
|
695
|
-
function
|
|
696
|
-
var l =
|
|
697
|
-
return a &&
|
|
696
|
+
function se(a) {
|
|
697
|
+
var l = V();
|
|
698
|
+
return a && A.yb === "everywhere" && (a = !1), k === Ee ? (!a && (A.yb && Zr(te) || Q && _n(te)) && y.slice(_, Ce).indexOf("\\") === -1 && r(_, "The keyword '" + te + "' is reserved"), l.name = te) : a && k.l ? l.name = k.l : ae(), Me = !1, g(), E(l, "Identifier");
|
|
698
699
|
}
|
|
699
700
|
e.version = "0.5.0";
|
|
700
|
-
var
|
|
701
|
+
var A, y = "", ke, Et;
|
|
701
702
|
e.parse = function(a, l) {
|
|
702
|
-
|
|
703
|
+
y = String(a), ke = y.length, A = l || {};
|
|
703
704
|
for (var c in hn)
|
|
704
|
-
Object.prototype.hasOwnProperty.call(
|
|
705
|
-
for (Et =
|
|
706
|
-
c =
|
|
707
|
-
return
|
|
705
|
+
Object.prototype.hasOwnProperty.call(A, c) || (A[c] = hn[c]);
|
|
706
|
+
for (Et = A.sourceFile, Se = 1, f = le = 0, Me = !0, p(), c = A.dc, At = ge = f, A.C && (Ot = new i()), Ve = Q = !1, L = [], x(), a = c || V(), l = !0, c || (a.body = []); k !== jt; )
|
|
707
|
+
c = re(), a.body.push(c), l && Qe(c) && U(!0), l = !1;
|
|
708
|
+
return E(a, "Program");
|
|
708
709
|
};
|
|
709
710
|
var hn = {
|
|
710
711
|
fc: !1,
|
|
@@ -717,11 +718,11 @@ var U, To = function(e) {
|
|
|
717
718
|
dc: null,
|
|
718
719
|
sourceFile: null,
|
|
719
720
|
vb: null
|
|
720
|
-
}, f = 0,
|
|
721
|
+
}, f = 0, _ = 0, Ce = 0, It, Tt, k, te, Me, Se, le, At = 0, ge = 0, Ot, Ve, L, Q, _r = [], De = {
|
|
721
722
|
type: "num"
|
|
722
723
|
}, mn = {
|
|
723
724
|
type: "regexp"
|
|
724
|
-
},
|
|
725
|
+
}, rt = {
|
|
725
726
|
type: "string"
|
|
726
727
|
}, Ee = {
|
|
727
728
|
type: "name"
|
|
@@ -758,14 +759,14 @@ var U, To = function(e) {
|
|
|
758
759
|
}, En = {
|
|
759
760
|
l: "return",
|
|
760
761
|
m: !0
|
|
761
|
-
},
|
|
762
|
+
}, Bt = {
|
|
762
763
|
l: "switch"
|
|
763
764
|
}, In = {
|
|
764
765
|
l: "throw",
|
|
765
766
|
m: !0
|
|
766
767
|
}, Tn = {
|
|
767
768
|
l: "try"
|
|
768
|
-
},
|
|
769
|
+
}, Ut = {
|
|
769
770
|
l: "var"
|
|
770
771
|
}, Ft = {
|
|
771
772
|
l: "while",
|
|
@@ -786,7 +787,7 @@ var U, To = function(e) {
|
|
|
786
787
|
}, Nn = {
|
|
787
788
|
l: "false",
|
|
788
789
|
$a: !1
|
|
789
|
-
},
|
|
790
|
+
}, ot = {
|
|
790
791
|
l: "in",
|
|
791
792
|
L: 7,
|
|
792
793
|
m: !0
|
|
@@ -804,17 +805,17 @@ var U, To = function(e) {
|
|
|
804
805
|
function: Nt,
|
|
805
806
|
if: Cn,
|
|
806
807
|
return: En,
|
|
807
|
-
switch:
|
|
808
|
+
switch: Bt,
|
|
808
809
|
throw: In,
|
|
809
810
|
try: Tn,
|
|
810
|
-
var:
|
|
811
|
+
var: Ut,
|
|
811
812
|
while: Ft,
|
|
812
813
|
with: An,
|
|
813
814
|
null: Rn,
|
|
814
815
|
true: Pn,
|
|
815
816
|
false: Nn,
|
|
816
817
|
new: On,
|
|
817
|
-
in:
|
|
818
|
+
in: ot,
|
|
818
819
|
instanceof: {
|
|
819
820
|
l: "instanceof",
|
|
820
821
|
L: 7,
|
|
@@ -846,23 +847,23 @@ var U, To = function(e) {
|
|
|
846
847
|
m: !0
|
|
847
848
|
}, Ie = {
|
|
848
849
|
type: "}"
|
|
849
|
-
},
|
|
850
|
+
}, ce = {
|
|
850
851
|
type: "(",
|
|
851
852
|
m: !0
|
|
852
|
-
},
|
|
853
|
+
}, oe = {
|
|
853
854
|
type: ")"
|
|
854
855
|
}, ye = {
|
|
855
856
|
type: ",",
|
|
856
857
|
m: !0
|
|
857
|
-
},
|
|
858
|
+
}, ue = {
|
|
858
859
|
type: ";",
|
|
859
860
|
m: !0
|
|
860
861
|
}, _e = {
|
|
861
862
|
type: ":",
|
|
862
863
|
m: !0
|
|
863
|
-
}, Un = {
|
|
864
|
-
type: "."
|
|
865
864
|
}, Bn = {
|
|
865
|
+
type: "."
|
|
866
|
+
}, Un = {
|
|
866
867
|
type: "?",
|
|
867
868
|
m: !0
|
|
868
869
|
}, Fn = {
|
|
@@ -912,7 +913,7 @@ var U, To = function(e) {
|
|
|
912
913
|
}, qr = {
|
|
913
914
|
L: 10,
|
|
914
915
|
m: !0
|
|
915
|
-
}, Zr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"),
|
|
916
|
+
}, Zr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), it = o("eval arguments"), Qr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), eo = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Wn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), to = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), at = /[\n\r\u2028\u2029]/, st = /\r\n|[\n\r\u2028\u2029]/g, Te, Dt = {
|
|
916
917
|
kind: "loop"
|
|
917
918
|
}, no = {
|
|
918
919
|
kind: "switch"
|
|
@@ -935,7 +936,7 @@ function h(e, t) {
|
|
|
935
936
|
for (s in this)
|
|
936
937
|
typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this));
|
|
937
938
|
this.N = Ht(this, this.ra, null), this.Na = this.N.object, this.ra = Re(this.ba.join(`
|
|
938
|
-
`), "polyfills"), this.ba = void 0,
|
|
939
|
+
`), "polyfills"), this.ba = void 0, ht(this.ra), i = new S(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new S(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
939
940
|
}
|
|
940
941
|
var $n = {
|
|
941
942
|
C: !0,
|
|
@@ -944,7 +945,7 @@ var $n = {
|
|
|
944
945
|
configurable: !0,
|
|
945
946
|
enumerable: !0,
|
|
946
947
|
writable: !1
|
|
947
|
-
},
|
|
948
|
+
}, v = {
|
|
948
949
|
configurable: !0,
|
|
949
950
|
enumerable: !1,
|
|
950
951
|
writable: !0
|
|
@@ -968,7 +969,7 @@ var $n = {
|
|
|
968
969
|
VALUE_IN_DESCRIPTOR: !0
|
|
969
970
|
}, je = {
|
|
970
971
|
REGEXP_TIMEOUT: !0
|
|
971
|
-
}, Kn = [],
|
|
972
|
+
}, Kn = [], de = null, Xe = null, ve = typeof globalThis > "u" ? void 0 : globalThis, Ao = ["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();", "};"];
|
|
972
973
|
function zt(e) {
|
|
973
974
|
var t = e >>> 0;
|
|
974
975
|
return t === Number(e) ? t : NaN;
|
|
@@ -977,29 +978,29 @@ function Ye(e) {
|
|
|
977
978
|
var t = e >>> 0;
|
|
978
979
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
979
980
|
}
|
|
980
|
-
function
|
|
981
|
+
function ht(e, t, n) {
|
|
981
982
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
982
983
|
for (var r in e)
|
|
983
984
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
984
985
|
var o = e[r];
|
|
985
|
-
o && typeof o == "object" &&
|
|
986
|
+
o && typeof o == "object" && ht(o, t, n);
|
|
986
987
|
}
|
|
987
988
|
}
|
|
988
989
|
h.prototype.REGEXP_MODE = 2;
|
|
989
990
|
h.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
990
991
|
h.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
992
|
+
B = h.prototype;
|
|
993
|
+
B.P = !1;
|
|
994
|
+
B.Ka = !1;
|
|
995
|
+
B.Kb = 0;
|
|
996
|
+
B.ic = 0;
|
|
996
997
|
function Re(e, t) {
|
|
997
998
|
var n = {}, r;
|
|
998
999
|
for (r in $n)
|
|
999
1000
|
n[r] = $n[r];
|
|
1000
1001
|
return n.sourceFile = t, ve.j.parse(e, n);
|
|
1001
1002
|
}
|
|
1002
|
-
|
|
1003
|
+
B.Jb = function(e) {
|
|
1003
1004
|
var t = this.o[0];
|
|
1004
1005
|
if (!t || t.node.type !== "Program")
|
|
1005
1006
|
throw Error("Expecting original AST to start with a Program node");
|
|
@@ -1007,7 +1008,7 @@ U.Jb = function(e) {
|
|
|
1007
1008
|
throw Error("Expecting new AST to start with a Program node");
|
|
1008
1009
|
ze(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
1009
1010
|
};
|
|
1010
|
-
|
|
1011
|
+
B.lb = function() {
|
|
1011
1012
|
var e = this.o, t;
|
|
1012
1013
|
do {
|
|
1013
1014
|
var n = e[e.length - 1];
|
|
@@ -1020,7 +1021,7 @@ U.lb = function() {
|
|
|
1020
1021
|
n = null;
|
|
1021
1022
|
else {
|
|
1022
1023
|
this.ca.shift(), 0 <= n.interval && vr(this, n, n.interval);
|
|
1023
|
-
var r = new
|
|
1024
|
+
var r = new S(n.node, n.scope);
|
|
1024
1025
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1025
1026
|
}
|
|
1026
1027
|
if (!n)
|
|
@@ -1045,38 +1046,38 @@ U.lb = function() {
|
|
|
1045
1046
|
} while (!r.end && t > Date.now());
|
|
1046
1047
|
return !0;
|
|
1047
1048
|
};
|
|
1048
|
-
|
|
1049
|
+
B.Eb = function() {
|
|
1049
1050
|
for (; !this.za && this.lb(); )
|
|
1050
1051
|
;
|
|
1051
1052
|
return this.za;
|
|
1052
1053
|
};
|
|
1053
1054
|
function Oo(e, t) {
|
|
1054
|
-
e.g(t, "NaN", NaN, We), e.g(t, "Infinity", 1 / 0, We), e.g(t, "undefined", void 0, We), e.g(t, "window", t, Jt), e.g(t, "this", t, We), e.g(t, "self", t), e.M = new
|
|
1055
|
+
e.g(t, "NaN", NaN, We), e.g(t, "Infinity", 1 / 0, We), e.g(t, "undefined", void 0, We), e.g(t, "window", t, Jt), e.g(t, "this", t, We), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), jo(e, t), Ro(e, t), t.xa = e.M, e.g(t, "constructor", e.v, v), Po(e, t), No(e, t), Bo(e, t), Uo(e, t), Fo(e, t), Mo(e, t), Vo(e, t), Do(e, t), Lo(e, t);
|
|
1055
1056
|
var n = e.i(function() {
|
|
1056
1057
|
throw EvalError("Can't happen");
|
|
1057
1058
|
}, !1);
|
|
1058
|
-
n.eval = !0, e.g(t, "eval", n,
|
|
1059
|
+
n.eval = !0, e.g(t, "eval", n, v), e.g(t, "parseInt", e.i(parseInt, !1), v), e.g(t, "parseFloat", e.i(parseFloat, !1), v), e.g(t, "isNaN", e.i(isNaN, !1), v), e.g(t, "isFinite", e.i(isFinite, !1), v);
|
|
1059
1060
|
for (var r = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], o = 0; o < r.length; o++)
|
|
1060
1061
|
n = function(i) {
|
|
1061
1062
|
return function(s) {
|
|
1062
1063
|
try {
|
|
1063
1064
|
return i(s);
|
|
1064
1065
|
} catch (u) {
|
|
1065
|
-
|
|
1066
|
+
w(e, e.Gb, u.message);
|
|
1066
1067
|
}
|
|
1067
1068
|
};
|
|
1068
|
-
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1),
|
|
1069
|
+
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), v);
|
|
1069
1070
|
n = function(i) {
|
|
1070
1071
|
return Gn(e, !1, arguments);
|
|
1071
|
-
}, e.g(t, "setTimeout", e.i(n, !1),
|
|
1072
|
+
}, e.g(t, "setTimeout", e.i(n, !1), v), n = function(i) {
|
|
1072
1073
|
return Gn(e, !0, arguments);
|
|
1073
|
-
}, e.g(t, "setInterval", e.i(n, !1),
|
|
1074
|
+
}, e.g(t, "setInterval", e.i(n, !1), v), n = function(i) {
|
|
1074
1075
|
Xn(e, i);
|
|
1075
|
-
}, e.g(t, "clearTimeout", e.i(n, !1),
|
|
1076
|
+
}, e.g(t, "clearTimeout", e.i(n, !1), v), n = function(i) {
|
|
1076
1077
|
Xn(e, i);
|
|
1077
|
-
}, e.g(t, "clearInterval", e.i(n, !1),
|
|
1078
|
+
}, e.g(t, "clearInterval", e.i(n, !1), v), 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);
|
|
1078
1079
|
}
|
|
1079
|
-
|
|
1080
|
+
B.Wb = 0;
|
|
1080
1081
|
function jo(e, t) {
|
|
1081
1082
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1082
1083
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1084,21 +1085,21 @@ function jo(e, t) {
|
|
|
1084
1085
|
s = s.split(/\s*,\s*/);
|
|
1085
1086
|
for (var u = 0; u < s.length; u++) {
|
|
1086
1087
|
var p = s[u];
|
|
1087
|
-
n.test(p) ||
|
|
1088
|
+
n.test(p) || w(e, e.T, "Invalid function argument: " + p);
|
|
1088
1089
|
}
|
|
1089
1090
|
s = s.join(", ");
|
|
1090
1091
|
}
|
|
1091
1092
|
try {
|
|
1092
|
-
var
|
|
1093
|
-
} catch (
|
|
1094
|
-
|
|
1093
|
+
var b = Re("(function(" + s + ") {" + i + "})", "function" + e.Wb++);
|
|
1094
|
+
} catch (x) {
|
|
1095
|
+
w(e, e.T, "Invalid code: " + x.message);
|
|
1095
1096
|
}
|
|
1096
|
-
return
|
|
1097
|
+
return b.body.length !== 1 && w(e, e.T, "Invalid code in function body"), Qt(e, b.body[0].la, e.N, "anonymous");
|
|
1097
1098
|
};
|
|
1098
|
-
e.O = e.i(r, !0), e.g(t, "Function", e.O,
|
|
1099
|
+
e.O = e.i(r, !0), e.g(t, "Function", e.O, v), e.g(e.O, "prototype", e.Z, v), e.g(e.Z, "constructor", e.O, v), e.Z.Ta = function() {
|
|
1099
1100
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, q), e.Z.H = "Function", r = function(o, i) {
|
|
1100
1101
|
var s = e.o[e.o.length - 1];
|
|
1101
|
-
s.U = this, s.B = o, s.F = [], i != null && (i instanceof
|
|
1102
|
+
s.U = this, s.B = o, s.F = [], i != null && (i instanceof P ? s.F = gr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1102
1103
|
}, $(e, e.O, "apply", r), r = function(o) {
|
|
1103
1104
|
var i = e.o[e.o.length - 1];
|
|
1104
1105
|
i.U = this, i.B = o, i.F = [];
|
|
@@ -1107,49 +1108,49 @@ function jo(e, t) {
|
|
|
1107
1108
|
i.eb = !1;
|
|
1108
1109
|
}, $(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
|
|
1109
1110
|
return String(this);
|
|
1110
|
-
}, $(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1),
|
|
1111
|
+
}, $(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), v), r = function() {
|
|
1111
1112
|
return this.valueOf();
|
|
1112
|
-
}, $(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1),
|
|
1113
|
+
}, $(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), v);
|
|
1113
1114
|
}
|
|
1114
1115
|
function Ro(e, t) {
|
|
1115
1116
|
function n(o) {
|
|
1116
|
-
o != null ||
|
|
1117
|
+
o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1117
1118
|
}
|
|
1118
1119
|
var r = function(o) {
|
|
1119
1120
|
if (o == null)
|
|
1120
|
-
return
|
|
1121
|
-
if (!(o instanceof
|
|
1122
|
-
var i = e.s(
|
|
1121
|
+
return he(e) ? this : e.s(e.M);
|
|
1122
|
+
if (!(o instanceof P)) {
|
|
1123
|
+
var i = e.s(pe(e, o));
|
|
1123
1124
|
return i.data = o, i;
|
|
1124
1125
|
}
|
|
1125
1126
|
return o;
|
|
1126
1127
|
};
|
|
1127
|
-
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M,
|
|
1128
|
-
return n(o),
|
|
1129
|
-
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1),
|
|
1130
|
-
return n(o), o instanceof
|
|
1131
|
-
}, e.g(e.v, "keys", e.i(r, !1),
|
|
1132
|
-
return o === null ? e.s(null) : (o instanceof
|
|
1133
|
-
}, e.g(e.v, "create", e.i(r, !1),
|
|
1134
|
-
return i = String(i), o instanceof
|
|
1135
|
-
}, e.g(e.v, "defineProperty", e.i(r, !1),
|
|
1136
|
-
if (o instanceof
|
|
1128
|
+
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, v), e.g(e.M, "constructor", e.v, v), e.g(t, "Object", e.v, v), r = function(o) {
|
|
1129
|
+
return n(o), fe(e, Object.getOwnPropertyNames(o instanceof P ? o.h : o));
|
|
1130
|
+
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), v), r = function(o) {
|
|
1131
|
+
return n(o), o instanceof P && (o = o.h), fe(e, Object.keys(o));
|
|
1132
|
+
}, e.g(e.v, "keys", e.i(r, !1), v), r = function(o) {
|
|
1133
|
+
return o === null ? e.s(null) : (o instanceof P || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1134
|
+
}, e.g(e.v, "create", e.i(r, !1), v), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, s) {
|
|
1135
|
+
return i = String(i), o instanceof P || w(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof P || w(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || w(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, Je, s.h), o;
|
|
1136
|
+
}, e.g(e.v, "defineProperty", e.i(r, !1), v), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
|
|
1137
|
+
if (o instanceof P || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
|
|
1137
1138
|
var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
|
|
1138
1139
|
return o = o.Y[i], i = e.s(e.M), u || o ? (e.g(i, "get", u), e.g(i, "set", o)) : (e.g(i, "value", s.value), e.g(i, "writable", s.writable)), e.g(i, "configurable", s.configurable), e.g(i, "enumerable", s.enumerable), i;
|
|
1139
1140
|
}
|
|
1140
|
-
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1),
|
|
1141
|
-
return n(o),
|
|
1142
|
-
}, e.g(e.v, "getPrototypeOf", e.i(r, !1),
|
|
1141
|
+
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), v), r = function(o) {
|
|
1142
|
+
return n(o), pe(e, o);
|
|
1143
|
+
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), v), r = function(o) {
|
|
1143
1144
|
return !!o && !o.preventExtensions;
|
|
1144
|
-
}, e.g(e.v, "isExtensible", e.i(r, !1),
|
|
1145
|
-
return o instanceof
|
|
1146
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1),
|
|
1147
|
-
return n(this), this instanceof
|
|
1145
|
+
}, e.g(e.v, "isExtensible", e.i(r, !1), v), r = function(o) {
|
|
1146
|
+
return o instanceof P && (o.preventExtensions = !0), o;
|
|
1147
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), v), $(e, e.v, "toString", P.prototype.toString), $(e, e.v, "toLocaleString", P.prototype.toString), $(e, e.v, "valueOf", P.prototype.valueOf), r = function(o) {
|
|
1148
|
+
return n(this), this instanceof P ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1148
1149
|
}, $(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1149
|
-
return n(this), this instanceof
|
|
1150
|
+
return n(this), this instanceof P ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1150
1151
|
}, $(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1151
1152
|
for (; ; ) {
|
|
1152
|
-
if (o =
|
|
1153
|
+
if (o = pe(e, o), !o)
|
|
1153
1154
|
return !1;
|
|
1154
1155
|
if (o === this)
|
|
1155
1156
|
return !0;
|
|
@@ -1158,9 +1159,9 @@ function Ro(e, t) {
|
|
|
1158
1159
|
}
|
|
1159
1160
|
function Po(e, t) {
|
|
1160
1161
|
var n = function(r) {
|
|
1161
|
-
var o =
|
|
1162
|
+
var o = he(e) ? this : Pe(e), i = arguments[0];
|
|
1162
1163
|
if (arguments.length === 1 && typeof i == "number")
|
|
1163
|
-
isNaN(zt(i)) &&
|
|
1164
|
+
isNaN(zt(i)) && w(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1164
1165
|
else {
|
|
1165
1166
|
for (i = 0; i < arguments.length; i++)
|
|
1166
1167
|
o.h[i] = arguments[i];
|
|
@@ -1168,9 +1169,9 @@ function Po(e, t) {
|
|
|
1168
1169
|
}
|
|
1169
1170
|
return o;
|
|
1170
1171
|
};
|
|
1171
|
-
e.qa = e.i(n, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa,
|
|
1172
|
+
e.qa = e.i(n, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, v), n = function(r) {
|
|
1172
1173
|
return r && r.H === "Array";
|
|
1173
|
-
}, e.g(e.qa, "isArray", e.i(n, !1),
|
|
1174
|
+
}, e.g(e.qa, "isArray", e.i(n, !1), v), e.g(e.La, "length", 0, {
|
|
1174
1175
|
configurable: !1,
|
|
1175
1176
|
enumerable: !1,
|
|
1176
1177
|
writable: !0
|
|
@@ -1178,55 +1179,55 @@ function Po(e, t) {
|
|
|
1178
1179
|
}
|
|
1179
1180
|
function No(e, t) {
|
|
1180
1181
|
var n = function(r) {
|
|
1181
|
-
return r = arguments.length ? ve.String(r) : "",
|
|
1182
|
+
return r = arguments.length ? ve.String(r) : "", he(e) ? (this.data = r, this) : r;
|
|
1182
1183
|
};
|
|
1183
|
-
for (e.J = e.i(n, !0), e.g(t, "String", e.J,
|
|
1184
|
+
for (e.J = e.i(n, !0), e.g(t, "String", e.J, v), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), v), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1184
1185
|
$(e, e.J, t[n], String.prototype[t[n]]);
|
|
1185
1186
|
n = function(r, o, i) {
|
|
1186
1187
|
o = e.R(o), i = e.R(i);
|
|
1187
1188
|
try {
|
|
1188
1189
|
return String(this).localeCompare(r, o, i);
|
|
1189
1190
|
} catch (s) {
|
|
1190
|
-
|
|
1191
|
+
w(e, e.D, "localeCompare: " + s.message);
|
|
1191
1192
|
}
|
|
1192
1193
|
}, $(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1193
1194
|
var s = String(this);
|
|
1194
1195
|
if (o = o ? Number(o) : void 0, H(e, r, e.I) && (r = r.data, He(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1195
|
-
if (
|
|
1196
|
+
if (de)
|
|
1196
1197
|
r = $e(e, "string.split(separator, limit)", {
|
|
1197
1198
|
string: s,
|
|
1198
1199
|
separator: r,
|
|
1199
1200
|
limit: o
|
|
1200
|
-
}, r, i), r !== je && i(
|
|
1201
|
+
}, r, i), r !== je && i(fe(e, r));
|
|
1201
1202
|
else {
|
|
1202
1203
|
var u = e.ha(), p = Ke(e, r, u, i);
|
|
1203
|
-
u.onmessage = function(
|
|
1204
|
-
clearTimeout(p), i(
|
|
1204
|
+
u.onmessage = function(b) {
|
|
1205
|
+
clearTimeout(p), i(fe(e, b.data));
|
|
1205
1206
|
}, u.postMessage(["split", s, r, o]);
|
|
1206
1207
|
}
|
|
1207
1208
|
return;
|
|
1208
1209
|
}
|
|
1209
|
-
r = s.split(r, o), i(
|
|
1210
|
+
r = s.split(r, o), i(fe(e, r));
|
|
1210
1211
|
}, Ge(e, e.J, "split", n), n = function(r, o) {
|
|
1211
1212
|
var i = String(this);
|
|
1212
1213
|
if (r = H(e, r, e.I) ? r.data : new RegExp(r), He(e, r, o), e.REGEXP_MODE === 2)
|
|
1213
|
-
if (
|
|
1214
|
+
if (de)
|
|
1214
1215
|
r = $e(e, "string.match(regexp)", {
|
|
1215
1216
|
string: i,
|
|
1216
1217
|
regexp: r
|
|
1217
|
-
}, r, o), r !== je && o(r &&
|
|
1218
|
+
}, r, o), r !== je && o(r && fe(e, r));
|
|
1218
1219
|
else {
|
|
1219
1220
|
var s = e.ha(), u = Ke(e, r, s, o);
|
|
1220
1221
|
s.onmessage = function(p) {
|
|
1221
|
-
clearTimeout(u), o(p.data &&
|
|
1222
|
+
clearTimeout(u), o(p.data && fe(e, p.data));
|
|
1222
1223
|
}, s.postMessage(["match", i, r]);
|
|
1223
1224
|
}
|
|
1224
1225
|
else
|
|
1225
|
-
r = i.match(r), o(r &&
|
|
1226
|
+
r = i.match(r), o(r && fe(e, r));
|
|
1226
1227
|
}, Ge(e, e.J, "match", n), n = function(r, o) {
|
|
1227
1228
|
var i = String(this);
|
|
1228
1229
|
if (H(e, r, e.I) ? r = r.data : r = new RegExp(r), He(e, r, o), e.REGEXP_MODE === 2)
|
|
1229
|
-
if (
|
|
1230
|
+
if (de)
|
|
1230
1231
|
r = $e(e, "string.search(regexp)", {
|
|
1231
1232
|
string: i,
|
|
1232
1233
|
regexp: r
|
|
@@ -1242,7 +1243,7 @@ function No(e, t) {
|
|
|
1242
1243
|
}, Ge(e, e.J, "search", n), n = function(r, o, i) {
|
|
1243
1244
|
var s = String(this);
|
|
1244
1245
|
if (o = String(o), H(e, r, e.I) && (r = r.data, He(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1245
|
-
if (
|
|
1246
|
+
if (de)
|
|
1246
1247
|
r = $e(e, "string.replace(substr, newSubstr)", {
|
|
1247
1248
|
string: s,
|
|
1248
1249
|
substr: r,
|
|
@@ -1250,8 +1251,8 @@ function No(e, t) {
|
|
|
1250
1251
|
}, r, i), r !== je && i(r);
|
|
1251
1252
|
else {
|
|
1252
1253
|
var u = e.ha(), p = Ke(e, r, u, i);
|
|
1253
|
-
u.onmessage = function(
|
|
1254
|
-
clearTimeout(p), i(
|
|
1254
|
+
u.onmessage = function(b) {
|
|
1255
|
+
clearTimeout(p), i(b.data);
|
|
1255
1256
|
}, u.postMessage(["replace", s, r, o]);
|
|
1256
1257
|
}
|
|
1257
1258
|
return;
|
|
@@ -1259,63 +1260,63 @@ function No(e, t) {
|
|
|
1259
1260
|
i(s.replace(r, o));
|
|
1260
1261
|
}, Ge(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;", "};", "})();", "");
|
|
1261
1262
|
}
|
|
1262
|
-
function
|
|
1263
|
+
function Bo(e, t) {
|
|
1263
1264
|
e.mb = e.i(function(n) {
|
|
1264
|
-
return n = ve.Boolean(n),
|
|
1265
|
-
}, !0), e.g(t, "Boolean", e.mb,
|
|
1265
|
+
return n = ve.Boolean(n), he(e) ? (this.data = n, this) : n;
|
|
1266
|
+
}, !0), e.g(t, "Boolean", e.mb, v);
|
|
1266
1267
|
}
|
|
1267
|
-
function
|
|
1268
|
+
function Uo(e, t) {
|
|
1268
1269
|
var n = function(r) {
|
|
1269
|
-
return r = arguments.length ? ve.Number(r) : 0,
|
|
1270
|
+
return r = arguments.length ? ve.Number(r) : 0, he(e) ? (this.data = r, this) : r;
|
|
1270
1271
|
};
|
|
1271
|
-
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa,
|
|
1272
|
+
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, v), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1272
1273
|
e.g(e.aa, t[n], Number[t[n]], We);
|
|
1273
1274
|
n = function(r) {
|
|
1274
1275
|
try {
|
|
1275
1276
|
return Number(this).toExponential(r);
|
|
1276
1277
|
} catch (o) {
|
|
1277
|
-
|
|
1278
|
+
w(e, e.D, o.message);
|
|
1278
1279
|
}
|
|
1279
1280
|
}, $(e, e.aa, "toExponential", n), n = function(r) {
|
|
1280
1281
|
try {
|
|
1281
1282
|
return Number(this).toFixed(r);
|
|
1282
1283
|
} catch (o) {
|
|
1283
|
-
|
|
1284
|
+
w(e, e.D, o.message);
|
|
1284
1285
|
}
|
|
1285
1286
|
}, $(e, e.aa, "toFixed", n), n = function(r) {
|
|
1286
1287
|
try {
|
|
1287
1288
|
return Number(this).toPrecision(r);
|
|
1288
1289
|
} catch (o) {
|
|
1289
|
-
|
|
1290
|
+
w(e, e.D, o.message);
|
|
1290
1291
|
}
|
|
1291
1292
|
}, $(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1292
1293
|
try {
|
|
1293
1294
|
return Number(this).toString(r);
|
|
1294
1295
|
} catch (o) {
|
|
1295
|
-
|
|
1296
|
+
w(e, e.D, o.message);
|
|
1296
1297
|
}
|
|
1297
1298
|
}, $(e, e.aa, "toString", n), n = function(r, o) {
|
|
1298
1299
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1299
1300
|
try {
|
|
1300
1301
|
return Number(this).toLocaleString(r, o);
|
|
1301
1302
|
} catch (i) {
|
|
1302
|
-
|
|
1303
|
+
w(e, e.D, "toLocaleString: " + i.message);
|
|
1303
1304
|
}
|
|
1304
1305
|
}, $(e, e.aa, "toLocaleString", n);
|
|
1305
1306
|
}
|
|
1306
1307
|
function Fo(e, t) {
|
|
1307
1308
|
var n = function(o, i) {
|
|
1308
|
-
if (!
|
|
1309
|
+
if (!he(e))
|
|
1309
1310
|
return ve.Date();
|
|
1310
1311
|
var s = [null].concat(Array.from(arguments));
|
|
1311
1312
|
return this.data = new (Function.prototype.bind.apply(ve.Date, s))(), this;
|
|
1312
1313
|
};
|
|
1313
|
-
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$,
|
|
1314
|
+
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, v), e.g(e.$, "now", e.i(Date.now, !1), v), e.g(e.$, "parse", e.i(Date.parse, !1), v), e.g(e.$, "UTC", e.i(Date.UTC, !1), v), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
|
|
1314
1315
|
for (var r = 0; r < t.length; r++)
|
|
1315
1316
|
n = function(o) {
|
|
1316
1317
|
return function(i) {
|
|
1317
1318
|
var s = this.data;
|
|
1318
|
-
s instanceof Date ||
|
|
1319
|
+
s instanceof Date || w(e, e.j, o + " not called on a Date");
|
|
1319
1320
|
for (var u = [], p = 0; p < arguments.length; p++)
|
|
1320
1321
|
u[p] = e.R(arguments[p]);
|
|
1321
1322
|
return s[o].apply(s, u);
|
|
@@ -1324,40 +1325,40 @@ function Fo(e, t) {
|
|
|
1324
1325
|
}
|
|
1325
1326
|
function Mo(e, t) {
|
|
1326
1327
|
var n = function(r, o) {
|
|
1327
|
-
if (
|
|
1328
|
+
if (he(e))
|
|
1328
1329
|
var i = this;
|
|
1329
1330
|
else {
|
|
1330
1331
|
if (o === void 0 && H(e, r, e.I))
|
|
1331
1332
|
return r;
|
|
1332
1333
|
i = e.s(e.Ma);
|
|
1333
1334
|
}
|
|
1334
|
-
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) ||
|
|
1335
|
+
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || w(e, e.T, "Invalid regexp flag: " + o);
|
|
1335
1336
|
try {
|
|
1336
1337
|
var s = new ve.RegExp(r, o);
|
|
1337
1338
|
} catch (u) {
|
|
1338
|
-
|
|
1339
|
+
w(e, e.T, u.message);
|
|
1339
1340
|
}
|
|
1340
1341
|
return qt(e, i, s), i;
|
|
1341
1342
|
};
|
|
1342
|
-
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I,
|
|
1343
|
-
function i(
|
|
1344
|
-
if (
|
|
1345
|
-
var m =
|
|
1346
|
-
return e.g(m, "index",
|
|
1343
|
+
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, v), e.g(e.I.h.prototype, "global", void 0, q), e.g(e.I.h.prototype, "ignoreCase", void 0, q), e.g(e.I.h.prototype, "multiline", void 0, q), e.g(e.I.h.prototype, "source", "(?:)", q), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1344
|
+
function i(x) {
|
|
1345
|
+
if (x) {
|
|
1346
|
+
var m = fe(e, x);
|
|
1347
|
+
return e.g(m, "index", x.index), e.g(m, "input", x.input), m;
|
|
1347
1348
|
}
|
|
1348
1349
|
return null;
|
|
1349
1350
|
}
|
|
1350
1351
|
var s = this.data;
|
|
1351
1352
|
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), He(e, s, o), e.REGEXP_MODE === 2)
|
|
1352
|
-
if (
|
|
1353
|
+
if (de)
|
|
1353
1354
|
r = $e(e, "regexp.exec(string)", {
|
|
1354
1355
|
string: r,
|
|
1355
1356
|
regexp: s
|
|
1356
1357
|
}, s, o), r !== je && (e.g(this, "lastIndex", s.lastIndex), o(i(r)));
|
|
1357
1358
|
else {
|
|
1358
|
-
var u = e.ha(), p = Ke(e, s, u, o),
|
|
1359
|
-
u.onmessage = function(
|
|
1360
|
-
clearTimeout(p), e.g(
|
|
1359
|
+
var u = e.ha(), p = Ke(e, s, u, o), b = this;
|
|
1360
|
+
u.onmessage = function(x) {
|
|
1361
|
+
clearTimeout(p), e.g(b, "lastIndex", x.data[1]), o(i(x.data[0]));
|
|
1361
1362
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1362
1363
|
}
|
|
1363
1364
|
else
|
|
@@ -1367,42 +1368,42 @@ function Mo(e, t) {
|
|
|
1367
1368
|
function Vo(e, t) {
|
|
1368
1369
|
function n(r) {
|
|
1369
1370
|
var o = e.i(function(i) {
|
|
1370
|
-
var s =
|
|
1371
|
+
var s = he(e) ? this : e.Aa(o);
|
|
1371
1372
|
return $t(e, s, i), s;
|
|
1372
1373
|
}, !0);
|
|
1373
|
-
return e.g(o, "prototype", e.Aa(e.D),
|
|
1374
|
+
return e.g(o, "prototype", e.Aa(e.D), v), e.g(o.h.prototype, "name", r, v), e.g(t, r, o, v), o;
|
|
1374
1375
|
}
|
|
1375
1376
|
e.D = e.i(function(r) {
|
|
1376
|
-
var o =
|
|
1377
|
+
var o = he(e) ? this : e.Aa(e.D);
|
|
1377
1378
|
return $t(e, o, r), o;
|
|
1378
|
-
}, !0), e.g(t, "Error", e.D,
|
|
1379
|
+
}, !0), e.g(t, "Error", e.D, v), e.g(e.D.h.prototype, "message", "", v), e.g(e.D.h.prototype, "name", "Error", v), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1379
1380
|
}
|
|
1380
1381
|
function Do(e, t) {
|
|
1381
1382
|
var n = e.s(e.M);
|
|
1382
|
-
e.g(t, "Math", n,
|
|
1383
|
+
e.g(t, "Math", n, v);
|
|
1383
1384
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1384
1385
|
for (t = 0; t < r.length; t++)
|
|
1385
1386
|
e.g(n, r[t], Math[r[t]], q);
|
|
1386
1387
|
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++)
|
|
1387
|
-
e.g(n, r[t], e.i(Math[r[t]], !1),
|
|
1388
|
+
e.g(n, r[t], e.i(Math[r[t]], !1), v);
|
|
1388
1389
|
}
|
|
1389
1390
|
function Lo(e, t) {
|
|
1390
1391
|
var n = e.s(e.M);
|
|
1391
|
-
e.g(t, "JSON", n,
|
|
1392
|
+
e.g(t, "JSON", n, v), t = function(r) {
|
|
1392
1393
|
try {
|
|
1393
1394
|
var o = JSON.parse(String(r));
|
|
1394
1395
|
} catch (i) {
|
|
1395
|
-
|
|
1396
|
+
w(e, e.T, i.message);
|
|
1396
1397
|
}
|
|
1397
1398
|
return e.Ia(o);
|
|
1398
1399
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1399
|
-
o && o.H === "Function" ?
|
|
1400
|
+
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = gr(e, o), o = o.filter(function(u) {
|
|
1400
1401
|
return typeof u == "string" || typeof u == "number";
|
|
1401
1402
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1402
1403
|
try {
|
|
1403
1404
|
var s = JSON.stringify(r, o, i);
|
|
1404
1405
|
} catch (u) {
|
|
1405
|
-
|
|
1406
|
+
w(e, e.j, u.message);
|
|
1406
1407
|
}
|
|
1407
1408
|
return s;
|
|
1408
1409
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1412,7 +1413,7 @@ function H(e, t, n) {
|
|
|
1412
1413
|
return !1;
|
|
1413
1414
|
if (n = n.h.prototype, t === n)
|
|
1414
1415
|
return !0;
|
|
1415
|
-
for (t =
|
|
1416
|
+
for (t = pe(e, t); t; ) {
|
|
1416
1417
|
if (t === n)
|
|
1417
1418
|
return !0;
|
|
1418
1419
|
t = t.xa;
|
|
@@ -1420,10 +1421,10 @@ function H(e, t, n) {
|
|
|
1420
1421
|
return !1;
|
|
1421
1422
|
}
|
|
1422
1423
|
function qt(e, t, n) {
|
|
1423
|
-
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex,
|
|
1424
|
+
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, v), e.g(t, "source", n.source, q), e.g(t, "global", n.global, q), e.g(t, "ignoreCase", n.ignoreCase, q), e.g(t, "multiline", n.multiline, q);
|
|
1424
1425
|
}
|
|
1425
1426
|
function $t(e, t, n) {
|
|
1426
|
-
n && e.g(t, "message", String(n),
|
|
1427
|
+
n && e.g(t, "message", String(n), v), n = [];
|
|
1427
1428
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1428
1429
|
var o = e.o[r], i = o.node;
|
|
1429
1430
|
i.type === "CallExpression" && (o = o.U) && n.length && (n[n.length - 1].Ob = e.G(o, "name")), !i.X || n.length && i.type !== "CallExpression" || n.push({
|
|
@@ -1437,9 +1438,9 @@ function $t(e, t, n) {
|
|
|
1437
1438
|
`) : i + (" at " + s + `
|
|
1438
1439
|
`);
|
|
1439
1440
|
}
|
|
1440
|
-
e.g(t, "stack", i.trim(),
|
|
1441
|
+
e.g(t, "stack", i.trim(), v);
|
|
1441
1442
|
}
|
|
1442
|
-
|
|
1443
|
+
B.ha = function() {
|
|
1443
1444
|
var e = this.ha.Mb;
|
|
1444
1445
|
return e || (e = new Blob([Ao.join(`
|
|
1445
1446
|
`)], {
|
|
@@ -1451,9 +1452,9 @@ function $e(e, t, n, r, o) {
|
|
|
1451
1452
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1452
1453
|
};
|
|
1453
1454
|
try {
|
|
1454
|
-
return
|
|
1455
|
+
return de.runInNewContext(t, n, i);
|
|
1455
1456
|
} catch {
|
|
1456
|
-
o(null),
|
|
1457
|
+
o(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1457
1458
|
}
|
|
1458
1459
|
return je;
|
|
1459
1460
|
}
|
|
@@ -1462,36 +1463,36 @@ function He(e, t, n) {
|
|
|
1462
1463
|
var r = !1;
|
|
1463
1464
|
else if (e.REGEXP_MODE === 1)
|
|
1464
1465
|
r = !0;
|
|
1465
|
-
else if (
|
|
1466
|
+
else if (de)
|
|
1466
1467
|
r = !0;
|
|
1467
1468
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1468
1469
|
r = !0;
|
|
1469
1470
|
else if (typeof require == "function") {
|
|
1470
1471
|
try {
|
|
1471
|
-
|
|
1472
|
+
de = require("vm");
|
|
1472
1473
|
} catch {
|
|
1473
1474
|
}
|
|
1474
|
-
r = !!
|
|
1475
|
+
r = !!de;
|
|
1475
1476
|
} else
|
|
1476
1477
|
r = !1;
|
|
1477
|
-
r || (n(null),
|
|
1478
|
+
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
1478
1479
|
}
|
|
1479
1480
|
function Ke(e, t, n, r) {
|
|
1480
1481
|
return setTimeout(function() {
|
|
1481
1482
|
n.terminate(), r(null);
|
|
1482
1483
|
try {
|
|
1483
|
-
|
|
1484
|
+
w(e, e.D, "RegExp Timeout: " + t);
|
|
1484
1485
|
} catch {
|
|
1485
1486
|
}
|
|
1486
1487
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1487
1488
|
}
|
|
1488
|
-
|
|
1489
|
+
B.Aa = function(e) {
|
|
1489
1490
|
return this.s(e && e.h.prototype);
|
|
1490
1491
|
};
|
|
1491
|
-
|
|
1492
|
+
B.s = function(e) {
|
|
1492
1493
|
if (typeof e != "object")
|
|
1493
1494
|
throw Error("Non object prototype");
|
|
1494
|
-
return e = new
|
|
1495
|
+
return e = new P(e), H(this, e, this.D) && (e.H = "Error"), e;
|
|
1495
1496
|
};
|
|
1496
1497
|
function Pe(e) {
|
|
1497
1498
|
var t = e.s(e.La);
|
|
@@ -1503,21 +1504,21 @@ function Pe(e) {
|
|
|
1503
1504
|
}
|
|
1504
1505
|
function Zt(e, t, n) {
|
|
1505
1506
|
var r = e.s(e.Z);
|
|
1506
|
-
return n ? (n = e.s(e.M), e.g(r, "prototype", n,
|
|
1507
|
+
return n ? (n = e.s(e.M), e.g(r, "prototype", n, v), e.g(n, "constructor", r, v)) : r.Ab = !0, e.g(r, "length", t, q), r.H = "Function", r;
|
|
1507
1508
|
}
|
|
1508
1509
|
function Qt(e, t, n, r) {
|
|
1509
1510
|
var o = Zt(e, t.oa.length, !0);
|
|
1510
1511
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", q), o;
|
|
1511
1512
|
}
|
|
1512
|
-
|
|
1513
|
+
B.i = function(e, t) {
|
|
1513
1514
|
return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, q), t;
|
|
1514
1515
|
};
|
|
1515
|
-
|
|
1516
|
+
B.ub = function(e) {
|
|
1516
1517
|
var t = Zt(this, e.length, !0);
|
|
1517
1518
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, q), t;
|
|
1518
1519
|
};
|
|
1519
|
-
|
|
1520
|
-
if (e instanceof
|
|
1520
|
+
B.Ia = function(e) {
|
|
1521
|
+
if (e instanceof P)
|
|
1521
1522
|
throw Error("Object is already pseudo");
|
|
1522
1523
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1523
1524
|
return e;
|
|
@@ -1547,10 +1548,10 @@ U.Ia = function(e) {
|
|
|
1547
1548
|
this.g(t, r, this.Ia(e[r]));
|
|
1548
1549
|
return t;
|
|
1549
1550
|
};
|
|
1550
|
-
|
|
1551
|
+
B.R = function(e, t) {
|
|
1551
1552
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1552
1553
|
return e;
|
|
1553
|
-
if (!(e instanceof
|
|
1554
|
+
if (!(e instanceof P))
|
|
1554
1555
|
throw Error("Object is not pseudo");
|
|
1555
1556
|
if (H(this, e, this.I))
|
|
1556
1557
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1566,7 +1567,7 @@ U.R = function(e, t) {
|
|
|
1566
1567
|
if (t.hb.push(e), H(this, e, this.qa)) {
|
|
1567
1568
|
n = [], t.Sa.push(n);
|
|
1568
1569
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1569
|
-
|
|
1570
|
+
mt(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1570
1571
|
} else
|
|
1571
1572
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1572
1573
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1577,7 +1578,7 @@ U.R = function(e, t) {
|
|
|
1577
1578
|
});
|
|
1578
1579
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1579
1580
|
};
|
|
1580
|
-
function
|
|
1581
|
+
function fe(e, t) {
|
|
1581
1582
|
for (var n = Pe(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1582
1583
|
e.g(n, r[o], t[r[o]]);
|
|
1583
1584
|
return n;
|
|
@@ -1588,7 +1589,7 @@ function gr(e, t) {
|
|
|
1588
1589
|
n[r] = e.G(t, r);
|
|
1589
1590
|
return n.length = zt(e.G(t, "length")) || 0, n;
|
|
1590
1591
|
}
|
|
1591
|
-
function
|
|
1592
|
+
function pe(e, t) {
|
|
1592
1593
|
switch (typeof t) {
|
|
1593
1594
|
case "number":
|
|
1594
1595
|
return e.aa.h.prototype;
|
|
@@ -1599,10 +1600,10 @@ function de(e, t) {
|
|
|
1599
1600
|
}
|
|
1600
1601
|
return t ? t.xa : null;
|
|
1601
1602
|
}
|
|
1602
|
-
|
|
1603
|
+
B.G = function(e, t) {
|
|
1603
1604
|
if (this.P)
|
|
1604
1605
|
throw Error("Getter not supported in that context");
|
|
1605
|
-
if (t = String(t), e != null ||
|
|
1606
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
1606
1607
|
throw TypeError("Expecting native value or pseudo object");
|
|
1607
1608
|
if (t === "length") {
|
|
1608
1609
|
if (H(this, e, this.J))
|
|
@@ -1615,10 +1616,10 @@ U.G = function(e, t) {
|
|
|
1615
1616
|
do
|
|
1616
1617
|
if (e.h && t in e.h)
|
|
1617
1618
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1618
|
-
while (e =
|
|
1619
|
+
while (e = pe(this, e));
|
|
1619
1620
|
};
|
|
1620
|
-
function
|
|
1621
|
-
if (!(t instanceof
|
|
1621
|
+
function mt(e, t, n) {
|
|
1622
|
+
if (!(t instanceof P))
|
|
1622
1623
|
throw TypeError("Primitive data type has no properties");
|
|
1623
1624
|
if (n = String(n), n === "length" && H(e, t, e.J))
|
|
1624
1625
|
return !0;
|
|
@@ -1630,21 +1631,21 @@ function ht(e, t, n) {
|
|
|
1630
1631
|
do
|
|
1631
1632
|
if (t.h && n in t.h)
|
|
1632
1633
|
return !0;
|
|
1633
|
-
while (t =
|
|
1634
|
+
while (t = pe(e, t));
|
|
1634
1635
|
return !1;
|
|
1635
1636
|
}
|
|
1636
|
-
|
|
1637
|
+
B.g = function(e, t, n, r) {
|
|
1637
1638
|
if (this.Ka)
|
|
1638
1639
|
throw Error("Setter not supported in that context");
|
|
1639
|
-
if (t = String(t), e != null ||
|
|
1640
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
1640
1641
|
throw TypeError("Expecting native value or pseudo object");
|
|
1641
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1642
|
+
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");
|
|
1642
1643
|
var o = !this.o || en(this).S;
|
|
1643
|
-
if (e instanceof
|
|
1644
|
+
if (e instanceof P) {
|
|
1644
1645
|
if (H(this, e, this.J)) {
|
|
1645
1646
|
var i = Ye(t);
|
|
1646
1647
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1647
|
-
o &&
|
|
1648
|
+
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1648
1649
|
return;
|
|
1649
1650
|
}
|
|
1650
1651
|
}
|
|
@@ -1655,7 +1656,7 @@ U.g = function(e, t, n, r) {
|
|
|
1655
1656
|
return;
|
|
1656
1657
|
n = r.value;
|
|
1657
1658
|
}
|
|
1658
|
-
if (n = zt(n), isNaN(n) &&
|
|
1659
|
+
if (n = zt(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < i)
|
|
1659
1660
|
for (s in e.h) {
|
|
1660
1661
|
var s = Ye(s);
|
|
1661
1662
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1668,44 +1669,44 @@ U.g = function(e, t, n, r) {
|
|
|
1668
1669
|
try {
|
|
1669
1670
|
Object.defineProperty(e.h, t, o);
|
|
1670
1671
|
} catch {
|
|
1671
|
-
|
|
1672
|
+
w(this, this.j, "Cannot redefine property: " + t);
|
|
1672
1673
|
}
|
|
1673
1674
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1674
1675
|
} else {
|
|
1675
1676
|
if (n === Je)
|
|
1676
1677
|
throw ReferenceError("Value not specified");
|
|
1677
1678
|
for (r = e; !(t in r.h); )
|
|
1678
|
-
if (r =
|
|
1679
|
+
if (r = pe(this, r), !r) {
|
|
1679
1680
|
r = e;
|
|
1680
1681
|
break;
|
|
1681
1682
|
}
|
|
1682
1683
|
if (r.Y && r.Y[t])
|
|
1683
1684
|
return this.Ka = !0, r.Y[t];
|
|
1684
1685
|
if (r.V && r.V[t])
|
|
1685
|
-
o &&
|
|
1686
|
+
o && w(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1686
1687
|
else
|
|
1687
1688
|
try {
|
|
1688
1689
|
e.h[t] = n;
|
|
1689
1690
|
} catch {
|
|
1690
|
-
o &&
|
|
1691
|
+
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1691
1692
|
}
|
|
1692
1693
|
}
|
|
1693
1694
|
else
|
|
1694
|
-
o &&
|
|
1695
|
+
o && w(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1695
1696
|
} else
|
|
1696
|
-
o &&
|
|
1697
|
+
o && w(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1697
1698
|
};
|
|
1698
|
-
|
|
1699
|
+
B.g.ac = function() {
|
|
1699
1700
|
throw Error("Placeholder getter");
|
|
1700
1701
|
};
|
|
1701
|
-
|
|
1702
|
+
B.g.bc = function() {
|
|
1702
1703
|
throw Error("Placeholder setter");
|
|
1703
1704
|
};
|
|
1704
1705
|
function $(e, t, n, r) {
|
|
1705
|
-
e.g(t.h.prototype, n, e.i(r, !1),
|
|
1706
|
+
e.g(t.h.prototype, n, e.i(r, !1), v);
|
|
1706
1707
|
}
|
|
1707
1708
|
function Ge(e, t, n, r) {
|
|
1708
|
-
e.g(t.h.prototype, n, e.ub(r),
|
|
1709
|
+
e.g(t.h.prototype, n, e.ub(r), v);
|
|
1709
1710
|
}
|
|
1710
1711
|
function en(e) {
|
|
1711
1712
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
@@ -1733,9 +1734,9 @@ function nn(e, t) {
|
|
|
1733
1734
|
return n.object.h[t];
|
|
1734
1735
|
n = n.Va;
|
|
1735
1736
|
}
|
|
1736
|
-
if (n === e.N &&
|
|
1737
|
+
if (n === e.N && mt(e, n.object, t))
|
|
1737
1738
|
return e.G(n.object, t);
|
|
1738
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
1739
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1739
1740
|
}
|
|
1740
1741
|
function yr(e, t, n) {
|
|
1741
1742
|
for (var r = en(e), o = r.S; r && r !== e.N; ) {
|
|
@@ -1743,15 +1744,15 @@ function yr(e, t, n) {
|
|
|
1743
1744
|
try {
|
|
1744
1745
|
r.object.h[t] = n;
|
|
1745
1746
|
} catch {
|
|
1746
|
-
o &&
|
|
1747
|
+
o && w(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1747
1748
|
}
|
|
1748
1749
|
return;
|
|
1749
1750
|
}
|
|
1750
1751
|
r = r.Va;
|
|
1751
1752
|
}
|
|
1752
|
-
if (r === e.N && (!o ||
|
|
1753
|
+
if (r === e.N && (!o || mt(e, r.object, t)))
|
|
1753
1754
|
return e.g(r.object, t, n);
|
|
1754
|
-
|
|
1755
|
+
w(e, e.pb, t + " is not defined");
|
|
1755
1756
|
}
|
|
1756
1757
|
function ze(e, t, n) {
|
|
1757
1758
|
if (t.jb)
|
|
@@ -1802,7 +1803,7 @@ function ze(e, t, n) {
|
|
|
1802
1803
|
r[s] === !0 ? e.g(n.object, s, void 0, Hn) : e.g(n.object, s, Qt(e, r[s], n), Hn);
|
|
1803
1804
|
return r;
|
|
1804
1805
|
}
|
|
1805
|
-
function
|
|
1806
|
+
function he(e) {
|
|
1806
1807
|
return e.o[e.o.length - 1].isConstructor;
|
|
1807
1808
|
}
|
|
1808
1809
|
function rn(e, t) {
|
|
@@ -1811,8 +1812,8 @@ function rn(e, t) {
|
|
|
1811
1812
|
function on(e, t, n) {
|
|
1812
1813
|
return t[0] === Ne ? yr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1813
1814
|
}
|
|
1814
|
-
function
|
|
1815
|
-
throw e.N ? (n !== void 0 && t instanceof
|
|
1815
|
+
function w(e, t, n) {
|
|
1816
|
+
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), $t(e, t, n)), qe(e, 4, t), mr) : n === void 0 ? t : n;
|
|
1816
1817
|
}
|
|
1817
1818
|
function qe(e, t, n, r) {
|
|
1818
1819
|
if (t === 0)
|
|
@@ -1894,16 +1895,16 @@ function Gn(e, t, n) {
|
|
|
1894
1895
|
var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
|
|
1895
1896
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1896
1897
|
var s = e.ya();
|
|
1897
|
-
if (i instanceof
|
|
1898
|
+
if (i instanceof P && i.H === "Function") {
|
|
1898
1899
|
var u = i;
|
|
1899
1900
|
s.type = "CallExpression", r = r.scope;
|
|
1900
1901
|
} else {
|
|
1901
1902
|
try {
|
|
1902
1903
|
var p = Re(String(i), "taskCode" + e.ic++);
|
|
1903
|
-
} catch (
|
|
1904
|
-
|
|
1904
|
+
} catch (b) {
|
|
1905
|
+
w(e, e.T, "Invalid code: " + b.message);
|
|
1905
1906
|
}
|
|
1906
|
-
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0],
|
|
1907
|
+
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0], ht(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1907
1908
|
}
|
|
1908
1909
|
return t = new _o(u, o, r, s, t ? n : -1), vr(e, t, n), t.Db;
|
|
1909
1910
|
}
|
|
@@ -1924,44 +1925,44 @@ function Ze(e, t, n) {
|
|
|
1924
1925
|
throw Error("Unexpected call to createGetter");
|
|
1925
1926
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
1926
1927
|
var r = e.ya();
|
|
1927
|
-
return r.type = "CallExpression", e = new
|
|
1928
|
+
return r.type = "CallExpression", e = new S(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1928
1929
|
}
|
|
1929
1930
|
function an(e, t, n, r) {
|
|
1930
1931
|
if (!e.Ka)
|
|
1931
1932
|
throw Error("Unexpected call to createSetter");
|
|
1932
1933
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1933
1934
|
var o = e.ya();
|
|
1934
|
-
return o.type = "CallExpression", e = new
|
|
1935
|
+
return o.type = "CallExpression", e = new S(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1935
1936
|
}
|
|
1936
1937
|
function _t(e, t) {
|
|
1937
|
-
return t == null ? e.Na : t instanceof
|
|
1938
|
+
return t == null ? e.Na : t instanceof P ? t : (e = e.s(pe(e, t)), e.data = t, e);
|
|
1938
1939
|
}
|
|
1939
|
-
|
|
1940
|
+
B.Xb = function() {
|
|
1940
1941
|
return this.N;
|
|
1941
1942
|
};
|
|
1942
|
-
|
|
1943
|
+
B.Yb = function() {
|
|
1943
1944
|
return this.o;
|
|
1944
1945
|
};
|
|
1945
|
-
|
|
1946
|
+
B.ec = function(e) {
|
|
1946
1947
|
this.o = e;
|
|
1947
1948
|
};
|
|
1948
|
-
function
|
|
1949
|
+
function S(e, t) {
|
|
1949
1950
|
this.node = e, this.scope = t;
|
|
1950
1951
|
}
|
|
1951
1952
|
function br(e, t, n) {
|
|
1952
1953
|
this.Va = e, this.S = t, this.object = n;
|
|
1953
1954
|
}
|
|
1954
|
-
function
|
|
1955
|
+
function P(e) {
|
|
1955
1956
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1956
1957
|
}
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1958
|
+
B = P.prototype;
|
|
1959
|
+
B.xa = null;
|
|
1960
|
+
B.H = "Object";
|
|
1961
|
+
B.data = null;
|
|
1962
|
+
B.toString = function() {
|
|
1962
1963
|
if (!Xe)
|
|
1963
1964
|
return "[object Interpreter.Object]";
|
|
1964
|
-
if (!(this instanceof
|
|
1965
|
+
if (!(this instanceof P))
|
|
1965
1966
|
return String(this);
|
|
1966
1967
|
if (this.H === "Array") {
|
|
1967
1968
|
var e = Kn;
|
|
@@ -1971,7 +1972,7 @@ U.toString = function() {
|
|
|
1971
1972
|
1024 < n && (n = 1e3, r = !0);
|
|
1972
1973
|
for (var o = 0; o < n; o++) {
|
|
1973
1974
|
var i = this.h[o];
|
|
1974
|
-
t[o] = i instanceof
|
|
1975
|
+
t[o] = i instanceof P && e.indexOf(i) !== -1 ? "..." : i;
|
|
1975
1976
|
}
|
|
1976
1977
|
r && t.push("...");
|
|
1977
1978
|
} finally {
|
|
@@ -2006,7 +2007,7 @@ U.toString = function() {
|
|
|
2006
2007
|
}
|
|
2007
2008
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
2008
2009
|
};
|
|
2009
|
-
|
|
2010
|
+
B.valueOf = function() {
|
|
2010
2011
|
return !Xe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2011
2012
|
};
|
|
2012
2013
|
function _o(e, t, n, r, o) {
|
|
@@ -2018,16 +2019,16 @@ h.prototype.stepArrayExpression = function(e, t, n) {
|
|
|
2018
2019
|
var r = t.A || 0;
|
|
2019
2020
|
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Pe(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
2020
2021
|
if (n[r])
|
|
2021
|
-
return t.A = r, new
|
|
2022
|
+
return t.A = r, new S(n[r], t.scope);
|
|
2022
2023
|
r++;
|
|
2023
2024
|
}
|
|
2024
2025
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
2025
2026
|
};
|
|
2026
2027
|
h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
2027
2028
|
if (!t.ja)
|
|
2028
|
-
return t.ja = !0, t = new
|
|
2029
|
+
return t.ja = !0, t = new S(n.left, t.scope), t.sa = !0, t;
|
|
2029
2030
|
if (!t.Da)
|
|
2030
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = rn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ze(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new
|
|
2031
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = rn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ze(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new S(n.right, t.scope));
|
|
2031
2032
|
if (t.ta)
|
|
2032
2033
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2033
2034
|
else {
|
|
@@ -2079,9 +2080,9 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2079
2080
|
};
|
|
2080
2081
|
h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
2081
2082
|
if (!t.ja)
|
|
2082
|
-
return t.ja = !0, new
|
|
2083
|
+
return t.ja = !0, new S(n.left, t.scope);
|
|
2083
2084
|
if (!t.Da)
|
|
2084
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2085
|
+
return t.Da = !0, t.ma = t.value, new S(n.right, t.scope);
|
|
2085
2086
|
e.pop();
|
|
2086
2087
|
var r = t.ma;
|
|
2087
2088
|
switch (t = t.value, n.operator) {
|
|
@@ -2143,10 +2144,10 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2143
2144
|
n = r >>> t;
|
|
2144
2145
|
break;
|
|
2145
2146
|
case "in":
|
|
2146
|
-
t instanceof
|
|
2147
|
+
t instanceof P || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = mt(this, t, r);
|
|
2147
2148
|
break;
|
|
2148
2149
|
case "instanceof":
|
|
2149
|
-
H(this, t, this.O) ||
|
|
2150
|
+
H(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof P ? H(this, r, t) : !1;
|
|
2150
2151
|
break;
|
|
2151
2152
|
default:
|
|
2152
2153
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2156,7 +2157,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2156
2157
|
h.prototype.stepBlockStatement = function(e, t, n) {
|
|
2157
2158
|
var r = t.A || 0;
|
|
2158
2159
|
if (n = n.body[r])
|
|
2159
|
-
return t.A = r + 1, new
|
|
2160
|
+
return t.A = r + 1, new S(n, t.scope);
|
|
2160
2161
|
e.pop();
|
|
2161
2162
|
};
|
|
2162
2163
|
h.prototype.stepBreakStatement = function(e, t, n) {
|
|
@@ -2166,7 +2167,7 @@ h.prototype.Hb = 0;
|
|
|
2166
2167
|
h.prototype.stepCallExpression = function(e, t, n) {
|
|
2167
2168
|
if (!t.ia) {
|
|
2168
2169
|
t.ia = 1;
|
|
2169
|
-
var r = new
|
|
2170
|
+
var r = new S(n.callee, t.scope);
|
|
2170
2171
|
return r.sa = !0, r;
|
|
2171
2172
|
}
|
|
2172
2173
|
if (t.ia === 1) {
|
|
@@ -2181,9 +2182,9 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2181
2182
|
}
|
|
2182
2183
|
if (o = t.U, !t.Qa) {
|
|
2183
2184
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2184
|
-
return new
|
|
2185
|
+
return new S(n.arguments[t.A++], t.scope);
|
|
2185
2186
|
if (n.type === "NewExpression") {
|
|
2186
|
-
if (o instanceof
|
|
2187
|
+
if (o instanceof P && !o.Ab || w(this, this.j, z(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2187
2188
|
t.B = Pe(this);
|
|
2188
2189
|
else {
|
|
2189
2190
|
var i = o.h.prototype;
|
|
@@ -2196,12 +2197,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2196
2197
|
if (t.eb)
|
|
2197
2198
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2198
2199
|
else {
|
|
2199
|
-
if (t.eb = !0, o instanceof
|
|
2200
|
+
if (t.eb = !0, o instanceof P || w(this, this.j, z(this, n.callee) + " is not a function"), e = o.node) {
|
|
2200
2201
|
for (n = Ht(this, e.body, o.Va), r = Pe(this), o = 0; o < t.F.length; o++)
|
|
2201
2202
|
this.g(r, o, t.F[o]);
|
|
2202
2203
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2203
2204
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2204
|
-
return n.S || (t.B = _t(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new
|
|
2205
|
+
return n.S || (t.B = _t(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new S(e.body, n);
|
|
2205
2206
|
}
|
|
2206
2207
|
if (o.eval)
|
|
2207
2208
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2210,9 +2211,9 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2210
2211
|
try {
|
|
2211
2212
|
r = Re(String(o), "eval" + this.Hb++);
|
|
2212
2213
|
} catch (u) {
|
|
2213
|
-
|
|
2214
|
+
w(this, this.T, "Invalid code: " + u.message);
|
|
2214
2215
|
}
|
|
2215
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body,
|
|
2216
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ht(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Ht(this, r, n) : ze(this, r, n), this.value = void 0, new S(o, n);
|
|
2216
2217
|
}
|
|
2217
2218
|
else if (o.Ta)
|
|
2218
2219
|
t.scope.S || (t.B = _t(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
@@ -2222,18 +2223,18 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2222
2223
|
t.value = u, s.za = !1;
|
|
2223
2224
|
}), this.za = !0, t.scope.S || (t.B = _t(this, t.B)), o.Za.apply(t.B, r);
|
|
2224
2225
|
} else
|
|
2225
|
-
|
|
2226
|
+
w(this, this.j, z(this, n.callee) + " is not callable");
|
|
2226
2227
|
}
|
|
2227
2228
|
};
|
|
2228
2229
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
2229
2230
|
var r = t.na || 0;
|
|
2230
2231
|
if (r === 0)
|
|
2231
|
-
return t.na = 1, new
|
|
2232
|
+
return t.na = 1, new S(n.test, t.scope);
|
|
2232
2233
|
if (r === 1) {
|
|
2233
2234
|
if (t.na = 2, (r = !!t.value) && n.da)
|
|
2234
|
-
return new
|
|
2235
|
+
return new S(n.da, t.scope);
|
|
2235
2236
|
if (!r && n.alternate)
|
|
2236
|
-
return new
|
|
2237
|
+
return new S(n.alternate, t.scope);
|
|
2237
2238
|
this.value = void 0;
|
|
2238
2239
|
}
|
|
2239
2240
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
@@ -2246,11 +2247,11 @@ h.prototype.stepDebuggerStatement = function(e) {
|
|
|
2246
2247
|
};
|
|
2247
2248
|
h.prototype.stepDoWhileStatement = function(e, t, n) {
|
|
2248
2249
|
if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2249
|
-
return t.ga = !0, new
|
|
2250
|
+
return t.ga = !0, new S(n.test, t.scope);
|
|
2250
2251
|
if (!t.value)
|
|
2251
2252
|
e.pop();
|
|
2252
2253
|
else if (n.body)
|
|
2253
|
-
return t.ga = !1, t.W = !0, new
|
|
2254
|
+
return t.ga = !1, t.W = !0, new S(n.body, t.scope);
|
|
2254
2255
|
};
|
|
2255
2256
|
h.prototype.stepEmptyStatement = function(e) {
|
|
2256
2257
|
e.pop();
|
|
@@ -2258,23 +2259,23 @@ h.prototype.stepEmptyStatement = function(e) {
|
|
|
2258
2259
|
h.prototype.stepEvalProgram_ = function(e, t, n) {
|
|
2259
2260
|
var r = t.A || 0;
|
|
2260
2261
|
if (n = n.body[r])
|
|
2261
|
-
return t.A = r + 1, new
|
|
2262
|
+
return t.A = r + 1, new S(n, t.scope);
|
|
2262
2263
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2263
2264
|
};
|
|
2264
2265
|
h.prototype.stepExpressionStatement = function(e, t, n) {
|
|
2265
2266
|
if (!t.ka)
|
|
2266
|
-
return this.value = void 0, t.ka = !0, new
|
|
2267
|
+
return this.value = void 0, t.ka = !0, new S(n.la, t.scope);
|
|
2267
2268
|
e.pop(), this.value = t.value;
|
|
2268
2269
|
};
|
|
2269
2270
|
h.prototype.stepForInStatement = function(e, t, n) {
|
|
2270
2271
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2271
|
-
return t.scope.S &&
|
|
2272
|
+
return t.scope.S && w(this, this.T, "for-in loop variable declaration may not have an initializer"), new S(n.left, t.scope);
|
|
2272
2273
|
if (!t.Ca)
|
|
2273
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2274
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new S(n.right, t.scope);
|
|
2274
2275
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2275
2276
|
e:
|
|
2276
2277
|
for (; ; ) {
|
|
2277
|
-
if (t.u instanceof
|
|
2278
|
+
if (t.u instanceof P)
|
|
2278
2279
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2279
2280
|
var r = t.wa.shift();
|
|
2280
2281
|
if (r === void 0)
|
|
@@ -2291,7 +2292,7 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2291
2292
|
break e;
|
|
2292
2293
|
}
|
|
2293
2294
|
}
|
|
2294
|
-
if (t.u =
|
|
2295
|
+
if (t.u = pe(this, t.u), t.wa = null, t.u === null) {
|
|
2295
2296
|
e.pop();
|
|
2296
2297
|
return;
|
|
2297
2298
|
}
|
|
@@ -2300,31 +2301,31 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2300
2301
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2301
2302
|
t.pa = [Ne, e.fa[0].id.name];
|
|
2302
2303
|
else
|
|
2303
|
-
return t.pa = null, t = new
|
|
2304
|
+
return t.pa = null, t = new S(e, t.scope), t.sa = !0, t;
|
|
2304
2305
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = on(this, t.pa, e)))
|
|
2305
2306
|
return an(this, r, t.pa, e);
|
|
2306
2307
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2307
|
-
return new
|
|
2308
|
+
return new S(n.body, t.scope);
|
|
2308
2309
|
};
|
|
2309
2310
|
h.prototype.stepForStatement = function(e, t, n) {
|
|
2310
2311
|
switch (t.na) {
|
|
2311
2312
|
default:
|
|
2312
2313
|
if (t.na = 1, n.ua)
|
|
2313
|
-
return new
|
|
2314
|
+
return new S(n.ua, t.scope);
|
|
2314
2315
|
break;
|
|
2315
2316
|
case 1:
|
|
2316
2317
|
if (t.na = 2, n.test)
|
|
2317
|
-
return new
|
|
2318
|
+
return new S(n.test, t.scope);
|
|
2318
2319
|
break;
|
|
2319
2320
|
case 2:
|
|
2320
2321
|
if (t.na = 3, n.test && !t.value)
|
|
2321
2322
|
e.pop();
|
|
2322
2323
|
else
|
|
2323
|
-
return t.W = !0, new
|
|
2324
|
+
return t.W = !0, new S(n.body, t.scope);
|
|
2324
2325
|
break;
|
|
2325
2326
|
case 3:
|
|
2326
2327
|
if (t.na = 1, n.update)
|
|
2327
|
-
return new
|
|
2328
|
+
return new S(n.update, t.scope);
|
|
2328
2329
|
}
|
|
2329
2330
|
};
|
|
2330
2331
|
h.prototype.stepFunctionDeclaration = function(e) {
|
|
@@ -2344,7 +2345,7 @@ h.prototype.stepIdentifier = function(e, t, n) {
|
|
|
2344
2345
|
};
|
|
2345
2346
|
h.prototype.stepIfStatement = h.prototype.stepConditionalExpression;
|
|
2346
2347
|
h.prototype.stepLabeledStatement = function(e, t, n) {
|
|
2347
|
-
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new
|
|
2348
|
+
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new S(n.body, t.scope), t.labels = e, t;
|
|
2348
2349
|
};
|
|
2349
2350
|
h.prototype.stepLiteral = function(e, t, n) {
|
|
2350
2351
|
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), qt(this, n, t), t = n), e[e.length - 1].value = t;
|
|
@@ -2353,22 +2354,22 @@ h.prototype.stepLogicalExpression = function(e, t, n) {
|
|
|
2353
2354
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
2354
2355
|
throw SyntaxError("Unknown logical operator: " + n.operator);
|
|
2355
2356
|
if (!t.ja)
|
|
2356
|
-
return t.ja = !0, new
|
|
2357
|
+
return t.ja = !0, new S(n.left, t.scope);
|
|
2357
2358
|
if (t.Da)
|
|
2358
2359
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2359
2360
|
else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
|
|
2360
2361
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2361
2362
|
else
|
|
2362
|
-
return t.Da = !0, new
|
|
2363
|
+
return t.Da = !0, new S(n.right, t.scope);
|
|
2363
2364
|
};
|
|
2364
2365
|
h.prototype.stepMemberExpression = function(e, t, n) {
|
|
2365
2366
|
if (!t.Ca)
|
|
2366
|
-
return t.Ca = !0, new
|
|
2367
|
+
return t.Ca = !0, new S(n.object, t.scope);
|
|
2367
2368
|
if (n.bb)
|
|
2368
2369
|
if (t.Vb)
|
|
2369
2370
|
n = t.value;
|
|
2370
2371
|
else
|
|
2371
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2372
|
+
return t.u = t.value, t.Vb = !0, new S(n.Wa, t.scope);
|
|
2372
2373
|
else
|
|
2373
2374
|
t.u = t.value, n = n.Wa.name;
|
|
2374
2375
|
if (e.pop(), t.sa)
|
|
@@ -2395,7 +2396,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2395
2396
|
i = s.value;
|
|
2396
2397
|
else
|
|
2397
2398
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2398
|
-
return t.Pa = i, new
|
|
2399
|
+
return t.Pa = i, new S(o.value, t.scope);
|
|
2399
2400
|
}
|
|
2400
2401
|
for (s in t.Ja)
|
|
2401
2402
|
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, Je, {
|
|
@@ -2408,35 +2409,35 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2408
2409
|
};
|
|
2409
2410
|
h.prototype.stepProgram = function(e, t, n) {
|
|
2410
2411
|
if (e = n.body.shift())
|
|
2411
|
-
return t.done = !1, new
|
|
2412
|
+
return t.done = !1, new S(e, t.scope);
|
|
2412
2413
|
t.done = !0;
|
|
2413
2414
|
};
|
|
2414
2415
|
h.prototype.stepReturnStatement = function(e, t, n) {
|
|
2415
2416
|
if (n.K && !t.ka)
|
|
2416
|
-
return t.ka = !0, new
|
|
2417
|
+
return t.ka = !0, new S(n.K, t.scope);
|
|
2417
2418
|
qe(this, 3, t.value);
|
|
2418
2419
|
};
|
|
2419
2420
|
h.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2420
2421
|
var r = t.A || 0;
|
|
2421
2422
|
if (n = n.xb[r])
|
|
2422
|
-
return t.A = r + 1, new
|
|
2423
|
+
return t.A = r + 1, new S(n, t.scope);
|
|
2423
2424
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2424
2425
|
};
|
|
2425
2426
|
h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
2426
2427
|
if (!t.ga)
|
|
2427
|
-
return t.ga = 1, new
|
|
2428
|
+
return t.ga = 1, new S(n.Qb, t.scope);
|
|
2428
2429
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2429
2430
|
var r = t.gb || 0, o = n.tb[r];
|
|
2430
2431
|
if (t.Ha || !o || o.test)
|
|
2431
2432
|
if (o || t.Ha || t.cb === -1)
|
|
2432
2433
|
if (o) {
|
|
2433
2434
|
if (!t.Ha && !t.Fb && o.test)
|
|
2434
|
-
return t.Fb = !0, new
|
|
2435
|
+
return t.Fb = !0, new S(o.test, t.scope);
|
|
2435
2436
|
if (t.Ha || t.value === t.hc) {
|
|
2436
2437
|
t.Ha = !0;
|
|
2437
2438
|
var i = t.A || 0;
|
|
2438
2439
|
if (o.da[i])
|
|
2439
|
-
return t.Zb = !0, t.A = i + 1, new
|
|
2440
|
+
return t.Zb = !0, t.A = i + 1, new S(o.da[i], t.scope);
|
|
2440
2441
|
}
|
|
2441
2442
|
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2442
2443
|
} else {
|
|
@@ -2454,22 +2455,22 @@ h.prototype.stepThisExpression = function(e) {
|
|
|
2454
2455
|
};
|
|
2455
2456
|
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2456
2457
|
if (t.ka)
|
|
2457
|
-
|
|
2458
|
+
w(this, t.value);
|
|
2458
2459
|
else
|
|
2459
|
-
return t.ka = !0, new
|
|
2460
|
+
return t.ka = !0, new S(n.K, t.scope);
|
|
2460
2461
|
};
|
|
2461
2462
|
h.prototype.stepTryStatement = function(e, t, n) {
|
|
2462
2463
|
if (!t.Rb)
|
|
2463
|
-
return t.Rb = !0, new
|
|
2464
|
+
return t.Rb = !0, new S(n.block, t.scope);
|
|
2464
2465
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2465
|
-
return t.Tb = !0, e = tn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new
|
|
2466
|
+
return t.Tb = !0, e = tn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new S(n.Ea.body, e);
|
|
2466
2467
|
if (!t.Sb && n.fb)
|
|
2467
|
-
return t.Sb = !0, new
|
|
2468
|
+
return t.Sb = !0, new S(n.fb, t.scope);
|
|
2468
2469
|
e.pop(), t.ea && qe(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2469
2470
|
};
|
|
2470
2471
|
h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2471
2472
|
if (!t.ka)
|
|
2472
|
-
return t.ka = !0, e = new
|
|
2473
|
+
return t.ka = !0, e = new S(n.K, t.scope), e.sa = n.operator === "delete", e;
|
|
2473
2474
|
e.pop();
|
|
2474
2475
|
var r = t.value;
|
|
2475
2476
|
switch (n.operator) {
|
|
@@ -2492,7 +2493,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2492
2493
|
try {
|
|
2493
2494
|
delete o.h[r];
|
|
2494
2495
|
} catch {
|
|
2495
|
-
t.scope.S ?
|
|
2496
|
+
t.scope.S ? w(this, this.j, "Cannot delete property '" + r + "' of '" + o + "'") : n = !1;
|
|
2496
2497
|
}
|
|
2497
2498
|
}
|
|
2498
2499
|
r = n;
|
|
@@ -2510,7 +2511,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2510
2511
|
};
|
|
2511
2512
|
h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
2512
2513
|
if (!t.ja)
|
|
2513
|
-
return t.ja = !0, e = new
|
|
2514
|
+
return t.ja = !0, e = new S(n.K, t.scope), e.sa = !0, e;
|
|
2514
2515
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2515
2516
|
var r = rn(this, t.Ga);
|
|
2516
2517
|
if (t.ma = r, this.P)
|
|
@@ -2535,13 +2536,13 @@ h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2535
2536
|
var r = t.A || 0, o = n[r];
|
|
2536
2537
|
for (t.Bb && o && (yr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2537
2538
|
if (o.ua)
|
|
2538
|
-
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new
|
|
2539
|
+
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new S(o.ua, t.scope);
|
|
2539
2540
|
o = n[++r];
|
|
2540
2541
|
}
|
|
2541
2542
|
e.pop();
|
|
2542
2543
|
};
|
|
2543
2544
|
h.prototype.stepWithStatement = function(e, t, n) {
|
|
2544
|
-
return t.Ca ? (e.pop(), e = tn(this, t.scope, t.value), new
|
|
2545
|
+
return t.Ca ? (e.pop(), e = tn(this, t.scope, t.value), new S(n.body, e)) : (t.Ca = !0, new S(n.object, t.scope));
|
|
2545
2546
|
};
|
|
2546
2547
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2547
2548
|
ve.Interpreter = h;
|
|
@@ -2590,51 +2591,51 @@ const $o = (e) => e.split(`
|
|
|
2590
2591
|
context: t,
|
|
2591
2592
|
event: n,
|
|
2592
2593
|
state: u
|
|
2593
|
-
}),
|
|
2594
|
-
const
|
|
2595
|
-
return `var ${
|
|
2594
|
+
}), b = p.map(([j]) => {
|
|
2595
|
+
const R = Yn(j);
|
|
2596
|
+
return `var ${j} = ${R} === undefined ? undefined : JSON.parse(${R});`;
|
|
2596
2597
|
}).join(`
|
|
2597
|
-
`),
|
|
2598
|
-
if (
|
|
2599
|
-
|
|
2598
|
+
`), x = $o(s);
|
|
2599
|
+
if (x === "") {
|
|
2600
|
+
Z.warn("Skipping evaluation of empty code block.");
|
|
2600
2601
|
return;
|
|
2601
2602
|
}
|
|
2602
2603
|
const m = `
|
|
2603
2604
|
function theFunction() {
|
|
2604
|
-
${
|
|
2605
|
+
${b}
|
|
2605
2606
|
|
|
2606
|
-
${
|
|
2607
|
+
${x}
|
|
2607
2608
|
}
|
|
2608
2609
|
theFunction();
|
|
2609
|
-
`,
|
|
2610
|
-
const
|
|
2611
|
-
i == null || i(
|
|
2612
|
-
},
|
|
2613
|
-
p.forEach(([
|
|
2614
|
-
const
|
|
2615
|
-
|
|
2616
|
-
}),
|
|
2610
|
+
`, O = (j, R) => {
|
|
2611
|
+
const Y = hr(u, j, R);
|
|
2612
|
+
i == null || i(Y);
|
|
2613
|
+
}, N = function(j, R) {
|
|
2614
|
+
p.forEach(([Y, T]) => {
|
|
2615
|
+
const g = JSON.stringify(T);
|
|
2616
|
+
j.setProperty(R, Yn(Y), g);
|
|
2617
|
+
}), j.setProperty(R, "setRootState", j.createNativeFunction(O));
|
|
2617
2618
|
};
|
|
2618
2619
|
try {
|
|
2619
|
-
const
|
|
2620
|
-
return
|
|
2621
|
-
} catch (
|
|
2622
|
-
|
|
2623
|
-
e:
|
|
2620
|
+
const j = new h(m, N);
|
|
2621
|
+
return j.run(), j.pseudoToNative(j.value);
|
|
2622
|
+
} catch (j) {
|
|
2623
|
+
Z.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2624
|
+
e: j
|
|
2624
2625
|
});
|
|
2625
2626
|
return;
|
|
2626
2627
|
}
|
|
2627
|
-
},
|
|
2628
|
+
}, ie = (e) => e != null;
|
|
2628
2629
|
function Ko() {
|
|
2629
2630
|
var e;
|
|
2630
|
-
return typeof process < "u" &&
|
|
2631
|
+
return typeof process < "u" && ie((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2631
2632
|
}
|
|
2632
2633
|
const Go = () => {
|
|
2633
2634
|
var r;
|
|
2634
2635
|
if (!Ko())
|
|
2635
2636
|
return !1;
|
|
2636
2637
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2637
|
-
return e && t && !n ? (
|
|
2638
|
+
return e && t && !n ? (Z.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;
|
|
2638
2639
|
}, Xo = (e) => G() || Go() ? Io(e) : Ho(e), sn = class Oe {
|
|
2639
2640
|
static getCacheKey(t) {
|
|
2640
2641
|
return JSON.stringify({
|
|
@@ -2655,7 +2656,7 @@ const Go = () => {
|
|
|
2655
2656
|
};
|
|
2656
2657
|
sn.cacheLimit = 20;
|
|
2657
2658
|
sn.cache = /* @__PURE__ */ new Map();
|
|
2658
|
-
let
|
|
2659
|
+
let ct = sn;
|
|
2659
2660
|
function ln({
|
|
2660
2661
|
code: e,
|
|
2661
2662
|
context: t,
|
|
@@ -2666,10 +2667,8 @@ function ln({
|
|
|
2666
2667
|
isExpression: s = !0,
|
|
2667
2668
|
enableCache: u
|
|
2668
2669
|
}) {
|
|
2669
|
-
if (e === "")
|
|
2670
|
-
Y.warn("Skipping evaluation of empty code block.");
|
|
2670
|
+
if (e === "")
|
|
2671
2671
|
return;
|
|
2672
|
-
}
|
|
2673
2672
|
const p = {
|
|
2674
2673
|
code: Eo(e, {
|
|
2675
2674
|
isExpression: s
|
|
@@ -2682,25 +2681,25 @@ function ln({
|
|
|
2682
2681
|
localState: n
|
|
2683
2682
|
};
|
|
2684
2683
|
if (u) {
|
|
2685
|
-
const
|
|
2686
|
-
if (
|
|
2687
|
-
return
|
|
2684
|
+
const b = ct.getCacheKey(p), x = ct.getCachedValue(b);
|
|
2685
|
+
if (x)
|
|
2686
|
+
return x.value;
|
|
2688
2687
|
}
|
|
2689
2688
|
try {
|
|
2690
|
-
const
|
|
2689
|
+
const b = Xo(p);
|
|
2691
2690
|
if (u) {
|
|
2692
|
-
const
|
|
2693
|
-
|
|
2691
|
+
const x = ct.getCacheKey(p);
|
|
2692
|
+
ct.setCachedValue(x, b);
|
|
2694
2693
|
}
|
|
2695
|
-
return
|
|
2696
|
-
} catch (
|
|
2697
|
-
|
|
2694
|
+
return b;
|
|
2695
|
+
} catch (b) {
|
|
2696
|
+
Z.error("Failed code evaluation: " + b.message, {
|
|
2698
2697
|
code: e
|
|
2699
2698
|
});
|
|
2700
2699
|
return;
|
|
2701
2700
|
}
|
|
2702
2701
|
}
|
|
2703
|
-
const
|
|
2702
|
+
const gt = (e) => JSON.parse(JSON.stringify(e));
|
|
2704
2703
|
const Yo = ({
|
|
2705
2704
|
block: e,
|
|
2706
2705
|
context: t,
|
|
@@ -2710,7 +2709,7 @@ const Yo = ({
|
|
|
2710
2709
|
}) => {
|
|
2711
2710
|
if (!e.bindings)
|
|
2712
2711
|
return e;
|
|
2713
|
-
const i =
|
|
2712
|
+
const i = gt(e), s = {
|
|
2714
2713
|
...i,
|
|
2715
2714
|
properties: {
|
|
2716
2715
|
...i.properties
|
|
@@ -2720,7 +2719,7 @@ const Yo = ({
|
|
|
2720
2719
|
}
|
|
2721
2720
|
};
|
|
2722
2721
|
for (const u in e.bindings) {
|
|
2723
|
-
const p = e.bindings[u],
|
|
2722
|
+
const p = e.bindings[u], b = ln({
|
|
2724
2723
|
code: p,
|
|
2725
2724
|
localState: n,
|
|
2726
2725
|
rootState: r,
|
|
@@ -2728,11 +2727,11 @@ const Yo = ({
|
|
|
2728
2727
|
context: t,
|
|
2729
2728
|
enableCache: !0
|
|
2730
2729
|
});
|
|
2731
|
-
hr(s, u,
|
|
2730
|
+
hr(s, u, b);
|
|
2732
2731
|
}
|
|
2733
2732
|
return s;
|
|
2734
2733
|
};
|
|
2735
|
-
function
|
|
2734
|
+
function pt({
|
|
2736
2735
|
block: e,
|
|
2737
2736
|
context: t,
|
|
2738
2737
|
shouldEvaluateBindings: n,
|
|
@@ -2752,8 +2751,8 @@ function dt({
|
|
|
2752
2751
|
const Jo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Sr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2753
2752
|
if (typeof r == "string")
|
|
2754
2753
|
return `${Jo(n)}: ${r};`;
|
|
2755
|
-
}).filter(
|
|
2756
|
-
`),
|
|
2754
|
+
}).filter(ie), zo = (e) => Sr(e).join(`
|
|
2755
|
+
`), ut = ({
|
|
2757
2756
|
mediaQuery: e,
|
|
2758
2757
|
className: t,
|
|
2759
2758
|
styles: n
|
|
@@ -2779,10 +2778,11 @@ const Zo = ({
|
|
|
2779
2778
|
block: e
|
|
2780
2779
|
}));
|
|
2781
2780
|
function wr(e) {
|
|
2782
|
-
switch (
|
|
2781
|
+
switch (me) {
|
|
2783
2782
|
case "svelte":
|
|
2784
2783
|
case "vue":
|
|
2785
2784
|
case "solid":
|
|
2785
|
+
case "angular":
|
|
2786
2786
|
return Sr(e).join(" ");
|
|
2787
2787
|
case "qwik":
|
|
2788
2788
|
case "reactNative":
|
|
@@ -2797,7 +2797,7 @@ const Qo = ({
|
|
|
2797
2797
|
registeredComponents: n
|
|
2798
2798
|
}) => {
|
|
2799
2799
|
var i;
|
|
2800
|
-
const r = (i =
|
|
2800
|
+
const r = (i = pt({
|
|
2801
2801
|
block: e,
|
|
2802
2802
|
localState: t.localState,
|
|
2803
2803
|
rootState: t.rootState,
|
|
@@ -2834,20 +2834,20 @@ const Qo = ({
|
|
|
2834
2834
|
if (!Array.isArray(o))
|
|
2835
2835
|
return;
|
|
2836
2836
|
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
2837
|
-
return o.map((p,
|
|
2837
|
+
return o.map((p, b) => ({
|
|
2838
2838
|
context: {
|
|
2839
2839
|
...t,
|
|
2840
2840
|
localState: {
|
|
2841
2841
|
...t.localState,
|
|
2842
|
-
$index:
|
|
2842
|
+
$index: b,
|
|
2843
2843
|
$item: p,
|
|
2844
2844
|
[s]: p,
|
|
2845
|
-
[`$${s}Index`]:
|
|
2845
|
+
[`$${s}Index`]: b
|
|
2846
2846
|
}
|
|
2847
2847
|
},
|
|
2848
2848
|
block: r
|
|
2849
2849
|
}));
|
|
2850
|
-
}, xr = {
|
|
2850
|
+
}, ti = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), ni = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), xr = {
|
|
2851
2851
|
small: {
|
|
2852
2852
|
min: 320,
|
|
2853
2853
|
default: 321,
|
|
@@ -2867,7 +2867,7 @@ const Qo = ({
|
|
|
2867
2867
|
small: e,
|
|
2868
2868
|
medium: t
|
|
2869
2869
|
}) => {
|
|
2870
|
-
const n =
|
|
2870
|
+
const n = gt(xr);
|
|
2871
2871
|
if (!e || !t)
|
|
2872
2872
|
return n;
|
|
2873
2873
|
const r = Math.floor(e / 2);
|
|
@@ -2890,8 +2890,8 @@ const Qo = ({
|
|
|
2890
2890
|
default: i + 1
|
|
2891
2891
|
}, n;
|
|
2892
2892
|
};
|
|
2893
|
-
function
|
|
2894
|
-
return /* @__PURE__ */
|
|
2893
|
+
function yt(e) {
|
|
2894
|
+
return /* @__PURE__ */ I(
|
|
2895
2895
|
"style",
|
|
2896
2896
|
{
|
|
2897
2897
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -2910,39 +2910,39 @@ function zn(e, ...t) {
|
|
|
2910
2910
|
return n;
|
|
2911
2911
|
}
|
|
2912
2912
|
const Cr = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
2913
|
-
function
|
|
2913
|
+
function ri(e) {
|
|
2914
2914
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2917
|
-
const n =
|
|
2916
|
+
function oi(e, t) {
|
|
2917
|
+
const n = ii(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
2918
2918
|
for (const u of s)
|
|
2919
2919
|
for (const p of n)
|
|
2920
2920
|
p in u || (u[p] = r[p]);
|
|
2921
2921
|
}
|
|
2922
|
-
function
|
|
2922
|
+
function ii(e) {
|
|
2923
2923
|
const t = [];
|
|
2924
2924
|
for (const n of e.steps)
|
|
2925
2925
|
for (const r in n.styles)
|
|
2926
2926
|
t.indexOf(r) === -1 && t.push(r);
|
|
2927
2927
|
return t;
|
|
2928
2928
|
}
|
|
2929
|
-
function
|
|
2929
|
+
function za(e) {
|
|
2930
2930
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2931
2931
|
if (!t.length) {
|
|
2932
|
-
|
|
2932
|
+
ri(e.elementId || e.id || "");
|
|
2933
2933
|
return;
|
|
2934
2934
|
}
|
|
2935
2935
|
Array.from(t).forEach((n) => {
|
|
2936
|
-
|
|
2936
|
+
oi(e, n), n.style.transition = "none", n.style.transitionDelay = "0", zn(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2937
2937
|
n.style.transition = `all ${e.duration}s ${Cr(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), zn(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2938
2938
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2939
2939
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2940
2940
|
});
|
|
2941
2941
|
});
|
|
2942
2942
|
}
|
|
2943
|
-
function
|
|
2943
|
+
function ai(e) {
|
|
2944
2944
|
const t = function() {
|
|
2945
|
-
const o =
|
|
2945
|
+
const o = pt({
|
|
2946
2946
|
block: e.block,
|
|
2947
2947
|
localState: e.context.localState,
|
|
2948
2948
|
rootState: e.context.rootState,
|
|
@@ -2950,10 +2950,10 @@ function oi(e) {
|
|
|
2950
2950
|
context: e.context.context,
|
|
2951
2951
|
shouldEvaluateBindings: !0
|
|
2952
2952
|
});
|
|
2953
|
-
return
|
|
2953
|
+
return ie(o.hide) ? !o.hide : ie(o.show) ? o.show : !0;
|
|
2954
2954
|
}, n = function() {
|
|
2955
|
-
var
|
|
2956
|
-
const o =
|
|
2955
|
+
var T, g, U;
|
|
2956
|
+
const o = pt({
|
|
2957
2957
|
block: e.block,
|
|
2958
2958
|
localState: e.context.localState,
|
|
2959
2959
|
rootState: e.context.rootState,
|
|
@@ -2961,55 +2961,55 @@ function oi(e) {
|
|
|
2961
2961
|
context: e.context.context,
|
|
2962
2962
|
shouldEvaluateBindings: !0
|
|
2963
2963
|
}), i = o.responsiveStyles, s = e.context.content, u = kr(
|
|
2964
|
-
((
|
|
2965
|
-
), p = i == null ? void 0 : i.large,
|
|
2964
|
+
((T = s == null ? void 0 : s.meta) == null ? void 0 : T.breakpoints) || {}
|
|
2965
|
+
), p = i == null ? void 0 : i.large, b = i == null ? void 0 : i.medium, x = i == null ? void 0 : i.small, m = o.id;
|
|
2966
2966
|
if (!m)
|
|
2967
2967
|
return "";
|
|
2968
|
-
const
|
|
2968
|
+
const O = p ? ut({
|
|
2969
2969
|
className: m,
|
|
2970
2970
|
styles: p
|
|
2971
|
-
}) : "",
|
|
2971
|
+
}) : "", N = b ? ut({
|
|
2972
2972
|
className: m,
|
|
2973
|
-
styles:
|
|
2973
|
+
styles: b,
|
|
2974
2974
|
mediaQuery: Jn(
|
|
2975
2975
|
"medium",
|
|
2976
2976
|
u
|
|
2977
2977
|
)
|
|
2978
|
-
}) : "",
|
|
2978
|
+
}) : "", j = x ? ut({
|
|
2979
2979
|
className: m,
|
|
2980
|
-
styles:
|
|
2980
|
+
styles: x,
|
|
2981
2981
|
mediaQuery: Jn(
|
|
2982
2982
|
"small",
|
|
2983
2983
|
u
|
|
2984
2984
|
)
|
|
2985
|
-
}) : "",
|
|
2986
|
-
let
|
|
2987
|
-
if (
|
|
2988
|
-
const M = ((
|
|
2989
|
-
|
|
2985
|
+
}) : "", R = o.animations && o.animations.find((M) => M.trigger === "hover");
|
|
2986
|
+
let Y = "";
|
|
2987
|
+
if (R) {
|
|
2988
|
+
const M = ((U = (g = R.steps) == null ? void 0 : g[1]) == null ? void 0 : U.styles) || {};
|
|
2989
|
+
Y = ut({
|
|
2990
2990
|
className: `${m}:hover`,
|
|
2991
2991
|
styles: {
|
|
2992
2992
|
...M,
|
|
2993
|
-
transition: `all ${
|
|
2994
|
-
|
|
2993
|
+
transition: `all ${R.duration}s ${Cr(
|
|
2994
|
+
R.easing
|
|
2995
2995
|
)}`,
|
|
2996
|
-
transitionDelay:
|
|
2996
|
+
transitionDelay: R.delay ? `${R.delay}s` : "0s"
|
|
2997
2997
|
}
|
|
2998
2998
|
}) || "";
|
|
2999
2999
|
}
|
|
3000
3000
|
return [
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3001
|
+
O,
|
|
3002
|
+
N,
|
|
3003
|
+
j,
|
|
3004
|
+
Y
|
|
3005
3005
|
].join(" ");
|
|
3006
3006
|
};
|
|
3007
|
-
return /* @__PURE__ */
|
|
3007
|
+
return /* @__PURE__ */ I(ee, { children: n() && t() ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(yt, { id: "builderio-block", styles: n() }) }) : null });
|
|
3008
3008
|
}
|
|
3009
|
-
function
|
|
3009
|
+
function si(e) {
|
|
3010
3010
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3011
3011
|
}
|
|
3012
|
-
const
|
|
3012
|
+
const li = (e) => `on${si(e)}`, ci = (e, t) => (n) => ln({
|
|
3013
3013
|
code: e,
|
|
3014
3014
|
context: t.context,
|
|
3015
3015
|
localState: t.localState,
|
|
@@ -3019,15 +3019,15 @@ const ai = (e) => `on${ii(e)}`, si = (e, t) => (n) => ln({
|
|
|
3019
3019
|
isExpression: !1,
|
|
3020
3020
|
enableCache: !0
|
|
3021
3021
|
});
|
|
3022
|
-
function
|
|
3022
|
+
function qa(e) {
|
|
3023
3023
|
const t = {}, n = e.block.actions ?? {};
|
|
3024
3024
|
for (const r in n) {
|
|
3025
3025
|
if (!n.hasOwnProperty(r))
|
|
3026
3026
|
continue;
|
|
3027
3027
|
const o = n[r];
|
|
3028
|
-
let i =
|
|
3028
|
+
let i = li(r);
|
|
3029
3029
|
if (e.stripPrefix)
|
|
3030
|
-
switch (
|
|
3030
|
+
switch (me) {
|
|
3031
3031
|
case "vue":
|
|
3032
3032
|
i = i.replace("v-on:", "");
|
|
3033
3033
|
break;
|
|
@@ -3035,25 +3035,25 @@ function Ya(e) {
|
|
|
3035
3035
|
i = i.replace("on:", "");
|
|
3036
3036
|
break;
|
|
3037
3037
|
}
|
|
3038
|
-
t[i] =
|
|
3038
|
+
t[i] = ci(o, e);
|
|
3039
3039
|
}
|
|
3040
3040
|
return t;
|
|
3041
3041
|
}
|
|
3042
|
-
function
|
|
3042
|
+
function ui({
|
|
3043
3043
|
properties: e
|
|
3044
3044
|
}) {
|
|
3045
3045
|
return e;
|
|
3046
3046
|
}
|
|
3047
|
-
const
|
|
3047
|
+
const fi = (e) => ({
|
|
3048
3048
|
href: e.href
|
|
3049
3049
|
});
|
|
3050
|
-
function
|
|
3050
|
+
function di({
|
|
3051
3051
|
block: e,
|
|
3052
3052
|
context: t
|
|
3053
3053
|
}) {
|
|
3054
3054
|
var r;
|
|
3055
3055
|
const n = {
|
|
3056
|
-
...
|
|
3056
|
+
...fi(e),
|
|
3057
3057
|
...e.properties,
|
|
3058
3058
|
"builder-id": e.id,
|
|
3059
3059
|
style: Zo({
|
|
@@ -3062,13 +3062,13 @@ function ui({
|
|
|
3062
3062
|
}),
|
|
3063
3063
|
[Yt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3064
3064
|
};
|
|
3065
|
-
return
|
|
3065
|
+
return ui({
|
|
3066
3066
|
properties: n,
|
|
3067
3067
|
context: t,
|
|
3068
3068
|
block: e
|
|
3069
3069
|
});
|
|
3070
3070
|
}
|
|
3071
|
-
const
|
|
3071
|
+
const pi = ({
|
|
3072
3072
|
componentOptions: e,
|
|
3073
3073
|
builderBlock: t,
|
|
3074
3074
|
context: n,
|
|
@@ -3084,7 +3084,7 @@ const fi = ({
|
|
|
3084
3084
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
3085
3085
|
*/
|
|
3086
3086
|
...o ? {
|
|
3087
|
-
attributes:
|
|
3087
|
+
attributes: di({
|
|
3088
3088
|
block: t,
|
|
3089
3089
|
context: s
|
|
3090
3090
|
})
|
|
@@ -3100,11 +3100,11 @@ const fi = ({
|
|
|
3100
3100
|
};
|
|
3101
3101
|
function qn(e) {
|
|
3102
3102
|
var n;
|
|
3103
|
-
const t = e.isInteractive ?
|
|
3104
|
-
return /* @__PURE__ */
|
|
3103
|
+
const t = e.isInteractive ? oo : e.componentRef;
|
|
3104
|
+
return /* @__PURE__ */ I(ee, { children: e.componentRef ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(
|
|
3105
3105
|
t,
|
|
3106
3106
|
{
|
|
3107
|
-
...
|
|
3107
|
+
...pi({
|
|
3108
3108
|
componentOptions: e.componentOptions,
|
|
3109
3109
|
builderBlock: e.builderBlock,
|
|
3110
3110
|
context: e.context,
|
|
@@ -3114,8 +3114,8 @@ function qn(e) {
|
|
|
3114
3114
|
isInteractive: e.isInteractive,
|
|
3115
3115
|
contextValue: e.context
|
|
3116
3116
|
}),
|
|
3117
|
-
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */
|
|
3118
|
-
|
|
3117
|
+
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ I(
|
|
3118
|
+
vt,
|
|
3119
3119
|
{
|
|
3120
3120
|
block: r,
|
|
3121
3121
|
context: e.context,
|
|
@@ -3127,10 +3127,10 @@ function qn(e) {
|
|
|
3127
3127
|
}
|
|
3128
3128
|
) }) : null });
|
|
3129
3129
|
}
|
|
3130
|
-
function
|
|
3130
|
+
function hi(e) {
|
|
3131
3131
|
const t = e.repeatContext;
|
|
3132
|
-
return /* @__PURE__ */
|
|
3133
|
-
|
|
3132
|
+
return /* @__PURE__ */ I(
|
|
3133
|
+
vt,
|
|
3134
3134
|
{
|
|
3135
3135
|
block: e.block,
|
|
3136
3136
|
context: t,
|
|
@@ -3139,8 +3139,8 @@ function di(e) {
|
|
|
3139
3139
|
}
|
|
3140
3140
|
);
|
|
3141
3141
|
}
|
|
3142
|
-
function
|
|
3143
|
-
var p,
|
|
3142
|
+
function vt(e) {
|
|
3143
|
+
var p, b, x;
|
|
3144
3144
|
const t = function() {
|
|
3145
3145
|
return Qo({
|
|
3146
3146
|
block: e.block,
|
|
@@ -3153,8 +3153,8 @@ function yt(e) {
|
|
|
3153
3153
|
context: e.context
|
|
3154
3154
|
});
|
|
3155
3155
|
}, r = function() {
|
|
3156
|
-
var
|
|
3157
|
-
return (
|
|
3156
|
+
var O;
|
|
3157
|
+
return (O = e.block.repeat) != null && O.collection ? e.block : pt({
|
|
3158
3158
|
block: e.block,
|
|
3159
3159
|
localState: e.context.localState,
|
|
3160
3160
|
rootState: e.context.rootState,
|
|
@@ -3163,29 +3163,29 @@ function yt(e) {
|
|
|
3163
3163
|
shouldEvaluateBindings: !0
|
|
3164
3164
|
});
|
|
3165
3165
|
}, o = function() {
|
|
3166
|
-
var
|
|
3167
|
-
return e.block.tagName === "a" || ((
|
|
3166
|
+
var N;
|
|
3167
|
+
return e.block.tagName === "a" || ((N = r().properties) == null ? void 0 : N.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3168
3168
|
}, i = function() {
|
|
3169
|
-
var
|
|
3170
|
-
if ((
|
|
3171
|
-
return !!((
|
|
3172
|
-
const
|
|
3173
|
-
return ("show" in r() ? r().show : !0) && !
|
|
3169
|
+
var j, R;
|
|
3170
|
+
if ((j = e.block.repeat) != null && j.collection)
|
|
3171
|
+
return !!((R = n()) != null && R.length);
|
|
3172
|
+
const O = "hide" in r() ? r().hide : !1;
|
|
3173
|
+
return ("show" in r() ? r().show : !0) && !O;
|
|
3174
3174
|
}, s = function() {
|
|
3175
|
-
var
|
|
3176
|
-
return !((
|
|
3175
|
+
var N;
|
|
3176
|
+
return !((N = t()) != null && N.component) && !n() ? r().children ?? [] : [];
|
|
3177
3177
|
}, u = function() {
|
|
3178
|
-
var
|
|
3178
|
+
var O, N, j;
|
|
3179
3179
|
return {
|
|
3180
3180
|
blockChildren: r().children ?? [],
|
|
3181
|
-
componentRef: (
|
|
3181
|
+
componentRef: (O = t()) == null ? void 0 : O.component,
|
|
3182
3182
|
componentOptions: {
|
|
3183
3183
|
...bo(r()),
|
|
3184
3184
|
builderContext: e.context,
|
|
3185
|
-
...(
|
|
3185
|
+
...ti(t()) ? {
|
|
3186
3186
|
builderLinkComponent: e.linkComponent
|
|
3187
3187
|
} : {},
|
|
3188
|
-
...(
|
|
3188
|
+
...ni(t()) ? {
|
|
3189
3189
|
builderComponents: e.registeredComponents
|
|
3190
3190
|
} : {}
|
|
3191
3191
|
},
|
|
@@ -3193,13 +3193,13 @@ function yt(e) {
|
|
|
3193
3193
|
linkComponent: e.linkComponent,
|
|
3194
3194
|
registeredComponents: e.registeredComponents,
|
|
3195
3195
|
builderBlock: r(),
|
|
3196
|
-
includeBlockProps: ((
|
|
3197
|
-
isInteractive: !((
|
|
3196
|
+
includeBlockProps: ((N = t()) == null ? void 0 : N.noWrap) === !0,
|
|
3197
|
+
isInteractive: !((j = t()) != null && j.isRSC)
|
|
3198
3198
|
};
|
|
3199
3199
|
};
|
|
3200
|
-
return /* @__PURE__ */
|
|
3201
|
-
/* @__PURE__ */
|
|
3202
|
-
(p = t()) != null && p.noWrap ? /* @__PURE__ */
|
|
3200
|
+
return /* @__PURE__ */ I(ee, { children: i() ? /* @__PURE__ */ xe(ee, { children: [
|
|
3201
|
+
/* @__PURE__ */ I(ai, { block: e.block, context: e.context }),
|
|
3202
|
+
(p = t()) != null && p.noWrap ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(
|
|
3203
3203
|
qn,
|
|
3204
3204
|
{
|
|
3205
3205
|
componentRef: u().componentRef,
|
|
@@ -3212,24 +3212,24 @@ function yt(e) {
|
|
|
3212
3212
|
includeBlockProps: u().includeBlockProps,
|
|
3213
3213
|
isInteractive: u().isInteractive
|
|
3214
3214
|
}
|
|
3215
|
-
) }) : /* @__PURE__ */
|
|
3216
|
-
|
|
3215
|
+
) }) : /* @__PURE__ */ I(ee, { children: n() ? /* @__PURE__ */ I(ee, { children: (x = n()) == null ? void 0 : x.map((m, O) => /* @__PURE__ */ I(
|
|
3216
|
+
hi,
|
|
3217
3217
|
{
|
|
3218
3218
|
repeatContext: m.context,
|
|
3219
3219
|
block: m.block,
|
|
3220
3220
|
registeredComponents: e.registeredComponents,
|
|
3221
3221
|
linkComponent: e.linkComponent
|
|
3222
3222
|
},
|
|
3223
|
-
|
|
3223
|
+
O
|
|
3224
3224
|
)) }) : /* @__PURE__ */ xe(
|
|
3225
|
-
|
|
3225
|
+
io,
|
|
3226
3226
|
{
|
|
3227
3227
|
Wrapper: o(),
|
|
3228
3228
|
block: r(),
|
|
3229
3229
|
context: e.context,
|
|
3230
3230
|
linkComponent: e.linkComponent,
|
|
3231
3231
|
children: [
|
|
3232
|
-
/* @__PURE__ */
|
|
3232
|
+
/* @__PURE__ */ I(
|
|
3233
3233
|
qn,
|
|
3234
3234
|
{
|
|
3235
3235
|
componentRef: u().componentRef,
|
|
@@ -3243,8 +3243,8 @@ function yt(e) {
|
|
|
3243
3243
|
isInteractive: u().isInteractive
|
|
3244
3244
|
}
|
|
3245
3245
|
),
|
|
3246
|
-
(
|
|
3247
|
-
|
|
3246
|
+
(b = s()) == null ? void 0 : b.map((m) => /* @__PURE__ */ I(
|
|
3247
|
+
vt,
|
|
3248
3248
|
{
|
|
3249
3249
|
block: m,
|
|
3250
3250
|
registeredComponents: e.registeredComponents,
|
|
@@ -3260,8 +3260,8 @@ function yt(e) {
|
|
|
3260
3260
|
}
|
|
3261
3261
|
function cn(e) {
|
|
3262
3262
|
var t, n, r;
|
|
3263
|
-
return /* @__PURE__ */
|
|
3264
|
-
|
|
3263
|
+
return /* @__PURE__ */ I(
|
|
3264
|
+
ao,
|
|
3265
3265
|
{
|
|
3266
3266
|
blocks: e.blocks,
|
|
3267
3267
|
parent: e.parent,
|
|
@@ -3269,8 +3269,8 @@ function cn(e) {
|
|
|
3269
3269
|
styleProp: e.styleProp,
|
|
3270
3270
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3271
3271
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3272
|
-
children: e.blocks ? /* @__PURE__ */
|
|
3273
|
-
|
|
3272
|
+
children: e.blocks ? /* @__PURE__ */ I(ee, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ I(
|
|
3273
|
+
vt,
|
|
3274
3274
|
{
|
|
3275
3275
|
block: o,
|
|
3276
3276
|
linkComponent: e.linkComponent,
|
|
@@ -3282,67 +3282,70 @@ function cn(e) {
|
|
|
3282
3282
|
}
|
|
3283
3283
|
);
|
|
3284
3284
|
}
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
return
|
|
3290
|
-
}, i = function(
|
|
3291
|
-
|
|
3292
|
-
return
|
|
3293
|
-
}, s = function({
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
}) {
|
|
3297
|
-
return r === "tablet" ? v : B;
|
|
3285
|
+
const mi = (e) => `builder-columns ${e}-breakpoints`;
|
|
3286
|
+
function gi(e) {
|
|
3287
|
+
var R, Y;
|
|
3288
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(g) {
|
|
3289
|
+
return g.link ? e.builderLinkComponent || "a" : "div";
|
|
3290
|
+
}, i = function(g) {
|
|
3291
|
+
var U;
|
|
3292
|
+
return ((U = n[g]) == null ? void 0 : U.width) || 100 / n.length;
|
|
3293
|
+
}, s = function(g) {
|
|
3294
|
+
const U = t * (n.length - 1) / n.length;
|
|
3295
|
+
return `calc(${i(g)}% - ${U}px)`;
|
|
3298
3296
|
}, u = function({
|
|
3299
|
-
stackedStyle:
|
|
3300
|
-
desktopStyle:
|
|
3297
|
+
stackedStyle: g,
|
|
3298
|
+
desktopStyle: U
|
|
3299
|
+
}) {
|
|
3300
|
+
return r === "tablet" ? g : U;
|
|
3301
|
+
}, p = function({
|
|
3302
|
+
stackedStyle: g,
|
|
3303
|
+
desktopStyle: U
|
|
3301
3304
|
}) {
|
|
3302
|
-
return r === "never" ?
|
|
3303
|
-
},
|
|
3305
|
+
return r === "never" ? U : g;
|
|
3306
|
+
}, b = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", x = function() {
|
|
3304
3307
|
return {
|
|
3305
|
-
"--flex-dir":
|
|
3306
|
-
"--flex-dir-tablet":
|
|
3307
|
-
stackedStyle:
|
|
3308
|
+
"--flex-dir": b,
|
|
3309
|
+
"--flex-dir-tablet": u({
|
|
3310
|
+
stackedStyle: b,
|
|
3308
3311
|
desktopStyle: "row"
|
|
3309
3312
|
})
|
|
3310
3313
|
};
|
|
3311
|
-
},
|
|
3312
|
-
const
|
|
3314
|
+
}, m = function(g) {
|
|
3315
|
+
const U = g === 0 ? 0 : t, M = s(g), X = `${U}px`, V = "100%", ne = 0;
|
|
3313
3316
|
return {
|
|
3314
3317
|
...{
|
|
3315
3318
|
display: "flex",
|
|
3316
3319
|
flexDirection: "column",
|
|
3317
3320
|
alignItems: "stretch"
|
|
3318
3321
|
},
|
|
3319
|
-
width:
|
|
3320
|
-
["marginLeft"]:
|
|
3321
|
-
"--column-width-mobile":
|
|
3322
|
-
stackedStyle:
|
|
3323
|
-
desktopStyle:
|
|
3322
|
+
width: M,
|
|
3323
|
+
["marginLeft"]: X,
|
|
3324
|
+
"--column-width-mobile": p({
|
|
3325
|
+
stackedStyle: V,
|
|
3326
|
+
desktopStyle: M
|
|
3324
3327
|
}),
|
|
3325
|
-
"--column-margin-left-mobile":
|
|
3326
|
-
stackedStyle:
|
|
3327
|
-
desktopStyle:
|
|
3328
|
+
"--column-margin-left-mobile": p({
|
|
3329
|
+
stackedStyle: ne,
|
|
3330
|
+
desktopStyle: X
|
|
3328
3331
|
}),
|
|
3329
|
-
"--column-width-tablet":
|
|
3330
|
-
stackedStyle:
|
|
3331
|
-
desktopStyle:
|
|
3332
|
+
"--column-width-tablet": u({
|
|
3333
|
+
stackedStyle: V,
|
|
3334
|
+
desktopStyle: M
|
|
3332
3335
|
}),
|
|
3333
|
-
"--column-margin-left-tablet":
|
|
3334
|
-
stackedStyle:
|
|
3335
|
-
desktopStyle:
|
|
3336
|
+
"--column-margin-left-tablet": u({
|
|
3337
|
+
stackedStyle: ne,
|
|
3338
|
+
desktopStyle: X
|
|
3336
3339
|
})
|
|
3337
3340
|
};
|
|
3338
|
-
},
|
|
3339
|
-
var
|
|
3341
|
+
}, O = function(g) {
|
|
3342
|
+
var M, X;
|
|
3340
3343
|
return kr(
|
|
3341
|
-
((
|
|
3342
|
-
)[
|
|
3343
|
-
},
|
|
3344
|
+
((X = (M = e.builderContext.content) == null ? void 0 : M.meta) == null ? void 0 : X.breakpoints) || {}
|
|
3345
|
+
)[g].max;
|
|
3346
|
+
}, N = function() {
|
|
3344
3347
|
return `
|
|
3345
|
-
@media (max-width: ${
|
|
3348
|
+
@media (max-width: ${O("medium")}px) {
|
|
3346
3349
|
.${e.builderBlock.id}-breakpoints {
|
|
3347
3350
|
flex-direction: var(--flex-dir-tablet);
|
|
3348
3351
|
align-items: stretch;
|
|
@@ -3354,7 +3357,7 @@ function pi(e) {
|
|
|
3354
3357
|
}
|
|
3355
3358
|
}
|
|
3356
3359
|
|
|
3357
|
-
@media (max-width: ${
|
|
3360
|
+
@media (max-width: ${O("small")}px) {
|
|
3358
3361
|
.${e.builderBlock.id}-breakpoints {
|
|
3359
3362
|
flex-direction: var(--flex-dir);
|
|
3360
3363
|
align-items: stretch;
|
|
@@ -3366,31 +3369,33 @@ function pi(e) {
|
|
|
3366
3369
|
}
|
|
3367
3370
|
},
|
|
3368
3371
|
`;
|
|
3372
|
+
}, j = function(g, U) {
|
|
3373
|
+
return {
|
|
3374
|
+
...g.link ? {
|
|
3375
|
+
href: g.link
|
|
3376
|
+
} : {},
|
|
3377
|
+
[Yt()]: "builder-column",
|
|
3378
|
+
style: wr(m(U))
|
|
3379
|
+
};
|
|
3369
3380
|
};
|
|
3370
|
-
return /* @__PURE__ */ xe(
|
|
3381
|
+
return /* @__PURE__ */ xe(ee, { children: [
|
|
3371
3382
|
/* @__PURE__ */ xe(
|
|
3372
3383
|
"div",
|
|
3373
3384
|
{
|
|
3374
|
-
className:
|
|
3375
|
-
style:
|
|
3385
|
+
className: mi((R = e.builderBlock) == null ? void 0 : R.id) + " div-2651dce4",
|
|
3386
|
+
style: x(),
|
|
3376
3387
|
children: [
|
|
3377
|
-
/* @__PURE__ */
|
|
3378
|
-
(
|
|
3379
|
-
|
|
3388
|
+
/* @__PURE__ */ I(yt, { id: "builderio-columns", styles: N() }),
|
|
3389
|
+
(Y = e.columns) == null ? void 0 : Y.map((T, g) => /* @__PURE__ */ I(
|
|
3390
|
+
so,
|
|
3380
3391
|
{
|
|
3381
|
-
TagName:
|
|
3392
|
+
TagName: o(T),
|
|
3382
3393
|
actionAttributes: {},
|
|
3383
|
-
attributes:
|
|
3384
|
-
|
|
3385
|
-
href: C.link
|
|
3386
|
-
} : {},
|
|
3387
|
-
[Yt()]: "builder-column",
|
|
3388
|
-
style: wr(k(v))
|
|
3389
|
-
},
|
|
3390
|
-
children: /* @__PURE__ */ A(
|
|
3394
|
+
attributes: j(T, g),
|
|
3395
|
+
children: /* @__PURE__ */ I(
|
|
3391
3396
|
cn,
|
|
3392
3397
|
{
|
|
3393
|
-
path: `component.options.columns.${
|
|
3398
|
+
path: `component.options.columns.${g}.blocks`,
|
|
3394
3399
|
parent: e.builderBlock.id,
|
|
3395
3400
|
styleProp: {
|
|
3396
3401
|
flexGrow: "1"
|
|
@@ -3398,16 +3403,16 @@ function pi(e) {
|
|
|
3398
3403
|
context: e.builderContext,
|
|
3399
3404
|
registeredComponents: e.builderComponents,
|
|
3400
3405
|
linkComponent: e.builderLinkComponent,
|
|
3401
|
-
blocks:
|
|
3406
|
+
blocks: T.blocks
|
|
3402
3407
|
}
|
|
3403
3408
|
)
|
|
3404
3409
|
},
|
|
3405
|
-
|
|
3410
|
+
g
|
|
3406
3411
|
))
|
|
3407
3412
|
]
|
|
3408
3413
|
}
|
|
3409
3414
|
),
|
|
3410
|
-
/* @__PURE__ */
|
|
3415
|
+
/* @__PURE__ */ I("style", { children: `.div-2651dce4 {
|
|
3411
3416
|
display: flex;
|
|
3412
3417
|
line-height: normal;
|
|
3413
3418
|
}` })
|
|
@@ -3416,11 +3421,11 @@ function pi(e) {
|
|
|
3416
3421
|
function Zn(e) {
|
|
3417
3422
|
return e.replace(/http(s)?:/, "");
|
|
3418
3423
|
}
|
|
3419
|
-
function
|
|
3424
|
+
function yi(e = "", t, n) {
|
|
3420
3425
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3421
3426
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3422
3427
|
}
|
|
3423
|
-
function
|
|
3428
|
+
function vi(e, t) {
|
|
3424
3429
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3425
3430
|
return e;
|
|
3426
3431
|
if (t === "master")
|
|
@@ -3432,18 +3437,18 @@ function mi(e, t) {
|
|
|
3432
3437
|
}
|
|
3433
3438
|
return null;
|
|
3434
3439
|
}
|
|
3435
|
-
function
|
|
3440
|
+
function Za(e) {
|
|
3436
3441
|
if (!e)
|
|
3437
3442
|
return e;
|
|
3438
3443
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3439
3444
|
if (e.match(/builder\.io/)) {
|
|
3440
3445
|
let n = e;
|
|
3441
3446
|
const r = Number(e.split("?width=")[1]);
|
|
3442
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3447
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${yi(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3443
3448
|
}
|
|
3444
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3449
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [vi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3445
3450
|
}
|
|
3446
|
-
const
|
|
3451
|
+
const bi = (e) => {
|
|
3447
3452
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3448
3453
|
return e;
|
|
3449
3454
|
const t = e.split(".");
|
|
@@ -3456,16 +3461,16 @@ const gi = (e) => {
|
|
|
3456
3461
|
try {
|
|
3457
3462
|
return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
3458
3463
|
} catch (r) {
|
|
3459
|
-
|
|
3464
|
+
Z.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3460
3465
|
return;
|
|
3461
3466
|
}
|
|
3462
|
-
}, Ir = async (e) => Er(e),
|
|
3467
|
+
}, Ir = async (e) => Er(e), Si = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(ie).join("; "), wi = [["secure", ""], ["SameSite", "None"]], xi = ({
|
|
3463
3468
|
name: e,
|
|
3464
3469
|
value: t,
|
|
3465
3470
|
expires: n
|
|
3466
3471
|
}) => {
|
|
3467
|
-
const o = (G() ? location.protocol === "https:" : !0) ?
|
|
3468
|
-
return
|
|
3472
|
+
const o = (G() ? location.protocol === "https:" : !0) ? wi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", bi(window.location.hostname)], ...o];
|
|
3473
|
+
return Si(s);
|
|
3469
3474
|
}, Tr = async ({
|
|
3470
3475
|
name: e,
|
|
3471
3476
|
value: t,
|
|
@@ -3475,33 +3480,33 @@ const gi = (e) => {
|
|
|
3475
3480
|
try {
|
|
3476
3481
|
if (!r)
|
|
3477
3482
|
return;
|
|
3478
|
-
const o =
|
|
3483
|
+
const o = xi({
|
|
3479
3484
|
name: e,
|
|
3480
3485
|
value: t,
|
|
3481
3486
|
expires: n
|
|
3482
3487
|
});
|
|
3483
3488
|
document.cookie = o;
|
|
3484
3489
|
} catch (o) {
|
|
3485
|
-
|
|
3490
|
+
Z.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3486
3491
|
}
|
|
3487
|
-
},
|
|
3492
|
+
}, ki = "builder.tests", un = (e) => `${ki}.${e}`, Ci = ({
|
|
3488
3493
|
contentId: e
|
|
3489
3494
|
}) => Ir({
|
|
3490
3495
|
name: un(e),
|
|
3491
3496
|
canTrack: !0
|
|
3492
|
-
}),
|
|
3497
|
+
}), Ei = ({
|
|
3493
3498
|
contentId: e
|
|
3494
3499
|
}) => Er({
|
|
3495
3500
|
name: un(e),
|
|
3496
3501
|
canTrack: !0
|
|
3497
|
-
}),
|
|
3502
|
+
}), Ii = ({
|
|
3498
3503
|
contentId: e,
|
|
3499
3504
|
value: t
|
|
3500
3505
|
}) => Tr({
|
|
3501
3506
|
name: un(e),
|
|
3502
3507
|
value: t,
|
|
3503
3508
|
canTrack: !0
|
|
3504
|
-
}), Ar = (e) =>
|
|
3509
|
+
}), Ar = (e) => ie(e.id) && ie(e.variations) && Object.keys(e.variations).length > 0, Ti = ({
|
|
3505
3510
|
id: e,
|
|
3506
3511
|
variations: t
|
|
3507
3512
|
}) => {
|
|
@@ -3515,12 +3520,12 @@ const gi = (e) => {
|
|
|
3515
3520
|
}
|
|
3516
3521
|
return e;
|
|
3517
3522
|
}, Or = (e) => {
|
|
3518
|
-
const t =
|
|
3519
|
-
return
|
|
3523
|
+
const t = Ti(e);
|
|
3524
|
+
return Ii({
|
|
3520
3525
|
contentId: e.id,
|
|
3521
3526
|
value: t
|
|
3522
3527
|
}).catch((n) => {
|
|
3523
|
-
|
|
3528
|
+
Z.error("could not store A/B test variation: ", n);
|
|
3524
3529
|
}), t;
|
|
3525
3530
|
}, jr = ({
|
|
3526
3531
|
item: e,
|
|
@@ -3536,7 +3541,7 @@ const gi = (e) => {
|
|
|
3536
3541
|
testVariationId: n.id,
|
|
3537
3542
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3538
3543
|
};
|
|
3539
|
-
},
|
|
3544
|
+
}, Ai = ({
|
|
3540
3545
|
item: e,
|
|
3541
3546
|
canTrack: t
|
|
3542
3547
|
}) => {
|
|
@@ -3546,7 +3551,7 @@ const gi = (e) => {
|
|
|
3546
3551
|
return;
|
|
3547
3552
|
if (!Ar(e))
|
|
3548
3553
|
return e;
|
|
3549
|
-
const n =
|
|
3554
|
+
const n = Ei({
|
|
3550
3555
|
contentId: e.id
|
|
3551
3556
|
}) || Or({
|
|
3552
3557
|
variations: e.variations,
|
|
@@ -3559,13 +3564,13 @@ const gi = (e) => {
|
|
|
3559
3564
|
...e,
|
|
3560
3565
|
...r
|
|
3561
3566
|
};
|
|
3562
|
-
},
|
|
3567
|
+
}, Oi = async ({
|
|
3563
3568
|
item: e,
|
|
3564
3569
|
canTrack: t
|
|
3565
3570
|
}) => {
|
|
3566
3571
|
if (!t || !Ar(e))
|
|
3567
3572
|
return e;
|
|
3568
|
-
const r = await
|
|
3573
|
+
const r = await Ci({
|
|
3569
3574
|
contentId: e.id
|
|
3570
3575
|
}) || Or({
|
|
3571
3576
|
variations: e.variations,
|
|
@@ -3578,7 +3583,7 @@ const gi = (e) => {
|
|
|
3578
3583
|
...e,
|
|
3579
3584
|
...o
|
|
3580
3585
|
};
|
|
3581
|
-
}, Kt = (e) =>
|
|
3586
|
+
}, Kt = (e) => ie(e) ? e : !0, ji = {
|
|
3582
3587
|
name: "Core:Button",
|
|
3583
3588
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3584
3589
|
defaultStyles: {
|
|
@@ -3611,7 +3616,7 @@ const gi = (e) => {
|
|
|
3611
3616
|
}],
|
|
3612
3617
|
static: !0,
|
|
3613
3618
|
noWrap: !0
|
|
3614
|
-
},
|
|
3619
|
+
}, Ri = {
|
|
3615
3620
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3616
3621
|
name: "Columns",
|
|
3617
3622
|
isRSC: !0,
|
|
@@ -3812,13 +3817,13 @@ const gi = (e) => {
|
|
|
3812
3817
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3813
3818
|
advanced: !0
|
|
3814
3819
|
}]
|
|
3815
|
-
},
|
|
3820
|
+
}, Pi = {
|
|
3816
3821
|
name: "Fragment",
|
|
3817
3822
|
static: !0,
|
|
3818
3823
|
hidden: !0,
|
|
3819
3824
|
canHaveChildren: !0,
|
|
3820
3825
|
noWrap: !0
|
|
3821
|
-
},
|
|
3826
|
+
}, Ni = {
|
|
3822
3827
|
name: "Image",
|
|
3823
3828
|
static: !0,
|
|
3824
3829
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -3839,15 +3844,15 @@ const gi = (e) => {
|
|
|
3839
3844
|
onChange: (e) => {
|
|
3840
3845
|
e.delete("srcset"), e.delete("noWebp");
|
|
3841
3846
|
function n(s, u = 6e4) {
|
|
3842
|
-
return new Promise((p,
|
|
3843
|
-
const
|
|
3847
|
+
return new Promise((p, b) => {
|
|
3848
|
+
const x = document.createElement("img");
|
|
3844
3849
|
let m = !1;
|
|
3845
|
-
|
|
3846
|
-
m = !0, p(
|
|
3847
|
-
},
|
|
3848
|
-
console.warn("Image load failed",
|
|
3849
|
-
}),
|
|
3850
|
-
m ||
|
|
3850
|
+
x.onload = () => {
|
|
3851
|
+
m = !0, p(x);
|
|
3852
|
+
}, x.addEventListener("error", (O) => {
|
|
3853
|
+
console.warn("Image load failed", O.error), b(O.error);
|
|
3854
|
+
}), x.src = s, setTimeout(() => {
|
|
3855
|
+
m || b(new Error("Image load timed out"));
|
|
3851
3856
|
}, u);
|
|
3852
3857
|
});
|
|
3853
3858
|
}
|
|
@@ -3918,7 +3923,7 @@ const gi = (e) => {
|
|
|
3918
3923
|
advanced: !0,
|
|
3919
3924
|
defaultValue: 0.7041
|
|
3920
3925
|
}]
|
|
3921
|
-
},
|
|
3926
|
+
}, Bi = {
|
|
3922
3927
|
name: "Core:Section",
|
|
3923
3928
|
static: !0,
|
|
3924
3929
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3957,7 +3962,7 @@ const gi = (e) => {
|
|
|
3957
3962
|
}
|
|
3958
3963
|
}
|
|
3959
3964
|
}]
|
|
3960
|
-
},
|
|
3965
|
+
}, Ui = {
|
|
3961
3966
|
name: "Slot",
|
|
3962
3967
|
isRSC: !0,
|
|
3963
3968
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3971,9 +3976,9 @@ const gi = (e) => {
|
|
|
3971
3976
|
defaultValue: "children"
|
|
3972
3977
|
}]
|
|
3973
3978
|
};
|
|
3974
|
-
function
|
|
3979
|
+
function Fi(e) {
|
|
3975
3980
|
var t, n, r;
|
|
3976
|
-
return /* @__PURE__ */
|
|
3981
|
+
return /* @__PURE__ */ I(
|
|
3977
3982
|
"div",
|
|
3978
3983
|
{
|
|
3979
3984
|
style: {
|
|
@@ -3982,7 +3987,7 @@ function Ni(e) {
|
|
|
3982
3987
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
3983
3988
|
"builder-slot": e.name
|
|
3984
3989
|
},
|
|
3985
|
-
children: /* @__PURE__ */
|
|
3990
|
+
children: /* @__PURE__ */ I(
|
|
3986
3991
|
cn,
|
|
3987
3992
|
{
|
|
3988
3993
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -3994,7 +3999,7 @@ function Ni(e) {
|
|
|
3994
3999
|
}
|
|
3995
4000
|
);
|
|
3996
4001
|
}
|
|
3997
|
-
const
|
|
4002
|
+
const Mi = {
|
|
3998
4003
|
name: "Symbol",
|
|
3999
4004
|
noWrap: !0,
|
|
4000
4005
|
static: !0,
|
|
@@ -4027,7 +4032,7 @@ const Ui = {
|
|
|
4027
4032
|
hideFromUI: !0,
|
|
4028
4033
|
type: "boolean"
|
|
4029
4034
|
}]
|
|
4030
|
-
},
|
|
4035
|
+
}, Vi = {
|
|
4031
4036
|
name: "Text",
|
|
4032
4037
|
static: !0,
|
|
4033
4038
|
isRSC: !0,
|
|
@@ -4046,9 +4051,9 @@ const Ui = {
|
|
|
4046
4051
|
textAlign: "center"
|
|
4047
4052
|
}
|
|
4048
4053
|
};
|
|
4049
|
-
function
|
|
4054
|
+
function Di(e) {
|
|
4050
4055
|
var t;
|
|
4051
|
-
return /* @__PURE__ */
|
|
4056
|
+
return /* @__PURE__ */ I(
|
|
4052
4057
|
"div",
|
|
4053
4058
|
{
|
|
4054
4059
|
className: "builder-text",
|
|
@@ -4059,7 +4064,7 @@ function Fi(e) {
|
|
|
4059
4064
|
}
|
|
4060
4065
|
);
|
|
4061
4066
|
}
|
|
4062
|
-
const
|
|
4067
|
+
const Li = {
|
|
4063
4068
|
name: "Custom Code",
|
|
4064
4069
|
static: !0,
|
|
4065
4070
|
requiredPermissions: ["editCode"],
|
|
@@ -4081,7 +4086,7 @@ const Mi = {
|
|
|
4081
4086
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
4082
4087
|
advanced: !0
|
|
4083
4088
|
}]
|
|
4084
|
-
},
|
|
4089
|
+
}, _i = {
|
|
4085
4090
|
name: "Embed",
|
|
4086
4091
|
static: !0,
|
|
4087
4092
|
inputs: [{
|
|
@@ -4106,7 +4111,7 @@ const Mi = {
|
|
|
4106
4111
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4107
4112
|
hideFromUI: !0
|
|
4108
4113
|
}]
|
|
4109
|
-
},
|
|
4114
|
+
}, Wi = ["text/javascript", "application/javascript", "application/ecmascript"], Qa = (e) => Wi.includes(e.type), $i = {
|
|
4110
4115
|
// friendlyName?
|
|
4111
4116
|
name: "Raw:Img",
|
|
4112
4117
|
hideFromInsertMenu: !0,
|
|
@@ -4120,7 +4125,7 @@ const Mi = {
|
|
|
4120
4125
|
}],
|
|
4121
4126
|
noWrap: !0,
|
|
4122
4127
|
static: !0
|
|
4123
|
-
},
|
|
4128
|
+
}, Hi = {
|
|
4124
4129
|
name: "Video",
|
|
4125
4130
|
canHaveChildren: !0,
|
|
4126
4131
|
defaultStyles: {
|
|
@@ -4201,58 +4206,58 @@ const Mi = {
|
|
|
4201
4206
|
defaultValue: !0,
|
|
4202
4207
|
advanced: !0
|
|
4203
4208
|
}]
|
|
4204
|
-
},
|
|
4205
|
-
component: so,
|
|
4206
|
-
...Mi
|
|
4207
|
-
}, {
|
|
4209
|
+
}, Ki = () => [{
|
|
4208
4210
|
component: lo,
|
|
4209
|
-
...Vi
|
|
4210
|
-
}, {
|
|
4211
|
-
component: co,
|
|
4212
4211
|
...Li
|
|
4213
4212
|
}, {
|
|
4214
|
-
component:
|
|
4213
|
+
component: co,
|
|
4215
4214
|
..._i
|
|
4216
|
-
}], Qn = () => [{
|
|
4217
|
-
component: fo,
|
|
4218
|
-
...Ti
|
|
4219
4215
|
}, {
|
|
4220
|
-
component:
|
|
4221
|
-
|
|
4216
|
+
component: uo,
|
|
4217
|
+
...$i
|
|
4222
4218
|
}, {
|
|
4219
|
+
component: fo,
|
|
4220
|
+
...Hi
|
|
4221
|
+
}], Qn = () => [{
|
|
4223
4222
|
component: po,
|
|
4224
|
-
...Oi
|
|
4225
|
-
}, {
|
|
4226
|
-
component: ho,
|
|
4227
4223
|
...ji
|
|
4228
4224
|
}, {
|
|
4229
|
-
component:
|
|
4225
|
+
component: gi,
|
|
4230
4226
|
...Ri
|
|
4231
4227
|
}, {
|
|
4232
|
-
component:
|
|
4228
|
+
component: ho,
|
|
4233
4229
|
...Pi
|
|
4234
4230
|
}, {
|
|
4235
|
-
component:
|
|
4236
|
-
...
|
|
4231
|
+
component: mo,
|
|
4232
|
+
...Ni
|
|
4237
4233
|
}, {
|
|
4238
|
-
component:
|
|
4234
|
+
component: go,
|
|
4239
4235
|
...Bi
|
|
4240
|
-
},
|
|
4236
|
+
}, {
|
|
4237
|
+
component: Fi,
|
|
4238
|
+
...Ui
|
|
4239
|
+
}, {
|
|
4240
|
+
component: $a,
|
|
4241
|
+
...Mi
|
|
4242
|
+
}, {
|
|
4243
|
+
component: Di,
|
|
4244
|
+
...Vi
|
|
4245
|
+
}, ...Ki()], es = (e) => ({
|
|
4241
4246
|
type: "builder.registerComponent",
|
|
4242
4247
|
data: Gt(e)
|
|
4243
|
-
}),
|
|
4248
|
+
}), Gi = (e) => {
|
|
4244
4249
|
const t = e.toString().trim();
|
|
4245
4250
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4246
|
-
},
|
|
4251
|
+
}, Xi = (e) => typeof e == "function" ? Gi(e) : gt(e), Gt = ({
|
|
4247
4252
|
inputs: e,
|
|
4248
4253
|
...t
|
|
4249
4254
|
}) => ({
|
|
4250
|
-
...
|
|
4255
|
+
...gt(t),
|
|
4251
4256
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
4252
4257
|
...r,
|
|
4253
|
-
[o]:
|
|
4258
|
+
[o]: Xi(i)
|
|
4254
4259
|
}), {}))
|
|
4255
|
-
}),
|
|
4260
|
+
}), Yi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4256
4261
|
function getAndSetVariantId() {
|
|
4257
4262
|
function setCookie(name, value, days) {
|
|
4258
4263
|
let expires = '';
|
|
@@ -4308,7 +4313,7 @@ const Mi = {
|
|
|
4308
4313
|
}).join('');
|
|
4309
4314
|
styleEl.innerHTML = newStyleStr;
|
|
4310
4315
|
}
|
|
4311
|
-
}`,
|
|
4316
|
+
}`, Ji = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4312
4317
|
if (!navigator.cookieEnabled) {
|
|
4313
4318
|
return;
|
|
4314
4319
|
}
|
|
@@ -4342,27 +4347,27 @@ const Mi = {
|
|
|
4342
4347
|
thisScriptEl?.remove();
|
|
4343
4348
|
}
|
|
4344
4349
|
return;
|
|
4345
|
-
}`, Rr = "builderIoAbTest", Pr = "builderIoRenderContent",
|
|
4350
|
+
}`, Rr = "builderIoAbTest", Pr = "builderIoRenderContent", ft = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4346
4351
|
...t,
|
|
4347
4352
|
testVariationId: t.id,
|
|
4348
4353
|
id: e == null ? void 0 : e.id
|
|
4349
|
-
})),
|
|
4354
|
+
})), zi = ({
|
|
4350
4355
|
canTrack: e,
|
|
4351
4356
|
content: t
|
|
4352
|
-
}) => !(!(
|
|
4353
|
-
window.${Rr} = ${
|
|
4354
|
-
window.${Pr} = ${
|
|
4355
|
-
`,
|
|
4357
|
+
}) => !(!(ft(t).length > 0) || !e || G()), qi = (e) => e === "react" || e === "reactNative", Nr = qi(me), Zi = () => `
|
|
4358
|
+
window.${Rr} = ${Yi}
|
|
4359
|
+
window.${Pr} = ${Ji}
|
|
4360
|
+
`, Qi = (e, t) => `
|
|
4356
4361
|
window.${Rr}(
|
|
4357
4362
|
"${t}",${JSON.stringify(e)}, ${Nr}
|
|
4358
|
-
)`,
|
|
4363
|
+
)`, ea = ({
|
|
4359
4364
|
contentId: e,
|
|
4360
4365
|
variationId: t
|
|
4361
4366
|
}) => `window.${Pr}(
|
|
4362
4367
|
"${t}", "${e}", ${Nr}
|
|
4363
4368
|
)`;
|
|
4364
4369
|
function Xt(e) {
|
|
4365
|
-
return /* @__PURE__ */
|
|
4370
|
+
return /* @__PURE__ */ I(
|
|
4366
4371
|
"script",
|
|
4367
4372
|
{
|
|
4368
4373
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -4370,60 +4375,60 @@ function Xt(e) {
|
|
|
4370
4375
|
}
|
|
4371
4376
|
);
|
|
4372
4377
|
}
|
|
4373
|
-
const
|
|
4378
|
+
const ta = (e) => {
|
|
4374
4379
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4375
|
-
return n ||
|
|
4380
|
+
return n || Z.warn("No previewed ID found in search params."), n;
|
|
4376
4381
|
};
|
|
4377
|
-
function
|
|
4378
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
4382
|
+
function na() {
|
|
4383
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new ro({
|
|
4379
4384
|
max: 500,
|
|
4380
4385
|
// how long to live in ms
|
|
4381
4386
|
ttl: 1e3 * 60 * 5
|
|
4382
4387
|
}));
|
|
4383
4388
|
}
|
|
4384
|
-
function
|
|
4385
|
-
|
|
4386
|
-
const t =
|
|
4389
|
+
function ra(e) {
|
|
4390
|
+
na();
|
|
4391
|
+
const t = ta(e);
|
|
4387
4392
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4388
4393
|
}
|
|
4389
|
-
function
|
|
4394
|
+
function oa() {
|
|
4390
4395
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4391
4396
|
}
|
|
4392
|
-
function
|
|
4393
|
-
const e =
|
|
4397
|
+
function ia() {
|
|
4398
|
+
const e = oa().fetch;
|
|
4394
4399
|
if (typeof e > "u")
|
|
4395
4400
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4396
4401
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4397
4402
|
return e;
|
|
4398
4403
|
}
|
|
4399
|
-
const
|
|
4400
|
-
function
|
|
4404
|
+
const aa = ia();
|
|
4405
|
+
function dt(e, t = null, n = ".") {
|
|
4401
4406
|
return Object.keys(e).reduce((r, o) => {
|
|
4402
4407
|
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
4403
4408
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
4404
4409
|
...r,
|
|
4405
|
-
...
|
|
4410
|
+
...dt(i, s, n)
|
|
4406
4411
|
} : {
|
|
4407
4412
|
...r,
|
|
4408
4413
|
[s]: i
|
|
4409
4414
|
};
|
|
4410
4415
|
}, {});
|
|
4411
4416
|
}
|
|
4412
|
-
const
|
|
4417
|
+
const sa = "v3", er = "builder.", la = "options.", Br = (e) => {
|
|
4413
4418
|
if (!e)
|
|
4414
4419
|
return {};
|
|
4415
4420
|
const t = lr(e), n = {};
|
|
4416
4421
|
return Object.keys(t).forEach((r) => {
|
|
4417
4422
|
if (r.startsWith(er)) {
|
|
4418
|
-
const o = r.replace(er, "").replace(
|
|
4423
|
+
const o = r.replace(er, "").replace(la, "");
|
|
4419
4424
|
n[o] = t[r];
|
|
4420
4425
|
}
|
|
4421
4426
|
}), n;
|
|
4422
|
-
},
|
|
4427
|
+
}, ca = () => {
|
|
4423
4428
|
if (!G())
|
|
4424
4429
|
return {};
|
|
4425
4430
|
const e = new URLSearchParams(window.location.search);
|
|
4426
|
-
return
|
|
4431
|
+
return Br(e);
|
|
4427
4432
|
}, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fn = (e) => {
|
|
4428
4433
|
const {
|
|
4429
4434
|
limit: t = 30,
|
|
@@ -4433,103 +4438,103 @@ const oa = "v3", er = "builder.", ia = "options.", Ur = (e) => {
|
|
|
4433
4438
|
apiKey: i,
|
|
4434
4439
|
enrich: s,
|
|
4435
4440
|
locale: u,
|
|
4436
|
-
apiVersion: p =
|
|
4437
|
-
fields:
|
|
4438
|
-
omit:
|
|
4441
|
+
apiVersion: p = sa,
|
|
4442
|
+
fields: b,
|
|
4443
|
+
omit: x,
|
|
4439
4444
|
offset: m,
|
|
4440
|
-
cacheSeconds:
|
|
4441
|
-
staleCacheSeconds:
|
|
4442
|
-
sort:
|
|
4443
|
-
includeUnpublished:
|
|
4445
|
+
cacheSeconds: O,
|
|
4446
|
+
staleCacheSeconds: N,
|
|
4447
|
+
sort: j,
|
|
4448
|
+
includeUnpublished: R
|
|
4444
4449
|
} = e;
|
|
4445
4450
|
if (!i)
|
|
4446
4451
|
throw new Error("Missing API key");
|
|
4447
4452
|
if (!["v3"].includes(p))
|
|
4448
4453
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
|
|
4449
|
-
const
|
|
4450
|
-
if (
|
|
4451
|
-
const M =
|
|
4452
|
-
sort:
|
|
4454
|
+
const Y = t !== 1, T = new URL(`https://cdn.builder.io/api/${p}/content/${o}`);
|
|
4455
|
+
if (T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(Y)), T.searchParams.set("includeRefs", String(!0)), u && T.searchParams.set("locale", u), s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", x || "meta.componentsUsed"), b && T.searchParams.set("fields", b), Number.isFinite(m) && m > -1 && T.searchParams.set("offset", String(Math.floor(m))), typeof R == "boolean" && T.searchParams.set("includeUnpublished", String(R)), O && tr(O) && T.searchParams.set("cacheSeconds", String(O)), N && tr(N) && T.searchParams.set("staleCacheSeconds", String(N)), j) {
|
|
4456
|
+
const M = dt({
|
|
4457
|
+
sort: j
|
|
4453
4458
|
});
|
|
4454
|
-
for (const
|
|
4455
|
-
|
|
4459
|
+
for (const X in M)
|
|
4460
|
+
T.searchParams.set(X, JSON.stringify(M[X]));
|
|
4456
4461
|
}
|
|
4457
|
-
const
|
|
4458
|
-
...
|
|
4462
|
+
const g = {
|
|
4463
|
+
...ca(),
|
|
4459
4464
|
...lr(e.options || {})
|
|
4460
|
-
},
|
|
4461
|
-
for (const M in
|
|
4462
|
-
|
|
4463
|
-
if (n &&
|
|
4464
|
-
const M =
|
|
4465
|
+
}, U = dt(g);
|
|
4466
|
+
for (const M in U)
|
|
4467
|
+
T.searchParams.set(M, String(U[M]));
|
|
4468
|
+
if (n && T.searchParams.set("userAttributes", JSON.stringify(n)), r) {
|
|
4469
|
+
const M = dt({
|
|
4465
4470
|
query: r
|
|
4466
4471
|
});
|
|
4467
|
-
for (const
|
|
4468
|
-
|
|
4472
|
+
for (const X in M)
|
|
4473
|
+
T.searchParams.set(X, JSON.stringify(M[X]));
|
|
4469
4474
|
}
|
|
4470
|
-
return
|
|
4471
|
-
},
|
|
4472
|
-
async function
|
|
4473
|
-
const t = await
|
|
4475
|
+
return T;
|
|
4476
|
+
}, ua = (e) => "results" in e;
|
|
4477
|
+
async function Ur(e) {
|
|
4478
|
+
const t = await pa({
|
|
4474
4479
|
...e,
|
|
4475
4480
|
limit: 1
|
|
4476
4481
|
});
|
|
4477
4482
|
return t && t[0] || null;
|
|
4478
4483
|
}
|
|
4479
|
-
const
|
|
4484
|
+
const fa = async (e) => {
|
|
4480
4485
|
const t = fn(e);
|
|
4481
|
-
return await (await (e.fetch ??
|
|
4482
|
-
},
|
|
4486
|
+
return await (await (e.fetch ?? aa)(t.href, e.fetchOptions)).json();
|
|
4487
|
+
}, da = async (e, t, n = fn(e)) => {
|
|
4483
4488
|
const r = Kt(e.canTrack);
|
|
4484
4489
|
if (n.search.includes("preview=")) {
|
|
4485
4490
|
const i = [];
|
|
4486
4491
|
for (const s of t.results) {
|
|
4487
|
-
const u =
|
|
4492
|
+
const u = ra(n.searchParams);
|
|
4488
4493
|
i.push(u || s);
|
|
4489
4494
|
}
|
|
4490
4495
|
t.results = i;
|
|
4491
4496
|
}
|
|
4492
|
-
if (!r || !(G() ||
|
|
4497
|
+
if (!r || !(G() || me === "reactNative"))
|
|
4493
4498
|
return t.results;
|
|
4494
4499
|
try {
|
|
4495
4500
|
const i = [];
|
|
4496
4501
|
for (const s of t.results)
|
|
4497
|
-
i.push(await
|
|
4502
|
+
i.push(await Oi({
|
|
4498
4503
|
item: s,
|
|
4499
4504
|
canTrack: r
|
|
4500
4505
|
}));
|
|
4501
4506
|
t.results = i;
|
|
4502
4507
|
} catch (i) {
|
|
4503
|
-
|
|
4508
|
+
Z.error("Could not process A/B tests. ", i);
|
|
4504
4509
|
}
|
|
4505
4510
|
return t.results;
|
|
4506
4511
|
};
|
|
4507
|
-
async function
|
|
4512
|
+
async function pa(e) {
|
|
4508
4513
|
try {
|
|
4509
|
-
const t = fn(e), n = await
|
|
4510
|
-
return
|
|
4514
|
+
const t = fn(e), n = await fa(e);
|
|
4515
|
+
return ua(n) ? da(e, n) : (Z.error("Error fetching data. ", {
|
|
4511
4516
|
url: t,
|
|
4512
4517
|
content: n,
|
|
4513
4518
|
options: e
|
|
4514
4519
|
}), null);
|
|
4515
4520
|
} catch (t) {
|
|
4516
|
-
return
|
|
4521
|
+
return Z.error("Error fetching data. ", t), null;
|
|
4517
4522
|
}
|
|
4518
4523
|
}
|
|
4519
|
-
function
|
|
4524
|
+
function ts(e) {
|
|
4520
4525
|
const t = e || (G() ? window.location.search : void 0);
|
|
4521
4526
|
return t ? cr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
4522
4527
|
}
|
|
4523
|
-
function
|
|
4528
|
+
function ha() {
|
|
4524
4529
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4525
4530
|
const t = Math.random() * 16 | 0;
|
|
4526
4531
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4527
4532
|
});
|
|
4528
4533
|
}
|
|
4529
4534
|
function Fr() {
|
|
4530
|
-
return
|
|
4535
|
+
return ha().replace(/-/g, "");
|
|
4531
4536
|
}
|
|
4532
|
-
const Mr = "builderSessionId",
|
|
4537
|
+
const Mr = "builderSessionId", ma = async ({
|
|
4533
4538
|
canTrack: e
|
|
4534
4539
|
}) => {
|
|
4535
4540
|
if (!e)
|
|
@@ -4538,23 +4543,23 @@ const Mr = "builderSessionId", da = async ({
|
|
|
4538
4543
|
name: Mr,
|
|
4539
4544
|
canTrack: e
|
|
4540
4545
|
});
|
|
4541
|
-
if (
|
|
4546
|
+
if (ie(t))
|
|
4542
4547
|
return t;
|
|
4543
4548
|
{
|
|
4544
|
-
const n =
|
|
4545
|
-
return
|
|
4549
|
+
const n = ga();
|
|
4550
|
+
return ya({
|
|
4546
4551
|
id: n,
|
|
4547
4552
|
canTrack: e
|
|
4548
4553
|
}), n;
|
|
4549
4554
|
}
|
|
4550
|
-
},
|
|
4555
|
+
}, ga = () => Fr(), ya = ({
|
|
4551
4556
|
id: e,
|
|
4552
4557
|
canTrack: t
|
|
4553
4558
|
}) => Tr({
|
|
4554
4559
|
name: Mr,
|
|
4555
4560
|
value: e,
|
|
4556
4561
|
canTrack: t
|
|
4557
|
-
}), Vr = () => G() && typeof localStorage < "u" ? localStorage : void 0,
|
|
4562
|
+
}), Vr = () => G() && typeof localStorage < "u" ? localStorage : void 0, va = ({
|
|
4558
4563
|
key: e,
|
|
4559
4564
|
canTrack: t
|
|
4560
4565
|
}) => {
|
|
@@ -4565,7 +4570,7 @@ const Mr = "builderSessionId", da = async ({
|
|
|
4565
4570
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4566
4571
|
return;
|
|
4567
4572
|
}
|
|
4568
|
-
},
|
|
4573
|
+
}, ba = ({
|
|
4569
4574
|
key: e,
|
|
4570
4575
|
canTrack: t,
|
|
4571
4576
|
value: n
|
|
@@ -4576,32 +4581,32 @@ const Mr = "builderSessionId", da = async ({
|
|
|
4576
4581
|
} catch (o) {
|
|
4577
4582
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4578
4583
|
}
|
|
4579
|
-
}, Dr = "builderVisitorId",
|
|
4584
|
+
}, Dr = "builderVisitorId", Sa = ({
|
|
4580
4585
|
canTrack: e
|
|
4581
4586
|
}) => {
|
|
4582
4587
|
if (!e)
|
|
4583
4588
|
return;
|
|
4584
|
-
const t =
|
|
4589
|
+
const t = va({
|
|
4585
4590
|
key: Dr,
|
|
4586
4591
|
canTrack: e
|
|
4587
4592
|
});
|
|
4588
|
-
if (
|
|
4593
|
+
if (ie(t))
|
|
4589
4594
|
return t;
|
|
4590
4595
|
{
|
|
4591
|
-
const n =
|
|
4592
|
-
return
|
|
4596
|
+
const n = wa();
|
|
4597
|
+
return xa({
|
|
4593
4598
|
id: n,
|
|
4594
4599
|
canTrack: e
|
|
4595
4600
|
}), n;
|
|
4596
4601
|
}
|
|
4597
|
-
},
|
|
4602
|
+
}, wa = () => Fr(), xa = ({
|
|
4598
4603
|
id: e,
|
|
4599
4604
|
canTrack: t
|
|
4600
|
-
}) =>
|
|
4605
|
+
}) => ba({
|
|
4601
4606
|
key: Dr,
|
|
4602
4607
|
value: e,
|
|
4603
4608
|
canTrack: t
|
|
4604
|
-
}),
|
|
4609
|
+
}), ka = async ({
|
|
4605
4610
|
canTrack: e
|
|
4606
4611
|
}) => {
|
|
4607
4612
|
if (!e)
|
|
@@ -4609,16 +4614,16 @@ const Mr = "builderSessionId", da = async ({
|
|
|
4609
4614
|
visitorId: void 0,
|
|
4610
4615
|
sessionId: void 0
|
|
4611
4616
|
};
|
|
4612
|
-
const t = await
|
|
4617
|
+
const t = await ma({
|
|
4613
4618
|
canTrack: e
|
|
4614
|
-
}), n =
|
|
4619
|
+
}), n = Sa({
|
|
4615
4620
|
canTrack: e
|
|
4616
4621
|
});
|
|
4617
4622
|
return {
|
|
4618
4623
|
sessionId: t,
|
|
4619
4624
|
visitorId: n
|
|
4620
4625
|
};
|
|
4621
|
-
},
|
|
4626
|
+
}, Ca = async ({
|
|
4622
4627
|
type: e,
|
|
4623
4628
|
canTrack: t,
|
|
4624
4629
|
apiKey: n,
|
|
@@ -4632,23 +4637,23 @@ const Mr = "builderSessionId", da = async ({
|
|
|
4632
4637
|
url: location.href,
|
|
4633
4638
|
...r
|
|
4634
4639
|
},
|
|
4635
|
-
...await
|
|
4640
|
+
...await ka({
|
|
4636
4641
|
canTrack: t
|
|
4637
4642
|
}),
|
|
4638
4643
|
userAttributes: fr(),
|
|
4639
4644
|
ownerId: n
|
|
4640
4645
|
}
|
|
4641
4646
|
});
|
|
4642
|
-
async function
|
|
4647
|
+
async function Ea(e) {
|
|
4643
4648
|
if (!e.apiKey) {
|
|
4644
|
-
|
|
4649
|
+
Z.error("Missing API key for track call. Please provide your API key.");
|
|
4645
4650
|
return;
|
|
4646
4651
|
}
|
|
4647
|
-
if (e.canTrack && !ur() && (G() ||
|
|
4652
|
+
if (e.canTrack && !ur() && (G() || me === "reactNative"))
|
|
4648
4653
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4649
4654
|
method: "POST",
|
|
4650
4655
|
body: JSON.stringify({
|
|
4651
|
-
events: [await
|
|
4656
|
+
events: [await Ca(e)]
|
|
4652
4657
|
}),
|
|
4653
4658
|
headers: {
|
|
4654
4659
|
"content-type": "application/json"
|
|
@@ -4658,14 +4663,14 @@ async function xa(e) {
|
|
|
4658
4663
|
console.error("Failed to track: ", t);
|
|
4659
4664
|
});
|
|
4660
4665
|
}
|
|
4661
|
-
const
|
|
4666
|
+
const ns = (e) => Ea({
|
|
4662
4667
|
...e,
|
|
4663
4668
|
canTrack: !0
|
|
4664
4669
|
});
|
|
4665
4670
|
function nr(e) {
|
|
4666
4671
|
return Math.round(e * 1e3) / 1e3;
|
|
4667
4672
|
}
|
|
4668
|
-
const
|
|
4673
|
+
const Ia = (e, t, n = !0) => {
|
|
4669
4674
|
if (!(e instanceof HTMLElement))
|
|
4670
4675
|
return null;
|
|
4671
4676
|
let r = n ? e : e.parentElement;
|
|
@@ -4676,7 +4681,7 @@ const ka = (e, t, n = !0) => {
|
|
|
4676
4681
|
return r;
|
|
4677
4682
|
} while (r = r.parentElement);
|
|
4678
4683
|
return null;
|
|
4679
|
-
},
|
|
4684
|
+
}, Ta = (e) => Ia(e, (t) => {
|
|
4680
4685
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4681
4686
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4682
4687
|
}), rr = ({
|
|
@@ -4688,8 +4693,8 @@ const ka = (e, t, n = !0) => {
|
|
|
4688
4693
|
x: i,
|
|
4689
4694
|
y: s
|
|
4690
4695
|
};
|
|
4691
|
-
},
|
|
4692
|
-
const t = e.target, n = t &&
|
|
4696
|
+
}, rs = (e) => {
|
|
4697
|
+
const t = e.target, n = t && Ta(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4693
4698
|
return {
|
|
4694
4699
|
targetBuilderElement: r || void 0,
|
|
4695
4700
|
metadata: {
|
|
@@ -4704,13 +4709,13 @@ const ka = (e, t, n = !0) => {
|
|
|
4704
4709
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4705
4710
|
}
|
|
4706
4711
|
};
|
|
4707
|
-
},
|
|
4712
|
+
}, Aa = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4708
4713
|
function Lr(e, t) {
|
|
4709
4714
|
const n = new URL(t.origin), r = n.hostname;
|
|
4710
|
-
return (e ||
|
|
4715
|
+
return (e || Aa).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4711
4716
|
}
|
|
4712
|
-
const
|
|
4713
|
-
function
|
|
4717
|
+
const Oa = "0.14.19", or = {};
|
|
4718
|
+
function ja(e, t) {
|
|
4714
4719
|
let n = or[e];
|
|
4715
4720
|
if (n || (n = or[e] = []), n.push(t), G()) {
|
|
4716
4721
|
const r = {
|
|
@@ -4727,8 +4732,8 @@ function Ta(e, t) {
|
|
|
4727
4732
|
}
|
|
4728
4733
|
}
|
|
4729
4734
|
}
|
|
4730
|
-
const
|
|
4731
|
-
|
|
4735
|
+
const os = () => {
|
|
4736
|
+
ja("insertMenu", {
|
|
4732
4737
|
name: "_default",
|
|
4733
4738
|
default: !0,
|
|
4734
4739
|
items: [{
|
|
@@ -4751,13 +4756,13 @@ const ts = () => {
|
|
|
4751
4756
|
});
|
|
4752
4757
|
};
|
|
4753
4758
|
let ir = !1;
|
|
4754
|
-
const
|
|
4759
|
+
const Ra = (e = {}) => {
|
|
4755
4760
|
var t, n;
|
|
4756
4761
|
ir || (ir = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
4757
4762
|
type: "builder.sdkInfo",
|
|
4758
4763
|
data: {
|
|
4759
|
-
target:
|
|
4760
|
-
version:
|
|
4764
|
+
target: me,
|
|
4765
|
+
version: Oa,
|
|
4761
4766
|
supportsPatchUpdates: !1,
|
|
4762
4767
|
// Supports builder-model="..." attribute which is needed to
|
|
4763
4768
|
// scope our '+ add block' button styling
|
|
@@ -4779,40 +4784,40 @@ const Aa = (e = {}) => {
|
|
|
4779
4784
|
if (o != null && o.type)
|
|
4780
4785
|
switch (o.type) {
|
|
4781
4786
|
case "builder.evaluate": {
|
|
4782
|
-
const u = o.data.text, p = o.data.arguments || [],
|
|
4783
|
-
let m,
|
|
4787
|
+
const u = o.data.text, p = o.data.arguments || [], b = o.data.id, x = new Function(u);
|
|
4788
|
+
let m, O = null;
|
|
4784
4789
|
try {
|
|
4785
|
-
m =
|
|
4786
|
-
} catch (
|
|
4787
|
-
|
|
4790
|
+
m = x.apply(null, p);
|
|
4791
|
+
} catch (N) {
|
|
4792
|
+
O = N;
|
|
4788
4793
|
}
|
|
4789
|
-
|
|
4794
|
+
O ? (i = window.parent) == null || i.postMessage({
|
|
4790
4795
|
type: "builder.evaluateError",
|
|
4791
4796
|
data: {
|
|
4792
|
-
id:
|
|
4793
|
-
error:
|
|
4797
|
+
id: b,
|
|
4798
|
+
error: O.message
|
|
4794
4799
|
}
|
|
4795
|
-
}, "*") : m && typeof m.then == "function" ? m.then((
|
|
4796
|
-
var
|
|
4797
|
-
(
|
|
4800
|
+
}, "*") : m && typeof m.then == "function" ? m.then((N) => {
|
|
4801
|
+
var j;
|
|
4802
|
+
(j = window.parent) == null || j.postMessage({
|
|
4798
4803
|
type: "builder.evaluateResult",
|
|
4799
4804
|
data: {
|
|
4800
|
-
id:
|
|
4801
|
-
result:
|
|
4805
|
+
id: b,
|
|
4806
|
+
result: N
|
|
4802
4807
|
}
|
|
4803
4808
|
}, "*");
|
|
4804
4809
|
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
4805
4810
|
type: "builder.evaluateResult",
|
|
4806
4811
|
data: {
|
|
4807
4812
|
result: m,
|
|
4808
|
-
id:
|
|
4813
|
+
id: b
|
|
4809
4814
|
}
|
|
4810
4815
|
}, "*");
|
|
4811
4816
|
break;
|
|
4812
4817
|
}
|
|
4813
4818
|
}
|
|
4814
4819
|
})));
|
|
4815
|
-
},
|
|
4820
|
+
}, Pa = ({
|
|
4816
4821
|
model: e,
|
|
4817
4822
|
trustedHosts: t,
|
|
4818
4823
|
callbacks: n
|
|
@@ -4838,12 +4843,12 @@ const Aa = (e = {}) => {
|
|
|
4838
4843
|
break;
|
|
4839
4844
|
}
|
|
4840
4845
|
}
|
|
4841
|
-
},
|
|
4846
|
+
}, is = (e, t, n) => {
|
|
4842
4847
|
if (!G)
|
|
4843
|
-
return
|
|
4848
|
+
return Z.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
4844
4849
|
};
|
|
4845
|
-
|
|
4846
|
-
const r =
|
|
4850
|
+
Ra();
|
|
4851
|
+
const r = Pa({
|
|
4847
4852
|
callbacks: {
|
|
4848
4853
|
contentUpdate: t,
|
|
4849
4854
|
animation: () => {
|
|
@@ -4857,7 +4862,7 @@ const Aa = (e = {}) => {
|
|
|
4857
4862
|
return window.addEventListener("message", r), () => {
|
|
4858
4863
|
window.removeEventListener("message", r);
|
|
4859
4864
|
};
|
|
4860
|
-
},
|
|
4865
|
+
}, Na = (e) => {
|
|
4861
4866
|
var i;
|
|
4862
4867
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
4863
4868
|
let o = "";
|
|
@@ -4883,15 +4888,15 @@ font-weight: ${s};
|
|
|
4883
4888
|
`.trim());
|
|
4884
4889
|
}
|
|
4885
4890
|
return o;
|
|
4886
|
-
},
|
|
4891
|
+
}, Ba = ({
|
|
4887
4892
|
customFonts: e
|
|
4888
4893
|
}) => {
|
|
4889
4894
|
var t;
|
|
4890
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4891
|
-
},
|
|
4895
|
+
return ((t = e == null ? void 0 : e.map((n) => Na(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4896
|
+
}, Ua = ({
|
|
4892
4897
|
cssCode: e,
|
|
4893
4898
|
contentId: t
|
|
4894
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4899
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Fa = `
|
|
4895
4900
|
.builder-button {
|
|
4896
4901
|
all: unset;
|
|
4897
4902
|
}
|
|
@@ -4908,21 +4913,21 @@ font-weight: ${s};
|
|
|
4908
4913
|
text-align: inherit;
|
|
4909
4914
|
font-family: inherit;
|
|
4910
4915
|
}
|
|
4911
|
-
`,
|
|
4912
|
-
function
|
|
4916
|
+
`, Ma = (e) => e ? "" : Fa, as = (e) => `variant-${e}`;
|
|
4917
|
+
function Va(e) {
|
|
4913
4918
|
const t = `
|
|
4914
|
-
${
|
|
4919
|
+
${Ua({
|
|
4915
4920
|
cssCode: e.cssCode,
|
|
4916
4921
|
contentId: e.contentId
|
|
4917
4922
|
})}
|
|
4918
|
-
${
|
|
4923
|
+
${Ba({
|
|
4919
4924
|
customFonts: e.customFonts
|
|
4920
4925
|
})}
|
|
4921
|
-
${
|
|
4926
|
+
${Ma(e.isNestedRender)}
|
|
4922
4927
|
`.trim();
|
|
4923
|
-
return /* @__PURE__ */
|
|
4928
|
+
return /* @__PURE__ */ I(yt, { id: "builderio-content", styles: t });
|
|
4924
4929
|
}
|
|
4925
|
-
const
|
|
4930
|
+
const Da = ({
|
|
4926
4931
|
content: e,
|
|
4927
4932
|
data: t,
|
|
4928
4933
|
locale: n
|
|
@@ -4939,7 +4944,7 @@ const Fa = ({
|
|
|
4939
4944
|
locale: n
|
|
4940
4945
|
} : {}
|
|
4941
4946
|
};
|
|
4942
|
-
},
|
|
4947
|
+
}, La = ({
|
|
4943
4948
|
content: e,
|
|
4944
4949
|
data: t
|
|
4945
4950
|
}) => e ? {
|
|
@@ -4951,8 +4956,8 @@ const Fa = ({
|
|
|
4951
4956
|
meta: e == null ? void 0 : e.meta
|
|
4952
4957
|
} : void 0;
|
|
4953
4958
|
function ar(e) {
|
|
4954
|
-
var o, i, s, u, p,
|
|
4955
|
-
const t =
|
|
4959
|
+
var o, i, s, u, p, b, x, m, O;
|
|
4960
|
+
const t = ea({
|
|
4956
4961
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4957
4962
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4958
4963
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4961,21 +4966,21 @@ function ar(e) {
|
|
|
4961
4966
|
...Qn(),
|
|
4962
4967
|
...e.customComponents || []
|
|
4963
4968
|
].reduce(
|
|
4964
|
-
(
|
|
4965
|
-
...
|
|
4966
|
-
[
|
|
4967
|
-
component:
|
|
4968
|
-
...Gt(
|
|
4969
|
+
(N, { component: j, ...R }) => ({
|
|
4970
|
+
...N,
|
|
4971
|
+
[R.name]: {
|
|
4972
|
+
component: j,
|
|
4973
|
+
...Gt(R)
|
|
4969
4974
|
}
|
|
4970
4975
|
}),
|
|
4971
4976
|
{}
|
|
4972
4977
|
), r = {
|
|
4973
|
-
content:
|
|
4978
|
+
content: La({
|
|
4974
4979
|
content: e.content,
|
|
4975
4980
|
data: e.data
|
|
4976
4981
|
}),
|
|
4977
4982
|
localState: void 0,
|
|
4978
|
-
rootState:
|
|
4983
|
+
rootState: Da({
|
|
4979
4984
|
content: e.content,
|
|
4980
4985
|
data: e.data,
|
|
4981
4986
|
locale: e.locale
|
|
@@ -4988,9 +4993,9 @@ function ar(e) {
|
|
|
4988
4993
|
...Qn(),
|
|
4989
4994
|
...e.customComponents || []
|
|
4990
4995
|
].reduce(
|
|
4991
|
-
(
|
|
4992
|
-
...
|
|
4993
|
-
[
|
|
4996
|
+
(N, { component: j, ...R }) => ({
|
|
4997
|
+
...N,
|
|
4998
|
+
[R.name]: Gt(R)
|
|
4994
4999
|
}),
|
|
4995
5000
|
{}
|
|
4996
5001
|
),
|
|
@@ -4999,7 +5004,7 @@ function ar(e) {
|
|
|
4999
5004
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
5000
5005
|
};
|
|
5001
5006
|
return /* @__PURE__ */ xe(
|
|
5002
|
-
|
|
5007
|
+
yo,
|
|
5003
5008
|
{
|
|
5004
5009
|
content: e.content,
|
|
5005
5010
|
data: e.data,
|
|
@@ -5016,26 +5021,26 @@ function ar(e) {
|
|
|
5016
5021
|
linkComponent: e.linkComponent,
|
|
5017
5022
|
trustedHosts: e.trustedHosts,
|
|
5018
5023
|
children: [
|
|
5019
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
5024
|
+
e.isSsrAbTest ? /* @__PURE__ */ I(
|
|
5020
5025
|
Xt,
|
|
5021
5026
|
{
|
|
5022
5027
|
id: "builderio-variant-visibility",
|
|
5023
5028
|
scriptStr: t
|
|
5024
5029
|
}
|
|
5025
5030
|
) : null,
|
|
5026
|
-
/* @__PURE__ */
|
|
5027
|
-
|
|
5031
|
+
/* @__PURE__ */ I(
|
|
5032
|
+
Va,
|
|
5028
5033
|
{
|
|
5029
5034
|
isNestedRender: e.isNestedRender,
|
|
5030
5035
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
5031
5036
|
cssCode: (p = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : p.cssCode,
|
|
5032
|
-
customFonts: (
|
|
5037
|
+
customFonts: (x = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : x.customFonts
|
|
5033
5038
|
}
|
|
5034
5039
|
),
|
|
5035
|
-
/* @__PURE__ */
|
|
5040
|
+
/* @__PURE__ */ I(
|
|
5036
5041
|
cn,
|
|
5037
5042
|
{
|
|
5038
|
-
blocks: (
|
|
5043
|
+
blocks: (O = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : O.blocks,
|
|
5039
5044
|
context: r,
|
|
5040
5045
|
registeredComponents: n,
|
|
5041
5046
|
linkComponent: e.linkComponent
|
|
@@ -5045,56 +5050,56 @@ function ar(e) {
|
|
|
5045
5050
|
}
|
|
5046
5051
|
);
|
|
5047
5052
|
}
|
|
5048
|
-
function
|
|
5053
|
+
function _a(e) {
|
|
5049
5054
|
var i;
|
|
5050
|
-
const t =
|
|
5055
|
+
const t = zi({
|
|
5051
5056
|
canTrack: Kt(e.canTrack),
|
|
5052
5057
|
content: e.content
|
|
5053
5058
|
}), n = function() {
|
|
5054
5059
|
var u;
|
|
5055
|
-
return
|
|
5056
|
-
|
|
5060
|
+
return Qi(
|
|
5061
|
+
ft(e.content).map((p) => ({
|
|
5057
5062
|
id: p.testVariationId,
|
|
5058
5063
|
testRatio: p.testRatio
|
|
5059
5064
|
})),
|
|
5060
5065
|
((u = e.content) == null ? void 0 : u.id) || ""
|
|
5061
5066
|
);
|
|
5062
5067
|
}, r = function() {
|
|
5063
|
-
return
|
|
5068
|
+
return ft(e.content).map((u) => `.variant-${u.testVariationId} { display: none; } `).join("");
|
|
5064
5069
|
}, o = function() {
|
|
5065
5070
|
var u;
|
|
5066
5071
|
return t ? {
|
|
5067
5072
|
...e.content,
|
|
5068
5073
|
testVariationId: (u = e.content) == null ? void 0 : u.id
|
|
5069
|
-
} :
|
|
5074
|
+
} : Ai({
|
|
5070
5075
|
item: e.content,
|
|
5071
5076
|
canTrack: Kt(e.canTrack)
|
|
5072
5077
|
});
|
|
5073
5078
|
};
|
|
5074
|
-
return /* @__PURE__ */ xe(
|
|
5075
|
-
!e.isNestedRender &&
|
|
5079
|
+
return /* @__PURE__ */ xe(ee, { children: [
|
|
5080
|
+
!e.isNestedRender && me !== "reactNative" ? /* @__PURE__ */ I(
|
|
5076
5081
|
Xt,
|
|
5077
5082
|
{
|
|
5078
5083
|
id: "builderio-init-variants-fns",
|
|
5079
|
-
scriptStr:
|
|
5084
|
+
scriptStr: Zi()
|
|
5080
5085
|
}
|
|
5081
5086
|
) : null,
|
|
5082
|
-
t ? /* @__PURE__ */ xe(
|
|
5083
|
-
/* @__PURE__ */
|
|
5084
|
-
|
|
5087
|
+
t ? /* @__PURE__ */ xe(ee, { children: [
|
|
5088
|
+
/* @__PURE__ */ I(
|
|
5089
|
+
yt,
|
|
5085
5090
|
{
|
|
5086
5091
|
id: "builderio-variants",
|
|
5087
5092
|
styles: r()
|
|
5088
5093
|
}
|
|
5089
5094
|
),
|
|
5090
|
-
/* @__PURE__ */
|
|
5095
|
+
/* @__PURE__ */ I(
|
|
5091
5096
|
Xt,
|
|
5092
5097
|
{
|
|
5093
5098
|
id: "builderio-variants-visibility",
|
|
5094
5099
|
scriptStr: n()
|
|
5095
5100
|
}
|
|
5096
5101
|
),
|
|
5097
|
-
(i =
|
|
5102
|
+
(i = ft(e.content)) == null ? void 0 : i.map((s) => /* @__PURE__ */ I(
|
|
5098
5103
|
ar,
|
|
5099
5104
|
{
|
|
5100
5105
|
isNestedRender: e.isNestedRender,
|
|
@@ -5120,7 +5125,7 @@ function Va(e) {
|
|
|
5120
5125
|
s.testVariationId
|
|
5121
5126
|
))
|
|
5122
5127
|
] }) : null,
|
|
5123
|
-
/* @__PURE__ */
|
|
5128
|
+
/* @__PURE__ */ I(
|
|
5124
5129
|
ar,
|
|
5125
5130
|
{
|
|
5126
5131
|
isNestedRender: e.isNestedRender,
|
|
@@ -5146,13 +5151,13 @@ function Va(e) {
|
|
|
5146
5151
|
)
|
|
5147
5152
|
] });
|
|
5148
5153
|
}
|
|
5149
|
-
const
|
|
5154
|
+
const Wa = async ({
|
|
5150
5155
|
builderContextValue: e,
|
|
5151
5156
|
symbol: t
|
|
5152
5157
|
}) => {
|
|
5153
5158
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5154
5159
|
(e != null && e.apiKey))
|
|
5155
|
-
return
|
|
5160
|
+
return Ur({
|
|
5156
5161
|
model: t.model,
|
|
5157
5162
|
apiKey: e.apiKey,
|
|
5158
5163
|
apiVersion: e.apiVersion,
|
|
@@ -5162,49 +5167,53 @@ const Da = async ({
|
|
|
5162
5167
|
}
|
|
5163
5168
|
}
|
|
5164
5169
|
}).catch((n) => {
|
|
5165
|
-
|
|
5170
|
+
Z.error("Could not fetch symbol content: ", n);
|
|
5166
5171
|
});
|
|
5167
5172
|
};
|
|
5168
|
-
async function
|
|
5169
|
-
var
|
|
5173
|
+
async function $a(e) {
|
|
5174
|
+
var i, s, u, p, b;
|
|
5170
5175
|
const t = function() {
|
|
5171
|
-
|
|
5176
|
+
return "div";
|
|
5177
|
+
}, n = function() {
|
|
5178
|
+
return "div";
|
|
5179
|
+
}, r = function() {
|
|
5180
|
+
var m, O;
|
|
5172
5181
|
return [
|
|
5173
5182
|
e.attributes[Yt()],
|
|
5174
5183
|
"builder-symbol",
|
|
5175
|
-
(
|
|
5176
|
-
(
|
|
5184
|
+
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
5185
|
+
(O = e.symbol) != null && O.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5177
5186
|
].filter(Boolean).join(" ");
|
|
5178
|
-
},
|
|
5187
|
+
}, o = ((i = e.symbol) == null ? void 0 : i.content) || await Wa({
|
|
5179
5188
|
symbol: e.symbol,
|
|
5180
5189
|
builderContextValue: e.builderContext
|
|
5181
5190
|
});
|
|
5182
|
-
return /* @__PURE__ */
|
|
5183
|
-
|
|
5191
|
+
return /* @__PURE__ */ I("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ I(
|
|
5192
|
+
_a,
|
|
5184
5193
|
{
|
|
5185
5194
|
isNestedRender: !0,
|
|
5186
5195
|
apiVersion: e.builderContext.apiVersion,
|
|
5187
5196
|
apiKey: e.builderContext.apiKey,
|
|
5188
5197
|
context: {
|
|
5189
5198
|
...e.builderContext.context,
|
|
5190
|
-
symbolId: (
|
|
5199
|
+
symbolId: (s = e.builderBlock) == null ? void 0 : s.id
|
|
5191
5200
|
},
|
|
5192
5201
|
customComponents: Object.values(e.builderComponents),
|
|
5193
5202
|
data: {
|
|
5194
|
-
...(
|
|
5203
|
+
...(u = e.symbol) == null ? void 0 : u.data,
|
|
5195
5204
|
...e.builderContext.localState,
|
|
5196
|
-
...(
|
|
5205
|
+
...(p = o == null ? void 0 : o.data) == null ? void 0 : p.state
|
|
5197
5206
|
},
|
|
5198
|
-
model: (
|
|
5199
|
-
content:
|
|
5207
|
+
model: (b = e.symbol) == null ? void 0 : b.model,
|
|
5208
|
+
content: o,
|
|
5200
5209
|
linkComponent: e.builderLinkComponent,
|
|
5201
|
-
blocksWrapper:
|
|
5202
|
-
contentWrapper:
|
|
5210
|
+
blocksWrapper: t(),
|
|
5211
|
+
contentWrapper: n()
|
|
5203
5212
|
}
|
|
5204
5213
|
) });
|
|
5205
5214
|
}
|
|
5206
5215
|
const sr = {};
|
|
5207
|
-
function
|
|
5216
|
+
function ss(e) {
|
|
5208
5217
|
if (G()) {
|
|
5209
5218
|
Object.assign(sr, e);
|
|
5210
5219
|
const t = {
|
|
@@ -5214,7 +5223,7 @@ function rs(e) {
|
|
|
5214
5223
|
parent.postMessage(t, "*");
|
|
5215
5224
|
}
|
|
5216
5225
|
}
|
|
5217
|
-
const
|
|
5226
|
+
const ls = async (e) => {
|
|
5218
5227
|
var r, o, i;
|
|
5219
5228
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
5220
5229
|
...e,
|
|
@@ -5226,49 +5235,50 @@ const os = async (e) => {
|
|
|
5226
5235
|
urlPath: t
|
|
5227
5236
|
} : {}
|
|
5228
5237
|
},
|
|
5229
|
-
options:
|
|
5238
|
+
options: Br(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
5230
5239
|
};
|
|
5231
5240
|
return {
|
|
5232
5241
|
apiKey: n.apiKey,
|
|
5233
5242
|
model: n.model,
|
|
5234
|
-
content: await
|
|
5243
|
+
content: await Ur(n)
|
|
5235
5244
|
};
|
|
5236
5245
|
};
|
|
5237
5246
|
export {
|
|
5238
|
-
|
|
5247
|
+
Br as A,
|
|
5239
5248
|
cn as B,
|
|
5240
|
-
|
|
5249
|
+
gi as C,
|
|
5241
5250
|
ns as D,
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5251
|
+
is as E,
|
|
5252
|
+
ls as F,
|
|
5253
|
+
da as G,
|
|
5254
|
+
pa as H,
|
|
5255
|
+
$a as S,
|
|
5256
|
+
Di as T,
|
|
5257
|
+
Ea as _,
|
|
5258
|
+
di as a,
|
|
5259
|
+
qa as b,
|
|
5250
5260
|
ur as c,
|
|
5251
|
-
|
|
5252
|
-
|
|
5261
|
+
Za as d,
|
|
5262
|
+
Qa as e,
|
|
5253
5263
|
G as f,
|
|
5254
5264
|
Yt as g,
|
|
5255
5265
|
Kt as h,
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5266
|
+
Ja as i,
|
|
5267
|
+
ts as j,
|
|
5268
|
+
as as k,
|
|
5269
|
+
Z as l,
|
|
5270
|
+
Pa as m,
|
|
5271
|
+
ln as n,
|
|
5272
|
+
rs as o,
|
|
5273
|
+
aa as p,
|
|
5274
|
+
gt as q,
|
|
5275
|
+
os as r,
|
|
5276
|
+
Ra as s,
|
|
5277
|
+
za as t,
|
|
5278
|
+
es as u,
|
|
5279
|
+
Ur as v,
|
|
5280
|
+
na as w,
|
|
5281
|
+
_a as x,
|
|
5282
|
+
ja as y,
|
|
5283
|
+
ss as z
|
|
5274
5284
|
};
|