@builder.io/sdk-vue 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{block-styles-Csi42CXj.cjs → block-styles-GNMuV-dL.cjs} +1 -1
- package/lib/browser/{block-styles-svOVzDaV.js → block-styles-mooo-nyz.js} +1 -1
- package/lib/browser/{block-wrapper-KGQI5yrU.js → block-wrapper-3cYhLXDa.js} +3 -3
- package/lib/browser/{block-wrapper-GE-RFbYp.cjs → block-wrapper-3lUpHc_o.cjs} +1 -1
- package/lib/browser/{component-ref-k5NF2o_L.js → component-ref-A7Jq3Gj-.js} +2 -2
- package/lib/browser/{component-ref-X2UZCaau.cjs → component-ref-VU3zC7u4.cjs} +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/register-component.d.ts +2 -2
- package/lib/browser/{get-block-properties-lkKJCs4_.cjs → get-block-properties-Eyms9W8F.cjs} +1 -1
- package/lib/browser/{get-block-properties-1Sn1T_z8.js → get-block-properties-zWa4TdEe.js} +1 -1
- package/lib/browser/{index-zc0i09p9.js → index-ToBML8l-.js} +259 -263
- package/lib/browser/index-hqlNfni4.cjs +166 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-BxE-FBVv.js → repeated-block-AKO0QANq.js} +2 -2
- package/lib/browser/{repeated-block-U8EfEnWl.cjs → repeated-block-EF0Lb_nG.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{block-styles-fRc_JL86.cjs → block-styles-dvlkOfyP.cjs} +1 -1
- package/lib/edge/{block-styles-F04q1oh7.js → block-styles-uNDwUd0D.js} +1 -1
- package/lib/{node/block-wrapper-x4ztktEw.cjs → edge/block-wrapper-BGvBDPqY.cjs} +1 -1
- package/lib/edge/{block-wrapper-8j2OMXf0.js → block-wrapper-I5fwbjlI.js} +3 -3
- package/lib/{node/component-ref-SSAGqUU1.js → edge/component-ref-eBvirZir.js} +2 -2
- package/lib/{node/component-ref-Xsv_XmLR.cjs → edge/component-ref-xFqV17uV.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/register-component.d.ts +2 -2
- package/lib/edge/{get-block-properties-T-X8E9sU.cjs → get-block-properties-Kv6zU6Qq.cjs} +1 -1
- package/lib/edge/{get-block-properties-aLqPRHin.js → get-block-properties-gUzPvYeh.js} +1 -1
- package/lib/edge/{index-Hw76nggP.js → index-R7KJFxff.js} +501 -505
- package/lib/edge/index-bWkTiFYf.cjs +186 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-iGJv6g_d.cjs → repeated-block-ixPgqHgZ.cjs} +1 -1
- package/lib/edge/{repeated-block-RuwJfamt.js → repeated-block-kklYPBl5.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/node/{block-styles-akqgR8wB.js → block-styles-AzjY9HjK.js} +1 -1
- package/lib/node/{block-styles-fnIQFp0q.cjs → block-styles-zxsWOqgo.cjs} +1 -1
- package/lib/node/{block-wrapper-xIeM4taN.js → block-wrapper-cHo1DCUj.js} +3 -3
- package/lib/{edge/block-wrapper-ai3_EF77.cjs → node/block-wrapper-fKNvisIf.cjs} +1 -1
- package/lib/{edge/component-ref-okii_K_0.js → node/component-ref-Vf2FhwSC.js} +2 -2
- package/lib/{edge/component-ref-adfadHtQ.cjs → node/component-ref-xMPuQvi5.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/register-component.d.ts +2 -2
- package/lib/node/{get-block-properties-gYAacxBD.cjs → get-block-properties-dCFsQQmt.cjs} +1 -1
- package/lib/node/{get-block-properties-4897A0cX.js → get-block-properties-l5K2eFkb.js} +1 -1
- package/lib/node/{index-ZwTY1dOi.js → index-bsHToMxW.js} +239 -243
- package/lib/node/index-xYSllAJG.cjs +213 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-hqi2-jn4.js → repeated-block-7np7Gpgm.js} +2 -2
- package/lib/node/{repeated-block-kVVd7Ki5.cjs → repeated-block-DcYWHCj0.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/index-5WrmkFk4.cjs +0 -166
- package/lib/edge/index-kEvRBdly.cjs +0 -186
- package/lib/node/index-zlCXfe4Y.cjs +0 -213
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var No = Object.defineProperty;
|
|
2
2
|
var Vo = (e, t, n) => t in e ? No(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as j, openBlock as y, createElementBlock as T, Fragment as Z, createBlock as
|
|
5
|
-
const
|
|
3
|
+
var an = (e, t, n) => (Vo(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import { defineComponent as j, openBlock as y, createElementBlock as T, Fragment as Z, createBlock as D, resolveDynamicComponent as ct, mergeProps as z, toHandlers as ce, withCtx as Te, renderSlot as pe, resolveComponent as U, createTextVNode as Uo, toDisplayString as Bt, defineAsyncComponent as ot, createVNode as ie, renderList as Ee, createCommentVNode as M, h as jr, createElementVNode as ft, normalizeStyle as Oe, normalizeClass as mt, markRaw as Do } from "vue";
|
|
5
|
+
const Fo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Mo = (e) => typeof e == "string" && Fo.has(e.toLowerCase());
|
|
6
6
|
function he(e = {}, t, n) {
|
|
7
7
|
const r = {};
|
|
8
8
|
for (const o in e) {
|
|
@@ -26,13 +26,13 @@ const Wo = j({
|
|
|
26
26
|
return n;
|
|
27
27
|
};
|
|
28
28
|
function Lo(e, t, n, r, o, i) {
|
|
29
|
-
return e.isEmptyElement(e.TagName) ? (y(),
|
|
30
|
-
typeof e.TagName == "string" ? (y(),
|
|
29
|
+
return e.isEmptyElement(e.TagName) ? (y(), D(ct(e.TagName), z({ key: 1 }, e.attributes, ce(e.actionAttributes)), null, 16)) : (y(), T(Z, { key: 0 }, [
|
|
30
|
+
typeof e.TagName == "string" ? (y(), D(ct(e.TagName), z({ key: 0 }, e.attributes, ce(e.actionAttributes)), {
|
|
31
31
|
default: Te(() => [
|
|
32
32
|
pe(e.$slots, "default")
|
|
33
33
|
]),
|
|
34
34
|
_: 3
|
|
35
|
-
}, 16)) : (y(),
|
|
35
|
+
}, 16)) : (y(), D(ct(e.TagName), z({ key: 1 }, e.attributes, ce(e.actionAttributes)), {
|
|
36
36
|
default: Te(() => [
|
|
37
37
|
pe(e.$slots, "default")
|
|
38
38
|
]),
|
|
@@ -40,10 +40,10 @@ function Lo(e, t, n, r, o, i) {
|
|
|
40
40
|
}, 16))
|
|
41
41
|
], 64));
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const Sn = /* @__PURE__ */ V(Wo, [["render", Lo]]), du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
44
44
|
__proto__: null,
|
|
45
|
-
default:
|
|
46
|
-
}, Symbol.toStringTag, { value: "Module" })), fe = "vue",
|
|
45
|
+
default: Sn
|
|
46
|
+
}, Symbol.toStringTag, { value: "Module" })), fe = "vue", Ot = () => {
|
|
47
47
|
switch (fe) {
|
|
48
48
|
case "react":
|
|
49
49
|
case "reactNative":
|
|
@@ -58,7 +58,7 @@ const Cn = /* @__PURE__ */ V(Wo, [["render", Lo]]), hu = /* @__PURE__ */ Object.
|
|
|
58
58
|
}
|
|
59
59
|
}, Ho = j({
|
|
60
60
|
name: "builder-button",
|
|
61
|
-
components: { DynamicRenderer:
|
|
61
|
+
components: { DynamicRenderer: Sn },
|
|
62
62
|
props: [
|
|
63
63
|
"attributes",
|
|
64
64
|
"link",
|
|
@@ -73,7 +73,7 @@ const Cn = /* @__PURE__ */ V(Wo, [["render", Lo]]), hu = /* @__PURE__ */ Object.
|
|
|
73
73
|
attrs() {
|
|
74
74
|
return {
|
|
75
75
|
...he(this.attributes, "v-on:", !1),
|
|
76
|
-
[
|
|
76
|
+
[Ot()]: `${this.link ? "" : "builder-button"} ${this.attributes[Ot()] || ""}`,
|
|
77
77
|
...this.link ? {
|
|
78
78
|
href: this.link,
|
|
79
79
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -87,18 +87,18 @@ const Cn = /* @__PURE__ */ V(Wo, [["render", Lo]]), hu = /* @__PURE__ */ Object.
|
|
|
87
87
|
});
|
|
88
88
|
function Ko(e, t, n, r, o, i) {
|
|
89
89
|
const a = U("DynamicRenderer");
|
|
90
|
-
return y(),
|
|
90
|
+
return y(), D(a, {
|
|
91
91
|
attributes: e.attrs(),
|
|
92
92
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
93
93
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
94
94
|
}, {
|
|
95
95
|
default: Te(() => [
|
|
96
|
-
Uo(
|
|
96
|
+
Uo(Bt(e.text), 1)
|
|
97
97
|
]),
|
|
98
98
|
_: 1
|
|
99
99
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
100
100
|
}
|
|
101
|
-
const qo = /* @__PURE__ */ V(Ho, [["render", Ko]]), zo = Symbol(),
|
|
101
|
+
const qo = /* @__PURE__ */ V(Ho, [["render", Ko]]), zo = Symbol(), fn = {
|
|
102
102
|
Builder: {
|
|
103
103
|
content: null,
|
|
104
104
|
context: {},
|
|
@@ -126,11 +126,11 @@ function Jo(e) {
|
|
|
126
126
|
...e.options
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
log: (...e) => console.log(
|
|
131
|
-
error: (...e) => console.error(
|
|
132
|
-
warn: (...e) => console.warn(
|
|
133
|
-
debug: (...e) => console.debug(
|
|
129
|
+
const At = "[Builder.io]: ", se = {
|
|
130
|
+
log: (...e) => console.log(At, ...e),
|
|
131
|
+
error: (...e) => console.error(At, ...e),
|
|
132
|
+
warn: (...e) => console.warn(At, ...e),
|
|
133
|
+
debug: (...e) => console.debug(At, ...e)
|
|
134
134
|
};
|
|
135
135
|
function X() {
|
|
136
136
|
return typeof window < "u" && typeof document < "u";
|
|
@@ -180,7 +180,7 @@ const _o = () => {
|
|
|
180
180
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
181
181
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
182
182
|
};
|
|
183
|
-
},
|
|
183
|
+
}, Dr = ({
|
|
184
184
|
builder: e,
|
|
185
185
|
context: t,
|
|
186
186
|
event: n,
|
|
@@ -208,11 +208,11 @@ const _o = () => {
|
|
|
208
208
|
rootSetState: i,
|
|
209
209
|
rootState: a
|
|
210
210
|
}) => {
|
|
211
|
-
const u =
|
|
211
|
+
const u = Dr({
|
|
212
212
|
builder: t,
|
|
213
213
|
context: n,
|
|
214
214
|
event: r,
|
|
215
|
-
state:
|
|
215
|
+
state: Fr({
|
|
216
216
|
rootState: a,
|
|
217
217
|
localState: o,
|
|
218
218
|
rootSetState: i
|
|
@@ -220,7 +220,7 @@ const _o = () => {
|
|
|
220
220
|
});
|
|
221
221
|
return new Function(...u.map(([p]) => p), e)(...u.map(([, p]) => p));
|
|
222
222
|
};
|
|
223
|
-
function
|
|
223
|
+
function Fr({
|
|
224
224
|
rootState: e,
|
|
225
225
|
localState: t,
|
|
226
226
|
rootSetState: n
|
|
@@ -230,7 +230,7 @@ function Dr({
|
|
|
230
230
|
if (t && o in t)
|
|
231
231
|
return t[o];
|
|
232
232
|
const i = r[o];
|
|
233
|
-
return typeof i == "object" && i !== null ?
|
|
233
|
+
return typeof i == "object" && i !== null ? Fr({
|
|
234
234
|
rootState: i,
|
|
235
235
|
localState: void 0,
|
|
236
236
|
rootSetState: n ? (a) => {
|
|
@@ -245,7 +245,7 @@ function Dr({
|
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
|
-
const
|
|
248
|
+
const Cn = (e, t, n) => {
|
|
249
249
|
if (Object(e) !== e)
|
|
250
250
|
return e;
|
|
251
251
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -284,32 +284,32 @@ var B, ni = function(e) {
|
|
|
284
284
|
this.line = Ve, this.ab = d - ye;
|
|
285
285
|
}
|
|
286
286
|
function a(s, l) {
|
|
287
|
-
|
|
287
|
+
Fe = d, $.C && (zt = new i()), E = s, p(), ae = l, Qe = s.m;
|
|
288
288
|
}
|
|
289
289
|
function u() {
|
|
290
|
-
for (var s = d, l =
|
|
290
|
+
for (var s = d, l = $.va && $.C && new i(), c = b.charCodeAt(d += 2); d < De && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
291
291
|
++d, c = b.charCodeAt(d);
|
|
292
|
-
|
|
292
|
+
$.va && $.va(!1, b.slice(s + 2, d), s, d, l, $.C && new i());
|
|
293
293
|
}
|
|
294
294
|
function p() {
|
|
295
|
-
for (; d <
|
|
295
|
+
for (; d < De; ) {
|
|
296
296
|
var s = b.charCodeAt(d);
|
|
297
297
|
if (s === 32)
|
|
298
298
|
++d;
|
|
299
299
|
else if (s === 13)
|
|
300
|
-
++d, s = b.charCodeAt(d), s === 10 && ++d,
|
|
300
|
+
++d, s = b.charCodeAt(d), s === 10 && ++d, $.C && (++Ve, ye = d);
|
|
301
301
|
else if (s === 10 || s === 8232 || s === 8233)
|
|
302
|
-
++d,
|
|
302
|
+
++d, $.C && (++Ve, ye = d);
|
|
303
303
|
else if (8 < s && 14 > s)
|
|
304
304
|
++d;
|
|
305
305
|
else if (s === 47)
|
|
306
306
|
if (s = b.charCodeAt(d + 1), s === 42) {
|
|
307
307
|
s = void 0;
|
|
308
|
-
var l =
|
|
309
|
-
if (f === -1 && r(d - 2, "Unterminated comment"), d = f + 2,
|
|
308
|
+
var l = $.va && $.C && new i(), c = d, f = b.indexOf("*/", d += 2);
|
|
309
|
+
if (f === -1 && r(d - 2, "Unterminated comment"), d = f + 2, $.C)
|
|
310
310
|
for ($t.lastIndex = c; (s = $t.exec(b)) && s.index < d; )
|
|
311
311
|
++Ve, ye = s.index + s[0].length;
|
|
312
|
-
|
|
312
|
+
$.va && $.va(!0, b.slice(c + 2, f), c, d, l, $.C && new i());
|
|
313
313
|
} else if (s === 47)
|
|
314
314
|
u();
|
|
315
315
|
else
|
|
@@ -336,9 +336,9 @@ var B, ni = function(e) {
|
|
|
336
336
|
case 44:
|
|
337
337
|
return ++d, a(Pe);
|
|
338
338
|
case 91:
|
|
339
|
-
return ++d, a(
|
|
339
|
+
return ++d, a(nn);
|
|
340
340
|
case 93:
|
|
341
|
-
return ++d, a(
|
|
341
|
+
return ++d, a(rn);
|
|
342
342
|
case 123:
|
|
343
343
|
return ++d, a(nt);
|
|
344
344
|
case 125:
|
|
@@ -366,10 +366,10 @@ var B, ni = function(e) {
|
|
|
366
366
|
case 39:
|
|
367
367
|
d++;
|
|
368
368
|
for (var l = ""; ; ) {
|
|
369
|
-
d >=
|
|
369
|
+
d >= De && r(H, "Unterminated string constant");
|
|
370
370
|
var c = b.charCodeAt(d);
|
|
371
371
|
if (c === s) {
|
|
372
|
-
++d, a(
|
|
372
|
+
++d, a(Et, l);
|
|
373
373
|
break;
|
|
374
374
|
}
|
|
375
375
|
if (c === 92) {
|
|
@@ -415,7 +415,7 @@ var B, ni = function(e) {
|
|
|
415
415
|
case 13:
|
|
416
416
|
b.charCodeAt(d) === 10 && ++d;
|
|
417
417
|
case 10:
|
|
418
|
-
|
|
418
|
+
$.C && (ye = d, ++Ve);
|
|
419
419
|
break;
|
|
420
420
|
default:
|
|
421
421
|
l += String.fromCharCode(c);
|
|
@@ -429,7 +429,7 @@ var B, ni = function(e) {
|
|
|
429
429
|
return;
|
|
430
430
|
case 37:
|
|
431
431
|
case 42:
|
|
432
|
-
b.charCodeAt(d + 1) === 61 ? h(Ue, 2) : h(
|
|
432
|
+
b.charCodeAt(d + 1) === 61 ? h(Ue, 2) : h($o, 1);
|
|
433
433
|
return;
|
|
434
434
|
case 124:
|
|
435
435
|
case 38:
|
|
@@ -440,7 +440,7 @@ var B, ni = function(e) {
|
|
|
440
440
|
return;
|
|
441
441
|
case 43:
|
|
442
442
|
case 45:
|
|
443
|
-
l = b.charCodeAt(d + 1), l === s ? l === 45 && b.charCodeAt(d + 2) === 62 &&
|
|
443
|
+
l = b.charCodeAt(d + 1), l === s ? l === 45 && b.charCodeAt(d + 2) === 62 && Rt.test(b.slice(Ae, d)) ? (d += 3, u(), p(), v()) : h(So, 2) : l === 61 ? h(Ue, 2) : h(Ro, 1);
|
|
444
444
|
return;
|
|
445
445
|
case 60:
|
|
446
446
|
case 62:
|
|
@@ -456,10 +456,10 @@ var B, ni = function(e) {
|
|
|
456
456
|
return !1;
|
|
457
457
|
}
|
|
458
458
|
function v(s) {
|
|
459
|
-
if (s ? d = H + 1 : H = d,
|
|
459
|
+
if (s ? d = H + 1 : H = d, $.C && (qt = new i()), s)
|
|
460
460
|
return C();
|
|
461
|
-
if (d >=
|
|
462
|
-
return a(
|
|
461
|
+
if (d >= De)
|
|
462
|
+
return a(Xt);
|
|
463
463
|
if (s = b.charCodeAt(d), n(s) || s === 92)
|
|
464
464
|
return N();
|
|
465
465
|
if (m(s) === !1) {
|
|
@@ -474,9 +474,9 @@ var B, ni = function(e) {
|
|
|
474
474
|
}
|
|
475
475
|
function C() {
|
|
476
476
|
for (var s, l, c = d; ; ) {
|
|
477
|
-
d >=
|
|
477
|
+
d >= De && r(c, "Unterminated regexp");
|
|
478
478
|
var f = b.charAt(d);
|
|
479
|
-
if (
|
|
479
|
+
if (Rt.test(f) && r(c, "Unterminated regexp"), s)
|
|
480
480
|
s = !1;
|
|
481
481
|
else {
|
|
482
482
|
if (f === "[")
|
|
@@ -536,10 +536,10 @@ var B, ni = function(e) {
|
|
|
536
536
|
!Le && Po(s) && (l = ko[s]), a(l, s);
|
|
537
537
|
}
|
|
538
538
|
function R() {
|
|
539
|
-
|
|
539
|
+
Gt = H, Ae = Fe, Jt = zt, v();
|
|
540
540
|
}
|
|
541
541
|
function xe(s) {
|
|
542
|
-
if (oe = s, d = H,
|
|
542
|
+
if (oe = s, d = H, $.C)
|
|
543
543
|
for (; d < ye; )
|
|
544
544
|
ye = b.lastIndexOf(`
|
|
545
545
|
`, ye - 2) + 1, --Ve;
|
|
@@ -549,30 +549,30 @@ var B, ni = function(e) {
|
|
|
549
549
|
this.type = null, this.start = H, this.end = null;
|
|
550
550
|
}
|
|
551
551
|
function Re() {
|
|
552
|
-
this.start =
|
|
552
|
+
this.start = qt, this.end = null, Kt && (this.source = Kt);
|
|
553
553
|
}
|
|
554
554
|
function G() {
|
|
555
555
|
var s = new re();
|
|
556
|
-
return
|
|
556
|
+
return $.C && (s.X = new Re()), $.vb && (s.sourceFile = $.vb), $.Xa && (s.j = [H, 0]), s;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function $e(s) {
|
|
559
559
|
var l = new re();
|
|
560
|
-
return l.start = s.start,
|
|
560
|
+
return l.start = s.start, $.C && (l.X = new Re(), l.X.start = s.X.start), $.Xa && (l.j = [s.j[0], 0]), l;
|
|
561
561
|
}
|
|
562
562
|
function x(s, l) {
|
|
563
|
-
return s.type = l, s.end =
|
|
563
|
+
return s.type = l, s.end = Ae, $.C && (s.X.end = Jt), $.Xa && (s.j[1] = Ae), s;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function Ut(s) {
|
|
566
566
|
return s.type === "ExpressionStatement" && s.la.type === "Literal" && s.la.value === "use strict";
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function F(s) {
|
|
569
569
|
return E === s ? (R(), !0) : !1;
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
return
|
|
571
|
+
function Ct() {
|
|
572
|
+
return !$.fc && (E === Xt || E === We || Rt.test(b.slice(Ae, H)));
|
|
573
573
|
}
|
|
574
574
|
function Ne() {
|
|
575
|
-
|
|
575
|
+
F(be) || Ct() || me();
|
|
576
576
|
}
|
|
577
577
|
function W(s) {
|
|
578
578
|
E === s ? R() : me();
|
|
@@ -580,18 +580,18 @@ var B, ni = function(e) {
|
|
|
580
580
|
function me() {
|
|
581
581
|
r(H, "Unexpected token");
|
|
582
582
|
}
|
|
583
|
-
function
|
|
584
|
-
s.type !== "Identifier" && s.type !== "MemberExpression" && r(s.start, "Assigning to rvalue"), oe && s.type === "Identifier" &&
|
|
583
|
+
function wt(s) {
|
|
584
|
+
s.type !== "Identifier" && s.type !== "MemberExpression" && r(s.start, "Assigning to rvalue"), oe && s.type === "Identifier" && xt(s.name) && r(s.start, "Assigning to " + s.name + " in strict mode");
|
|
585
585
|
}
|
|
586
586
|
function ue() {
|
|
587
587
|
(E === pr || E === Ue && ae === "/=") && v(!0);
|
|
588
588
|
var s = E, l = G();
|
|
589
589
|
switch (s) {
|
|
590
|
-
case
|
|
590
|
+
case Yt:
|
|
591
591
|
case zn:
|
|
592
592
|
R();
|
|
593
|
-
var c = s ===
|
|
594
|
-
|
|
593
|
+
var c = s === Yt;
|
|
594
|
+
F(be) || Ct() ? l.label = null : E !== Me ? me() : (l.label = ge(), Ne());
|
|
595
595
|
for (var f = 0; f < L.length; ++f) {
|
|
596
596
|
var I = L[f];
|
|
597
597
|
if ((l.label === null || I.name === l.label.name) && (I.kind !== null && (c || I.kind === "loop") || l.label && c))
|
|
@@ -601,27 +601,27 @@ var B, ni = function(e) {
|
|
|
601
601
|
case Gn:
|
|
602
602
|
return R(), Ne(), x(l, "DebuggerStatement");
|
|
603
603
|
case Xn:
|
|
604
|
-
return R(), L.push(
|
|
604
|
+
return R(), L.push(on), l.body = ue(), L.pop(), W(tn), l.test = Ye(), Ne(), x(l, "DoWhileStatement");
|
|
605
605
|
case Zn:
|
|
606
|
-
return R(), L.push(
|
|
607
|
-
case
|
|
608
|
-
return R(),
|
|
606
|
+
return R(), L.push(on), W(ve), E === be ? Dt(l, null) : E === en ? (s = G(), R(), Ln(s, !0), x(s, "VariableDeclaration"), s.fa.length === 1 && F(It) ? Wn(l, s) : Dt(l, s)) : (s = _(!1, !0), F(It) ? (wt(s), Wn(l, s)) : Dt(l, s));
|
|
607
|
+
case Zt:
|
|
608
|
+
return R(), Lt(l, !0);
|
|
609
609
|
case Qn:
|
|
610
|
-
return R(), l.test = Ye(), l.da = ue(), l.alternate =
|
|
610
|
+
return R(), l.test = Ye(), l.da = ue(), l.alternate = F(Yn) ? ue() : null, x(l, "IfStatement");
|
|
611
611
|
case er:
|
|
612
|
-
return et ||
|
|
613
|
-
case
|
|
612
|
+
return et || $.Ib || r(H, "'return' outside of function"), R(), F(be) || Ct() ? l.K = null : (l.K = _(), Ne()), x(l, "ReturnStatement");
|
|
613
|
+
case Qt:
|
|
614
614
|
for (R(), l.Qb = Ye(), l.tb = [], W(nt), L.push(Bo); E !== We; )
|
|
615
|
-
E ===
|
|
615
|
+
E === _t || E === Jn ? (s = E === _t, f && x(f, "SwitchCase"), l.tb.push(f = G()), f.da = [], R(), s ? f.test = _() : (c && r(Gt, "Multiple default clauses"), c = !0, f.test = null), W(rt)) : (f || me(), f.da.push(ue()));
|
|
616
616
|
return f && x(f, "SwitchCase"), R(), L.pop(), x(l, "SwitchStatement");
|
|
617
617
|
case tr:
|
|
618
|
-
return R(),
|
|
618
|
+
return R(), Rt.test(b.slice(Ae, H)) && r(Ae, "Illegal newline after throw"), l.K = _(), Ne(), x(l, "ThrowStatement");
|
|
619
619
|
case nr:
|
|
620
|
-
return R(), l.block = _e(), l.Ea = null, E === qn && (s = G(), R(), W(ve), s.Ua = ge(), oe &&
|
|
621
|
-
case
|
|
620
|
+
return R(), l.block = _e(), l.Ea = null, E === qn && (s = G(), R(), W(ve), s.Ua = ge(), oe && xt(s.Ua.name) && r(s.Ua.start, "Binding " + s.Ua.name + " in strict mode"), W(de), s.body = _e(), l.Ea = x(s, "CatchClause")), l.fb = F(_n) ? _e() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), x(l, "TryStatement");
|
|
621
|
+
case en:
|
|
622
622
|
return R(), Ln(l), Ne(), x(l, "VariableDeclaration");
|
|
623
|
-
case
|
|
624
|
-
return R(), l.test = Ye(), L.push(
|
|
623
|
+
case tn:
|
|
624
|
+
return R(), l.test = Ye(), L.push(on), l.body = ue(), L.pop(), x(l, "WhileStatement");
|
|
625
625
|
case rr:
|
|
626
626
|
return oe && r(H, "'with' in strict mode"), R(), l.object = Ye(), l.body = ue(), x(l, "WithStatement");
|
|
627
627
|
case nt:
|
|
@@ -629,12 +629,12 @@ var B, ni = function(e) {
|
|
|
629
629
|
case be:
|
|
630
630
|
return R(), x(l, "EmptyStatement");
|
|
631
631
|
default:
|
|
632
|
-
if (c = ae, I = _(), s === Me && I.type === "Identifier" &&
|
|
632
|
+
if (c = ae, I = _(), s === Me && I.type === "Identifier" && F(rt)) {
|
|
633
633
|
for (f = 0; f < L.length; ++f)
|
|
634
634
|
L[f].name === c && r(I.start, "Label '" + c + "' is already declared");
|
|
635
635
|
return L.push({
|
|
636
636
|
name: c,
|
|
637
|
-
kind: E.W ? "loop" : E ===
|
|
637
|
+
kind: E.W ? "loop" : E === Qt ? "switch" : null
|
|
638
638
|
}), l.body = ue(), L.pop(), l.label = I, x(l, "LabeledStatement");
|
|
639
639
|
}
|
|
640
640
|
return l.la = I, Ne(), x(l, "ExpressionStatement");
|
|
@@ -647,9 +647,9 @@ var B, ni = function(e) {
|
|
|
647
647
|
}
|
|
648
648
|
function _e(s) {
|
|
649
649
|
var l = G(), c = !0, f = !1;
|
|
650
|
-
for (l.body = [], W(nt); !
|
|
650
|
+
for (l.body = [], W(nt); !F(We); ) {
|
|
651
651
|
var I = ue();
|
|
652
|
-
if (l.body.push(I), c && s &&
|
|
652
|
+
if (l.body.push(I), c && s && Ut(I)) {
|
|
653
653
|
var K = f;
|
|
654
654
|
xe(f = !0);
|
|
655
655
|
}
|
|
@@ -666,52 +666,52 @@ var B, ni = function(e) {
|
|
|
666
666
|
function Ln(s, l) {
|
|
667
667
|
for (s.fa = [], s.kind = "var"; ; ) {
|
|
668
668
|
var c = G();
|
|
669
|
-
if (c.id = ge(), oe &&
|
|
669
|
+
if (c.id = ge(), oe && xt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = F(dr) ? _(!0, l) : null, s.fa.push(x(c, "VariableDeclarator")), !F(Pe))
|
|
670
670
|
break;
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
673
|
function _(s, l) {
|
|
674
|
-
var c =
|
|
674
|
+
var c = Ft(l);
|
|
675
675
|
if (!s && E === Pe) {
|
|
676
|
-
for (s =
|
|
677
|
-
s.xb.push(
|
|
676
|
+
for (s = $e(c), s.xb = [c]; F(Pe); )
|
|
677
|
+
s.xb.push(Ft(l));
|
|
678
678
|
return x(s, "SequenceExpression");
|
|
679
679
|
}
|
|
680
680
|
return c;
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
var l = Wt(
|
|
684
|
-
if (
|
|
685
|
-
var c =
|
|
682
|
+
function Ft(s) {
|
|
683
|
+
var l = Mt(Wt(), -1, s);
|
|
684
|
+
if (F(cr)) {
|
|
685
|
+
var c = $e(l);
|
|
686
686
|
c.test = l, c.da = _(!0), W(rt), c.alternate = _(!0, s), l = x(c, "ConditionalExpression");
|
|
687
687
|
}
|
|
688
|
-
return E.Cb ? (c =
|
|
688
|
+
return E.Cb ? (c = $e(l), c.operator = ae, c.left = l, R(), c.right = Ft(s), wt(l), x(c, "AssignmentExpression")) : l;
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function Mt(s, l, c) {
|
|
691
691
|
var f = E.L;
|
|
692
|
-
if (f !== null && (!c || E !==
|
|
693
|
-
var I =
|
|
694
|
-
return I.left = s, I.operator = ae, s = E, R(), I.right = Wt(
|
|
692
|
+
if (f !== null && (!c || E !== It) && f > l) {
|
|
693
|
+
var I = $e(s);
|
|
694
|
+
return I.left = s, I.operator = ae, s = E, R(), I.right = Mt(Wt(), f, c), f = x(I, s === fr || s === mr ? "LogicalExpression" : "BinaryExpression"), Mt(f, l, c);
|
|
695
695
|
}
|
|
696
696
|
return s;
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function Wt() {
|
|
699
699
|
if (E.prefix) {
|
|
700
700
|
var s = G(), l = E.$b;
|
|
701
|
-
return s.operator = ae, Qe = s.prefix = !0, R(), s.K =
|
|
701
|
+
return s.operator = ae, Qe = s.prefix = !0, R(), s.K = Wt(), l ? wt(s.K) : oe && s.operator === "delete" && s.K.type === "Identifier" && r(s.start, "Deleting local variable in strict mode"), x(s, l ? "UpdateExpression" : "UnaryExpression");
|
|
702
702
|
}
|
|
703
|
-
for (l = Ze(
|
|
704
|
-
s =
|
|
703
|
+
for (l = Ze(Tt()); E.cc && !Ct(); )
|
|
704
|
+
s = $e(l), s.operator = ae, s.prefix = !1, s.K = l, wt(l), R(), l = x(s, "UpdateExpression");
|
|
705
705
|
return l;
|
|
706
706
|
}
|
|
707
707
|
function Ze(s, l) {
|
|
708
|
-
if (
|
|
709
|
-
var c =
|
|
708
|
+
if (F(ur)) {
|
|
709
|
+
var c = $e(s);
|
|
710
710
|
return c.object = s, c.Wa = ge(!0), c.bb = !1, Ze(x(c, "MemberExpression"), l);
|
|
711
711
|
}
|
|
712
|
-
return
|
|
712
|
+
return F(nn) ? (c = $e(s), c.object = s, c.Wa = _(), c.bb = !0, W(rn), Ze(x(c, "MemberExpression"), l)) : !l && F(ve) ? (c = $e(s), c.callee = s, c.arguments = Ht(de, !1), Ze(x(c, "CallExpression"), l)) : s;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function Tt() {
|
|
715
715
|
switch (E) {
|
|
716
716
|
case ir:
|
|
717
717
|
var s = G();
|
|
@@ -719,73 +719,73 @@ var B, ni = function(e) {
|
|
|
719
719
|
case Me:
|
|
720
720
|
return ge();
|
|
721
721
|
case tt:
|
|
722
|
-
case
|
|
722
|
+
case Et:
|
|
723
723
|
case Kn:
|
|
724
|
-
return s = G(), s.value = ae, s.raw = b.slice(H,
|
|
724
|
+
return s = G(), s.value = ae, s.raw = b.slice(H, Fe), R(), x(s, "Literal");
|
|
725
725
|
case sr:
|
|
726
726
|
case ar:
|
|
727
727
|
case lr:
|
|
728
728
|
return s = G(), s.value = E.$a, s.raw = E.l, R(), x(s, "Literal");
|
|
729
729
|
case ve:
|
|
730
|
-
s =
|
|
730
|
+
s = qt;
|
|
731
731
|
var l = H;
|
|
732
732
|
R();
|
|
733
733
|
var c = _();
|
|
734
|
-
return c.start = l, c.end =
|
|
735
|
-
case
|
|
736
|
-
return s = G(), R(), s.elements =
|
|
734
|
+
return c.start = l, c.end = Fe, $.C && (c.X.start = s, c.X.end = zt), $.Xa && (c.j = [l, Fe]), W(de), c;
|
|
735
|
+
case nn:
|
|
736
|
+
return s = G(), R(), s.elements = Ht(rn, !0, !0), x(s, "ArrayExpression");
|
|
737
737
|
case nt:
|
|
738
|
-
for (s = G(), l = !0, c = !1, s.h = [], R(); !
|
|
738
|
+
for (s = G(), l = !0, c = !1, s.h = [], R(); !F(We); ) {
|
|
739
739
|
if (l)
|
|
740
740
|
l = !1;
|
|
741
|
-
else if (W(Pe),
|
|
741
|
+
else if (W(Pe), $.sb && F(We))
|
|
742
742
|
break;
|
|
743
743
|
var f = {
|
|
744
|
-
key: E === tt || E ===
|
|
744
|
+
key: E === tt || E === Et ? Tt() : ge(!0)
|
|
745
745
|
}, I = !1;
|
|
746
|
-
if (
|
|
746
|
+
if (F(rt)) {
|
|
747
747
|
f.value = _(!0);
|
|
748
748
|
var K = f.kind = "init";
|
|
749
749
|
} else
|
|
750
|
-
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? me() : (I = c = !0, K = f.kind = f.key.name, f.key = E === tt || E ===
|
|
750
|
+
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? me() : (I = c = !0, K = f.kind = f.key.name, f.key = E === tt || E === Et ? Tt() : ge(!0), E !== ve && me(), f.value = Lt(G(), !1));
|
|
751
751
|
if (f.key.type === "Identifier" && (oe || c))
|
|
752
752
|
for (var ee = 0; ee < s.h.length; ++ee) {
|
|
753
753
|
var He = s.h[ee];
|
|
754
754
|
if (He.key.name === f.key.name) {
|
|
755
|
-
var
|
|
756
|
-
|
|
755
|
+
var sn = K === He.kind || I && He.kind === "init" || K === "init" && (He.kind === "get" || He.kind === "set");
|
|
756
|
+
sn && !oe && K === "init" && He.kind === "init" && (sn = !1), sn && r(f.key.start, "Redefinition of property");
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
s.h.push(f);
|
|
760
760
|
}
|
|
761
761
|
return x(s, "ObjectExpression");
|
|
762
|
-
case
|
|
763
|
-
return s = G(), R(),
|
|
762
|
+
case Zt:
|
|
763
|
+
return s = G(), R(), Lt(s, !1);
|
|
764
764
|
case or:
|
|
765
|
-
return s = G(), R(), s.callee = Ze(
|
|
765
|
+
return s = G(), R(), s.callee = Ze(Tt(), !0), s.arguments = F(ve) ? Ht(de, !1) : bo, x(s, "NewExpression");
|
|
766
766
|
}
|
|
767
767
|
me();
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function Lt(s, l) {
|
|
770
770
|
E === Me ? s.id = ge() : l ? me() : s.id = null, s.oa = [];
|
|
771
771
|
var c = !0;
|
|
772
|
-
for (W(ve); !
|
|
772
|
+
for (W(ve); !F(de); )
|
|
773
773
|
c ? c = !1 : W(Pe), s.oa.push(ge());
|
|
774
774
|
c = et;
|
|
775
775
|
var f = L;
|
|
776
|
-
if (et = !0, L = [], s.body = _e(!0), et = c, L = f, oe || s.body.body.length &&
|
|
776
|
+
if (et = !0, L = [], s.body = _e(!0), et = c, L = f, oe || s.body.body.length && Ut(s.body.body[0])) {
|
|
777
777
|
for (c = s.id ? -1 : 0; c < s.oa.length; ++c)
|
|
778
|
-
if (f = 0 > c ? s.id : s.oa[c], (gr(f.name) ||
|
|
778
|
+
if (f = 0 > c ? s.id : s.oa[c], (gr(f.name) || xt(f.name)) && r(f.start, "Defining '" + f.name + "' in strict mode"), 0 <= c)
|
|
779
779
|
for (var I = 0; I < c; ++I)
|
|
780
780
|
f.name === s.oa[I].name && r(f.start, "Argument name clash in strict mode");
|
|
781
781
|
}
|
|
782
782
|
return x(s, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
783
783
|
}
|
|
784
|
-
function
|
|
785
|
-
for (var f = [], I = !0; !
|
|
784
|
+
function Ht(s, l, c) {
|
|
785
|
+
for (var f = [], I = !0; !F(s); ) {
|
|
786
786
|
if (I)
|
|
787
787
|
I = !1;
|
|
788
|
-
else if (W(Pe), l &&
|
|
788
|
+
else if (W(Pe), l && $.sb && F(s))
|
|
789
789
|
break;
|
|
790
790
|
f.push(c && E === Pe ? null : _(!0));
|
|
791
791
|
}
|
|
@@ -793,16 +793,16 @@ var B, ni = function(e) {
|
|
|
793
793
|
}
|
|
794
794
|
function ge(s) {
|
|
795
795
|
var l = G();
|
|
796
|
-
return s &&
|
|
796
|
+
return s && $.yb === "everywhere" && (s = !1), E === Me ? (!s && ($.yb && Ao(ae) || oe && gr(ae)) && b.slice(H, Fe).indexOf("\\") === -1 && r(H, "The keyword '" + ae + "' is reserved"), l.name = ae) : s && E.l ? l.name = E.l : me(), Qe = !1, R(), x(l, "Identifier");
|
|
797
797
|
}
|
|
798
798
|
e.version = "0.5.0";
|
|
799
|
-
var
|
|
799
|
+
var $, b = "", De, Kt;
|
|
800
800
|
e.parse = function(s, l) {
|
|
801
|
-
b = String(s),
|
|
801
|
+
b = String(s), De = b.length, $ = l || {};
|
|
802
802
|
for (var c in Hn)
|
|
803
|
-
Object.prototype.hasOwnProperty.call(
|
|
804
|
-
for (
|
|
805
|
-
c = ue(), s.body.push(c), l &&
|
|
803
|
+
Object.prototype.hasOwnProperty.call($, c) || ($[c] = Hn[c]);
|
|
804
|
+
for (Kt = $.sourceFile, Ve = 1, d = ye = 0, Qe = !0, p(), c = $.dc, Gt = Ae = d, $.C && (Jt = new i()), et = oe = !1, L = [], v(), s = c || G(), l = !0, c || (s.body = []); E !== Xt; )
|
|
805
|
+
c = ue(), s.body.push(c), l && Ut(c) && xe(!0), l = !1;
|
|
806
806
|
return x(s, "Program");
|
|
807
807
|
};
|
|
808
808
|
var Hn = {
|
|
@@ -816,19 +816,19 @@ var B, ni = function(e) {
|
|
|
816
816
|
dc: null,
|
|
817
817
|
sourceFile: null,
|
|
818
818
|
vb: null
|
|
819
|
-
}, d = 0, H = 0,
|
|
819
|
+
}, d = 0, H = 0, Fe = 0, qt, zt, E, ae, Qe, Ve, ye, Gt = 0, Ae = 0, Jt, et, L, oe, bo = [], tt = {
|
|
820
820
|
type: "num"
|
|
821
821
|
}, Kn = {
|
|
822
822
|
type: "regexp"
|
|
823
|
-
},
|
|
823
|
+
}, Et = {
|
|
824
824
|
type: "string"
|
|
825
825
|
}, Me = {
|
|
826
826
|
type: "name"
|
|
827
|
-
},
|
|
827
|
+
}, Xt = {
|
|
828
828
|
type: "eof"
|
|
829
|
-
},
|
|
829
|
+
}, Yt = {
|
|
830
830
|
l: "break"
|
|
831
|
-
},
|
|
831
|
+
}, _t = {
|
|
832
832
|
l: "case",
|
|
833
833
|
m: !0
|
|
834
834
|
}, qn = {
|
|
@@ -850,23 +850,23 @@ var B, ni = function(e) {
|
|
|
850
850
|
}, Zn = {
|
|
851
851
|
l: "for",
|
|
852
852
|
W: !0
|
|
853
|
-
},
|
|
853
|
+
}, Zt = {
|
|
854
854
|
l: "function"
|
|
855
855
|
}, Qn = {
|
|
856
856
|
l: "if"
|
|
857
857
|
}, er = {
|
|
858
858
|
l: "return",
|
|
859
859
|
m: !0
|
|
860
|
-
},
|
|
860
|
+
}, Qt = {
|
|
861
861
|
l: "switch"
|
|
862
862
|
}, tr = {
|
|
863
863
|
l: "throw",
|
|
864
864
|
m: !0
|
|
865
865
|
}, nr = {
|
|
866
866
|
l: "try"
|
|
867
|
-
},
|
|
867
|
+
}, en = {
|
|
868
868
|
l: "var"
|
|
869
|
-
},
|
|
869
|
+
}, tn = {
|
|
870
870
|
l: "while",
|
|
871
871
|
W: !0
|
|
872
872
|
}, rr = {
|
|
@@ -885,13 +885,13 @@ var B, ni = function(e) {
|
|
|
885
885
|
}, lr = {
|
|
886
886
|
l: "false",
|
|
887
887
|
$a: !1
|
|
888
|
-
},
|
|
888
|
+
}, It = {
|
|
889
889
|
l: "in",
|
|
890
890
|
L: 7,
|
|
891
891
|
m: !0
|
|
892
892
|
}, ko = {
|
|
893
|
-
break:
|
|
894
|
-
case:
|
|
893
|
+
break: Yt,
|
|
894
|
+
case: _t,
|
|
895
895
|
catch: qn,
|
|
896
896
|
continue: zn,
|
|
897
897
|
debugger: Gn,
|
|
@@ -900,20 +900,20 @@ var B, ni = function(e) {
|
|
|
900
900
|
else: Yn,
|
|
901
901
|
finally: _n,
|
|
902
902
|
for: Zn,
|
|
903
|
-
function:
|
|
903
|
+
function: Zt,
|
|
904
904
|
if: Qn,
|
|
905
905
|
return: er,
|
|
906
|
-
switch:
|
|
906
|
+
switch: Qt,
|
|
907
907
|
throw: tr,
|
|
908
908
|
try: nr,
|
|
909
|
-
var:
|
|
910
|
-
while:
|
|
909
|
+
var: en,
|
|
910
|
+
while: tn,
|
|
911
911
|
with: rr,
|
|
912
912
|
null: sr,
|
|
913
913
|
true: ar,
|
|
914
914
|
false: lr,
|
|
915
915
|
new: or,
|
|
916
|
-
in:
|
|
916
|
+
in: It,
|
|
917
917
|
instanceof: {
|
|
918
918
|
l: "instanceof",
|
|
919
919
|
L: 7,
|
|
@@ -935,10 +935,10 @@ var B, ni = function(e) {
|
|
|
935
935
|
prefix: !0,
|
|
936
936
|
m: !0
|
|
937
937
|
}
|
|
938
|
-
},
|
|
938
|
+
}, nn = {
|
|
939
939
|
type: "[",
|
|
940
940
|
m: !0
|
|
941
|
-
},
|
|
941
|
+
}, rn = {
|
|
942
942
|
type: "]"
|
|
943
943
|
}, nt = {
|
|
944
944
|
type: "{",
|
|
@@ -1008,16 +1008,16 @@ var B, ni = function(e) {
|
|
|
1008
1008
|
L: 9,
|
|
1009
1009
|
prefix: !0,
|
|
1010
1010
|
m: !0
|
|
1011
|
-
},
|
|
1011
|
+
}, $o = {
|
|
1012
1012
|
L: 10,
|
|
1013
1013
|
m: !0
|
|
1014
|
-
},
|
|
1014
|
+
}, Ao = o("class enum extends super const export import"), gr = o("implements interface let package private protected public static yield"), xt = o("eval arguments"), Po = 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"), Oo = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, yr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), jo = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), Rt = /[\n\r\u2028\u2029]/, $t = /\r\n|[\n\r\u2028\u2029]/g, Le, on = {
|
|
1015
1015
|
kind: "loop"
|
|
1016
1016
|
}, Bo = {
|
|
1017
1017
|
kind: "switch"
|
|
1018
1018
|
};
|
|
1019
|
-
},
|
|
1020
|
-
ni(
|
|
1019
|
+
}, mn = mn = typeof globalThis > "u" ? void 0 : globalThis;
|
|
1020
|
+
ni(mn.j || (mn.j = {}));
|
|
1021
1021
|
function g(e, t) {
|
|
1022
1022
|
typeof e == "string" && (e = ze(e, "code"));
|
|
1023
1023
|
var n = e.constructor;
|
|
@@ -1033,13 +1033,13 @@ function g(e, t) {
|
|
|
1033
1033
|
var i, a;
|
|
1034
1034
|
for (a in this)
|
|
1035
1035
|
typeof this[a] == "function" && (i = a.match(e)) && (this.rb[i[1]] = this[a].bind(this));
|
|
1036
|
-
this.N =
|
|
1037
|
-
`), "polyfills"), this.ba = void 0,
|
|
1036
|
+
this.N = yn(this, this.ra, null), this.Na = this.N.object, this.ra = ze(this.ba.join(`
|
|
1037
|
+
`), "polyfills"), this.ba = void 0, Nt(this.ra), i = new S(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new S(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
1038
1038
|
}
|
|
1039
1039
|
var vr = {
|
|
1040
1040
|
C: !0,
|
|
1041
1041
|
kc: 5
|
|
1042
|
-
},
|
|
1042
|
+
}, wn = {
|
|
1043
1043
|
configurable: !0,
|
|
1044
1044
|
enumerable: !0,
|
|
1045
1045
|
writable: !1
|
|
@@ -1068,7 +1068,7 @@ var vr = {
|
|
|
1068
1068
|
}, Ke = {
|
|
1069
1069
|
REGEXP_TIMEOUT: !0
|
|
1070
1070
|
}, kr = [], Ce = null, pt = null, je = typeof globalThis > "u" ? void 0 : globalThis, ri = ["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();", "};"];
|
|
1071
|
-
function
|
|
1071
|
+
function Tn(e) {
|
|
1072
1072
|
var t = e >>> 0;
|
|
1073
1073
|
return t === Number(e) ? t : NaN;
|
|
1074
1074
|
}
|
|
@@ -1076,12 +1076,12 @@ function dt(e) {
|
|
|
1076
1076
|
var t = e >>> 0;
|
|
1077
1077
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function Nt(e, t, n) {
|
|
1080
1080
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
1081
1081
|
for (var r in e)
|
|
1082
1082
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
1083
1083
|
var o = e[r];
|
|
1084
|
-
o && typeof o == "object" &&
|
|
1084
|
+
o && typeof o == "object" && Nt(o, t, n);
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
1087
1087
|
g.prototype.REGEXP_MODE = 2;
|
|
@@ -1150,7 +1150,7 @@ B.Eb = function() {
|
|
|
1150
1150
|
return this.za;
|
|
1151
1151
|
};
|
|
1152
1152
|
function oi(e, t) {
|
|
1153
|
-
e.g(t, "NaN", NaN, it), e.g(t, "Infinity", 1 / 0, it), e.g(t, "undefined", void 0, it), e.g(t, "window", t,
|
|
1153
|
+
e.g(t, "NaN", NaN, it), e.g(t, "Infinity", 1 / 0, it), e.g(t, "undefined", void 0, it), e.g(t, "window", t, wn), e.g(t, "this", t, it), e.g(t, "self", t), e.M = new A(null), e.Z = new A(e.M), ii(e, t), si(e, t), t.xa = e.M, e.g(t, "constructor", e.v, k), ai(e, t), li(e, t), ui(e, t), ci(e, t), pi(e, t), di(e, t), hi(e, t), fi(e, t), mi(e, t);
|
|
1154
1154
|
var n = e.i(function() {
|
|
1155
1155
|
throw EvalError("Can't happen");
|
|
1156
1156
|
}, !1);
|
|
@@ -1192,12 +1192,12 @@ function ii(e, t) {
|
|
|
1192
1192
|
} catch (v) {
|
|
1193
1193
|
w(e, e.T, "Invalid code: " + v.message);
|
|
1194
1194
|
}
|
|
1195
|
-
return m.body.length !== 1 && w(e, e.T, "Invalid code in function body"),
|
|
1195
|
+
return m.body.length !== 1 && w(e, e.T, "Invalid code in function body"), xn(e, m.body[0].la, e.N, "anonymous");
|
|
1196
1196
|
};
|
|
1197
1197
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, k), e.g(e.O, "prototype", e.Z, k), e.g(e.Z, "constructor", e.O, k), e.Z.Ta = function() {
|
|
1198
1198
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ne), e.Z.H = "Function", r = function(o, i) {
|
|
1199
1199
|
var a = e.o[e.o.length - 1];
|
|
1200
|
-
a.U = this, a.B = o, a.F = [], i != null && (i instanceof
|
|
1200
|
+
a.U = this, a.B = o, a.F = [], i != null && (i instanceof A ? a.F = Wr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), a.eb = !1;
|
|
1201
1201
|
}, q(e, e.O, "apply", r), r = function(o) {
|
|
1202
1202
|
var i = e.o[e.o.length - 1];
|
|
1203
1203
|
i.U = this, i.B = o, i.F = [];
|
|
@@ -1217,22 +1217,22 @@ function si(e, t) {
|
|
|
1217
1217
|
var r = function(o) {
|
|
1218
1218
|
if (o == null)
|
|
1219
1219
|
return Ie(e) ? this : e.s(e.M);
|
|
1220
|
-
if (!(o instanceof
|
|
1220
|
+
if (!(o instanceof A)) {
|
|
1221
1221
|
var i = e.s(we(e, o));
|
|
1222
1222
|
return i.data = o, i;
|
|
1223
1223
|
}
|
|
1224
1224
|
return o;
|
|
1225
1225
|
};
|
|
1226
1226
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, k), e.g(e.M, "constructor", e.v, k), e.g(t, "Object", e.v, k), r = function(o) {
|
|
1227
|
-
return n(o), Se(e, Object.getOwnPropertyNames(o instanceof
|
|
1227
|
+
return n(o), Se(e, Object.getOwnPropertyNames(o instanceof A ? o.h : o));
|
|
1228
1228
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), k), r = function(o) {
|
|
1229
|
-
return n(o), o instanceof
|
|
1229
|
+
return n(o), o instanceof A && (o = o.h), Se(e, Object.keys(o));
|
|
1230
1230
|
}, e.g(e.v, "keys", e.i(r, !1), k), r = function(o) {
|
|
1231
|
-
return o === null ? e.s(null) : (o instanceof
|
|
1231
|
+
return o === null ? e.s(null) : (o instanceof A || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1232
1232
|
}, e.g(e.v, "create", e.i(r, !1), k), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, a) {
|
|
1233
|
-
return i = String(i), o instanceof
|
|
1233
|
+
return i = String(i), o instanceof A || w(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof A || w(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || w(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, gt, a.h), o;
|
|
1234
1234
|
}, e.g(e.v, "defineProperty", e.i(r, !1), k), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
|
|
1235
|
-
if (o instanceof
|
|
1235
|
+
if (o instanceof A || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
|
|
1236
1236
|
var a = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
|
|
1237
1237
|
return o = o.Y[i], i = e.s(e.M), u || o ? (e.g(i, "get", u), e.g(i, "set", o)) : (e.g(i, "value", a.value), e.g(i, "writable", a.writable)), e.g(i, "configurable", a.configurable), e.g(i, "enumerable", a.enumerable), i;
|
|
1238
1238
|
}
|
|
@@ -1241,11 +1241,11 @@ function si(e, t) {
|
|
|
1241
1241
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), k), r = function(o) {
|
|
1242
1242
|
return !!o && !o.preventExtensions;
|
|
1243
1243
|
}, e.g(e.v, "isExtensible", e.i(r, !1), k), r = function(o) {
|
|
1244
|
-
return o instanceof
|
|
1245
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), k), q(e, e.v, "toString",
|
|
1246
|
-
return n(this), this instanceof
|
|
1244
|
+
return o instanceof A && (o.preventExtensions = !0), o;
|
|
1245
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), k), q(e, e.v, "toString", A.prototype.toString), q(e, e.v, "toLocaleString", A.prototype.toString), q(e, e.v, "valueOf", A.prototype.valueOf), r = function(o) {
|
|
1246
|
+
return n(this), this instanceof A ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1247
1247
|
}, q(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1248
|
-
return n(this), this instanceof
|
|
1248
|
+
return n(this), this instanceof A ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1249
1249
|
}, q(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1250
1250
|
for (; ; ) {
|
|
1251
1251
|
if (o = we(e, o), !o)
|
|
@@ -1259,7 +1259,7 @@ function ai(e, t) {
|
|
|
1259
1259
|
var n = function(r) {
|
|
1260
1260
|
var o = Ie(e) ? this : Ge(e), i = arguments[0];
|
|
1261
1261
|
if (arguments.length === 1 && typeof i == "number")
|
|
1262
|
-
isNaN(
|
|
1262
|
+
isNaN(Tn(i)) && w(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1263
1263
|
else {
|
|
1264
1264
|
for (i = 0; i < arguments.length; i++)
|
|
1265
1265
|
o.h[i] = arguments[i];
|
|
@@ -1436,7 +1436,7 @@ function di(e, t) {
|
|
|
1436
1436
|
} catch (u) {
|
|
1437
1437
|
w(e, e.T, u.message);
|
|
1438
1438
|
}
|
|
1439
|
-
return
|
|
1439
|
+
return En(e, i, a), i;
|
|
1440
1440
|
};
|
|
1441
1441
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, k), e.g(e.I.h.prototype, "global", void 0, ne), e.g(e.I.h.prototype, "ignoreCase", void 0, ne), e.g(e.I.h.prototype, "multiline", void 0, ne), e.g(e.I.h.prototype, "source", "(?:)", ne), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1442
1442
|
function i(v) {
|
|
@@ -1467,13 +1467,13 @@ function hi(e, t) {
|
|
|
1467
1467
|
function n(r) {
|
|
1468
1468
|
var o = e.i(function(i) {
|
|
1469
1469
|
var a = Ie(e) ? this : e.Aa(o);
|
|
1470
|
-
return
|
|
1470
|
+
return gn(e, a, i), a;
|
|
1471
1471
|
}, !0);
|
|
1472
1472
|
return e.g(o, "prototype", e.Aa(e.D), k), e.g(o.h.prototype, "name", r, k), e.g(t, r, o, k), o;
|
|
1473
1473
|
}
|
|
1474
1474
|
e.D = e.i(function(r) {
|
|
1475
1475
|
var o = Ie(e) ? this : e.Aa(e.D);
|
|
1476
|
-
return
|
|
1476
|
+
return gn(e, o, r), o;
|
|
1477
1477
|
}, !0), e.g(t, "Error", e.D, k), e.g(e.D.h.prototype, "message", "", k), e.g(e.D.h.prototype, "name", "Error", k), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1478
1478
|
}
|
|
1479
1479
|
function fi(e, t) {
|
|
@@ -1518,10 +1518,10 @@ function J(e, t, n) {
|
|
|
1518
1518
|
}
|
|
1519
1519
|
return !1;
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function En(e, t, n) {
|
|
1522
1522
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, k), e.g(t, "source", n.source, ne), e.g(t, "global", n.global, ne), e.g(t, "ignoreCase", n.ignoreCase, ne), e.g(t, "multiline", n.multiline, ne);
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function gn(e, t, n) {
|
|
1525
1525
|
n && e.g(t, "message", String(n), k), n = [];
|
|
1526
1526
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1527
1527
|
var o = e.o[r], i = o.node;
|
|
@@ -1590,7 +1590,7 @@ B.Aa = function(e) {
|
|
|
1590
1590
|
B.s = function(e) {
|
|
1591
1591
|
if (typeof e != "object")
|
|
1592
1592
|
throw Error("Non object prototype");
|
|
1593
|
-
return e = new
|
|
1593
|
+
return e = new A(e), J(this, e, this.D) && (e.H = "Error"), e;
|
|
1594
1594
|
};
|
|
1595
1595
|
function Ge(e) {
|
|
1596
1596
|
var t = e.s(e.La);
|
|
@@ -1600,29 +1600,29 @@ function Ge(e) {
|
|
|
1600
1600
|
writable: !0
|
|
1601
1601
|
}), t.H = "Array", t;
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function In(e, t, n) {
|
|
1604
1604
|
var r = e.s(e.Z);
|
|
1605
1605
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, k), e.g(n, "constructor", r, k)) : r.Ab = !0, e.g(r, "length", t, ne), r.H = "Function", r;
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1608
|
-
var o =
|
|
1607
|
+
function xn(e, t, n, r) {
|
|
1608
|
+
var o = In(e, t.oa.length, !0);
|
|
1609
1609
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", ne), o;
|
|
1610
1610
|
}
|
|
1611
1611
|
B.i = function(e, t) {
|
|
1612
|
-
return t =
|
|
1612
|
+
return t = In(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ne), t;
|
|
1613
1613
|
};
|
|
1614
1614
|
B.ub = function(e) {
|
|
1615
|
-
var t =
|
|
1615
|
+
var t = In(this, e.length, !0);
|
|
1616
1616
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ne), t;
|
|
1617
1617
|
};
|
|
1618
1618
|
B.Ia = function(e) {
|
|
1619
|
-
if (e instanceof
|
|
1619
|
+
if (e instanceof A)
|
|
1620
1620
|
throw Error("Object is already pseudo");
|
|
1621
1621
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1622
1622
|
return e;
|
|
1623
1623
|
if (e instanceof RegExp) {
|
|
1624
1624
|
var t = this.s(this.Ma);
|
|
1625
|
-
return
|
|
1625
|
+
return En(this, t, e), t;
|
|
1626
1626
|
}
|
|
1627
1627
|
if (e instanceof Date)
|
|
1628
1628
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1649,7 +1649,7 @@ B.Ia = function(e) {
|
|
|
1649
1649
|
B.R = function(e, t) {
|
|
1650
1650
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1651
1651
|
return e;
|
|
1652
|
-
if (!(e instanceof
|
|
1652
|
+
if (!(e instanceof A))
|
|
1653
1653
|
throw Error("Object is not pseudo");
|
|
1654
1654
|
if (J(this, e, this.I))
|
|
1655
1655
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1665,7 +1665,7 @@ B.R = function(e, t) {
|
|
|
1665
1665
|
if (t.hb.push(e), J(this, e, this.qa)) {
|
|
1666
1666
|
n = [], t.Sa.push(n);
|
|
1667
1667
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1668
|
-
|
|
1668
|
+
Vt(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1669
1669
|
} else
|
|
1670
1670
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1671
1671
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1685,7 +1685,7 @@ function Wr(e, t) {
|
|
|
1685
1685
|
var n = [], r;
|
|
1686
1686
|
for (r in t.h)
|
|
1687
1687
|
n[r] = e.G(t, r);
|
|
1688
|
-
return n.length =
|
|
1688
|
+
return n.length = Tn(e.G(t, "length")) || 0, n;
|
|
1689
1689
|
}
|
|
1690
1690
|
function we(e, t) {
|
|
1691
1691
|
switch (typeof t) {
|
|
@@ -1701,7 +1701,7 @@ function we(e, t) {
|
|
|
1701
1701
|
B.G = function(e, t) {
|
|
1702
1702
|
if (this.P)
|
|
1703
1703
|
throw Error("Getter not supported in that context");
|
|
1704
|
-
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1704
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof A))
|
|
1705
1705
|
throw TypeError("Expecting native value or pseudo object");
|
|
1706
1706
|
if (t === "length") {
|
|
1707
1707
|
if (J(this, e, this.J))
|
|
@@ -1716,8 +1716,8 @@ B.G = function(e, t) {
|
|
|
1716
1716
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1717
1717
|
while (e = we(this, e));
|
|
1718
1718
|
};
|
|
1719
|
-
function
|
|
1720
|
-
if (!(t instanceof
|
|
1719
|
+
function Vt(e, t, n) {
|
|
1720
|
+
if (!(t instanceof A))
|
|
1721
1721
|
throw TypeError("Primitive data type has no properties");
|
|
1722
1722
|
if (n = String(n), n === "length" && J(e, t, e.J))
|
|
1723
1723
|
return !0;
|
|
@@ -1735,11 +1735,11 @@ function Ut(e, t, n) {
|
|
|
1735
1735
|
B.g = function(e, t, n, r) {
|
|
1736
1736
|
if (this.Ka)
|
|
1737
1737
|
throw Error("Setter not supported in that context");
|
|
1738
|
-
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1738
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof A))
|
|
1739
1739
|
throw TypeError("Expecting native value or pseudo object");
|
|
1740
1740
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1741
|
-
var o = !this.o ||
|
|
1742
|
-
if (e instanceof
|
|
1741
|
+
var o = !this.o || Rn(this).S;
|
|
1742
|
+
if (e instanceof A) {
|
|
1743
1743
|
if (J(this, e, this.J)) {
|
|
1744
1744
|
var i = dt(t);
|
|
1745
1745
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
@@ -1754,7 +1754,7 @@ B.g = function(e, t, n, r) {
|
|
|
1754
1754
|
return;
|
|
1755
1755
|
n = r.value;
|
|
1756
1756
|
}
|
|
1757
|
-
if (n =
|
|
1757
|
+
if (n = Tn(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < i)
|
|
1758
1758
|
for (a in e.h) {
|
|
1759
1759
|
var a = dt(a);
|
|
1760
1760
|
!isNaN(a) && n <= a && delete e.h[a];
|
|
@@ -1806,12 +1806,12 @@ function q(e, t, n, r) {
|
|
|
1806
1806
|
function ut(e, t, n, r) {
|
|
1807
1807
|
e.g(t.h.prototype, n, e.ub(r), k);
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function Rn(e) {
|
|
1810
1810
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1811
1811
|
throw Error("No scope found");
|
|
1812
1812
|
return e;
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function yn(e, t, n) {
|
|
1815
1815
|
var r = !1;
|
|
1816
1816
|
if (n && n.S)
|
|
1817
1817
|
r = !0;
|
|
@@ -1826,18 +1826,18 @@ function $n(e, t, n) {
|
|
|
1826
1826
|
throw Error("parentScope required");
|
|
1827
1827
|
return e = n || e.s(null), new Kr(t, t.S, e);
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1830
|
-
for (var n =
|
|
1829
|
+
function An(e, t) {
|
|
1830
|
+
for (var n = Rn(e); n && n !== e.N; ) {
|
|
1831
1831
|
if (t in n.object.h)
|
|
1832
1832
|
return n.object.h[t];
|
|
1833
1833
|
n = n.Va;
|
|
1834
1834
|
}
|
|
1835
|
-
if (n === e.N &&
|
|
1835
|
+
if (n === e.N && Vt(e, n.object, t))
|
|
1836
1836
|
return e.G(n.object, t);
|
|
1837
1837
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1838
1838
|
}
|
|
1839
1839
|
function Lr(e, t, n) {
|
|
1840
|
-
for (var r =
|
|
1840
|
+
for (var r = Rn(e), o = r.S; r && r !== e.N; ) {
|
|
1841
1841
|
if (t in r.object.h) {
|
|
1842
1842
|
try {
|
|
1843
1843
|
r.object.h[t] = n;
|
|
@@ -1848,7 +1848,7 @@ function Lr(e, t, n) {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
r = r.Va;
|
|
1850
1850
|
}
|
|
1851
|
-
if (r === e.N && (!o ||
|
|
1851
|
+
if (r === e.N && (!o || Vt(e, r.object, t)))
|
|
1852
1852
|
return e.g(r.object, t, n);
|
|
1853
1853
|
w(e, e.pb, t + " is not defined");
|
|
1854
1854
|
}
|
|
@@ -1898,20 +1898,20 @@ function yt(e, t, n) {
|
|
|
1898
1898
|
t.jb = r;
|
|
1899
1899
|
}
|
|
1900
1900
|
for (a in r)
|
|
1901
|
-
r[a] === !0 ? e.g(n.object, a, void 0, br) : e.g(n.object, a,
|
|
1901
|
+
r[a] === !0 ? e.g(n.object, a, void 0, br) : e.g(n.object, a, xn(e, r[a], n), br);
|
|
1902
1902
|
return r;
|
|
1903
1903
|
}
|
|
1904
1904
|
function Ie(e) {
|
|
1905
1905
|
return e.o[e.o.length - 1].isConstructor;
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1908
|
-
return t[0] === Je ?
|
|
1907
|
+
function Pn(e, t) {
|
|
1908
|
+
return t[0] === Je ? An(e, t[1]) : e.G(t[0], t[1]);
|
|
1909
1909
|
}
|
|
1910
|
-
function
|
|
1910
|
+
function On(e, t, n) {
|
|
1911
1911
|
return t[0] === Je ? Lr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1912
1912
|
}
|
|
1913
1913
|
function w(e, t, n) {
|
|
1914
|
-
throw e.N ? (n !== void 0 && t instanceof
|
|
1914
|
+
throw e.N ? (n !== void 0 && t instanceof A && (t = e.Aa(t), gn(e, t, n)), bt(e, 4, t), Mr) : n === void 0 ? t : n;
|
|
1915
1915
|
}
|
|
1916
1916
|
function bt(e, t, n, r) {
|
|
1917
1917
|
if (t === 0)
|
|
@@ -1993,7 +1993,7 @@ function Sr(e, t, n) {
|
|
|
1993
1993
|
var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
|
|
1994
1994
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1995
1995
|
var a = e.ya();
|
|
1996
|
-
if (i instanceof
|
|
1996
|
+
if (i instanceof A && i.H === "Function") {
|
|
1997
1997
|
var u = i;
|
|
1998
1998
|
a.type = "CallExpression", r = r.scope;
|
|
1999
1999
|
} else {
|
|
@@ -2002,7 +2002,7 @@ function Sr(e, t, n) {
|
|
|
2002
2002
|
} catch (m) {
|
|
2003
2003
|
w(e, e.T, "Invalid code: " + m.message);
|
|
2004
2004
|
}
|
|
2005
|
-
a.type = "EvalProgram_", a.body = p.body, r = r.node.arguments[0],
|
|
2005
|
+
a.type = "EvalProgram_", a.body = p.body, r = r.node.arguments[0], Nt(a, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
2006
2006
|
}
|
|
2007
2007
|
return t = new gi(u, o, r, a, t ? n : -1), Hr(e, t, n), t.Db;
|
|
2008
2008
|
}
|
|
@@ -2025,15 +2025,15 @@ function kt(e, t, n) {
|
|
|
2025
2025
|
var r = e.ya();
|
|
2026
2026
|
return r.type = "CallExpression", e = new S(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
2027
2027
|
}
|
|
2028
|
-
function
|
|
2028
|
+
function jn(e, t, n, r) {
|
|
2029
2029
|
if (!e.Ka)
|
|
2030
2030
|
throw Error("Unexpected call to createSetter");
|
|
2031
2031
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
2032
2032
|
var o = e.ya();
|
|
2033
2033
|
return o.type = "CallExpression", e = new S(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2036
|
-
return t == null ? e.Na : t instanceof
|
|
2035
|
+
function ln(e, t) {
|
|
2036
|
+
return t == null ? e.Na : t instanceof A ? t : (e = e.s(we(e, t)), e.data = t, e);
|
|
2037
2037
|
}
|
|
2038
2038
|
B.Xb = function() {
|
|
2039
2039
|
return this.N;
|
|
@@ -2050,17 +2050,17 @@ function S(e, t) {
|
|
|
2050
2050
|
function Kr(e, t, n) {
|
|
2051
2051
|
this.Va = e, this.S = t, this.object = n;
|
|
2052
2052
|
}
|
|
2053
|
-
function
|
|
2053
|
+
function A(e) {
|
|
2054
2054
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
2055
2055
|
}
|
|
2056
|
-
B =
|
|
2056
|
+
B = A.prototype;
|
|
2057
2057
|
B.xa = null;
|
|
2058
2058
|
B.H = "Object";
|
|
2059
2059
|
B.data = null;
|
|
2060
2060
|
B.toString = function() {
|
|
2061
2061
|
if (!pt)
|
|
2062
2062
|
return "[object Interpreter.Object]";
|
|
2063
|
-
if (!(this instanceof
|
|
2063
|
+
if (!(this instanceof A))
|
|
2064
2064
|
return String(this);
|
|
2065
2065
|
if (this.H === "Array") {
|
|
2066
2066
|
var e = kr;
|
|
@@ -2070,7 +2070,7 @@ B.toString = function() {
|
|
|
2070
2070
|
1024 < n && (n = 1e3, r = !0);
|
|
2071
2071
|
for (var o = 0; o < n; o++) {
|
|
2072
2072
|
var i = this.h[o];
|
|
2073
|
-
t[o] = i instanceof
|
|
2073
|
+
t[o] = i instanceof A && e.indexOf(i) !== -1 ? "..." : i;
|
|
2074
2074
|
}
|
|
2075
2075
|
r && t.push("...");
|
|
2076
2076
|
} finally {
|
|
@@ -2126,7 +2126,7 @@ g.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2126
2126
|
if (!t.ja)
|
|
2127
2127
|
return t.ja = !0, t = new S(n.left, t.scope), t.sa = !0, t;
|
|
2128
2128
|
if (!t.Da)
|
|
2129
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
2129
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = Pn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, kt(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new S(n.right, t.scope));
|
|
2130
2130
|
if (t.ta)
|
|
2131
2131
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2132
2132
|
else {
|
|
@@ -2171,8 +2171,8 @@ g.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2171
2171
|
default:
|
|
2172
2172
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2173
2173
|
}
|
|
2174
|
-
if (n =
|
|
2175
|
-
return t.ta = !0, t.ib = r,
|
|
2174
|
+
if (n = On(this, t.Fa, r))
|
|
2175
|
+
return t.ta = !0, t.ib = r, jn(this, n, t.Fa, r);
|
|
2176
2176
|
e.pop(), e[e.length - 1].value = r;
|
|
2177
2177
|
}
|
|
2178
2178
|
};
|
|
@@ -2242,10 +2242,10 @@ g.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2242
2242
|
n = r >>> t;
|
|
2243
2243
|
break;
|
|
2244
2244
|
case "in":
|
|
2245
|
-
t instanceof
|
|
2245
|
+
t instanceof A || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = Vt(this, t, r);
|
|
2246
2246
|
break;
|
|
2247
2247
|
case "instanceof":
|
|
2248
|
-
J(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof
|
|
2248
|
+
J(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof A ? J(this, r, t) : !1;
|
|
2249
2249
|
break;
|
|
2250
2250
|
default:
|
|
2251
2251
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2272,7 +2272,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2272
2272
|
t.ia = 2;
|
|
2273
2273
|
var o = t.value;
|
|
2274
2274
|
if (Array.isArray(o)) {
|
|
2275
|
-
if (t.U =
|
|
2275
|
+
if (t.U = Pn(this, o), o[0] === Je ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2276
2276
|
return t.ia = 1, kt(this, o, t.value);
|
|
2277
2277
|
} else
|
|
2278
2278
|
t.U = o;
|
|
@@ -2282,7 +2282,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2282
2282
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2283
2283
|
return new S(n.arguments[t.A++], t.scope);
|
|
2284
2284
|
if (n.type === "NewExpression") {
|
|
2285
|
-
if (o instanceof
|
|
2285
|
+
if (o instanceof A && !o.Ab || w(this, this.j, te(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2286
2286
|
t.B = Ge(this);
|
|
2287
2287
|
else {
|
|
2288
2288
|
var i = o.h.prototype;
|
|
@@ -2295,12 +2295,12 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2295
2295
|
if (t.eb)
|
|
2296
2296
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2297
2297
|
else {
|
|
2298
|
-
if (t.eb = !0, o instanceof
|
|
2299
|
-
for (n =
|
|
2298
|
+
if (t.eb = !0, o instanceof A || w(this, this.j, te(this, n.callee) + " is not a function"), e = o.node) {
|
|
2299
|
+
for (n = yn(this, e.body, o.Va), r = Ge(this), o = 0; o < t.F.length; o++)
|
|
2300
2300
|
this.g(r, o, t.F[o]);
|
|
2301
2301
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2302
2302
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2303
|
-
return n.S || (t.B =
|
|
2303
|
+
return n.S || (t.B = ln(this, t.B)), this.g(n.object, "this", t.B, wn), t.value = void 0, new S(e.body, n);
|
|
2304
2304
|
}
|
|
2305
2305
|
if (o.eval)
|
|
2306
2306
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2311,15 +2311,15 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2311
2311
|
} catch (u) {
|
|
2312
2312
|
w(this, this.T, "Invalid code: " + u.message);
|
|
2313
2313
|
}
|
|
2314
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body,
|
|
2314
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, Nt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = yn(this, r, n) : yt(this, r, n), this.value = void 0, new S(o, n);
|
|
2315
2315
|
}
|
|
2316
2316
|
else if (o.Ta)
|
|
2317
|
-
t.scope.S || (t.B =
|
|
2317
|
+
t.scope.S || (t.B = ln(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2318
2318
|
else if (o.Za) {
|
|
2319
2319
|
var a = this;
|
|
2320
2320
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2321
2321
|
t.value = u, a.za = !1;
|
|
2322
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2322
|
+
}), this.za = !0, t.scope.S || (t.B = ln(this, t.B)), o.Za.apply(t.B, r);
|
|
2323
2323
|
} else
|
|
2324
2324
|
w(this, this.j, te(this, n.callee) + " is not callable");
|
|
2325
2325
|
}
|
|
@@ -2373,7 +2373,7 @@ g.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2373
2373
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2374
2374
|
e:
|
|
2375
2375
|
for (; ; ) {
|
|
2376
|
-
if (t.u instanceof
|
|
2376
|
+
if (t.u instanceof A)
|
|
2377
2377
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2378
2378
|
var r = t.wa.shift();
|
|
2379
2379
|
if (r === void 0)
|
|
@@ -2400,8 +2400,8 @@ g.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2400
2400
|
t.pa = [Je, e.fa[0].id.name];
|
|
2401
2401
|
else
|
|
2402
2402
|
return t.pa = null, t = new S(e, t.scope), t.sa = !0, t;
|
|
2403
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2404
|
-
return
|
|
2403
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = On(this, t.pa, e)))
|
|
2404
|
+
return jn(this, r, t.pa, e);
|
|
2405
2405
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2406
2406
|
return new S(n.body, t.scope);
|
|
2407
2407
|
};
|
|
@@ -2430,13 +2430,13 @@ g.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2430
2430
|
e.pop();
|
|
2431
2431
|
};
|
|
2432
2432
|
g.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2433
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = $n(this, e)), t.value =
|
|
2433
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = $n(this, e)), t.value = xn(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, wn);
|
|
2434
2434
|
};
|
|
2435
2435
|
g.prototype.stepIdentifier = function(e, t, n) {
|
|
2436
2436
|
if (e.pop(), t.sa)
|
|
2437
2437
|
e[e.length - 1].value = [Je, n.name];
|
|
2438
2438
|
else {
|
|
2439
|
-
if (t =
|
|
2439
|
+
if (t = An(this, n.name), this.P)
|
|
2440
2440
|
return kt(this, t, this.Na);
|
|
2441
2441
|
e[e.length - 1].value = t;
|
|
2442
2442
|
}
|
|
@@ -2446,7 +2446,7 @@ g.prototype.stepLabeledStatement = function(e, t, n) {
|
|
|
2446
2446
|
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new S(n.body, t.scope), t.labels = e, t;
|
|
2447
2447
|
};
|
|
2448
2448
|
g.prototype.stepLiteral = function(e, t, n) {
|
|
2449
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2449
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), En(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2450
2450
|
};
|
|
2451
2451
|
g.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2452
2452
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
@@ -2549,7 +2549,7 @@ g.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2549
2549
|
}
|
|
2550
2550
|
};
|
|
2551
2551
|
g.prototype.stepThisExpression = function(e) {
|
|
2552
|
-
e.pop(), e[e.length - 1].value =
|
|
2552
|
+
e.pop(), e[e.length - 1].value = An(this, "this");
|
|
2553
2553
|
};
|
|
2554
2554
|
g.prototype.stepThrowStatement = function(e, t, n) {
|
|
2555
2555
|
if (t.ka)
|
|
@@ -2611,7 +2611,7 @@ g.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2611
2611
|
if (!t.ja)
|
|
2612
2612
|
return t.ja = !0, e = new S(n.K, t.scope), e.sa = !0, e;
|
|
2613
2613
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2614
|
-
var r =
|
|
2614
|
+
var r = Pn(this, t.Ga);
|
|
2615
2615
|
if (t.ma = r, this.P)
|
|
2616
2616
|
return t.Ba = !0, kt(this, r, t.Ga);
|
|
2617
2617
|
}
|
|
@@ -2624,8 +2624,8 @@ g.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2624
2624
|
o = r - 1;
|
|
2625
2625
|
else
|
|
2626
2626
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2627
|
-
if (n = n.prefix ? o : r, r =
|
|
2628
|
-
return t.ta = !0, t.ib = n,
|
|
2627
|
+
if (n = n.prefix ? o : r, r = On(this, t.Ga, o))
|
|
2628
|
+
return t.ta = !0, t.ib = n, jn(this, r, t.Ga, o);
|
|
2629
2629
|
e.pop(), e[e.length - 1].value = n;
|
|
2630
2630
|
}
|
|
2631
2631
|
};
|
|
@@ -2684,7 +2684,7 @@ const vi = (e) => e.split(`
|
|
|
2684
2684
|
const u = {
|
|
2685
2685
|
...r,
|
|
2686
2686
|
...o
|
|
2687
|
-
}, p =
|
|
2687
|
+
}, p = Dr({
|
|
2688
2688
|
builder: e,
|
|
2689
2689
|
context: t,
|
|
2690
2690
|
event: n,
|
|
@@ -2706,7 +2706,7 @@ function theFunction() {
|
|
|
2706
2706
|
}
|
|
2707
2707
|
theFunction();
|
|
2708
2708
|
`, C = (Y, N) => {
|
|
2709
|
-
const R =
|
|
2709
|
+
const R = Cn(u, Y, N);
|
|
2710
2710
|
i == null || i(R);
|
|
2711
2711
|
}, O = function(Y, N) {
|
|
2712
2712
|
p.forEach(([R, xe]) => {
|
|
@@ -2744,9 +2744,9 @@ const Si = () => {
|
|
|
2744
2744
|
});
|
|
2745
2745
|
}
|
|
2746
2746
|
};
|
|
2747
|
-
|
|
2747
|
+
an(ke, "cacheLimit", 20), an(ke, "cache", /* @__PURE__ */ new Map());
|
|
2748
2748
|
let qe = ke;
|
|
2749
|
-
function
|
|
2749
|
+
function jt({
|
|
2750
2750
|
code: e,
|
|
2751
2751
|
context: t,
|
|
2752
2752
|
localState: n,
|
|
@@ -2788,7 +2788,7 @@ function Bt({
|
|
|
2788
2788
|
return;
|
|
2789
2789
|
}
|
|
2790
2790
|
}
|
|
2791
|
-
const
|
|
2791
|
+
const Bn = (e) => JSON.parse(JSON.stringify(e));
|
|
2792
2792
|
const wi = ({
|
|
2793
2793
|
block: e,
|
|
2794
2794
|
context: t,
|
|
@@ -2798,7 +2798,7 @@ const wi = ({
|
|
|
2798
2798
|
}) => {
|
|
2799
2799
|
if (!e.bindings)
|
|
2800
2800
|
return e;
|
|
2801
|
-
const i =
|
|
2801
|
+
const i = Bn(e), a = {
|
|
2802
2802
|
...i,
|
|
2803
2803
|
properties: {
|
|
2804
2804
|
...i.properties
|
|
@@ -2808,7 +2808,7 @@ const wi = ({
|
|
|
2808
2808
|
}
|
|
2809
2809
|
};
|
|
2810
2810
|
for (const u in e.bindings) {
|
|
2811
|
-
const p = e.bindings[u], m =
|
|
2811
|
+
const p = e.bindings[u], m = jt({
|
|
2812
2812
|
code: p,
|
|
2813
2813
|
localState: n,
|
|
2814
2814
|
rootState: r,
|
|
@@ -2816,7 +2816,7 @@ const wi = ({
|
|
|
2816
2816
|
context: t,
|
|
2817
2817
|
enableCache: !0
|
|
2818
2818
|
});
|
|
2819
|
-
|
|
2819
|
+
Cn(a, u, m);
|
|
2820
2820
|
}
|
|
2821
2821
|
return a;
|
|
2822
2822
|
};
|
|
@@ -2940,7 +2940,7 @@ const Xr = (e) => Object.entries(e).map(([n, r]) => {
|
|
|
2940
2940
|
if (typeof r == "string")
|
|
2941
2941
|
return `${Nn(n)}: ${r};`;
|
|
2942
2942
|
}).filter(Be), Ri = (e) => Xr(e).join(`
|
|
2943
|
-
`),
|
|
2943
|
+
`), hu = ({
|
|
2944
2944
|
mediaQuery: e,
|
|
2945
2945
|
className: t,
|
|
2946
2946
|
styles: n
|
|
@@ -2952,15 +2952,15 @@ const Xr = (e) => Object.entries(e).map(([n, r]) => {
|
|
|
2952
2952
|
${r}
|
|
2953
2953
|
}` : r;
|
|
2954
2954
|
};
|
|
2955
|
-
function
|
|
2955
|
+
function $i({
|
|
2956
2956
|
style: e
|
|
2957
2957
|
}) {
|
|
2958
2958
|
return e;
|
|
2959
2959
|
}
|
|
2960
|
-
const
|
|
2960
|
+
const fu = ({
|
|
2961
2961
|
block: e,
|
|
2962
2962
|
context: t
|
|
2963
|
-
}) => Yr(
|
|
2963
|
+
}) => Yr($i({
|
|
2964
2964
|
style: e.style || {},
|
|
2965
2965
|
context: t,
|
|
2966
2966
|
block: e
|
|
@@ -2979,7 +2979,7 @@ function Yr(e) {
|
|
|
2979
2979
|
return e;
|
|
2980
2980
|
}
|
|
2981
2981
|
}
|
|
2982
|
-
const
|
|
2982
|
+
const Ai = ({
|
|
2983
2983
|
block: e,
|
|
2984
2984
|
context: t,
|
|
2985
2985
|
registeredComponents: n
|
|
@@ -3011,7 +3011,7 @@ const $i = ({
|
|
|
3011
3011
|
} = e;
|
|
3012
3012
|
if (!(n != null && n.collection))
|
|
3013
3013
|
return;
|
|
3014
|
-
const o =
|
|
3014
|
+
const o = jt({
|
|
3015
3015
|
code: n.collection,
|
|
3016
3016
|
localState: t.localState,
|
|
3017
3017
|
rootState: t.rootState,
|
|
@@ -3060,22 +3060,22 @@ const $i = ({
|
|
|
3060
3060
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3061
3061
|
e
|
|
3062
3062
|
), e;
|
|
3063
|
-
}), Ui = () => import("./block-styles-
|
|
3063
|
+
}), Ui = () => import("./block-styles-uNDwUd0D.js").then((e) => e.default).catch((e) => {
|
|
3064
3064
|
throw console.error(
|
|
3065
3065
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3066
3066
|
e
|
|
3067
3067
|
), e;
|
|
3068
|
-
}),
|
|
3068
|
+
}), Di = () => import("./block-wrapper-I5fwbjlI.js").then((e) => e.default).catch((e) => {
|
|
3069
3069
|
throw console.error(
|
|
3070
3070
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3071
3071
|
e
|
|
3072
3072
|
), e;
|
|
3073
|
-
}),
|
|
3073
|
+
}), Fi = () => import("./component-ref-eBvirZir.js").then((e) => e.default).catch((e) => {
|
|
3074
3074
|
throw console.error(
|
|
3075
3075
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3076
3076
|
e
|
|
3077
3077
|
), e;
|
|
3078
|
-
}), Mi = () => import("./repeated-block-
|
|
3078
|
+
}), Mi = () => import("./repeated-block-kklYPBl5.js").then((e) => e.default).catch((e) => {
|
|
3079
3079
|
throw console.error(
|
|
3080
3080
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3081
3081
|
e
|
|
@@ -3084,9 +3084,9 @@ const $i = ({
|
|
|
3084
3084
|
name: "block",
|
|
3085
3085
|
components: {
|
|
3086
3086
|
BlockStyles: ot(Ui),
|
|
3087
|
-
ComponentRef: ot(
|
|
3087
|
+
ComponentRef: ot(Fi),
|
|
3088
3088
|
RepeatedBlock: ot(Mi),
|
|
3089
|
-
BlockWrapper: ot(
|
|
3089
|
+
BlockWrapper: ot(Di),
|
|
3090
3090
|
DynamicDiv: ot(Vi)
|
|
3091
3091
|
},
|
|
3092
3092
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
@@ -3101,7 +3101,7 @@ const $i = ({
|
|
|
3101
3101
|
},
|
|
3102
3102
|
computed: {
|
|
3103
3103
|
blockComponent() {
|
|
3104
|
-
return
|
|
3104
|
+
return Ai({
|
|
3105
3105
|
block: this.block,
|
|
3106
3106
|
context: this.context,
|
|
3107
3107
|
registeredComponents: this.registeredComponents
|
|
@@ -3172,7 +3172,7 @@ function Li(e, t, n, r, o, i) {
|
|
|
3172
3172
|
block: e.block,
|
|
3173
3173
|
context: e.context
|
|
3174
3174
|
}, null, 8, ["block", "context"]),
|
|
3175
|
-
(h = e.blockComponent) != null && h.noWrap ? (y(),
|
|
3175
|
+
(h = e.blockComponent) != null && h.noWrap ? (y(), D(u, {
|
|
3176
3176
|
key: 1,
|
|
3177
3177
|
componentRef: e.componentRefProps.componentRef,
|
|
3178
3178
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -3184,13 +3184,13 @@ function Li(e, t, n, r, o, i) {
|
|
|
3184
3184
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
3185
3185
|
isInteractive: e.componentRefProps.isInteractive
|
|
3186
3186
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (y(), T(Z, { key: 0 }, [
|
|
3187
|
-
e.repeatItem ? (y(!0), T(Z, { key: 1 }, Ee(e.repeatItem, (C, O) => (y(),
|
|
3187
|
+
e.repeatItem ? (y(!0), T(Z, { key: 1 }, Ee(e.repeatItem, (C, O) => (y(), D(v, {
|
|
3188
3188
|
key: O,
|
|
3189
3189
|
repeatContext: C.context,
|
|
3190
3190
|
block: C.block,
|
|
3191
3191
|
registeredComponents: e.registeredComponents,
|
|
3192
3192
|
linkComponent: e.linkComponent
|
|
3193
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (y(),
|
|
3193
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (y(), D(m, {
|
|
3194
3194
|
key: 0,
|
|
3195
3195
|
Wrapper: e.Tag,
|
|
3196
3196
|
block: e.processedBlock,
|
|
@@ -3208,7 +3208,7 @@ function Li(e, t, n, r, o, i) {
|
|
|
3208
3208
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
3209
3209
|
isInteractive: e.componentRefProps.isInteractive
|
|
3210
3210
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
3211
|
-
(y(!0), T(Z, null, Ee(e.childrenWithoutParentComponent, (C, O) => (y(),
|
|
3211
|
+
(y(!0), T(Z, null, Ee(e.childrenWithoutParentComponent, (C, O) => (y(), D(p, {
|
|
3212
3212
|
key: C.id,
|
|
3213
3213
|
block: C,
|
|
3214
3214
|
registeredComponents: e.registeredComponents,
|
|
@@ -3221,7 +3221,7 @@ function Li(e, t, n, r, o, i) {
|
|
|
3221
3221
|
], 64))
|
|
3222
3222
|
], 64)) : M("", !0);
|
|
3223
3223
|
}
|
|
3224
|
-
const Vn = /* @__PURE__ */ V(Wi, [["render", Li]]),
|
|
3224
|
+
const Vn = /* @__PURE__ */ V(Wi, [["render", Li]]), mu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3225
3225
|
__proto__: null,
|
|
3226
3226
|
default: Vn
|
|
3227
3227
|
}, Symbol.toStringTag, { value: "Module" })), Hi = j({
|
|
@@ -3270,7 +3270,7 @@ const Vn = /* @__PURE__ */ V(Wi, [["render", Li]]), gu = /* @__PURE__ */ Object.
|
|
|
3270
3270
|
}
|
|
3271
3271
|
});
|
|
3272
3272
|
function Ki(e, t, n, r, o, i) {
|
|
3273
|
-
return y(),
|
|
3273
|
+
return y(), D(ct(e.BlocksWrapper), z({
|
|
3274
3274
|
class: e.className + " component-178o76acnws",
|
|
3275
3275
|
"builder-path": e.path,
|
|
3276
3276
|
"builder-parent-id": e.parent,
|
|
@@ -3298,14 +3298,14 @@ const qi = /* @__PURE__ */ V(Hi, [["render", Ki], ["__scopeId", "data-v-a5b13ef9
|
|
|
3298
3298
|
"registeredComponents"
|
|
3299
3299
|
],
|
|
3300
3300
|
inject: {
|
|
3301
|
-
builderContext:
|
|
3301
|
+
builderContext: fn.key,
|
|
3302
3302
|
componentsContext: Br.key
|
|
3303
3303
|
}
|
|
3304
3304
|
});
|
|
3305
3305
|
function Gi(e, t, n, r, o, i) {
|
|
3306
3306
|
var p, m;
|
|
3307
3307
|
const a = U("Block"), u = U("BlocksWrapper");
|
|
3308
|
-
return y(),
|
|
3308
|
+
return y(), D(u, {
|
|
3309
3309
|
blocks: e.blocks,
|
|
3310
3310
|
parent: e.parent,
|
|
3311
3311
|
path: e.path,
|
|
@@ -3314,7 +3314,7 @@ function Gi(e, t, n, r, o, i) {
|
|
|
3314
3314
|
BlocksWrapperProps: ((m = e.context) == null ? void 0 : m.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
|
|
3315
3315
|
}, {
|
|
3316
3316
|
default: Te(() => [
|
|
3317
|
-
e.blocks ? (y(!0), T(Z, { key: 0 }, Ee(e.blocks, (v, h) => (y(),
|
|
3317
|
+
e.blocks ? (y(!0), T(Z, { key: 0 }, Ee(e.blocks, (v, h) => (y(), D(a, {
|
|
3318
3318
|
key: v.id,
|
|
3319
3319
|
block: v,
|
|
3320
3320
|
linkComponent: e.linkComponent,
|
|
@@ -3334,9 +3334,9 @@ function Xi(e, t, n, r, o, i) {
|
|
|
3334
3334
|
pe(e.$slots, "default")
|
|
3335
3335
|
]);
|
|
3336
3336
|
}
|
|
3337
|
-
const
|
|
3337
|
+
const St = /* @__PURE__ */ V(Ji, [["render", Xi]]), Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3338
3338
|
__proto__: null,
|
|
3339
|
-
default:
|
|
3339
|
+
default: St
|
|
3340
3340
|
}, Symbol.toStringTag, { value: "Module" })), Un = j({
|
|
3341
3341
|
render() {
|
|
3342
3342
|
return jr("style", {
|
|
@@ -3363,11 +3363,11 @@ const Ct = /* @__PURE__ */ V(Ji, [["render", Xi]]), Yi = /* @__PURE__ */ Object.
|
|
|
3363
3363
|
default: 991,
|
|
3364
3364
|
max: 1200
|
|
3365
3365
|
}
|
|
3366
|
-
},
|
|
3366
|
+
}, gu = (e, t = _r) => `@media (max-width: ${t[e].max}px)`, _i = ({
|
|
3367
3367
|
small: e,
|
|
3368
3368
|
medium: t
|
|
3369
3369
|
}) => {
|
|
3370
|
-
const n =
|
|
3370
|
+
const n = Bn(_r);
|
|
3371
3371
|
if (!e || !t)
|
|
3372
3372
|
return n;
|
|
3373
3373
|
const r = Math.floor(e / 2);
|
|
@@ -3393,9 +3393,9 @@ const Ct = /* @__PURE__ */ V(Ji, [["render", Xi]]), Yi = /* @__PURE__ */ Object.
|
|
|
3393
3393
|
name: "builder-columns",
|
|
3394
3394
|
components: {
|
|
3395
3395
|
InlinedStyles: Un,
|
|
3396
|
-
DynamicRenderer:
|
|
3396
|
+
DynamicRenderer: Sn,
|
|
3397
3397
|
Blocks: Xe,
|
|
3398
|
-
DynamicDiv:
|
|
3398
|
+
DynamicDiv: St
|
|
3399
3399
|
},
|
|
3400
3400
|
props: [
|
|
3401
3401
|
"space",
|
|
@@ -3485,6 +3485,7 @@ const Ct = /* @__PURE__ */ V(Ji, [["render", Xi]]), Yi = /* @__PURE__ */ Object.
|
|
|
3485
3485
|
)[e].max;
|
|
3486
3486
|
},
|
|
3487
3487
|
columnsStyles() {
|
|
3488
|
+
const e = `.${this.builderBlock.id}-breakpoints > .builder-column`;
|
|
3488
3489
|
return `
|
|
3489
3490
|
@media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
|
|
3490
3491
|
.${this.builderBlock.id}-breakpoints {
|
|
@@ -3492,7 +3493,7 @@ const Ct = /* @__PURE__ */ V(Ji, [["render", Xi]]), Yi = /* @__PURE__ */ Object.
|
|
|
3492
3493
|
align-items: stretch;
|
|
3493
3494
|
}
|
|
3494
3495
|
|
|
3495
|
-
|
|
3496
|
+
${e} {
|
|
3496
3497
|
width: var(--column-width-tablet) !important;
|
|
3497
3498
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
3498
3499
|
}
|
|
@@ -3504,7 +3505,7 @@ const Ct = /* @__PURE__ */ V(Ji, [["render", Xi]]), Yi = /* @__PURE__ */ Object.
|
|
|
3504
3505
|
align-items: stretch;
|
|
3505
3506
|
}
|
|
3506
3507
|
|
|
3507
|
-
|
|
3508
|
+
${e} {
|
|
3508
3509
|
width: var(--column-width-mobile) !important;
|
|
3509
3510
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
3510
3511
|
}
|
|
@@ -3516,7 +3517,7 @@ const Ct = /* @__PURE__ */ V(Ji, [["render", Xi]]), Yi = /* @__PURE__ */ Object.
|
|
|
3516
3517
|
...e.link ? {
|
|
3517
3518
|
href: e.link
|
|
3518
3519
|
} : {},
|
|
3519
|
-
[
|
|
3520
|
+
[Ot()]: "builder-column",
|
|
3520
3521
|
style: Yr(this.columnCssVars(t))
|
|
3521
3522
|
};
|
|
3522
3523
|
}
|
|
@@ -3526,16 +3527,16 @@ function es(e, t, n, r, o, i) {
|
|
|
3526
3527
|
var m;
|
|
3527
3528
|
const a = U("InlinedStyles"), u = U("Blocks"), p = U("DynamicRenderer");
|
|
3528
3529
|
return y(), T("div", z({
|
|
3529
|
-
class: e.getColumnsClass((m = e.builderBlock) == null ? void 0 : m.id) + " div-
|
|
3530
|
+
class: e.getColumnsClass((m = e.builderBlock) == null ? void 0 : m.id) + " div-t9spj7joih",
|
|
3530
3531
|
style: e.columnsCssVars()
|
|
3531
3532
|
}, {}), [
|
|
3532
|
-
e.TARGET !== "reactNative" ? (y(),
|
|
3533
|
+
e.TARGET !== "reactNative" ? (y(), D(a, {
|
|
3533
3534
|
key: 0,
|
|
3534
3535
|
id: "builderio-columns",
|
|
3535
3536
|
styles: e.columnsStyles(),
|
|
3536
3537
|
nonce: e.builderContext.nonce
|
|
3537
3538
|
}, null, 8, ["styles", "nonce"])) : M("", !0),
|
|
3538
|
-
(y(!0), T(Z, null, Ee(e.columns, (v, h) => (y(),
|
|
3539
|
+
(y(!0), T(Z, null, Ee(e.columns, (v, h) => (y(), D(p, {
|
|
3539
3540
|
key: h,
|
|
3540
3541
|
TagName: e.getTagName(v),
|
|
3541
3542
|
actionAttributes: {},
|
|
@@ -3558,7 +3559,7 @@ function es(e, t, n, r, o, i) {
|
|
|
3558
3559
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
3559
3560
|
], 16);
|
|
3560
3561
|
}
|
|
3561
|
-
const ts = /* @__PURE__ */ V(Qi, [["render", es], ["__scopeId", "data-v-
|
|
3562
|
+
const ts = /* @__PURE__ */ V(Qi, [["render", es], ["__scopeId", "data-v-c214af09"]]), ns = j({
|
|
3562
3563
|
name: "builder-fragment-component",
|
|
3563
3564
|
props: []
|
|
3564
3565
|
});
|
|
@@ -3587,7 +3588,7 @@ function ss(e, t) {
|
|
|
3587
3588
|
}
|
|
3588
3589
|
return null;
|
|
3589
3590
|
}
|
|
3590
|
-
function
|
|
3591
|
+
function un(e) {
|
|
3591
3592
|
if (!e)
|
|
3592
3593
|
return e;
|
|
3593
3594
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -3623,12 +3624,14 @@ const as = j({
|
|
|
3623
3624
|
// images, otherwise you can supply this prop manually
|
|
3624
3625
|
!(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
|
|
3625
3626
|
return this.srcset;
|
|
3626
|
-
if (this.
|
|
3627
|
-
if (
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3627
|
+
if (!this.noWebp) {
|
|
3628
|
+
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
3629
|
+
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
3630
|
+
return console.debug("Removed given srcset"), un(t);
|
|
3631
|
+
} else if (this.image && !this.srcset)
|
|
3632
|
+
return un(t);
|
|
3633
|
+
return un(t);
|
|
3634
|
+
}
|
|
3632
3635
|
},
|
|
3633
3636
|
webpSrcSet() {
|
|
3634
3637
|
var e;
|
|
@@ -3689,7 +3692,7 @@ function ps(e, t, n, r, o, i) {
|
|
|
3689
3692
|
])) : M("", !0)
|
|
3690
3693
|
], 64);
|
|
3691
3694
|
}
|
|
3692
|
-
const ds = /* @__PURE__ */ V(as, [["render", ps], ["__scopeId", "data-v-
|
|
3695
|
+
const ds = /* @__PURE__ */ V(as, [["render", ps], ["__scopeId", "data-v-ce62b8d6"]]), hs = j({
|
|
3693
3696
|
name: "builder-section-component",
|
|
3694
3697
|
props: ["attributes", "maxWidth"],
|
|
3695
3698
|
data() {
|
|
@@ -3755,21 +3758,21 @@ const ms = /* @__PURE__ */ V(hs, [["render", fs]]), gs = (e) => {
|
|
|
3755
3758
|
} catch (o) {
|
|
3756
3759
|
se.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3757
3760
|
}
|
|
3758
|
-
}, ks = "builder.tests",
|
|
3761
|
+
}, ks = "builder.tests", Dn = (e) => `${ks}.${e}`, Ss = ({
|
|
3759
3762
|
contentId: e
|
|
3760
3763
|
}) => Qr({
|
|
3761
|
-
name:
|
|
3764
|
+
name: Dn(e),
|
|
3762
3765
|
canTrack: !0
|
|
3763
3766
|
}), Cs = ({
|
|
3764
3767
|
contentId: e
|
|
3765
3768
|
}) => Zr({
|
|
3766
|
-
name:
|
|
3769
|
+
name: Dn(e),
|
|
3767
3770
|
canTrack: !0
|
|
3768
3771
|
}), ws = ({
|
|
3769
3772
|
contentId: e,
|
|
3770
3773
|
value: t
|
|
3771
3774
|
}) => eo({
|
|
3772
|
-
name:
|
|
3775
|
+
name: Dn(e),
|
|
3773
3776
|
value: t,
|
|
3774
3777
|
canTrack: !0
|
|
3775
3778
|
}), to = (e) => Be(e.id) && Be(e.variations) && Object.keys(e.variations).length > 0, Ts = ({
|
|
@@ -3849,7 +3852,7 @@ const ms = /* @__PURE__ */ V(hs, [["render", fs]]), gs = (e) => {
|
|
|
3849
3852
|
...e,
|
|
3850
3853
|
...o
|
|
3851
3854
|
};
|
|
3852
|
-
}, vt = (e) => Be(e) ? e : !0,
|
|
3855
|
+
}, vt = (e) => Be(e) ? e : !0, cn = {
|
|
3853
3856
|
"@type": "@builder.io/sdk:Element",
|
|
3854
3857
|
layerName: "Accordion item title",
|
|
3855
3858
|
responsiveStyles: {
|
|
@@ -3878,7 +3881,7 @@ const ms = /* @__PURE__ */ V(hs, [["render", fs]]), gs = (e) => {
|
|
|
3878
3881
|
}
|
|
3879
3882
|
}
|
|
3880
3883
|
}]
|
|
3881
|
-
},
|
|
3884
|
+
}, pn = {
|
|
3882
3885
|
"@type": "@builder.io/sdk:Element",
|
|
3883
3886
|
layerName: "Accordion item detail",
|
|
3884
3887
|
responsiveStyles: {
|
|
@@ -3926,19 +3929,19 @@ const ms = /* @__PURE__ */ V(hs, [["render", fs]]), gs = (e) => {
|
|
|
3926
3929
|
name: "title",
|
|
3927
3930
|
type: "uiBlocks",
|
|
3928
3931
|
hideFromUI: !0,
|
|
3929
|
-
defaultValue: [
|
|
3932
|
+
defaultValue: [cn]
|
|
3930
3933
|
}, {
|
|
3931
3934
|
name: "detail",
|
|
3932
3935
|
type: "uiBlocks",
|
|
3933
3936
|
hideFromUI: !0,
|
|
3934
|
-
defaultValue: [
|
|
3937
|
+
defaultValue: [pn]
|
|
3935
3938
|
}],
|
|
3936
3939
|
defaultValue: [{
|
|
3937
|
-
title: [
|
|
3938
|
-
detail: [
|
|
3940
|
+
title: [cn],
|
|
3941
|
+
detail: [pn]
|
|
3939
3942
|
}, {
|
|
3940
|
-
title: [
|
|
3941
|
-
detail: [
|
|
3943
|
+
title: [cn],
|
|
3944
|
+
detail: [pn]
|
|
3942
3945
|
}],
|
|
3943
3946
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
3944
3947
|
}, {
|
|
@@ -3973,7 +3976,7 @@ const ms = /* @__PURE__ */ V(hs, [["render", fs]]), gs = (e) => {
|
|
|
3973
3976
|
builderComponents: !0,
|
|
3974
3977
|
builderLinkComponent: !0
|
|
3975
3978
|
}
|
|
3976
|
-
}, Rs = (e) => e.toString(),
|
|
3979
|
+
}, Rs = (e) => e.toString(), $s = j({
|
|
3977
3980
|
name: "builder-accordion",
|
|
3978
3981
|
components: { Blocks: Xe },
|
|
3979
3982
|
props: [
|
|
@@ -4068,7 +4071,7 @@ const ms = /* @__PURE__ */ V(hs, [["render", fs]]), gs = (e) => {
|
|
|
4068
4071
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
4069
4072
|
}
|
|
4070
4073
|
}
|
|
4071
|
-
}),
|
|
4074
|
+
}), As = ["data-index", "onClick"];
|
|
4072
4075
|
function Ps(e, t, n, r, o, i) {
|
|
4073
4076
|
const a = U("Blocks");
|
|
4074
4077
|
return y(), T("div", {
|
|
@@ -4094,7 +4097,7 @@ function Ps(e, t, n, r, o, i) {
|
|
|
4094
4097
|
registeredComponents: e.builderComponents,
|
|
4095
4098
|
linkComponent: e.builderLinkComponent
|
|
4096
4099
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
4097
|
-
], 14,
|
|
4100
|
+
], 14, As),
|
|
4098
4101
|
e.open.includes(p) ? (y(), T("div", {
|
|
4099
4102
|
key: 0,
|
|
4100
4103
|
class: mt(e.getAccordionDetailClassName(p)),
|
|
@@ -4112,7 +4115,7 @@ function Ps(e, t, n, r, o, i) {
|
|
|
4112
4115
|
], 64))), 128))
|
|
4113
4116
|
], 4);
|
|
4114
4117
|
}
|
|
4115
|
-
const Os = /* @__PURE__ */ V(
|
|
4118
|
+
const Os = /* @__PURE__ */ V($s, [["render", Ps]]), js = {
|
|
4116
4119
|
name: "Core:Button",
|
|
4117
4120
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
4118
4121
|
defaultStyles: {
|
|
@@ -4508,7 +4511,7 @@ const Os = /* @__PURE__ */ V(As, [["render", Ps]]), js = {
|
|
|
4508
4511
|
}
|
|
4509
4512
|
}
|
|
4510
4513
|
}]
|
|
4511
|
-
},
|
|
4514
|
+
}, Ds = {
|
|
4512
4515
|
name: "Slot",
|
|
4513
4516
|
isRSC: !0,
|
|
4514
4517
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -4524,7 +4527,7 @@ const Os = /* @__PURE__ */ V(As, [["render", Ps]]), js = {
|
|
|
4524
4527
|
shouldReceiveBuilderProps: {
|
|
4525
4528
|
builderContext: !0
|
|
4526
4529
|
}
|
|
4527
|
-
},
|
|
4530
|
+
}, Fs = j({
|
|
4528
4531
|
name: "builder-slot",
|
|
4529
4532
|
components: { Blocks: Xe },
|
|
4530
4533
|
props: ["builderContext", "name"]
|
|
@@ -4548,7 +4551,7 @@ function Ms(e, t, n, r, o, i) {
|
|
|
4548
4551
|
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
4549
4552
|
], 16);
|
|
4550
4553
|
}
|
|
4551
|
-
const Ws = /* @__PURE__ */ V(
|
|
4554
|
+
const Ws = /* @__PURE__ */ V(Fs, [["render", Ms]]), Ls = {
|
|
4552
4555
|
name: "Symbol",
|
|
4553
4556
|
noWrap: !0,
|
|
4554
4557
|
static: !0,
|
|
@@ -4587,7 +4590,7 @@ const Ws = /* @__PURE__ */ V(Ds, [["render", Ms]]), Ls = {
|
|
|
4587
4590
|
builderComponents: !0,
|
|
4588
4591
|
builderLinkComponent: !0
|
|
4589
4592
|
}
|
|
4590
|
-
},
|
|
4593
|
+
}, dn = {
|
|
4591
4594
|
"@type": "@builder.io/sdk:Element",
|
|
4592
4595
|
responsiveStyles: {
|
|
4593
4596
|
large: {
|
|
@@ -4609,7 +4612,7 @@ const Ws = /* @__PURE__ */ V(Ds, [["render", Ms]]), Ls = {
|
|
|
4609
4612
|
text: "New tab"
|
|
4610
4613
|
}
|
|
4611
4614
|
}
|
|
4612
|
-
},
|
|
4615
|
+
}, hn = {
|
|
4613
4616
|
"@type": "@builder.io/sdk:Element",
|
|
4614
4617
|
responsiveStyles: {
|
|
4615
4618
|
large: {
|
|
@@ -4635,16 +4638,16 @@ const Ws = /* @__PURE__ */ V(Ds, [["render", Ms]]), Ls = {
|
|
|
4635
4638
|
name: "label",
|
|
4636
4639
|
type: "uiBlocks",
|
|
4637
4640
|
hideFromUI: !0,
|
|
4638
|
-
defaultValue: [
|
|
4641
|
+
defaultValue: [dn]
|
|
4639
4642
|
}, {
|
|
4640
4643
|
name: "content",
|
|
4641
4644
|
type: "uiBlocks",
|
|
4642
4645
|
hideFromUI: !0,
|
|
4643
|
-
defaultValue: [
|
|
4646
|
+
defaultValue: [hn]
|
|
4644
4647
|
}],
|
|
4645
4648
|
defaultValue: [{
|
|
4646
4649
|
label: [{
|
|
4647
|
-
...
|
|
4650
|
+
...dn,
|
|
4648
4651
|
component: {
|
|
4649
4652
|
name: "Text",
|
|
4650
4653
|
options: {
|
|
@@ -4653,7 +4656,7 @@ const Ws = /* @__PURE__ */ V(Ds, [["render", Ms]]), Ls = {
|
|
|
4653
4656
|
}
|
|
4654
4657
|
}],
|
|
4655
4658
|
content: [{
|
|
4656
|
-
...
|
|
4659
|
+
...hn,
|
|
4657
4660
|
component: {
|
|
4658
4661
|
name: "Text",
|
|
4659
4662
|
options: {
|
|
@@ -4663,7 +4666,7 @@ const Ws = /* @__PURE__ */ V(Ds, [["render", Ms]]), Ls = {
|
|
|
4663
4666
|
}]
|
|
4664
4667
|
}, {
|
|
4665
4668
|
label: [{
|
|
4666
|
-
...
|
|
4669
|
+
...dn,
|
|
4667
4670
|
component: {
|
|
4668
4671
|
name: "Text",
|
|
4669
4672
|
options: {
|
|
@@ -4672,7 +4675,7 @@ const Ws = /* @__PURE__ */ V(Ds, [["render", Ms]]), Ls = {
|
|
|
4672
4675
|
}
|
|
4673
4676
|
}],
|
|
4674
4677
|
content: [{
|
|
4675
|
-
...
|
|
4678
|
+
...hn,
|
|
4676
4679
|
component: {
|
|
4677
4680
|
name: "Text",
|
|
4678
4681
|
options: {
|
|
@@ -5294,7 +5297,7 @@ const pa = /* @__PURE__ */ V(la, [["render", ca]]), da = {
|
|
|
5294
5297
|
else {
|
|
5295
5298
|
const h = {};
|
|
5296
5299
|
Array.from(u).forEach(({ value: C, key: O }) => {
|
|
5297
|
-
|
|
5300
|
+
Cn(h, O, C);
|
|
5298
5301
|
}), i = JSON.stringify(h);
|
|
5299
5302
|
}
|
|
5300
5303
|
p && p !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (o["content-type"] = p));
|
|
@@ -5377,27 +5380,27 @@ function ba(e, t, n, r, o, i) {
|
|
|
5377
5380
|
name: e.name,
|
|
5378
5381
|
onSubmit: t[0] || (t[0] = (m) => e.onSubmit(m))
|
|
5379
5382
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5380
|
-
e.builderBlock && e.builderBlock.children ? (y(!0), T(Z, { key: 0 }, Ee((p = e.builderBlock) == null ? void 0 : p.children, (m, v) => (y(),
|
|
5383
|
+
e.builderBlock && e.builderBlock.children ? (y(!0), T(Z, { key: 0 }, Ee((p = e.builderBlock) == null ? void 0 : p.children, (m, v) => (y(), D(a, {
|
|
5381
5384
|
key: `form-block-${e.idx}`,
|
|
5382
5385
|
block: m,
|
|
5383
5386
|
context: e.builderContext,
|
|
5384
5387
|
registeredComponents: e.builderComponents,
|
|
5385
5388
|
linkComponent: e.builderLinkComponent
|
|
5386
5389
|
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : M("", !0),
|
|
5387
|
-
e.submissionState() === "error" ? (y(),
|
|
5390
|
+
e.submissionState() === "error" ? (y(), D(u, {
|
|
5388
5391
|
key: 1,
|
|
5389
5392
|
path: "errorMessage",
|
|
5390
5393
|
blocks: e.errorMessage,
|
|
5391
5394
|
context: e.builderContext
|
|
5392
5395
|
}, null, 8, ["blocks", "context"])) : M("", !0),
|
|
5393
|
-
e.submissionState() === "sending" ? (y(),
|
|
5396
|
+
e.submissionState() === "sending" ? (y(), D(u, {
|
|
5394
5397
|
key: 2,
|
|
5395
5398
|
path: "sendingMessage",
|
|
5396
5399
|
blocks: e.sendingMessage,
|
|
5397
5400
|
context: e.builderContext
|
|
5398
5401
|
}, null, 8, ["blocks", "context"])) : M("", !0),
|
|
5399
|
-
e.submissionState() === "error" && e.responseData ? (y(), T("pre", va,
|
|
5400
|
-
e.submissionState() === "success" ? (y(),
|
|
5402
|
+
e.submissionState() === "error" && e.responseData ? (y(), T("pre", va, Bt(JSON.stringify(e.responseData, null, 2)), 1)) : M("", !0),
|
|
5403
|
+
e.submissionState() === "success" ? (y(), D(u, {
|
|
5401
5404
|
key: 4,
|
|
5402
5405
|
path: "successMessage",
|
|
5403
5406
|
blocks: e.successMessage,
|
|
@@ -5530,8 +5533,8 @@ const Ea = /* @__PURE__ */ V(Ca, [["render", Ta]]), Ia = {
|
|
|
5530
5533
|
data() {
|
|
5531
5534
|
return { isEditing: le, filterAttrs: he };
|
|
5532
5535
|
}
|
|
5533
|
-
}), Ra = ["value", "defaultValue", "name", "required"],
|
|
5534
|
-
function
|
|
5536
|
+
}), Ra = ["value", "defaultValue", "name", "required"], $a = ["value"];
|
|
5537
|
+
function Aa(e, t, n, r, o, i) {
|
|
5535
5538
|
return y(), T("select", z({
|
|
5536
5539
|
value: e.value,
|
|
5537
5540
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
@@ -5542,10 +5545,10 @@ function $a(e, t, n, r, o, i) {
|
|
|
5542
5545
|
(y(!0), T(Z, null, Ee(e.options, (a, u) => (y(), T("option", {
|
|
5543
5546
|
key: `${a.name}-${u}`,
|
|
5544
5547
|
value: a.value
|
|
5545
|
-
},
|
|
5548
|
+
}, Bt(a.name || a.value), 9, $a))), 128))
|
|
5546
5549
|
], 16, Ra);
|
|
5547
5550
|
}
|
|
5548
|
-
const Pa = /* @__PURE__ */ V(xa, [["render",
|
|
5551
|
+
const Pa = /* @__PURE__ */ V(xa, [["render", Aa]]), Oa = {
|
|
5549
5552
|
name: "Form:SubmitButton",
|
|
5550
5553
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
5551
5554
|
defaultStyles: {
|
|
@@ -5578,7 +5581,7 @@ const Pa = /* @__PURE__ */ V(xa, [["render", $a]]), Oa = {
|
|
|
5578
5581
|
}
|
|
5579
5582
|
});
|
|
5580
5583
|
function Ba(e, t, n, r, o, i) {
|
|
5581
|
-
return y(), T("button", z({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)),
|
|
5584
|
+
return y(), T("button", z({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), Bt(e.text), 17);
|
|
5582
5585
|
}
|
|
5583
5586
|
const Na = /* @__PURE__ */ V(ja, [["render", Ba]]), Va = {
|
|
5584
5587
|
name: "Form:TextArea",
|
|
@@ -5629,17 +5632,17 @@ const Na = /* @__PURE__ */ V(ja, [["render", Ba]]), Va = {
|
|
|
5629
5632
|
data() {
|
|
5630
5633
|
return { filterAttrs: he };
|
|
5631
5634
|
}
|
|
5632
|
-
}),
|
|
5633
|
-
function
|
|
5635
|
+
}), Da = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
5636
|
+
function Fa(e, t, n, r, o, i) {
|
|
5634
5637
|
return y(), T("textarea", z({
|
|
5635
5638
|
placeholder: e.placeholder,
|
|
5636
5639
|
name: e.name,
|
|
5637
5640
|
value: e.value,
|
|
5638
5641
|
defaultValue: e.defaultValue,
|
|
5639
5642
|
required: e.required
|
|
5640
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
5643
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Da);
|
|
5641
5644
|
}
|
|
5642
|
-
const Ma = /* @__PURE__ */ V(Ua, [["render",
|
|
5645
|
+
const Ma = /* @__PURE__ */ V(Ua, [["render", Fa]]), Wa = {
|
|
5643
5646
|
// friendlyName?
|
|
5644
5647
|
name: "Raw:Img",
|
|
5645
5648
|
hideFromInsertMenu: !0,
|
|
@@ -5920,9 +5923,9 @@ const el = /* @__PURE__ */ V(Ga, [["render", Qa]]), tl = () => [{
|
|
|
5920
5923
|
...Us
|
|
5921
5924
|
}, {
|
|
5922
5925
|
component: Ws,
|
|
5923
|
-
...
|
|
5926
|
+
...Ds
|
|
5924
5927
|
}, {
|
|
5925
|
-
component:
|
|
5928
|
+
component: uu,
|
|
5926
5929
|
...Ls
|
|
5927
5930
|
}, {
|
|
5928
5931
|
component: Qs,
|
|
@@ -5935,20 +5938,15 @@ const el = /* @__PURE__ */ V(Ga, [["render", Qa]]), tl = () => [{
|
|
|
5935
5938
|
...xs
|
|
5936
5939
|
}, ...tl()], nl = (e) => ({
|
|
5937
5940
|
type: "builder.registerComponent",
|
|
5938
|
-
data:
|
|
5941
|
+
data: vn(e)
|
|
5939
5942
|
}), rl = (e) => {
|
|
5940
5943
|
const t = e.toString().trim();
|
|
5941
5944
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
5942
|
-
}
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
}
|
|
5946
|
-
|
|
5947
|
-
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
5948
|
-
...r,
|
|
5949
|
-
[o]: ol(i)
|
|
5950
|
-
}), {}))
|
|
5951
|
-
}), il = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
5945
|
+
};
|
|
5946
|
+
function vn(e) {
|
|
5947
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? rl(n) : n));
|
|
5948
|
+
}
|
|
5949
|
+
const ol = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
5952
5950
|
function getAndSetVariantId() {
|
|
5953
5951
|
function setCookie(name, value, days) {
|
|
5954
5952
|
let expires = '';
|
|
@@ -6004,7 +6002,7 @@ const el = /* @__PURE__ */ V(Ga, [["render", Qa]]), tl = () => [{
|
|
|
6004
6002
|
}).join('');
|
|
6005
6003
|
styleEl.innerHTML = newStyleStr;
|
|
6006
6004
|
}
|
|
6007
|
-
}`,
|
|
6005
|
+
}`, il = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
6008
6006
|
if (!navigator.cookieEnabled) {
|
|
6009
6007
|
return;
|
|
6010
6008
|
}
|
|
@@ -6038,20 +6036,20 @@ const el = /* @__PURE__ */ V(Ga, [["render", Qa]]), tl = () => [{
|
|
|
6038
6036
|
thisScriptEl?.remove();
|
|
6039
6037
|
}
|
|
6040
6038
|
return;
|
|
6041
|
-
}`, oo = "builderIoAbTest", io = "builderIoRenderContent",
|
|
6039
|
+
}`, oo = "builderIoAbTest", io = "builderIoRenderContent", Pt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
6042
6040
|
...t,
|
|
6043
6041
|
testVariationId: t.id,
|
|
6044
6042
|
id: e == null ? void 0 : e.id
|
|
6045
|
-
})),
|
|
6043
|
+
})), sl = ({
|
|
6046
6044
|
canTrack: e,
|
|
6047
6045
|
content: t
|
|
6048
|
-
}) => !(!(
|
|
6049
|
-
window.${oo} = ${
|
|
6050
|
-
window.${io} = ${
|
|
6051
|
-
`,
|
|
6046
|
+
}) => !(!(Pt(t).length > 0) || !e), al = (e) => e === "react" || e === "reactNative", so = al(fe), ll = () => `
|
|
6047
|
+
window.${oo} = ${ol}
|
|
6048
|
+
window.${io} = ${il}
|
|
6049
|
+
`, ul = (e, t) => `
|
|
6052
6050
|
window.${oo}(
|
|
6053
6051
|
"${t}",${JSON.stringify(e)}, ${so}
|
|
6054
|
-
)`,
|
|
6052
|
+
)`, cl = ({
|
|
6055
6053
|
contentId: e,
|
|
6056
6054
|
variationId: t
|
|
6057
6055
|
}) => `window.${io}(
|
|
@@ -6067,23 +6065,23 @@ const el = /* @__PURE__ */ V(Ga, [["render", Qa]]), tl = () => [{
|
|
|
6067
6065
|
name: "inlined-script",
|
|
6068
6066
|
props: ["scriptStr", "id", "nonce"]
|
|
6069
6067
|
});
|
|
6070
|
-
function
|
|
6068
|
+
function pl() {
|
|
6071
6069
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
6072
6070
|
}
|
|
6073
|
-
function
|
|
6074
|
-
const e =
|
|
6071
|
+
function dl() {
|
|
6072
|
+
const e = pl().fetch;
|
|
6075
6073
|
if (typeof e > "u")
|
|
6076
6074
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
6077
6075
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
6078
6076
|
return e;
|
|
6079
6077
|
}
|
|
6080
|
-
const lo =
|
|
6081
|
-
function
|
|
6078
|
+
const lo = dl();
|
|
6079
|
+
function bn(e, t = null, n = ".") {
|
|
6082
6080
|
return Object.keys(e).reduce((r, o) => {
|
|
6083
6081
|
const i = e[o], a = [t, o].filter(Boolean).join(n);
|
|
6084
6082
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
6085
6083
|
...r,
|
|
6086
|
-
...
|
|
6084
|
+
...bn(i, a, n)
|
|
6087
6085
|
} : {
|
|
6088
6086
|
...r,
|
|
6089
6087
|
[a]: i
|
|
@@ -6097,22 +6095,22 @@ function uo(e, t, n = {}) {
|
|
|
6097
6095
|
}
|
|
6098
6096
|
return n;
|
|
6099
6097
|
}
|
|
6100
|
-
const
|
|
6098
|
+
const hl = "v3", Ir = "builder.", fl = "options.", co = (e) => {
|
|
6101
6099
|
if (!e)
|
|
6102
6100
|
return {};
|
|
6103
6101
|
const t = Nr(e), n = {};
|
|
6104
6102
|
return Object.keys(t).forEach((r) => {
|
|
6105
6103
|
if (r.startsWith(Ir)) {
|
|
6106
|
-
const o = r.replace(Ir, "").replace(
|
|
6104
|
+
const o = r.replace(Ir, "").replace(fl, "");
|
|
6107
6105
|
n[o] = t[r];
|
|
6108
6106
|
}
|
|
6109
6107
|
}), n;
|
|
6110
|
-
},
|
|
6108
|
+
}, ml = () => {
|
|
6111
6109
|
if (!X())
|
|
6112
6110
|
return {};
|
|
6113
6111
|
const e = new URLSearchParams(window.location.search);
|
|
6114
6112
|
return co(e);
|
|
6115
|
-
}, xr = (e) => typeof e == "number" && !isNaN(e) && e >= 0,
|
|
6113
|
+
}, xr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Fn = (e) => {
|
|
6116
6114
|
const {
|
|
6117
6115
|
limit: t = 30,
|
|
6118
6116
|
userAttributes: n,
|
|
@@ -6121,7 +6119,7 @@ const fl = "v3", Ir = "builder.", ml = "options.", co = (e) => {
|
|
|
6121
6119
|
apiKey: i,
|
|
6122
6120
|
enrich: a,
|
|
6123
6121
|
locale: u,
|
|
6124
|
-
apiVersion: p =
|
|
6122
|
+
apiVersion: p = hl,
|
|
6125
6123
|
fields: m,
|
|
6126
6124
|
omit: v,
|
|
6127
6125
|
offset: h,
|
|
@@ -6136,16 +6134,16 @@ const fl = "v3", Ir = "builder.", ml = "options.", co = (e) => {
|
|
|
6136
6134
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
|
|
6137
6135
|
const Y = t !== 1, N = new URL(`https://cdn.builder.io/api/${p}/content/${o}`);
|
|
6138
6136
|
if (N.searchParams.set("apiKey", i), N.searchParams.set("limit", String(t)), N.searchParams.set("noTraverse", String(Y)), N.searchParams.set("includeRefs", String(!0)), u && N.searchParams.set("locale", u), a && N.searchParams.set("enrich", String(a)), N.searchParams.set("omit", v || "meta.componentsUsed"), m && N.searchParams.set("fields", m), Number.isFinite(h) && h > -1 && N.searchParams.set("offset", String(Math.floor(h))), typeof Q == "boolean" && N.searchParams.set("includeUnpublished", String(Q)), C && xr(C) && N.searchParams.set("cacheSeconds", String(C)), O && xr(O) && N.searchParams.set("staleCacheSeconds", String(O)), P) {
|
|
6139
|
-
const re =
|
|
6137
|
+
const re = bn({
|
|
6140
6138
|
sort: P
|
|
6141
6139
|
});
|
|
6142
6140
|
for (const Re in re)
|
|
6143
6141
|
N.searchParams.set(Re, JSON.stringify(re[Re]));
|
|
6144
6142
|
}
|
|
6145
6143
|
const R = {
|
|
6146
|
-
...
|
|
6144
|
+
...ml(),
|
|
6147
6145
|
...Nr(e.options || {})
|
|
6148
|
-
}, xe =
|
|
6146
|
+
}, xe = bn(R);
|
|
6149
6147
|
for (const re in xe)
|
|
6150
6148
|
N.searchParams.set(re, String(xe[re]));
|
|
6151
6149
|
if (n && N.searchParams.set("userAttributes", JSON.stringify(n)), r) {
|
|
@@ -6156,18 +6154,18 @@ const fl = "v3", Ir = "builder.", ml = "options.", co = (e) => {
|
|
|
6156
6154
|
N.searchParams.set(Re, JSON.stringify(re[Re]));
|
|
6157
6155
|
}
|
|
6158
6156
|
return N;
|
|
6159
|
-
},
|
|
6157
|
+
}, gl = (e) => "results" in e;
|
|
6160
6158
|
async function Mn(e) {
|
|
6161
|
-
const t = await
|
|
6159
|
+
const t = await bl({
|
|
6162
6160
|
...e,
|
|
6163
6161
|
limit: 1
|
|
6164
6162
|
});
|
|
6165
6163
|
return t && t[0] || null;
|
|
6166
6164
|
}
|
|
6167
|
-
const
|
|
6168
|
-
const t =
|
|
6165
|
+
const yl = async (e) => {
|
|
6166
|
+
const t = Fn(e);
|
|
6169
6167
|
return await (await (e.fetch ?? lo)(t.href, e.fetchOptions)).json();
|
|
6170
|
-
},
|
|
6168
|
+
}, vl = async (e, t, n = Fn(e)) => {
|
|
6171
6169
|
const r = vt(e.canTrack);
|
|
6172
6170
|
if (n.search.includes("preview="), !r || !(X() || fe === "reactNative"))
|
|
6173
6171
|
return t.results;
|
|
@@ -6184,10 +6182,10 @@ const vl = async (e) => {
|
|
|
6184
6182
|
}
|
|
6185
6183
|
return t.results;
|
|
6186
6184
|
};
|
|
6187
|
-
async function
|
|
6185
|
+
async function bl(e) {
|
|
6188
6186
|
try {
|
|
6189
|
-
const t =
|
|
6190
|
-
return
|
|
6187
|
+
const t = Fn(e), n = await yl(e);
|
|
6188
|
+
return gl(n) ? vl(e, n) : (se.error("Error fetching data. ", {
|
|
6191
6189
|
url: t,
|
|
6192
6190
|
content: n,
|
|
6193
6191
|
options: e
|
|
@@ -6196,20 +6194,20 @@ async function kl(e) {
|
|
|
6196
6194
|
return se.error("Error fetching data. ", t), null;
|
|
6197
6195
|
}
|
|
6198
6196
|
}
|
|
6199
|
-
function
|
|
6197
|
+
function kl(e) {
|
|
6200
6198
|
const t = e || (X() ? window.location.search : void 0);
|
|
6201
6199
|
return t ? Vr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
6202
6200
|
}
|
|
6203
|
-
function
|
|
6201
|
+
function Sl() {
|
|
6204
6202
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
6205
6203
|
const t = Math.random() * 16 | 0;
|
|
6206
6204
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
6207
6205
|
});
|
|
6208
6206
|
}
|
|
6209
6207
|
function po() {
|
|
6210
|
-
return
|
|
6208
|
+
return Sl().replace(/-/g, "");
|
|
6211
6209
|
}
|
|
6212
|
-
const ho = "builderSessionId",
|
|
6210
|
+
const ho = "builderSessionId", Cl = async ({
|
|
6213
6211
|
canTrack: e
|
|
6214
6212
|
}) => {
|
|
6215
6213
|
if (!e)
|
|
@@ -6221,20 +6219,20 @@ const ho = "builderSessionId", wl = async ({
|
|
|
6221
6219
|
if (Be(t))
|
|
6222
6220
|
return t;
|
|
6223
6221
|
{
|
|
6224
|
-
const n =
|
|
6225
|
-
return
|
|
6222
|
+
const n = wl();
|
|
6223
|
+
return Tl({
|
|
6226
6224
|
id: n,
|
|
6227
6225
|
canTrack: e
|
|
6228
6226
|
}), n;
|
|
6229
6227
|
}
|
|
6230
|
-
},
|
|
6228
|
+
}, wl = () => po(), Tl = ({
|
|
6231
6229
|
id: e,
|
|
6232
6230
|
canTrack: t
|
|
6233
6231
|
}) => eo({
|
|
6234
6232
|
name: ho,
|
|
6235
6233
|
value: e,
|
|
6236
6234
|
canTrack: t
|
|
6237
|
-
}), fo = () => X() && typeof localStorage < "u" ? localStorage : void 0,
|
|
6235
|
+
}), fo = () => X() && typeof localStorage < "u" ? localStorage : void 0, El = ({
|
|
6238
6236
|
key: e,
|
|
6239
6237
|
canTrack: t
|
|
6240
6238
|
}) => {
|
|
@@ -6245,7 +6243,7 @@ const ho = "builderSessionId", wl = async ({
|
|
|
6245
6243
|
console.debug("[LocalStorage] GET error: ", r);
|
|
6246
6244
|
return;
|
|
6247
6245
|
}
|
|
6248
|
-
},
|
|
6246
|
+
}, Il = ({
|
|
6249
6247
|
key: e,
|
|
6250
6248
|
canTrack: t,
|
|
6251
6249
|
value: n
|
|
@@ -6256,32 +6254,32 @@ const ho = "builderSessionId", wl = async ({
|
|
|
6256
6254
|
} catch (o) {
|
|
6257
6255
|
console.debug("[LocalStorage] SET error: ", o);
|
|
6258
6256
|
}
|
|
6259
|
-
}, mo = "builderVisitorId",
|
|
6257
|
+
}, mo = "builderVisitorId", xl = ({
|
|
6260
6258
|
canTrack: e
|
|
6261
6259
|
}) => {
|
|
6262
6260
|
if (!e)
|
|
6263
6261
|
return;
|
|
6264
|
-
const t =
|
|
6262
|
+
const t = El({
|
|
6265
6263
|
key: mo,
|
|
6266
6264
|
canTrack: e
|
|
6267
6265
|
});
|
|
6268
6266
|
if (Be(t))
|
|
6269
6267
|
return t;
|
|
6270
6268
|
{
|
|
6271
|
-
const n =
|
|
6269
|
+
const n = Rl();
|
|
6272
6270
|
return $l({
|
|
6273
6271
|
id: n,
|
|
6274
6272
|
canTrack: e
|
|
6275
6273
|
}), n;
|
|
6276
6274
|
}
|
|
6277
|
-
},
|
|
6275
|
+
}, Rl = () => po(), $l = ({
|
|
6278
6276
|
id: e,
|
|
6279
6277
|
canTrack: t
|
|
6280
|
-
}) =>
|
|
6278
|
+
}) => Il({
|
|
6281
6279
|
key: mo,
|
|
6282
6280
|
value: e,
|
|
6283
6281
|
canTrack: t
|
|
6284
|
-
}),
|
|
6282
|
+
}), Al = async ({
|
|
6285
6283
|
canTrack: e
|
|
6286
6284
|
}) => {
|
|
6287
6285
|
if (!e)
|
|
@@ -6289,16 +6287,16 @@ const ho = "builderSessionId", wl = async ({
|
|
|
6289
6287
|
visitorId: void 0,
|
|
6290
6288
|
sessionId: void 0
|
|
6291
6289
|
};
|
|
6292
|
-
const t = await
|
|
6290
|
+
const t = await Cl({
|
|
6293
6291
|
canTrack: e
|
|
6294
|
-
}), n =
|
|
6292
|
+
}), n = xl({
|
|
6295
6293
|
canTrack: e
|
|
6296
6294
|
});
|
|
6297
6295
|
return {
|
|
6298
6296
|
sessionId: t,
|
|
6299
6297
|
visitorId: n
|
|
6300
6298
|
};
|
|
6301
|
-
},
|
|
6299
|
+
}, Pl = async ({
|
|
6302
6300
|
type: e,
|
|
6303
6301
|
canTrack: t,
|
|
6304
6302
|
apiKey: n,
|
|
@@ -6312,14 +6310,14 @@ const ho = "builderSessionId", wl = async ({
|
|
|
6312
6310
|
url: location.href,
|
|
6313
6311
|
...r
|
|
6314
6312
|
},
|
|
6315
|
-
...await
|
|
6313
|
+
...await Al({
|
|
6316
6314
|
canTrack: t
|
|
6317
6315
|
}),
|
|
6318
6316
|
userAttributes: Ur(),
|
|
6319
6317
|
ownerId: n
|
|
6320
6318
|
}
|
|
6321
6319
|
});
|
|
6322
|
-
async function
|
|
6320
|
+
async function kn(e) {
|
|
6323
6321
|
if (!e.apiKey) {
|
|
6324
6322
|
se.error("Missing API key for track call. Please provide your API key.");
|
|
6325
6323
|
return;
|
|
@@ -6328,7 +6326,7 @@ async function Sn(e) {
|
|
|
6328
6326
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
6329
6327
|
method: "POST",
|
|
6330
6328
|
body: JSON.stringify({
|
|
6331
|
-
events: [await
|
|
6329
|
+
events: [await Pl(e)]
|
|
6332
6330
|
}),
|
|
6333
6331
|
headers: {
|
|
6334
6332
|
"content-type": "application/json"
|
|
@@ -6338,14 +6336,14 @@ async function Sn(e) {
|
|
|
6338
6336
|
console.error("Failed to track: ", t);
|
|
6339
6337
|
});
|
|
6340
6338
|
}
|
|
6341
|
-
const
|
|
6339
|
+
const yu = (e) => kn({
|
|
6342
6340
|
...e,
|
|
6343
6341
|
canTrack: !0
|
|
6344
6342
|
});
|
|
6345
6343
|
function Rr(e) {
|
|
6346
6344
|
return Math.round(e * 1e3) / 1e3;
|
|
6347
6345
|
}
|
|
6348
|
-
const
|
|
6346
|
+
const Ol = (e, t, n = !0) => {
|
|
6349
6347
|
if (!(e instanceof HTMLElement))
|
|
6350
6348
|
return null;
|
|
6351
6349
|
let r = n ? e : e.parentElement;
|
|
@@ -6356,10 +6354,10 @@ const jl = (e, t, n = !0) => {
|
|
|
6356
6354
|
return r;
|
|
6357
6355
|
} while (r = r.parentElement);
|
|
6358
6356
|
return null;
|
|
6359
|
-
},
|
|
6357
|
+
}, jl = (e) => Ol(e, (t) => {
|
|
6360
6358
|
const n = t.getAttribute("builder-id") || t.id;
|
|
6361
6359
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
6362
|
-
}),
|
|
6360
|
+
}), $r = ({
|
|
6363
6361
|
event: e,
|
|
6364
6362
|
target: t
|
|
6365
6363
|
}) => {
|
|
@@ -6368,33 +6366,33 @@ const jl = (e, t, n = !0) => {
|
|
|
6368
6366
|
x: i,
|
|
6369
6367
|
y: a
|
|
6370
6368
|
};
|
|
6371
|
-
},
|
|
6372
|
-
const t = e.target, n = t &&
|
|
6369
|
+
}, Bl = (e) => {
|
|
6370
|
+
const t = e.target, n = t && jl(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
6373
6371
|
return {
|
|
6374
6372
|
targetBuilderElement: r || void 0,
|
|
6375
6373
|
metadata: {
|
|
6376
|
-
targetOffset: t ?
|
|
6374
|
+
targetOffset: t ? $r({
|
|
6377
6375
|
event: e,
|
|
6378
6376
|
target: t
|
|
6379
6377
|
}) : void 0,
|
|
6380
|
-
builderTargetOffset: n ?
|
|
6378
|
+
builderTargetOffset: n ? $r({
|
|
6381
6379
|
event: e,
|
|
6382
6380
|
target: n
|
|
6383
6381
|
}) : void 0,
|
|
6384
6382
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
6385
6383
|
}
|
|
6386
6384
|
};
|
|
6387
|
-
},
|
|
6385
|
+
}, Nl = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
6388
6386
|
function go(e, t) {
|
|
6389
6387
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
6390
6388
|
return !1;
|
|
6391
6389
|
const n = new URL(t.origin), r = n.hostname;
|
|
6392
|
-
return (e ||
|
|
6390
|
+
return (e || Nl).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
6393
6391
|
}
|
|
6394
|
-
const
|
|
6395
|
-
function
|
|
6396
|
-
let n =
|
|
6397
|
-
if (n || (n =
|
|
6392
|
+
const Vl = "2.0.3", Ar = {};
|
|
6393
|
+
function Ul(e, t) {
|
|
6394
|
+
let n = Ar[e];
|
|
6395
|
+
if (n || (n = Ar[e] = []), n.push(t), X()) {
|
|
6398
6396
|
const r = {
|
|
6399
6397
|
type: "builder.register",
|
|
6400
6398
|
data: {
|
|
@@ -6410,7 +6408,7 @@ function Fl(e, t) {
|
|
|
6410
6408
|
}
|
|
6411
6409
|
}
|
|
6412
6410
|
const Dl = () => {
|
|
6413
|
-
|
|
6411
|
+
Ul("insertMenu", {
|
|
6414
6412
|
name: "_default",
|
|
6415
6413
|
default: !0,
|
|
6416
6414
|
items: [{
|
|
@@ -6439,7 +6437,7 @@ const yo = (e = {}) => {
|
|
|
6439
6437
|
type: "builder.sdkInfo",
|
|
6440
6438
|
data: {
|
|
6441
6439
|
target: fe,
|
|
6442
|
-
version:
|
|
6440
|
+
version: Vl,
|
|
6443
6441
|
supportsPatchUpdates: !1,
|
|
6444
6442
|
// Supports builder-model="..." attribute which is needed to
|
|
6445
6443
|
// scope our '+ add block' button styling
|
|
@@ -6520,7 +6518,7 @@ const yo = (e = {}) => {
|
|
|
6520
6518
|
break;
|
|
6521
6519
|
}
|
|
6522
6520
|
}
|
|
6523
|
-
},
|
|
6521
|
+
}, vu = (e, t, n) => {
|
|
6524
6522
|
if (!X)
|
|
6525
6523
|
return se.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
6526
6524
|
};
|
|
@@ -6539,7 +6537,7 @@ const yo = (e = {}) => {
|
|
|
6539
6537
|
return window.addEventListener("message", r), () => {
|
|
6540
6538
|
window.removeEventListener("message", r);
|
|
6541
6539
|
};
|
|
6542
|
-
},
|
|
6540
|
+
}, Fl = (e) => {
|
|
6543
6541
|
var i;
|
|
6544
6542
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
6545
6543
|
let o = "";
|
|
@@ -6565,15 +6563,15 @@ font-weight: ${a};
|
|
|
6565
6563
|
`.trim());
|
|
6566
6564
|
}
|
|
6567
6565
|
return o;
|
|
6568
|
-
},
|
|
6566
|
+
}, Ml = ({
|
|
6569
6567
|
customFonts: e
|
|
6570
6568
|
}) => {
|
|
6571
6569
|
var t;
|
|
6572
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
6573
|
-
},
|
|
6570
|
+
return ((t = e == null ? void 0 : e.map((n) => Fl(n))) == null ? void 0 : t.join(" ")) || "";
|
|
6571
|
+
}, Wl = ({
|
|
6574
6572
|
cssCode: e,
|
|
6575
6573
|
contentId: t
|
|
6576
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
6574
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ll = `
|
|
6577
6575
|
.builder-button {
|
|
6578
6576
|
all: unset;
|
|
6579
6577
|
}
|
|
@@ -6590,9 +6588,9 @@ font-weight: ${a};
|
|
|
6590
6588
|
text-align: inherit;
|
|
6591
6589
|
font-family: inherit;
|
|
6592
6590
|
}
|
|
6593
|
-
`,
|
|
6591
|
+
`, Hl = (e) => e ? "" : Ll, Kl = (e) => `variant-${e}`, ql = j({
|
|
6594
6592
|
name: "enable-editor",
|
|
6595
|
-
components: { DynamicDiv:
|
|
6593
|
+
components: { DynamicDiv: St },
|
|
6596
6594
|
props: [
|
|
6597
6595
|
"builderContextSignal",
|
|
6598
6596
|
"canTrack",
|
|
@@ -6614,14 +6612,14 @@ font-weight: ${a};
|
|
|
6614
6612
|
httpReqsData: {},
|
|
6615
6613
|
httpReqsPending: {},
|
|
6616
6614
|
clicked: !1,
|
|
6617
|
-
builderContext:
|
|
6618
|
-
getWrapperClassName:
|
|
6615
|
+
builderContext: fn,
|
|
6616
|
+
getWrapperClassName: Kl
|
|
6619
6617
|
};
|
|
6620
6618
|
},
|
|
6621
6619
|
provide() {
|
|
6622
6620
|
const e = this;
|
|
6623
6621
|
return {
|
|
6624
|
-
[
|
|
6622
|
+
[fn.key]: e.builderContextSignal
|
|
6625
6623
|
};
|
|
6626
6624
|
},
|
|
6627
6625
|
mounted() {
|
|
@@ -6632,7 +6630,7 @@ font-weight: ${a};
|
|
|
6632
6630
|
new CustomEvent("initeditingbldr")
|
|
6633
6631
|
), this.builderContextSignal.content && vt(this.canTrack)) {
|
|
6634
6632
|
const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, a = (r = this.builderContextSignal.content) == null ? void 0 : r.id, u = this.apiKey;
|
|
6635
|
-
|
|
6633
|
+
kn({
|
|
6636
6634
|
type: "impression",
|
|
6637
6635
|
canTrack: !0,
|
|
6638
6636
|
contentId: a,
|
|
@@ -6640,7 +6638,7 @@ font-weight: ${a};
|
|
|
6640
6638
|
variationId: i !== a ? i : void 0
|
|
6641
6639
|
});
|
|
6642
6640
|
}
|
|
6643
|
-
|
|
6641
|
+
kl() && !le() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
6644
6642
|
new CustomEvent("initpreviewingbldr")
|
|
6645
6643
|
);
|
|
6646
6644
|
}
|
|
@@ -6788,7 +6786,7 @@ font-weight: ${a};
|
|
|
6788
6786
|
evaluateJsCode() {
|
|
6789
6787
|
var t, n;
|
|
6790
6788
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
6791
|
-
e &&
|
|
6789
|
+
e && jt({
|
|
6792
6790
|
code: e,
|
|
6793
6791
|
context: this.context || {},
|
|
6794
6792
|
localState: void 0,
|
|
@@ -6804,13 +6802,13 @@ font-weight: ${a};
|
|
|
6804
6802
|
var t, n;
|
|
6805
6803
|
if (this.builderContextSignal.content) {
|
|
6806
6804
|
const r = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, o = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
6807
|
-
|
|
6805
|
+
kn({
|
|
6808
6806
|
type: "click",
|
|
6809
6807
|
canTrack: vt(this.canTrack),
|
|
6810
6808
|
contentId: o,
|
|
6811
6809
|
apiKey: this.apiKey,
|
|
6812
6810
|
variationId: r !== o ? r : void 0,
|
|
6813
|
-
...
|
|
6811
|
+
...Bl(e),
|
|
6814
6812
|
unique: !this.clicked
|
|
6815
6813
|
});
|
|
6816
6814
|
}
|
|
@@ -6826,7 +6824,7 @@ font-weight: ${a};
|
|
|
6826
6824
|
const i = o.replace(
|
|
6827
6825
|
/{{([^}]+)}}/g,
|
|
6828
6826
|
(a, u) => String(
|
|
6829
|
-
|
|
6827
|
+
jt({
|
|
6830
6828
|
code: u,
|
|
6831
6829
|
context: this.context || {},
|
|
6832
6830
|
localState: void 0,
|
|
@@ -6853,7 +6851,7 @@ font-weight: ${a};
|
|
|
6853
6851
|
"builder:component:stateChange",
|
|
6854
6852
|
{
|
|
6855
6853
|
detail: {
|
|
6856
|
-
state:
|
|
6854
|
+
state: Bn(this.builderContextSignal.rootState),
|
|
6857
6855
|
ref: {
|
|
6858
6856
|
name: this.model
|
|
6859
6857
|
}
|
|
@@ -6898,9 +6896,9 @@ font-weight: ${a};
|
|
|
6898
6896
|
}
|
|
6899
6897
|
}
|
|
6900
6898
|
});
|
|
6901
|
-
function
|
|
6899
|
+
function zl(e, t, n, r, o, i) {
|
|
6902
6900
|
var a, u, p;
|
|
6903
|
-
return e.builderContextSignal.content ? (y(),
|
|
6901
|
+
return e.builderContextSignal.content ? (y(), D(ct(e.ContentWrapper), z({
|
|
6904
6902
|
key: 0,
|
|
6905
6903
|
ref: "elementRef",
|
|
6906
6904
|
onClick: (m) => e.onClick(m),
|
|
@@ -6916,34 +6914,34 @@ function Gl(e, t, n, r, o, i) {
|
|
|
6916
6914
|
_: 3
|
|
6917
6915
|
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : M("", !0);
|
|
6918
6916
|
}
|
|
6919
|
-
const
|
|
6917
|
+
const Gl = /* @__PURE__ */ V(ql, [["render", zl]]), Jl = j({
|
|
6920
6918
|
name: "content-styles",
|
|
6921
6919
|
components: { InlinedStyles: Un },
|
|
6922
6920
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
6923
6921
|
data() {
|
|
6924
6922
|
return {
|
|
6925
6923
|
injectedStyles: `
|
|
6926
|
-
${
|
|
6924
|
+
${Wl({
|
|
6927
6925
|
cssCode: this.cssCode,
|
|
6928
6926
|
contentId: this.contentId
|
|
6929
6927
|
})}
|
|
6930
|
-
${
|
|
6928
|
+
${Ml({
|
|
6931
6929
|
customFonts: this.customFonts
|
|
6932
6930
|
})}
|
|
6933
|
-
${
|
|
6931
|
+
${Hl(this.isNestedRender)}
|
|
6934
6932
|
`.trim()
|
|
6935
6933
|
};
|
|
6936
6934
|
}
|
|
6937
6935
|
});
|
|
6938
|
-
function
|
|
6936
|
+
function Xl(e, t, n, r, o, i) {
|
|
6939
6937
|
const a = U("InlinedStyles");
|
|
6940
|
-
return y(),
|
|
6938
|
+
return y(), D(a, {
|
|
6941
6939
|
id: "builderio-content",
|
|
6942
6940
|
styles: e.injectedStyles,
|
|
6943
6941
|
nonce: e.nonce
|
|
6944
6942
|
}, null, 8, ["styles", "nonce"]);
|
|
6945
6943
|
}
|
|
6946
|
-
const
|
|
6944
|
+
const Yl = /* @__PURE__ */ V(Jl, [["render", Xl]]), _l = ({
|
|
6947
6945
|
content: e,
|
|
6948
6946
|
data: t,
|
|
6949
6947
|
locale: n
|
|
@@ -6960,7 +6958,7 @@ const _l = /* @__PURE__ */ V(Xl, [["render", Yl]]), Zl = ({
|
|
|
6960
6958
|
locale: n
|
|
6961
6959
|
} : {}
|
|
6962
6960
|
};
|
|
6963
|
-
},
|
|
6961
|
+
}, Zl = ({
|
|
6964
6962
|
content: e,
|
|
6965
6963
|
data: t
|
|
6966
6964
|
}) => e ? {
|
|
@@ -6970,18 +6968,19 @@ const _l = /* @__PURE__ */ V(Xl, [["render", Yl]]), Zl = ({
|
|
|
6970
6968
|
...t
|
|
6971
6969
|
},
|
|
6972
6970
|
meta: e == null ? void 0 : e.meta
|
|
6973
|
-
} : void 0,
|
|
6971
|
+
} : void 0, Ql = Do, eu = j({
|
|
6974
6972
|
name: "content-component",
|
|
6975
6973
|
components: {
|
|
6976
|
-
EnableEditor:
|
|
6974
|
+
EnableEditor: Gl,
|
|
6977
6975
|
InlinedScript: ao,
|
|
6978
|
-
ContentStyles:
|
|
6976
|
+
ContentStyles: Yl,
|
|
6979
6977
|
Blocks: Xe,
|
|
6980
|
-
DynamicDiv:
|
|
6978
|
+
DynamicDiv: St
|
|
6981
6979
|
},
|
|
6982
6980
|
props: [
|
|
6983
6981
|
"content",
|
|
6984
6982
|
"customComponents",
|
|
6983
|
+
"model",
|
|
6985
6984
|
"data",
|
|
6986
6985
|
"locale",
|
|
6987
6986
|
"context",
|
|
@@ -6991,7 +6990,6 @@ const _l = /* @__PURE__ */ V(Xl, [["render", Yl]]), Zl = ({
|
|
|
6991
6990
|
"blocksWrapper",
|
|
6992
6991
|
"blocksWrapperProps",
|
|
6993
6992
|
"nonce",
|
|
6994
|
-
"model",
|
|
6995
6993
|
"enrich",
|
|
6996
6994
|
"showContent",
|
|
6997
6995
|
"contentWrapper",
|
|
@@ -7002,9 +7000,9 @@ const _l = /* @__PURE__ */ V(Xl, [["render", Yl]]), Zl = ({
|
|
|
7002
7000
|
"linkComponent"
|
|
7003
7001
|
],
|
|
7004
7002
|
data() {
|
|
7005
|
-
var e, t;
|
|
7003
|
+
var e, t, n, r;
|
|
7006
7004
|
return {
|
|
7007
|
-
scriptStr:
|
|
7005
|
+
scriptStr: cl({
|
|
7008
7006
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
7009
7007
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
7010
7008
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -7012,24 +7010,24 @@ const _l = /* @__PURE__ */ V(Xl, [["render", Yl]]), Zl = ({
|
|
|
7012
7010
|
}),
|
|
7013
7011
|
registeredComponents: [
|
|
7014
7012
|
...Er(),
|
|
7015
|
-
...this.customComponents || []
|
|
7013
|
+
...((n = this.customComponents) == null ? void 0 : n.filter(({ models: o }) => !(o != null && o.length) || !this.model ? !0 : o.includes(this.model))) || []
|
|
7016
7014
|
].reduce(
|
|
7017
|
-
(
|
|
7018
|
-
...
|
|
7019
|
-
[
|
|
7020
|
-
component:
|
|
7021
|
-
...
|
|
7015
|
+
(o, { component: i, ...a }) => ({
|
|
7016
|
+
...o,
|
|
7017
|
+
[a.name]: {
|
|
7018
|
+
component: Ql(i),
|
|
7019
|
+
...vn(a)
|
|
7022
7020
|
}
|
|
7023
7021
|
}),
|
|
7024
7022
|
{}
|
|
7025
7023
|
),
|
|
7026
7024
|
builderContextSignal: {
|
|
7027
|
-
content:
|
|
7025
|
+
content: Zl({
|
|
7028
7026
|
content: this.content,
|
|
7029
7027
|
data: this.data
|
|
7030
7028
|
}),
|
|
7031
7029
|
localState: void 0,
|
|
7032
|
-
rootState:
|
|
7030
|
+
rootState: _l({
|
|
7033
7031
|
content: this.content,
|
|
7034
7032
|
data: this.data,
|
|
7035
7033
|
locale: this.locale
|
|
@@ -7041,11 +7039,11 @@ const _l = /* @__PURE__ */ V(Xl, [["render", Yl]]), Zl = ({
|
|
|
7041
7039
|
apiVersion: this.apiVersion,
|
|
7042
7040
|
componentInfos: [
|
|
7043
7041
|
...Er(),
|
|
7044
|
-
...this.customComponents || []
|
|
7042
|
+
...((r = this.customComponents) == null ? void 0 : r.filter(({ models: o }) => !(o != null && o.length) || !this.model ? !0 : o.includes(this.model))) || []
|
|
7045
7043
|
].reduce(
|
|
7046
|
-
(
|
|
7047
|
-
...
|
|
7048
|
-
[
|
|
7044
|
+
(o, { component: i, ...a }) => ({
|
|
7045
|
+
...o,
|
|
7046
|
+
[a.name]: vn(a)
|
|
7049
7047
|
}),
|
|
7050
7048
|
{}
|
|
7051
7049
|
),
|
|
@@ -7071,9 +7069,9 @@ const _l = /* @__PURE__ */ V(Xl, [["render", Yl]]), Zl = ({
|
|
|
7071
7069
|
}
|
|
7072
7070
|
}
|
|
7073
7071
|
});
|
|
7074
|
-
function
|
|
7072
|
+
function tu(e, t, n, r, o, i) {
|
|
7075
7073
|
const a = U("InlinedScript"), u = U("ContentStyles"), p = U("Blocks"), m = U("EnableEditor");
|
|
7076
|
-
return y(),
|
|
7074
|
+
return y(), D(m, z({
|
|
7077
7075
|
nonce: e.nonce,
|
|
7078
7076
|
content: e.content,
|
|
7079
7077
|
data: e.data,
|
|
@@ -7092,13 +7090,13 @@ function nu(e, t, n, r, o, i) {
|
|
|
7092
7090
|
default: Te(() => {
|
|
7093
7091
|
var v, h, C, O, P, Q, Y;
|
|
7094
7092
|
return [
|
|
7095
|
-
e.isSsrAbTest ? (y(),
|
|
7093
|
+
e.isSsrAbTest ? (y(), D(a, {
|
|
7096
7094
|
key: 0,
|
|
7097
7095
|
id: "builderio-variant-visibility",
|
|
7098
7096
|
scriptStr: e.scriptStr,
|
|
7099
7097
|
nonce: e.nonce || ""
|
|
7100
7098
|
}, null, 8, ["scriptStr", "nonce"])) : M("", !0),
|
|
7101
|
-
e.TARGET !== "reactNative" ? (y(),
|
|
7099
|
+
e.TARGET !== "reactNative" ? (y(), D(u, {
|
|
7102
7100
|
key: 1,
|
|
7103
7101
|
nonce: e.nonce || "",
|
|
7104
7102
|
isNestedRender: e.isNestedRender,
|
|
@@ -7117,12 +7115,12 @@ function nu(e, t, n, r, o, i) {
|
|
|
7117
7115
|
_: 1
|
|
7118
7116
|
}, 16, ["nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
7119
7117
|
}
|
|
7120
|
-
const
|
|
7118
|
+
const nu = /* @__PURE__ */ V(eu, [["render", tu]]), ru = j({
|
|
7121
7119
|
name: "content-variants",
|
|
7122
7120
|
components: {
|
|
7123
7121
|
InlinedScript: ao,
|
|
7124
7122
|
InlinedStyles: Un,
|
|
7125
|
-
ContentComponent:
|
|
7123
|
+
ContentComponent: nu
|
|
7126
7124
|
},
|
|
7127
7125
|
props: [
|
|
7128
7126
|
"canTrack",
|
|
@@ -7146,24 +7144,22 @@ const ru = /* @__PURE__ */ V(tu, [["render", nu]]), ou = j({
|
|
|
7146
7144
|
],
|
|
7147
7145
|
data() {
|
|
7148
7146
|
return {
|
|
7149
|
-
shouldRenderVariants:
|
|
7147
|
+
shouldRenderVariants: sl({
|
|
7150
7148
|
canTrack: vt(this.canTrack),
|
|
7151
7149
|
content: this.content
|
|
7152
7150
|
}),
|
|
7153
7151
|
TARGET: fe,
|
|
7154
|
-
getInitVariantsFnsScriptString:
|
|
7155
|
-
getVariants:
|
|
7152
|
+
getInitVariantsFnsScriptString: ll,
|
|
7153
|
+
getVariants: Pt
|
|
7156
7154
|
};
|
|
7157
7155
|
},
|
|
7158
7156
|
mounted() {
|
|
7159
7157
|
},
|
|
7160
|
-
updated() {
|
|
7161
|
-
},
|
|
7162
7158
|
computed: {
|
|
7163
7159
|
updateCookieAndStylesScriptStr() {
|
|
7164
7160
|
var e;
|
|
7165
|
-
return
|
|
7166
|
-
|
|
7161
|
+
return ul(
|
|
7162
|
+
Pt(this.content).map((t) => ({
|
|
7167
7163
|
id: t.testVariationId,
|
|
7168
7164
|
testRatio: t.testRatio
|
|
7169
7165
|
})),
|
|
@@ -7171,7 +7167,7 @@ const ru = /* @__PURE__ */ V(tu, [["render", nu]]), ou = j({
|
|
|
7171
7167
|
);
|
|
7172
7168
|
},
|
|
7173
7169
|
hideVariantsStyleString() {
|
|
7174
|
-
return
|
|
7170
|
+
return Pt(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
7175
7171
|
},
|
|
7176
7172
|
defaultContent() {
|
|
7177
7173
|
var e;
|
|
@@ -7185,10 +7181,10 @@ const ru = /* @__PURE__ */ V(tu, [["render", nu]]), ou = j({
|
|
|
7185
7181
|
}
|
|
7186
7182
|
}
|
|
7187
7183
|
});
|
|
7188
|
-
function
|
|
7184
|
+
function ou(e, t, n, r, o, i) {
|
|
7189
7185
|
const a = U("InlinedScript"), u = U("InlinedStyles"), p = U("ContentComponent");
|
|
7190
7186
|
return y(), T(Z, null, [
|
|
7191
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (y(),
|
|
7187
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (y(), D(a, {
|
|
7192
7188
|
key: 0,
|
|
7193
7189
|
id: "builderio-init-variants-fns",
|
|
7194
7190
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
@@ -7205,7 +7201,7 @@ function iu(e, t, n, r, o, i) {
|
|
|
7205
7201
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
7206
7202
|
nonce: e.nonce || ""
|
|
7207
7203
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
7208
|
-
(y(!0), T(Z, null, Ee(e.getVariants(e.content), (m, v) => (y(),
|
|
7204
|
+
(y(!0), T(Z, null, Ee(e.getVariants(e.content), (m, v) => (y(), D(p, {
|
|
7209
7205
|
key: m.testVariationId,
|
|
7210
7206
|
isNestedRender: e.isNestedRender,
|
|
7211
7207
|
nonce: e.nonce,
|
|
@@ -7255,7 +7251,7 @@ function iu(e, t, n, r, o, i) {
|
|
|
7255
7251
|
}), null, 16, ["nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
7256
7252
|
], 64);
|
|
7257
7253
|
}
|
|
7258
|
-
const
|
|
7254
|
+
const iu = /* @__PURE__ */ V(ru, [["render", ou]]), su = async ({
|
|
7259
7255
|
builderContextValue: e,
|
|
7260
7256
|
symbol: t
|
|
7261
7257
|
}) => {
|
|
@@ -7273,9 +7269,9 @@ const su = /* @__PURE__ */ V(ou, [["render", iu]]), au = async ({
|
|
|
7273
7269
|
}).catch((n) => {
|
|
7274
7270
|
se.error("Could not fetch symbol content: ", n);
|
|
7275
7271
|
});
|
|
7276
|
-
},
|
|
7272
|
+
}, au = j({
|
|
7277
7273
|
name: "builder-symbol",
|
|
7278
|
-
components: { ContentVariants:
|
|
7274
|
+
components: { ContentVariants: iu, DynamicDiv: St },
|
|
7279
7275
|
props: [
|
|
7280
7276
|
"symbol",
|
|
7281
7277
|
"attributes",
|
|
@@ -7310,7 +7306,7 @@ const su = /* @__PURE__ */ V(ou, [["render", iu]]), au = async ({
|
|
|
7310
7306
|
className() {
|
|
7311
7307
|
var e, t;
|
|
7312
7308
|
return [
|
|
7313
|
-
this.attributes[
|
|
7309
|
+
this.attributes[Ot()],
|
|
7314
7310
|
"builder-symbol",
|
|
7315
7311
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
7316
7312
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -7324,7 +7320,7 @@ const su = /* @__PURE__ */ V(ou, [["render", iu]]), au = async ({
|
|
|
7324
7320
|
},
|
|
7325
7321
|
methods: {
|
|
7326
7322
|
setContent() {
|
|
7327
|
-
this.contentToUse ||
|
|
7323
|
+
this.contentToUse || su({
|
|
7328
7324
|
symbol: this.symbol,
|
|
7329
7325
|
builderContextValue: this.builderContext
|
|
7330
7326
|
}).then((e) => {
|
|
@@ -7333,7 +7329,7 @@ const su = /* @__PURE__ */ V(ou, [["render", iu]]), au = async ({
|
|
|
7333
7329
|
}
|
|
7334
7330
|
}
|
|
7335
7331
|
});
|
|
7336
|
-
function
|
|
7332
|
+
function lu(e, t, n, r, o, i) {
|
|
7337
7333
|
var u, p, m, v, h;
|
|
7338
7334
|
const a = U("ContentVariants");
|
|
7339
7335
|
return y(), T("div", z({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
@@ -7361,8 +7357,8 @@ function uu(e, t, n, r, o, i) {
|
|
|
7361
7357
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
7362
7358
|
], 16);
|
|
7363
7359
|
}
|
|
7364
|
-
const
|
|
7365
|
-
function
|
|
7360
|
+
const uu = /* @__PURE__ */ V(au, [["render", lu]]), Or = {};
|
|
7361
|
+
function bu(e) {
|
|
7366
7362
|
if (X()) {
|
|
7367
7363
|
Object.assign(Or, e);
|
|
7368
7364
|
const t = {
|
|
@@ -7372,7 +7368,7 @@ function ku(e) {
|
|
|
7372
7368
|
parent.postMessage(t, "*");
|
|
7373
7369
|
}
|
|
7374
7370
|
}
|
|
7375
|
-
const
|
|
7371
|
+
const ku = async (e) => {
|
|
7376
7372
|
var r, o, i;
|
|
7377
7373
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
7378
7374
|
...e,
|
|
@@ -7393,43 +7389,43 @@ const Su = async (e) => {
|
|
|
7393
7389
|
};
|
|
7394
7390
|
};
|
|
7395
7391
|
export {
|
|
7396
|
-
|
|
7392
|
+
vl as A,
|
|
7397
7393
|
Vn as B,
|
|
7398
7394
|
ts as C,
|
|
7399
|
-
|
|
7395
|
+
bl as D,
|
|
7400
7396
|
Mn as E,
|
|
7401
7397
|
os as F,
|
|
7402
|
-
|
|
7403
|
-
|
|
7398
|
+
du as G,
|
|
7399
|
+
mu as H,
|
|
7404
7400
|
ds as I,
|
|
7405
7401
|
ms as S,
|
|
7406
7402
|
fe as T,
|
|
7407
7403
|
el as V,
|
|
7408
7404
|
Un as _,
|
|
7409
7405
|
_i as a,
|
|
7410
|
-
|
|
7406
|
+
hu as b,
|
|
7411
7407
|
Be as c,
|
|
7412
|
-
|
|
7408
|
+
gu as d,
|
|
7413
7409
|
Nn as e,
|
|
7414
7410
|
V as f,
|
|
7415
7411
|
qr as g,
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7412
|
+
jt as h,
|
|
7413
|
+
fu as i,
|
|
7414
|
+
Ot as j,
|
|
7415
|
+
fn as k,
|
|
7420
7416
|
qo as l,
|
|
7421
|
-
|
|
7417
|
+
uu as m,
|
|
7422
7418
|
Qs as n,
|
|
7423
7419
|
Xe as o,
|
|
7424
|
-
|
|
7420
|
+
iu as p,
|
|
7425
7421
|
le as q,
|
|
7426
|
-
|
|
7422
|
+
kl as r,
|
|
7427
7423
|
nl as s,
|
|
7428
|
-
|
|
7429
|
-
|
|
7424
|
+
Ul as t,
|
|
7425
|
+
bu as u,
|
|
7430
7426
|
co as v,
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7427
|
+
Ql as w,
|
|
7428
|
+
yu as x,
|
|
7429
|
+
vu as y,
|
|
7430
|
+
ku as z
|
|
7435
7431
|
};
|