@builder.io/sdk-react-nextjs 0.12.0 → 0.12.1
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/{node/USE_CLIENT_BUNDLE-ff4465dc.cjs → browser/USE_CLIENT_BUNDLE-5457b97e.cjs} +1 -1
- package/lib/browser/{USE_CLIENT_BUNDLE-109dedea.js → USE_CLIENT_BUNDLE-ac9ba054.js} +2 -2
- package/lib/{edge/USE_SERVER_BUNDLE-35036883.js → browser/USE_SERVER_BUNDLE-153f7d4b.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-ab530745.cjs → browser/USE_SERVER_BUNDLE-a0bf6d8f.cjs} +1 -1
- package/lib/browser/{bundle-ff1186e7.cjs → bundle-6435b7fb.cjs} +19 -19
- package/lib/browser/{bundle-f769d53a.js → bundle-7e2a44d9.js} +302 -259
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-f1c14740.js → edge/USE_CLIENT_BUNDLE-3049fd56.js} +2 -2
- package/lib/{browser/USE_CLIENT_BUNDLE-c6f253a6.cjs → edge/USE_CLIENT_BUNDLE-8922846d.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-a546a48c.js → edge/USE_SERVER_BUNDLE-231b55dd.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-ce3684c3.cjs → edge/USE_SERVER_BUNDLE-24df6623.cjs} +1 -1
- package/lib/edge/{bundle-80ec9a4d.js → bundle-44392f6d.js} +599 -556
- package/lib/edge/{bundle-593d3883.cjs → bundle-6d55a6a7.cjs} +26 -26
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-23097d3f.cjs → node/USE_CLIENT_BUNDLE-09122ff1.cjs} +1 -1
- package/lib/{edge/USE_CLIENT_BUNDLE-bffeb179.js → node/USE_CLIENT_BUNDLE-f4804af3.js} +2 -2
- package/lib/{browser/USE_SERVER_BUNDLE-a36e67c3.js → node/USE_SERVER_BUNDLE-33c309df.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-7d41532a.cjs → node/USE_SERVER_BUNDLE-93366161.cjs} +1 -1
- package/lib/node/{bundle-fd27db7d.js → bundle-217b5738.js} +138 -95
- package/lib/node/{bundle-6e88a55c.cjs → bundle-b9af39ec.cjs} +10 -10
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/blocks/slot/component-info.d.ts +2 -0
- package/types/cjs/blocks/slot/slot.d.ts +11 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/esm/blocks/slot/component-info.d.ts +2 -0
- package/types/esm/blocks/slot/slot.d.ts +11 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LRUCache as Zr } from "lru-cache";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as k, Fragment as D, jsxs as ye } from "react/jsx-runtime";
|
|
3
3
|
import { createElement as Qr } from "react";
|
|
4
|
-
import { I as eo, B as Wn, a as to, b as no, C as ro, E as oo, F as io, c as ao, d as so, S as lo, V as co, e as uo } from "./USE_CLIENT_BUNDLE-
|
|
4
|
+
import { I as eo, B as Wn, a as to, b as no, C as ro, E as oo, F as io, c as ao, d as so, S as lo, V as co, e as uo } from "./USE_CLIENT_BUNDLE-3049fd56.js";
|
|
5
5
|
import "next/navigation";
|
|
6
6
|
function fo(e) {
|
|
7
7
|
var t;
|
|
@@ -23,11 +23,11 @@ const at = "[Builder.io]: ", q = {
|
|
|
23
23
|
function G() {
|
|
24
24
|
return typeof window < "u" && typeof document < "u";
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const be = "rsc";
|
|
27
27
|
function po() {
|
|
28
28
|
return G() && window.self !== window.top;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Yt() {
|
|
31
31
|
return po() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
32
32
|
}
|
|
33
33
|
const ho = () => {
|
|
@@ -54,7 +54,7 @@ const ho = () => {
|
|
|
54
54
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
55
55
|
},
|
|
56
56
|
any() {
|
|
57
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
57
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || be === "reactNative";
|
|
58
58
|
}
|
|
59
59
|
}, n = e.match(/Tablet|iPad/i), r = ho();
|
|
60
60
|
return {
|
|
@@ -75,7 +75,7 @@ const ho = () => {
|
|
|
75
75
|
context: t,
|
|
76
76
|
event: n
|
|
77
77
|
}), go = () => ({
|
|
78
|
-
isEditing:
|
|
78
|
+
isEditing: Yt(),
|
|
79
79
|
isBrowser: G(),
|
|
80
80
|
isServer: !G(),
|
|
81
81
|
getUserAttributes: () => lr()
|
|
@@ -94,11 +94,11 @@ const ho = () => {
|
|
|
94
94
|
builder: t,
|
|
95
95
|
context: n,
|
|
96
96
|
event: r,
|
|
97
|
-
state:
|
|
97
|
+
state: bo(s, o, a)
|
|
98
98
|
});
|
|
99
99
|
return new Function(...u.map(([d]) => d), e)(...u.map(([, d]) => d));
|
|
100
100
|
};
|
|
101
|
-
function
|
|
101
|
+
function bo(e, t, n) {
|
|
102
102
|
if (e === t)
|
|
103
103
|
throw new Error("rootState === localState");
|
|
104
104
|
return new Proxy(e, {
|
|
@@ -116,7 +116,7 @@ const ur = (e, t, n) => {
|
|
|
116
116
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
117
117
|
return r.slice(0, -1).reduce((o, a, s) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
118
118
|
};
|
|
119
|
-
var N,
|
|
119
|
+
var N, xo = function(e) {
|
|
120
120
|
function t(i) {
|
|
121
121
|
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && zr.test(String.fromCharCode(i));
|
|
122
122
|
}
|
|
@@ -149,7 +149,7 @@ var N, bo = function(e) {
|
|
|
149
149
|
this.line = we, this.ab = f - oe;
|
|
150
150
|
}
|
|
151
151
|
function s(i, l) {
|
|
152
|
-
Ce = f, O.C && (
|
|
152
|
+
Ce = f, O.C && (Et = new a()), I = i, d(), Q = l, Ue = i.m;
|
|
153
153
|
}
|
|
154
154
|
function u() {
|
|
155
155
|
for (var i = f, l = O.va && O.C && new a(), c = m.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
@@ -187,10 +187,10 @@ var N, bo = function(e) {
|
|
|
187
187
|
break;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function C(i) {
|
|
191
191
|
switch (i) {
|
|
192
192
|
case 46:
|
|
193
|
-
i = m.charCodeAt(f + 1), 48 <= i && 57 >= i ?
|
|
193
|
+
i = m.charCodeAt(f + 1), 48 <= i && 57 >= i ? E(!0) : (++f, s(Nn));
|
|
194
194
|
return;
|
|
195
195
|
case 40:
|
|
196
196
|
return ++f, s(ie);
|
|
@@ -203,7 +203,7 @@ var N, bo = function(e) {
|
|
|
203
203
|
case 91:
|
|
204
204
|
return ++f, s(Mt);
|
|
205
205
|
case 93:
|
|
206
|
-
return ++f, s(
|
|
206
|
+
return ++f, s(Ut);
|
|
207
207
|
case 123:
|
|
208
208
|
return ++f, s(_e);
|
|
209
209
|
case 125:
|
|
@@ -211,7 +211,7 @@ var N, bo = function(e) {
|
|
|
211
211
|
case 58:
|
|
212
212
|
return ++f, s(De);
|
|
213
213
|
case 63:
|
|
214
|
-
return ++f, s(
|
|
214
|
+
return ++f, s(Bn);
|
|
215
215
|
case 48:
|
|
216
216
|
if (i = m.charCodeAt(f + 1), i === 120 || i === 88) {
|
|
217
217
|
f += 2, i = j(16), i === null && r(_ + 2, "Expected hexadecimal number"), n(m.charCodeAt(f)) && r(f, "Identifier directly after number"), s(Ve, i);
|
|
@@ -226,7 +226,7 @@ var N, bo = function(e) {
|
|
|
226
226
|
case 55:
|
|
227
227
|
case 56:
|
|
228
228
|
case 57:
|
|
229
|
-
return
|
|
229
|
+
return E(!1);
|
|
230
230
|
case 34:
|
|
231
231
|
case 39:
|
|
232
232
|
f++;
|
|
@@ -254,13 +254,13 @@ var N, bo = function(e) {
|
|
|
254
254
|
l += "\r";
|
|
255
255
|
break;
|
|
256
256
|
case 120:
|
|
257
|
-
l += String.fromCharCode(
|
|
257
|
+
l += String.fromCharCode(x(2));
|
|
258
258
|
break;
|
|
259
259
|
case 117:
|
|
260
|
-
l += String.fromCharCode(
|
|
260
|
+
l += String.fromCharCode(x(4));
|
|
261
261
|
break;
|
|
262
262
|
case 85:
|
|
263
|
-
l += String.fromCharCode(
|
|
263
|
+
l += String.fromCharCode(x(8));
|
|
264
264
|
break;
|
|
265
265
|
case 116:
|
|
266
266
|
l += " ";
|
|
@@ -290,50 +290,50 @@ var N, bo = function(e) {
|
|
|
290
290
|
}
|
|
291
291
|
return;
|
|
292
292
|
case 47:
|
|
293
|
-
i = m.charCodeAt(f + 1), Ue ? (++f, P()) : i === 61 ?
|
|
293
|
+
i = m.charCodeAt(f + 1), Ue ? (++f, P()) : i === 61 ? S(Se, 2) : S(Mn, 1);
|
|
294
294
|
return;
|
|
295
295
|
case 37:
|
|
296
296
|
case 42:
|
|
297
|
-
m.charCodeAt(f + 1) === 61 ?
|
|
297
|
+
m.charCodeAt(f + 1) === 61 ? S(Se, 2) : S(Gr, 1);
|
|
298
298
|
return;
|
|
299
299
|
case 124:
|
|
300
300
|
case 38:
|
|
301
|
-
l = m.charCodeAt(f + 1), l === i ?
|
|
301
|
+
l = m.charCodeAt(f + 1), l === i ? S(i === 124 ? Vn : _n, 2) : l === 61 ? S(Se, 2) : S(i === 124 ? _r : Lr, 1);
|
|
302
302
|
return;
|
|
303
303
|
case 94:
|
|
304
|
-
m.charCodeAt(f + 1) === 61 ?
|
|
304
|
+
m.charCodeAt(f + 1) === 61 ? S(Se, 2) : S(Dr, 1);
|
|
305
305
|
return;
|
|
306
306
|
case 43:
|
|
307
307
|
case 45:
|
|
308
|
-
l = m.charCodeAt(f + 1), l === i ? l === 45 && m.charCodeAt(f + 2) === 62 && ot.test(m.slice(me, f)) ? (f += 3, u(), d(),
|
|
308
|
+
l = m.charCodeAt(f + 1), l === i ? l === 45 && m.charCodeAt(f + 2) === 62 && ot.test(m.slice(me, f)) ? (f += 3, u(), d(), w()) : S(Vr, 2) : l === 61 ? S(Se, 2) : S(Kr, 1);
|
|
309
309
|
return;
|
|
310
310
|
case 60:
|
|
311
311
|
case 62:
|
|
312
|
-
l = m.charCodeAt(f + 1), c = 1, l === i ? (c = i === 62 && m.charCodeAt(f + 2) === 62 ? 3 : 2, m.charCodeAt(f + c) === 61 ?
|
|
312
|
+
l = m.charCodeAt(f + 1), c = 1, l === i ? (c = i === 62 && m.charCodeAt(f + 2) === 62 ? 3 : 2, m.charCodeAt(f + c) === 61 ? S(Se, c + 1) : S(Hr, c)) : l === 33 && i === 60 && m.charCodeAt(f + 2) === 45 && m.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), w()) : (l === 61 && (c = m.charCodeAt(f + 2) === 61 ? 3 : 2), S($r, c));
|
|
313
313
|
return;
|
|
314
314
|
case 61:
|
|
315
315
|
case 33:
|
|
316
|
-
m.charCodeAt(f + 1) === 61 ?
|
|
316
|
+
m.charCodeAt(f + 1) === 61 ? S(Wr, m.charCodeAt(f + 2) === 61 ? 3 : 2) : S(i === 61 ? Un : Fn, 1);
|
|
317
317
|
return;
|
|
318
318
|
case 126:
|
|
319
|
-
return
|
|
319
|
+
return S(Fn, 1);
|
|
320
320
|
}
|
|
321
321
|
return !1;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
if (i ? f = _ + 1 : _ = f, O.C && (
|
|
323
|
+
function w(i) {
|
|
324
|
+
if (i ? f = _ + 1 : _ = f, O.C && (Ct = new a()), i)
|
|
325
325
|
return P();
|
|
326
326
|
if (f >= ke)
|
|
327
|
-
return s(
|
|
327
|
+
return s(At);
|
|
328
328
|
if (i = m.charCodeAt(f), n(i) || i === 92)
|
|
329
329
|
return $();
|
|
330
|
-
if (
|
|
330
|
+
if (C(i) === !1) {
|
|
331
331
|
if (i = String.fromCharCode(i), i === "\\" || Ln.test(i))
|
|
332
332
|
return $();
|
|
333
333
|
r(f, "Unexpected character '" + i + "'");
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function S(i, l) {
|
|
337
337
|
var c = m.slice(f, f + l);
|
|
338
338
|
f += l, s(i, c);
|
|
339
339
|
}
|
|
@@ -354,7 +354,7 @@ var N, bo = function(e) {
|
|
|
354
354
|
}
|
|
355
355
|
++f;
|
|
356
356
|
}
|
|
357
|
-
i = m.slice(c, f), ++f, (l =
|
|
357
|
+
i = m.slice(c, f), ++f, (l = B()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
358
358
|
try {
|
|
359
359
|
var T = new RegExp(i, l);
|
|
360
360
|
} catch (L) {
|
|
@@ -371,23 +371,23 @@ var N, bo = function(e) {
|
|
|
371
371
|
}
|
|
372
372
|
return f === c || l !== void 0 && f - c !== l ? null : p;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function E(i) {
|
|
375
375
|
var l = f, c = !1, p = m.charCodeAt(f) === 48;
|
|
376
376
|
i || j(10) !== null || r(l, "Invalid number"), m.charCodeAt(f) === 46 && (++f, j(10), c = !0), i = m.charCodeAt(f), (i === 69 || i === 101) && (i = m.charCodeAt(++f), i !== 43 && i !== 45 || ++f, j(10) === null && r(l, "Invalid number"), c = !0), n(m.charCodeAt(f)) && r(f, "Identifier directly after number"), i = m.slice(l, f);
|
|
377
377
|
var T;
|
|
378
378
|
c ? T = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || z ? r(l, "Invalid number") : T = parseInt(i, 8) : T = parseInt(i, 10), s(Ve, T);
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function x(i) {
|
|
381
381
|
return i = j(16, i), i === null && r(_, "Bad character escape sequence"), i;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function B() {
|
|
384
384
|
Te = !1;
|
|
385
385
|
for (var i, l = !0, c = f; ; ) {
|
|
386
386
|
var p = m.charCodeAt(f);
|
|
387
387
|
if (t(p))
|
|
388
388
|
Te && (i += m.charAt(f)), ++f;
|
|
389
389
|
else if (p === 92) {
|
|
390
|
-
Te || (i = m.slice(c, f)), Te = !0, m.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, p =
|
|
390
|
+
Te || (i = m.slice(c, f)), Te = !0, m.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, p = x(4);
|
|
391
391
|
var T = String.fromCharCode(p);
|
|
392
392
|
T || r(f - 1, "Invalid Unicode escape"), (l ? n(p) : t(p)) || r(f - 4, "Invalid Unicode escape"), i += T;
|
|
393
393
|
} else
|
|
@@ -397,26 +397,26 @@ var N, bo = function(e) {
|
|
|
397
397
|
return Te ? i : m.slice(c, f);
|
|
398
398
|
}
|
|
399
399
|
function $() {
|
|
400
|
-
var i =
|
|
400
|
+
var i = B(), l = Ee;
|
|
401
401
|
!Te && Yr(i) && (l = Fr[i]), s(l, i);
|
|
402
402
|
}
|
|
403
403
|
function g() {
|
|
404
|
-
|
|
404
|
+
It = _, me = Ce, Tt = Et, w();
|
|
405
405
|
}
|
|
406
406
|
function pe(i) {
|
|
407
407
|
if (z = i, f = _, O.C)
|
|
408
408
|
for (; f < oe; )
|
|
409
409
|
oe = m.lastIndexOf(`
|
|
410
410
|
`, oe - 2) + 1, --we;
|
|
411
|
-
d(),
|
|
411
|
+
d(), w();
|
|
412
412
|
}
|
|
413
413
|
function de() {
|
|
414
414
|
this.type = null, this.start = _, this.end = null;
|
|
415
415
|
}
|
|
416
416
|
function Z() {
|
|
417
|
-
this.start =
|
|
417
|
+
this.start = Ct, this.end = null, kt && (this.source = kt);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function M() {
|
|
420
420
|
var i = new de();
|
|
421
421
|
return O.C && (i.X = new Z()), O.vb && (i.sourceFile = O.vb), O.Xa && (i.j = [_, 0]), i;
|
|
422
422
|
}
|
|
@@ -425,18 +425,18 @@ var N, bo = function(e) {
|
|
|
425
425
|
return l.start = i.start, O.C && (l.X = new Z(), l.X.start = i.X.start), O.Xa && (l.j = [i.j[0], 0]), l;
|
|
426
426
|
}
|
|
427
427
|
function A(i, l) {
|
|
428
|
-
return i.type = l, i.end = me, O.C && (i.X.end =
|
|
428
|
+
return i.type = l, i.end = me, O.C && (i.X.end = Tt), O.Xa && (i.j[1] = me), i;
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function gt(i) {
|
|
431
431
|
return i.type === "ExpressionStatement" && i.la.type === "Literal" && i.la.value === "use strict";
|
|
432
432
|
}
|
|
433
433
|
function U(i) {
|
|
434
434
|
return I === i ? (g(), !0) : !1;
|
|
435
435
|
}
|
|
436
436
|
function Ze() {
|
|
437
|
-
return !O.fc && (I ===
|
|
437
|
+
return !O.fc && (I === At || I === Ie || ot.test(m.slice(me, _)));
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function xe() {
|
|
440
440
|
U(ae) || Ze() || ne();
|
|
441
441
|
}
|
|
442
442
|
function F(i) {
|
|
@@ -449,14 +449,14 @@ var N, bo = function(e) {
|
|
|
449
449
|
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), z && i.type === "Identifier" && rt(i.name) && r(i.start, "Assigning to " + i.name + " in strict mode");
|
|
450
450
|
}
|
|
451
451
|
function ee() {
|
|
452
|
-
(I ===
|
|
453
|
-
var i = I, l =
|
|
452
|
+
(I === Mn || I === Se && Q === "/=") && w(!0);
|
|
453
|
+
var i = I, l = M();
|
|
454
454
|
switch (i) {
|
|
455
|
-
case
|
|
455
|
+
case Ot:
|
|
456
456
|
case gn:
|
|
457
457
|
g();
|
|
458
|
-
var c = i ===
|
|
459
|
-
U(ae) || Ze() ? l.label = null : I !== Ee ? ne() : (l.label = re(),
|
|
458
|
+
var c = i === Ot;
|
|
459
|
+
U(ae) || Ze() ? l.label = null : I !== Ee ? ne() : (l.label = re(), xe());
|
|
460
460
|
for (var p = 0; p < V.length; ++p) {
|
|
461
461
|
var T = V[p];
|
|
462
462
|
if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (c || T.kind === "loop") || l.label && c))
|
|
@@ -464,33 +464,33 @@ var N, bo = function(e) {
|
|
|
464
464
|
}
|
|
465
465
|
return p === V.length && r(l.start, "Unsyntactic " + i.l), A(l, c ? "BreakStatement" : "ContinueStatement");
|
|
466
466
|
case yn:
|
|
467
|
-
return g(),
|
|
468
|
-
case
|
|
469
|
-
return g(), V.push(
|
|
467
|
+
return g(), xe(), A(l, "DebuggerStatement");
|
|
468
|
+
case bn:
|
|
469
|
+
return g(), V.push(Ft), l.body = ee(), V.pop(), F(Bt), l.test = Ne(), xe(), A(l, "DoWhileStatement");
|
|
470
470
|
case Sn:
|
|
471
|
-
return g(), V.push(
|
|
472
|
-
case
|
|
473
|
-
return g(),
|
|
471
|
+
return g(), V.push(Ft), F(ie), I === ae ? yt(l, null) : I === Nt ? (i = M(), g(), pn(i, !0), A(i, "VariableDeclaration"), i.fa.length === 1 && U(nt) ? fn(l, i) : yt(l, i)) : (i = K(!1, !0), U(nt) ? (Qe(i), fn(l, i)) : yt(l, i));
|
|
472
|
+
case Rt:
|
|
473
|
+
return g(), wt(l, !0);
|
|
474
474
|
case kn:
|
|
475
|
-
return g(), l.test = Ne(), l.da = ee(), l.alternate = U(
|
|
475
|
+
return g(), l.test = Ne(), l.da = ee(), l.alternate = U(xn) ? ee() : null, A(l, "IfStatement");
|
|
476
476
|
case Cn:
|
|
477
|
-
return Fe || O.Ib || r(_, "'return' outside of function"), g(), U(ae) || Ze() ? l.K = null : (l.K = K(),
|
|
478
|
-
case
|
|
477
|
+
return Fe || O.Ib || r(_, "'return' outside of function"), g(), U(ae) || Ze() ? l.K = null : (l.K = K(), xe()), A(l, "ReturnStatement");
|
|
478
|
+
case Pt:
|
|
479
479
|
for (g(), l.Qb = Ne(), l.tb = [], F(_e), V.push(qr); I !== Ie; )
|
|
480
|
-
I ===
|
|
480
|
+
I === jt || I === vn ? (i = I === jt, p && A(p, "SwitchCase"), l.tb.push(p = M()), p.da = [], g(), i ? p.test = K() : (c && r(It, "Multiple default clauses"), c = !0, p.test = null), F(De)) : (p || ne(), p.da.push(ee()));
|
|
481
481
|
return p && A(p, "SwitchCase"), g(), V.pop(), A(l, "SwitchStatement");
|
|
482
482
|
case En:
|
|
483
|
-
return g(), ot.test(m.slice(me, _)) && r(me, "Illegal newline after throw"), l.K = K(),
|
|
483
|
+
return g(), ot.test(m.slice(me, _)) && r(me, "Illegal newline after throw"), l.K = K(), xe(), A(l, "ThrowStatement");
|
|
484
484
|
case In:
|
|
485
|
-
return g(), l.block =
|
|
486
|
-
case Pt:
|
|
487
|
-
return g(), pn(l), be(), A(l, "VariableDeclaration");
|
|
485
|
+
return g(), l.block = Be(), l.Ea = null, I === mn && (i = M(), g(), F(ie), i.Ua = re(), z && rt(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), F(te), i.body = Be(), l.Ea = A(i, "CatchClause")), l.fb = U(wn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
|
|
488
486
|
case Nt:
|
|
489
|
-
return g(),
|
|
487
|
+
return g(), pn(l), xe(), A(l, "VariableDeclaration");
|
|
488
|
+
case Bt:
|
|
489
|
+
return g(), l.test = Ne(), V.push(Ft), l.body = ee(), V.pop(), A(l, "WhileStatement");
|
|
490
490
|
case Tn:
|
|
491
491
|
return z && r(_, "'with' in strict mode"), g(), l.object = Ne(), l.body = ee(), A(l, "WithStatement");
|
|
492
492
|
case _e:
|
|
493
|
-
return
|
|
493
|
+
return Be();
|
|
494
494
|
case ae:
|
|
495
495
|
return g(), A(l, "EmptyStatement");
|
|
496
496
|
default:
|
|
@@ -499,10 +499,10 @@ var N, bo = function(e) {
|
|
|
499
499
|
V[p].name === c && r(T.start, "Label '" + c + "' is already declared");
|
|
500
500
|
return V.push({
|
|
501
501
|
name: c,
|
|
502
|
-
kind: I.W ? "loop" : I ===
|
|
502
|
+
kind: I.W ? "loop" : I === Pt ? "switch" : null
|
|
503
503
|
}), l.body = ee(), V.pop(), l.label = T, A(l, "LabeledStatement");
|
|
504
504
|
}
|
|
505
|
-
return l.la = T,
|
|
505
|
+
return l.la = T, xe(), A(l, "ExpressionStatement");
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
function Ne() {
|
|
@@ -510,11 +510,11 @@ var N, bo = function(e) {
|
|
|
510
510
|
var i = K();
|
|
511
511
|
return F(te), i;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
var l =
|
|
513
|
+
function Be(i) {
|
|
514
|
+
var l = M(), c = !0, p = !1;
|
|
515
515
|
for (l.body = [], F(_e); !U(Ie); ) {
|
|
516
516
|
var T = ee();
|
|
517
|
-
if (l.body.push(T), c && i &&
|
|
517
|
+
if (l.body.push(T), c && i && gt(T)) {
|
|
518
518
|
var L = p;
|
|
519
519
|
pe(p = !0);
|
|
520
520
|
}
|
|
@@ -522,7 +522,7 @@ var N, bo = function(e) {
|
|
|
522
522
|
}
|
|
523
523
|
return p && !L && pe(!1), A(l, "BlockStatement");
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function yt(i, l) {
|
|
526
526
|
return i.ua = l, F(ae), i.test = I === ae ? null : K(), F(ae), i.update = I === te ? null : K(), F(te), i.body = ee(), V.pop(), A(i, "ForStatement");
|
|
527
527
|
}
|
|
528
528
|
function fn(i, l) {
|
|
@@ -530,77 +530,77 @@ var N, bo = function(e) {
|
|
|
530
530
|
}
|
|
531
531
|
function pn(i, l) {
|
|
532
532
|
for (i.fa = [], i.kind = "var"; ; ) {
|
|
533
|
-
var c =
|
|
533
|
+
var c = M();
|
|
534
534
|
if (c.id = re(), z && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = U(Un) ? K(!0, l) : null, i.fa.push(A(c, "VariableDeclarator")), !U(ge))
|
|
535
535
|
break;
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
function K(i, l) {
|
|
539
|
-
var c =
|
|
539
|
+
var c = vt(l);
|
|
540
540
|
if (!i && I === ge) {
|
|
541
541
|
for (i = he(c), i.xb = [c]; U(ge); )
|
|
542
|
-
i.xb.push(
|
|
542
|
+
i.xb.push(vt(l));
|
|
543
543
|
return A(i, "SequenceExpression");
|
|
544
544
|
}
|
|
545
545
|
return c;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
548
|
-
var l =
|
|
549
|
-
if (U(
|
|
547
|
+
function vt(i) {
|
|
548
|
+
var l = bt(xt(), -1, i);
|
|
549
|
+
if (U(Bn)) {
|
|
550
550
|
var c = he(l);
|
|
551
551
|
c.test = l, c.da = K(!0), F(De), c.alternate = K(!0, i), l = A(c, "ConditionalExpression");
|
|
552
552
|
}
|
|
553
|
-
return I.Cb ? (c = he(l), c.operator = Q, c.left = l, g(), c.right =
|
|
553
|
+
return I.Cb ? (c = he(l), c.operator = Q, c.left = l, g(), c.right = vt(i), Qe(l), A(c, "AssignmentExpression")) : l;
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function bt(i, l, c) {
|
|
556
556
|
var p = I.L;
|
|
557
557
|
if (p !== null && (!c || I !== nt) && p > l) {
|
|
558
558
|
var T = he(i);
|
|
559
|
-
return T.left = i, T.operator = Q, i = I, g(), T.right =
|
|
559
|
+
return T.left = i, T.operator = Q, i = I, g(), T.right = bt(xt(), p, c), p = A(T, i === Vn || i === _n ? "LogicalExpression" : "BinaryExpression"), bt(p, l, c);
|
|
560
560
|
}
|
|
561
561
|
return i;
|
|
562
562
|
}
|
|
563
563
|
function xt() {
|
|
564
564
|
if (I.prefix) {
|
|
565
|
-
var i =
|
|
565
|
+
var i = M(), l = I.$b;
|
|
566
566
|
return i.operator = Q, Ue = i.prefix = !0, g(), i.K = xt(), l ? Qe(i.K) : z && i.operator === "delete" && i.K.type === "Identifier" && r(i.start, "Deleting local variable in strict mode"), A(i, l ? "UpdateExpression" : "UnaryExpression");
|
|
567
567
|
}
|
|
568
|
-
for (l =
|
|
568
|
+
for (l = Me(et()); I.cc && !Ze(); )
|
|
569
569
|
i = he(l), i.operator = Q, i.prefix = !1, i.K = l, Qe(l), g(), l = A(i, "UpdateExpression");
|
|
570
570
|
return l;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function Me(i, l) {
|
|
573
573
|
if (U(Nn)) {
|
|
574
574
|
var c = he(i);
|
|
575
|
-
return c.object = i, c.Wa = re(!0), c.bb = !1,
|
|
575
|
+
return c.object = i, c.Wa = re(!0), c.bb = !1, Me(A(c, "MemberExpression"), l);
|
|
576
576
|
}
|
|
577
|
-
return U(Mt) ? (c = he(i), c.object = i, c.Wa = K(), c.bb = !0, F(
|
|
577
|
+
return U(Mt) ? (c = he(i), c.object = i, c.Wa = K(), c.bb = !0, F(Ut), Me(A(c, "MemberExpression"), l)) : !l && U(ie) ? (c = he(i), c.callee = i, c.arguments = St(te, !1), Me(A(c, "CallExpression"), l)) : i;
|
|
578
578
|
}
|
|
579
579
|
function et() {
|
|
580
580
|
switch (I) {
|
|
581
581
|
case On:
|
|
582
|
-
var i =
|
|
582
|
+
var i = M();
|
|
583
583
|
return g(), A(i, "ThisExpression");
|
|
584
584
|
case Ee:
|
|
585
585
|
return re();
|
|
586
586
|
case Ve:
|
|
587
587
|
case tt:
|
|
588
588
|
case hn:
|
|
589
|
-
return i =
|
|
589
|
+
return i = M(), i.value = Q, i.raw = m.slice(_, Ce), g(), A(i, "Literal");
|
|
590
590
|
case jn:
|
|
591
591
|
case Rn:
|
|
592
592
|
case Pn:
|
|
593
|
-
return i =
|
|
593
|
+
return i = M(), i.value = I.$a, i.raw = I.l, g(), A(i, "Literal");
|
|
594
594
|
case ie:
|
|
595
|
-
i =
|
|
595
|
+
i = Ct;
|
|
596
596
|
var l = _;
|
|
597
597
|
g();
|
|
598
598
|
var c = K();
|
|
599
|
-
return c.start = l, c.end = Ce, O.C && (c.X.start = i, c.X.end =
|
|
599
|
+
return c.start = l, c.end = Ce, O.C && (c.X.start = i, c.X.end = Et), O.Xa && (c.j = [l, Ce]), F(te), c;
|
|
600
600
|
case Mt:
|
|
601
|
-
return i =
|
|
601
|
+
return i = M(), g(), i.elements = St(Ut, !0, !0), A(i, "ArrayExpression");
|
|
602
602
|
case _e:
|
|
603
|
-
for (i =
|
|
603
|
+
for (i = M(), l = !0, c = !1, i.h = [], g(); !U(Ie); ) {
|
|
604
604
|
if (l)
|
|
605
605
|
l = !1;
|
|
606
606
|
else if (F(ge), O.sb && U(Ie))
|
|
@@ -612,33 +612,33 @@ var N, bo = function(e) {
|
|
|
612
612
|
p.value = K(!0);
|
|
613
613
|
var L = p.kind = "init";
|
|
614
614
|
} else
|
|
615
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ne() : (T = c = !0, L = p.kind = p.key.name, p.key = I === Ve || I === tt ? et() : re(!0), I !== ie && ne(), p.value =
|
|
615
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ne() : (T = c = !0, L = p.kind = p.key.name, p.key = I === Ve || I === tt ? et() : re(!0), I !== ie && ne(), p.value = wt(M(), !1));
|
|
616
616
|
if (p.key.type === "Identifier" && (z || c))
|
|
617
617
|
for (var X = 0; X < i.h.length; ++X) {
|
|
618
618
|
var Ae = i.h[X];
|
|
619
619
|
if (Ae.key.name === p.key.name) {
|
|
620
|
-
var
|
|
621
|
-
|
|
620
|
+
var Vt = L === Ae.kind || T && Ae.kind === "init" || L === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
621
|
+
Vt && !z && L === "init" && Ae.kind === "init" && (Vt = !1), Vt && r(p.key.start, "Redefinition of property");
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
i.h.push(p);
|
|
625
625
|
}
|
|
626
626
|
return A(i, "ObjectExpression");
|
|
627
|
-
case
|
|
628
|
-
return i =
|
|
627
|
+
case Rt:
|
|
628
|
+
return i = M(), g(), wt(i, !1);
|
|
629
629
|
case An:
|
|
630
|
-
return i =
|
|
630
|
+
return i = M(), g(), i.callee = Me(et(), !0), i.arguments = U(ie) ? St(te, !1) : Ur, A(i, "NewExpression");
|
|
631
631
|
}
|
|
632
632
|
ne();
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function wt(i, l) {
|
|
635
635
|
I === Ee ? i.id = re() : l ? ne() : i.id = null, i.oa = [];
|
|
636
636
|
var c = !0;
|
|
637
637
|
for (F(ie); !U(te); )
|
|
638
638
|
c ? c = !1 : F(ge), i.oa.push(re());
|
|
639
639
|
c = Fe;
|
|
640
640
|
var p = V;
|
|
641
|
-
if (Fe = !0, V = [], i.body =
|
|
641
|
+
if (Fe = !0, V = [], i.body = Be(!0), Fe = c, V = p, z || i.body.body.length && gt(i.body.body[0])) {
|
|
642
642
|
for (c = i.id ? -1 : 0; c < i.oa.length; ++c)
|
|
643
643
|
if (p = 0 > c ? i.id : i.oa[c], (Dn(p.name) || rt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= c)
|
|
644
644
|
for (var T = 0; T < c; ++T)
|
|
@@ -646,7 +646,7 @@ var N, bo = function(e) {
|
|
|
646
646
|
}
|
|
647
647
|
return A(i, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function St(i, l, c) {
|
|
650
650
|
for (var p = [], T = !0; !U(i); ) {
|
|
651
651
|
if (T)
|
|
652
652
|
T = !1;
|
|
@@ -657,17 +657,17 @@ var N, bo = function(e) {
|
|
|
657
657
|
return p;
|
|
658
658
|
}
|
|
659
659
|
function re(i) {
|
|
660
|
-
var l =
|
|
660
|
+
var l = M();
|
|
661
661
|
return i && O.yb === "everywhere" && (i = !1), I === Ee ? (!i && (O.yb && Xr(Q) || z && Dn(Q)) && m.slice(_, Ce).indexOf("\\") === -1 && r(_, "The keyword '" + Q + "' is reserved"), l.name = Q) : i && I.l ? l.name = I.l : ne(), Ue = !1, g(), A(l, "Identifier");
|
|
662
662
|
}
|
|
663
663
|
e.version = "0.5.0";
|
|
664
|
-
var O, m = "", ke,
|
|
664
|
+
var O, m = "", ke, kt;
|
|
665
665
|
e.parse = function(i, l) {
|
|
666
666
|
m = String(i), ke = m.length, O = l || {};
|
|
667
667
|
for (var c in dn)
|
|
668
668
|
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = dn[c]);
|
|
669
|
-
for (
|
|
670
|
-
c = ee(), i.body.push(c), l &&
|
|
669
|
+
for (kt = O.sourceFile, we = 1, f = oe = 0, Ue = !0, d(), c = O.dc, It = me = f, O.C && (Tt = new a()), Fe = z = !1, V = [], w(), i = c || M(), l = !0, c || (i.body = []); I !== At; )
|
|
670
|
+
c = ee(), i.body.push(c), l && gt(c) && pe(!0), l = !1;
|
|
671
671
|
return A(i, "Program");
|
|
672
672
|
};
|
|
673
673
|
var dn = {
|
|
@@ -681,7 +681,7 @@ var N, bo = function(e) {
|
|
|
681
681
|
dc: null,
|
|
682
682
|
sourceFile: null,
|
|
683
683
|
vb: null
|
|
684
|
-
}, f = 0, _ = 0, Ce = 0,
|
|
684
|
+
}, f = 0, _ = 0, Ce = 0, Ct, Et, I, Q, Ue, we, oe, It = 0, me = 0, Tt, Fe, V, z, Ur = [], Ve = {
|
|
685
685
|
type: "num"
|
|
686
686
|
}, hn = {
|
|
687
687
|
type: "regexp"
|
|
@@ -689,11 +689,11 @@ var N, bo = function(e) {
|
|
|
689
689
|
type: "string"
|
|
690
690
|
}, Ee = {
|
|
691
691
|
type: "name"
|
|
692
|
-
}, Tt = {
|
|
693
|
-
type: "eof"
|
|
694
692
|
}, At = {
|
|
695
|
-
|
|
693
|
+
type: "eof"
|
|
696
694
|
}, Ot = {
|
|
695
|
+
l: "break"
|
|
696
|
+
}, jt = {
|
|
697
697
|
l: "case",
|
|
698
698
|
m: !0
|
|
699
699
|
}, mn = {
|
|
@@ -704,10 +704,10 @@ var N, bo = function(e) {
|
|
|
704
704
|
l: "debugger"
|
|
705
705
|
}, vn = {
|
|
706
706
|
l: "default"
|
|
707
|
-
},
|
|
707
|
+
}, bn = {
|
|
708
708
|
l: "do",
|
|
709
709
|
W: !0
|
|
710
|
-
},
|
|
710
|
+
}, xn = {
|
|
711
711
|
l: "else",
|
|
712
712
|
m: !0
|
|
713
713
|
}, wn = {
|
|
@@ -715,23 +715,23 @@ var N, bo = function(e) {
|
|
|
715
715
|
}, Sn = {
|
|
716
716
|
l: "for",
|
|
717
717
|
W: !0
|
|
718
|
-
},
|
|
718
|
+
}, Rt = {
|
|
719
719
|
l: "function"
|
|
720
720
|
}, kn = {
|
|
721
721
|
l: "if"
|
|
722
722
|
}, Cn = {
|
|
723
723
|
l: "return",
|
|
724
724
|
m: !0
|
|
725
|
-
},
|
|
725
|
+
}, Pt = {
|
|
726
726
|
l: "switch"
|
|
727
727
|
}, En = {
|
|
728
728
|
l: "throw",
|
|
729
729
|
m: !0
|
|
730
730
|
}, In = {
|
|
731
731
|
l: "try"
|
|
732
|
-
}, Pt = {
|
|
733
|
-
l: "var"
|
|
734
732
|
}, Nt = {
|
|
733
|
+
l: "var"
|
|
734
|
+
}, Bt = {
|
|
735
735
|
l: "while",
|
|
736
736
|
W: !0
|
|
737
737
|
}, Tn = {
|
|
@@ -755,24 +755,24 @@ var N, bo = function(e) {
|
|
|
755
755
|
L: 7,
|
|
756
756
|
m: !0
|
|
757
757
|
}, Fr = {
|
|
758
|
-
break:
|
|
759
|
-
case:
|
|
758
|
+
break: Ot,
|
|
759
|
+
case: jt,
|
|
760
760
|
catch: mn,
|
|
761
761
|
continue: gn,
|
|
762
762
|
debugger: yn,
|
|
763
763
|
default: vn,
|
|
764
|
-
do:
|
|
765
|
-
else:
|
|
764
|
+
do: bn,
|
|
765
|
+
else: xn,
|
|
766
766
|
finally: wn,
|
|
767
767
|
for: Sn,
|
|
768
|
-
function:
|
|
768
|
+
function: Rt,
|
|
769
769
|
if: kn,
|
|
770
770
|
return: Cn,
|
|
771
|
-
switch:
|
|
771
|
+
switch: Pt,
|
|
772
772
|
throw: En,
|
|
773
773
|
try: In,
|
|
774
|
-
var:
|
|
775
|
-
while:
|
|
774
|
+
var: Nt,
|
|
775
|
+
while: Bt,
|
|
776
776
|
with: Tn,
|
|
777
777
|
null: jn,
|
|
778
778
|
true: Rn,
|
|
@@ -803,7 +803,7 @@ var N, bo = function(e) {
|
|
|
803
803
|
}, Mt = {
|
|
804
804
|
type: "[",
|
|
805
805
|
m: !0
|
|
806
|
-
},
|
|
806
|
+
}, Ut = {
|
|
807
807
|
type: "]"
|
|
808
808
|
}, _e = {
|
|
809
809
|
type: "{",
|
|
@@ -826,10 +826,10 @@ var N, bo = function(e) {
|
|
|
826
826
|
m: !0
|
|
827
827
|
}, Nn = {
|
|
828
828
|
type: "."
|
|
829
|
-
},
|
|
829
|
+
}, Bn = {
|
|
830
830
|
type: "?",
|
|
831
831
|
m: !0
|
|
832
|
-
},
|
|
832
|
+
}, Mn = {
|
|
833
833
|
L: 10,
|
|
834
834
|
m: !0
|
|
835
835
|
}, Un = {
|
|
@@ -876,13 +876,13 @@ var N, bo = function(e) {
|
|
|
876
876
|
}, Gr = {
|
|
877
877
|
L: 10,
|
|
878
878
|
m: !0
|
|
879
|
-
}, Xr = o("class enum extends super const export import"), Dn = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), Yr = 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"), Jr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ln = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), zr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ot = /[\n\r\u2028\u2029]/, it = /\r\n|[\n\r\u2028\u2029]/g, Te,
|
|
879
|
+
}, Xr = o("class enum extends super const export import"), Dn = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), Yr = 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"), Jr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ln = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), zr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ot = /[\n\r\u2028\u2029]/, it = /\r\n|[\n\r\u2028\u2029]/g, Te, Ft = {
|
|
880
880
|
kind: "loop"
|
|
881
881
|
}, qr = {
|
|
882
882
|
kind: "switch"
|
|
883
883
|
};
|
|
884
|
-
},
|
|
885
|
-
|
|
884
|
+
}, Wt = Wt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
885
|
+
xo(Wt.j || (Wt.j = {}));
|
|
886
886
|
function h(e, t) {
|
|
887
887
|
typeof e == "string" && (e = je(e, "code"));
|
|
888
888
|
var n = e.constructor;
|
|
@@ -898,13 +898,13 @@ function h(e, t) {
|
|
|
898
898
|
var a, s;
|
|
899
899
|
for (s in this)
|
|
900
900
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
901
|
-
this.N =
|
|
901
|
+
this.N = Ht(this, this.ra, null), this.Na = this.N.object, this.ra = je(this.ba.join(`
|
|
902
902
|
`), "polyfills"), this.ba = void 0, ut(this.ra), a = new v(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = r, a = new v(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
903
903
|
}
|
|
904
904
|
var $n = {
|
|
905
905
|
C: !0,
|
|
906
906
|
kc: 5
|
|
907
|
-
},
|
|
907
|
+
}, Jt = {
|
|
908
908
|
configurable: !0,
|
|
909
909
|
enumerable: !0,
|
|
910
910
|
writable: !1
|
|
@@ -933,7 +933,7 @@ var $n = {
|
|
|
933
933
|
}, Oe = {
|
|
934
934
|
REGEXP_TIMEOUT: !0
|
|
935
935
|
}, Kn = [], le = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis, wo = ["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();", "};"];
|
|
936
|
-
function
|
|
936
|
+
function zt(e) {
|
|
937
937
|
var t = e >>> 0;
|
|
938
938
|
return t === Number(e) ? t : NaN;
|
|
939
939
|
}
|
|
@@ -1015,7 +1015,7 @@ N.Eb = function() {
|
|
|
1015
1015
|
return this.za;
|
|
1016
1016
|
};
|
|
1017
1017
|
function So(e, t) {
|
|
1018
|
-
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t,
|
|
1018
|
+
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Jt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), ko(e, t), Co(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Eo(e, t), Io(e, t), To(e, t), Ao(e, t), Oo(e, t), jo(e, t), Ro(e, t), Po(e, t), No(e, t);
|
|
1019
1019
|
var n = e.i(function() {
|
|
1020
1020
|
throw EvalError("Can't happen");
|
|
1021
1021
|
}, !1);
|
|
@@ -1026,7 +1026,7 @@ function So(e, t) {
|
|
|
1026
1026
|
try {
|
|
1027
1027
|
return a(s);
|
|
1028
1028
|
} catch (u) {
|
|
1029
|
-
|
|
1029
|
+
b(e, e.Gb, u.message);
|
|
1030
1030
|
}
|
|
1031
1031
|
};
|
|
1032
1032
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), y);
|
|
@@ -1048,21 +1048,21 @@ function ko(e, t) {
|
|
|
1048
1048
|
s = s.split(/\s*,\s*/);
|
|
1049
1049
|
for (var u = 0; u < s.length; u++) {
|
|
1050
1050
|
var d = s[u];
|
|
1051
|
-
n.test(d) ||
|
|
1051
|
+
n.test(d) || b(e, e.T, "Invalid function argument: " + d);
|
|
1052
1052
|
}
|
|
1053
1053
|
s = s.join(", ");
|
|
1054
1054
|
}
|
|
1055
1055
|
try {
|
|
1056
|
-
var
|
|
1057
|
-
} catch (
|
|
1058
|
-
|
|
1056
|
+
var C = je("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1057
|
+
} catch (w) {
|
|
1058
|
+
b(e, e.T, "Invalid code: " + w.message);
|
|
1059
1059
|
}
|
|
1060
|
-
return
|
|
1060
|
+
return C.body.length !== 1 && b(e, e.T, "Invalid code in function body"), Qt(e, C.body[0].la, e.N, "anonymous");
|
|
1061
1061
|
};
|
|
1062
1062
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
|
|
1063
1063
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, J), e.Z.H = "Function", r = function(o, a) {
|
|
1064
1064
|
var s = e.o[e.o.length - 1];
|
|
1065
|
-
s.U = this, s.B = o, s.F = [], a != null && (a instanceof R ? s.F = pr(e, a) :
|
|
1065
|
+
s.U = this, s.B = o, s.F = [], a != null && (a instanceof R ? s.F = pr(e, a) : b(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1066
1066
|
}, W(e, e.O, "apply", r), r = function(o) {
|
|
1067
1067
|
var a = e.o[e.o.length - 1];
|
|
1068
1068
|
a.U = this, a.B = o, a.F = [];
|
|
@@ -1077,7 +1077,7 @@ function ko(e, t) {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
function Co(e, t) {
|
|
1079
1079
|
function n(o) {
|
|
1080
|
-
o != null ||
|
|
1080
|
+
o != null || b(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1081
1081
|
}
|
|
1082
1082
|
var r = function(o) {
|
|
1083
1083
|
if (o == null)
|
|
@@ -1093,11 +1093,11 @@ function Co(e, t) {
|
|
|
1093
1093
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(o) {
|
|
1094
1094
|
return n(o), o instanceof R && (o = o.h), se(e, Object.keys(o));
|
|
1095
1095
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1096
|
-
return o === null ? e.s(null) : (o instanceof R ||
|
|
1096
|
+
return o === null ? e.s(null) : (o instanceof R || b(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1097
1097
|
}, e.g(e.v, "create", e.i(r, !1), y), 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, a, s) {
|
|
1098
|
-
return a = String(a), o instanceof R ||
|
|
1098
|
+
return a = String(a), o instanceof R || b(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof R || b(e, e.j, "Property description must be an object"), !o.preventExtensions || a in o.h || b(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(o, a, Ye, s.h), o;
|
|
1099
1099
|
}, e.g(e.v, "defineProperty", e.i(r, !1), y), 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, a) {
|
|
1100
|
-
if (o instanceof R ||
|
|
1100
|
+
if (o instanceof R || b(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), a = String(a), a in o.h) {
|
|
1101
1101
|
var s = Object.getOwnPropertyDescriptor(o.h, a), u = o.V[a];
|
|
1102
1102
|
return o = o.Y[a], a = e.s(e.M), u || o ? (e.g(a, "get", u), e.g(a, "set", o)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1103
1103
|
}
|
|
@@ -1124,7 +1124,7 @@ function Eo(e, t) {
|
|
|
1124
1124
|
var n = function(r) {
|
|
1125
1125
|
var o = ue(e) ? this : Re(e), a = arguments[0];
|
|
1126
1126
|
if (arguments.length === 1 && typeof a == "number")
|
|
1127
|
-
isNaN(
|
|
1127
|
+
isNaN(zt(a)) && b(e, e.ob, "Invalid array length: " + a), o.h.length = a;
|
|
1128
1128
|
else {
|
|
1129
1129
|
for (a = 0; a < arguments.length; a++)
|
|
1130
1130
|
o.h[a] = arguments[a];
|
|
@@ -1151,7 +1151,7 @@ function Io(e, t) {
|
|
|
1151
1151
|
try {
|
|
1152
1152
|
return String(this).localeCompare(r, o, a);
|
|
1153
1153
|
} catch (s) {
|
|
1154
|
-
|
|
1154
|
+
b(e, e.D, "localeCompare: " + s.message);
|
|
1155
1155
|
}
|
|
1156
1156
|
}, W(e, e.J, "localeCompare", n), n = function(r, o, a) {
|
|
1157
1157
|
var s = String(this);
|
|
@@ -1164,8 +1164,8 @@ function Io(e, t) {
|
|
|
1164
1164
|
}, r, a), r !== Oe && a(se(e, r));
|
|
1165
1165
|
else {
|
|
1166
1166
|
var u = e.ha(), d = He(e, r, u, a);
|
|
1167
|
-
u.onmessage = function(
|
|
1168
|
-
clearTimeout(d), a(se(e,
|
|
1167
|
+
u.onmessage = function(C) {
|
|
1168
|
+
clearTimeout(d), a(se(e, C.data));
|
|
1169
1169
|
}, u.postMessage(["split", s, r, o]);
|
|
1170
1170
|
}
|
|
1171
1171
|
return;
|
|
@@ -1214,8 +1214,8 @@ function Io(e, t) {
|
|
|
1214
1214
|
}, r, a), r !== Oe && a(r);
|
|
1215
1215
|
else {
|
|
1216
1216
|
var u = e.ha(), d = He(e, r, u, a);
|
|
1217
|
-
u.onmessage = function(
|
|
1218
|
-
clearTimeout(d), a(
|
|
1217
|
+
u.onmessage = function(C) {
|
|
1218
|
+
clearTimeout(d), a(C.data);
|
|
1219
1219
|
}, u.postMessage(["replace", s, r, o]);
|
|
1220
1220
|
}
|
|
1221
1221
|
return;
|
|
@@ -1238,32 +1238,32 @@ function Ao(e, t) {
|
|
|
1238
1238
|
try {
|
|
1239
1239
|
return Number(this).toExponential(r);
|
|
1240
1240
|
} catch (o) {
|
|
1241
|
-
|
|
1241
|
+
b(e, e.D, o.message);
|
|
1242
1242
|
}
|
|
1243
1243
|
}, W(e, e.aa, "toExponential", n), n = function(r) {
|
|
1244
1244
|
try {
|
|
1245
1245
|
return Number(this).toFixed(r);
|
|
1246
1246
|
} catch (o) {
|
|
1247
|
-
|
|
1247
|
+
b(e, e.D, o.message);
|
|
1248
1248
|
}
|
|
1249
1249
|
}, W(e, e.aa, "toFixed", n), n = function(r) {
|
|
1250
1250
|
try {
|
|
1251
1251
|
return Number(this).toPrecision(r);
|
|
1252
1252
|
} catch (o) {
|
|
1253
|
-
|
|
1253
|
+
b(e, e.D, o.message);
|
|
1254
1254
|
}
|
|
1255
1255
|
}, W(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1256
1256
|
try {
|
|
1257
1257
|
return Number(this).toString(r);
|
|
1258
1258
|
} catch (o) {
|
|
1259
|
-
|
|
1259
|
+
b(e, e.D, o.message);
|
|
1260
1260
|
}
|
|
1261
1261
|
}, W(e, e.aa, "toString", n), n = function(r, o) {
|
|
1262
1262
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1263
1263
|
try {
|
|
1264
1264
|
return Number(this).toLocaleString(r, o);
|
|
1265
1265
|
} catch (a) {
|
|
1266
|
-
|
|
1266
|
+
b(e, e.D, "toLocaleString: " + a.message);
|
|
1267
1267
|
}
|
|
1268
1268
|
}, W(e, e.aa, "toLocaleString", n);
|
|
1269
1269
|
}
|
|
@@ -1279,7 +1279,7 @@ function Oo(e, t) {
|
|
|
1279
1279
|
n = function(o) {
|
|
1280
1280
|
return function(a) {
|
|
1281
1281
|
var s = this.data;
|
|
1282
|
-
s instanceof Date ||
|
|
1282
|
+
s instanceof Date || b(e, e.j, o + " not called on a Date");
|
|
1283
1283
|
for (var u = [], d = 0; d < arguments.length; d++)
|
|
1284
1284
|
u[d] = e.R(arguments[d]);
|
|
1285
1285
|
return s[o].apply(s, u);
|
|
@@ -1295,19 +1295,19 @@ function jo(e, t) {
|
|
|
1295
1295
|
return r;
|
|
1296
1296
|
a = e.s(e.Ma);
|
|
1297
1297
|
}
|
|
1298
|
-
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) ||
|
|
1298
|
+
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || b(e, e.T, "Invalid regexp flag: " + o);
|
|
1299
1299
|
try {
|
|
1300
1300
|
var s = new ve.RegExp(r, o);
|
|
1301
1301
|
} catch (u) {
|
|
1302
|
-
|
|
1302
|
+
b(e, e.T, u.message);
|
|
1303
1303
|
}
|
|
1304
|
-
return
|
|
1304
|
+
return qt(e, a, s), a;
|
|
1305
1305
|
};
|
|
1306
1306
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, J), e.g(e.I.h.prototype, "ignoreCase", void 0, J), e.g(e.I.h.prototype, "multiline", void 0, J), e.g(e.I.h.prototype, "source", "(?:)", J), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1307
|
-
function a(
|
|
1308
|
-
if (
|
|
1309
|
-
var
|
|
1310
|
-
return e.g(
|
|
1307
|
+
function a(w) {
|
|
1308
|
+
if (w) {
|
|
1309
|
+
var S = se(e, w);
|
|
1310
|
+
return e.g(S, "index", w.index), e.g(S, "input", w.input), S;
|
|
1311
1311
|
}
|
|
1312
1312
|
return null;
|
|
1313
1313
|
}
|
|
@@ -1319,9 +1319,9 @@ function jo(e, t) {
|
|
|
1319
1319
|
regexp: s
|
|
1320
1320
|
}, s, o), r !== Oe && (e.g(this, "lastIndex", s.lastIndex), o(a(r)));
|
|
1321
1321
|
else {
|
|
1322
|
-
var u = e.ha(), d = He(e, s, u, o),
|
|
1323
|
-
u.onmessage = function(
|
|
1324
|
-
clearTimeout(d), e.g(
|
|
1322
|
+
var u = e.ha(), d = He(e, s, u, o), C = this;
|
|
1323
|
+
u.onmessage = function(w) {
|
|
1324
|
+
clearTimeout(d), e.g(C, "lastIndex", w.data[1]), o(a(w.data[0]));
|
|
1325
1325
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1326
1326
|
}
|
|
1327
1327
|
else
|
|
@@ -1332,13 +1332,13 @@ function Ro(e, t) {
|
|
|
1332
1332
|
function n(r) {
|
|
1333
1333
|
var o = e.i(function(a) {
|
|
1334
1334
|
var s = ue(e) ? this : e.Aa(o);
|
|
1335
|
-
return
|
|
1335
|
+
return $t(e, s, a), s;
|
|
1336
1336
|
}, !0);
|
|
1337
1337
|
return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name", r, y), e.g(t, r, o, y), o;
|
|
1338
1338
|
}
|
|
1339
1339
|
e.D = e.i(function(r) {
|
|
1340
1340
|
var o = ue(e) ? this : e.Aa(e.D);
|
|
1341
|
-
return
|
|
1341
|
+
return $t(e, o, r), o;
|
|
1342
1342
|
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1343
1343
|
}
|
|
1344
1344
|
function Po(e, t) {
|
|
@@ -1356,17 +1356,17 @@ function No(e, t) {
|
|
|
1356
1356
|
try {
|
|
1357
1357
|
var o = JSON.parse(String(r));
|
|
1358
1358
|
} catch (a) {
|
|
1359
|
-
|
|
1359
|
+
b(e, e.T, a.message);
|
|
1360
1360
|
}
|
|
1361
1361
|
return e.Ia(o);
|
|
1362
1362
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, a) {
|
|
1363
|
-
o && o.H === "Function" ?
|
|
1363
|
+
o && o.H === "Function" ? b(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = pr(e, o), o = o.filter(function(u) {
|
|
1364
1364
|
return typeof u == "string" || typeof u == "number";
|
|
1365
1365
|
})) : o = null, typeof a != "string" && typeof a != "number" && (a = void 0), r = e.R(r);
|
|
1366
1366
|
try {
|
|
1367
1367
|
var s = JSON.stringify(r, o, a);
|
|
1368
1368
|
} catch (u) {
|
|
1369
|
-
|
|
1369
|
+
b(e, e.j, u.message);
|
|
1370
1370
|
}
|
|
1371
1371
|
return s;
|
|
1372
1372
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1383,10 +1383,10 @@ function H(e, t, n) {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
return !1;
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function qt(e, t, n) {
|
|
1387
1387
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, J), e.g(t, "global", n.global, J), e.g(t, "ignoreCase", n.ignoreCase, J), e.g(t, "multiline", n.multiline, J);
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function $t(e, t, n) {
|
|
1390
1390
|
n && e.g(t, "message", String(n), y), n = [];
|
|
1391
1391
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1392
1392
|
var o = e.o[r], a = o.node;
|
|
@@ -1417,7 +1417,7 @@ function We(e, t, n, r, o) {
|
|
|
1417
1417
|
try {
|
|
1418
1418
|
return le.runInNewContext(t, n, a);
|
|
1419
1419
|
} catch {
|
|
1420
|
-
o(null),
|
|
1420
|
+
o(null), b(e, e.D, "RegExp Timeout: " + r);
|
|
1421
1421
|
}
|
|
1422
1422
|
return Oe;
|
|
1423
1423
|
}
|
|
@@ -1438,13 +1438,13 @@ function $e(e, t, n) {
|
|
|
1438
1438
|
r = !!le;
|
|
1439
1439
|
} else
|
|
1440
1440
|
r = !1;
|
|
1441
|
-
r || (n(null),
|
|
1441
|
+
r || (n(null), b(e, e.D, "Regular expressions not supported: " + t));
|
|
1442
1442
|
}
|
|
1443
1443
|
function He(e, t, n, r) {
|
|
1444
1444
|
return setTimeout(function() {
|
|
1445
1445
|
n.terminate(), r(null);
|
|
1446
1446
|
try {
|
|
1447
|
-
|
|
1447
|
+
b(e, e.D, "RegExp Timeout: " + t);
|
|
1448
1448
|
} catch {
|
|
1449
1449
|
}
|
|
1450
1450
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
@@ -1465,19 +1465,19 @@ function Re(e) {
|
|
|
1465
1465
|
writable: !0
|
|
1466
1466
|
}), t.H = "Array", t;
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function Zt(e, t, n) {
|
|
1469
1469
|
var r = e.s(e.Z);
|
|
1470
1470
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, J), r.H = "Function", r;
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1473
|
-
var o =
|
|
1472
|
+
function Qt(e, t, n, r) {
|
|
1473
|
+
var o = Zt(e, t.oa.length, !0);
|
|
1474
1474
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", J), o;
|
|
1475
1475
|
}
|
|
1476
1476
|
N.i = function(e, t) {
|
|
1477
|
-
return t =
|
|
1477
|
+
return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, J), t;
|
|
1478
1478
|
};
|
|
1479
1479
|
N.ub = function(e) {
|
|
1480
|
-
var t =
|
|
1480
|
+
var t = Zt(this, e.length, !0);
|
|
1481
1481
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, J), t;
|
|
1482
1482
|
};
|
|
1483
1483
|
N.Ia = function(e) {
|
|
@@ -1487,7 +1487,7 @@ N.Ia = function(e) {
|
|
|
1487
1487
|
return e;
|
|
1488
1488
|
if (e instanceof RegExp) {
|
|
1489
1489
|
var t = this.s(this.Ma);
|
|
1490
|
-
return
|
|
1490
|
+
return qt(this, t, e), t;
|
|
1491
1491
|
}
|
|
1492
1492
|
if (e instanceof Date)
|
|
1493
1493
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1550,7 +1550,7 @@ function pr(e, t) {
|
|
|
1550
1550
|
var n = [], r;
|
|
1551
1551
|
for (r in t.h)
|
|
1552
1552
|
n[r] = e.G(t, r);
|
|
1553
|
-
return n.length =
|
|
1553
|
+
return n.length = zt(e.G(t, "length")) || 0, n;
|
|
1554
1554
|
}
|
|
1555
1555
|
function ce(e, t) {
|
|
1556
1556
|
switch (typeof t) {
|
|
@@ -1566,7 +1566,7 @@ function ce(e, t) {
|
|
|
1566
1566
|
N.G = function(e, t) {
|
|
1567
1567
|
if (this.P)
|
|
1568
1568
|
throw Error("Getter not supported in that context");
|
|
1569
|
-
if (t = String(t), e != null ||
|
|
1569
|
+
if (t = String(t), e != null || b(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof R))
|
|
1570
1570
|
throw TypeError("Expecting native value or pseudo object");
|
|
1571
1571
|
if (t === "length") {
|
|
1572
1572
|
if (H(this, e, this.J))
|
|
@@ -1600,15 +1600,15 @@ function ft(e, t, n) {
|
|
|
1600
1600
|
N.g = function(e, t, n, r) {
|
|
1601
1601
|
if (this.Ka)
|
|
1602
1602
|
throw Error("Setter not supported in that context");
|
|
1603
|
-
if (t = String(t), e != null ||
|
|
1603
|
+
if (t = String(t), e != null || b(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof R))
|
|
1604
1604
|
throw TypeError("Expecting native value or pseudo object");
|
|
1605
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1606
|
-
var o = !this.o ||
|
|
1605
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && b(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1606
|
+
var o = !this.o || en(this).S;
|
|
1607
1607
|
if (e instanceof R) {
|
|
1608
1608
|
if (H(this, e, this.J)) {
|
|
1609
1609
|
var a = Xe(t);
|
|
1610
1610
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1611
|
-
o &&
|
|
1611
|
+
o && b(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1612
1612
|
return;
|
|
1613
1613
|
}
|
|
1614
1614
|
}
|
|
@@ -1619,7 +1619,7 @@ N.g = function(e, t, n, r) {
|
|
|
1619
1619
|
return;
|
|
1620
1620
|
n = r.value;
|
|
1621
1621
|
}
|
|
1622
|
-
if (n =
|
|
1622
|
+
if (n = zt(n), isNaN(n) && b(this, this.ob, "Invalid array length"), n < a)
|
|
1623
1623
|
for (s in e.h) {
|
|
1624
1624
|
var s = Xe(s);
|
|
1625
1625
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1632,7 +1632,7 @@ N.g = function(e, t, n, r) {
|
|
|
1632
1632
|
try {
|
|
1633
1633
|
Object.defineProperty(e.h, t, o);
|
|
1634
1634
|
} catch {
|
|
1635
|
-
|
|
1635
|
+
b(this, this.j, "Cannot redefine property: " + t);
|
|
1636
1636
|
}
|
|
1637
1637
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1638
1638
|
} else {
|
|
@@ -1646,18 +1646,18 @@ N.g = function(e, t, n, r) {
|
|
|
1646
1646
|
if (r.Y && r.Y[t])
|
|
1647
1647
|
return this.Ka = !0, r.Y[t];
|
|
1648
1648
|
if (r.V && r.V[t])
|
|
1649
|
-
o &&
|
|
1649
|
+
o && b(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1650
1650
|
else
|
|
1651
1651
|
try {
|
|
1652
1652
|
e.h[t] = n;
|
|
1653
1653
|
} catch {
|
|
1654
|
-
o &&
|
|
1654
|
+
o && b(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
1657
1657
|
else
|
|
1658
|
-
o &&
|
|
1658
|
+
o && b(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1659
1659
|
} else
|
|
1660
|
-
o &&
|
|
1660
|
+
o && b(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1661
1661
|
};
|
|
1662
1662
|
N.g.ac = function() {
|
|
1663
1663
|
throw Error("Placeholder getter");
|
|
@@ -1671,12 +1671,12 @@ function W(e, t, n, r) {
|
|
|
1671
1671
|
function Ke(e, t, n, r) {
|
|
1672
1672
|
e.g(t.h.prototype, n, e.ub(r), y);
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function en(e) {
|
|
1675
1675
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1676
1676
|
throw Error("No scope found");
|
|
1677
1677
|
return e;
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function Ht(e, t, n) {
|
|
1680
1680
|
var r = !1;
|
|
1681
1681
|
if (n && n.S)
|
|
1682
1682
|
r = !0;
|
|
@@ -1686,28 +1686,28 @@ function $t(e, t, n) {
|
|
|
1686
1686
|
}
|
|
1687
1687
|
return o = e.s(null), r = new mr(n, r, o), n || So(e, r.object), Je(e, t, r), r;
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1689
|
+
function tn(e, t, n) {
|
|
1690
1690
|
if (!t)
|
|
1691
1691
|
throw Error("parentScope required");
|
|
1692
1692
|
return e = n || e.s(null), new mr(t, t.S, e);
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1695
|
-
for (var n =
|
|
1694
|
+
function nn(e, t) {
|
|
1695
|
+
for (var n = en(e); n && n !== e.N; ) {
|
|
1696
1696
|
if (t in n.object.h)
|
|
1697
1697
|
return n.object.h[t];
|
|
1698
1698
|
n = n.Va;
|
|
1699
1699
|
}
|
|
1700
1700
|
if (n === e.N && ft(e, n.object, t))
|
|
1701
1701
|
return e.G(n.object, t);
|
|
1702
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
1702
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || b(e, e.pb, t + " is not defined");
|
|
1703
1703
|
}
|
|
1704
1704
|
function dr(e, t, n) {
|
|
1705
|
-
for (var r =
|
|
1705
|
+
for (var r = en(e), o = r.S; r && r !== e.N; ) {
|
|
1706
1706
|
if (t in r.object.h) {
|
|
1707
1707
|
try {
|
|
1708
1708
|
r.object.h[t] = n;
|
|
1709
1709
|
} catch {
|
|
1710
|
-
o &&
|
|
1710
|
+
o && b(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1711
1711
|
}
|
|
1712
1712
|
return;
|
|
1713
1713
|
}
|
|
@@ -1715,7 +1715,7 @@ function dr(e, t, n) {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
if (r === e.N && (!o || ft(e, r.object, t)))
|
|
1717
1717
|
return e.g(r.object, t, n);
|
|
1718
|
-
|
|
1718
|
+
b(e, e.pb, t + " is not defined");
|
|
1719
1719
|
}
|
|
1720
1720
|
function Je(e, t, n) {
|
|
1721
1721
|
if (t.jb)
|
|
@@ -1763,20 +1763,20 @@ function Je(e, t, n) {
|
|
|
1763
1763
|
t.jb = r;
|
|
1764
1764
|
}
|
|
1765
1765
|
for (s in r)
|
|
1766
|
-
r[s] === !0 ? e.g(n.object, s, void 0, Hn) : e.g(n.object, s,
|
|
1766
|
+
r[s] === !0 ? e.g(n.object, s, void 0, Hn) : e.g(n.object, s, Qt(e, r[s], n), Hn);
|
|
1767
1767
|
return r;
|
|
1768
1768
|
}
|
|
1769
1769
|
function ue(e) {
|
|
1770
1770
|
return e.o[e.o.length - 1].isConstructor;
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1773
|
-
return t[0] === Pe ?
|
|
1772
|
+
function rn(e, t) {
|
|
1773
|
+
return t[0] === Pe ? nn(e, t[1]) : e.G(t[0], t[1]);
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1775
|
+
function on(e, t, n) {
|
|
1776
1776
|
return t[0] === Pe ? dr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1779
|
-
throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t),
|
|
1778
|
+
function b(e, t, n) {
|
|
1779
|
+
throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), $t(e, t, n)), ze(e, 4, t), fr) : n === void 0 ? t : n;
|
|
1780
1780
|
}
|
|
1781
1781
|
function ze(e, t, n, r) {
|
|
1782
1782
|
if (t === 0)
|
|
@@ -1864,12 +1864,12 @@ function Gn(e, t, n) {
|
|
|
1864
1864
|
} else {
|
|
1865
1865
|
try {
|
|
1866
1866
|
var d = je(String(a), "taskCode" + e.ic++);
|
|
1867
|
-
} catch (
|
|
1868
|
-
|
|
1867
|
+
} catch (C) {
|
|
1868
|
+
b(e, e.T, "Invalid code: " + C.message);
|
|
1869
1869
|
}
|
|
1870
1870
|
s.type = "EvalProgram_", s.body = d.body, r = r.node.arguments[0], ut(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1871
1871
|
}
|
|
1872
|
-
return t = new
|
|
1872
|
+
return t = new Bo(u, o, r, s, t ? n : -1), hr(e, t, n), t.Db;
|
|
1873
1873
|
}
|
|
1874
1874
|
function hr(e, t, n) {
|
|
1875
1875
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
@@ -1890,14 +1890,14 @@ function qe(e, t, n) {
|
|
|
1890
1890
|
var r = e.ya();
|
|
1891
1891
|
return r.type = "CallExpression", e = new v(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1893
|
+
function an(e, t, n, r) {
|
|
1894
1894
|
if (!e.Ka)
|
|
1895
1895
|
throw Error("Unexpected call to createSetter");
|
|
1896
1896
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1897
1897
|
var o = e.ya();
|
|
1898
1898
|
return o.type = "CallExpression", e = new v(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1900
|
+
function _t(e, t) {
|
|
1901
1901
|
return t == null ? e.Na : t instanceof R ? t : (e = e.s(ce(e, t)), e.data = t, e);
|
|
1902
1902
|
}
|
|
1903
1903
|
N.Xb = function() {
|
|
@@ -1973,10 +1973,10 @@ N.toString = function() {
|
|
|
1973
1973
|
N.valueOf = function() {
|
|
1974
1974
|
return !Ge || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1975
1975
|
};
|
|
1976
|
-
function
|
|
1977
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
1976
|
+
function Bo(e, t, n, r, o) {
|
|
1977
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Mo, this.time = 0;
|
|
1978
1978
|
}
|
|
1979
|
-
var
|
|
1979
|
+
var Mo = 0;
|
|
1980
1980
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
1981
1981
|
n = n.elements;
|
|
1982
1982
|
var r = t.A || 0;
|
|
@@ -1991,7 +1991,7 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
1991
1991
|
if (!t.ja)
|
|
1992
1992
|
return t.ja = !0, t = new v(n.left, t.scope), t.sa = !0, t;
|
|
1993
1993
|
if (!t.Da)
|
|
1994
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
1994
|
+
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, qe(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new v(n.right, t.scope));
|
|
1995
1995
|
if (t.ta)
|
|
1996
1996
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1997
1997
|
else {
|
|
@@ -2036,8 +2036,8 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2036
2036
|
default:
|
|
2037
2037
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2038
2038
|
}
|
|
2039
|
-
if (n =
|
|
2040
|
-
return t.ta = !0, t.ib = r,
|
|
2039
|
+
if (n = on(this, t.Fa, r))
|
|
2040
|
+
return t.ta = !0, t.ib = r, an(this, n, t.Fa, r);
|
|
2041
2041
|
e.pop(), e[e.length - 1].value = r;
|
|
2042
2042
|
}
|
|
2043
2043
|
};
|
|
@@ -2107,10 +2107,10 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2107
2107
|
n = r >>> t;
|
|
2108
2108
|
break;
|
|
2109
2109
|
case "in":
|
|
2110
|
-
t instanceof R ||
|
|
2110
|
+
t instanceof R || b(this, this.j, "'in' expects an object, not '" + t + "'"), n = ft(this, t, r);
|
|
2111
2111
|
break;
|
|
2112
2112
|
case "instanceof":
|
|
2113
|
-
H(this, t, this.O) ||
|
|
2113
|
+
H(this, t, this.O) || b(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof R ? H(this, r, t) : !1;
|
|
2114
2114
|
break;
|
|
2115
2115
|
default:
|
|
2116
2116
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2137,7 +2137,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2137
2137
|
t.ia = 2;
|
|
2138
2138
|
var o = t.value;
|
|
2139
2139
|
if (Array.isArray(o)) {
|
|
2140
|
-
if (t.U =
|
|
2140
|
+
if (t.U = rn(this, o), o[0] === Pe ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2141
2141
|
return t.ia = 1, qe(this, o, t.value);
|
|
2142
2142
|
} else
|
|
2143
2143
|
t.U = o;
|
|
@@ -2147,7 +2147,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2147
2147
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2148
2148
|
return new v(n.arguments[t.A++], t.scope);
|
|
2149
2149
|
if (n.type === "NewExpression") {
|
|
2150
|
-
if (o instanceof R && !o.Ab ||
|
|
2150
|
+
if (o instanceof R && !o.Ab || b(this, this.j, Y(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2151
2151
|
t.B = Re(this);
|
|
2152
2152
|
else {
|
|
2153
2153
|
var a = o.h.prototype;
|
|
@@ -2160,12 +2160,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2160
2160
|
if (t.eb)
|
|
2161
2161
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2162
2162
|
else {
|
|
2163
|
-
if (t.eb = !0, o instanceof R ||
|
|
2164
|
-
for (n =
|
|
2163
|
+
if (t.eb = !0, o instanceof R || b(this, this.j, Y(this, n.callee) + " is not a function"), e = o.node) {
|
|
2164
|
+
for (n = Ht(this, e.body, o.Va), r = Re(this), o = 0; o < t.F.length; o++)
|
|
2165
2165
|
this.g(r, o, t.F[o]);
|
|
2166
2166
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2167
2167
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2168
|
-
return n.S || (t.B =
|
|
2168
|
+
return n.S || (t.B = _t(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new v(e.body, n);
|
|
2169
2169
|
}
|
|
2170
2170
|
if (o.eval)
|
|
2171
2171
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2174,19 +2174,19 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2174
2174
|
try {
|
|
2175
2175
|
r = je(String(o), "eval" + this.Hb++);
|
|
2176
2176
|
} catch (u) {
|
|
2177
|
-
|
|
2177
|
+
b(this, this.T, "Invalid code: " + u.message);
|
|
2178
2178
|
}
|
|
2179
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n =
|
|
2179
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Ht(this, r, n) : Je(this, r, n), this.value = void 0, new v(o, n);
|
|
2180
2180
|
}
|
|
2181
2181
|
else if (o.Ta)
|
|
2182
|
-
t.scope.S || (t.B =
|
|
2182
|
+
t.scope.S || (t.B = _t(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2183
2183
|
else if (o.Za) {
|
|
2184
2184
|
var s = this;
|
|
2185
2185
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2186
2186
|
t.value = u, s.za = !1;
|
|
2187
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2187
|
+
}), this.za = !0, t.scope.S || (t.B = _t(this, t.B)), o.Za.apply(t.B, r);
|
|
2188
2188
|
} else
|
|
2189
|
-
|
|
2189
|
+
b(this, this.j, Y(this, n.callee) + " is not callable");
|
|
2190
2190
|
}
|
|
2191
2191
|
};
|
|
2192
2192
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
@@ -2232,7 +2232,7 @@ h.prototype.stepExpressionStatement = function(e, t, n) {
|
|
|
2232
2232
|
};
|
|
2233
2233
|
h.prototype.stepForInStatement = function(e, t, n) {
|
|
2234
2234
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2235
|
-
return t.scope.S &&
|
|
2235
|
+
return t.scope.S && b(this, this.T, "for-in loop variable declaration may not have an initializer"), new v(n.left, t.scope);
|
|
2236
2236
|
if (!t.Ca)
|
|
2237
2237
|
return t.Ca = !0, t.pa || (t.pa = t.value), new v(n.right, t.scope);
|
|
2238
2238
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
@@ -2265,8 +2265,8 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2265
2265
|
t.pa = [Pe, e.fa[0].id.name];
|
|
2266
2266
|
else
|
|
2267
2267
|
return t.pa = null, t = new v(e, t.scope), t.sa = !0, t;
|
|
2268
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2269
|
-
return
|
|
2268
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = on(this, t.pa, e)))
|
|
2269
|
+
return an(this, r, t.pa, e);
|
|
2270
2270
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2271
2271
|
return new v(n.body, t.scope);
|
|
2272
2272
|
};
|
|
@@ -2295,13 +2295,13 @@ h.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2295
2295
|
e.pop();
|
|
2296
2296
|
};
|
|
2297
2297
|
h.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2298
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2298
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = tn(this, e)), t.value = Qt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Jt);
|
|
2299
2299
|
};
|
|
2300
2300
|
h.prototype.stepIdentifier = function(e, t, n) {
|
|
2301
2301
|
if (e.pop(), t.sa)
|
|
2302
2302
|
e[e.length - 1].value = [Pe, n.name];
|
|
2303
2303
|
else {
|
|
2304
|
-
if (t =
|
|
2304
|
+
if (t = nn(this, n.name), this.P)
|
|
2305
2305
|
return qe(this, t, this.Na);
|
|
2306
2306
|
e[e.length - 1].value = t;
|
|
2307
2307
|
}
|
|
@@ -2311,7 +2311,7 @@ h.prototype.stepLabeledStatement = function(e, t, n) {
|
|
|
2311
2311
|
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new v(n.body, t.scope), t.labels = e, t;
|
|
2312
2312
|
};
|
|
2313
2313
|
h.prototype.stepLiteral = function(e, t, n) {
|
|
2314
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2314
|
+
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;
|
|
2315
2315
|
};
|
|
2316
2316
|
h.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2317
2317
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
@@ -2414,11 +2414,11 @@ h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2414
2414
|
}
|
|
2415
2415
|
};
|
|
2416
2416
|
h.prototype.stepThisExpression = function(e) {
|
|
2417
|
-
e.pop(), e[e.length - 1].value =
|
|
2417
|
+
e.pop(), e[e.length - 1].value = nn(this, "this");
|
|
2418
2418
|
};
|
|
2419
2419
|
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2420
2420
|
if (t.ka)
|
|
2421
|
-
|
|
2421
|
+
b(this, t.value);
|
|
2422
2422
|
else
|
|
2423
2423
|
return t.ka = !0, new v(n.K, t.scope);
|
|
2424
2424
|
};
|
|
@@ -2426,7 +2426,7 @@ h.prototype.stepTryStatement = function(e, t, n) {
|
|
|
2426
2426
|
if (!t.Rb)
|
|
2427
2427
|
return t.Rb = !0, new v(n.block, t.scope);
|
|
2428
2428
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2429
|
-
return t.Tb = !0, e =
|
|
2429
|
+
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 v(n.Ea.body, e);
|
|
2430
2430
|
if (!t.Sb && n.fb)
|
|
2431
2431
|
return t.Sb = !0, new v(n.fb, t.scope);
|
|
2432
2432
|
e.pop(), t.ea && ze(this, t.ea.type, t.ea.value, t.ea.label);
|
|
@@ -2456,7 +2456,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2456
2456
|
try {
|
|
2457
2457
|
delete o.h[r];
|
|
2458
2458
|
} catch {
|
|
2459
|
-
t.scope.S ?
|
|
2459
|
+
t.scope.S ? b(this, this.j, "Cannot delete property '" + r + "' of '" + o + "'") : n = !1;
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
2462
2462
|
r = n;
|
|
@@ -2476,7 +2476,7 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2476
2476
|
if (!t.ja)
|
|
2477
2477
|
return t.ja = !0, e = new v(n.K, t.scope), e.sa = !0, e;
|
|
2478
2478
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2479
|
-
var r =
|
|
2479
|
+
var r = rn(this, t.Ga);
|
|
2480
2480
|
if (t.ma = r, this.P)
|
|
2481
2481
|
return t.Ba = !0, qe(this, r, t.Ga);
|
|
2482
2482
|
}
|
|
@@ -2489,8 +2489,8 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2489
2489
|
o = r - 1;
|
|
2490
2490
|
else
|
|
2491
2491
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2492
|
-
if (n = n.prefix ? o : r, r =
|
|
2493
|
-
return t.ta = !0, t.ib = n,
|
|
2492
|
+
if (n = n.prefix ? o : r, r = on(this, t.Ga, o))
|
|
2493
|
+
return t.ta = !0, t.ib = n, an(this, r, t.Ga, o);
|
|
2494
2494
|
e.pop(), e[e.length - 1].value = n;
|
|
2495
2495
|
}
|
|
2496
2496
|
};
|
|
@@ -2505,7 +2505,7 @@ h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2505
2505
|
e.pop();
|
|
2506
2506
|
};
|
|
2507
2507
|
h.prototype.stepWithStatement = function(e, t, n) {
|
|
2508
|
-
return t.Ca ? (e.pop(), e =
|
|
2508
|
+
return t.Ca ? (e.pop(), e = tn(this, t.scope, t.value), new v(n.body, e)) : (t.Ca = !0, new v(n.object, t.scope));
|
|
2509
2509
|
};
|
|
2510
2510
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2511
2511
|
ve.Interpreter = h;
|
|
@@ -2554,42 +2554,42 @@ const Uo = (e) => e.split(`
|
|
|
2554
2554
|
context: t,
|
|
2555
2555
|
event: n,
|
|
2556
2556
|
state: u
|
|
2557
|
-
}),
|
|
2558
|
-
const
|
|
2559
|
-
return `var ${
|
|
2557
|
+
}), C = d.map(([E]) => {
|
|
2558
|
+
const x = Yn(E);
|
|
2559
|
+
return `var ${E} = ${x} === undefined ? undefined : JSON.parse(${x});`;
|
|
2560
2560
|
}).join(`
|
|
2561
|
-
`),
|
|
2562
|
-
if (
|
|
2561
|
+
`), w = Uo(s);
|
|
2562
|
+
if (w === "") {
|
|
2563
2563
|
q.warn("Skipping evaluation of empty code block.");
|
|
2564
2564
|
return;
|
|
2565
2565
|
}
|
|
2566
|
-
const
|
|
2566
|
+
const S = `
|
|
2567
2567
|
function theFunction() {
|
|
2568
|
-
${
|
|
2568
|
+
${C}
|
|
2569
2569
|
|
|
2570
|
-
${
|
|
2570
|
+
${w}
|
|
2571
2571
|
}
|
|
2572
2572
|
theFunction();
|
|
2573
|
-
`, P = (
|
|
2574
|
-
const
|
|
2575
|
-
a == null || a(
|
|
2576
|
-
}, j = function(
|
|
2577
|
-
d.forEach(([
|
|
2573
|
+
`, P = (E, x) => {
|
|
2574
|
+
const B = ur(u, E, x);
|
|
2575
|
+
a == null || a(B);
|
|
2576
|
+
}, j = function(E, x) {
|
|
2577
|
+
d.forEach(([B, $]) => {
|
|
2578
2578
|
const g = JSON.stringify($);
|
|
2579
|
-
|
|
2580
|
-
}),
|
|
2579
|
+
E.setProperty(x, Yn(B), g);
|
|
2580
|
+
}), E.setProperty(x, "setRootState", E.createNativeFunction(P));
|
|
2581
2581
|
};
|
|
2582
2582
|
try {
|
|
2583
|
-
const
|
|
2584
|
-
return
|
|
2585
|
-
} catch (
|
|
2583
|
+
const E = new h(S, j);
|
|
2584
|
+
return E.run(), E.pseudoToNative(E.value);
|
|
2585
|
+
} catch (E) {
|
|
2586
2586
|
q.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2587
|
-
e:
|
|
2587
|
+
e: E
|
|
2588
2588
|
});
|
|
2589
2589
|
return;
|
|
2590
2590
|
}
|
|
2591
2591
|
}, Vo = (e) => G() ? vo(e) : Fo(e);
|
|
2592
|
-
function
|
|
2592
|
+
function sn({
|
|
2593
2593
|
code: e,
|
|
2594
2594
|
context: t,
|
|
2595
2595
|
localState: n,
|
|
@@ -2642,14 +2642,14 @@ const _o = ({
|
|
|
2642
2642
|
}
|
|
2643
2643
|
};
|
|
2644
2644
|
for (const u in e.bindings) {
|
|
2645
|
-
const d = e.bindings[u],
|
|
2645
|
+
const d = e.bindings[u], C = sn({
|
|
2646
2646
|
code: d,
|
|
2647
2647
|
localState: n,
|
|
2648
2648
|
rootState: r,
|
|
2649
2649
|
rootSetState: o,
|
|
2650
2650
|
context: t
|
|
2651
2651
|
});
|
|
2652
|
-
ur(s, u,
|
|
2652
|
+
ur(s, u, C);
|
|
2653
2653
|
}
|
|
2654
2654
|
return s;
|
|
2655
2655
|
};
|
|
@@ -2670,7 +2670,7 @@ function ct({
|
|
|
2670
2670
|
context: t
|
|
2671
2671
|
}) : s;
|
|
2672
2672
|
}
|
|
2673
|
-
const Do = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"],
|
|
2673
|
+
const Do = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], Dt = (e) => typeof e == "string" && Do.includes(e.toLowerCase()), Lo = ({
|
|
2674
2674
|
block: e,
|
|
2675
2675
|
context: t,
|
|
2676
2676
|
registeredComponents: n
|
|
@@ -2702,7 +2702,7 @@ const Do = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2702
2702
|
} = e;
|
|
2703
2703
|
if (!(n != null && n.collection))
|
|
2704
2704
|
return;
|
|
2705
|
-
const o =
|
|
2705
|
+
const o = sn({
|
|
2706
2706
|
code: n.collection,
|
|
2707
2707
|
localState: t.localState,
|
|
2708
2708
|
rootState: t.rootState,
|
|
@@ -2712,15 +2712,15 @@ const Do = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2712
2712
|
if (!Array.isArray(o))
|
|
2713
2713
|
return;
|
|
2714
2714
|
const a = n.collection.split(".").pop(), s = n.itemName || (a ? a + "Item" : "item");
|
|
2715
|
-
return o.map((d,
|
|
2715
|
+
return o.map((d, C) => ({
|
|
2716
2716
|
context: {
|
|
2717
2717
|
...t,
|
|
2718
2718
|
localState: {
|
|
2719
2719
|
...t.localState,
|
|
2720
|
-
$index:
|
|
2720
|
+
$index: C,
|
|
2721
2721
|
$item: d,
|
|
2722
2722
|
[s]: d,
|
|
2723
|
-
[`$${s}Index`]:
|
|
2723
|
+
[`$${s}Index`]: C
|
|
2724
2724
|
}
|
|
2725
2725
|
},
|
|
2726
2726
|
block: r
|
|
@@ -2771,7 +2771,7 @@ const Do = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2771
2771
|
if (typeof r == "string")
|
|
2772
2772
|
return `${$o(n)}: ${r};`;
|
|
2773
2773
|
}).filter(fe), Ho = (e) => vr(e).join(`
|
|
2774
|
-
`),
|
|
2774
|
+
`), Lt = ({
|
|
2775
2775
|
mediaQuery: e,
|
|
2776
2776
|
className: t,
|
|
2777
2777
|
styles: n
|
|
@@ -2784,7 +2784,7 @@ const Do = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2784
2784
|
}` : r;
|
|
2785
2785
|
};
|
|
2786
2786
|
function dt(e) {
|
|
2787
|
-
return /* @__PURE__ */
|
|
2787
|
+
return /* @__PURE__ */ k("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2788
2788
|
}
|
|
2789
2789
|
function Ko(e) {
|
|
2790
2790
|
const t = function() {
|
|
@@ -2798,7 +2798,7 @@ function Ko(e) {
|
|
|
2798
2798
|
});
|
|
2799
2799
|
return fe(o.hide) ? !o.hide : fe(o.show) ? o.show : !0;
|
|
2800
2800
|
}, n = function() {
|
|
2801
|
-
var
|
|
2801
|
+
var x;
|
|
2802
2802
|
const o = ct({
|
|
2803
2803
|
block: e.block,
|
|
2804
2804
|
localState: e.context.localState,
|
|
@@ -2807,36 +2807,36 @@ function Ko(e) {
|
|
|
2807
2807
|
context: e.context.context,
|
|
2808
2808
|
shouldEvaluateBindings: !0
|
|
2809
2809
|
}), a = o.responsiveStyles, s = e.context.content, u = yr(
|
|
2810
|
-
((
|
|
2811
|
-
), d = a == null ? void 0 : a.large,
|
|
2812
|
-
if (!
|
|
2810
|
+
((x = s == null ? void 0 : s.meta) == null ? void 0 : x.breakpoints) || {}
|
|
2811
|
+
), d = a == null ? void 0 : a.large, C = a == null ? void 0 : a.medium, w = a == null ? void 0 : a.small, S = o.id;
|
|
2812
|
+
if (!S)
|
|
2813
2813
|
return "";
|
|
2814
|
-
const P = d ?
|
|
2815
|
-
className:
|
|
2814
|
+
const P = d ? Lt({
|
|
2815
|
+
className: S,
|
|
2816
2816
|
styles: d
|
|
2817
|
-
}) : "", j =
|
|
2818
|
-
className:
|
|
2819
|
-
styles:
|
|
2817
|
+
}) : "", j = C ? Lt({
|
|
2818
|
+
className: S,
|
|
2819
|
+
styles: C,
|
|
2820
2820
|
mediaQuery: Jn(
|
|
2821
2821
|
"medium",
|
|
2822
2822
|
u
|
|
2823
2823
|
)
|
|
2824
|
-
}) : "",
|
|
2825
|
-
className:
|
|
2826
|
-
styles:
|
|
2824
|
+
}) : "", E = w ? Lt({
|
|
2825
|
+
className: S,
|
|
2826
|
+
styles: w,
|
|
2827
2827
|
mediaQuery: Jn(
|
|
2828
2828
|
"small",
|
|
2829
2829
|
u
|
|
2830
2830
|
)
|
|
2831
2831
|
}) : "";
|
|
2832
|
-
return [P, j,
|
|
2832
|
+
return [P, j, E].join(" ");
|
|
2833
2833
|
};
|
|
2834
|
-
return /* @__PURE__ */
|
|
2834
|
+
return /* @__PURE__ */ k(D, { children: n() && t() ? /* @__PURE__ */ k(D, { children: /* @__PURE__ */ k(dt, { styles: n() }) }) : null });
|
|
2835
2835
|
}
|
|
2836
2836
|
function Go(e) {
|
|
2837
2837
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2838
2838
|
}
|
|
2839
|
-
const Xo = (e) => `on${Go(e)}`, Yo = (e, t) => (n) =>
|
|
2839
|
+
const Xo = (e) => `on${Go(e)}`, Yo = (e, t) => (n) => sn({
|
|
2840
2840
|
code: e,
|
|
2841
2841
|
context: t.context,
|
|
2842
2842
|
localState: t.localState,
|
|
@@ -2845,7 +2845,7 @@ const Xo = (e) => `on${Go(e)}`, Yo = (e, t) => (n) => an({
|
|
|
2845
2845
|
event: n,
|
|
2846
2846
|
isExpression: !1
|
|
2847
2847
|
});
|
|
2848
|
-
function
|
|
2848
|
+
function Ta(e) {
|
|
2849
2849
|
const t = {}, n = e.block.actions ?? {};
|
|
2850
2850
|
for (const r in n) {
|
|
2851
2851
|
if (!n.hasOwnProperty(r))
|
|
@@ -2853,7 +2853,7 @@ function Ea(e) {
|
|
|
2853
2853
|
const o = n[r];
|
|
2854
2854
|
let a = Xo(r);
|
|
2855
2855
|
if (e.stripPrefix)
|
|
2856
|
-
switch (
|
|
2856
|
+
switch (be) {
|
|
2857
2857
|
case "vue":
|
|
2858
2858
|
a = a.replace("v-on:", "");
|
|
2859
2859
|
break;
|
|
@@ -2892,7 +2892,7 @@ function qo({
|
|
|
2892
2892
|
});
|
|
2893
2893
|
}
|
|
2894
2894
|
function Zo(e) {
|
|
2895
|
-
switch (
|
|
2895
|
+
switch (be) {
|
|
2896
2896
|
case "svelte":
|
|
2897
2897
|
case "vue":
|
|
2898
2898
|
case "solid":
|
|
@@ -2937,7 +2937,7 @@ const Qo = ({
|
|
|
2937
2937
|
function zn(e) {
|
|
2938
2938
|
var n;
|
|
2939
2939
|
const t = e.isInteractive ? eo : e.componentRef;
|
|
2940
|
-
return /* @__PURE__ */
|
|
2940
|
+
return /* @__PURE__ */ k(D, { children: e.componentRef ? /* @__PURE__ */ k(D, { children: /* @__PURE__ */ k(
|
|
2941
2941
|
t,
|
|
2942
2942
|
{
|
|
2943
2943
|
...Qo({
|
|
@@ -2949,7 +2949,7 @@ function zn(e) {
|
|
|
2949
2949
|
isInteractive: e.isInteractive,
|
|
2950
2950
|
contextValue: e.context
|
|
2951
2951
|
}),
|
|
2952
|
-
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */
|
|
2952
|
+
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ k(
|
|
2953
2953
|
ht,
|
|
2954
2954
|
{
|
|
2955
2955
|
block: r,
|
|
@@ -2963,7 +2963,7 @@ function zn(e) {
|
|
|
2963
2963
|
}
|
|
2964
2964
|
function ei(e) {
|
|
2965
2965
|
const t = e.repeatContext;
|
|
2966
|
-
return /* @__PURE__ */
|
|
2966
|
+
return /* @__PURE__ */ k(
|
|
2967
2967
|
ht,
|
|
2968
2968
|
{
|
|
2969
2969
|
block: e.block,
|
|
@@ -2973,7 +2973,7 @@ function ei(e) {
|
|
|
2973
2973
|
);
|
|
2974
2974
|
}
|
|
2975
2975
|
function ht(e) {
|
|
2976
|
-
var
|
|
2976
|
+
var C, w, S;
|
|
2977
2977
|
const t = function() {
|
|
2978
2978
|
return Lo({
|
|
2979
2979
|
block: e.block,
|
|
@@ -2998,36 +2998,36 @@ function ht(e) {
|
|
|
2998
2998
|
}, o = function() {
|
|
2999
2999
|
return e.block.tagName || "div";
|
|
3000
3000
|
}, a = function() {
|
|
3001
|
-
var
|
|
3002
|
-
if ((
|
|
3003
|
-
return !!((
|
|
3001
|
+
var x, B;
|
|
3002
|
+
if ((x = e.block.repeat) != null && x.collection)
|
|
3003
|
+
return !!((B = n()) != null && B.length);
|
|
3004
3004
|
const j = "hide" in r() ? r().hide : !1;
|
|
3005
3005
|
return ("show" in r() ? r().show : !0) && !j;
|
|
3006
3006
|
}, s = function() {
|
|
3007
|
-
var
|
|
3008
|
-
return !((
|
|
3007
|
+
var E;
|
|
3008
|
+
return !((E = t()) != null && E.component) && !n() ? r().children ?? [] : [];
|
|
3009
3009
|
}, u = function() {
|
|
3010
|
-
var j,
|
|
3010
|
+
var j, E, x, B, $;
|
|
3011
3011
|
return {
|
|
3012
3012
|
blockChildren: r().children ?? [],
|
|
3013
3013
|
componentRef: (j = t()) == null ? void 0 : j.component,
|
|
3014
3014
|
componentOptions: {
|
|
3015
3015
|
...fo(r()),
|
|
3016
3016
|
builderContext: e.context,
|
|
3017
|
-
...((
|
|
3017
|
+
...((E = t()) == null ? void 0 : E.name) === "Symbol" || ((x = t()) == null ? void 0 : x.name) === "Columns" ? {
|
|
3018
3018
|
builderComponents: e.registeredComponents
|
|
3019
3019
|
} : {}
|
|
3020
3020
|
},
|
|
3021
3021
|
context: d,
|
|
3022
3022
|
registeredComponents: e.registeredComponents,
|
|
3023
3023
|
builderBlock: r(),
|
|
3024
|
-
includeBlockProps: ((
|
|
3024
|
+
includeBlockProps: ((B = t()) == null ? void 0 : B.noWrap) === !0,
|
|
3025
3025
|
isInteractive: !(($ = t()) != null && $.isRSC)
|
|
3026
3026
|
};
|
|
3027
3027
|
}, d = e.context;
|
|
3028
|
-
return /* @__PURE__ */
|
|
3029
|
-
/* @__PURE__ */
|
|
3030
|
-
(
|
|
3028
|
+
return /* @__PURE__ */ k(D, { children: a() ? /* @__PURE__ */ ye(D, { children: [
|
|
3029
|
+
/* @__PURE__ */ k(Ko, { block: e.block, context: e.context }),
|
|
3030
|
+
(C = t()) != null && C.noWrap ? /* @__PURE__ */ k(D, { children: /* @__PURE__ */ k(
|
|
3031
3031
|
zn,
|
|
3032
3032
|
{
|
|
3033
3033
|
componentRef: u().componentRef,
|
|
@@ -3040,7 +3040,7 @@ function ht(e) {
|
|
|
3040
3040
|
isInteractive: u().isInteractive
|
|
3041
3041
|
}
|
|
3042
3042
|
) }) : /* @__PURE__ */ ye(D, { children: [
|
|
3043
|
-
|
|
3043
|
+
Dt(o()) ? /* @__PURE__ */ k(D, { children: /* @__PURE__ */ k(
|
|
3044
3044
|
Wn,
|
|
3045
3045
|
{
|
|
3046
3046
|
Wrapper: o(),
|
|
@@ -3049,7 +3049,7 @@ function ht(e) {
|
|
|
3049
3049
|
hasChildren: !1
|
|
3050
3050
|
}
|
|
3051
3051
|
) }) : null,
|
|
3052
|
-
!
|
|
3052
|
+
!Dt(o()) && n() ? /* @__PURE__ */ k(D, { children: (w = n()) == null ? void 0 : w.map((P, j) => /* @__PURE__ */ k(
|
|
3053
3053
|
ei,
|
|
3054
3054
|
{
|
|
3055
3055
|
repeatContext: P.context,
|
|
@@ -3058,7 +3058,7 @@ function ht(e) {
|
|
|
3058
3058
|
},
|
|
3059
3059
|
j
|
|
3060
3060
|
)) }) : null,
|
|
3061
|
-
!
|
|
3061
|
+
!Dt(o()) && !n() ? /* @__PURE__ */ k(D, { children: /* @__PURE__ */ ye(
|
|
3062
3062
|
Wn,
|
|
3063
3063
|
{
|
|
3064
3064
|
Wrapper: o(),
|
|
@@ -3066,7 +3066,7 @@ function ht(e) {
|
|
|
3066
3066
|
context: e.context,
|
|
3067
3067
|
hasChildren: !0,
|
|
3068
3068
|
children: [
|
|
3069
|
-
/* @__PURE__ */
|
|
3069
|
+
/* @__PURE__ */ k(
|
|
3070
3070
|
zn,
|
|
3071
3071
|
{
|
|
3072
3072
|
componentRef: u().componentRef,
|
|
@@ -3079,7 +3079,7 @@ function ht(e) {
|
|
|
3079
3079
|
isInteractive: u().isInteractive
|
|
3080
3080
|
}
|
|
3081
3081
|
),
|
|
3082
|
-
(
|
|
3082
|
+
(S = s()) == null ? void 0 : S.map((P) => /* @__PURE__ */ k(
|
|
3083
3083
|
ht,
|
|
3084
3084
|
{
|
|
3085
3085
|
block: P,
|
|
@@ -3094,9 +3094,9 @@ function ht(e) {
|
|
|
3094
3094
|
] })
|
|
3095
3095
|
] }) : null });
|
|
3096
3096
|
}
|
|
3097
|
-
function
|
|
3097
|
+
function mt(e) {
|
|
3098
3098
|
var t, n, r;
|
|
3099
|
-
return /* @__PURE__ */
|
|
3099
|
+
return /* @__PURE__ */ k(
|
|
3100
3100
|
to,
|
|
3101
3101
|
{
|
|
3102
3102
|
blocks: e.blocks,
|
|
@@ -3105,7 +3105,7 @@ function sn(e) {
|
|
|
3105
3105
|
styleProp: e.styleProp,
|
|
3106
3106
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3107
3107
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3108
|
-
children: e.blocks ? /* @__PURE__ */
|
|
3108
|
+
children: e.blocks ? /* @__PURE__ */ k(D, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ k(
|
|
3109
3109
|
ht,
|
|
3110
3110
|
{
|
|
3111
3111
|
block: o,
|
|
@@ -3119,23 +3119,23 @@ function sn(e) {
|
|
|
3119
3119
|
}
|
|
3120
3120
|
function ti(e) {
|
|
3121
3121
|
var j;
|
|
3122
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(
|
|
3123
|
-
var
|
|
3124
|
-
return ((
|
|
3125
|
-
}, a = function(
|
|
3126
|
-
const
|
|
3127
|
-
return `calc(${o(
|
|
3122
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(x) {
|
|
3123
|
+
var B;
|
|
3124
|
+
return ((B = n[x]) == null ? void 0 : B.width) || 100 / n.length;
|
|
3125
|
+
}, a = function(x) {
|
|
3126
|
+
const B = t * (n.length - 1) / n.length;
|
|
3127
|
+
return `calc(${o(x)}% - ${B}px)`;
|
|
3128
3128
|
}, s = function({
|
|
3129
|
-
stackedStyle:
|
|
3130
|
-
desktopStyle:
|
|
3129
|
+
stackedStyle: x,
|
|
3130
|
+
desktopStyle: B
|
|
3131
3131
|
}) {
|
|
3132
|
-
return r === "tablet" ?
|
|
3132
|
+
return r === "tablet" ? x : B;
|
|
3133
3133
|
}, u = function({
|
|
3134
|
-
stackedStyle:
|
|
3135
|
-
desktopStyle:
|
|
3134
|
+
stackedStyle: x,
|
|
3135
|
+
desktopStyle: B
|
|
3136
3136
|
}) {
|
|
3137
|
-
return r === "never" ?
|
|
3138
|
-
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
3137
|
+
return r === "never" ? B : x;
|
|
3138
|
+
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", C = function() {
|
|
3139
3139
|
return {
|
|
3140
3140
|
"--flex-dir": d,
|
|
3141
3141
|
"--flex-dir-tablet": s({
|
|
@@ -3143,8 +3143,8 @@ function ti(e) {
|
|
|
3143
3143
|
desktopStyle: "row"
|
|
3144
3144
|
})
|
|
3145
3145
|
};
|
|
3146
|
-
},
|
|
3147
|
-
const
|
|
3146
|
+
}, w = function(x) {
|
|
3147
|
+
const B = x === 0 ? 0 : t, $ = a(x), g = `${B}px`, pe = "100%", de = 0;
|
|
3148
3148
|
return {
|
|
3149
3149
|
width: $,
|
|
3150
3150
|
["marginLeft"]: g,
|
|
@@ -3165,14 +3165,14 @@ function ti(e) {
|
|
|
3165
3165
|
desktopStyle: g
|
|
3166
3166
|
})
|
|
3167
3167
|
};
|
|
3168
|
-
},
|
|
3168
|
+
}, S = function(x) {
|
|
3169
3169
|
var $, g;
|
|
3170
3170
|
return yr(
|
|
3171
3171
|
((g = ($ = e.builderContext.content) == null ? void 0 : $.meta) == null ? void 0 : g.breakpoints) || {}
|
|
3172
|
-
)[
|
|
3172
|
+
)[x].max;
|
|
3173
3173
|
}, P = function() {
|
|
3174
3174
|
return `
|
|
3175
|
-
@media (max-width: ${
|
|
3175
|
+
@media (max-width: ${S("medium")}px) {
|
|
3176
3176
|
.${e.builderBlock.id}-breakpoints {
|
|
3177
3177
|
flex-direction: var(--flex-dir-tablet);
|
|
3178
3178
|
align-items: stretch;
|
|
@@ -3184,7 +3184,7 @@ function ti(e) {
|
|
|
3184
3184
|
}
|
|
3185
3185
|
}
|
|
3186
3186
|
|
|
3187
|
-
@media (max-width: ${
|
|
3187
|
+
@media (max-width: ${S("small")}px) {
|
|
3188
3188
|
.${e.builderBlock.id}-breakpoints {
|
|
3189
3189
|
flex-direction: var(--flex-dir);
|
|
3190
3190
|
align-items: stretch;
|
|
@@ -3202,34 +3202,34 @@ function ti(e) {
|
|
|
3202
3202
|
"div",
|
|
3203
3203
|
{
|
|
3204
3204
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-39daef82`,
|
|
3205
|
-
style:
|
|
3205
|
+
style: C(),
|
|
3206
3206
|
children: [
|
|
3207
|
-
/* @__PURE__ */
|
|
3208
|
-
(j = e.columns) == null ? void 0 : j.map((
|
|
3207
|
+
/* @__PURE__ */ k(D, { children: /* @__PURE__ */ k(dt, { styles: P() }) }),
|
|
3208
|
+
(j = e.columns) == null ? void 0 : j.map((E, x) => /* @__PURE__ */ Qr(
|
|
3209
3209
|
"div",
|
|
3210
3210
|
{
|
|
3211
3211
|
className: "builder-column div-39daef82-2",
|
|
3212
|
-
style:
|
|
3213
|
-
key:
|
|
3212
|
+
style: w(x),
|
|
3213
|
+
key: x
|
|
3214
3214
|
},
|
|
3215
|
-
/* @__PURE__ */
|
|
3216
|
-
|
|
3215
|
+
/* @__PURE__ */ k(
|
|
3216
|
+
mt,
|
|
3217
3217
|
{
|
|
3218
|
-
path: `component.options.columns.${
|
|
3218
|
+
path: `component.options.columns.${x}.blocks`,
|
|
3219
3219
|
parent: e.builderBlock.id,
|
|
3220
3220
|
styleProp: {
|
|
3221
3221
|
flexGrow: "1"
|
|
3222
3222
|
},
|
|
3223
3223
|
context: e.builderContext,
|
|
3224
3224
|
registeredComponents: e.builderComponents,
|
|
3225
|
-
blocks:
|
|
3225
|
+
blocks: E.blocks
|
|
3226
3226
|
}
|
|
3227
3227
|
)
|
|
3228
3228
|
))
|
|
3229
3229
|
]
|
|
3230
3230
|
}
|
|
3231
3231
|
),
|
|
3232
|
-
/* @__PURE__ */
|
|
3232
|
+
/* @__PURE__ */ k("style", { children: `.div-39daef82 {
|
|
3233
3233
|
display: flex;
|
|
3234
3234
|
line-height: normal;
|
|
3235
3235
|
}.div-39daef82-2 {
|
|
@@ -3258,7 +3258,7 @@ function ri(e, t) {
|
|
|
3258
3258
|
}
|
|
3259
3259
|
return null;
|
|
3260
3260
|
}
|
|
3261
|
-
function
|
|
3261
|
+
function Aa(e) {
|
|
3262
3262
|
if (!e)
|
|
3263
3263
|
return e;
|
|
3264
3264
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -3274,7 +3274,7 @@ const oi = (e) => {
|
|
|
3274
3274
|
return e;
|
|
3275
3275
|
const t = e.split(".");
|
|
3276
3276
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3277
|
-
},
|
|
3277
|
+
}, br = ({
|
|
3278
3278
|
name: e,
|
|
3279
3279
|
canTrack: t
|
|
3280
3280
|
}) => {
|
|
@@ -3285,7 +3285,7 @@ const oi = (e) => {
|
|
|
3285
3285
|
q.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3286
3286
|
return;
|
|
3287
3287
|
}
|
|
3288
|
-
},
|
|
3288
|
+
}, xr = async (e) => br(e), ii = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(fe).join("; "), ai = [["secure", ""], ["SameSite", "None"]], si = ({
|
|
3289
3289
|
name: e,
|
|
3290
3290
|
value: t,
|
|
3291
3291
|
expires: n
|
|
@@ -3312,12 +3312,12 @@ const oi = (e) => {
|
|
|
3312
3312
|
}
|
|
3313
3313
|
}, li = "builder.tests", ln = (e) => `${li}.${e}`, ci = ({
|
|
3314
3314
|
contentId: e
|
|
3315
|
-
}) =>
|
|
3315
|
+
}) => xr({
|
|
3316
3316
|
name: ln(e),
|
|
3317
3317
|
canTrack: !0
|
|
3318
3318
|
}), ui = ({
|
|
3319
3319
|
contentId: e
|
|
3320
|
-
}) =>
|
|
3320
|
+
}) => br({
|
|
3321
3321
|
name: ln(e),
|
|
3322
3322
|
canTrack: !0
|
|
3323
3323
|
}), fi = ({
|
|
@@ -3404,7 +3404,7 @@ const oi = (e) => {
|
|
|
3404
3404
|
...e,
|
|
3405
3405
|
...o
|
|
3406
3406
|
};
|
|
3407
|
-
},
|
|
3407
|
+
}, Kt = (e) => fe(e) ? e : !0, mi = {
|
|
3408
3408
|
name: "Core:Button",
|
|
3409
3409
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3410
3410
|
defaultStyles: {
|
|
@@ -3685,7 +3685,7 @@ const oi = (e) => {
|
|
|
3685
3685
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3686
3686
|
hideFromUI: !0
|
|
3687
3687
|
}]
|
|
3688
|
-
},
|
|
3688
|
+
}, bi = ["text/javascript", "application/javascript", "application/ecmascript"], Oa = (e) => bi.includes(e.type), xi = {
|
|
3689
3689
|
name: "Fragment",
|
|
3690
3690
|
static: !0,
|
|
3691
3691
|
hidden: !0,
|
|
@@ -3712,15 +3712,15 @@ const oi = (e) => {
|
|
|
3712
3712
|
onChange: (e) => {
|
|
3713
3713
|
e.delete("srcset"), e.delete("noWebp");
|
|
3714
3714
|
function n(s, u = 6e4) {
|
|
3715
|
-
return new Promise((d,
|
|
3716
|
-
const
|
|
3717
|
-
let
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
},
|
|
3721
|
-
console.warn("Image load failed", P.error),
|
|
3722
|
-
}),
|
|
3723
|
-
|
|
3715
|
+
return new Promise((d, C) => {
|
|
3716
|
+
const w = document.createElement("img");
|
|
3717
|
+
let S = !1;
|
|
3718
|
+
w.onload = () => {
|
|
3719
|
+
S = !0, d(w);
|
|
3720
|
+
}, w.addEventListener("error", (P) => {
|
|
3721
|
+
console.warn("Image load failed", P.error), C(P.error);
|
|
3722
|
+
}), w.src = s, setTimeout(() => {
|
|
3723
|
+
S || C(new Error("Image load timed out"));
|
|
3724
3724
|
}, u);
|
|
3725
3725
|
});
|
|
3726
3726
|
}
|
|
@@ -3845,6 +3845,43 @@ const oi = (e) => {
|
|
|
3845
3845
|
}
|
|
3846
3846
|
}]
|
|
3847
3847
|
}, Ci = {
|
|
3848
|
+
name: "Slot",
|
|
3849
|
+
isRSC: !0,
|
|
3850
|
+
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
3851
|
+
docsLink: "https://www.builder.io/c/docs/symbols-with-blocks",
|
|
3852
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",
|
|
3853
|
+
// Maybe wrap this for canHaveChildren so bind children to this hm
|
|
3854
|
+
inputs: [{
|
|
3855
|
+
name: "name",
|
|
3856
|
+
type: "string",
|
|
3857
|
+
required: !0,
|
|
3858
|
+
defaultValue: "children"
|
|
3859
|
+
}]
|
|
3860
|
+
};
|
|
3861
|
+
function Ei(e) {
|
|
3862
|
+
var t, n, r;
|
|
3863
|
+
return /* @__PURE__ */ k(
|
|
3864
|
+
"div",
|
|
3865
|
+
{
|
|
3866
|
+
style: {
|
|
3867
|
+
pointerEvents: "auto"
|
|
3868
|
+
},
|
|
3869
|
+
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
3870
|
+
"builder-slot": e.name
|
|
3871
|
+
},
|
|
3872
|
+
children: /* @__PURE__ */ k(
|
|
3873
|
+
mt,
|
|
3874
|
+
{
|
|
3875
|
+
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
3876
|
+
path: `symbol.data.${e.name}`,
|
|
3877
|
+
context: e.builderContext,
|
|
3878
|
+
blocks: (r = e.builderContext.rootState) == null ? void 0 : r[e.name]
|
|
3879
|
+
}
|
|
3880
|
+
)
|
|
3881
|
+
}
|
|
3882
|
+
);
|
|
3883
|
+
}
|
|
3884
|
+
const Ii = {
|
|
3848
3885
|
name: "Symbol",
|
|
3849
3886
|
noWrap: !0,
|
|
3850
3887
|
static: !0,
|
|
@@ -3877,7 +3914,7 @@ const oi = (e) => {
|
|
|
3877
3914
|
hideFromUI: !0,
|
|
3878
3915
|
type: "boolean"
|
|
3879
3916
|
}]
|
|
3880
|
-
},
|
|
3917
|
+
}, Ti = {
|
|
3881
3918
|
name: "Text",
|
|
3882
3919
|
static: !0,
|
|
3883
3920
|
isRSC: !0,
|
|
@@ -3896,9 +3933,9 @@ const oi = (e) => {
|
|
|
3896
3933
|
textAlign: "center"
|
|
3897
3934
|
}
|
|
3898
3935
|
};
|
|
3899
|
-
function
|
|
3936
|
+
function Ai(e) {
|
|
3900
3937
|
var t;
|
|
3901
|
-
return /* @__PURE__ */
|
|
3938
|
+
return /* @__PURE__ */ k(
|
|
3902
3939
|
"div",
|
|
3903
3940
|
{
|
|
3904
3941
|
className: "builder-text",
|
|
@@ -3909,7 +3946,7 @@ function Ii(e) {
|
|
|
3909
3946
|
}
|
|
3910
3947
|
);
|
|
3911
3948
|
}
|
|
3912
|
-
const
|
|
3949
|
+
const Oi = {
|
|
3913
3950
|
name: "Video",
|
|
3914
3951
|
canHaveChildren: !0,
|
|
3915
3952
|
defaultStyles: {
|
|
@@ -4004,7 +4041,7 @@ const Ti = {
|
|
|
4004
4041
|
...vi
|
|
4005
4042
|
}, {
|
|
4006
4043
|
component: io,
|
|
4007
|
-
...
|
|
4044
|
+
...xi
|
|
4008
4045
|
}, {
|
|
4009
4046
|
component: ao,
|
|
4010
4047
|
...wi
|
|
@@ -4015,30 +4052,33 @@ const Ti = {
|
|
|
4015
4052
|
component: lo,
|
|
4016
4053
|
...ki
|
|
4017
4054
|
}, {
|
|
4018
|
-
component:
|
|
4019
|
-
...
|
|
4055
|
+
component: wa,
|
|
4056
|
+
...Ii
|
|
4020
4057
|
}, {
|
|
4021
|
-
component:
|
|
4022
|
-
...
|
|
4058
|
+
component: Ai,
|
|
4059
|
+
...Ti
|
|
4023
4060
|
}, {
|
|
4024
4061
|
component: co,
|
|
4025
|
-
...
|
|
4026
|
-
}
|
|
4062
|
+
...Oi
|
|
4063
|
+
}, {
|
|
4064
|
+
component: Ei,
|
|
4065
|
+
...Ci
|
|
4066
|
+
}], Qn = [], ja = (e) => ({
|
|
4027
4067
|
type: "builder.registerComponent",
|
|
4028
|
-
data:
|
|
4029
|
-
}),
|
|
4068
|
+
data: Gt(e)
|
|
4069
|
+
}), ji = (e) => {
|
|
4030
4070
|
const t = e.toString().trim();
|
|
4031
4071
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4032
|
-
},
|
|
4072
|
+
}, Ri = (e) => typeof e == "function" ? ji(e) : pt(e), Gt = ({
|
|
4033
4073
|
inputs: e,
|
|
4034
4074
|
...t
|
|
4035
4075
|
}) => ({
|
|
4036
4076
|
...pt(t),
|
|
4037
4077
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, a]) => ({
|
|
4038
4078
|
...r,
|
|
4039
|
-
[o]:
|
|
4079
|
+
[o]: Ri(a)
|
|
4040
4080
|
}), {}))
|
|
4041
|
-
}),
|
|
4081
|
+
}), Pi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4042
4082
|
function getAndSetVariantId() {
|
|
4043
4083
|
function setCookie(name, value, days) {
|
|
4044
4084
|
let expires = '';
|
|
@@ -4094,7 +4134,7 @@ const Ti = {
|
|
|
4094
4134
|
}).join('');
|
|
4095
4135
|
styleEl.innerHTML = newStyleStr;
|
|
4096
4136
|
}
|
|
4097
|
-
}`,
|
|
4137
|
+
}`, Ni = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4098
4138
|
if (!navigator.cookieEnabled) {
|
|
4099
4139
|
return;
|
|
4100
4140
|
}
|
|
@@ -4132,23 +4172,23 @@ const Ti = {
|
|
|
4132
4172
|
...t,
|
|
4133
4173
|
testVariationId: t.id,
|
|
4134
4174
|
id: e == null ? void 0 : e.id
|
|
4135
|
-
})),
|
|
4175
|
+
})), Bi = ({
|
|
4136
4176
|
canTrack: e,
|
|
4137
4177
|
content: t
|
|
4138
|
-
}) => !(!(st(t).length > 0) || !e || G()),
|
|
4139
|
-
window.${Er} = ${
|
|
4140
|
-
window.${Ir} = ${
|
|
4141
|
-
`,
|
|
4178
|
+
}) => !(!(st(t).length > 0) || !e || G()), Mi = (e) => e === "react" || e === "reactNative", Tr = Mi(be), Ui = () => `
|
|
4179
|
+
window.${Er} = ${Pi}
|
|
4180
|
+
window.${Ir} = ${Ni}
|
|
4181
|
+
`, Fi = (e, t) => `
|
|
4142
4182
|
window.${Er}(
|
|
4143
4183
|
"${t}",${JSON.stringify(e)}, ${Tr}
|
|
4144
|
-
)`,
|
|
4184
|
+
)`, Vi = ({
|
|
4145
4185
|
contentId: e,
|
|
4146
4186
|
variationId: t
|
|
4147
4187
|
}) => `window.${Ir}(
|
|
4148
4188
|
"${t}", "${e}", ${Tr}
|
|
4149
4189
|
)`;
|
|
4150
|
-
function
|
|
4151
|
-
return /* @__PURE__ */
|
|
4190
|
+
function Xt(e) {
|
|
4191
|
+
return /* @__PURE__ */ k(
|
|
4152
4192
|
"script",
|
|
4153
4193
|
{
|
|
4154
4194
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -4156,33 +4196,33 @@ function Gt(e) {
|
|
|
4156
4196
|
}
|
|
4157
4197
|
);
|
|
4158
4198
|
}
|
|
4159
|
-
const
|
|
4199
|
+
const _i = (e) => {
|
|
4160
4200
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4161
4201
|
return n || q.warn("No previewed ID found in search params."), n;
|
|
4162
4202
|
};
|
|
4163
|
-
function
|
|
4203
|
+
function Di() {
|
|
4164
4204
|
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Zr({
|
|
4165
4205
|
max: 500,
|
|
4166
4206
|
// how long to live in ms
|
|
4167
4207
|
ttl: 1e3 * 60 * 5
|
|
4168
4208
|
}));
|
|
4169
4209
|
}
|
|
4170
|
-
function
|
|
4171
|
-
|
|
4172
|
-
const t =
|
|
4210
|
+
function Li(e) {
|
|
4211
|
+
Di();
|
|
4212
|
+
const t = _i(e);
|
|
4173
4213
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4174
4214
|
}
|
|
4175
|
-
function
|
|
4215
|
+
function Wi() {
|
|
4176
4216
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4177
4217
|
}
|
|
4178
|
-
function
|
|
4179
|
-
const e =
|
|
4218
|
+
function $i() {
|
|
4219
|
+
const e = Wi().fetch;
|
|
4180
4220
|
if (typeof e > "u")
|
|
4181
4221
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4182
4222
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4183
4223
|
return e;
|
|
4184
4224
|
}
|
|
4185
|
-
const
|
|
4225
|
+
const Hi = $i();
|
|
4186
4226
|
function lt(e, t = null, n = ".") {
|
|
4187
4227
|
return Object.keys(e).reduce((r, o) => {
|
|
4188
4228
|
const a = e[o], s = [t, o].filter(Boolean).join(n);
|
|
@@ -4195,7 +4235,7 @@ function lt(e, t = null, n = ".") {
|
|
|
4195
4235
|
};
|
|
4196
4236
|
}, {});
|
|
4197
4237
|
}
|
|
4198
|
-
const
|
|
4238
|
+
const Ki = "v3", er = "builder.", Gi = "options.", Xi = (e) => {
|
|
4199
4239
|
const t = {};
|
|
4200
4240
|
return e.forEach((n, r) => {
|
|
4201
4241
|
t[r] = n;
|
|
@@ -4206,16 +4246,16 @@ const $i = "v3", er = "builder.", Hi = "options.", Ki = (e) => {
|
|
|
4206
4246
|
const t = Or(e), n = {};
|
|
4207
4247
|
return Object.keys(t).forEach((r) => {
|
|
4208
4248
|
if (r.startsWith(er)) {
|
|
4209
|
-
const o = r.replace(er, "").replace(
|
|
4249
|
+
const o = r.replace(er, "").replace(Gi, "");
|
|
4210
4250
|
n[o] = t[r];
|
|
4211
4251
|
}
|
|
4212
4252
|
}), n;
|
|
4213
|
-
},
|
|
4253
|
+
}, Yi = () => {
|
|
4214
4254
|
if (!G())
|
|
4215
4255
|
return {};
|
|
4216
4256
|
const e = new URLSearchParams(window.location.search);
|
|
4217
4257
|
return Ar(e);
|
|
4218
|
-
}, Or = (e) => e instanceof URLSearchParams ?
|
|
4258
|
+
}, Or = (e) => e instanceof URLSearchParams ? Xi(e) : e, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, cn = (e) => {
|
|
4219
4259
|
let {
|
|
4220
4260
|
noTraverse: t = !1
|
|
4221
4261
|
} = e;
|
|
@@ -4227,31 +4267,31 @@ const $i = "v3", er = "builder.", Hi = "options.", Ki = (e) => {
|
|
|
4227
4267
|
apiKey: s,
|
|
4228
4268
|
includeRefs: u = !0,
|
|
4229
4269
|
enrich: d,
|
|
4230
|
-
locale:
|
|
4231
|
-
apiVersion:
|
|
4232
|
-
fields:
|
|
4270
|
+
locale: C,
|
|
4271
|
+
apiVersion: w = Ki,
|
|
4272
|
+
fields: S,
|
|
4233
4273
|
omit: P,
|
|
4234
4274
|
offset: j,
|
|
4235
|
-
cacheSeconds:
|
|
4236
|
-
staleCacheSeconds:
|
|
4237
|
-
sort:
|
|
4275
|
+
cacheSeconds: E,
|
|
4276
|
+
staleCacheSeconds: x,
|
|
4277
|
+
sort: B,
|
|
4238
4278
|
includeUnpublished: $
|
|
4239
4279
|
} = e;
|
|
4240
4280
|
if (!s)
|
|
4241
4281
|
throw new Error("Missing API key");
|
|
4242
|
-
if (!["v2", "v3"].includes(
|
|
4243
|
-
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${
|
|
4282
|
+
if (!["v2", "v3"].includes(w))
|
|
4283
|
+
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${w}'`);
|
|
4244
4284
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
4245
|
-
const g = new URL(`https://cdn.builder.io/api/${
|
|
4246
|
-
if (g.searchParams.set("omit", P || "meta.componentsUsed"),
|
|
4285
|
+
const g = new URL(`https://cdn.builder.io/api/${w}/content/${a}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${u}${C ? `&locale=${C}` : ""}${d ? `&enrich=${d}` : ""}`);
|
|
4286
|
+
if (g.searchParams.set("omit", P || "meta.componentsUsed"), S && g.searchParams.set("fields", S), Number.isFinite(j) && j > -1 && g.searchParams.set("offset", String(Math.floor(j))), typeof $ == "boolean" && g.searchParams.set("includeUnpublished", String($)), E && tr(E) && g.searchParams.set("cacheSeconds", String(E)), x && tr(x) && g.searchParams.set("staleCacheSeconds", String(x)), B) {
|
|
4247
4287
|
const Z = lt({
|
|
4248
|
-
sort:
|
|
4288
|
+
sort: B
|
|
4249
4289
|
});
|
|
4250
|
-
for (const
|
|
4251
|
-
g.searchParams.set(
|
|
4290
|
+
for (const M in Z)
|
|
4291
|
+
g.searchParams.set(M, JSON.stringify(Z[M]));
|
|
4252
4292
|
}
|
|
4253
4293
|
const pe = {
|
|
4254
|
-
...
|
|
4294
|
+
...Yi(),
|
|
4255
4295
|
...Or(e.options || {})
|
|
4256
4296
|
}, de = lt(pe);
|
|
4257
4297
|
for (const Z in de)
|
|
@@ -4260,11 +4300,11 @@ const $i = "v3", er = "builder.", Hi = "options.", Ki = (e) => {
|
|
|
4260
4300
|
const Z = lt({
|
|
4261
4301
|
query: o
|
|
4262
4302
|
});
|
|
4263
|
-
for (const
|
|
4264
|
-
g.searchParams.set(
|
|
4303
|
+
for (const M in Z)
|
|
4304
|
+
g.searchParams.set(M, JSON.stringify(Z[M]));
|
|
4265
4305
|
}
|
|
4266
4306
|
return g;
|
|
4267
|
-
},
|
|
4307
|
+
}, Ji = (e) => "results" in e;
|
|
4268
4308
|
async function un(e) {
|
|
4269
4309
|
const t = await jr({
|
|
4270
4310
|
...e,
|
|
@@ -4272,20 +4312,20 @@ async function un(e) {
|
|
|
4272
4312
|
});
|
|
4273
4313
|
return t && t[0] || null;
|
|
4274
4314
|
}
|
|
4275
|
-
const
|
|
4315
|
+
const Ra = un, zi = async (e) => {
|
|
4276
4316
|
const t = cn(e);
|
|
4277
|
-
return await (await
|
|
4278
|
-
},
|
|
4279
|
-
const r =
|
|
4317
|
+
return await (await Hi(t.href)).json();
|
|
4318
|
+
}, qi = async (e, t, n = cn(e)) => {
|
|
4319
|
+
const r = Kt(e.canTrack);
|
|
4280
4320
|
if (n.search.includes("preview=")) {
|
|
4281
4321
|
const a = [];
|
|
4282
4322
|
for (const s of t.results) {
|
|
4283
|
-
const u =
|
|
4323
|
+
const u = Li(n.searchParams);
|
|
4284
4324
|
a.push(u || s);
|
|
4285
4325
|
}
|
|
4286
4326
|
t.results = a;
|
|
4287
4327
|
}
|
|
4288
|
-
if (!r || !(G() ||
|
|
4328
|
+
if (!r || !(G() || be === "reactNative"))
|
|
4289
4329
|
return t.results;
|
|
4290
4330
|
try {
|
|
4291
4331
|
const a = [];
|
|
@@ -4302,8 +4342,8 @@ const Oa = un, Yi = async (e) => {
|
|
|
4302
4342
|
};
|
|
4303
4343
|
async function jr(e) {
|
|
4304
4344
|
try {
|
|
4305
|
-
const t = cn(e), n = await
|
|
4306
|
-
return
|
|
4345
|
+
const t = cn(e), n = await zi(e);
|
|
4346
|
+
return Ji(n) ? qi(e, n) : (q.error("Error fetching data. ", {
|
|
4307
4347
|
url: t,
|
|
4308
4348
|
content: n,
|
|
4309
4349
|
options: e
|
|
@@ -4312,45 +4352,45 @@ async function jr(e) {
|
|
|
4312
4352
|
return q.error("Error fetching data. ", t), null;
|
|
4313
4353
|
}
|
|
4314
4354
|
}
|
|
4315
|
-
const
|
|
4316
|
-
function
|
|
4317
|
-
return !G() ||
|
|
4355
|
+
const Pa = jr;
|
|
4356
|
+
function Na() {
|
|
4357
|
+
return !G() || Yt() ? !1 : location.search.indexOf("builder.preview=") !== -1;
|
|
4318
4358
|
}
|
|
4319
|
-
function
|
|
4359
|
+
function Zi() {
|
|
4320
4360
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4321
4361
|
const t = Math.random() * 16 | 0;
|
|
4322
4362
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4323
4363
|
});
|
|
4324
4364
|
}
|
|
4325
4365
|
function Rr() {
|
|
4326
|
-
return
|
|
4366
|
+
return Zi().replace(/-/g, "");
|
|
4327
4367
|
}
|
|
4328
|
-
const Pr = "builderSessionId",
|
|
4368
|
+
const Pr = "builderSessionId", Qi = async ({
|
|
4329
4369
|
canTrack: e
|
|
4330
4370
|
}) => {
|
|
4331
4371
|
if (!e)
|
|
4332
4372
|
return;
|
|
4333
|
-
const t = await
|
|
4373
|
+
const t = await xr({
|
|
4334
4374
|
name: Pr,
|
|
4335
4375
|
canTrack: e
|
|
4336
4376
|
});
|
|
4337
4377
|
if (fe(t))
|
|
4338
4378
|
return t;
|
|
4339
4379
|
{
|
|
4340
|
-
const n =
|
|
4341
|
-
return
|
|
4380
|
+
const n = ea();
|
|
4381
|
+
return ta({
|
|
4342
4382
|
id: n,
|
|
4343
4383
|
canTrack: e
|
|
4344
4384
|
}), n;
|
|
4345
4385
|
}
|
|
4346
|
-
},
|
|
4386
|
+
}, ea = () => Rr(), ta = ({
|
|
4347
4387
|
id: e,
|
|
4348
4388
|
canTrack: t
|
|
4349
4389
|
}) => wr({
|
|
4350
4390
|
name: Pr,
|
|
4351
4391
|
value: e,
|
|
4352
4392
|
canTrack: t
|
|
4353
|
-
}), Nr = () => G() && typeof localStorage < "u" ? localStorage : void 0,
|
|
4393
|
+
}), Nr = () => G() && typeof localStorage < "u" ? localStorage : void 0, na = ({
|
|
4354
4394
|
key: e,
|
|
4355
4395
|
canTrack: t
|
|
4356
4396
|
}) => {
|
|
@@ -4361,7 +4401,7 @@ const Pr = "builderSessionId", qi = async ({
|
|
|
4361
4401
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4362
4402
|
return;
|
|
4363
4403
|
}
|
|
4364
|
-
},
|
|
4404
|
+
}, ra = ({
|
|
4365
4405
|
key: e,
|
|
4366
4406
|
canTrack: t,
|
|
4367
4407
|
value: n
|
|
@@ -4372,32 +4412,32 @@ const Pr = "builderSessionId", qi = async ({
|
|
|
4372
4412
|
} catch (o) {
|
|
4373
4413
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4374
4414
|
}
|
|
4375
|
-
},
|
|
4415
|
+
}, Br = "builderVisitorId", oa = ({
|
|
4376
4416
|
canTrack: e
|
|
4377
4417
|
}) => {
|
|
4378
4418
|
if (!e)
|
|
4379
4419
|
return;
|
|
4380
|
-
const t =
|
|
4381
|
-
key:
|
|
4420
|
+
const t = na({
|
|
4421
|
+
key: Br,
|
|
4382
4422
|
canTrack: e
|
|
4383
4423
|
});
|
|
4384
4424
|
if (fe(t))
|
|
4385
4425
|
return t;
|
|
4386
4426
|
{
|
|
4387
|
-
const n =
|
|
4388
|
-
return
|
|
4427
|
+
const n = ia();
|
|
4428
|
+
return aa({
|
|
4389
4429
|
id: n,
|
|
4390
4430
|
canTrack: e
|
|
4391
4431
|
}), n;
|
|
4392
4432
|
}
|
|
4393
|
-
},
|
|
4433
|
+
}, ia = () => Rr(), aa = ({
|
|
4394
4434
|
id: e,
|
|
4395
4435
|
canTrack: t
|
|
4396
|
-
}) =>
|
|
4397
|
-
key:
|
|
4436
|
+
}) => ra({
|
|
4437
|
+
key: Br,
|
|
4398
4438
|
value: e,
|
|
4399
4439
|
canTrack: t
|
|
4400
|
-
}),
|
|
4440
|
+
}), sa = async ({
|
|
4401
4441
|
canTrack: e
|
|
4402
4442
|
}) => {
|
|
4403
4443
|
if (!e)
|
|
@@ -4405,16 +4445,16 @@ const Pr = "builderSessionId", qi = async ({
|
|
|
4405
4445
|
visitorId: void 0,
|
|
4406
4446
|
sessionId: void 0
|
|
4407
4447
|
};
|
|
4408
|
-
const t = await
|
|
4448
|
+
const t = await Qi({
|
|
4409
4449
|
canTrack: e
|
|
4410
|
-
}), n =
|
|
4450
|
+
}), n = oa({
|
|
4411
4451
|
canTrack: e
|
|
4412
4452
|
});
|
|
4413
4453
|
return {
|
|
4414
4454
|
sessionId: t,
|
|
4415
4455
|
visitorId: n
|
|
4416
4456
|
};
|
|
4417
|
-
},
|
|
4457
|
+
}, la = async ({
|
|
4418
4458
|
type: e,
|
|
4419
4459
|
canTrack: t,
|
|
4420
4460
|
apiKey: n,
|
|
@@ -4428,23 +4468,23 @@ const Pr = "builderSessionId", qi = async ({
|
|
|
4428
4468
|
url: location.href,
|
|
4429
4469
|
...r
|
|
4430
4470
|
},
|
|
4431
|
-
...await
|
|
4471
|
+
...await sa({
|
|
4432
4472
|
canTrack: t
|
|
4433
4473
|
}),
|
|
4434
4474
|
userAttributes: lr(),
|
|
4435
4475
|
ownerId: n
|
|
4436
4476
|
}
|
|
4437
4477
|
});
|
|
4438
|
-
async function
|
|
4478
|
+
async function ca(e) {
|
|
4439
4479
|
if (!e.apiKey) {
|
|
4440
4480
|
q.error("Missing API key for track call. Please provide your API key.");
|
|
4441
4481
|
return;
|
|
4442
4482
|
}
|
|
4443
|
-
if (e.canTrack && !
|
|
4483
|
+
if (e.canTrack && !Yt() && (G() || be === "reactNative"))
|
|
4444
4484
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4445
4485
|
method: "POST",
|
|
4446
4486
|
body: JSON.stringify({
|
|
4447
|
-
events: [await
|
|
4487
|
+
events: [await la(e)]
|
|
4448
4488
|
}),
|
|
4449
4489
|
headers: {
|
|
4450
4490
|
"content-type": "application/json"
|
|
@@ -4454,14 +4494,14 @@ async function sa(e) {
|
|
|
4454
4494
|
console.error("Failed to track: ", t);
|
|
4455
4495
|
});
|
|
4456
4496
|
}
|
|
4457
|
-
const
|
|
4497
|
+
const Ba = (e) => ca({
|
|
4458
4498
|
...e,
|
|
4459
4499
|
canTrack: !0
|
|
4460
4500
|
});
|
|
4461
4501
|
function nr(e) {
|
|
4462
4502
|
return Math.round(e * 1e3) / 1e3;
|
|
4463
4503
|
}
|
|
4464
|
-
const
|
|
4504
|
+
const ua = (e, t, n = !0) => {
|
|
4465
4505
|
if (!(e instanceof HTMLElement))
|
|
4466
4506
|
return null;
|
|
4467
4507
|
let r = n ? e : e.parentElement;
|
|
@@ -4472,7 +4512,7 @@ const la = (e, t, n = !0) => {
|
|
|
4472
4512
|
return r;
|
|
4473
4513
|
} while (r = r.parentElement);
|
|
4474
4514
|
return null;
|
|
4475
|
-
},
|
|
4515
|
+
}, fa = (e) => ua(e, (t) => {
|
|
4476
4516
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4477
4517
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4478
4518
|
}), rr = ({
|
|
@@ -4484,8 +4524,8 @@ const la = (e, t, n = !0) => {
|
|
|
4484
4524
|
x: a,
|
|
4485
4525
|
y: s
|
|
4486
4526
|
};
|
|
4487
|
-
},
|
|
4488
|
-
const t = e.target, n = t &&
|
|
4527
|
+
}, Ma = (e) => {
|
|
4528
|
+
const t = e.target, n = t && fa(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4489
4529
|
return {
|
|
4490
4530
|
targetBuilderElement: r || void 0,
|
|
4491
4531
|
metadata: {
|
|
@@ -4500,8 +4540,8 @@ const la = (e, t, n = !0) => {
|
|
|
4500
4540
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4501
4541
|
}
|
|
4502
4542
|
};
|
|
4503
|
-
},
|
|
4504
|
-
function
|
|
4543
|
+
}, pa = "0.12.1", or = {};
|
|
4544
|
+
function da(e, t) {
|
|
4505
4545
|
let n = or[e];
|
|
4506
4546
|
if (n || (n = or[e] = []), n.push(t), G()) {
|
|
4507
4547
|
const r = {
|
|
@@ -4518,8 +4558,8 @@ function fa(e, t) {
|
|
|
4518
4558
|
}
|
|
4519
4559
|
}
|
|
4520
4560
|
}
|
|
4521
|
-
const
|
|
4522
|
-
|
|
4561
|
+
const Ua = () => {
|
|
4562
|
+
da("insertMenu", {
|
|
4523
4563
|
name: "_default",
|
|
4524
4564
|
default: !0,
|
|
4525
4565
|
items: [{
|
|
@@ -4542,13 +4582,13 @@ const Ma = () => {
|
|
|
4542
4582
|
});
|
|
4543
4583
|
};
|
|
4544
4584
|
let ir = !1;
|
|
4545
|
-
const
|
|
4585
|
+
const Fa = (e = {}) => {
|
|
4546
4586
|
var t, n;
|
|
4547
4587
|
ir || (ir = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
4548
4588
|
type: "builder.sdkInfo",
|
|
4549
4589
|
data: {
|
|
4550
|
-
target:
|
|
4551
|
-
version:
|
|
4590
|
+
target: be,
|
|
4591
|
+
version: pa,
|
|
4552
4592
|
supportsPatchUpdates: !1,
|
|
4553
4593
|
// Supports builder-model="..." attribute which is needed to
|
|
4554
4594
|
// scope our '+ add block' button styling
|
|
@@ -4567,20 +4607,20 @@ const Ba = (e = {}) => {
|
|
|
4567
4607
|
if (r != null && r.type)
|
|
4568
4608
|
switch (r.type) {
|
|
4569
4609
|
case "builder.evaluate": {
|
|
4570
|
-
const s = r.data.text, u = r.data.arguments || [], d = r.data.id,
|
|
4571
|
-
let
|
|
4610
|
+
const s = r.data.text, u = r.data.arguments || [], d = r.data.id, C = new Function(s);
|
|
4611
|
+
let w, S = null;
|
|
4572
4612
|
try {
|
|
4573
|
-
|
|
4613
|
+
w = C.apply(null, u);
|
|
4574
4614
|
} catch (P) {
|
|
4575
|
-
|
|
4615
|
+
S = P;
|
|
4576
4616
|
}
|
|
4577
|
-
|
|
4617
|
+
S ? (o = window.parent) == null || o.postMessage({
|
|
4578
4618
|
type: "builder.evaluateError",
|
|
4579
4619
|
data: {
|
|
4580
4620
|
id: d,
|
|
4581
|
-
error:
|
|
4621
|
+
error: S.message
|
|
4582
4622
|
}
|
|
4583
|
-
}, "*") :
|
|
4623
|
+
}, "*") : w && typeof w.then == "function" ? w.then((P) => {
|
|
4584
4624
|
var j;
|
|
4585
4625
|
(j = window.parent) == null || j.postMessage({
|
|
4586
4626
|
type: "builder.evaluateResult",
|
|
@@ -4592,7 +4632,7 @@ const Ba = (e = {}) => {
|
|
|
4592
4632
|
}).catch(console.error) : (a = window.parent) == null || a.postMessage({
|
|
4593
4633
|
type: "builder.evaluateResult",
|
|
4594
4634
|
data: {
|
|
4595
|
-
result:
|
|
4635
|
+
result: w,
|
|
4596
4636
|
id: d
|
|
4597
4637
|
}
|
|
4598
4638
|
}, "*");
|
|
@@ -4600,7 +4640,7 @@ const Ba = (e = {}) => {
|
|
|
4600
4640
|
}
|
|
4601
4641
|
}
|
|
4602
4642
|
})));
|
|
4603
|
-
},
|
|
4643
|
+
}, ha = (e) => {
|
|
4604
4644
|
var a;
|
|
4605
4645
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((a = e == null ? void 0 : e.files) == null ? void 0 : a.regular);
|
|
4606
4646
|
let o = "";
|
|
@@ -4626,22 +4666,22 @@ font-weight: ${s};
|
|
|
4626
4666
|
`.trim());
|
|
4627
4667
|
}
|
|
4628
4668
|
return o;
|
|
4629
|
-
},
|
|
4669
|
+
}, ma = ({
|
|
4630
4670
|
customFonts: e
|
|
4631
4671
|
}) => {
|
|
4632
4672
|
var t;
|
|
4633
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4634
|
-
},
|
|
4673
|
+
return ((t = e == null ? void 0 : e.map((n) => ha(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4674
|
+
}, ga = ({
|
|
4635
4675
|
cssCode: e,
|
|
4636
4676
|
contentId: t
|
|
4637
4677
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4638
|
-
function
|
|
4678
|
+
function ya(e) {
|
|
4639
4679
|
const t = `
|
|
4640
|
-
${
|
|
4680
|
+
${ga({
|
|
4641
4681
|
cssCode: e.cssCode,
|
|
4642
4682
|
contentId: e.contentId
|
|
4643
4683
|
})}
|
|
4644
|
-
${
|
|
4684
|
+
${ma({
|
|
4645
4685
|
customFonts: e.customFonts
|
|
4646
4686
|
})}
|
|
4647
4687
|
|
|
@@ -4658,9 +4698,9 @@ ${da({
|
|
|
4658
4698
|
font-family: inherit;
|
|
4659
4699
|
}
|
|
4660
4700
|
`.trim();
|
|
4661
|
-
return /* @__PURE__ */
|
|
4701
|
+
return /* @__PURE__ */ k(dt, { styles: t });
|
|
4662
4702
|
}
|
|
4663
|
-
const
|
|
4703
|
+
const va = ({
|
|
4664
4704
|
content: e,
|
|
4665
4705
|
data: t,
|
|
4666
4706
|
locale: n
|
|
@@ -4677,7 +4717,7 @@ const ga = ({
|
|
|
4677
4717
|
locale: n
|
|
4678
4718
|
} : {}
|
|
4679
4719
|
};
|
|
4680
|
-
},
|
|
4720
|
+
}, ba = ({
|
|
4681
4721
|
content: e,
|
|
4682
4722
|
data: t
|
|
4683
4723
|
}) => e ? {
|
|
@@ -4689,8 +4729,8 @@ const ga = ({
|
|
|
4689
4729
|
meta: e == null ? void 0 : e.meta
|
|
4690
4730
|
} : void 0;
|
|
4691
4731
|
function ar(e) {
|
|
4692
|
-
var o, a, s, u, d,
|
|
4693
|
-
const t =
|
|
4732
|
+
var o, a, s, u, d, C, w, S, P;
|
|
4733
|
+
const t = Vi({
|
|
4694
4734
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4695
4735
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4696
4736
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4705,21 +4745,21 @@ function ar(e) {
|
|
|
4705
4745
|
...Qn,
|
|
4706
4746
|
...e.customComponents || []
|
|
4707
4747
|
].reduce(
|
|
4708
|
-
(j, { component:
|
|
4748
|
+
(j, { component: E, ...x }) => ({
|
|
4709
4749
|
...j,
|
|
4710
|
-
[
|
|
4711
|
-
component:
|
|
4712
|
-
...
|
|
4750
|
+
[x.name]: {
|
|
4751
|
+
component: E,
|
|
4752
|
+
...Gt(x)
|
|
4713
4753
|
}
|
|
4714
4754
|
}),
|
|
4715
4755
|
{}
|
|
4716
4756
|
), r = {
|
|
4717
|
-
content:
|
|
4757
|
+
content: ba({
|
|
4718
4758
|
content: e.content,
|
|
4719
4759
|
data: e.data
|
|
4720
4760
|
}),
|
|
4721
4761
|
localState: void 0,
|
|
4722
|
-
rootState:
|
|
4762
|
+
rootState: va({
|
|
4723
4763
|
content: e.content,
|
|
4724
4764
|
data: e.data,
|
|
4725
4765
|
locale: e.locale
|
|
@@ -4738,9 +4778,9 @@ function ar(e) {
|
|
|
4738
4778
|
...Qn,
|
|
4739
4779
|
...e.customComponents || []
|
|
4740
4780
|
].reduce(
|
|
4741
|
-
(j, { component:
|
|
4781
|
+
(j, { component: E, ...x }) => ({
|
|
4742
4782
|
...j,
|
|
4743
|
-
[
|
|
4783
|
+
[x.name]: Gt(x)
|
|
4744
4784
|
}),
|
|
4745
4785
|
{}
|
|
4746
4786
|
),
|
|
@@ -4765,19 +4805,19 @@ function ar(e) {
|
|
|
4765
4805
|
contentWrapper: e.contentWrapper,
|
|
4766
4806
|
contentWrapperProps: e.contentWrapperProps,
|
|
4767
4807
|
children: [
|
|
4768
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
4769
|
-
/* @__PURE__ */
|
|
4770
|
-
|
|
4808
|
+
e.isSsrAbTest ? /* @__PURE__ */ k(D, { children: /* @__PURE__ */ k(Xt, { scriptStr: t }) }) : null,
|
|
4809
|
+
/* @__PURE__ */ k(D, { children: /* @__PURE__ */ k(
|
|
4810
|
+
ya,
|
|
4771
4811
|
{
|
|
4772
4812
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
4773
4813
|
cssCode: (d = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : d.cssCode,
|
|
4774
|
-
customFonts: (
|
|
4814
|
+
customFonts: (w = (C = r.content) == null ? void 0 : C.data) == null ? void 0 : w.customFonts
|
|
4775
4815
|
}
|
|
4776
4816
|
) }),
|
|
4777
|
-
/* @__PURE__ */
|
|
4778
|
-
|
|
4817
|
+
/* @__PURE__ */ k(
|
|
4818
|
+
mt,
|
|
4779
4819
|
{
|
|
4780
|
-
blocks: (P = (
|
|
4820
|
+
blocks: (P = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : P.blocks,
|
|
4781
4821
|
context: r,
|
|
4782
4822
|
registeredComponents: n
|
|
4783
4823
|
}
|
|
@@ -4786,17 +4826,17 @@ function ar(e) {
|
|
|
4786
4826
|
}
|
|
4787
4827
|
);
|
|
4788
4828
|
}
|
|
4789
|
-
function
|
|
4829
|
+
function Mr(e) {
|
|
4790
4830
|
var a, s;
|
|
4791
|
-
const t =
|
|
4792
|
-
canTrack:
|
|
4831
|
+
const t = Bi({
|
|
4832
|
+
canTrack: Kt(e.canTrack),
|
|
4793
4833
|
content: e.content
|
|
4794
4834
|
}), n = function() {
|
|
4795
4835
|
var d;
|
|
4796
|
-
return
|
|
4797
|
-
st(e.content).map((
|
|
4798
|
-
id:
|
|
4799
|
-
testRatio:
|
|
4836
|
+
return Fi(
|
|
4837
|
+
st(e.content).map((C) => ({
|
|
4838
|
+
id: C.testVariationId,
|
|
4839
|
+
testRatio: C.testRatio
|
|
4800
4840
|
})),
|
|
4801
4841
|
((d = e.content) == null ? void 0 : d.id) || ""
|
|
4802
4842
|
);
|
|
@@ -4809,21 +4849,21 @@ function Br(e) {
|
|
|
4809
4849
|
testVariationId: (d = e.content) == null ? void 0 : d.id
|
|
4810
4850
|
} : di({
|
|
4811
4851
|
item: e.content,
|
|
4812
|
-
canTrack:
|
|
4852
|
+
canTrack: Kt(e.canTrack)
|
|
4813
4853
|
});
|
|
4814
4854
|
};
|
|
4815
4855
|
return /* @__PURE__ */ ye(D, { children: [
|
|
4816
|
-
!e.__isNestedRender &&
|
|
4856
|
+
!e.__isNestedRender && be !== "reactNative" ? /* @__PURE__ */ k(D, { children: /* @__PURE__ */ k(Xt, { scriptStr: Ui() }) }) : null,
|
|
4817
4857
|
t ? /* @__PURE__ */ ye(D, { children: [
|
|
4818
|
-
/* @__PURE__ */
|
|
4858
|
+
/* @__PURE__ */ k(
|
|
4819
4859
|
dt,
|
|
4820
4860
|
{
|
|
4821
4861
|
id: `variants-styles-${(a = e.content) == null ? void 0 : a.id}`,
|
|
4822
4862
|
styles: r()
|
|
4823
4863
|
}
|
|
4824
4864
|
),
|
|
4825
|
-
/* @__PURE__ */
|
|
4826
|
-
(s = st(e.content)) == null ? void 0 : s.map((u) => /* @__PURE__ */
|
|
4865
|
+
/* @__PURE__ */ k(Xt, { scriptStr: n() }),
|
|
4866
|
+
(s = st(e.content)) == null ? void 0 : s.map((u) => /* @__PURE__ */ k(
|
|
4827
4867
|
ar,
|
|
4828
4868
|
{
|
|
4829
4869
|
content: u,
|
|
@@ -4847,7 +4887,7 @@ function Br(e) {
|
|
|
4847
4887
|
u.testVariationId
|
|
4848
4888
|
))
|
|
4849
4889
|
] }) : null,
|
|
4850
|
-
/* @__PURE__ */
|
|
4890
|
+
/* @__PURE__ */ k(
|
|
4851
4891
|
ar,
|
|
4852
4892
|
{
|
|
4853
4893
|
content: o(),
|
|
@@ -4871,7 +4911,7 @@ function Br(e) {
|
|
|
4871
4911
|
)
|
|
4872
4912
|
] });
|
|
4873
4913
|
}
|
|
4874
|
-
const
|
|
4914
|
+
const xa = async ({
|
|
4875
4915
|
builderContextValue: e,
|
|
4876
4916
|
symbol: t
|
|
4877
4917
|
}) => {
|
|
@@ -4890,40 +4930,43 @@ const va = async ({
|
|
|
4890
4930
|
q.error("Could not fetch symbol content: ", n);
|
|
4891
4931
|
});
|
|
4892
4932
|
};
|
|
4893
|
-
async function
|
|
4894
|
-
var r, o, a, s;
|
|
4933
|
+
async function wa(e) {
|
|
4934
|
+
var r, o, a, s, u;
|
|
4895
4935
|
const t = function() {
|
|
4896
|
-
var
|
|
4936
|
+
var C, w;
|
|
4897
4937
|
return [
|
|
4898
4938
|
e.attributes.className,
|
|
4899
4939
|
"builder-symbol",
|
|
4900
|
-
(
|
|
4901
|
-
(
|
|
4940
|
+
(C = e.symbol) != null && C.inline ? "builder-inline-symbol" : void 0,
|
|
4941
|
+
(w = e.symbol) != null && w.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4902
4942
|
].filter(Boolean).join(" ");
|
|
4903
|
-
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await
|
|
4943
|
+
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await xa({
|
|
4904
4944
|
symbol: e.symbol,
|
|
4905
4945
|
builderContextValue: e.builderContext
|
|
4906
4946
|
});
|
|
4907
|
-
return /* @__PURE__ */
|
|
4908
|
-
|
|
4947
|
+
return /* @__PURE__ */ k("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ k(
|
|
4948
|
+
Mr,
|
|
4909
4949
|
{
|
|
4910
4950
|
__isNestedRender: !0,
|
|
4911
4951
|
apiVersion: e.builderContext.apiVersion,
|
|
4912
4952
|
apiKey: e.builderContext.apiKey,
|
|
4913
|
-
context:
|
|
4953
|
+
context: {
|
|
4954
|
+
...e.builderContext.context,
|
|
4955
|
+
symbolId: (o = e.builderBlock) == null ? void 0 : o.id
|
|
4956
|
+
},
|
|
4914
4957
|
customComponents: Object.values(e.builderComponents),
|
|
4915
4958
|
data: {
|
|
4916
|
-
...(
|
|
4959
|
+
...(a = e.symbol) == null ? void 0 : a.data,
|
|
4917
4960
|
...e.builderContext.localState,
|
|
4918
|
-
...(
|
|
4961
|
+
...(s = n == null ? void 0 : n.data) == null ? void 0 : s.state
|
|
4919
4962
|
},
|
|
4920
|
-
model: (
|
|
4963
|
+
model: (u = e.symbol) == null ? void 0 : u.model,
|
|
4921
4964
|
content: n
|
|
4922
4965
|
}
|
|
4923
4966
|
) });
|
|
4924
4967
|
}
|
|
4925
|
-
const
|
|
4926
|
-
function
|
|
4968
|
+
const Va = mt, _a = Mr, sr = {};
|
|
4969
|
+
function Da(e) {
|
|
4927
4970
|
if (G()) {
|
|
4928
4971
|
Object.assign(sr, e);
|
|
4929
4972
|
const t = {
|
|
@@ -4933,7 +4976,7 @@ function Va(e) {
|
|
|
4933
4976
|
parent.postMessage(t, "*");
|
|
4934
4977
|
}
|
|
4935
4978
|
}
|
|
4936
|
-
const
|
|
4979
|
+
const La = async (e) => {
|
|
4937
4980
|
var r, o, a;
|
|
4938
4981
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
4939
4982
|
...e,
|
|
@@ -4955,38 +4998,38 @@ const _a = async (e) => {
|
|
|
4955
4998
|
};
|
|
4956
4999
|
export {
|
|
4957
5000
|
Ar as A,
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
5001
|
+
mt as B,
|
|
5002
|
+
Mr as C,
|
|
5003
|
+
Ba as D,
|
|
5004
|
+
La as E,
|
|
5005
|
+
Va as R,
|
|
5006
|
+
wa as S,
|
|
5007
|
+
Ai as T,
|
|
5008
|
+
ca as _,
|
|
5009
|
+
Ta as a,
|
|
5010
|
+
Aa as b,
|
|
5011
|
+
Oa as c,
|
|
4969
5012
|
G as d,
|
|
4970
|
-
|
|
4971
|
-
|
|
5013
|
+
Kt as e,
|
|
5014
|
+
Na as f,
|
|
4972
5015
|
qo as g,
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
5016
|
+
sn as h,
|
|
5017
|
+
Yt as i,
|
|
5018
|
+
Ma as j,
|
|
4976
5019
|
pt as k,
|
|
4977
5020
|
q as l,
|
|
4978
|
-
|
|
5021
|
+
ja as m,
|
|
4979
5022
|
un as n,
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
5023
|
+
Hi as o,
|
|
5024
|
+
Di as p,
|
|
5025
|
+
_a as q,
|
|
5026
|
+
Ua as r,
|
|
5027
|
+
Fa as s,
|
|
4985
5028
|
ti as t,
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
5029
|
+
da as u,
|
|
5030
|
+
Da as v,
|
|
5031
|
+
qi as w,
|
|
4989
5032
|
jr as x,
|
|
4990
|
-
|
|
4991
|
-
|
|
5033
|
+
Pa as y,
|
|
5034
|
+
Ra as z
|
|
4992
5035
|
};
|