@builder.io/sdk-vue 3.0.6 → 4.0.0
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/{awaiter-sU4SDpX0.js → awaiter-DlOqOX5z.js} +1 -1
- package/lib/browser/{awaiter-B_2yazFf.cjs → awaiter-vdgasK22.cjs} +1 -1
- package/lib/browser/block-styles-1zdZBD3_.js +84 -0
- package/lib/browser/block-styles-C2qOWXLT.cjs +1 -0
- package/lib/browser/{block-wrapper-cNFnfUiY.cjs → block-wrapper-KwNijOoq.cjs} +1 -1
- package/lib/browser/{block-wrapper-sJoVtUVt.js → block-wrapper-mWQd3eds.js} +3 -3
- package/lib/browser/blocks/video/video.vue.d.ts +3 -1
- package/lib/browser/{component-ref-Lo1xYT1R.cjs → component-ref-D8G8i0SU.cjs} +1 -1
- package/lib/browser/{component-ref-InYIqrKn.js → component-ref-fX9luBp4.js} +3 -3
- package/lib/browser/components/content-variants/content-variants.types.d.ts +2 -2
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -1
- package/lib/browser/constants/device-sizes.d.ts +3 -2
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-CKOWhK-0.cjs → get-block-properties-GIlOh7KW.cjs} +1 -1
- package/lib/browser/{get-block-properties-aoErppFn.js → get-block-properties-skcPpF7F.js} +1 -1
- package/lib/browser/helpers/subscribe-to-editor.d.ts +13 -13
- package/lib/browser/{index-kfabrDm6.cjs → index--ZUFWfhP.cjs} +19 -19
- package/lib/browser/{index-B6NDWuX_.js → index-yHm9GN7F.js} +308 -247
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-KGwyg5jh.cjs → repeated-block-4rLodLPa.cjs} +1 -1
- package/lib/browser/{repeated-block-P2xyBE88.js → repeated-block-s8wpauxV.js} +2 -2
- package/lib/browser/scripts/init-editing.d.ts +3 -1
- package/lib/browser/types/builder-block.d.ts +0 -1
- package/lib/browser/types/builder-content.d.ts +1 -0
- package/lib/edge/{awaiter-fXaD_JAB.js → awaiter-2r6u2dJ4.js} +1 -1
- package/lib/edge/{awaiter-EmQONKEI.cjs → awaiter-bR9ekICW.cjs} +1 -1
- package/lib/edge/block-styles-d3KRk_ab.cjs +1 -0
- package/lib/edge/block-styles-qmawnL2_.js +83 -0
- package/lib/edge/{block-wrapper-eADCpP6y.cjs → block-wrapper-dj07vUo2.cjs} +1 -1
- package/lib/edge/{block-wrapper-0SD0oCxs.js → block-wrapper-ga1Q8gAe.js} +3 -3
- package/lib/edge/blocks/video/video.vue.d.ts +3 -1
- package/lib/edge/{component-ref-gyS-V1Pb.cjs → component-ref-APzUXbFO.cjs} +1 -1
- package/lib/edge/{component-ref-jFmm1Yr5.js → component-ref-kF7QYHtR.js} +3 -3
- package/lib/edge/components/content-variants/content-variants.types.d.ts +2 -2
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -1
- package/lib/edge/constants/device-sizes.d.ts +3 -2
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-rOVHCadT.js → get-block-properties-8YAn4NDv.js} +1 -1
- package/lib/edge/{get-block-properties-uNDsnJ_q.cjs → get-block-properties-aIlaPST5.cjs} +1 -1
- package/lib/edge/helpers/subscribe-to-editor.d.ts +13 -13
- package/lib/edge/{index-L-qMWRJU.cjs → index-GUN3bmOV.cjs} +23 -23
- package/lib/edge/{index-NtpyQKYV.js → index-iGa536AK.js} +607 -546
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/repeated-block-vtexff4h.cjs → edge/repeated-block-OzRUfzWW.cjs} +1 -1
- package/lib/edge/{repeated-block-sEp_7OeP.js → repeated-block-s8LkZB7_.js} +2 -2
- package/lib/edge/scripts/init-editing.d.ts +3 -1
- package/lib/edge/types/builder-block.d.ts +0 -1
- package/lib/edge/types/builder-content.d.ts +1 -0
- package/lib/node/{awaiter-vuOYJM0Z.js → awaiter-4f_ytnHK.js} +1 -1
- package/lib/node/{awaiter-2QzOhSsm.cjs → awaiter-OY9itOXx.cjs} +1 -1
- package/lib/node/block-styles-I8VnS9H0.cjs +1 -0
- package/lib/node/block-styles-jsefu77A.js +84 -0
- package/lib/node/{block-wrapper-lX2JGnCZ.cjs → block-wrapper-YGW0E_7i.cjs} +1 -1
- package/lib/node/{block-wrapper-QmVhjKN-.js → block-wrapper-cmV-hW0a.js} +3 -3
- package/lib/node/blocks/video/video.vue.d.ts +3 -1
- package/lib/node/{component-ref-I3kUaCp3.cjs → component-ref-U44S4K28.cjs} +1 -1
- package/lib/node/{component-ref-KxI6DtDP.js → component-ref-qbqVS7Se.js} +3 -3
- package/lib/node/components/content-variants/content-variants.types.d.ts +2 -2
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -1
- package/lib/node/constants/device-sizes.d.ts +3 -2
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-DkXAWgRI.cjs → get-block-properties-WcC5NqID.cjs} +1 -1
- package/lib/node/{get-block-properties-767HBW90.js → get-block-properties-g8gAwjx3.js} +1 -1
- package/lib/node/helpers/subscribe-to-editor.d.ts +13 -13
- package/lib/node/{index-2pJd7fhw.cjs → index-4E72ai__.cjs} +16 -16
- package/lib/node/{index-n5uLpvet.js → index-Izb0_b7V.js} +309 -248
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-ldoaTwur.js → repeated-block-aLoVuYCX.js} +2 -2
- package/lib/{edge/repeated-block-LZ0_ayRt.cjs → node/repeated-block-xnbh1API.cjs} +1 -1
- package/lib/node/scripts/init-editing.d.ts +3 -1
- package/lib/node/types/builder-block.d.ts +0 -1
- package/lib/node/types/builder-content.d.ts +1 -0
- package/package.json +1 -1
- package/lib/browser/block-styles-K1JPlueX.js +0 -76
- package/lib/browser/block-styles-rosksv3P.cjs +0 -1
- package/lib/edge/block-styles-ET_8Qv_h.cjs +0 -1
- package/lib/edge/block-styles-V2TEosdx.js +0 -75
- package/lib/node/block-styles-ZraAZYMV.js +0 -76
- package/lib/node/block-styles-oEhFbcHe.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as j, openBlock as y, createElementBlock as I, Fragment as X, createBlock as
|
|
1
|
+
import { defineComponent as j, openBlock as y, createElementBlock as I, Fragment as X, createBlock as V, resolveDynamicComponent as ct, mergeProps as z, toHandlers as de, withCtx as Ie, renderSlot as le, resolveComponent as D, createTextVNode as Mo, toDisplayString as Bt, defineAsyncComponent as ot, createVNode as se, renderList as Ee, createCommentVNode as L, h as Ur, createElementVNode as ze, normalizeStyle as Pe, normalizeClass as ht, markRaw as Ho } from "vue";
|
|
2
2
|
const Ko = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), zo = (e) => typeof e == "string" && Ko.has(e.toLowerCase());
|
|
3
3
|
function he(e = {}, t, n) {
|
|
4
4
|
const r = {};
|
|
@@ -16,20 +16,20 @@ const Go = j({
|
|
|
16
16
|
data() {
|
|
17
17
|
return { isEmptyElement: zo };
|
|
18
18
|
}
|
|
19
|
-
}),
|
|
19
|
+
}), B = (e, t) => {
|
|
20
20
|
const n = e.__vccOpts || e;
|
|
21
21
|
for (const [r, o] of t)
|
|
22
22
|
n[r] = o;
|
|
23
23
|
return n;
|
|
24
24
|
};
|
|
25
25
|
function qo(e, t, n, r, o, i) {
|
|
26
|
-
return e.isEmptyElement(e.TagName) ? (y(),
|
|
27
|
-
typeof e.TagName == "string" ? (y(),
|
|
26
|
+
return e.isEmptyElement(e.TagName) ? (y(), V(ct(e.TagName), z({ key: 1 }, e.attributes, de(e.actionAttributes)), null, 16)) : (y(), I(X, { key: 0 }, [
|
|
27
|
+
typeof e.TagName == "string" ? (y(), V(ct(e.TagName), z({ key: 0 }, e.attributes, de(e.actionAttributes)), {
|
|
28
28
|
default: Ie(() => [
|
|
29
29
|
le(e.$slots, "default")
|
|
30
30
|
]),
|
|
31
31
|
_: 3
|
|
32
|
-
}, 16)) : (y(),
|
|
32
|
+
}, 16)) : (y(), V(ct(e.TagName), z({ key: 1 }, e.attributes, de(e.actionAttributes)), {
|
|
33
33
|
default: Ie(() => [
|
|
34
34
|
le(e.$slots, "default")
|
|
35
35
|
]),
|
|
@@ -37,7 +37,7 @@ function qo(e, t, n, r, o, i) {
|
|
|
37
37
|
}, 16))
|
|
38
38
|
], 64));
|
|
39
39
|
}
|
|
40
|
-
const kn = /* @__PURE__ */
|
|
40
|
+
const kn = /* @__PURE__ */ B(Go, [["render", qo]]), Ou = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41
41
|
__proto__: null,
|
|
42
42
|
default: kn
|
|
43
43
|
}, Symbol.toStringTag, { value: "Module" })), re = "vue", Ot = () => {
|
|
@@ -83,19 +83,19 @@ const kn = /* @__PURE__ */ N(Go, [["render", qo]]), ju = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
function Jo(e, t, n, r, o, i) {
|
|
86
|
-
const s =
|
|
87
|
-
return y(),
|
|
86
|
+
const s = D("DynamicRenderer");
|
|
87
|
+
return y(), V(s, {
|
|
88
88
|
attributes: e.attrs(),
|
|
89
89
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
90
90
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
91
91
|
}, {
|
|
92
92
|
default: Ie(() => [
|
|
93
|
-
Mo(
|
|
93
|
+
Mo(Bt(e.text), 1)
|
|
94
94
|
]),
|
|
95
95
|
_: 1
|
|
96
96
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
97
97
|
}
|
|
98
|
-
const Xo = /* @__PURE__ */
|
|
98
|
+
const Xo = /* @__PURE__ */ B(_o, [["render", Jo]]), Yo = Symbol(), fn = {
|
|
99
99
|
Builder: {
|
|
100
100
|
content: null,
|
|
101
101
|
context: {},
|
|
@@ -113,7 +113,7 @@ const Xo = /* @__PURE__ */ N(_o, [["render", Jo]]), Yo = Symbol(), fn = {
|
|
|
113
113
|
model: ""
|
|
114
114
|
},
|
|
115
115
|
key: Yo
|
|
116
|
-
}, Zo = Symbol(),
|
|
116
|
+
}, Zo = Symbol(), Vr = {
|
|
117
117
|
Components: { registeredComponents: {} },
|
|
118
118
|
key: Zo
|
|
119
119
|
}, $t = "[Builder.io]: ", ue = {
|
|
@@ -121,11 +121,11 @@ const Xo = /* @__PURE__ */ N(_o, [["render", Jo]]), Yo = Symbol(), fn = {
|
|
|
121
121
|
error: (...e) => console.error($t, ...e),
|
|
122
122
|
warn: (...e) => console.warn($t, ...e),
|
|
123
123
|
debug: (...e) => console.debug($t, ...e)
|
|
124
|
-
},
|
|
124
|
+
}, Dr = (e, t, n) => {
|
|
125
125
|
const r = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, i) => o != null ? o[i] : o, e);
|
|
126
126
|
return r === void 0 || r === e ? n : r;
|
|
127
127
|
};
|
|
128
|
-
function
|
|
128
|
+
function G() {
|
|
129
129
|
return typeof window < "u" && typeof document < "u";
|
|
130
130
|
}
|
|
131
131
|
const Qo = (e) => {
|
|
@@ -135,14 +135,14 @@ const Qo = (e) => {
|
|
|
135
135
|
}), t;
|
|
136
136
|
}, Fr = (e) => e instanceof URLSearchParams ? Qo(e) : e, Wr = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
137
137
|
function ei() {
|
|
138
|
-
return
|
|
138
|
+
return G() && window.self !== window.top;
|
|
139
139
|
}
|
|
140
140
|
function ie(e) {
|
|
141
141
|
return ei() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
142
142
|
Wr(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
143
143
|
}
|
|
144
144
|
const ti = () => {
|
|
145
|
-
if (
|
|
145
|
+
if (G()) {
|
|
146
146
|
const e = new URL(location.href);
|
|
147
147
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
148
148
|
} else
|
|
@@ -187,8 +187,8 @@ const ti = () => {
|
|
|
187
187
|
event: n
|
|
188
188
|
}), ri = () => ({
|
|
189
189
|
isEditing: ie(),
|
|
190
|
-
isBrowser:
|
|
191
|
-
isServer: !
|
|
190
|
+
isBrowser: G(),
|
|
191
|
+
isServer: !G(),
|
|
192
192
|
getUserAttributes: () => Lr()
|
|
193
193
|
}), oi = (e, {
|
|
194
194
|
isExpression: t = !0
|
|
@@ -239,7 +239,7 @@ const ii = ({
|
|
|
239
239
|
});
|
|
240
240
|
return new Function(...u.map(([p]) => p), e)(...u.map(([, p]) => p));
|
|
241
241
|
};
|
|
242
|
-
var
|
|
242
|
+
var N, si = function(e) {
|
|
243
243
|
function t(a) {
|
|
244
244
|
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Wo.test(String.fromCharCode(a));
|
|
245
245
|
}
|
|
@@ -247,17 +247,17 @@ var B, si = function(e) {
|
|
|
247
247
|
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && br.test(String.fromCharCode(a));
|
|
248
248
|
}
|
|
249
249
|
function r(a, l) {
|
|
250
|
-
for (var c = k, f = 1,
|
|
251
|
-
|
|
252
|
-
var _ =
|
|
250
|
+
for (var c = k, f = 1, R = 0; ; ) {
|
|
251
|
+
At.lastIndex = R;
|
|
252
|
+
var _ = At.exec(c);
|
|
253
253
|
if (_ && _.index < a)
|
|
254
|
-
++f,
|
|
254
|
+
++f, R = _.index + _[0].length;
|
|
255
255
|
else
|
|
256
256
|
break;
|
|
257
257
|
}
|
|
258
258
|
throw c = {
|
|
259
259
|
line: f,
|
|
260
|
-
ab: a -
|
|
260
|
+
ab: a - R
|
|
261
261
|
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = a, l.X = c, l.o = d, l;
|
|
262
262
|
}
|
|
263
263
|
function o(a) {
|
|
@@ -269,35 +269,35 @@ var B, si = function(e) {
|
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
function i() {
|
|
272
|
-
this.line =
|
|
272
|
+
this.line = Be, this.ab = d - be;
|
|
273
273
|
}
|
|
274
274
|
function s(a, l) {
|
|
275
|
-
Fe = d,
|
|
275
|
+
Fe = d, A.C && (Gt = new i()), x = a, p(), ae = l, Qe = a.m;
|
|
276
276
|
}
|
|
277
277
|
function u() {
|
|
278
|
-
for (var a = d, l =
|
|
278
|
+
for (var a = d, l = A.va && A.C && new i(), c = k.charCodeAt(d += 2); d < De && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
279
279
|
++d, c = k.charCodeAt(d);
|
|
280
|
-
|
|
280
|
+
A.va && A.va(!1, k.slice(a + 2, d), a, d, l, A.C && new i());
|
|
281
281
|
}
|
|
282
282
|
function p() {
|
|
283
|
-
for (; d <
|
|
283
|
+
for (; d < De; ) {
|
|
284
284
|
var a = k.charCodeAt(d);
|
|
285
285
|
if (a === 32)
|
|
286
286
|
++d;
|
|
287
287
|
else if (a === 13)
|
|
288
|
-
++d, a = k.charCodeAt(d), a === 10 && ++d,
|
|
288
|
+
++d, a = k.charCodeAt(d), a === 10 && ++d, A.C && (++Be, be = d);
|
|
289
289
|
else if (a === 10 || a === 8232 || a === 8233)
|
|
290
|
-
++d,
|
|
290
|
+
++d, A.C && (++Be, be = d);
|
|
291
291
|
else if (8 < a && 14 > a)
|
|
292
292
|
++d;
|
|
293
293
|
else if (a === 47)
|
|
294
294
|
if (a = k.charCodeAt(d + 1), a === 42) {
|
|
295
295
|
a = void 0;
|
|
296
|
-
var l =
|
|
297
|
-
if (f === -1 && r(d - 2, "Unterminated comment"), d = f + 2,
|
|
298
|
-
for (
|
|
299
|
-
++
|
|
300
|
-
|
|
296
|
+
var l = A.va && A.C && new i(), c = d, f = k.indexOf("*/", d += 2);
|
|
297
|
+
if (f === -1 && r(d - 2, "Unterminated comment"), d = f + 2, A.C)
|
|
298
|
+
for (At.lastIndex = c; (a = At.exec(k)) && a.index < d; )
|
|
299
|
+
++Be, be = a.index + a[0].length;
|
|
300
|
+
A.va && A.va(!0, k.slice(c + 2, f), c, d, l, A.C && new i());
|
|
301
301
|
} else if (a === 47)
|
|
302
302
|
u();
|
|
303
303
|
else
|
|
@@ -328,16 +328,16 @@ var B, si = function(e) {
|
|
|
328
328
|
case 93:
|
|
329
329
|
return ++d, s(rn);
|
|
330
330
|
case 123:
|
|
331
|
-
return ++d, s(
|
|
331
|
+
return ++d, s(nt);
|
|
332
332
|
case 125:
|
|
333
333
|
return ++d, s(Le);
|
|
334
334
|
case 58:
|
|
335
|
-
return ++d, s(
|
|
335
|
+
return ++d, s(rt);
|
|
336
336
|
case 63:
|
|
337
337
|
return ++d, s(dr);
|
|
338
338
|
case 48:
|
|
339
339
|
if (a = k.charCodeAt(d + 1), a === 120 || a === 88) {
|
|
340
|
-
d += 2, a = T(16), a === null && r(
|
|
340
|
+
d += 2, a = T(16), a === null && r(q + 2, "Expected hexadecimal number"), n(k.charCodeAt(d)) && r(d, "Identifier directly after number"), s(tt, a);
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
343
343
|
case 49:
|
|
@@ -354,7 +354,7 @@ var B, si = function(e) {
|
|
|
354
354
|
case 39:
|
|
355
355
|
d++;
|
|
356
356
|
for (var l = ""; ; ) {
|
|
357
|
-
d >=
|
|
357
|
+
d >= De && r(q, "Unterminated string constant");
|
|
358
358
|
var c = k.charCodeAt(d);
|
|
359
359
|
if (c === a) {
|
|
360
360
|
++d, s(Tt, l);
|
|
@@ -403,17 +403,17 @@ var B, si = function(e) {
|
|
|
403
403
|
case 13:
|
|
404
404
|
k.charCodeAt(d) === 10 && ++d;
|
|
405
405
|
case 10:
|
|
406
|
-
|
|
406
|
+
A.C && (be = d, ++Be);
|
|
407
407
|
break;
|
|
408
408
|
default:
|
|
409
409
|
l += String.fromCharCode(c);
|
|
410
410
|
}
|
|
411
411
|
} else
|
|
412
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(
|
|
412
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(q, "Unterminated string constant"), l += String.fromCharCode(c), ++d;
|
|
413
413
|
}
|
|
414
414
|
return;
|
|
415
415
|
case 47:
|
|
416
|
-
a = k.charCodeAt(d + 1),
|
|
416
|
+
a = k.charCodeAt(d + 1), Qe ? (++d, g()) : a === 61 ? v(Ue, 2) : v(fr, 1);
|
|
417
417
|
return;
|
|
418
418
|
case 37:
|
|
419
419
|
case 42:
|
|
@@ -421,18 +421,18 @@ var B, si = function(e) {
|
|
|
421
421
|
return;
|
|
422
422
|
case 124:
|
|
423
423
|
case 38:
|
|
424
|
-
l = k.charCodeAt(d + 1), l === a ? v(a === 124 ? gr : yr, 2) : l === 61 ? v(Ue, 2) : v(a === 124 ?
|
|
424
|
+
l = k.charCodeAt(d + 1), l === a ? v(a === 124 ? gr : yr, 2) : l === 61 ? v(Ue, 2) : v(a === 124 ? Ao : Po, 1);
|
|
425
425
|
return;
|
|
426
426
|
case 94:
|
|
427
427
|
k.charCodeAt(d + 1) === 61 ? v(Ue, 2) : v($o, 1);
|
|
428
428
|
return;
|
|
429
429
|
case 43:
|
|
430
430
|
case 45:
|
|
431
|
-
l = k.charCodeAt(d + 1), l === a ? l === 45 && k.charCodeAt(d + 2) === 62 &&
|
|
431
|
+
l = k.charCodeAt(d + 1), l === a ? l === 45 && k.charCodeAt(d + 2) === 62 && Rt.test(k.slice(Ae, d)) ? (d += 3, u(), p(), b()) : v(Ro, 2) : l === 61 ? v(Ue, 2) : v(Bo, 1);
|
|
432
432
|
return;
|
|
433
433
|
case 60:
|
|
434
434
|
case 62:
|
|
435
|
-
l = k.charCodeAt(d + 1), c = 1, l === a ? (c = a === 62 && k.charCodeAt(d + 2) === 62 ? 3 : 2, k.charCodeAt(d + c) === 61 ? v(Ue, c + 1) : v(
|
|
435
|
+
l = k.charCodeAt(d + 1), c = 1, l === a ? (c = a === 62 && k.charCodeAt(d + 2) === 62 ? 3 : 2, k.charCodeAt(d + c) === 61 ? v(Ue, c + 1) : v(No, c)) : l === 33 && a === 60 && k.charCodeAt(d + 2) === 45 && k.charCodeAt(d + 3) === 45 ? (d += 4, u(), p(), b()) : (l === 61 && (c = k.charCodeAt(d + 2) === 61 ? 3 : 2), v(jo, c));
|
|
436
436
|
return;
|
|
437
437
|
case 61:
|
|
438
438
|
case 33:
|
|
@@ -444,15 +444,15 @@ var B, si = function(e) {
|
|
|
444
444
|
return !1;
|
|
445
445
|
}
|
|
446
446
|
function b(a) {
|
|
447
|
-
if (a ? d =
|
|
447
|
+
if (a ? d = q + 1 : q = d, A.C && (zt = new i()), a)
|
|
448
448
|
return g();
|
|
449
|
-
if (d >=
|
|
449
|
+
if (d >= De)
|
|
450
450
|
return s(Jt);
|
|
451
451
|
if (a = k.charCodeAt(d), n(a) || a === 92)
|
|
452
|
-
return
|
|
452
|
+
return Re();
|
|
453
453
|
if (m(a) === !1) {
|
|
454
454
|
if (a = String.fromCharCode(a), a === "\\" || br.test(a))
|
|
455
|
-
return
|
|
455
|
+
return Re();
|
|
456
456
|
r(d, "Unexpected character '" + a + "'");
|
|
457
457
|
}
|
|
458
458
|
}
|
|
@@ -462,9 +462,9 @@ var B, si = function(e) {
|
|
|
462
462
|
}
|
|
463
463
|
function g() {
|
|
464
464
|
for (var a, l, c = d; ; ) {
|
|
465
|
-
d >=
|
|
465
|
+
d >= De && r(c, "Unterminated regexp");
|
|
466
466
|
var f = k.charAt(d);
|
|
467
|
-
if (
|
|
467
|
+
if (Rt.test(f) && r(c, "Unterminated regexp"), a)
|
|
468
468
|
a = !1;
|
|
469
469
|
else {
|
|
470
470
|
if (f === "[")
|
|
@@ -479,14 +479,14 @@ var B, si = function(e) {
|
|
|
479
479
|
}
|
|
480
480
|
a = k.slice(c, d), ++d, (l = Z()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
481
481
|
try {
|
|
482
|
-
var
|
|
482
|
+
var R = new RegExp(a, l);
|
|
483
483
|
} catch (_) {
|
|
484
484
|
throw _ instanceof SyntaxError && r(c, _.message), _;
|
|
485
485
|
}
|
|
486
|
-
s(Gn,
|
|
486
|
+
s(Gn, R);
|
|
487
487
|
}
|
|
488
488
|
function T(a, l) {
|
|
489
|
-
for (var c = d, f = 0,
|
|
489
|
+
for (var c = d, f = 0, R = l === void 0 ? 1 / 0 : l, _ = 0; _ < R; ++_) {
|
|
490
490
|
var ee = k.charCodeAt(d);
|
|
491
491
|
if (ee = 97 <= ee ? ee - 97 + 10 : 65 <= ee ? ee - 65 + 10 : 48 <= ee && 57 >= ee ? ee - 48 : 1 / 0, ee >= a)
|
|
492
492
|
break;
|
|
@@ -497,11 +497,11 @@ var B, si = function(e) {
|
|
|
497
497
|
function U(a) {
|
|
498
498
|
var l = d, c = !1, f = k.charCodeAt(d) === 48;
|
|
499
499
|
a || T(10) !== null || r(l, "Invalid number"), k.charCodeAt(d) === 46 && (++d, T(10), c = !0), a = k.charCodeAt(d), (a === 69 || a === 101) && (a = k.charCodeAt(++d), a !== 43 && a !== 45 || ++d, T(10) === null && r(l, "Invalid number"), c = !0), n(k.charCodeAt(d)) && r(d, "Identifier directly after number"), a = k.slice(l, d);
|
|
500
|
-
var
|
|
501
|
-
c ?
|
|
500
|
+
var R;
|
|
501
|
+
c ? R = parseFloat(a) : f && a.length !== 1 ? /[89]/.test(a) || oe ? r(l, "Invalid number") : R = parseInt(a, 8) : R = parseInt(a, 10), s(tt, R);
|
|
502
502
|
}
|
|
503
503
|
function O(a) {
|
|
504
|
-
return a = T(16, a), a === null && r(
|
|
504
|
+
return a = T(16, a), a === null && r(q, "Bad character escape sequence"), a;
|
|
505
505
|
}
|
|
506
506
|
function Z() {
|
|
507
507
|
Me = !1;
|
|
@@ -511,44 +511,44 @@ var B, si = function(e) {
|
|
|
511
511
|
Me && (a += k.charAt(d)), ++d;
|
|
512
512
|
else if (f === 92) {
|
|
513
513
|
Me || (a = k.slice(c, d)), Me = !0, k.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, f = O(4);
|
|
514
|
-
var
|
|
515
|
-
|
|
514
|
+
var R = String.fromCharCode(f);
|
|
515
|
+
R || r(d - 1, "Invalid Unicode escape"), (l ? n(f) : t(f)) || r(d - 4, "Invalid Unicode escape"), a += R;
|
|
516
516
|
} else
|
|
517
517
|
break;
|
|
518
518
|
l = !1;
|
|
519
519
|
}
|
|
520
520
|
return Me ? a : k.slice(c, d);
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Re() {
|
|
523
523
|
var a = Z(), l = We;
|
|
524
|
-
!Me &&
|
|
524
|
+
!Me && Do(a) && (l = xo[a]), s(l, a);
|
|
525
525
|
}
|
|
526
526
|
function $() {
|
|
527
|
-
qt =
|
|
527
|
+
qt = q, Ae = Fe, _t = Gt, b();
|
|
528
528
|
}
|
|
529
529
|
function F(a) {
|
|
530
|
-
if (oe = a, d =
|
|
530
|
+
if (oe = a, d = q, A.C)
|
|
531
531
|
for (; d < be; )
|
|
532
532
|
be = k.lastIndexOf(`
|
|
533
|
-
`, be - 2) + 1, --
|
|
533
|
+
`, be - 2) + 1, --Be;
|
|
534
534
|
p(), b();
|
|
535
535
|
}
|
|
536
|
-
function
|
|
537
|
-
this.type = null, this.start =
|
|
536
|
+
function Ve() {
|
|
537
|
+
this.type = null, this.start = q, this.end = null;
|
|
538
538
|
}
|
|
539
539
|
function me() {
|
|
540
540
|
this.start = zt, this.end = null, Kt && (this.source = Kt);
|
|
541
541
|
}
|
|
542
542
|
function M() {
|
|
543
|
-
var a = new
|
|
544
|
-
return
|
|
543
|
+
var a = new Ve();
|
|
544
|
+
return A.C && (a.X = new me()), A.vb && (a.sourceFile = A.vb), A.Xa && (a.j = [q, 0]), a;
|
|
545
545
|
}
|
|
546
546
|
function ce(a) {
|
|
547
|
-
var l = new
|
|
548
|
-
return l.start = a.start,
|
|
547
|
+
var l = new Ve();
|
|
548
|
+
return l.start = a.start, A.C && (l.X = new me(), l.X.start = a.X.start), A.Xa && (l.j = [a.j[0], 0]), l;
|
|
549
549
|
}
|
|
550
550
|
function E(a, l) {
|
|
551
|
-
return a.type = l, a.end =
|
|
551
|
+
return a.type = l, a.end = Ae, A.C && (a.X.end = _t), A.Xa && (a.j[1] = Ae), a;
|
|
552
552
|
}
|
|
553
553
|
function ge(a) {
|
|
554
554
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
@@ -557,16 +557,16 @@ var B, si = function(e) {
|
|
|
557
557
|
return x === a ? ($(), !0) : !1;
|
|
558
558
|
}
|
|
559
559
|
function Ct() {
|
|
560
|
-
return !
|
|
560
|
+
return !A.fc && (x === Jt || x === Le || Rt.test(k.slice(Ae, q)));
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Ne() {
|
|
563
563
|
W(Se) || Ct() || ye();
|
|
564
564
|
}
|
|
565
565
|
function H(a) {
|
|
566
566
|
x === a ? $() : ye();
|
|
567
567
|
}
|
|
568
568
|
function ye() {
|
|
569
|
-
r(
|
|
569
|
+
r(q, "Unexpected token");
|
|
570
570
|
}
|
|
571
571
|
function wt(a) {
|
|
572
572
|
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), oe && a.type === "Identifier" && xt(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
@@ -579,65 +579,65 @@ var B, si = function(e) {
|
|
|
579
579
|
case _n:
|
|
580
580
|
$();
|
|
581
581
|
var c = a === Xt;
|
|
582
|
-
W(Se) || Ct() ? l.label = null : x !== We ? ye() : (l.label = ve(),
|
|
582
|
+
W(Se) || Ct() ? l.label = null : x !== We ? ye() : (l.label = ve(), Ne());
|
|
583
583
|
for (var f = 0; f < K.length; ++f) {
|
|
584
|
-
var
|
|
585
|
-
if ((l.label === null ||
|
|
584
|
+
var R = K[f];
|
|
585
|
+
if ((l.label === null || R.name === l.label.name) && (R.kind !== null && (c || R.kind === "loop") || l.label && c))
|
|
586
586
|
break;
|
|
587
587
|
}
|
|
588
588
|
return f === K.length && r(l.start, "Unsyntactic " + a.l), E(l, c ? "BreakStatement" : "ContinueStatement");
|
|
589
589
|
case Jn:
|
|
590
|
-
return $(),
|
|
590
|
+
return $(), Ne(), E(l, "DebuggerStatement");
|
|
591
591
|
case Yn:
|
|
592
|
-
return $(), K.push(on), l.body = pe(), K.pop(), H(tn), l.test =
|
|
592
|
+
return $(), K.push(on), l.body = pe(), K.pop(), H(tn), l.test = Xe(), Ne(), E(l, "DoWhileStatement");
|
|
593
593
|
case er:
|
|
594
|
-
return $(), K.push(on), H(ke), x === Se ?
|
|
594
|
+
return $(), K.push(on), H(ke), x === Se ? Dt(l, null) : x === en ? (a = M(), $(), Kn(a, !0), E(a, "VariableDeclaration"), a.fa.length === 1 && W(It) ? Hn(l, a) : Dt(l, a)) : (a = Q(!1, !0), W(It) ? (wt(a), Hn(l, a)) : Dt(l, a));
|
|
595
595
|
case Zt:
|
|
596
596
|
return $(), Mt(l, !0);
|
|
597
597
|
case tr:
|
|
598
|
-
return $(), l.test =
|
|
598
|
+
return $(), l.test = Xe(), l.da = pe(), l.alternate = W(Zn) ? pe() : null, E(l, "IfStatement");
|
|
599
599
|
case nr:
|
|
600
|
-
return
|
|
600
|
+
return et || A.Ib || r(q, "'return' outside of function"), $(), W(Se) || Ct() ? l.K = null : (l.K = Q(), Ne()), E(l, "ReturnStatement");
|
|
601
601
|
case Qt:
|
|
602
|
-
for ($(), l.Qb =
|
|
603
|
-
x === Yt || x === Xn ? (a = x === Yt, f && E(f, "SwitchCase"), l.tb.push(f = M()), f.da = [], $(), a ? f.test = Q() : (c && r(qt, "Multiple default clauses"), c = !0, f.test = null), H(
|
|
602
|
+
for ($(), l.Qb = Xe(), l.tb = [], H(nt), K.push(Lo); x !== Le; )
|
|
603
|
+
x === Yt || x === Xn ? (a = x === Yt, f && E(f, "SwitchCase"), l.tb.push(f = M()), f.da = [], $(), a ? f.test = Q() : (c && r(qt, "Multiple default clauses"), c = !0, f.test = null), H(rt)) : (f || ye(), f.da.push(pe()));
|
|
604
604
|
return f && E(f, "SwitchCase"), $(), K.pop(), E(l, "SwitchStatement");
|
|
605
605
|
case rr:
|
|
606
|
-
return $(),
|
|
606
|
+
return $(), Rt.test(k.slice(Ae, q)) && r(Ae, "Illegal newline after throw"), l.K = Q(), Ne(), E(l, "ThrowStatement");
|
|
607
607
|
case or:
|
|
608
|
-
return $(), l.block =
|
|
608
|
+
return $(), l.block = Ye(), l.Ea = null, x === qn && (a = M(), $(), H(ke), a.Ua = ve(), oe && xt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), H(fe), a.body = Ye(), l.Ea = E(a, "CatchClause")), l.fb = W(Qn) ? Ye() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
609
609
|
case en:
|
|
610
|
-
return $(), Kn(l),
|
|
610
|
+
return $(), Kn(l), Ne(), E(l, "VariableDeclaration");
|
|
611
611
|
case tn:
|
|
612
|
-
return $(), l.test =
|
|
612
|
+
return $(), l.test = Xe(), K.push(on), l.body = pe(), K.pop(), E(l, "WhileStatement");
|
|
613
613
|
case ir:
|
|
614
|
-
return oe && r(
|
|
615
|
-
case
|
|
616
|
-
return
|
|
614
|
+
return oe && r(q, "'with' in strict mode"), $(), l.object = Xe(), l.body = pe(), E(l, "WithStatement");
|
|
615
|
+
case nt:
|
|
616
|
+
return Ye();
|
|
617
617
|
case Se:
|
|
618
618
|
return $(), E(l, "EmptyStatement");
|
|
619
619
|
default:
|
|
620
|
-
if (c = ae,
|
|
620
|
+
if (c = ae, R = Q(), a === We && R.type === "Identifier" && W(rt)) {
|
|
621
621
|
for (f = 0; f < K.length; ++f)
|
|
622
|
-
K[f].name === c && r(
|
|
622
|
+
K[f].name === c && r(R.start, "Label '" + c + "' is already declared");
|
|
623
623
|
return K.push({
|
|
624
624
|
name: c,
|
|
625
625
|
kind: x.W ? "loop" : x === Qt ? "switch" : null
|
|
626
|
-
}), l.body = pe(), K.pop(), l.label =
|
|
626
|
+
}), l.body = pe(), K.pop(), l.label = R, E(l, "LabeledStatement");
|
|
627
627
|
}
|
|
628
|
-
return l.la =
|
|
628
|
+
return l.la = R, Ne(), E(l, "ExpressionStatement");
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Xe() {
|
|
632
632
|
H(ke);
|
|
633
633
|
var a = Q();
|
|
634
634
|
return H(fe), a;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function Ye(a) {
|
|
637
637
|
var l = M(), c = !0, f = !1;
|
|
638
|
-
for (l.body = [], H(
|
|
639
|
-
var
|
|
640
|
-
if (l.body.push(
|
|
638
|
+
for (l.body = [], H(nt); !W(Le); ) {
|
|
639
|
+
var R = pe();
|
|
640
|
+
if (l.body.push(R), c && a && ge(R)) {
|
|
641
641
|
var _ = f;
|
|
642
642
|
F(f = !0);
|
|
643
643
|
}
|
|
@@ -645,7 +645,7 @@ var B, si = function(e) {
|
|
|
645
645
|
}
|
|
646
646
|
return f && !_ && F(!1), E(l, "BlockStatement");
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Dt(a, l) {
|
|
649
649
|
return a.ua = l, H(Se), a.test = x === Se ? null : Q(), H(Se), a.update = x === fe ? null : Q(), H(fe), a.body = pe(), K.pop(), E(a, "ForStatement");
|
|
650
650
|
}
|
|
651
651
|
function Hn(a, l) {
|
|
@@ -671,33 +671,33 @@ var B, si = function(e) {
|
|
|
671
671
|
var l = Wt(Lt(), -1, a);
|
|
672
672
|
if (W(dr)) {
|
|
673
673
|
var c = ce(l);
|
|
674
|
-
c.test = l, c.da = Q(!0), H(
|
|
674
|
+
c.test = l, c.da = Q(!0), H(rt), c.alternate = Q(!0, a), l = E(c, "ConditionalExpression");
|
|
675
675
|
}
|
|
676
676
|
return x.Cb ? (c = ce(l), c.operator = ae, c.left = l, $(), c.right = Ft(a), wt(l), E(c, "AssignmentExpression")) : l;
|
|
677
677
|
}
|
|
678
678
|
function Wt(a, l, c) {
|
|
679
679
|
var f = x.L;
|
|
680
680
|
if (f !== null && (!c || x !== It) && f > l) {
|
|
681
|
-
var
|
|
682
|
-
return
|
|
681
|
+
var R = ce(a);
|
|
682
|
+
return R.left = a, R.operator = ae, a = x, $(), R.right = Wt(Lt(), f, c), f = E(R, a === gr || a === yr ? "LogicalExpression" : "BinaryExpression"), Wt(f, l, c);
|
|
683
683
|
}
|
|
684
684
|
return a;
|
|
685
685
|
}
|
|
686
686
|
function Lt() {
|
|
687
687
|
if (x.prefix) {
|
|
688
688
|
var a = M(), l = x.$b;
|
|
689
|
-
return a.operator = ae,
|
|
689
|
+
return a.operator = ae, Qe = a.prefix = !0, $(), a.K = Lt(), l ? wt(a.K) : oe && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), E(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
690
690
|
}
|
|
691
|
-
for (l =
|
|
691
|
+
for (l = Ze(Et()); x.cc && !Ct(); )
|
|
692
692
|
a = ce(l), a.operator = ae, a.prefix = !1, a.K = l, wt(l), $(), l = E(a, "UpdateExpression");
|
|
693
693
|
return l;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function Ze(a, l) {
|
|
696
696
|
if (W(pr)) {
|
|
697
697
|
var c = ce(a);
|
|
698
|
-
return c.object = a, c.Wa = ve(!0), c.bb = !1,
|
|
698
|
+
return c.object = a, c.Wa = ve(!0), c.bb = !1, Ze(E(c, "MemberExpression"), l);
|
|
699
699
|
}
|
|
700
|
-
return W(nn) ? (c = ce(a), c.object = a, c.Wa = Q(), c.bb = !0, H(rn),
|
|
700
|
+
return W(nn) ? (c = ce(a), c.object = a, c.Wa = Q(), c.bb = !0, H(rn), Ze(E(c, "MemberExpression"), l)) : !l && W(ke) ? (c = ce(a), c.callee = a, c.arguments = Ht(fe, !1), Ze(E(c, "CallExpression"), l)) : a;
|
|
701
701
|
}
|
|
702
702
|
function Et() {
|
|
703
703
|
switch (x) {
|
|
@@ -706,41 +706,41 @@ var B, si = function(e) {
|
|
|
706
706
|
return $(), E(a, "ThisExpression");
|
|
707
707
|
case We:
|
|
708
708
|
return ve();
|
|
709
|
-
case
|
|
709
|
+
case tt:
|
|
710
710
|
case Tt:
|
|
711
711
|
case Gn:
|
|
712
|
-
return a = M(), a.value = ae, a.raw = k.slice(
|
|
712
|
+
return a = M(), a.value = ae, a.raw = k.slice(q, Fe), $(), E(a, "Literal");
|
|
713
713
|
case lr:
|
|
714
714
|
case ur:
|
|
715
715
|
case cr:
|
|
716
716
|
return a = M(), a.value = x.$a, a.raw = x.l, $(), E(a, "Literal");
|
|
717
717
|
case ke:
|
|
718
718
|
a = zt;
|
|
719
|
-
var l =
|
|
719
|
+
var l = q;
|
|
720
720
|
$();
|
|
721
721
|
var c = Q();
|
|
722
|
-
return c.start = l, c.end = Fe,
|
|
722
|
+
return c.start = l, c.end = Fe, A.C && (c.X.start = a, c.X.end = Gt), A.Xa && (c.j = [l, Fe]), H(fe), c;
|
|
723
723
|
case nn:
|
|
724
724
|
return a = M(), $(), a.elements = Ht(rn, !0, !0), E(a, "ArrayExpression");
|
|
725
|
-
case
|
|
725
|
+
case nt:
|
|
726
726
|
for (a = M(), l = !0, c = !1, a.h = [], $(); !W(Le); ) {
|
|
727
727
|
if (l)
|
|
728
728
|
l = !1;
|
|
729
|
-
else if (H($e),
|
|
729
|
+
else if (H($e), A.sb && W(Le))
|
|
730
730
|
break;
|
|
731
731
|
var f = {
|
|
732
|
-
key: x ===
|
|
733
|
-
},
|
|
734
|
-
if (W(
|
|
732
|
+
key: x === tt || x === Tt ? Et() : ve(!0)
|
|
733
|
+
}, R = !1;
|
|
734
|
+
if (W(rt)) {
|
|
735
735
|
f.value = Q(!0);
|
|
736
736
|
var _ = f.kind = "init";
|
|
737
737
|
} else
|
|
738
|
-
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? ye() : (
|
|
738
|
+
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? ye() : (R = c = !0, _ = f.kind = f.key.name, f.key = x === tt || x === Tt ? Et() : ve(!0), x !== ke && ye(), f.value = Mt(M(), !1));
|
|
739
739
|
if (f.key.type === "Identifier" && (oe || c))
|
|
740
740
|
for (var ee = 0; ee < a.h.length; ++ee) {
|
|
741
741
|
var He = a.h[ee];
|
|
742
742
|
if (He.key.name === f.key.name) {
|
|
743
|
-
var sn = _ === He.kind ||
|
|
743
|
+
var sn = _ === He.kind || R && He.kind === "init" || _ === "init" && (He.kind === "get" || He.kind === "set");
|
|
744
744
|
sn && !oe && _ === "init" && He.kind === "init" && (sn = !1), sn && r(f.key.start, "Redefinition of property");
|
|
745
745
|
}
|
|
746
746
|
}
|
|
@@ -750,7 +750,7 @@ var B, si = function(e) {
|
|
|
750
750
|
case Zt:
|
|
751
751
|
return a = M(), $(), Mt(a, !1);
|
|
752
752
|
case sr:
|
|
753
|
-
return a = M(), $(), a.callee =
|
|
753
|
+
return a = M(), $(), a.callee = Ze(Et(), !0), a.arguments = W(ke) ? Ht(fe, !1) : Io, E(a, "NewExpression");
|
|
754
754
|
}
|
|
755
755
|
ye();
|
|
756
756
|
}
|
|
@@ -759,21 +759,21 @@ var B, si = function(e) {
|
|
|
759
759
|
var c = !0;
|
|
760
760
|
for (H(ke); !W(fe); )
|
|
761
761
|
c ? c = !1 : H($e), a.oa.push(ve());
|
|
762
|
-
c =
|
|
762
|
+
c = et;
|
|
763
763
|
var f = K;
|
|
764
|
-
if (
|
|
764
|
+
if (et = !0, K = [], a.body = Ye(!0), et = c, K = f, oe || a.body.body.length && ge(a.body.body[0])) {
|
|
765
765
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
766
766
|
if (f = 0 > c ? a.id : a.oa[c], (vr(f.name) || xt(f.name)) && r(f.start, "Defining '" + f.name + "' in strict mode"), 0 <= c)
|
|
767
|
-
for (var
|
|
768
|
-
f.name === a.oa[
|
|
767
|
+
for (var R = 0; R < c; ++R)
|
|
768
|
+
f.name === a.oa[R].name && r(f.start, "Argument name clash in strict mode");
|
|
769
769
|
}
|
|
770
770
|
return E(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
771
771
|
}
|
|
772
772
|
function Ht(a, l, c) {
|
|
773
|
-
for (var f = [],
|
|
774
|
-
if (
|
|
775
|
-
|
|
776
|
-
else if (H($e), l &&
|
|
773
|
+
for (var f = [], R = !0; !W(a); ) {
|
|
774
|
+
if (R)
|
|
775
|
+
R = !1;
|
|
776
|
+
else if (H($e), l && A.sb && W(a))
|
|
777
777
|
break;
|
|
778
778
|
f.push(c && x === $e ? null : Q(!0));
|
|
779
779
|
}
|
|
@@ -781,15 +781,15 @@ var B, si = function(e) {
|
|
|
781
781
|
}
|
|
782
782
|
function ve(a) {
|
|
783
783
|
var l = M();
|
|
784
|
-
return a &&
|
|
784
|
+
return a && A.yb === "everywhere" && (a = !1), x === We ? (!a && (A.yb && Vo(ae) || oe && vr(ae)) && k.slice(q, Fe).indexOf("\\") === -1 && r(q, "The keyword '" + ae + "' is reserved"), l.name = ae) : a && x.l ? l.name = x.l : ye(), Qe = !1, $(), E(l, "Identifier");
|
|
785
785
|
}
|
|
786
786
|
e.version = "0.5.0";
|
|
787
|
-
var
|
|
787
|
+
var A, k = "", De, Kt;
|
|
788
788
|
e.parse = function(a, l) {
|
|
789
|
-
k = String(a),
|
|
789
|
+
k = String(a), De = k.length, A = l || {};
|
|
790
790
|
for (var c in zn)
|
|
791
|
-
Object.prototype.hasOwnProperty.call(
|
|
792
|
-
for (Kt =
|
|
791
|
+
Object.prototype.hasOwnProperty.call(A, c) || (A[c] = zn[c]);
|
|
792
|
+
for (Kt = A.sourceFile, Be = 1, d = be = 0, Qe = !0, p(), c = A.dc, qt = Ae = d, A.C && (_t = new i()), et = oe = !1, K = [], b(), a = c || M(), l = !0, c || (a.body = []); x !== Jt; )
|
|
793
793
|
c = pe(), a.body.push(c), l && ge(c) && F(!0), l = !1;
|
|
794
794
|
return E(a, "Program");
|
|
795
795
|
};
|
|
@@ -804,7 +804,7 @@ var B, si = function(e) {
|
|
|
804
804
|
dc: null,
|
|
805
805
|
sourceFile: null,
|
|
806
806
|
vb: null
|
|
807
|
-
}, d = 0,
|
|
807
|
+
}, d = 0, q = 0, Fe = 0, zt, Gt, x, ae, Qe, Be, be, qt = 0, Ae = 0, _t, et, K, oe, Io = [], tt = {
|
|
808
808
|
type: "num"
|
|
809
809
|
}, Gn = {
|
|
810
810
|
type: "regexp"
|
|
@@ -928,7 +928,7 @@ var B, si = function(e) {
|
|
|
928
928
|
m: !0
|
|
929
929
|
}, rn = {
|
|
930
930
|
type: "]"
|
|
931
|
-
},
|
|
931
|
+
}, nt = {
|
|
932
932
|
type: "{",
|
|
933
933
|
m: !0
|
|
934
934
|
}, Le = {
|
|
@@ -944,7 +944,7 @@ var B, si = function(e) {
|
|
|
944
944
|
}, Se = {
|
|
945
945
|
type: ";",
|
|
946
946
|
m: !0
|
|
947
|
-
},
|
|
947
|
+
}, rt = {
|
|
948
948
|
type: ":",
|
|
949
949
|
m: !0
|
|
950
950
|
}, pr = {
|
|
@@ -961,7 +961,7 @@ var B, si = function(e) {
|
|
|
961
961
|
}, Ue = {
|
|
962
962
|
Cb: !0,
|
|
963
963
|
m: !0
|
|
964
|
-
},
|
|
964
|
+
}, Ro = {
|
|
965
965
|
cc: !0,
|
|
966
966
|
prefix: !0,
|
|
967
967
|
$b: !0
|
|
@@ -974,7 +974,7 @@ var B, si = function(e) {
|
|
|
974
974
|
}, yr = {
|
|
975
975
|
L: 2,
|
|
976
976
|
m: !0
|
|
977
|
-
},
|
|
977
|
+
}, Ao = {
|
|
978
978
|
L: 3,
|
|
979
979
|
m: !0
|
|
980
980
|
}, $o = {
|
|
@@ -989,17 +989,17 @@ var B, si = function(e) {
|
|
|
989
989
|
}, jo = {
|
|
990
990
|
L: 7,
|
|
991
991
|
m: !0
|
|
992
|
-
},
|
|
992
|
+
}, No = {
|
|
993
993
|
L: 8,
|
|
994
994
|
m: !0
|
|
995
|
-
},
|
|
995
|
+
}, Bo = {
|
|
996
996
|
L: 9,
|
|
997
997
|
prefix: !0,
|
|
998
998
|
m: !0
|
|
999
999
|
}, Uo = {
|
|
1000
1000
|
L: 10,
|
|
1001
1001
|
m: !0
|
|
1002
|
-
},
|
|
1002
|
+
}, Vo = o("class enum extends super const export import"), vr = o("implements interface let package private protected public static yield"), xt = o("eval arguments"), Do = 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"), Fo = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, br = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Wo = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), Rt = /[\n\r\u2028\u2029]/, At = /\r\n|[\n\r\u2028\u2029]/g, Me, on = {
|
|
1003
1003
|
kind: "loop"
|
|
1004
1004
|
}, Lo = {
|
|
1005
1005
|
kind: "switch"
|
|
@@ -1007,7 +1007,7 @@ var B, si = function(e) {
|
|
|
1007
1007
|
}, hn = hn = typeof globalThis > "u" ? void 0 : globalThis;
|
|
1008
1008
|
si(hn.j || (hn.j = {}));
|
|
1009
1009
|
function h(e, t) {
|
|
1010
|
-
typeof e == "string" && (e =
|
|
1010
|
+
typeof e == "string" && (e = Ge(e, "code"));
|
|
1011
1011
|
var n = e.constructor;
|
|
1012
1012
|
this.ya = function() {
|
|
1013
1013
|
return new n({
|
|
@@ -1021,7 +1021,7 @@ function h(e, t) {
|
|
|
1021
1021
|
var i, s;
|
|
1022
1022
|
for (s in this)
|
|
1023
1023
|
typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this));
|
|
1024
|
-
this.N = gn(this, this.ra, null), this.Na = this.N.object, this.ra =
|
|
1024
|
+
this.N = gn(this, this.ra, null), this.Na = this.N.object, this.ra = Ge(this.ba.join(`
|
|
1025
1025
|
`), "polyfills"), this.ba = void 0, Ut(this.ra), i = new C(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new C(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
1026
1026
|
}
|
|
1027
1027
|
var kr = {
|
|
@@ -1039,7 +1039,7 @@ var kr = {
|
|
|
1039
1039
|
configurable: !0,
|
|
1040
1040
|
enumerable: !1,
|
|
1041
1041
|
writable: !1
|
|
1042
|
-
},
|
|
1042
|
+
}, it = {
|
|
1043
1043
|
configurable: !1,
|
|
1044
1044
|
enumerable: !1,
|
|
1045
1045
|
writable: !1
|
|
@@ -1049,18 +1049,18 @@ var kr = {
|
|
|
1049
1049
|
writable: !0
|
|
1050
1050
|
}, Hr = {
|
|
1051
1051
|
STEP_ERROR: !0
|
|
1052
|
-
},
|
|
1052
|
+
}, _e = {
|
|
1053
1053
|
SCOPE_REFERENCE: !0
|
|
1054
1054
|
}, mt = {
|
|
1055
1055
|
VALUE_IN_DESCRIPTOR: !0
|
|
1056
1056
|
}, Ke = {
|
|
1057
1057
|
REGEXP_TIMEOUT: !0
|
|
1058
|
-
}, Cr = [], we = null,
|
|
1058
|
+
}, Cr = [], we = null, pt = null, Oe = typeof globalThis > "u" ? void 0 : globalThis, ai = ["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();", "};"];
|
|
1059
1059
|
function wn(e) {
|
|
1060
1060
|
var t = e >>> 0;
|
|
1061
1061
|
return t === Number(e) ? t : NaN;
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function dt(e) {
|
|
1064
1064
|
var t = e >>> 0;
|
|
1065
1065
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
1066
1066
|
}
|
|
@@ -1075,26 +1075,26 @@ function Ut(e, t, n) {
|
|
|
1075
1075
|
h.prototype.REGEXP_MODE = 2;
|
|
1076
1076
|
h.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
1077
1077
|
h.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
function
|
|
1078
|
+
N = h.prototype;
|
|
1079
|
+
N.P = !1;
|
|
1080
|
+
N.Ka = !1;
|
|
1081
|
+
N.Kb = 0;
|
|
1082
|
+
N.ic = 0;
|
|
1083
|
+
function Ge(e, t) {
|
|
1084
1084
|
var n = {}, r;
|
|
1085
1085
|
for (r in kr)
|
|
1086
1086
|
n[r] = kr[r];
|
|
1087
1087
|
return n.sourceFile = t, Oe.j.parse(e, n);
|
|
1088
1088
|
}
|
|
1089
|
-
|
|
1089
|
+
N.Jb = function(e) {
|
|
1090
1090
|
var t = this.o[0];
|
|
1091
1091
|
if (!t || t.node.type !== "Program")
|
|
1092
1092
|
throw Error("Expecting original AST to start with a Program node");
|
|
1093
|
-
if (typeof e == "string" && (e =
|
|
1093
|
+
if (typeof e == "string" && (e = Ge(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
1094
1094
|
throw Error("Expecting new AST to start with a Program node");
|
|
1095
1095
|
gt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
1096
1096
|
};
|
|
1097
|
-
|
|
1097
|
+
N.lb = function() {
|
|
1098
1098
|
var e = this.o, t;
|
|
1099
1099
|
do {
|
|
1100
1100
|
var n = e[e.length - 1];
|
|
@@ -1114,15 +1114,15 @@ B.lb = function() {
|
|
|
1114
1114
|
break;
|
|
1115
1115
|
}
|
|
1116
1116
|
r = n.node;
|
|
1117
|
-
var o =
|
|
1118
|
-
|
|
1117
|
+
var o = pt;
|
|
1118
|
+
pt = this;
|
|
1119
1119
|
try {
|
|
1120
1120
|
var i = this.rb[r.type](e, n, r);
|
|
1121
1121
|
} catch (s) {
|
|
1122
1122
|
if (s !== Hr)
|
|
1123
1123
|
throw this.value !== s && (this.value = void 0), s;
|
|
1124
1124
|
} finally {
|
|
1125
|
-
|
|
1125
|
+
pt = o;
|
|
1126
1126
|
}
|
|
1127
1127
|
if (i && e.push(i), this.P)
|
|
1128
1128
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -1132,13 +1132,13 @@ B.lb = function() {
|
|
|
1132
1132
|
} while (!r.end && t > Date.now());
|
|
1133
1133
|
return !0;
|
|
1134
1134
|
};
|
|
1135
|
-
|
|
1135
|
+
N.Eb = function() {
|
|
1136
1136
|
for (; !this.za && this.lb(); )
|
|
1137
1137
|
;
|
|
1138
1138
|
return this.za;
|
|
1139
1139
|
};
|
|
1140
1140
|
function li(e, t) {
|
|
1141
|
-
e.g(t, "NaN", NaN,
|
|
1141
|
+
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, Cn), e.g(t, "this", t, it), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), ui(e, t), ci(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), pi(e, t), di(e, t), fi(e, t), hi(e, t), mi(e, t), gi(e, t), yi(e, t), vi(e, t), bi(e, t);
|
|
1142
1142
|
var n = e.i(function() {
|
|
1143
1143
|
throw EvalError("Can't happen");
|
|
1144
1144
|
}, !1);
|
|
@@ -1163,7 +1163,7 @@ function li(e, t) {
|
|
|
1163
1163
|
Er(e, i);
|
|
1164
1164
|
}, e.g(t, "clearInterval", e.i(n, !1), S), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1165
1165
|
}
|
|
1166
|
-
|
|
1166
|
+
N.Wb = 0;
|
|
1167
1167
|
function ui(e, t) {
|
|
1168
1168
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1169
1169
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1176,7 +1176,7 @@ function ui(e, t) {
|
|
|
1176
1176
|
s = s.join(", ");
|
|
1177
1177
|
}
|
|
1178
1178
|
try {
|
|
1179
|
-
var m =
|
|
1179
|
+
var m = Ge("(function(" + s + ") {" + i + "})", "function" + e.Wb++);
|
|
1180
1180
|
} catch (b) {
|
|
1181
1181
|
w(e, e.T, "Invalid code: " + b.message);
|
|
1182
1182
|
}
|
|
@@ -1245,7 +1245,7 @@ function ci(e, t) {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
function pi(e, t) {
|
|
1247
1247
|
var n = function(r) {
|
|
1248
|
-
var o = xe(e) ? this :
|
|
1248
|
+
var o = xe(e) ? this : qe(e), i = arguments[0];
|
|
1249
1249
|
if (arguments.length === 1 && typeof i == "number")
|
|
1250
1250
|
isNaN(wn(i)) && w(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1251
1251
|
else {
|
|
@@ -1278,15 +1278,15 @@ function di(e, t) {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
}, J(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1280
1280
|
var s = String(this);
|
|
1281
|
-
if (o = o ? Number(o) : void 0, Y(e, r, e.I) && (r = r.data,
|
|
1281
|
+
if (o = o ? Number(o) : void 0, Y(e, r, e.I) && (r = r.data, at(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1282
1282
|
if (we)
|
|
1283
|
-
r =
|
|
1283
|
+
r = st(e, "string.split(separator, limit)", {
|
|
1284
1284
|
string: s,
|
|
1285
1285
|
separator: r,
|
|
1286
1286
|
limit: o
|
|
1287
1287
|
}, r, i), r !== Ke && i(Ce(e, r));
|
|
1288
1288
|
else {
|
|
1289
|
-
var u = e.ha(), p =
|
|
1289
|
+
var u = e.ha(), p = lt(e, r, u, i);
|
|
1290
1290
|
u.onmessage = function(m) {
|
|
1291
1291
|
clearTimeout(p), i(Ce(e, m.data));
|
|
1292
1292
|
}, u.postMessage(["split", s, r, o]);
|
|
@@ -1294,49 +1294,49 @@ function di(e, t) {
|
|
|
1294
1294
|
return;
|
|
1295
1295
|
}
|
|
1296
1296
|
r = s.split(r, o), i(Ce(e, r));
|
|
1297
|
-
},
|
|
1297
|
+
}, ut(e, e.J, "split", n), n = function(r, o) {
|
|
1298
1298
|
var i = String(this);
|
|
1299
|
-
if (r = Y(e, r, e.I) ? r.data : new RegExp(r),
|
|
1299
|
+
if (r = Y(e, r, e.I) ? r.data : new RegExp(r), at(e, r, o), e.REGEXP_MODE === 2)
|
|
1300
1300
|
if (we)
|
|
1301
|
-
r =
|
|
1301
|
+
r = st(e, "string.match(regexp)", {
|
|
1302
1302
|
string: i,
|
|
1303
1303
|
regexp: r
|
|
1304
1304
|
}, r, o), r !== Ke && o(r && Ce(e, r));
|
|
1305
1305
|
else {
|
|
1306
|
-
var s = e.ha(), u =
|
|
1306
|
+
var s = e.ha(), u = lt(e, r, s, o);
|
|
1307
1307
|
s.onmessage = function(p) {
|
|
1308
1308
|
clearTimeout(u), o(p.data && Ce(e, p.data));
|
|
1309
1309
|
}, s.postMessage(["match", i, r]);
|
|
1310
1310
|
}
|
|
1311
1311
|
else
|
|
1312
1312
|
r = i.match(r), o(r && Ce(e, r));
|
|
1313
|
-
},
|
|
1313
|
+
}, ut(e, e.J, "match", n), n = function(r, o) {
|
|
1314
1314
|
var i = String(this);
|
|
1315
|
-
if (Y(e, r, e.I) ? r = r.data : r = new RegExp(r),
|
|
1315
|
+
if (Y(e, r, e.I) ? r = r.data : r = new RegExp(r), at(e, r, o), e.REGEXP_MODE === 2)
|
|
1316
1316
|
if (we)
|
|
1317
|
-
r =
|
|
1317
|
+
r = st(e, "string.search(regexp)", {
|
|
1318
1318
|
string: i,
|
|
1319
1319
|
regexp: r
|
|
1320
1320
|
}, r, o), r !== Ke && o(r);
|
|
1321
1321
|
else {
|
|
1322
|
-
var s = e.ha(), u =
|
|
1322
|
+
var s = e.ha(), u = lt(e, r, s, o);
|
|
1323
1323
|
s.onmessage = function(p) {
|
|
1324
1324
|
clearTimeout(u), o(p.data);
|
|
1325
1325
|
}, s.postMessage(["search", i, r]);
|
|
1326
1326
|
}
|
|
1327
1327
|
else
|
|
1328
1328
|
o(i.search(r));
|
|
1329
|
-
},
|
|
1329
|
+
}, ut(e, e.J, "search", n), n = function(r, o, i) {
|
|
1330
1330
|
var s = String(this);
|
|
1331
|
-
if (o = String(o), Y(e, r, e.I) && (r = r.data,
|
|
1331
|
+
if (o = String(o), Y(e, r, e.I) && (r = r.data, at(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1332
1332
|
if (we)
|
|
1333
|
-
r =
|
|
1333
|
+
r = st(e, "string.replace(substr, newSubstr)", {
|
|
1334
1334
|
string: s,
|
|
1335
1335
|
substr: r,
|
|
1336
1336
|
newSubstr: o
|
|
1337
1337
|
}, r, i), r !== Ke && i(r);
|
|
1338
1338
|
else {
|
|
1339
|
-
var u = e.ha(), p =
|
|
1339
|
+
var u = e.ha(), p = lt(e, r, u, i);
|
|
1340
1340
|
u.onmessage = function(m) {
|
|
1341
1341
|
clearTimeout(p), i(m.data);
|
|
1342
1342
|
}, u.postMessage(["replace", s, r, o]);
|
|
@@ -1344,7 +1344,7 @@ function di(e, t) {
|
|
|
1344
1344
|
return;
|
|
1345
1345
|
}
|
|
1346
1346
|
i(s.replace(r, o));
|
|
1347
|
-
},
|
|
1347
|
+
}, ut(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1348
1348
|
}
|
|
1349
1349
|
function fi(e, t) {
|
|
1350
1350
|
e.mb = e.i(function(n) {
|
|
@@ -1356,7 +1356,7 @@ function hi(e, t) {
|
|
|
1356
1356
|
return r = arguments.length ? Oe.Number(r) : 0, xe(e) ? (this.data = r, this) : r;
|
|
1357
1357
|
};
|
|
1358
1358
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, S), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1359
|
-
e.g(e.aa, t[n], Number[t[n]],
|
|
1359
|
+
e.g(e.aa, t[n], Number[t[n]], it);
|
|
1360
1360
|
n = function(r) {
|
|
1361
1361
|
try {
|
|
1362
1362
|
return Number(this).toExponential(r);
|
|
@@ -1435,21 +1435,21 @@ function gi(e, t) {
|
|
|
1435
1435
|
return null;
|
|
1436
1436
|
}
|
|
1437
1437
|
var s = this.data;
|
|
1438
|
-
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1438
|
+
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), at(e, s, o), e.REGEXP_MODE === 2)
|
|
1439
1439
|
if (we)
|
|
1440
|
-
r =
|
|
1440
|
+
r = st(e, "regexp.exec(string)", {
|
|
1441
1441
|
string: r,
|
|
1442
1442
|
regexp: s
|
|
1443
1443
|
}, s, o), r !== Ke && (e.g(this, "lastIndex", s.lastIndex), o(i(r)));
|
|
1444
1444
|
else {
|
|
1445
|
-
var u = e.ha(), p =
|
|
1445
|
+
var u = e.ha(), p = lt(e, s, u, o), m = this;
|
|
1446
1446
|
u.onmessage = function(b) {
|
|
1447
1447
|
clearTimeout(p), e.g(m, "lastIndex", b.data[1]), o(i(b.data[0]));
|
|
1448
1448
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1449
1449
|
}
|
|
1450
1450
|
else
|
|
1451
1451
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
|
|
1452
|
-
},
|
|
1452
|
+
}, ut(e, e.I, "exec", n);
|
|
1453
1453
|
}
|
|
1454
1454
|
function yi(e, t) {
|
|
1455
1455
|
function n(r) {
|
|
@@ -1526,14 +1526,14 @@ function mn(e, t, n) {
|
|
|
1526
1526
|
}
|
|
1527
1527
|
e.g(t, "stack", i.trim(), S);
|
|
1528
1528
|
}
|
|
1529
|
-
|
|
1529
|
+
N.ha = function() {
|
|
1530
1530
|
var e = this.ha.Mb;
|
|
1531
1531
|
return e || (e = new Blob([ai.join(`
|
|
1532
1532
|
`)], {
|
|
1533
1533
|
type: "application/javascript"
|
|
1534
1534
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1535
1535
|
};
|
|
1536
|
-
function
|
|
1536
|
+
function st(e, t, n, r, o) {
|
|
1537
1537
|
var i = {
|
|
1538
1538
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1539
1539
|
};
|
|
@@ -1544,7 +1544,7 @@ function it(e, t, n, r, o) {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
return Ke;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function at(e, t, n) {
|
|
1548
1548
|
if (e.REGEXP_MODE === 0)
|
|
1549
1549
|
var r = !1;
|
|
1550
1550
|
else if (e.REGEXP_MODE === 1)
|
|
@@ -1563,7 +1563,7 @@ function st(e, t, n) {
|
|
|
1563
1563
|
r = !1;
|
|
1564
1564
|
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1566
|
+
function lt(e, t, n, r) {
|
|
1567
1567
|
return setTimeout(function() {
|
|
1568
1568
|
n.terminate(), r(null);
|
|
1569
1569
|
try {
|
|
@@ -1572,15 +1572,15 @@ function at(e, t, n, r) {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1574
1574
|
}
|
|
1575
|
-
|
|
1575
|
+
N.Aa = function(e) {
|
|
1576
1576
|
return this.s(e && e.h.prototype);
|
|
1577
1577
|
};
|
|
1578
|
-
|
|
1578
|
+
N.s = function(e) {
|
|
1579
1579
|
if (typeof e != "object")
|
|
1580
1580
|
throw Error("Non object prototype");
|
|
1581
1581
|
return e = new P(e), Y(this, e, this.D) && (e.H = "Error"), e;
|
|
1582
1582
|
};
|
|
1583
|
-
function
|
|
1583
|
+
function qe(e) {
|
|
1584
1584
|
var t = e.s(e.La);
|
|
1585
1585
|
return e.g(t, "length", 0, {
|
|
1586
1586
|
configurable: !1,
|
|
@@ -1596,14 +1596,14 @@ function In(e, t, n, r) {
|
|
|
1596
1596
|
var o = Tn(e, t.oa.length, !0);
|
|
1597
1597
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", ne), o;
|
|
1598
1598
|
}
|
|
1599
|
-
|
|
1599
|
+
N.i = function(e, t) {
|
|
1600
1600
|
return t = Tn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ne), t;
|
|
1601
1601
|
};
|
|
1602
|
-
|
|
1602
|
+
N.ub = function(e) {
|
|
1603
1603
|
var t = Tn(this, e.length, !0);
|
|
1604
1604
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ne), t;
|
|
1605
1605
|
};
|
|
1606
|
-
|
|
1606
|
+
N.Ia = function(e) {
|
|
1607
1607
|
if (e instanceof P)
|
|
1608
1608
|
throw Error("Object is already pseudo");
|
|
1609
1609
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
@@ -1624,7 +1624,7 @@ B.Ia = function(e) {
|
|
|
1624
1624
|
}, !!t);
|
|
1625
1625
|
}
|
|
1626
1626
|
if (Array.isArray(e)) {
|
|
1627
|
-
t =
|
|
1627
|
+
t = qe(this);
|
|
1628
1628
|
for (var r = 0; r < e.length; r++)
|
|
1629
1629
|
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1630
1630
|
return t;
|
|
@@ -1634,7 +1634,7 @@ B.Ia = function(e) {
|
|
|
1634
1634
|
this.g(t, r, this.Ia(e[r]));
|
|
1635
1635
|
return t;
|
|
1636
1636
|
};
|
|
1637
|
-
|
|
1637
|
+
N.R = function(e, t) {
|
|
1638
1638
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1639
1639
|
return e;
|
|
1640
1640
|
if (!(e instanceof P))
|
|
@@ -1653,7 +1653,7 @@ B.R = function(e, t) {
|
|
|
1653
1653
|
if (t.hb.push(e), Y(this, e, this.qa)) {
|
|
1654
1654
|
n = [], t.Sa.push(n);
|
|
1655
1655
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1656
|
-
|
|
1656
|
+
Vt(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1657
1657
|
} else
|
|
1658
1658
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1659
1659
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1665,7 +1665,7 @@ B.R = function(e, t) {
|
|
|
1665
1665
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1666
1666
|
};
|
|
1667
1667
|
function Ce(e, t) {
|
|
1668
|
-
for (var n =
|
|
1668
|
+
for (var n = qe(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1669
1669
|
e.g(n, r[o], t[r[o]]);
|
|
1670
1670
|
return n;
|
|
1671
1671
|
}
|
|
@@ -1686,7 +1686,7 @@ function Te(e, t) {
|
|
|
1686
1686
|
}
|
|
1687
1687
|
return t ? t.xa : null;
|
|
1688
1688
|
}
|
|
1689
|
-
|
|
1689
|
+
N.G = function(e, t) {
|
|
1690
1690
|
if (this.P)
|
|
1691
1691
|
throw Error("Getter not supported in that context");
|
|
1692
1692
|
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
@@ -1695,7 +1695,7 @@ B.G = function(e, t) {
|
|
|
1695
1695
|
if (Y(this, e, this.J))
|
|
1696
1696
|
return String(e).length;
|
|
1697
1697
|
} else if (64 > t.charCodeAt(0) && Y(this, e, this.J)) {
|
|
1698
|
-
var n =
|
|
1698
|
+
var n = dt(t);
|
|
1699
1699
|
if (!isNaN(n) && n < String(e).length)
|
|
1700
1700
|
return String(e)[n];
|
|
1701
1701
|
}
|
|
@@ -1704,13 +1704,13 @@ B.G = function(e, t) {
|
|
|
1704
1704
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1705
1705
|
while (e = Te(this, e));
|
|
1706
1706
|
};
|
|
1707
|
-
function
|
|
1707
|
+
function Vt(e, t, n) {
|
|
1708
1708
|
if (!(t instanceof P))
|
|
1709
1709
|
throw TypeError("Primitive data type has no properties");
|
|
1710
1710
|
if (n = String(n), n === "length" && Y(e, t, e.J))
|
|
1711
1711
|
return !0;
|
|
1712
1712
|
if (Y(e, t, e.J)) {
|
|
1713
|
-
var r =
|
|
1713
|
+
var r = dt(n);
|
|
1714
1714
|
if (!isNaN(r) && r < String(t).length)
|
|
1715
1715
|
return !0;
|
|
1716
1716
|
}
|
|
@@ -1720,7 +1720,7 @@ function Dt(e, t, n) {
|
|
|
1720
1720
|
while (t = Te(e, t));
|
|
1721
1721
|
return !1;
|
|
1722
1722
|
}
|
|
1723
|
-
|
|
1723
|
+
N.g = function(e, t, n, r) {
|
|
1724
1724
|
if (this.Ka)
|
|
1725
1725
|
throw Error("Setter not supported in that context");
|
|
1726
1726
|
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
@@ -1729,7 +1729,7 @@ B.g = function(e, t, n, r) {
|
|
|
1729
1729
|
var o = !this.o || xn(this).S;
|
|
1730
1730
|
if (e instanceof P) {
|
|
1731
1731
|
if (Y(this, e, this.J)) {
|
|
1732
|
-
var i =
|
|
1732
|
+
var i = dt(t);
|
|
1733
1733
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1734
1734
|
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1735
1735
|
return;
|
|
@@ -1744,11 +1744,11 @@ B.g = function(e, t, n, r) {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
if (n = wn(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < i)
|
|
1746
1746
|
for (s in e.h) {
|
|
1747
|
-
var s =
|
|
1747
|
+
var s = dt(s);
|
|
1748
1748
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
1749
1749
|
}
|
|
1750
1750
|
} else
|
|
1751
|
-
isNaN(s =
|
|
1751
|
+
isNaN(s = dt(t)) || (e.h.length = Math.max(i, s + 1));
|
|
1752
1752
|
if (!e.preventExtensions || t in e.h)
|
|
1753
1753
|
if (r) {
|
|
1754
1754
|
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== mt && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
@@ -1782,16 +1782,16 @@ B.g = function(e, t, n, r) {
|
|
|
1782
1782
|
} else
|
|
1783
1783
|
o && w(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1784
1784
|
};
|
|
1785
|
-
|
|
1785
|
+
N.g.ac = function() {
|
|
1786
1786
|
throw Error("Placeholder getter");
|
|
1787
1787
|
};
|
|
1788
|
-
|
|
1788
|
+
N.g.bc = function() {
|
|
1789
1789
|
throw Error("Placeholder setter");
|
|
1790
1790
|
};
|
|
1791
1791
|
function J(e, t, n, r) {
|
|
1792
1792
|
e.g(t.h.prototype, n, e.i(r, !1), S);
|
|
1793
1793
|
}
|
|
1794
|
-
function
|
|
1794
|
+
function ut(e, t, n, r) {
|
|
1795
1795
|
e.g(t.h.prototype, n, e.ub(r), S);
|
|
1796
1796
|
}
|
|
1797
1797
|
function xn(e) {
|
|
@@ -1809,18 +1809,18 @@ function gn(e, t, n) {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
return o = e.s(null), r = new qr(n, r, o), n || li(e, r.object), gt(e, t, r), r;
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function Rn(e, t, n) {
|
|
1813
1813
|
if (!t)
|
|
1814
1814
|
throw Error("parentScope required");
|
|
1815
1815
|
return e = n || e.s(null), new qr(t, t.S, e);
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function An(e, t) {
|
|
1818
1818
|
for (var n = xn(e); n && n !== e.N; ) {
|
|
1819
1819
|
if (t in n.object.h)
|
|
1820
1820
|
return n.object.h[t];
|
|
1821
1821
|
n = n.Va;
|
|
1822
1822
|
}
|
|
1823
|
-
if (n === e.N &&
|
|
1823
|
+
if (n === e.N && Vt(e, n.object, t))
|
|
1824
1824
|
return e.G(n.object, t);
|
|
1825
1825
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1826
1826
|
}
|
|
@@ -1836,7 +1836,7 @@ function zr(e, t, n) {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
r = r.Va;
|
|
1838
1838
|
}
|
|
1839
|
-
if (r === e.N && (!o ||
|
|
1839
|
+
if (r === e.N && (!o || Vt(e, r.object, t)))
|
|
1840
1840
|
return e.g(r.object, t, n);
|
|
1841
1841
|
w(e, e.pb, t + " is not defined");
|
|
1842
1842
|
}
|
|
@@ -1893,10 +1893,10 @@ function xe(e) {
|
|
|
1893
1893
|
return e.o[e.o.length - 1].isConstructor;
|
|
1894
1894
|
}
|
|
1895
1895
|
function $n(e, t) {
|
|
1896
|
-
return t[0] ===
|
|
1896
|
+
return t[0] === _e ? An(e, t[1]) : e.G(t[0], t[1]);
|
|
1897
1897
|
}
|
|
1898
1898
|
function Pn(e, t, n) {
|
|
1899
|
-
return t[0] ===
|
|
1899
|
+
return t[0] === _e ? zr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1900
1900
|
}
|
|
1901
1901
|
function w(e, t, n) {
|
|
1902
1902
|
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), mn(e, t, n)), vt(e, 4, t), Hr) : n === void 0 ? t : n;
|
|
@@ -1986,7 +1986,7 @@ function wr(e, t, n) {
|
|
|
1986
1986
|
s.type = "CallExpression", r = r.scope;
|
|
1987
1987
|
} else {
|
|
1988
1988
|
try {
|
|
1989
|
-
var p =
|
|
1989
|
+
var p = Ge(String(i), "taskCode" + e.ic++);
|
|
1990
1990
|
} catch (m) {
|
|
1991
1991
|
w(e, e.T, "Invalid code: " + m.message);
|
|
1992
1992
|
}
|
|
@@ -2023,13 +2023,13 @@ function On(e, t, n, r) {
|
|
|
2023
2023
|
function an(e, t) {
|
|
2024
2024
|
return t == null ? e.Na : t instanceof P ? t : (e = e.s(Te(e, t)), e.data = t, e);
|
|
2025
2025
|
}
|
|
2026
|
-
|
|
2026
|
+
N.Xb = function() {
|
|
2027
2027
|
return this.N;
|
|
2028
2028
|
};
|
|
2029
|
-
|
|
2029
|
+
N.Yb = function() {
|
|
2030
2030
|
return this.o;
|
|
2031
2031
|
};
|
|
2032
|
-
|
|
2032
|
+
N.ec = function(e) {
|
|
2033
2033
|
this.o = e;
|
|
2034
2034
|
};
|
|
2035
2035
|
function C(e, t) {
|
|
@@ -2041,12 +2041,12 @@ function qr(e, t, n) {
|
|
|
2041
2041
|
function P(e) {
|
|
2042
2042
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
2043
2043
|
}
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
if (!
|
|
2044
|
+
N = P.prototype;
|
|
2045
|
+
N.xa = null;
|
|
2046
|
+
N.H = "Object";
|
|
2047
|
+
N.data = null;
|
|
2048
|
+
N.toString = function() {
|
|
2049
|
+
if (!pt)
|
|
2050
2050
|
return "[object Interpreter.Object]";
|
|
2051
2051
|
if (!(this instanceof P))
|
|
2052
2052
|
return String(this);
|
|
@@ -2093,8 +2093,8 @@ B.toString = function() {
|
|
|
2093
2093
|
}
|
|
2094
2094
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
2095
2095
|
};
|
|
2096
|
-
|
|
2097
|
-
return !
|
|
2096
|
+
N.valueOf = function() {
|
|
2097
|
+
return !pt || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2098
2098
|
};
|
|
2099
2099
|
function ki(e, t, n, r, o) {
|
|
2100
2100
|
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Si, this.time = 0;
|
|
@@ -2103,7 +2103,7 @@ var Si = 0;
|
|
|
2103
2103
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
2104
2104
|
n = n.elements;
|
|
2105
2105
|
var r = t.A || 0;
|
|
2106
|
-
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa =
|
|
2106
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = qe(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
2107
2107
|
if (n[r])
|
|
2108
2108
|
return t.A = r, new C(n[r], t.scope);
|
|
2109
2109
|
r++;
|
|
@@ -2230,7 +2230,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2230
2230
|
n = r >>> t;
|
|
2231
2231
|
break;
|
|
2232
2232
|
case "in":
|
|
2233
|
-
t instanceof P || w(this, this.j, "'in' expects an object, not '" + t + "'"), n =
|
|
2233
|
+
t instanceof P || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = Vt(this, t, r);
|
|
2234
2234
|
break;
|
|
2235
2235
|
case "instanceof":
|
|
2236
2236
|
Y(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof P ? Y(this, r, t) : !1;
|
|
@@ -2260,7 +2260,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2260
2260
|
t.ia = 2;
|
|
2261
2261
|
var o = t.value;
|
|
2262
2262
|
if (Array.isArray(o)) {
|
|
2263
|
-
if (t.U = $n(this, o), o[0] ===
|
|
2263
|
+
if (t.U = $n(this, o), o[0] === _e ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2264
2264
|
return t.ia = 1, bt(this, o, t.value);
|
|
2265
2265
|
} else
|
|
2266
2266
|
t.U = o;
|
|
@@ -2271,7 +2271,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2271
2271
|
return new C(n.arguments[t.A++], t.scope);
|
|
2272
2272
|
if (n.type === "NewExpression") {
|
|
2273
2273
|
if (o instanceof P && !o.Ab || w(this, this.j, te(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2274
|
-
t.B =
|
|
2274
|
+
t.B = qe(this);
|
|
2275
2275
|
else {
|
|
2276
2276
|
var i = o.h.prototype;
|
|
2277
2277
|
(typeof i != "object" || i === null) && (i = this.M), t.B = this.s(i);
|
|
@@ -2284,7 +2284,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2284
2284
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2285
2285
|
else {
|
|
2286
2286
|
if (t.eb = !0, o instanceof P || w(this, this.j, te(this, n.callee) + " is not a function"), e = o.node) {
|
|
2287
|
-
for (n = gn(this, e.body, o.Va), r =
|
|
2287
|
+
for (n = gn(this, e.body, o.Va), r = qe(this), o = 0; o < t.F.length; o++)
|
|
2288
2288
|
this.g(r, o, t.F[o]);
|
|
2289
2289
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2290
2290
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
@@ -2295,7 +2295,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2295
2295
|
t.value = o;
|
|
2296
2296
|
else {
|
|
2297
2297
|
try {
|
|
2298
|
-
r =
|
|
2298
|
+
r = Ge(String(o), "eval" + this.Hb++);
|
|
2299
2299
|
} catch (u) {
|
|
2300
2300
|
w(this, this.T, "Invalid code: " + u.message);
|
|
2301
2301
|
}
|
|
@@ -2385,7 +2385,7 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2385
2385
|
}
|
|
2386
2386
|
if (!t.wb)
|
|
2387
2387
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2388
|
-
t.pa = [
|
|
2388
|
+
t.pa = [_e, e.fa[0].id.name];
|
|
2389
2389
|
else
|
|
2390
2390
|
return t.pa = null, t = new C(e, t.scope), t.sa = !0, t;
|
|
2391
2391
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = Pn(this, t.pa, e)))
|
|
@@ -2418,13 +2418,13 @@ h.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2418
2418
|
e.pop();
|
|
2419
2419
|
};
|
|
2420
2420
|
h.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2421
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2421
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = Rn(this, e)), t.value = In(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Cn);
|
|
2422
2422
|
};
|
|
2423
2423
|
h.prototype.stepIdentifier = function(e, t, n) {
|
|
2424
2424
|
if (e.pop(), t.sa)
|
|
2425
|
-
e[e.length - 1].value = [
|
|
2425
|
+
e[e.length - 1].value = [_e, n.name];
|
|
2426
2426
|
else {
|
|
2427
|
-
if (t =
|
|
2427
|
+
if (t = An(this, n.name), this.P)
|
|
2428
2428
|
return bt(this, t, this.Na);
|
|
2429
2429
|
e[e.length - 1].value = t;
|
|
2430
2430
|
}
|
|
@@ -2537,7 +2537,7 @@ h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2537
2537
|
}
|
|
2538
2538
|
};
|
|
2539
2539
|
h.prototype.stepThisExpression = function(e) {
|
|
2540
|
-
e.pop(), e[e.length - 1].value =
|
|
2540
|
+
e.pop(), e[e.length - 1].value = An(this, "this");
|
|
2541
2541
|
};
|
|
2542
2542
|
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2543
2543
|
if (t.ka)
|
|
@@ -2549,7 +2549,7 @@ h.prototype.stepTryStatement = function(e, t, n) {
|
|
|
2549
2549
|
if (!t.Rb)
|
|
2550
2550
|
return t.Rb = !0, new C(n.block, t.scope);
|
|
2551
2551
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2552
|
-
return t.Tb = !0, e =
|
|
2552
|
+
return t.Tb = !0, e = Rn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new C(n.Ea.body, e);
|
|
2553
2553
|
if (!t.Sb && n.fb)
|
|
2554
2554
|
return t.Sb = !0, new C(n.fb, t.scope);
|
|
2555
2555
|
e.pop(), t.ea && vt(this, t.ea.type, t.ea.value, t.ea.label);
|
|
@@ -2575,7 +2575,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2575
2575
|
case "delete":
|
|
2576
2576
|
if (n = !0, Array.isArray(r)) {
|
|
2577
2577
|
var o = r[0];
|
|
2578
|
-
o ===
|
|
2578
|
+
o === _e && (o = t.scope), r = String(r[1]);
|
|
2579
2579
|
try {
|
|
2580
2580
|
delete o.h[r];
|
|
2581
2581
|
} catch {
|
|
@@ -2628,7 +2628,7 @@ h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2628
2628
|
e.pop();
|
|
2629
2629
|
};
|
|
2630
2630
|
h.prototype.stepWithStatement = function(e, t, n) {
|
|
2631
|
-
return t.Ca ? (e.pop(), e =
|
|
2631
|
+
return t.Ca ? (e.pop(), e = Rn(this, t.scope, t.value), new C(n.body, e)) : (t.Ca = !0, new C(n.object, t.scope));
|
|
2632
2632
|
};
|
|
2633
2633
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2634
2634
|
Oe.Interpreter = h;
|
|
@@ -2709,12 +2709,12 @@ function theFunction() {
|
|
|
2709
2709
|
}
|
|
2710
2710
|
theFunction();
|
|
2711
2711
|
`, g = function(O, Z) {
|
|
2712
|
-
p.forEach(([
|
|
2713
|
-
if (
|
|
2714
|
-
O.setProperty(Z,
|
|
2712
|
+
p.forEach(([Re, $]) => {
|
|
2713
|
+
if (Re === "state")
|
|
2714
|
+
O.setProperty(Z, Re, O.createConnectedObject($), O.READONLY_DESCRIPTOR);
|
|
2715
2715
|
else {
|
|
2716
2716
|
const F = JSON.stringify($);
|
|
2717
|
-
O.setProperty(Z, Tr(
|
|
2717
|
+
O.setProperty(Z, Tr(Re), F);
|
|
2718
2718
|
}
|
|
2719
2719
|
});
|
|
2720
2720
|
}, T = new h(v, g);
|
|
@@ -2732,11 +2732,11 @@ const Ii = ({
|
|
|
2732
2732
|
return !1;
|
|
2733
2733
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), r = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
2734
2734
|
return t && n && !r ? (e && ue.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2735
|
-
}, xi = (e) =>
|
|
2735
|
+
}, xi = (e) => G() || Ii({
|
|
2736
2736
|
shouldLogWarning: !0
|
|
2737
|
-
}) ? ii(e) : Ei(e),
|
|
2737
|
+
}) ? ii(e) : Ei(e), Ri = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Ai = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, $i = (e) => {
|
|
2738
2738
|
var t, n, r, o, i, s;
|
|
2739
|
-
return ((r = (n = (t =
|
|
2739
|
+
return ((r = (n = (t = Ri.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : r.slice(1)) || ((s = (i = (o = Ai.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
2740
2740
|
};
|
|
2741
2741
|
function kt({
|
|
2742
2742
|
code: e,
|
|
@@ -2751,7 +2751,7 @@ function kt({
|
|
|
2751
2751
|
return;
|
|
2752
2752
|
const u = $i(e.trim());
|
|
2753
2753
|
if (u)
|
|
2754
|
-
return
|
|
2754
|
+
return Dr({
|
|
2755
2755
|
...r,
|
|
2756
2756
|
...n
|
|
2757
2757
|
}, u);
|
|
@@ -2823,7 +2823,7 @@ function jt(e, t, n = null, r = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
|
2823
2823
|
function _r(e) {
|
|
2824
2824
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
2825
2825
|
}
|
|
2826
|
-
function
|
|
2826
|
+
function Ni(e) {
|
|
2827
2827
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
2828
2828
|
return !1;
|
|
2829
2829
|
let t = !1;
|
|
@@ -2834,14 +2834,14 @@ function Bi(e) {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
}), t;
|
|
2836
2836
|
}
|
|
2837
|
-
function
|
|
2837
|
+
function Bi(e, t) {
|
|
2838
2838
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (jt(e, (n, r) => {
|
|
2839
2839
|
_r(n) && r(n[t] ?? void 0);
|
|
2840
2840
|
}), e);
|
|
2841
2841
|
}
|
|
2842
2842
|
function Ui(e, t) {
|
|
2843
2843
|
var n, r;
|
|
2844
|
-
return (n = e.component) != null && n.options &&
|
|
2844
|
+
return (n = e.component) != null && n.options && Ni((r = e.component) == null ? void 0 : r.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Bi(e.component.options, t ?? "Default")), e;
|
|
2845
2845
|
}
|
|
2846
2846
|
const jn = (e) => JSON.parse(JSON.stringify(e)), Jr = (e, t, n) => {
|
|
2847
2847
|
if (Object(e) !== e)
|
|
@@ -2861,8 +2861,8 @@ function yn(e) {
|
|
|
2861
2861
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = yn(e[n]));
|
|
2862
2862
|
return t;
|
|
2863
2863
|
}
|
|
2864
|
-
const
|
|
2865
|
-
if (
|
|
2864
|
+
const Vi = ["svelte", "vue", "angular", "qwik", "solid"].includes(re), Di = (e) => {
|
|
2865
|
+
if (Vi) {
|
|
2866
2866
|
const t = jn(e);
|
|
2867
2867
|
return {
|
|
2868
2868
|
...t,
|
|
@@ -2896,7 +2896,7 @@ const Di = ["svelte", "vue", "angular", "qwik", "solid"].includes(re), Vi = (e)
|
|
|
2896
2896
|
}) => {
|
|
2897
2897
|
if (!e.bindings)
|
|
2898
2898
|
return e;
|
|
2899
|
-
const i =
|
|
2899
|
+
const i = Di(e);
|
|
2900
2900
|
for (const s in e.bindings) {
|
|
2901
2901
|
const u = e.bindings[s], p = kt({
|
|
2902
2902
|
code: u,
|
|
@@ -2926,24 +2926,24 @@ function Wi({
|
|
|
2926
2926
|
});
|
|
2927
2927
|
}
|
|
2928
2928
|
function Xr(e) {
|
|
2929
|
-
const t = e || (
|
|
2929
|
+
const t = e || (G() ? window.location.search : void 0);
|
|
2930
2930
|
return t ? Wr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
2931
2931
|
}
|
|
2932
2932
|
const Li = (e) => ({
|
|
2933
2933
|
type: "builder.registerComponent",
|
|
2934
|
-
data:
|
|
2934
|
+
data: Nt(e)
|
|
2935
2935
|
}), Mi = (e) => {
|
|
2936
2936
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
2937
2937
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
2938
2938
|
};
|
|
2939
|
-
function
|
|
2939
|
+
function Nt(e) {
|
|
2940
2940
|
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Mi(n) : n));
|
|
2941
2941
|
}
|
|
2942
2942
|
const Ir = {};
|
|
2943
2943
|
function Hi(e, t) {
|
|
2944
|
-
e === "plugin" && (t =
|
|
2944
|
+
e === "plugin" && (t = Nt(t));
|
|
2945
2945
|
let n = Ir[e];
|
|
2946
|
-
if (n || (n = Ir[e] = []), n.push(t),
|
|
2946
|
+
if (n || (n = Ir[e] = []), n.push(t), G()) {
|
|
2947
2947
|
const r = {
|
|
2948
2948
|
type: "builder.register",
|
|
2949
2949
|
data: {
|
|
@@ -2959,8 +2959,8 @@ function Hi(e, t) {
|
|
|
2959
2959
|
}
|
|
2960
2960
|
}
|
|
2961
2961
|
const xr = {};
|
|
2962
|
-
function
|
|
2963
|
-
if (
|
|
2962
|
+
function ju(e) {
|
|
2963
|
+
if (G()) {
|
|
2964
2964
|
Object.assign(xr, e);
|
|
2965
2965
|
const t = {
|
|
2966
2966
|
type: "builder.settingsChange",
|
|
@@ -2969,22 +2969,22 @@ function Bu(e) {
|
|
|
2969
2969
|
parent.postMessage(t, "*");
|
|
2970
2970
|
}
|
|
2971
2971
|
}
|
|
2972
|
-
const
|
|
2972
|
+
const Rr = "builder.", Ki = "options.", Yr = (e) => {
|
|
2973
2973
|
if (!e)
|
|
2974
2974
|
return {};
|
|
2975
2975
|
const t = Fr(e), n = {};
|
|
2976
2976
|
return Object.keys(t).forEach((r) => {
|
|
2977
|
-
if (r.startsWith(
|
|
2978
|
-
const o = r.replace(
|
|
2977
|
+
if (r.startsWith(Rr)) {
|
|
2978
|
+
const o = r.replace(Rr, "").replace(Ki, "");
|
|
2979
2979
|
n[o] = t[r];
|
|
2980
2980
|
}
|
|
2981
2981
|
}), n;
|
|
2982
2982
|
}, zi = () => {
|
|
2983
|
-
if (!
|
|
2983
|
+
if (!G())
|
|
2984
2984
|
return {};
|
|
2985
2985
|
const e = new URLSearchParams(window.location.search);
|
|
2986
2986
|
return Yr(e);
|
|
2987
|
-
}, Zr = "
|
|
2987
|
+
}, Zr = "4.0.0", Qr = () => ({
|
|
2988
2988
|
"X-Builder-SDK": re,
|
|
2989
2989
|
"X-Builder-SDK-GEN": "2",
|
|
2990
2990
|
"X-Builder-SDK-Version": Zr
|
|
@@ -2993,7 +2993,7 @@ const Ar = "builder.", Ki = "options.", Yr = (e) => {
|
|
|
2993
2993
|
return e;
|
|
2994
2994
|
const t = e.split(".");
|
|
2995
2995
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
2996
|
-
},
|
|
2996
|
+
}, Nn = ({
|
|
2997
2997
|
name: e,
|
|
2998
2998
|
canTrack: t
|
|
2999
2999
|
}) => {
|
|
@@ -3004,14 +3004,14 @@ const Ar = "builder.", Ki = "options.", Yr = (e) => {
|
|
|
3004
3004
|
ue.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3005
3005
|
return;
|
|
3006
3006
|
}
|
|
3007
|
-
}, eo = async (e) =>
|
|
3007
|
+
}, eo = async (e) => Nn(e), qi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(je).join("; "), _i = [["secure", ""], ["SameSite", "None"]], Ji = ({
|
|
3008
3008
|
name: e,
|
|
3009
3009
|
value: t,
|
|
3010
3010
|
expires: n
|
|
3011
3011
|
}) => {
|
|
3012
|
-
const o = (
|
|
3012
|
+
const o = (G() ? location.protocol === "https:" : !0) ? _i : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Gi(window.location.hostname)], ...o];
|
|
3013
3013
|
return qi(s);
|
|
3014
|
-
},
|
|
3014
|
+
}, Bn = async ({
|
|
3015
3015
|
name: e,
|
|
3016
3016
|
value: t,
|
|
3017
3017
|
expires: n,
|
|
@@ -3060,11 +3060,11 @@ const no = "builderSessionId", Yi = async ({
|
|
|
3060
3060
|
}, Zi = () => to(), Qi = ({
|
|
3061
3061
|
id: e,
|
|
3062
3062
|
canTrack: t
|
|
3063
|
-
}) =>
|
|
3063
|
+
}) => Bn({
|
|
3064
3064
|
name: no,
|
|
3065
3065
|
value: e,
|
|
3066
3066
|
canTrack: t
|
|
3067
|
-
}), ro = () =>
|
|
3067
|
+
}), ro = () => G() && typeof localStorage < "u" ? localStorage : void 0, es = ({
|
|
3068
3068
|
key: e,
|
|
3069
3069
|
canTrack: t
|
|
3070
3070
|
}) => {
|
|
@@ -3162,7 +3162,7 @@ async function vn({
|
|
|
3162
3162
|
ue.error("Missing API key for track call. Please provide your API key.");
|
|
3163
3163
|
return;
|
|
3164
3164
|
}
|
|
3165
|
-
if (!t.canTrack || ie() || !(
|
|
3165
|
+
if (!t.canTrack || ie() || !(G() || re === "reactNative"))
|
|
3166
3166
|
return;
|
|
3167
3167
|
const r = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
3168
3168
|
return Un(r), fetch(r, {
|
|
@@ -3212,10 +3212,10 @@ const ls = () => {
|
|
|
3212
3212
|
}]
|
|
3213
3213
|
});
|
|
3214
3214
|
};
|
|
3215
|
-
let
|
|
3216
|
-
const so = (e
|
|
3215
|
+
let Ar = !1;
|
|
3216
|
+
const so = (e) => {
|
|
3217
3217
|
var t, n;
|
|
3218
|
-
|
|
3218
|
+
Ar || (Ar = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
3219
3219
|
type: "builder.sdkInfo",
|
|
3220
3220
|
data: {
|
|
3221
3221
|
target: re,
|
|
@@ -3225,6 +3225,9 @@ const so = (e = {}) => {
|
|
|
3225
3225
|
// scope our '+ add block' button styling
|
|
3226
3226
|
supportsAddBlockScoping: !0,
|
|
3227
3227
|
supportsCustomBreakpoints: !0,
|
|
3228
|
+
modelName: e.modelName,
|
|
3229
|
+
apiKey: e.apiKey,
|
|
3230
|
+
supportsXSmallBreakpoint: !0,
|
|
3228
3231
|
blockLevelPersonalization: !0
|
|
3229
3232
|
}
|
|
3230
3233
|
}, "*"), (n = window.parent) == null || n.postMessage({
|
|
@@ -3301,40 +3304,48 @@ const so = (e = {}) => {
|
|
|
3301
3304
|
break;
|
|
3302
3305
|
}
|
|
3303
3306
|
}
|
|
3304
|
-
},
|
|
3305
|
-
|
|
3307
|
+
}, Bu = ({
|
|
3308
|
+
model: e,
|
|
3309
|
+
apiKey: t,
|
|
3310
|
+
callback: n,
|
|
3311
|
+
trustedHosts: r
|
|
3312
|
+
}) => {
|
|
3313
|
+
if (!G)
|
|
3306
3314
|
return ue.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
3307
3315
|
};
|
|
3308
|
-
so(
|
|
3309
|
-
|
|
3316
|
+
so({
|
|
3317
|
+
modelName: e,
|
|
3318
|
+
apiKey: t
|
|
3319
|
+
});
|
|
3320
|
+
const o = ao({
|
|
3310
3321
|
callbacks: {
|
|
3311
|
-
contentUpdate:
|
|
3322
|
+
contentUpdate: n,
|
|
3312
3323
|
animation: () => {
|
|
3313
3324
|
},
|
|
3314
3325
|
configureSdk: () => {
|
|
3315
3326
|
}
|
|
3316
3327
|
},
|
|
3317
3328
|
model: e,
|
|
3318
|
-
trustedHosts:
|
|
3329
|
+
trustedHosts: r
|
|
3319
3330
|
});
|
|
3320
|
-
return window.addEventListener("message",
|
|
3321
|
-
window.removeEventListener("message",
|
|
3331
|
+
return window.addEventListener("message", o), () => {
|
|
3332
|
+
window.removeEventListener("message", o);
|
|
3322
3333
|
};
|
|
3323
|
-
}, us = "builder.tests",
|
|
3334
|
+
}, us = "builder.tests", Vn = (e) => `${us}.${e}`, cs = ({
|
|
3324
3335
|
contentId: e
|
|
3325
3336
|
}) => eo({
|
|
3326
|
-
name:
|
|
3337
|
+
name: Vn(e),
|
|
3327
3338
|
canTrack: !0
|
|
3328
3339
|
}), ps = ({
|
|
3329
3340
|
contentId: e
|
|
3330
|
-
}) =>
|
|
3331
|
-
name:
|
|
3341
|
+
}) => Nn({
|
|
3342
|
+
name: Vn(e),
|
|
3332
3343
|
canTrack: !0
|
|
3333
3344
|
}), ds = ({
|
|
3334
3345
|
contentId: e,
|
|
3335
3346
|
value: t
|
|
3336
|
-
}) =>
|
|
3337
|
-
name:
|
|
3347
|
+
}) => Bn({
|
|
3348
|
+
name: Vn(e),
|
|
3338
3349
|
value: t,
|
|
3339
3350
|
canTrack: !0
|
|
3340
3351
|
}), lo = (e) => je(e.id) && je(e.variations) && Object.keys(e.variations).length > 0, fs = ({
|
|
@@ -3420,20 +3431,20 @@ function gs() {
|
|
|
3420
3431
|
const t = /* @__PURE__ */ new Set();
|
|
3421
3432
|
return {
|
|
3422
3433
|
setUserAttributes(n) {
|
|
3423
|
-
if (!
|
|
3434
|
+
if (!G())
|
|
3424
3435
|
return;
|
|
3425
3436
|
const r = {
|
|
3426
3437
|
...this.getUserAttributes(),
|
|
3427
3438
|
...n
|
|
3428
3439
|
};
|
|
3429
|
-
|
|
3440
|
+
Bn({
|
|
3430
3441
|
name: $r,
|
|
3431
3442
|
value: JSON.stringify(r),
|
|
3432
3443
|
canTrack: e
|
|
3433
3444
|
}), t.forEach((o) => o(r));
|
|
3434
3445
|
},
|
|
3435
3446
|
getUserAttributes() {
|
|
3436
|
-
return
|
|
3447
|
+
return G() ? JSON.parse(Nn({
|
|
3437
3448
|
name: $r,
|
|
3438
3449
|
canTrack: e
|
|
3439
3450
|
}) || "{}") : {};
|
|
@@ -3448,7 +3459,7 @@ function gs() {
|
|
|
3448
3459
|
}
|
|
3449
3460
|
};
|
|
3450
3461
|
}
|
|
3451
|
-
const po = gs(),
|
|
3462
|
+
const po = gs(), Uu = (e) => {
|
|
3452
3463
|
po.setUserAttributes(e);
|
|
3453
3464
|
}, yt = (e) => {
|
|
3454
3465
|
const t = je(e) ? e : !0;
|
|
@@ -3496,7 +3507,7 @@ function ks(e) {
|
|
|
3496
3507
|
}
|
|
3497
3508
|
return t;
|
|
3498
3509
|
}
|
|
3499
|
-
const Ss = "v3", Pr = (e) => typeof e == "number" && !isNaN(e) && e >= 0,
|
|
3510
|
+
const Ss = "v3", Pr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Dn = (e) => {
|
|
3500
3511
|
const {
|
|
3501
3512
|
limit: t = 30,
|
|
3502
3513
|
userAttributes: n,
|
|
@@ -3519,12 +3530,12 @@ const Ss = "v3", Pr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Vn = (
|
|
|
3519
3530
|
throw new Error("Missing API key");
|
|
3520
3531
|
if (!["v3"].includes(p))
|
|
3521
3532
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
|
|
3522
|
-
const
|
|
3523
|
-
F.searchParams.set("apiKey", i), F.searchParams.set("limit", String(t)), F.searchParams.set("noTraverse", String(
|
|
3524
|
-
const
|
|
3533
|
+
const Re = t !== 1, $ = Z || "https://cdn.builder.io", F = new URL(`${$}/api/${p}/content/${o}`);
|
|
3534
|
+
F.searchParams.set("apiKey", i), F.searchParams.set("limit", String(t)), F.searchParams.set("noTraverse", String(Re)), F.searchParams.set("includeRefs", String(!0));
|
|
3535
|
+
const Ve = u || (n == null ? void 0 : n.locale);
|
|
3525
3536
|
let me = n || {};
|
|
3526
|
-
if (
|
|
3527
|
-
locale:
|
|
3537
|
+
if (Ve && (F.searchParams.set("locale", Ve), me = {
|
|
3538
|
+
locale: Ve,
|
|
3528
3539
|
...me
|
|
3529
3540
|
}), s && F.searchParams.set("enrich", String(s)), F.searchParams.set("omit", b || "meta.componentsUsed"), m && F.searchParams.set("fields", m), Number.isFinite(v) && v > -1 && F.searchParams.set("offset", String(Math.floor(v))), typeof O == "boolean" && F.searchParams.set("includeUnpublished", String(O)), g && Pr(g) && F.searchParams.set("cacheSeconds", String(g)), T && Pr(T) && F.searchParams.set("staleCacheSeconds", String(T)), U) {
|
|
3530
3541
|
const E = bn({
|
|
@@ -3558,7 +3569,7 @@ const Ss = "v3", Pr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Vn = (
|
|
|
3558
3569
|
n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
|
|
3559
3570
|
return t;
|
|
3560
3571
|
}, ws = (e) => {
|
|
3561
|
-
if (
|
|
3572
|
+
if (G() && e.preview === "BUILDER_STUDIO") {
|
|
3562
3573
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
3563
3574
|
const t = Cs(e), {
|
|
3564
3575
|
userAttributes: n
|
|
@@ -3576,7 +3587,7 @@ async function Fn(e) {
|
|
|
3576
3587
|
}
|
|
3577
3588
|
const Ts = async (e) => {
|
|
3578
3589
|
var s;
|
|
3579
|
-
const t =
|
|
3590
|
+
const t = Dn(e), n = e.fetch ?? bs, r = {
|
|
3580
3591
|
...e.fetchOptions,
|
|
3581
3592
|
headers: {
|
|
3582
3593
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
@@ -3584,9 +3595,9 @@ const Ts = async (e) => {
|
|
|
3584
3595
|
}
|
|
3585
3596
|
};
|
|
3586
3597
|
return await (await n(t.href, r)).json();
|
|
3587
|
-
}, Is = async (e, t, n =
|
|
3598
|
+
}, Is = async (e, t, n = Dn(e)) => {
|
|
3588
3599
|
const r = yt(e.canTrack);
|
|
3589
|
-
if (n.search.includes("preview="), !r || !(
|
|
3600
|
+
if (n.search.includes("preview="), !r || !(G() || re === "reactNative"))
|
|
3590
3601
|
return t.results;
|
|
3591
3602
|
try {
|
|
3592
3603
|
const o = [];
|
|
@@ -3602,7 +3613,7 @@ const Ts = async (e) => {
|
|
|
3602
3613
|
return t.results;
|
|
3603
3614
|
};
|
|
3604
3615
|
async function xs(e) {
|
|
3605
|
-
const t =
|
|
3616
|
+
const t = Dn(e), n = await Ts(e);
|
|
3606
3617
|
if (!Es(n))
|
|
3607
3618
|
throw ue.error("Error fetching data. ", {
|
|
3608
3619
|
url: t,
|
|
@@ -3631,7 +3642,7 @@ const Vu = async (e) => {
|
|
|
3631
3642
|
content: await Fn(n)
|
|
3632
3643
|
};
|
|
3633
3644
|
}, Wn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
3634
|
-
function
|
|
3645
|
+
function Rs(e, t, n = {}) {
|
|
3635
3646
|
let r, o, i, s = null, u = 0;
|
|
3636
3647
|
const p = function() {
|
|
3637
3648
|
u = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(r, o), s || (r = o = null);
|
|
@@ -3643,7 +3654,7 @@ function As(e, t, n = {}) {
|
|
|
3643
3654
|
return r = this, o = arguments, b <= 0 || b > t ? (s && (clearTimeout(s), s = null), u = m, i = e.apply(r, o), s || (r = o = null)) : !s && n.trailing !== !1 && (s = setTimeout(p, b)), i;
|
|
3644
3655
|
};
|
|
3645
3656
|
}
|
|
3646
|
-
function
|
|
3657
|
+
function ft(e, ...t) {
|
|
3647
3658
|
const n = Object(e);
|
|
3648
3659
|
for (let r = 1; r < arguments.length; r++) {
|
|
3649
3660
|
const o = arguments[r];
|
|
@@ -3653,7 +3664,7 @@ function dt(e, ...t) {
|
|
|
3653
3664
|
}
|
|
3654
3665
|
return n;
|
|
3655
3666
|
}
|
|
3656
|
-
function
|
|
3667
|
+
function As(e) {
|
|
3657
3668
|
for (const t of e)
|
|
3658
3669
|
switch (t.trigger) {
|
|
3659
3670
|
case "pageLoad":
|
|
@@ -3687,8 +3698,8 @@ function go(e) {
|
|
|
3687
3698
|
return;
|
|
3688
3699
|
}
|
|
3689
3700
|
Array.from(t).forEach((n) => {
|
|
3690
|
-
mo(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
3691
|
-
n.style.transition = `all ${e.duration}s ${Wn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
3701
|
+
mo(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ft(n.style, e.steps[0].styles), setTimeout(() => {
|
|
3702
|
+
n.style.transition = `all ${e.duration}s ${Wn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ft(n.style, e.steps[1].styles), setTimeout(() => {
|
|
3692
3703
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
3693
3704
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
3694
3705
|
});
|
|
@@ -3705,12 +3716,12 @@ function Ps(e) {
|
|
|
3705
3716
|
let r = !1, o = !1;
|
|
3706
3717
|
function i() {
|
|
3707
3718
|
!r && u(n) ? (r = !0, o = !0, setTimeout(() => {
|
|
3708
|
-
|
|
3719
|
+
ft(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
3709
3720
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
3710
3721
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
3711
|
-
})) : e.repeat && r && !o && !u(n) && (r = !1,
|
|
3722
|
+
})) : e.repeat && r && !o && !u(n) && (r = !1, ft(n.style, e.steps[0].styles));
|
|
3712
3723
|
}
|
|
3713
|
-
const s =
|
|
3724
|
+
const s = Rs(i, 200, {
|
|
3714
3725
|
leading: !1
|
|
3715
3726
|
});
|
|
3716
3727
|
function u(b) {
|
|
@@ -3719,7 +3730,7 @@ function Ps(e) {
|
|
|
3719
3730
|
}
|
|
3720
3731
|
const p = e.steps[0].styles;
|
|
3721
3732
|
function m() {
|
|
3722
|
-
|
|
3733
|
+
ft(n.style, p);
|
|
3723
3734
|
}
|
|
3724
3735
|
m(), setTimeout(() => {
|
|
3725
3736
|
n.style.transition = `all ${e.duration}s ${Wn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -3733,7 +3744,7 @@ const yo = (e) => Object.entries(e).map(([n, r]) => {
|
|
|
3733
3744
|
if (typeof r == "string")
|
|
3734
3745
|
return `${Wn(n)}: ${r};`;
|
|
3735
3746
|
}).filter(je), Os = (e) => yo(e).join(`
|
|
3736
|
-
`),
|
|
3747
|
+
`), Du = ({
|
|
3737
3748
|
mediaQuery: e,
|
|
3738
3749
|
className: t,
|
|
3739
3750
|
styles: n
|
|
@@ -3750,7 +3761,7 @@ function js({
|
|
|
3750
3761
|
}) {
|
|
3751
3762
|
return e;
|
|
3752
3763
|
}
|
|
3753
|
-
const
|
|
3764
|
+
const Fu = ({
|
|
3754
3765
|
block: e,
|
|
3755
3766
|
context: t
|
|
3756
3767
|
}) => vo(js({
|
|
@@ -3772,7 +3783,7 @@ function vo(e) {
|
|
|
3772
3783
|
return e;
|
|
3773
3784
|
}
|
|
3774
3785
|
}
|
|
3775
|
-
const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0,
|
|
3786
|
+
const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Ns = ({
|
|
3776
3787
|
block: e,
|
|
3777
3788
|
registeredComponents: t,
|
|
3778
3789
|
model: n
|
|
@@ -3789,7 +3800,7 @@ const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3789
3800
|
return;
|
|
3790
3801
|
} else
|
|
3791
3802
|
return o;
|
|
3792
|
-
},
|
|
3803
|
+
}, Bs = ({
|
|
3793
3804
|
block: e,
|
|
3794
3805
|
context: t
|
|
3795
3806
|
}) => {
|
|
@@ -3827,12 +3838,12 @@ const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3827
3838
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
3828
3839
|
builderLinkComponent: t
|
|
3829
3840
|
} : {};
|
|
3830
|
-
},
|
|
3841
|
+
}, Vs = (e, t, n) => {
|
|
3831
3842
|
var r;
|
|
3832
3843
|
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderComponents ? {
|
|
3833
3844
|
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !bo(s, n)))
|
|
3834
3845
|
} : {};
|
|
3835
|
-
},
|
|
3846
|
+
}, Ds = (e, t) => {
|
|
3836
3847
|
var n;
|
|
3837
3848
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
3838
3849
|
builderBlock: t
|
|
@@ -3847,22 +3858,22 @@ const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3847
3858
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3848
3859
|
e
|
|
3849
3860
|
), e;
|
|
3850
|
-
}), Ls = () => import("./block-styles-
|
|
3861
|
+
}), Ls = () => import("./block-styles-qmawnL2_.js").then((e) => e.default).catch((e) => {
|
|
3851
3862
|
throw console.error(
|
|
3852
3863
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3853
3864
|
e
|
|
3854
3865
|
), e;
|
|
3855
|
-
}), Ms = () => import("./block-wrapper-
|
|
3866
|
+
}), Ms = () => import("./block-wrapper-ga1Q8gAe.js").then((e) => e.default).catch((e) => {
|
|
3856
3867
|
throw console.error(
|
|
3857
3868
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3858
3869
|
e
|
|
3859
3870
|
), e;
|
|
3860
|
-
}), Hs = () => import("./component-ref-
|
|
3871
|
+
}), Hs = () => import("./component-ref-kF7QYHtR.js").then((e) => e.default).catch((e) => {
|
|
3861
3872
|
throw console.error(
|
|
3862
3873
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3863
3874
|
e
|
|
3864
3875
|
), e;
|
|
3865
|
-
}), Ks = () => import("./repeated-block-
|
|
3876
|
+
}), Ks = () => import("./repeated-block-s8LkZB7_.js").then((e) => e.default).catch((e) => {
|
|
3866
3877
|
throw console.error(
|
|
3867
3878
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3868
3879
|
e
|
|
@@ -3870,11 +3881,11 @@ const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3870
3881
|
}), zs = j({
|
|
3871
3882
|
name: "block",
|
|
3872
3883
|
components: {
|
|
3873
|
-
BlockStyles:
|
|
3874
|
-
RepeatedBlock:
|
|
3875
|
-
ComponentRef:
|
|
3876
|
-
BlockWrapper:
|
|
3877
|
-
DynamicDiv:
|
|
3884
|
+
BlockStyles: ot(Ls),
|
|
3885
|
+
RepeatedBlock: ot(Ks),
|
|
3886
|
+
ComponentRef: ot(Hs),
|
|
3887
|
+
BlockWrapper: ot(Ms),
|
|
3888
|
+
DynamicDiv: ot(Ws)
|
|
3878
3889
|
},
|
|
3879
3890
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
3880
3891
|
data() {
|
|
@@ -3887,7 +3898,7 @@ const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3887
3898
|
},
|
|
3888
3899
|
mounted() {
|
|
3889
3900
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
3890
|
-
t && e &&
|
|
3901
|
+
t && e && As(
|
|
3891
3902
|
t.map((n) => ({
|
|
3892
3903
|
...n,
|
|
3893
3904
|
elementId: e
|
|
@@ -3898,7 +3909,7 @@ const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3898
3909
|
},
|
|
3899
3910
|
computed: {
|
|
3900
3911
|
repeatItem() {
|
|
3901
|
-
return
|
|
3912
|
+
return Bs({
|
|
3902
3913
|
block: this.block,
|
|
3903
3914
|
context: this.context
|
|
3904
3915
|
});
|
|
@@ -3914,7 +3925,7 @@ const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3914
3925
|
});
|
|
3915
3926
|
},
|
|
3916
3927
|
blockComponent() {
|
|
3917
|
-
return
|
|
3928
|
+
return Ns({
|
|
3918
3929
|
block: this.processedBlock,
|
|
3919
3930
|
registeredComponents: this.registeredComponents,
|
|
3920
3931
|
model: this.context.model
|
|
@@ -3942,10 +3953,10 @@ const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3942
3953
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
3943
3954
|
componentOptions: {
|
|
3944
3955
|
...Pi(this.processedBlock, this.context),
|
|
3945
|
-
...
|
|
3956
|
+
...Ds(this.blockComponent, this.processedBlock),
|
|
3946
3957
|
...Fs(this.blockComponent, this.context),
|
|
3947
3958
|
...Us(this.blockComponent, this.linkComponent),
|
|
3948
|
-
...
|
|
3959
|
+
...Vs(
|
|
3949
3960
|
this.blockComponent,
|
|
3950
3961
|
this.registeredComponents,
|
|
3951
3962
|
this.context.model
|
|
@@ -3963,20 +3974,20 @@ const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3963
3974
|
});
|
|
3964
3975
|
function Gs(e, t, n, r, o, i) {
|
|
3965
3976
|
var v;
|
|
3966
|
-
const s =
|
|
3977
|
+
const s = D("BlockStyles"), u = D("ComponentRef"), p = D("Block", !0), m = D("BlockWrapper"), b = D("RepeatedBlock");
|
|
3967
3978
|
return e.canShowBlock ? (y(), I(X, { key: 0 }, [
|
|
3968
3979
|
se(s, {
|
|
3969
3980
|
block: e.processedBlock,
|
|
3970
3981
|
context: e.context
|
|
3971
3982
|
}, null, 8, ["block", "context"]),
|
|
3972
3983
|
(v = e.blockComponent) != null && v.noWrap ? (y(), I(X, { key: 1 }, [
|
|
3973
|
-
e.repeatItem ? (y(!0), I(X, { key: 1 }, Ee(e.repeatItem, (g, T) => (y(),
|
|
3984
|
+
e.repeatItem ? (y(!0), I(X, { key: 1 }, Ee(e.repeatItem, (g, T) => (y(), V(b, {
|
|
3974
3985
|
key: T,
|
|
3975
3986
|
repeatContext: g.context,
|
|
3976
3987
|
block: g.block,
|
|
3977
3988
|
registeredComponents: e.registeredComponents,
|
|
3978
3989
|
linkComponent: e.linkComponent
|
|
3979
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (y(),
|
|
3990
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (y(), V(u, {
|
|
3980
3991
|
key: 0,
|
|
3981
3992
|
componentRef: e.componentRefProps.componentRef,
|
|
3982
3993
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -3989,13 +4000,13 @@ function Gs(e, t, n, r, o, i) {
|
|
|
3989
4000
|
isInteractive: e.componentRefProps.isInteractive
|
|
3990
4001
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
3991
4002
|
], 64)) : (y(), I(X, { key: 0 }, [
|
|
3992
|
-
e.repeatItem ? (y(!0), I(X, { key: 1 }, Ee(e.repeatItem, (g, T) => (y(),
|
|
4003
|
+
e.repeatItem ? (y(!0), I(X, { key: 1 }, Ee(e.repeatItem, (g, T) => (y(), V(b, {
|
|
3993
4004
|
key: T,
|
|
3994
4005
|
repeatContext: g.context,
|
|
3995
4006
|
block: g.block,
|
|
3996
4007
|
registeredComponents: e.registeredComponents,
|
|
3997
4008
|
linkComponent: e.linkComponent
|
|
3998
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (y(),
|
|
4009
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (y(), V(m, {
|
|
3999
4010
|
key: 0,
|
|
4000
4011
|
Wrapper: e.Tag,
|
|
4001
4012
|
block: e.processedBlock,
|
|
@@ -4013,7 +4024,7 @@ function Gs(e, t, n, r, o, i) {
|
|
|
4013
4024
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
4014
4025
|
isInteractive: e.componentRefProps.isInteractive
|
|
4015
4026
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
4016
|
-
(y(!0), I(X, null, Ee(e.childrenWithoutParentComponent, (g, T) => (y(),
|
|
4027
|
+
(y(!0), I(X, null, Ee(e.childrenWithoutParentComponent, (g, T) => (y(), V(p, {
|
|
4017
4028
|
key: g.id,
|
|
4018
4029
|
block: g,
|
|
4019
4030
|
registeredComponents: e.registeredComponents,
|
|
@@ -4026,7 +4037,7 @@ function Gs(e, t, n, r, o, i) {
|
|
|
4026
4037
|
], 64))
|
|
4027
4038
|
], 64)) : L("", !0);
|
|
4028
4039
|
}
|
|
4029
|
-
const ko = /* @__PURE__ */
|
|
4040
|
+
const ko = /* @__PURE__ */ B(zs, [["render", Gs]]), Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4030
4041
|
__proto__: null,
|
|
4031
4042
|
default: ko
|
|
4032
4043
|
}, Symbol.toStringTag, { value: "Module" })), qs = j({
|
|
@@ -4088,7 +4099,7 @@ const ko = /* @__PURE__ */ N(zs, [["render", Gs]]), Lu = /* @__PURE__ */ Object.
|
|
|
4088
4099
|
}
|
|
4089
4100
|
});
|
|
4090
4101
|
function _s(e, t, n, r, o, i) {
|
|
4091
|
-
return y(),
|
|
4102
|
+
return y(), V(ct(e.BlocksWrapper), z({
|
|
4092
4103
|
ref: "blocksWrapperRef",
|
|
4093
4104
|
class: e.className + " component-tqyw9m0iue",
|
|
4094
4105
|
"builder-path": e.dataPath,
|
|
@@ -4104,7 +4115,7 @@ function _s(e, t, n, r, o, i) {
|
|
|
4104
4115
|
_: 3
|
|
4105
4116
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
4106
4117
|
}
|
|
4107
|
-
const Js = /* @__PURE__ */
|
|
4118
|
+
const Js = /* @__PURE__ */ B(qs, [["render", _s], ["__scopeId", "data-v-4755f88c"]]), Xs = j({
|
|
4108
4119
|
name: "builder-blocks",
|
|
4109
4120
|
components: { BlocksWrapper: Js, Block: ko },
|
|
4110
4121
|
props: [
|
|
@@ -4119,13 +4130,13 @@ const Js = /* @__PURE__ */ N(qs, [["render", _s], ["__scopeId", "data-v-4755f88c
|
|
|
4119
4130
|
],
|
|
4120
4131
|
inject: {
|
|
4121
4132
|
builderContext: fn.key,
|
|
4122
|
-
componentsContext:
|
|
4133
|
+
componentsContext: Vr.key
|
|
4123
4134
|
}
|
|
4124
4135
|
});
|
|
4125
4136
|
function Ys(e, t, n, r, o, i) {
|
|
4126
4137
|
var p, m, b, v;
|
|
4127
|
-
const s =
|
|
4128
|
-
return y(),
|
|
4138
|
+
const s = D("Block"), u = D("BlocksWrapper");
|
|
4139
|
+
return y(), V(u, {
|
|
4129
4140
|
blocks: e.blocks,
|
|
4130
4141
|
parent: e.parent,
|
|
4131
4142
|
path: e.path,
|
|
@@ -4137,7 +4148,7 @@ function Ys(e, t, n, r, o, i) {
|
|
|
4137
4148
|
default: Ie(() => [
|
|
4138
4149
|
e.blocks ? (y(!0), I(X, { key: 0 }, Ee(e.blocks, (g, T) => {
|
|
4139
4150
|
var U;
|
|
4140
|
-
return y(),
|
|
4151
|
+
return y(), V(s, {
|
|
4141
4152
|
key: g.id,
|
|
4142
4153
|
block: g,
|
|
4143
4154
|
linkComponent: e.linkComponent,
|
|
@@ -4149,7 +4160,7 @@ function Ys(e, t, n, r, o, i) {
|
|
|
4149
4160
|
_: 1
|
|
4150
4161
|
}, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
4151
4162
|
}
|
|
4152
|
-
const
|
|
4163
|
+
const Je = /* @__PURE__ */ B(Xs, [["render", Ys]]), Zs = j({
|
|
4153
4164
|
name: "dynamic-div",
|
|
4154
4165
|
props: []
|
|
4155
4166
|
});
|
|
@@ -4158,7 +4169,7 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4158
4169
|
le(e.$slots, "default")
|
|
4159
4170
|
]);
|
|
4160
4171
|
}
|
|
4161
|
-
const St = /* @__PURE__ */
|
|
4172
|
+
const St = /* @__PURE__ */ B(Zs, [["render", Qs]]), ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4162
4173
|
__proto__: null,
|
|
4163
4174
|
default: St
|
|
4164
4175
|
}, Symbol.toStringTag, { value: "Module" })), Ln = j({
|
|
@@ -4172,8 +4183,13 @@ const St = /* @__PURE__ */ N(Zs, [["render", Qs]]), ea = /* @__PURE__ */ Object.
|
|
|
4172
4183
|
name: "inlined-styles",
|
|
4173
4184
|
props: ["styles", "id", "nonce"]
|
|
4174
4185
|
}), So = {
|
|
4186
|
+
xsmall: {
|
|
4187
|
+
min: 0,
|
|
4188
|
+
default: 160,
|
|
4189
|
+
max: 320
|
|
4190
|
+
},
|
|
4175
4191
|
small: {
|
|
4176
|
-
min:
|
|
4192
|
+
min: 321,
|
|
4177
4193
|
default: 321,
|
|
4178
4194
|
max: 640
|
|
4179
4195
|
},
|
|
@@ -4187,38 +4203,50 @@ const St = /* @__PURE__ */ N(Zs, [["render", Qs]]), ea = /* @__PURE__ */ Object.
|
|
|
4187
4203
|
default: 991,
|
|
4188
4204
|
max: 1200
|
|
4189
4205
|
}
|
|
4190
|
-
},
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
const
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4206
|
+
}, Lu = (e, t = So) => `@media (max-width: ${t[e].max}px)`, ta = (e) => {
|
|
4207
|
+
const t = jn(So);
|
|
4208
|
+
if (!e)
|
|
4209
|
+
return t;
|
|
4210
|
+
const {
|
|
4211
|
+
xsmall: n,
|
|
4212
|
+
small: r,
|
|
4213
|
+
medium: o
|
|
4214
|
+
} = e;
|
|
4215
|
+
if (n) {
|
|
4216
|
+
const p = Math.floor(n / 2);
|
|
4217
|
+
t.xsmall = {
|
|
4218
|
+
max: n,
|
|
4219
|
+
min: p,
|
|
4220
|
+
default: p + 1
|
|
4221
|
+
};
|
|
4222
|
+
}
|
|
4223
|
+
if (!r || !o)
|
|
4224
|
+
return t;
|
|
4225
|
+
const i = n ? t.xsmall.max + 1 : Math.floor(r / 2);
|
|
4226
|
+
t.small = {
|
|
4227
|
+
max: r,
|
|
4228
|
+
min: i,
|
|
4229
|
+
default: i + 1
|
|
4202
4230
|
};
|
|
4203
|
-
const
|
|
4204
|
-
|
|
4205
|
-
max:
|
|
4206
|
-
min:
|
|
4207
|
-
default:
|
|
4231
|
+
const s = t.small.max + 1;
|
|
4232
|
+
t.medium = {
|
|
4233
|
+
max: o,
|
|
4234
|
+
min: s,
|
|
4235
|
+
default: s + 1
|
|
4208
4236
|
};
|
|
4209
|
-
const
|
|
4210
|
-
return
|
|
4237
|
+
const u = t.medium.max + 1;
|
|
4238
|
+
return t.large = {
|
|
4211
4239
|
max: 2e3,
|
|
4212
4240
|
// TODO: decide upper limit
|
|
4213
|
-
min:
|
|
4214
|
-
default:
|
|
4215
|
-
},
|
|
4241
|
+
min: u,
|
|
4242
|
+
default: u + 1
|
|
4243
|
+
}, t;
|
|
4216
4244
|
}, na = (e) => `builder-columns ${e}-breakpoints`, ra = j({
|
|
4217
4245
|
name: "builder-columns",
|
|
4218
4246
|
components: {
|
|
4219
4247
|
InlinedStyles: Ln,
|
|
4220
4248
|
DynamicRenderer: kn,
|
|
4221
|
-
Blocks:
|
|
4249
|
+
Blocks: Je,
|
|
4222
4250
|
DynamicDiv: St
|
|
4223
4251
|
},
|
|
4224
4252
|
props: [
|
|
@@ -4356,18 +4384,18 @@ const St = /* @__PURE__ */ N(Zs, [["render", Qs]]), ea = /* @__PURE__ */ Object.
|
|
|
4356
4384
|
});
|
|
4357
4385
|
function oa(e, t, n, r, o, i) {
|
|
4358
4386
|
var m;
|
|
4359
|
-
const s =
|
|
4360
|
-
return y(), I("div",
|
|
4387
|
+
const s = D("InlinedStyles"), u = D("Blocks"), p = D("DynamicRenderer");
|
|
4388
|
+
return y(), I("div", z({
|
|
4361
4389
|
class: e.getColumnsClass((m = e.builderBlock) == null ? void 0 : m.id) + " div-4wbls88y960",
|
|
4362
4390
|
style: e.columnsCssVars()
|
|
4363
4391
|
}, {}), [
|
|
4364
|
-
e.TARGET !== "reactNative" ? (y(),
|
|
4392
|
+
e.TARGET !== "reactNative" ? (y(), V(s, {
|
|
4365
4393
|
key: 0,
|
|
4366
4394
|
id: "builderio-columns",
|
|
4367
4395
|
styles: e.columnsStyles(),
|
|
4368
4396
|
nonce: e.builderContext.nonce
|
|
4369
4397
|
}, null, 8, ["styles", "nonce"])) : L("", !0),
|
|
4370
|
-
(y(!0), I(X, null, Ee(e.columns, (b, v) => (y(),
|
|
4398
|
+
(y(!0), I(X, null, Ee(e.columns, (b, v) => (y(), V(p, {
|
|
4371
4399
|
key: v,
|
|
4372
4400
|
TagName: e.getTagName(b),
|
|
4373
4401
|
actionAttributes: {},
|
|
@@ -4390,7 +4418,7 @@ function oa(e, t, n, r, o, i) {
|
|
|
4390
4418
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
4391
4419
|
], 16);
|
|
4392
4420
|
}
|
|
4393
|
-
const ia = /* @__PURE__ */
|
|
4421
|
+
const ia = /* @__PURE__ */ B(ra, [["render", oa], ["__scopeId", "data-v-bdc9da04"]]), sa = j({
|
|
4394
4422
|
name: "builder-fragment-component",
|
|
4395
4423
|
props: []
|
|
4396
4424
|
});
|
|
@@ -4399,7 +4427,7 @@ function aa(e, t, n, r, o, i) {
|
|
|
4399
4427
|
le(e.$slots, "default")
|
|
4400
4428
|
]);
|
|
4401
4429
|
}
|
|
4402
|
-
const la = /* @__PURE__ */
|
|
4430
|
+
const la = /* @__PURE__ */ B(sa, [["render", aa]]);
|
|
4403
4431
|
function Or(e) {
|
|
4404
4432
|
return e.replace(/http(s)?:/, "");
|
|
4405
4433
|
}
|
|
@@ -4486,13 +4514,13 @@ const pa = j({
|
|
|
4486
4514
|
function ma(e, t, n, r, o, i) {
|
|
4487
4515
|
var s, u, p, m, b, v;
|
|
4488
4516
|
return y(), I(X, null, [
|
|
4489
|
-
|
|
4517
|
+
ze("picture", null, [
|
|
4490
4518
|
e.webpSrcSet ? (y(), I("source", {
|
|
4491
4519
|
key: 0,
|
|
4492
4520
|
type: "image/webp",
|
|
4493
4521
|
srcset: e.webpSrcSet
|
|
4494
4522
|
}, null, 8, da)) : L("", !0),
|
|
4495
|
-
|
|
4523
|
+
ze("img", {
|
|
4496
4524
|
loading: e.highPriority ? "eager" : "lazy",
|
|
4497
4525
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
4498
4526
|
alt: e.altText,
|
|
@@ -4523,7 +4551,7 @@ function ma(e, t, n, r, o, i) {
|
|
|
4523
4551
|
])) : L("", !0)
|
|
4524
4552
|
], 64);
|
|
4525
4553
|
}
|
|
4526
|
-
const ga = /* @__PURE__ */
|
|
4554
|
+
const ga = /* @__PURE__ */ B(pa, [["render", ma], ["__scopeId", "data-v-33d4f353"]]), ya = j({
|
|
4527
4555
|
name: "builder-section-component",
|
|
4528
4556
|
props: ["attributes", "maxWidth"],
|
|
4529
4557
|
data() {
|
|
@@ -4531,7 +4559,7 @@ const ga = /* @__PURE__ */ N(pa, [["render", ma], ["__scopeId", "data-v-33d4f353
|
|
|
4531
4559
|
}
|
|
4532
4560
|
});
|
|
4533
4561
|
function va(e, t, n, r, o, i) {
|
|
4534
|
-
return y(), I("section",
|
|
4562
|
+
return y(), I("section", z({
|
|
4535
4563
|
style: {
|
|
4536
4564
|
width: "100%",
|
|
4537
4565
|
alignSelf: "stretch",
|
|
@@ -4548,7 +4576,7 @@ function va(e, t, n, r, o, i) {
|
|
|
4548
4576
|
le(e.$slots, "default")
|
|
4549
4577
|
], 16);
|
|
4550
4578
|
}
|
|
4551
|
-
const ba = /* @__PURE__ */
|
|
4579
|
+
const ba = /* @__PURE__ */ B(ya, [["render", va]]), un = {
|
|
4552
4580
|
"@type": "@builder.io/sdk:Element",
|
|
4553
4581
|
layerName: "Accordion item title",
|
|
4554
4582
|
responsiveStyles: {
|
|
@@ -4674,7 +4702,7 @@ const ba = /* @__PURE__ */ N(ya, [["render", va]]), un = {
|
|
|
4674
4702
|
}
|
|
4675
4703
|
}, Sa = (e) => e.toString(), Ca = j({
|
|
4676
4704
|
name: "builder-accordion",
|
|
4677
|
-
components: { Blocks:
|
|
4705
|
+
components: { Blocks: Je },
|
|
4678
4706
|
props: [
|
|
4679
4707
|
"grid",
|
|
4680
4708
|
"oneAtATime",
|
|
@@ -4769,13 +4797,13 @@ const ba = /* @__PURE__ */ N(ya, [["render", va]]), un = {
|
|
|
4769
4797
|
}
|
|
4770
4798
|
}), wa = ["data-index", "onClick"];
|
|
4771
4799
|
function Ea(e, t, n, r, o, i) {
|
|
4772
|
-
const s =
|
|
4800
|
+
const s = D("Blocks");
|
|
4773
4801
|
return y(), I("div", {
|
|
4774
4802
|
class: "builder-accordion",
|
|
4775
4803
|
style: Pe(e.accordionStyles)
|
|
4776
4804
|
}, [
|
|
4777
4805
|
(y(!0), I(X, null, Ee(e.items, (u, p) => (y(), I(X, { key: p }, [
|
|
4778
|
-
|
|
4806
|
+
ze("div", {
|
|
4779
4807
|
class: ht(e.getAccordionTitleClassName(p)),
|
|
4780
4808
|
style: Pe({
|
|
4781
4809
|
...e.accordionTitleStyles,
|
|
@@ -4813,7 +4841,7 @@ function Ea(e, t, n, r, o, i) {
|
|
|
4813
4841
|
], 64))), 128))
|
|
4814
4842
|
], 4);
|
|
4815
4843
|
}
|
|
4816
|
-
const Ta = /* @__PURE__ */
|
|
4844
|
+
const Ta = /* @__PURE__ */ B(Ca, [["render", Ea]]), Ia = {
|
|
4817
4845
|
name: "Core:Button",
|
|
4818
4846
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
4819
4847
|
defaultStyles: {
|
|
@@ -5056,13 +5084,13 @@ const Ta = /* @__PURE__ */ N(Ca, [["render", Ea]]), Ia = {
|
|
|
5056
5084
|
builderComponents: !0,
|
|
5057
5085
|
builderLinkComponent: !0
|
|
5058
5086
|
}
|
|
5059
|
-
},
|
|
5087
|
+
}, Ra = {
|
|
5060
5088
|
name: "Fragment",
|
|
5061
5089
|
static: !0,
|
|
5062
5090
|
hidden: !0,
|
|
5063
5091
|
canHaveChildren: !0,
|
|
5064
5092
|
noWrap: !0
|
|
5065
|
-
}, Mn = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"],
|
|
5093
|
+
}, Mn = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Aa = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], $a = {
|
|
5066
5094
|
name: "Image",
|
|
5067
5095
|
static: !0,
|
|
5068
5096
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -5238,13 +5266,13 @@ const Ta = /* @__PURE__ */ N(Ca, [["render", Ea]]), Ia = {
|
|
|
5238
5266
|
}
|
|
5239
5267
|
}, ja = j({
|
|
5240
5268
|
name: "builder-slot",
|
|
5241
|
-
components: { Blocks:
|
|
5269
|
+
components: { Blocks: Je },
|
|
5242
5270
|
props: ["builderContext", "name", "builderComponents"]
|
|
5243
5271
|
});
|
|
5244
|
-
function
|
|
5272
|
+
function Na(e, t, n, r, o, i) {
|
|
5245
5273
|
var u, p, m;
|
|
5246
|
-
const s =
|
|
5247
|
-
return y(), I("div",
|
|
5274
|
+
const s = D("Blocks");
|
|
5275
|
+
return y(), I("div", z(
|
|
5248
5276
|
{ style: {
|
|
5249
5277
|
pointerEvents: "auto"
|
|
5250
5278
|
} },
|
|
@@ -5261,7 +5289,7 @@ function Ba(e, t, n, r, o, i) {
|
|
|
5261
5289
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
5262
5290
|
], 16);
|
|
5263
5291
|
}
|
|
5264
|
-
const
|
|
5292
|
+
const Ba = /* @__PURE__ */ B(ja, [["render", Na]]), Ua = {
|
|
5265
5293
|
name: "Symbol",
|
|
5266
5294
|
noWrap: !0,
|
|
5267
5295
|
static: !0,
|
|
@@ -5338,7 +5366,7 @@ const Na = /* @__PURE__ */ N(ja, [["render", Ba]]), Ua = {
|
|
|
5338
5366
|
text: "New tab content "
|
|
5339
5367
|
}
|
|
5340
5368
|
}
|
|
5341
|
-
},
|
|
5369
|
+
}, Va = {
|
|
5342
5370
|
name: "Builder: Tabs",
|
|
5343
5371
|
inputs: [{
|
|
5344
5372
|
name: "tabs",
|
|
@@ -5441,9 +5469,9 @@ const Na = /* @__PURE__ */ N(ja, [["render", Ba]]), Ua = {
|
|
|
5441
5469
|
builderComponents: !0,
|
|
5442
5470
|
builderLinkComponent: !0
|
|
5443
5471
|
}
|
|
5444
|
-
},
|
|
5472
|
+
}, Da = j({
|
|
5445
5473
|
name: "builder-tabs",
|
|
5446
|
-
components: { Blocks:
|
|
5474
|
+
components: { Blocks: Je },
|
|
5447
5475
|
props: [
|
|
5448
5476
|
"defaultActiveTab",
|
|
5449
5477
|
"tabs",
|
|
@@ -5468,9 +5496,9 @@ const Na = /* @__PURE__ */ N(ja, [["render", Ba]]), Ua = {
|
|
|
5468
5496
|
}
|
|
5469
5497
|
}), Fa = ["onClick"], Wa = { key: 0 };
|
|
5470
5498
|
function La(e, t, n, r, o, i) {
|
|
5471
|
-
const s =
|
|
5499
|
+
const s = D("Blocks");
|
|
5472
5500
|
return y(), I("div", null, [
|
|
5473
|
-
|
|
5501
|
+
ze("div", {
|
|
5474
5502
|
class: "builder-tabs-wrap",
|
|
5475
5503
|
style: Pe({
|
|
5476
5504
|
display: "flex",
|
|
@@ -5509,7 +5537,7 @@ function La(e, t, n, r, o, i) {
|
|
|
5509
5537
|
])) : L("", !0)
|
|
5510
5538
|
]);
|
|
5511
5539
|
}
|
|
5512
|
-
const Ma = /* @__PURE__ */
|
|
5540
|
+
const Ma = /* @__PURE__ */ B(Da, [["render", La]]), Ha = {
|
|
5513
5541
|
shouldReceiveBuilderProps: {
|
|
5514
5542
|
builderBlock: !1,
|
|
5515
5543
|
builderContext: !0
|
|
@@ -5545,7 +5573,7 @@ function Ga(e, t, n, r, o, i) {
|
|
|
5545
5573
|
}
|
|
5546
5574
|
}, null, 8, za);
|
|
5547
5575
|
}
|
|
5548
|
-
const qa = /* @__PURE__ */
|
|
5576
|
+
const qa = /* @__PURE__ */ B(Ka, [["render", Ga]]), _a = {
|
|
5549
5577
|
name: "Custom Code",
|
|
5550
5578
|
static: !0,
|
|
5551
5579
|
requiredPermissions: ["editCode"],
|
|
@@ -5609,7 +5637,7 @@ function Ya(e, t, n, r, o, i) {
|
|
|
5609
5637
|
innerHTML: e.code
|
|
5610
5638
|
}, null, 10, Xa);
|
|
5611
5639
|
}
|
|
5612
|
-
const Za = /* @__PURE__ */
|
|
5640
|
+
const Za = /* @__PURE__ */ B(Ja, [["render", Ya]]), Qa = {
|
|
5613
5641
|
name: "Embed",
|
|
5614
5642
|
static: !0,
|
|
5615
5643
|
inputs: [{
|
|
@@ -5674,7 +5702,7 @@ function ol(e, t, n, r, o, i) {
|
|
|
5674
5702
|
innerHTML: e.content
|
|
5675
5703
|
}, null, 8, rl);
|
|
5676
5704
|
}
|
|
5677
|
-
const il = /* @__PURE__ */
|
|
5705
|
+
const il = /* @__PURE__ */ B(nl, [["render", ol]]), sl = {
|
|
5678
5706
|
name: "Form:Form",
|
|
5679
5707
|
// editableTags: ['builder-form-error']
|
|
5680
5708
|
defaults: {
|
|
@@ -5916,7 +5944,7 @@ const il = /* @__PURE__ */ N(nl, [["render", ol]]), sl = {
|
|
|
5916
5944
|
return al.includes(e) ? e : "production";
|
|
5917
5945
|
}, ul = j({
|
|
5918
5946
|
name: "builder-form-component",
|
|
5919
|
-
components: { Blocks:
|
|
5947
|
+
components: { Blocks: Je },
|
|
5920
5948
|
props: [
|
|
5921
5949
|
"builderContext",
|
|
5922
5950
|
"previewState",
|
|
@@ -6026,7 +6054,7 @@ const il = /* @__PURE__ */ N(nl, [["render", ol]]), sl = {
|
|
|
6026
6054
|
let T;
|
|
6027
6055
|
const U = g.headers.get("content-type");
|
|
6028
6056
|
if (U && U.indexOf("application/json") !== -1 ? T = await g.json() : T = await g.text(), !g.ok && this.errorMessagePath) {
|
|
6029
|
-
let O =
|
|
6057
|
+
let O = Dr(T, this.errorMessagePath);
|
|
6030
6058
|
O && (typeof O != "string" && (O = JSON.stringify(O)), this.formErrorMessage = O, this.mergeNewRootState({
|
|
6031
6059
|
formErrorMessage: O
|
|
6032
6060
|
}));
|
|
@@ -6072,8 +6100,8 @@ const il = /* @__PURE__ */ N(nl, [["render", ol]]), sl = {
|
|
|
6072
6100
|
class: "builder-form-error-text pre-1hjwvu3r5mj"
|
|
6073
6101
|
};
|
|
6074
6102
|
function dl(e, t, n, r, o, i) {
|
|
6075
|
-
const s =
|
|
6076
|
-
return y(), I("form",
|
|
6103
|
+
const s = D("Blocks");
|
|
6104
|
+
return y(), I("form", z({
|
|
6077
6105
|
validate: e.validate,
|
|
6078
6106
|
ref: "formRef",
|
|
6079
6107
|
action: !e.sendWithJs && e.action,
|
|
@@ -6082,20 +6110,20 @@ function dl(e, t, n, r, o, i) {
|
|
|
6082
6110
|
onSubmit: t[0] || (t[0] = async (u) => e.onSubmit(u))
|
|
6083
6111
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, de(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
6084
6112
|
le(e.$slots, "default", {}, void 0, !0),
|
|
6085
|
-
e.submissionState() === "error" ? (y(),
|
|
6113
|
+
e.submissionState() === "error" ? (y(), V(s, {
|
|
6086
6114
|
key: 0,
|
|
6087
6115
|
path: "errorMessage",
|
|
6088
6116
|
blocks: e.errorMessage,
|
|
6089
6117
|
context: e.builderContext
|
|
6090
6118
|
}, null, 8, ["blocks", "context"])) : L("", !0),
|
|
6091
|
-
e.submissionState() === "sending" ? (y(),
|
|
6119
|
+
e.submissionState() === "sending" ? (y(), V(s, {
|
|
6092
6120
|
key: 1,
|
|
6093
6121
|
path: "sendingMessage",
|
|
6094
6122
|
blocks: e.sendingMessage,
|
|
6095
6123
|
context: e.builderContext
|
|
6096
6124
|
}, null, 8, ["blocks", "context"])) : L("", !0),
|
|
6097
|
-
e.submissionState() === "error" && e.responseData ? (y(), I("pre", pl,
|
|
6098
|
-
e.submissionState() === "success" ? (y(),
|
|
6125
|
+
e.submissionState() === "error" && e.responseData ? (y(), I("pre", pl, Bt(JSON.stringify(e.responseData, null, 2)), 1)) : L("", !0),
|
|
6126
|
+
e.submissionState() === "success" ? (y(), V(s, {
|
|
6099
6127
|
key: 3,
|
|
6100
6128
|
path: "successMessage",
|
|
6101
6129
|
blocks: e.successMessage,
|
|
@@ -6103,7 +6131,7 @@ function dl(e, t, n, r, o, i) {
|
|
|
6103
6131
|
}, null, 8, ["blocks", "context"])) : L("", !0)
|
|
6104
6132
|
], 16, cl);
|
|
6105
6133
|
}
|
|
6106
|
-
const fl = /* @__PURE__ */
|
|
6134
|
+
const fl = /* @__PURE__ */ B(ul, [["render", dl], ["__scopeId", "data-v-4ef43cdd"]]), hl = {
|
|
6107
6135
|
name: "Form:Input",
|
|
6108
6136
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
6109
6137
|
inputs: [
|
|
@@ -6170,7 +6198,7 @@ const fl = /* @__PURE__ */ N(ul, [["render", dl], ["__scopeId", "data-v-4ef43cdd
|
|
|
6170
6198
|
}
|
|
6171
6199
|
}), gl = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
6172
6200
|
function yl(e, t, n, r, o, i) {
|
|
6173
|
-
return y(), I("input",
|
|
6201
|
+
return y(), I("input", z({
|
|
6174
6202
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
6175
6203
|
placeholder: e.placeholder,
|
|
6176
6204
|
type: e.type,
|
|
@@ -6180,7 +6208,7 @@ function yl(e, t, n, r, o, i) {
|
|
|
6180
6208
|
required: e.required
|
|
6181
6209
|
}, e.filterAttrs(e.attributes, "v-on:", !1), de(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, gl);
|
|
6182
6210
|
}
|
|
6183
|
-
const vl = /* @__PURE__ */
|
|
6211
|
+
const vl = /* @__PURE__ */ B(ml, [["render", yl]]), bl = {
|
|
6184
6212
|
name: "Form:Select",
|
|
6185
6213
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
6186
6214
|
defaultStyles: {
|
|
@@ -6230,7 +6258,7 @@ const vl = /* @__PURE__ */ N(ml, [["render", yl]]), bl = {
|
|
|
6230
6258
|
}
|
|
6231
6259
|
}), Sl = ["value", "defaultValue", "name", "required"], Cl = ["value"];
|
|
6232
6260
|
function wl(e, t, n, r, o, i) {
|
|
6233
|
-
return y(), I("select",
|
|
6261
|
+
return y(), I("select", z({
|
|
6234
6262
|
value: e.value,
|
|
6235
6263
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
6236
6264
|
defaultValue: e.defaultValue,
|
|
@@ -6240,10 +6268,10 @@ function wl(e, t, n, r, o, i) {
|
|
|
6240
6268
|
(y(!0), I(X, null, Ee(e.options, (s, u) => (y(), I("option", {
|
|
6241
6269
|
key: `${s.name}-${u}`,
|
|
6242
6270
|
value: s.value
|
|
6243
|
-
},
|
|
6271
|
+
}, Bt(s.name || s.value), 9, Cl))), 128))
|
|
6244
6272
|
], 16, Sl);
|
|
6245
6273
|
}
|
|
6246
|
-
const El = /* @__PURE__ */
|
|
6274
|
+
const El = /* @__PURE__ */ B(kl, [["render", wl]]), Tl = {
|
|
6247
6275
|
name: "Form:SubmitButton",
|
|
6248
6276
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
6249
6277
|
defaultStyles: {
|
|
@@ -6276,9 +6304,9 @@ const El = /* @__PURE__ */ N(kl, [["render", wl]]), Tl = {
|
|
|
6276
6304
|
}
|
|
6277
6305
|
});
|
|
6278
6306
|
function xl(e, t, n, r, o, i) {
|
|
6279
|
-
return y(), I("button",
|
|
6307
|
+
return y(), I("button", z({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), de(e.filterAttrs(e.attributes, "v-on:", !0), !0)), Bt(e.text), 17);
|
|
6280
6308
|
}
|
|
6281
|
-
const
|
|
6309
|
+
const Rl = /* @__PURE__ */ B(Il, [["render", xl]]), Al = {
|
|
6282
6310
|
name: "Form:TextArea",
|
|
6283
6311
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
6284
6312
|
inputs: [{
|
|
@@ -6329,7 +6357,7 @@ const Al = /* @__PURE__ */ N(Il, [["render", xl]]), Rl = {
|
|
|
6329
6357
|
}
|
|
6330
6358
|
}), Pl = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
6331
6359
|
function Ol(e, t, n, r, o, i) {
|
|
6332
|
-
return y(), I("textarea",
|
|
6360
|
+
return y(), I("textarea", z({
|
|
6333
6361
|
placeholder: e.placeholder,
|
|
6334
6362
|
name: e.name,
|
|
6335
6363
|
value: e.value,
|
|
@@ -6337,7 +6365,7 @@ function Ol(e, t, n, r, o, i) {
|
|
|
6337
6365
|
required: e.required
|
|
6338
6366
|
}, e.filterAttrs(e.attributes, "v-on:", !1), de(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Pl);
|
|
6339
6367
|
}
|
|
6340
|
-
const jl = /* @__PURE__ */
|
|
6368
|
+
const jl = /* @__PURE__ */ B($l, [["render", Ol]]), Nl = {
|
|
6341
6369
|
// friendlyName?
|
|
6342
6370
|
name: "Raw:Img",
|
|
6343
6371
|
hideFromInsertMenu: !0,
|
|
@@ -6351,7 +6379,7 @@ const jl = /* @__PURE__ */ N($l, [["render", Ol]]), Bl = {
|
|
|
6351
6379
|
}],
|
|
6352
6380
|
noWrap: !0,
|
|
6353
6381
|
static: !0
|
|
6354
|
-
},
|
|
6382
|
+
}, Bl = j({
|
|
6355
6383
|
name: "builder-img-component",
|
|
6356
6384
|
props: [
|
|
6357
6385
|
"backgroundSize",
|
|
@@ -6365,8 +6393,8 @@ const jl = /* @__PURE__ */ N($l, [["render", Ol]]), Bl = {
|
|
|
6365
6393
|
return { isEditing: ie, filterAttrs: he };
|
|
6366
6394
|
}
|
|
6367
6395
|
}), Ul = ["alt", "src"];
|
|
6368
|
-
function
|
|
6369
|
-
return y(), I("img",
|
|
6396
|
+
function Vl(e, t, n, r, o, i) {
|
|
6397
|
+
return y(), I("img", z({
|
|
6370
6398
|
style: {
|
|
6371
6399
|
objectFit: e.backgroundSize || "cover",
|
|
6372
6400
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -6376,7 +6404,7 @@ function Dl(e, t, n, r, o, i) {
|
|
|
6376
6404
|
src: e.imgSrc || e.image
|
|
6377
6405
|
}, e.filterAttrs(e.attributes, "v-on:", !1), de(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ul);
|
|
6378
6406
|
}
|
|
6379
|
-
const
|
|
6407
|
+
const Dl = /* @__PURE__ */ B(Bl, [["render", Vl]]), Fl = {
|
|
6380
6408
|
name: "Video",
|
|
6381
6409
|
canHaveChildren: !0,
|
|
6382
6410
|
defaultStyles: {
|
|
@@ -6387,7 +6415,7 @@ const Vl = /* @__PURE__ */ N(Nl, [["render", Dl]]), Fl = {
|
|
|
6387
6415
|
inputs: [{
|
|
6388
6416
|
name: "video",
|
|
6389
6417
|
type: "file",
|
|
6390
|
-
allowedFileTypes:
|
|
6418
|
+
allowedFileTypes: Aa,
|
|
6391
6419
|
bubble: !0,
|
|
6392
6420
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
6393
6421
|
required: !0
|
|
@@ -6463,6 +6491,7 @@ const Vl = /* @__PURE__ */ N(Nl, [["render", Dl]]), Fl = {
|
|
|
6463
6491
|
}, Wl = j({
|
|
6464
6492
|
name: "builder-video",
|
|
6465
6493
|
props: [
|
|
6494
|
+
"lazyLoad",
|
|
6466
6495
|
"autoPlay",
|
|
6467
6496
|
"muted",
|
|
6468
6497
|
"controls",
|
|
@@ -6473,12 +6502,39 @@ const Vl = /* @__PURE__ */ N(Nl, [["render", Dl]]), Fl = {
|
|
|
6473
6502
|
"fit",
|
|
6474
6503
|
"position",
|
|
6475
6504
|
"aspectRatio",
|
|
6476
|
-
"video",
|
|
6477
6505
|
"posterImage",
|
|
6478
|
-
"
|
|
6506
|
+
"video",
|
|
6479
6507
|
"fitContent",
|
|
6480
6508
|
"builderBlock"
|
|
6481
6509
|
],
|
|
6510
|
+
data() {
|
|
6511
|
+
return { lazyVideoObserver: void 0 };
|
|
6512
|
+
},
|
|
6513
|
+
mounted() {
|
|
6514
|
+
if (this.lazyLoad) {
|
|
6515
|
+
const e = new IntersectionObserver(function(t) {
|
|
6516
|
+
t.forEach(function(n) {
|
|
6517
|
+
if (!n.isIntersecting)
|
|
6518
|
+
return;
|
|
6519
|
+
const r = n.target;
|
|
6520
|
+
try {
|
|
6521
|
+
Array.from(r.children).filter(
|
|
6522
|
+
(o) => o instanceof HTMLElement && o.tagName === "SOURCE"
|
|
6523
|
+
).forEach((o) => {
|
|
6524
|
+
const i = o.dataset.src;
|
|
6525
|
+
i && (o.src = i);
|
|
6526
|
+
}), r.load(), e.unobserve(r);
|
|
6527
|
+
} catch (o) {
|
|
6528
|
+
console.error("Error loading lazy video:", o);
|
|
6529
|
+
}
|
|
6530
|
+
});
|
|
6531
|
+
});
|
|
6532
|
+
this.$refs.videoRef && e.observe(this.$refs.videoRef), this.lazyVideoObserver = e;
|
|
6533
|
+
}
|
|
6534
|
+
},
|
|
6535
|
+
unmounted() {
|
|
6536
|
+
this.lazyVideoObserver && this.lazyVideoObserver.disconnect();
|
|
6537
|
+
},
|
|
6482
6538
|
computed: {
|
|
6483
6539
|
videoProps() {
|
|
6484
6540
|
return {
|
|
@@ -6507,14 +6563,14 @@ const Vl = /* @__PURE__ */ N(Nl, [["render", Dl]]), Fl = {
|
|
|
6507
6563
|
}
|
|
6508
6564
|
}), Ll = { style: {
|
|
6509
6565
|
position: "relative"
|
|
6510
|
-
} }, Ml = ["preload", "
|
|
6566
|
+
} }, Ml = ["preload", "poster"], Hl = {
|
|
6511
6567
|
key: 1,
|
|
6512
6568
|
style: {
|
|
6513
6569
|
display: "flex",
|
|
6514
6570
|
flexDirection: "column",
|
|
6515
6571
|
alignItems: "stretch"
|
|
6516
6572
|
}
|
|
6517
|
-
},
|
|
6573
|
+
}, Kl = {
|
|
6518
6574
|
key: 2,
|
|
6519
6575
|
style: {
|
|
6520
6576
|
pointerEvents: "none",
|
|
@@ -6528,12 +6584,13 @@ const Vl = /* @__PURE__ */ N(Nl, [["render", Dl]]), Fl = {
|
|
|
6528
6584
|
height: "100%"
|
|
6529
6585
|
}
|
|
6530
6586
|
};
|
|
6531
|
-
function
|
|
6587
|
+
function zl(e, t, n, r, o, i) {
|
|
6532
6588
|
var s, u, p, m, b, v, g;
|
|
6533
6589
|
return y(), I("div", Ll, [
|
|
6534
|
-
|
|
6590
|
+
ze("video", z({
|
|
6535
6591
|
class: "builder-video",
|
|
6536
|
-
|
|
6592
|
+
ref: "videoRef",
|
|
6593
|
+
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
6537
6594
|
style: {
|
|
6538
6595
|
width: "100%",
|
|
6539
6596
|
height: "100%",
|
|
@@ -6547,14 +6604,16 @@ function Gl(e, t, n, r, o, i) {
|
|
|
6547
6604
|
position: "absolute"
|
|
6548
6605
|
} : null
|
|
6549
6606
|
},
|
|
6550
|
-
src: e.video || "no-src",
|
|
6551
6607
|
poster: e.posterImage
|
|
6552
6608
|
}, e.spreadProps), [
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6609
|
+
ze("source", z(
|
|
6610
|
+
{ type: "video/mp4" },
|
|
6611
|
+
e.lazyLoad ? {
|
|
6612
|
+
"data-src": e.video
|
|
6613
|
+
} : {
|
|
6614
|
+
src: e.video
|
|
6615
|
+
}
|
|
6616
|
+
), null, 16)
|
|
6558
6617
|
], 16, Ml),
|
|
6559
6618
|
e.aspectRatio && !(e.fitContent && ((p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length)) ? (y(), I("div", {
|
|
6560
6619
|
key: 0,
|
|
@@ -6565,15 +6624,15 @@ function Gl(e, t, n, r, o, i) {
|
|
|
6565
6624
|
fontSize: "0px"
|
|
6566
6625
|
})
|
|
6567
6626
|
}, null, 4)) : L("", !0),
|
|
6568
|
-
(b = (m = e.builderBlock) == null ? void 0 : m.children) != null && b.length && e.fitContent ? (y(), I("div",
|
|
6627
|
+
(b = (m = e.builderBlock) == null ? void 0 : m.children) != null && b.length && e.fitContent ? (y(), I("div", Hl, [
|
|
6569
6628
|
le(e.$slots, "default")
|
|
6570
6629
|
])) : L("", !0),
|
|
6571
|
-
(g = (v = e.builderBlock) == null ? void 0 : v.children) != null && g.length && !e.fitContent ? (y(), I("div",
|
|
6630
|
+
(g = (v = e.builderBlock) == null ? void 0 : v.children) != null && g.length && !e.fitContent ? (y(), I("div", Kl, [
|
|
6572
6631
|
le(e.$slots, "default")
|
|
6573
6632
|
])) : L("", !0)
|
|
6574
6633
|
]);
|
|
6575
6634
|
}
|
|
6576
|
-
const
|
|
6635
|
+
const Gl = /* @__PURE__ */ B(Wl, [["render", zl]]), ql = () => [{
|
|
6577
6636
|
component: Za,
|
|
6578
6637
|
..._a
|
|
6579
6638
|
}, {
|
|
@@ -6586,19 +6645,19 @@ const ql = /* @__PURE__ */ N(Wl, [["render", Gl]]), _l = () => [{
|
|
|
6586
6645
|
component: vl,
|
|
6587
6646
|
...hl
|
|
6588
6647
|
}, {
|
|
6589
|
-
component:
|
|
6648
|
+
component: Rl,
|
|
6590
6649
|
...Tl
|
|
6591
6650
|
}, {
|
|
6592
6651
|
component: El,
|
|
6593
6652
|
...bl
|
|
6594
6653
|
}, {
|
|
6595
6654
|
component: jl,
|
|
6596
|
-
...
|
|
6655
|
+
...Al
|
|
6597
6656
|
}, {
|
|
6598
|
-
component:
|
|
6599
|
-
...
|
|
6657
|
+
component: Dl,
|
|
6658
|
+
...Nl
|
|
6600
6659
|
}, {
|
|
6601
|
-
component:
|
|
6660
|
+
component: Gl,
|
|
6602
6661
|
...Fl
|
|
6603
6662
|
}], jr = () => [{
|
|
6604
6663
|
component: Xo,
|
|
@@ -6608,7 +6667,7 @@ const ql = /* @__PURE__ */ N(Wl, [["render", Gl]]), _l = () => [{
|
|
|
6608
6667
|
...xa
|
|
6609
6668
|
}, {
|
|
6610
6669
|
component: la,
|
|
6611
|
-
...
|
|
6670
|
+
...Ra
|
|
6612
6671
|
}, {
|
|
6613
6672
|
component: ga,
|
|
6614
6673
|
...$a
|
|
@@ -6616,21 +6675,21 @@ const ql = /* @__PURE__ */ N(Wl, [["render", Gl]]), _l = () => [{
|
|
|
6616
6675
|
component: ba,
|
|
6617
6676
|
...Pa
|
|
6618
6677
|
}, {
|
|
6619
|
-
component:
|
|
6678
|
+
component: Ba,
|
|
6620
6679
|
...Oa
|
|
6621
6680
|
}, {
|
|
6622
|
-
component:
|
|
6681
|
+
component: $u,
|
|
6623
6682
|
...Ua
|
|
6624
6683
|
}, {
|
|
6625
6684
|
component: qa,
|
|
6626
6685
|
...Ha
|
|
6627
6686
|
}, {
|
|
6628
6687
|
component: Ma,
|
|
6629
|
-
...
|
|
6688
|
+
...Va
|
|
6630
6689
|
}, {
|
|
6631
6690
|
component: Ta,
|
|
6632
6691
|
...ka
|
|
6633
|
-
}, ...
|
|
6692
|
+
}, ...ql()], _l = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
6634
6693
|
function getAndSetVariantId() {
|
|
6635
6694
|
function setCookie(name, value, days) {
|
|
6636
6695
|
let expires = '';
|
|
@@ -6686,7 +6745,7 @@ const ql = /* @__PURE__ */ N(Wl, [["render", Gl]]), _l = () => [{
|
|
|
6686
6745
|
}).join('');
|
|
6687
6746
|
styleEl.innerHTML = newStyleStr;
|
|
6688
6747
|
}
|
|
6689
|
-
}`,
|
|
6748
|
+
}`, Jl = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
6690
6749
|
if (!navigator.cookieEnabled) {
|
|
6691
6750
|
return;
|
|
6692
6751
|
}
|
|
@@ -6724,25 +6783,25 @@ const ql = /* @__PURE__ */ N(Wl, [["render", Gl]]), _l = () => [{
|
|
|
6724
6783
|
...t,
|
|
6725
6784
|
testVariationId: t.id,
|
|
6726
6785
|
id: e == null ? void 0 : e.id
|
|
6727
|
-
})),
|
|
6786
|
+
})), Xl = ({
|
|
6728
6787
|
canTrack: e,
|
|
6729
6788
|
content: t
|
|
6730
|
-
}) => !(!(Pt(t).length > 0) || !e),
|
|
6731
|
-
window.${wo} = ${
|
|
6732
|
-
window.${Eo} = ${
|
|
6733
|
-
`,
|
|
6789
|
+
}) => !(!(Pt(t).length > 0) || !e), Yl = (e) => e === "react" || e === "reactNative", To = Yl(re), Zl = () => `
|
|
6790
|
+
window.${wo} = ${_l}
|
|
6791
|
+
window.${Eo} = ${Jl}
|
|
6792
|
+
`, Ql = (e, t) => `
|
|
6734
6793
|
window.${wo}(
|
|
6735
6794
|
"${t}",${JSON.stringify(e)}, ${To}
|
|
6736
|
-
)`,
|
|
6795
|
+
)`, eu = ({
|
|
6737
6796
|
contentId: e,
|
|
6738
6797
|
variationId: t
|
|
6739
6798
|
}) => `window.${Eo}(
|
|
6740
6799
|
"${t}", "${e}", ${To}
|
|
6741
6800
|
)`;
|
|
6742
|
-
function
|
|
6801
|
+
function Nr(e) {
|
|
6743
6802
|
return Math.round(e * 1e3) / 1e3;
|
|
6744
6803
|
}
|
|
6745
|
-
const
|
|
6804
|
+
const tu = (e, t, n = !0) => {
|
|
6746
6805
|
if (!(e instanceof HTMLElement))
|
|
6747
6806
|
return null;
|
|
6748
6807
|
let r = n ? e : e.parentElement;
|
|
@@ -6753,35 +6812,35 @@ const nu = (e, t, n = !0) => {
|
|
|
6753
6812
|
return r;
|
|
6754
6813
|
} while (r = r.parentElement);
|
|
6755
6814
|
return null;
|
|
6756
|
-
},
|
|
6815
|
+
}, nu = (e) => tu(e, (t) => {
|
|
6757
6816
|
const n = t.getAttribute("builder-id") || t.id;
|
|
6758
6817
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
6759
|
-
}),
|
|
6818
|
+
}), Br = ({
|
|
6760
6819
|
event: e,
|
|
6761
6820
|
target: t
|
|
6762
6821
|
}) => {
|
|
6763
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i =
|
|
6822
|
+
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i = Nr(r / n.width), s = Nr(o / n.height);
|
|
6764
6823
|
return {
|
|
6765
6824
|
x: i,
|
|
6766
6825
|
y: s
|
|
6767
6826
|
};
|
|
6768
|
-
},
|
|
6769
|
-
const t = e.target, n = t &&
|
|
6827
|
+
}, ru = (e) => {
|
|
6828
|
+
const t = e.target, n = t && nu(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
6770
6829
|
return {
|
|
6771
6830
|
targetBuilderElement: r || void 0,
|
|
6772
6831
|
metadata: {
|
|
6773
|
-
targetOffset: t ?
|
|
6832
|
+
targetOffset: t ? Br({
|
|
6774
6833
|
event: e,
|
|
6775
6834
|
target: t
|
|
6776
6835
|
}) : void 0,
|
|
6777
|
-
builderTargetOffset: n ?
|
|
6836
|
+
builderTargetOffset: n ? Br({
|
|
6778
6837
|
event: e,
|
|
6779
6838
|
target: n
|
|
6780
6839
|
}) : void 0,
|
|
6781
6840
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
6782
6841
|
}
|
|
6783
6842
|
};
|
|
6784
|
-
},
|
|
6843
|
+
}, ou = ["svelte", "qwik", "vue"], iu = () => ou.includes(re) && (ie() || Xr()), su = (e) => {
|
|
6785
6844
|
var i;
|
|
6786
6845
|
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);
|
|
6787
6846
|
let o = "";
|
|
@@ -6807,15 +6866,15 @@ font-weight: ${s};
|
|
|
6807
6866
|
`.trim());
|
|
6808
6867
|
}
|
|
6809
6868
|
return o;
|
|
6810
|
-
},
|
|
6869
|
+
}, au = ({
|
|
6811
6870
|
customFonts: e
|
|
6812
6871
|
}) => {
|
|
6813
6872
|
var t;
|
|
6814
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
6815
|
-
},
|
|
6873
|
+
return ((t = e == null ? void 0 : e.map((n) => su(n))) == null ? void 0 : t.join(" ")) || "";
|
|
6874
|
+
}, lu = ({
|
|
6816
6875
|
cssCode: e,
|
|
6817
6876
|
contentId: t
|
|
6818
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
6877
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", uu = `
|
|
6819
6878
|
.builder-button {
|
|
6820
6879
|
all: unset;
|
|
6821
6880
|
}
|
|
@@ -6832,7 +6891,7 @@ font-weight: ${s};
|
|
|
6832
6891
|
text-align: inherit;
|
|
6833
6892
|
font-family: inherit;
|
|
6834
6893
|
}
|
|
6835
|
-
`,
|
|
6894
|
+
`, cu = (e) => e ? "" : uu, pu = (e) => `variant-${e}`, du = j({
|
|
6836
6895
|
name: "enable-editor",
|
|
6837
6896
|
components: { DynamicDiv: St },
|
|
6838
6897
|
props: [
|
|
@@ -6859,8 +6918,8 @@ font-weight: ${s};
|
|
|
6859
6918
|
httpReqsPending: {},
|
|
6860
6919
|
clicked: !1,
|
|
6861
6920
|
builderContext: fn,
|
|
6862
|
-
needsElementRefDivForEditing:
|
|
6863
|
-
getWrapperClassName:
|
|
6921
|
+
needsElementRefDivForEditing: iu,
|
|
6922
|
+
getWrapperClassName: pu
|
|
6864
6923
|
};
|
|
6865
6924
|
},
|
|
6866
6925
|
provide() {
|
|
@@ -6874,7 +6933,7 @@ font-weight: ${s};
|
|
|
6874
6933
|
},
|
|
6875
6934
|
mounted() {
|
|
6876
6935
|
var e, t;
|
|
6877
|
-
if (
|
|
6936
|
+
if (G()) {
|
|
6878
6937
|
if (ie() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
6879
6938
|
new CustomEvent("initeditingbldr")
|
|
6880
6939
|
), this.builderContextSignal.content && yt(this.canTrack)) {
|
|
@@ -6922,7 +6981,7 @@ font-weight: ${s};
|
|
|
6922
6981
|
}
|
|
6923
6982
|
},
|
|
6924
6983
|
unmounted() {
|
|
6925
|
-
|
|
6984
|
+
G() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
6926
6985
|
"builder:component:stateChangeListenerActivated",
|
|
6927
6986
|
this.emitStateUpdate
|
|
6928
6987
|
));
|
|
@@ -7015,7 +7074,7 @@ font-weight: ${s};
|
|
|
7015
7074
|
contentId: o,
|
|
7016
7075
|
apiKey: this.apiKey,
|
|
7017
7076
|
variationId: r !== o ? r : void 0,
|
|
7018
|
-
...
|
|
7077
|
+
...ru(e),
|
|
7019
7078
|
unique: !this.clicked
|
|
7020
7079
|
});
|
|
7021
7080
|
}
|
|
@@ -7076,12 +7135,14 @@ font-weight: ${s};
|
|
|
7076
7135
|
} : {},
|
|
7077
7136
|
...this.trustedHosts ? {
|
|
7078
7137
|
trustedHosts: this.trustedHosts
|
|
7079
|
-
} : {}
|
|
7138
|
+
} : {},
|
|
7139
|
+
modelName: this.model ?? "",
|
|
7140
|
+
apiKey: this.apiKey
|
|
7080
7141
|
}), Object.values(
|
|
7081
7142
|
this.builderContextSignal.componentInfos
|
|
7082
7143
|
).forEach((t) => {
|
|
7083
7144
|
var n, r;
|
|
7084
|
-
if (!
|
|
7145
|
+
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
7085
7146
|
const o = Li(t);
|
|
7086
7147
|
(r = window.parent) == null || r.postMessage(o, "*");
|
|
7087
7148
|
}
|
|
@@ -7096,7 +7157,7 @@ font-weight: ${s};
|
|
|
7096
7157
|
`builder.overrides.${n}`
|
|
7097
7158
|
), o = t.get("apiKey") || t.get("builder.space");
|
|
7098
7159
|
(n === "BUILDER_STUDIO" || n === this.model && o === this.apiKey && (!this.content || r === this.content.id)) && Fn({
|
|
7099
|
-
model: this.model
|
|
7160
|
+
model: this.model,
|
|
7100
7161
|
apiKey: this.apiKey,
|
|
7101
7162
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
7102
7163
|
...n === "BUILDER_STUDIO" && ((i = this.context) != null && i.symbolId) ? {
|
|
@@ -7110,9 +7171,9 @@ font-weight: ${s};
|
|
|
7110
7171
|
}
|
|
7111
7172
|
}
|
|
7112
7173
|
});
|
|
7113
|
-
function
|
|
7174
|
+
function fu(e, t, n, r, o, i) {
|
|
7114
7175
|
var s, u, p;
|
|
7115
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (y(),
|
|
7176
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (y(), V(ct(e.ContentWrapper), z({
|
|
7116
7177
|
key: 0,
|
|
7117
7178
|
ref: "elementRef",
|
|
7118
7179
|
onClick: (m) => e.onClick(m),
|
|
@@ -7131,34 +7192,34 @@ function hu(e, t, n, r, o, i) {
|
|
|
7131
7192
|
_: 3
|
|
7132
7193
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : L("", !0);
|
|
7133
7194
|
}
|
|
7134
|
-
const
|
|
7195
|
+
const hu = /* @__PURE__ */ B(du, [["render", fu]]), mu = j({
|
|
7135
7196
|
name: "content-styles",
|
|
7136
7197
|
components: { InlinedStyles: Ln },
|
|
7137
7198
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
7138
7199
|
data() {
|
|
7139
7200
|
return {
|
|
7140
7201
|
injectedStyles: `
|
|
7141
|
-
${
|
|
7202
|
+
${lu({
|
|
7142
7203
|
cssCode: this.cssCode,
|
|
7143
7204
|
contentId: this.contentId
|
|
7144
7205
|
})}
|
|
7145
|
-
${
|
|
7206
|
+
${au({
|
|
7146
7207
|
customFonts: this.customFonts
|
|
7147
7208
|
})}
|
|
7148
|
-
${
|
|
7209
|
+
${cu(this.isNestedRender)}
|
|
7149
7210
|
`.trim()
|
|
7150
7211
|
};
|
|
7151
7212
|
}
|
|
7152
7213
|
});
|
|
7153
|
-
function
|
|
7154
|
-
const s =
|
|
7155
|
-
return y(),
|
|
7214
|
+
function gu(e, t, n, r, o, i) {
|
|
7215
|
+
const s = D("InlinedStyles");
|
|
7216
|
+
return y(), V(s, {
|
|
7156
7217
|
id: "builderio-content",
|
|
7157
7218
|
styles: e.injectedStyles,
|
|
7158
7219
|
nonce: e.nonce
|
|
7159
7220
|
}, null, 8, ["styles", "nonce"]);
|
|
7160
7221
|
}
|
|
7161
|
-
const
|
|
7222
|
+
const yu = /* @__PURE__ */ B(mu, [["render", gu]]), vu = ({
|
|
7162
7223
|
content: e,
|
|
7163
7224
|
data: t,
|
|
7164
7225
|
locale: n
|
|
@@ -7175,7 +7236,7 @@ const vu = /* @__PURE__ */ N(gu, [["render", yu]]), bu = ({
|
|
|
7175
7236
|
locale: n
|
|
7176
7237
|
} : {}
|
|
7177
7238
|
};
|
|
7178
|
-
},
|
|
7239
|
+
}, bu = ({
|
|
7179
7240
|
content: e,
|
|
7180
7241
|
data: t
|
|
7181
7242
|
}) => e ? {
|
|
@@ -7185,13 +7246,13 @@ const vu = /* @__PURE__ */ N(gu, [["render", yu]]), bu = ({
|
|
|
7185
7246
|
...t
|
|
7186
7247
|
},
|
|
7187
7248
|
meta: e == null ? void 0 : e.meta
|
|
7188
|
-
} : void 0,
|
|
7249
|
+
} : void 0, ku = Ho, Su = j({
|
|
7189
7250
|
name: "content-component",
|
|
7190
7251
|
components: {
|
|
7191
|
-
EnableEditor:
|
|
7252
|
+
EnableEditor: hu,
|
|
7192
7253
|
InlinedScript: Co,
|
|
7193
|
-
ContentStyles:
|
|
7194
|
-
Blocks:
|
|
7254
|
+
ContentStyles: yu,
|
|
7255
|
+
Blocks: Je,
|
|
7195
7256
|
DynamicDiv: St
|
|
7196
7257
|
},
|
|
7197
7258
|
props: [
|
|
@@ -7220,7 +7281,7 @@ const vu = /* @__PURE__ */ N(gu, [["render", yu]]), bu = ({
|
|
|
7220
7281
|
data() {
|
|
7221
7282
|
var e, t;
|
|
7222
7283
|
return {
|
|
7223
|
-
scriptStr:
|
|
7284
|
+
scriptStr: eu({
|
|
7224
7285
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
7225
7286
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
7226
7287
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -7233,19 +7294,19 @@ const vu = /* @__PURE__ */ N(gu, [["render", yu]]), bu = ({
|
|
|
7233
7294
|
(n, { component: r, ...o }) => ({
|
|
7234
7295
|
...n,
|
|
7235
7296
|
[o.name]: {
|
|
7236
|
-
component:
|
|
7237
|
-
...
|
|
7297
|
+
component: ku(r),
|
|
7298
|
+
...Nt(o)
|
|
7238
7299
|
}
|
|
7239
7300
|
}),
|
|
7240
7301
|
{}
|
|
7241
7302
|
),
|
|
7242
7303
|
builderContextSignal: {
|
|
7243
|
-
content:
|
|
7304
|
+
content: bu({
|
|
7244
7305
|
content: this.content,
|
|
7245
7306
|
data: this.data
|
|
7246
7307
|
}),
|
|
7247
7308
|
localState: void 0,
|
|
7248
|
-
rootState:
|
|
7309
|
+
rootState: vu({
|
|
7249
7310
|
content: this.content,
|
|
7250
7311
|
data: this.data,
|
|
7251
7312
|
locale: this.locale
|
|
@@ -7261,7 +7322,7 @@ const vu = /* @__PURE__ */ N(gu, [["render", yu]]), bu = ({
|
|
|
7261
7322
|
].reduce(
|
|
7262
7323
|
(n, { component: r, ...o }) => ({
|
|
7263
7324
|
...n,
|
|
7264
|
-
[o.name]:
|
|
7325
|
+
[o.name]: Nt(o)
|
|
7265
7326
|
}),
|
|
7266
7327
|
{}
|
|
7267
7328
|
),
|
|
@@ -7269,7 +7330,7 @@ const vu = /* @__PURE__ */ N(gu, [["render", yu]]), bu = ({
|
|
|
7269
7330
|
BlocksWrapper: this.blocksWrapper || "div",
|
|
7270
7331
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
7271
7332
|
nonce: this.nonce || "",
|
|
7272
|
-
model: this.model
|
|
7333
|
+
model: this.model
|
|
7273
7334
|
},
|
|
7274
7335
|
TARGET: re
|
|
7275
7336
|
};
|
|
@@ -7277,7 +7338,7 @@ const vu = /* @__PURE__ */ N(gu, [["render", yu]]), bu = ({
|
|
|
7277
7338
|
provide() {
|
|
7278
7339
|
const e = this;
|
|
7279
7340
|
return {
|
|
7280
|
-
[
|
|
7341
|
+
[Vr.key]: {
|
|
7281
7342
|
registeredComponents: e.registeredComponents
|
|
7282
7343
|
}
|
|
7283
7344
|
};
|
|
@@ -7305,9 +7366,9 @@ const vu = /* @__PURE__ */ N(gu, [["render", yu]]), bu = ({
|
|
|
7305
7366
|
}
|
|
7306
7367
|
}
|
|
7307
7368
|
});
|
|
7308
|
-
function
|
|
7309
|
-
const s =
|
|
7310
|
-
return y(),
|
|
7369
|
+
function Cu(e, t, n, r, o, i) {
|
|
7370
|
+
const s = D("InlinedScript"), u = D("ContentStyles"), p = D("Blocks"), m = D("EnableEditor");
|
|
7371
|
+
return y(), V(m, z({
|
|
7311
7372
|
apiHost: e.apiHost,
|
|
7312
7373
|
nonce: e.nonce,
|
|
7313
7374
|
content: e.content,
|
|
@@ -7328,13 +7389,13 @@ function wu(e, t, n, r, o, i) {
|
|
|
7328
7389
|
default: Ie(() => {
|
|
7329
7390
|
var b, v, g, T, U, O, Z;
|
|
7330
7391
|
return [
|
|
7331
|
-
e.isSsrAbTest ? (y(),
|
|
7392
|
+
e.isSsrAbTest ? (y(), V(s, {
|
|
7332
7393
|
key: 0,
|
|
7333
7394
|
id: "builderio-variant-visibility",
|
|
7334
7395
|
scriptStr: e.scriptStr,
|
|
7335
7396
|
nonce: e.nonce || ""
|
|
7336
7397
|
}, null, 8, ["scriptStr", "nonce"])) : L("", !0),
|
|
7337
|
-
e.TARGET !== "reactNative" ? (y(),
|
|
7398
|
+
e.TARGET !== "reactNative" ? (y(), V(u, {
|
|
7338
7399
|
key: 1,
|
|
7339
7400
|
nonce: e.nonce || "",
|
|
7340
7401
|
isNestedRender: e.isNestedRender,
|
|
@@ -7353,12 +7414,12 @@ function wu(e, t, n, r, o, i) {
|
|
|
7353
7414
|
_: 1
|
|
7354
7415
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
7355
7416
|
}
|
|
7356
|
-
const
|
|
7417
|
+
const wu = /* @__PURE__ */ B(Su, [["render", Cu]]), Eu = j({
|
|
7357
7418
|
name: "content-variants",
|
|
7358
7419
|
components: {
|
|
7359
7420
|
InlinedScript: Co,
|
|
7360
7421
|
InlinedStyles: Ln,
|
|
7361
|
-
ContentComponent:
|
|
7422
|
+
ContentComponent: wu
|
|
7362
7423
|
},
|
|
7363
7424
|
props: [
|
|
7364
7425
|
"canTrack",
|
|
@@ -7383,12 +7444,12 @@ const Eu = /* @__PURE__ */ N(Cu, [["render", wu]]), Tu = j({
|
|
|
7383
7444
|
],
|
|
7384
7445
|
data() {
|
|
7385
7446
|
return {
|
|
7386
|
-
shouldRenderVariants:
|
|
7447
|
+
shouldRenderVariants: Xl({
|
|
7387
7448
|
canTrack: yt(this.canTrack),
|
|
7388
7449
|
content: this.content
|
|
7389
7450
|
}),
|
|
7390
7451
|
TARGET: re,
|
|
7391
|
-
getInitVariantsFnsScriptString:
|
|
7452
|
+
getInitVariantsFnsScriptString: Zl,
|
|
7392
7453
|
getVariants: Pt
|
|
7393
7454
|
};
|
|
7394
7455
|
},
|
|
@@ -7397,7 +7458,7 @@ const Eu = /* @__PURE__ */ N(Cu, [["render", wu]]), Tu = j({
|
|
|
7397
7458
|
computed: {
|
|
7398
7459
|
updateCookieAndStylesScriptStr() {
|
|
7399
7460
|
var e;
|
|
7400
|
-
return
|
|
7461
|
+
return Ql(
|
|
7401
7462
|
Pt(this.content).map((t) => ({
|
|
7402
7463
|
id: t.testVariationId,
|
|
7403
7464
|
testRatio: t.testRatio
|
|
@@ -7420,10 +7481,10 @@ const Eu = /* @__PURE__ */ N(Cu, [["render", wu]]), Tu = j({
|
|
|
7420
7481
|
}
|
|
7421
7482
|
}
|
|
7422
7483
|
});
|
|
7423
|
-
function
|
|
7424
|
-
const s =
|
|
7484
|
+
function Tu(e, t, n, r, o, i) {
|
|
7485
|
+
const s = D("InlinedScript"), u = D("InlinedStyles"), p = D("ContentComponent");
|
|
7425
7486
|
return y(), I(X, null, [
|
|
7426
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (y(),
|
|
7487
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (y(), V(s, {
|
|
7427
7488
|
key: 0,
|
|
7428
7489
|
id: "builderio-init-variants-fns",
|
|
7429
7490
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
@@ -7440,7 +7501,7 @@ function Iu(e, t, n, r, o, i) {
|
|
|
7440
7501
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
7441
7502
|
nonce: e.nonce || ""
|
|
7442
7503
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
7443
|
-
(y(!0), I(X, null, Ee(e.getVariants(e.content), (m, b) => (y(),
|
|
7504
|
+
(y(!0), I(X, null, Ee(e.getVariants(e.content), (m, b) => (y(), V(p, z({
|
|
7444
7505
|
key: m.testVariationId,
|
|
7445
7506
|
apiHost: e.apiHost,
|
|
7446
7507
|
isNestedRender: e.isNestedRender,
|
|
@@ -7465,7 +7526,7 @@ function Iu(e, t, n, r, o, i) {
|
|
|
7465
7526
|
trustedHosts: e.trustedHosts
|
|
7466
7527
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
7467
7528
|
], 64)) : L("", !0),
|
|
7468
|
-
se(p,
|
|
7529
|
+
se(p, z({
|
|
7469
7530
|
apiHost: e.apiHost,
|
|
7470
7531
|
nonce: e.nonce,
|
|
7471
7532
|
isNestedRender: e.isNestedRender,
|
|
@@ -7492,7 +7553,7 @@ function Iu(e, t, n, r, o, i) {
|
|
|
7492
7553
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
7493
7554
|
], 64);
|
|
7494
7555
|
}
|
|
7495
|
-
const
|
|
7556
|
+
const Iu = /* @__PURE__ */ B(Eu, [["render", Tu]]), xu = async ({
|
|
7496
7557
|
builderContextValue: e,
|
|
7497
7558
|
symbol: t
|
|
7498
7559
|
}) => {
|
|
@@ -7512,7 +7573,7 @@ const xu = /* @__PURE__ */ N(Tu, [["render", Iu]]), Au = async ({
|
|
|
7512
7573
|
});
|
|
7513
7574
|
}, Ru = j({
|
|
7514
7575
|
name: "builder-symbol",
|
|
7515
|
-
components: { ContentVariants:
|
|
7576
|
+
components: { ContentVariants: Iu, DynamicDiv: St },
|
|
7516
7577
|
props: [
|
|
7517
7578
|
"symbol",
|
|
7518
7579
|
"attributes",
|
|
@@ -7561,7 +7622,7 @@ const xu = /* @__PURE__ */ N(Tu, [["render", Iu]]), Au = async ({
|
|
|
7561
7622
|
},
|
|
7562
7623
|
methods: {
|
|
7563
7624
|
setContent() {
|
|
7564
|
-
this.contentToUse ||
|
|
7625
|
+
this.contentToUse || xu({
|
|
7565
7626
|
symbol: this.symbol,
|
|
7566
7627
|
builderContextValue: this.builderContext
|
|
7567
7628
|
}).then((e) => {
|
|
@@ -7570,10 +7631,10 @@ const xu = /* @__PURE__ */ N(Tu, [["render", Iu]]), Au = async ({
|
|
|
7570
7631
|
}
|
|
7571
7632
|
}
|
|
7572
7633
|
});
|
|
7573
|
-
function
|
|
7634
|
+
function Au(e, t, n, r, o, i) {
|
|
7574
7635
|
var u, p, m, b, v;
|
|
7575
|
-
const s =
|
|
7576
|
-
return y(), I("div",
|
|
7636
|
+
const s = D("ContentVariants");
|
|
7637
|
+
return y(), I("div", z({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, de(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
7577
7638
|
se(s, {
|
|
7578
7639
|
nonce: e.builderContext.nonce,
|
|
7579
7640
|
isNestedRender: !0,
|
|
@@ -7590,7 +7651,7 @@ function $u(e, t, n, r, o, i) {
|
|
|
7590
7651
|
...(b = (m = e.contentToUse) == null ? void 0 : m.data) == null ? void 0 : b.state
|
|
7591
7652
|
},
|
|
7592
7653
|
canTrack: e.builderContext.canTrack,
|
|
7593
|
-
model: (v = e.symbol) == null ? void 0 : v.model,
|
|
7654
|
+
model: ((v = e.symbol) == null ? void 0 : v.model) ?? "",
|
|
7594
7655
|
content: e.contentToUse,
|
|
7595
7656
|
linkComponent: e.builderLinkComponent,
|
|
7596
7657
|
blocksWrapper: e.blocksWrapper,
|
|
@@ -7598,7 +7659,7 @@ function $u(e, t, n, r, o, i) {
|
|
|
7598
7659
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
7599
7660
|
], 16);
|
|
7600
7661
|
}
|
|
7601
|
-
const
|
|
7662
|
+
const $u = /* @__PURE__ */ B(Ru, [["render", Au]]);
|
|
7602
7663
|
export {
|
|
7603
7664
|
Is as A,
|
|
7604
7665
|
ko as B,
|
|
@@ -7606,37 +7667,37 @@ export {
|
|
|
7606
7667
|
xs as D,
|
|
7607
7668
|
Fn as E,
|
|
7608
7669
|
la as F,
|
|
7609
|
-
|
|
7610
|
-
|
|
7670
|
+
Ou as G,
|
|
7671
|
+
Wu as H,
|
|
7611
7672
|
ga as I,
|
|
7612
7673
|
ba as S,
|
|
7613
7674
|
re as T,
|
|
7614
|
-
|
|
7675
|
+
Gl as V,
|
|
7615
7676
|
Ln as _,
|
|
7616
|
-
|
|
7617
|
-
|
|
7677
|
+
Du as a,
|
|
7678
|
+
Lu as b,
|
|
7618
7679
|
je as c,
|
|
7619
7680
|
Wn as d,
|
|
7620
|
-
|
|
7681
|
+
B as e,
|
|
7621
7682
|
kt as f,
|
|
7622
7683
|
ta as g,
|
|
7623
|
-
|
|
7684
|
+
Fu as h,
|
|
7624
7685
|
Ot as i,
|
|
7625
7686
|
fn as j,
|
|
7626
7687
|
Xo as k,
|
|
7627
|
-
|
|
7688
|
+
$u as l,
|
|
7628
7689
|
qa as m,
|
|
7629
|
-
|
|
7630
|
-
|
|
7690
|
+
Je as n,
|
|
7691
|
+
Iu as o,
|
|
7631
7692
|
ie as p,
|
|
7632
7693
|
Xr as q,
|
|
7633
7694
|
Li as r,
|
|
7634
|
-
|
|
7695
|
+
Uu as s,
|
|
7635
7696
|
Hi as t,
|
|
7636
|
-
|
|
7697
|
+
ju as u,
|
|
7637
7698
|
Yr as v,
|
|
7638
|
-
|
|
7699
|
+
ku as w,
|
|
7639
7700
|
Nu as x,
|
|
7640
|
-
|
|
7701
|
+
Bu as y,
|
|
7641
7702
|
Vu as z
|
|
7642
7703
|
};
|