@builder.io/sdk-vue 4.0.1 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{awaiter-wbBKeVzr.cjs → awaiter-5OhN8ApS.cjs} +1 -1
- package/lib/browser/{awaiter-nAWFNqrx.js → awaiter-T635T5iI.js} +1 -1
- package/lib/browser/{block-styles-M0XEa30c.js → block-styles-Mji_WN2o.js} +1 -1
- package/lib/browser/{block-styles-qBk6SyHU.cjs → block-styles-pUFf51sH.cjs} +1 -1
- package/lib/browser/{block-wrapper-ZjrIzk0G.cjs → block-wrapper-soT7ooMT.cjs} +1 -1
- package/lib/browser/{block-wrapper-f0180-Dt.js → block-wrapper-yV8JarXL.js} +3 -3
- package/lib/browser/blocks/custom-code/custom-code.vue.d.ts +7 -1
- package/lib/browser/{component-ref-VMpgtIT8.cjs → component-ref-ShKo3K9p.cjs} +1 -1
- package/lib/browser/{component-ref-tnogP_WI.js → component-ref-ys0ueCcY.js} +3 -3
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/browser/components/content-variants/inlined-fns.d.ts +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-VbdeRBq9.js → get-block-properties-M5SrUo_n.js} +1 -1
- package/lib/browser/{get-block-properties-kgoNqJkv.cjs → get-block-properties-PK3c3XD7.cjs} +1 -1
- package/lib/browser/{index-es6BsrIz.cjs → index-WB_-12va.cjs} +26 -23
- package/lib/browser/{index-hYyYGFKw.js → index-zpEHIUKh.js} +264 -230
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-wzdH4zkn.cjs → repeated-block-TFr4BLwy.cjs} +1 -1
- package/lib/browser/{repeated-block-jvm1EXAe.js → repeated-block-mSIesjGs.js} +2 -2
- package/lib/edge/{awaiter-aRh0Pj94.cjs → awaiter-aKsQoHtg.cjs} +1 -1
- package/lib/edge/{awaiter-hkMTEA9V.js → awaiter-tQgudeqC.js} +1 -1
- package/lib/edge/{block-styles-AI5sotc1.cjs → block-styles-ZHZgmvQd.cjs} +1 -1
- package/lib/edge/{block-styles-LPJy6dQs.js → block-styles-s3hCMtmI.js} +1 -1
- package/lib/{node/block-wrapper-JeY6E7Bj.cjs → edge/block-wrapper-K7pkIgyg.cjs} +1 -1
- package/lib/edge/{block-wrapper-JuWdKgUU.js → block-wrapper-uHIPKxTk.js} +3 -3
- package/lib/edge/blocks/custom-code/custom-code.vue.d.ts +7 -1
- package/lib/edge/{component-ref-P4gIixq8.js → component-ref-G9jxu6eG.js} +3 -3
- package/lib/edge/{component-ref-puTtsezh.cjs → component-ref-jnRNUQoG.cjs} +1 -1
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/edge/components/content-variants/inlined-fns.d.ts +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-AMnn5X6R.js → get-block-properties-1P58e_jB.js} +1 -1
- package/lib/edge/{get-block-properties-5osCAaC3.cjs → get-block-properties-IhQE3dQp.cjs} +1 -1
- package/lib/edge/{index-HO4jmmvI.js → index-DDqUrQvk.js} +493 -459
- package/lib/edge/{index-S_6GpGNI.cjs → index-h6rwtSlC.cjs} +26 -23
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-IFYfMg17.js → repeated-block-Ga7BjpSB.js} +2 -2
- package/lib/{node/repeated-block-7PPwMKZ7.cjs → edge/repeated-block-Q0hp4buX.cjs} +1 -1
- package/lib/node/{awaiter-Z7o9s6gq.js → awaiter-sgWllbNA.js} +1 -1
- package/lib/node/{awaiter-t8znoZtH.cjs → awaiter-zEHHCWcp.cjs} +1 -1
- package/lib/node/{block-styles-shrS5yAc.js → block-styles-gvP8QXL9.js} +1 -1
- package/lib/node/{block-styles-cgq-AQI-.cjs → block-styles-wNanyMrr.cjs} +1 -1
- package/lib/{edge/block-wrapper-V2J7FjnE.cjs → node/block-wrapper-4yfVr0a3.cjs} +1 -1
- package/lib/node/{block-wrapper-fIn5jGPq.js → block-wrapper-tAtRAAzI.js} +3 -3
- package/lib/node/blocks/custom-code/custom-code.vue.d.ts +7 -1
- package/lib/node/{component-ref-FgrBreGf.cjs → component-ref-JSgpIHbc.cjs} +1 -1
- package/lib/node/{component-ref-M4gAxFd5.js → component-ref-S9nt10e2.js} +3 -3
- package/lib/node/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/node/components/content-variants/inlined-fns.d.ts +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-VbZkXgcG.cjs → get-block-properties-9kc_Rs8t.cjs} +1 -1
- package/lib/node/{get-block-properties-AfiBthZ9.js → get-block-properties-mPFnCMMe.js} +1 -1
- package/lib/node/{index-hyrTHgHn.cjs → index-Sccx8oZR.cjs} +19 -16
- package/lib/node/{index-mcalyz7B.js → index-fDG3wEOU.js} +293 -259
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/{edge/repeated-block-KY5UOI15.cjs → node/repeated-block-Z_oZFejE.cjs} +1 -1
- package/lib/node/{repeated-block-xkdGhBrs.js → repeated-block-ks0MXAV1.js} +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as N, openBlock as y, createElementBlock as I, Fragment as X, createBlock as
|
|
1
|
+
import { defineComponent as N, openBlock as y, createElementBlock as I, Fragment as X, createBlock as D, resolveDynamicComponent as ct, mergeProps as z, toHandlers as de, withCtx as Ie, renderSlot as ue, resolveComponent as V, createTextVNode as Mo, toDisplayString as Bt, defineAsyncComponent as ot, createVNode as ae, 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 = {};
|
|
@@ -23,25 +23,25 @@ const Go = N({
|
|
|
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(), D(ct(e.TagName), z({ key: 1 }, e.attributes, de(e.actionAttributes)), null, 16)) : (y(), I(X, { key: 0 }, [
|
|
27
|
+
typeof e.TagName == "string" ? (y(), D(ct(e.TagName), z({ key: 0 }, e.attributes, de(e.actionAttributes)), {
|
|
28
28
|
default: Ie(() => [
|
|
29
|
-
|
|
29
|
+
ue(e.$slots, "default")
|
|
30
30
|
]),
|
|
31
31
|
_: 3
|
|
32
|
-
}, 16)) : (y(),
|
|
32
|
+
}, 16)) : (y(), D(ct(e.TagName), z({ key: 1 }, e.attributes, de(e.actionAttributes)), {
|
|
33
33
|
default: Ie(() => [
|
|
34
|
-
|
|
34
|
+
ue(e.$slots, "default")
|
|
35
35
|
]),
|
|
36
36
|
_: 3
|
|
37
37
|
}, 16))
|
|
38
38
|
], 64));
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const Sn = /* @__PURE__ */ B(Go, [["render", qo]]), Nu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41
41
|
__proto__: null,
|
|
42
|
-
default:
|
|
43
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
44
|
-
switch (
|
|
42
|
+
default: Sn
|
|
43
|
+
}, Symbol.toStringTag, { value: "Module" })), ee = "vue", Ot = () => {
|
|
44
|
+
switch (ee) {
|
|
45
45
|
case "react":
|
|
46
46
|
case "reactNative":
|
|
47
47
|
case "rsc":
|
|
@@ -55,7 +55,7 @@ const kn = /* @__PURE__ */ B(Go, [["render", qo]]), Ou = /* @__PURE__ */ Object.
|
|
|
55
55
|
}
|
|
56
56
|
}, _o = N({
|
|
57
57
|
name: "builder-button",
|
|
58
|
-
components: { DynamicRenderer:
|
|
58
|
+
components: { DynamicRenderer: Sn },
|
|
59
59
|
props: [
|
|
60
60
|
"attributes",
|
|
61
61
|
"link",
|
|
@@ -83,8 +83,8 @@ const kn = /* @__PURE__ */ B(Go, [["render", qo]]), Ou = /* @__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 = V("DynamicRenderer");
|
|
87
|
+
return y(), D(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)
|
|
@@ -95,7 +95,7 @@ function Jo(e, t, n, r, o, i) {
|
|
|
95
95
|
_: 1
|
|
96
96
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
97
97
|
}
|
|
98
|
-
const Xo = /* @__PURE__ */ B(_o, [["render", Jo]]), Yo = Symbol(),
|
|
98
|
+
const Xo = /* @__PURE__ */ B(_o, [["render", Jo]]), Yo = Symbol(), hn = {
|
|
99
99
|
Builder: {
|
|
100
100
|
content: null,
|
|
101
101
|
context: {},
|
|
@@ -113,15 +113,15 @@ const Xo = /* @__PURE__ */ B(_o, [["render", Jo]]), Yo = Symbol(), fn = {
|
|
|
113
113
|
model: ""
|
|
114
114
|
},
|
|
115
115
|
key: Yo
|
|
116
|
-
}, Zo = Symbol(),
|
|
116
|
+
}, Zo = Symbol(), Dr = {
|
|
117
117
|
Components: { registeredComponents: {} },
|
|
118
118
|
key: Zo
|
|
119
|
-
}, $t = "[Builder.io]: ",
|
|
119
|
+
}, $t = "[Builder.io]: ", ie = {
|
|
120
120
|
log: (...e) => console.log($t, ...e),
|
|
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
|
+
}, Vr = (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
|
};
|
|
@@ -137,7 +137,7 @@ const Qo = (e) => {
|
|
|
137
137
|
function ei() {
|
|
138
138
|
return G() && window.self !== window.top;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function re(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
|
}
|
|
@@ -165,7 +165,7 @@ const ti = () => {
|
|
|
165
165
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
166
166
|
},
|
|
167
167
|
any() {
|
|
168
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
168
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || ee === "reactNative";
|
|
169
169
|
}
|
|
170
170
|
}, n = e.match(/Tablet|iPad/i), r = ti();
|
|
171
171
|
return {
|
|
@@ -186,14 +186,14 @@ const ti = () => {
|
|
|
186
186
|
context: t,
|
|
187
187
|
event: n
|
|
188
188
|
}), ri = () => ({
|
|
189
|
-
isEditing:
|
|
189
|
+
isEditing: re(),
|
|
190
190
|
isBrowser: G(),
|
|
191
191
|
isServer: !G(),
|
|
192
192
|
getUserAttributes: () => Lr()
|
|
193
193
|
}), oi = (e, {
|
|
194
194
|
isExpression: t = !0
|
|
195
195
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
196
|
-
function
|
|
196
|
+
function Cn({
|
|
197
197
|
rootState: e,
|
|
198
198
|
localState: t,
|
|
199
199
|
rootSetState: n
|
|
@@ -203,7 +203,7 @@ function Sn({
|
|
|
203
203
|
if (t && o in t)
|
|
204
204
|
return t[o];
|
|
205
205
|
const i = r[o];
|
|
206
|
-
return typeof i == "object" && i !== null ?
|
|
206
|
+
return typeof i == "object" && i !== null ? Cn({
|
|
207
207
|
rootState: i,
|
|
208
208
|
localState: void 0,
|
|
209
209
|
rootSetState: n ? (s) => {
|
|
@@ -231,7 +231,7 @@ const ii = ({
|
|
|
231
231
|
builder: t,
|
|
232
232
|
context: n,
|
|
233
233
|
event: r,
|
|
234
|
-
state:
|
|
234
|
+
state: Cn({
|
|
235
235
|
rootState: s,
|
|
236
236
|
localState: o,
|
|
237
237
|
rootSetState: i
|
|
@@ -272,15 +272,15 @@ var j, si = function(e) {
|
|
|
272
272
|
this.line = Be, this.ab = d - be;
|
|
273
273
|
}
|
|
274
274
|
function s(a, l) {
|
|
275
|
-
Fe = d, A.C && (
|
|
275
|
+
Fe = d, A.C && (qt = new i()), x = a, p(), le = l, Qe = a.m;
|
|
276
276
|
}
|
|
277
277
|
function u() {
|
|
278
|
-
for (var a = d, l = A.va && A.C && new i(), c = k.charCodeAt(d += 2); d <
|
|
278
|
+
for (var a = d, l = A.va && A.C && new i(), c = k.charCodeAt(d += 2); d < Ve && 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 < Ve; ) {
|
|
284
284
|
var a = k.charCodeAt(d);
|
|
285
285
|
if (a === 32)
|
|
286
286
|
++d;
|
|
@@ -324,9 +324,9 @@ var j, si = function(e) {
|
|
|
324
324
|
case 44:
|
|
325
325
|
return ++d, s($e);
|
|
326
326
|
case 91:
|
|
327
|
-
return ++d, s(nn);
|
|
328
|
-
case 93:
|
|
329
327
|
return ++d, s(rn);
|
|
328
|
+
case 93:
|
|
329
|
+
return ++d, s(on);
|
|
330
330
|
case 123:
|
|
331
331
|
return ++d, s(nt);
|
|
332
332
|
case 125:
|
|
@@ -354,7 +354,7 @@ var j, si = function(e) {
|
|
|
354
354
|
case 39:
|
|
355
355
|
d++;
|
|
356
356
|
for (var l = ""; ; ) {
|
|
357
|
-
d >=
|
|
357
|
+
d >= Ve && r(q, "Unterminated string constant");
|
|
358
358
|
var c = k.charCodeAt(d);
|
|
359
359
|
if (c === a) {
|
|
360
360
|
++d, s(Tt, l);
|
|
@@ -366,7 +366,7 @@ var j, si = function(e) {
|
|
|
366
366
|
for (f && (f = f[0]); f && 255 < parseInt(f, 8); )
|
|
367
367
|
f = f.slice(0, -1);
|
|
368
368
|
if (f === "0" && (f = null), ++d, f)
|
|
369
|
-
|
|
369
|
+
se && r(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(f, 8)), d += f.length - 1;
|
|
370
370
|
else
|
|
371
371
|
switch (c) {
|
|
372
372
|
case 110:
|
|
@@ -444,10 +444,10 @@ var j, si = function(e) {
|
|
|
444
444
|
return !1;
|
|
445
445
|
}
|
|
446
446
|
function b(a) {
|
|
447
|
-
if (a ? d = q + 1 : q = d, A.C && (
|
|
447
|
+
if (a ? d = q + 1 : q = d, A.C && (Gt = new i()), a)
|
|
448
448
|
return g();
|
|
449
|
-
if (d >=
|
|
450
|
-
return s(
|
|
449
|
+
if (d >= Ve)
|
|
450
|
+
return s(Xt);
|
|
451
451
|
if (a = k.charCodeAt(d), n(a) || a === 92)
|
|
452
452
|
return Re();
|
|
453
453
|
if (m(a) === !1) {
|
|
@@ -462,7 +462,7 @@ var j, si = function(e) {
|
|
|
462
462
|
}
|
|
463
463
|
function g() {
|
|
464
464
|
for (var a, l, c = d; ; ) {
|
|
465
|
-
d >=
|
|
465
|
+
d >= Ve && r(c, "Unterminated regexp");
|
|
466
466
|
var f = k.charAt(d);
|
|
467
467
|
if (Rt.test(f) && r(c, "Unterminated regexp"), a)
|
|
468
468
|
a = !1;
|
|
@@ -487,10 +487,10 @@ var j, si = function(e) {
|
|
|
487
487
|
}
|
|
488
488
|
function T(a, l) {
|
|
489
489
|
for (var c = d, f = 0, R = l === void 0 ? 1 / 0 : l, _ = 0; _ < R; ++_) {
|
|
490
|
-
var
|
|
491
|
-
if (
|
|
490
|
+
var te = k.charCodeAt(d);
|
|
491
|
+
if (te = 97 <= te ? te - 97 + 10 : 65 <= te ? te - 65 + 10 : 48 <= te && 57 >= te ? te - 48 : 1 / 0, te >= a)
|
|
492
492
|
break;
|
|
493
|
-
++d, f = f * a +
|
|
493
|
+
++d, f = f * a + te;
|
|
494
494
|
}
|
|
495
495
|
return d === c || l !== void 0 && d - c !== l ? null : f;
|
|
496
496
|
}
|
|
@@ -498,7 +498,7 @@ var j, si = function(e) {
|
|
|
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
500
|
var R;
|
|
501
|
-
c ? R = parseFloat(a) : f && a.length !== 1 ? /[89]/.test(a) ||
|
|
501
|
+
c ? R = parseFloat(a) : f && a.length !== 1 ? /[89]/.test(a) || se ? r(l, "Invalid number") : R = parseInt(a, 8) : R = parseInt(a, 10), s(tt, R);
|
|
502
502
|
}
|
|
503
503
|
function O(a) {
|
|
504
504
|
return a = T(16, a), a === null && r(q, "Bad character escape sequence"), a;
|
|
@@ -521,34 +521,34 @@ var j, si = function(e) {
|
|
|
521
521
|
}
|
|
522
522
|
function Re() {
|
|
523
523
|
var a = Z(), l = We;
|
|
524
|
-
!Me &&
|
|
524
|
+
!Me && Vo(a) && (l = xo[a]), s(l, a);
|
|
525
525
|
}
|
|
526
526
|
function $() {
|
|
527
|
-
|
|
527
|
+
_t = q, Ae = Fe, Jt = qt, b();
|
|
528
528
|
}
|
|
529
529
|
function F(a) {
|
|
530
|
-
if (
|
|
530
|
+
if (se = a, d = q, A.C)
|
|
531
531
|
for (; d < be; )
|
|
532
532
|
be = k.lastIndexOf(`
|
|
533
533
|
`, be - 2) + 1, --Be;
|
|
534
534
|
p(), b();
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function De() {
|
|
537
537
|
this.type = null, this.start = q, this.end = null;
|
|
538
538
|
}
|
|
539
539
|
function me() {
|
|
540
|
-
this.start =
|
|
540
|
+
this.start = Gt, this.end = null, zt && (this.source = zt);
|
|
541
541
|
}
|
|
542
542
|
function M() {
|
|
543
|
-
var a = new
|
|
543
|
+
var a = new De();
|
|
544
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
|
|
547
|
+
var l = new De();
|
|
548
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 = Ae, A.C && (a.X.end =
|
|
551
|
+
return a.type = l, a.end = Ae, A.C && (a.X.end = Jt), 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,7 +557,7 @@ var j, si = function(e) {
|
|
|
557
557
|
return x === a ? ($(), !0) : !1;
|
|
558
558
|
}
|
|
559
559
|
function Ct() {
|
|
560
|
-
return !A.fc && (x ===
|
|
560
|
+
return !A.fc && (x === Xt || x === Le || Rt.test(k.slice(Ae, q)));
|
|
561
561
|
}
|
|
562
562
|
function je() {
|
|
563
563
|
W(Se) || Ct() || ye();
|
|
@@ -569,16 +569,16 @@ var j, si = function(e) {
|
|
|
569
569
|
r(q, "Unexpected token");
|
|
570
570
|
}
|
|
571
571
|
function wt(a) {
|
|
572
|
-
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"),
|
|
572
|
+
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), se && a.type === "Identifier" && xt(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
573
573
|
}
|
|
574
574
|
function pe() {
|
|
575
|
-
(x === fr || x === Ue &&
|
|
575
|
+
(x === fr || x === Ue && le === "/=") && b(!0);
|
|
576
576
|
var a = x, l = M();
|
|
577
577
|
switch (a) {
|
|
578
|
-
case
|
|
578
|
+
case Yt:
|
|
579
579
|
case _n:
|
|
580
580
|
$();
|
|
581
|
-
var c = a ===
|
|
581
|
+
var c = a === Yt;
|
|
582
582
|
W(Se) || Ct() ? l.label = null : x !== We ? ye() : (l.label = ve(), je());
|
|
583
583
|
for (var f = 0; f < K.length; ++f) {
|
|
584
584
|
var R = K[f];
|
|
@@ -589,40 +589,40 @@ var j, si = function(e) {
|
|
|
589
589
|
case Jn:
|
|
590
590
|
return $(), je(), E(l, "DebuggerStatement");
|
|
591
591
|
case Yn:
|
|
592
|
-
return $(), K.push(
|
|
592
|
+
return $(), K.push(sn), l.body = pe(), K.pop(), H(nn), l.test = Xe(), je(), E(l, "DoWhileStatement");
|
|
593
593
|
case er:
|
|
594
|
-
return $(), K.push(
|
|
595
|
-
case
|
|
596
|
-
return $(),
|
|
594
|
+
return $(), K.push(sn), H(ke), x === Se ? Ft(l, null) : x === tn ? (a = M(), $(), Kn(a, !0), E(a, "VariableDeclaration"), a.fa.length === 1 && W(It) ? Hn(l, a) : Ft(l, a)) : (a = Q(!1, !0), W(It) ? (wt(a), Hn(l, a)) : Ft(l, a));
|
|
595
|
+
case Qt:
|
|
596
|
+
return $(), Ht(l, !0);
|
|
597
597
|
case tr:
|
|
598
598
|
return $(), l.test = Xe(), l.da = pe(), l.alternate = W(Zn) ? pe() : null, E(l, "IfStatement");
|
|
599
599
|
case nr:
|
|
600
600
|
return et || A.Ib || r(q, "'return' outside of function"), $(), W(Se) || Ct() ? l.K = null : (l.K = Q(), je()), E(l, "ReturnStatement");
|
|
601
|
-
case
|
|
601
|
+
case en:
|
|
602
602
|
for ($(), l.Qb = Xe(), l.tb = [], H(nt), K.push(Lo); x !== Le; )
|
|
603
|
-
x ===
|
|
603
|
+
x === Zt || x === Xn ? (a = x === Zt, f && E(f, "SwitchCase"), l.tb.push(f = M()), f.da = [], $(), a ? f.test = Q() : (c && r(_t, "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
606
|
return $(), Rt.test(k.slice(Ae, q)) && r(Ae, "Illegal newline after throw"), l.K = Q(), je(), E(l, "ThrowStatement");
|
|
607
607
|
case or:
|
|
608
|
-
return $(), l.block = Ye(), l.Ea = null, x === qn && (a = M(), $(), H(ke), a.Ua = ve(),
|
|
609
|
-
case en:
|
|
610
|
-
return $(), Kn(l), je(), E(l, "VariableDeclaration");
|
|
608
|
+
return $(), l.block = Ye(), l.Ea = null, x === qn && (a = M(), $(), H(ke), a.Ua = ve(), se && 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");
|
|
611
609
|
case tn:
|
|
612
|
-
return $(),
|
|
610
|
+
return $(), Kn(l), je(), E(l, "VariableDeclaration");
|
|
611
|
+
case nn:
|
|
612
|
+
return $(), l.test = Xe(), K.push(sn), l.body = pe(), K.pop(), E(l, "WhileStatement");
|
|
613
613
|
case ir:
|
|
614
|
-
return
|
|
614
|
+
return se && r(q, "'with' in strict mode"), $(), l.object = Xe(), l.body = pe(), E(l, "WithStatement");
|
|
615
615
|
case nt:
|
|
616
616
|
return Ye();
|
|
617
617
|
case Se:
|
|
618
618
|
return $(), E(l, "EmptyStatement");
|
|
619
619
|
default:
|
|
620
|
-
if (c =
|
|
620
|
+
if (c = le, R = Q(), a === We && R.type === "Identifier" && W(rt)) {
|
|
621
621
|
for (f = 0; f < K.length; ++f)
|
|
622
622
|
K[f].name === c && r(R.start, "Label '" + c + "' is already declared");
|
|
623
623
|
return K.push({
|
|
624
624
|
name: c,
|
|
625
|
-
kind: x.W ? "loop" : x ===
|
|
625
|
+
kind: x.W ? "loop" : x === en ? "switch" : null
|
|
626
626
|
}), l.body = pe(), K.pop(), l.label = R, E(l, "LabeledStatement");
|
|
627
627
|
}
|
|
628
628
|
return l.la = R, je(), E(l, "ExpressionStatement");
|
|
@@ -645,7 +645,7 @@ var j, si = function(e) {
|
|
|
645
645
|
}
|
|
646
646
|
return f && !_ && F(!1), E(l, "BlockStatement");
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Ft(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) {
|
|
@@ -654,42 +654,42 @@ var j, si = function(e) {
|
|
|
654
654
|
function Kn(a, l) {
|
|
655
655
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
656
656
|
var c = M();
|
|
657
|
-
if (c.id = ve(),
|
|
657
|
+
if (c.id = ve(), se && xt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = W(hr) ? Q(!0, l) : null, a.fa.push(E(c, "VariableDeclarator")), !W($e))
|
|
658
658
|
break;
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
function Q(a, l) {
|
|
662
|
-
var c =
|
|
662
|
+
var c = Wt(l);
|
|
663
663
|
if (!a && x === $e) {
|
|
664
664
|
for (a = ce(c), a.xb = [c]; W($e); )
|
|
665
|
-
a.xb.push(
|
|
665
|
+
a.xb.push(Wt(l));
|
|
666
666
|
return E(a, "SequenceExpression");
|
|
667
667
|
}
|
|
668
668
|
return c;
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
var l =
|
|
670
|
+
function Wt(a) {
|
|
671
|
+
var l = Lt(Mt(), -1, a);
|
|
672
672
|
if (W(dr)) {
|
|
673
673
|
var c = ce(l);
|
|
674
674
|
c.test = l, c.da = Q(!0), H(rt), c.alternate = Q(!0, a), l = E(c, "ConditionalExpression");
|
|
675
675
|
}
|
|
676
|
-
return x.Cb ? (c = ce(l), c.operator =
|
|
676
|
+
return x.Cb ? (c = ce(l), c.operator = le, c.left = l, $(), c.right = Wt(a), wt(l), E(c, "AssignmentExpression")) : l;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function Lt(a, l, c) {
|
|
679
679
|
var f = x.L;
|
|
680
680
|
if (f !== null && (!c || x !== It) && f > l) {
|
|
681
681
|
var R = ce(a);
|
|
682
|
-
return R.left = a, R.operator =
|
|
682
|
+
return R.left = a, R.operator = le, a = x, $(), R.right = Lt(Mt(), f, c), f = E(R, a === gr || a === yr ? "LogicalExpression" : "BinaryExpression"), Lt(f, l, c);
|
|
683
683
|
}
|
|
684
684
|
return a;
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function Mt() {
|
|
687
687
|
if (x.prefix) {
|
|
688
688
|
var a = M(), l = x.$b;
|
|
689
|
-
return a.operator =
|
|
689
|
+
return a.operator = le, Qe = a.prefix = !0, $(), a.K = Mt(), l ? wt(a.K) : se && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), E(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
690
690
|
}
|
|
691
691
|
for (l = Ze(Et()); x.cc && !Ct(); )
|
|
692
|
-
a = ce(l), a.operator =
|
|
692
|
+
a = ce(l), a.operator = le, a.prefix = !1, a.K = l, wt(l), $(), l = E(a, "UpdateExpression");
|
|
693
693
|
return l;
|
|
694
694
|
}
|
|
695
695
|
function Ze(a, l) {
|
|
@@ -697,7 +697,7 @@ var j, si = function(e) {
|
|
|
697
697
|
var c = ce(a);
|
|
698
698
|
return c.object = a, c.Wa = ve(!0), c.bb = !1, Ze(E(c, "MemberExpression"), l);
|
|
699
699
|
}
|
|
700
|
-
return W(
|
|
700
|
+
return W(rn) ? (c = ce(a), c.object = a, c.Wa = Q(), c.bb = !0, H(on), Ze(E(c, "MemberExpression"), l)) : !l && W(ke) ? (c = ce(a), c.callee = a, c.arguments = Kt(fe, !1), Ze(E(c, "CallExpression"), l)) : a;
|
|
701
701
|
}
|
|
702
702
|
function Et() {
|
|
703
703
|
switch (x) {
|
|
@@ -709,19 +709,19 @@ var j, si = function(e) {
|
|
|
709
709
|
case tt:
|
|
710
710
|
case Tt:
|
|
711
711
|
case Gn:
|
|
712
|
-
return a = M(), a.value =
|
|
712
|
+
return a = M(), a.value = le, 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
|
-
a =
|
|
718
|
+
a = Gt;
|
|
719
719
|
var l = q;
|
|
720
720
|
$();
|
|
721
721
|
var c = Q();
|
|
722
|
-
return c.start = l, c.end = Fe, A.C && (c.X.start = a, c.X.end =
|
|
723
|
-
case
|
|
724
|
-
return a = M(), $(), a.elements =
|
|
722
|
+
return c.start = l, c.end = Fe, A.C && (c.X.start = a, c.X.end = qt), A.Xa && (c.j = [l, Fe]), H(fe), c;
|
|
723
|
+
case rn:
|
|
724
|
+
return a = M(), $(), a.elements = Kt(on, !0, !0), E(a, "ArrayExpression");
|
|
725
725
|
case nt:
|
|
726
726
|
for (a = M(), l = !0, c = !1, a.h = [], $(); !W(Le); ) {
|
|
727
727
|
if (l)
|
|
@@ -735,33 +735,33 @@ var j, si = function(e) {
|
|
|
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() : (R = c = !0, _ = f.kind = f.key.name, f.key = x === tt || x === Tt ? Et() : ve(!0), x !== ke && ye(), f.value =
|
|
739
|
-
if (f.key.type === "Identifier" && (
|
|
740
|
-
for (var
|
|
741
|
-
var He = a.h[
|
|
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 = Ht(M(), !1));
|
|
739
|
+
if (f.key.type === "Identifier" && (se || c))
|
|
740
|
+
for (var te = 0; te < a.h.length; ++te) {
|
|
741
|
+
var He = a.h[te];
|
|
742
742
|
if (He.key.name === f.key.name) {
|
|
743
|
-
var
|
|
744
|
-
|
|
743
|
+
var an = _ === He.kind || R && He.kind === "init" || _ === "init" && (He.kind === "get" || He.kind === "set");
|
|
744
|
+
an && !se && _ === "init" && He.kind === "init" && (an = !1), an && r(f.key.start, "Redefinition of property");
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
747
|
a.h.push(f);
|
|
748
748
|
}
|
|
749
749
|
return E(a, "ObjectExpression");
|
|
750
|
-
case
|
|
751
|
-
return a = M(), $(),
|
|
750
|
+
case Qt:
|
|
751
|
+
return a = M(), $(), Ht(a, !1);
|
|
752
752
|
case sr:
|
|
753
|
-
return a = M(), $(), a.callee = Ze(Et(), !0), a.arguments = W(ke) ?
|
|
753
|
+
return a = M(), $(), a.callee = Ze(Et(), !0), a.arguments = W(ke) ? Kt(fe, !1) : Io, E(a, "NewExpression");
|
|
754
754
|
}
|
|
755
755
|
ye();
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function Ht(a, l) {
|
|
758
758
|
x === We ? a.id = ve() : l ? ye() : a.id = null, a.oa = [];
|
|
759
759
|
var c = !0;
|
|
760
760
|
for (H(ke); !W(fe); )
|
|
761
761
|
c ? c = !1 : H($e), a.oa.push(ve());
|
|
762
762
|
c = et;
|
|
763
763
|
var f = K;
|
|
764
|
-
if (et = !0, K = [], a.body = Ye(!0), et = c, K = f,
|
|
764
|
+
if (et = !0, K = [], a.body = Ye(!0), et = c, K = f, se || 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
767
|
for (var R = 0; R < c; ++R)
|
|
@@ -769,7 +769,7 @@ var j, si = function(e) {
|
|
|
769
769
|
}
|
|
770
770
|
return E(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function Kt(a, l, c) {
|
|
773
773
|
for (var f = [], R = !0; !W(a); ) {
|
|
774
774
|
if (R)
|
|
775
775
|
R = !1;
|
|
@@ -781,15 +781,15 @@ var j, si = function(e) {
|
|
|
781
781
|
}
|
|
782
782
|
function ve(a) {
|
|
783
783
|
var l = M();
|
|
784
|
-
return a && A.yb === "everywhere" && (a = !1), x === We ? (!a && (A.yb &&
|
|
784
|
+
return a && A.yb === "everywhere" && (a = !1), x === We ? (!a && (A.yb && Do(le) || se && vr(le)) && k.slice(q, Fe).indexOf("\\") === -1 && r(q, "The keyword '" + le + "' is reserved"), l.name = le) : a && x.l ? l.name = x.l : ye(), Qe = !1, $(), E(l, "Identifier");
|
|
785
785
|
}
|
|
786
786
|
e.version = "0.5.0";
|
|
787
|
-
var A, k = "",
|
|
787
|
+
var A, k = "", Ve, zt;
|
|
788
788
|
e.parse = function(a, l) {
|
|
789
|
-
k = String(a),
|
|
789
|
+
k = String(a), Ve = k.length, A = l || {};
|
|
790
790
|
for (var c in zn)
|
|
791
791
|
Object.prototype.hasOwnProperty.call(A, c) || (A[c] = zn[c]);
|
|
792
|
-
for (
|
|
792
|
+
for (zt = A.sourceFile, Be = 1, d = be = 0, Qe = !0, p(), c = A.dc, _t = Ae = d, A.C && (Jt = new i()), et = se = !1, K = [], b(), a = c || M(), l = !0, c || (a.body = []); x !== Xt; )
|
|
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 j, si = function(e) {
|
|
|
804
804
|
dc: null,
|
|
805
805
|
sourceFile: null,
|
|
806
806
|
vb: null
|
|
807
|
-
}, d = 0, q = 0, Fe = 0,
|
|
807
|
+
}, d = 0, q = 0, Fe = 0, Gt, qt, x, le, Qe, Be, be, _t = 0, Ae = 0, Jt, et, K, se, Io = [], tt = {
|
|
808
808
|
type: "num"
|
|
809
809
|
}, Gn = {
|
|
810
810
|
type: "regexp"
|
|
@@ -812,11 +812,11 @@ var j, si = function(e) {
|
|
|
812
812
|
type: "string"
|
|
813
813
|
}, We = {
|
|
814
814
|
type: "name"
|
|
815
|
-
}, Jt = {
|
|
816
|
-
type: "eof"
|
|
817
815
|
}, Xt = {
|
|
818
|
-
|
|
816
|
+
type: "eof"
|
|
819
817
|
}, Yt = {
|
|
818
|
+
l: "break"
|
|
819
|
+
}, Zt = {
|
|
820
820
|
l: "case",
|
|
821
821
|
m: !0
|
|
822
822
|
}, qn = {
|
|
@@ -838,23 +838,23 @@ var j, si = function(e) {
|
|
|
838
838
|
}, er = {
|
|
839
839
|
l: "for",
|
|
840
840
|
W: !0
|
|
841
|
-
},
|
|
841
|
+
}, Qt = {
|
|
842
842
|
l: "function"
|
|
843
843
|
}, tr = {
|
|
844
844
|
l: "if"
|
|
845
845
|
}, nr = {
|
|
846
846
|
l: "return",
|
|
847
847
|
m: !0
|
|
848
|
-
},
|
|
848
|
+
}, en = {
|
|
849
849
|
l: "switch"
|
|
850
850
|
}, rr = {
|
|
851
851
|
l: "throw",
|
|
852
852
|
m: !0
|
|
853
853
|
}, or = {
|
|
854
854
|
l: "try"
|
|
855
|
-
}, en = {
|
|
856
|
-
l: "var"
|
|
857
855
|
}, tn = {
|
|
856
|
+
l: "var"
|
|
857
|
+
}, nn = {
|
|
858
858
|
l: "while",
|
|
859
859
|
W: !0
|
|
860
860
|
}, ir = {
|
|
@@ -878,8 +878,8 @@ var j, si = function(e) {
|
|
|
878
878
|
L: 7,
|
|
879
879
|
m: !0
|
|
880
880
|
}, xo = {
|
|
881
|
-
break:
|
|
882
|
-
case:
|
|
881
|
+
break: Yt,
|
|
882
|
+
case: Zt,
|
|
883
883
|
catch: qn,
|
|
884
884
|
continue: _n,
|
|
885
885
|
debugger: Jn,
|
|
@@ -888,14 +888,14 @@ var j, si = function(e) {
|
|
|
888
888
|
else: Zn,
|
|
889
889
|
finally: Qn,
|
|
890
890
|
for: er,
|
|
891
|
-
function:
|
|
891
|
+
function: Qt,
|
|
892
892
|
if: tr,
|
|
893
893
|
return: nr,
|
|
894
|
-
switch:
|
|
894
|
+
switch: en,
|
|
895
895
|
throw: rr,
|
|
896
896
|
try: or,
|
|
897
|
-
var:
|
|
898
|
-
while:
|
|
897
|
+
var: tn,
|
|
898
|
+
while: nn,
|
|
899
899
|
with: ir,
|
|
900
900
|
null: lr,
|
|
901
901
|
true: ur,
|
|
@@ -923,10 +923,10 @@ var j, si = function(e) {
|
|
|
923
923
|
prefix: !0,
|
|
924
924
|
m: !0
|
|
925
925
|
}
|
|
926
|
-
},
|
|
926
|
+
}, rn = {
|
|
927
927
|
type: "[",
|
|
928
928
|
m: !0
|
|
929
|
-
},
|
|
929
|
+
}, on = {
|
|
930
930
|
type: "]"
|
|
931
931
|
}, nt = {
|
|
932
932
|
type: "{",
|
|
@@ -999,13 +999,13 @@ var j, si = function(e) {
|
|
|
999
999
|
}, Uo = {
|
|
1000
1000
|
L: 10,
|
|
1001
1001
|
m: !0
|
|
1002
|
-
},
|
|
1002
|
+
}, Do = o("class enum extends super const export import"), vr = o("implements interface let package private protected public static yield"), xt = o("eval arguments"), Vo = 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, sn = {
|
|
1003
1003
|
kind: "loop"
|
|
1004
1004
|
}, Lo = {
|
|
1005
1005
|
kind: "switch"
|
|
1006
1006
|
};
|
|
1007
|
-
},
|
|
1008
|
-
si(
|
|
1007
|
+
}, mn = mn = typeof globalThis > "u" ? void 0 : globalThis;
|
|
1008
|
+
si(mn.j || (mn.j = {}));
|
|
1009
1009
|
function h(e, t) {
|
|
1010
1010
|
typeof e == "string" && (e = Ge(e, "code"));
|
|
1011
1011
|
var n = e.constructor;
|
|
@@ -1021,13 +1021,13 @@ 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 =
|
|
1024
|
+
this.N = yn(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 = {
|
|
1028
1028
|
C: !0,
|
|
1029
1029
|
kc: 5
|
|
1030
|
-
},
|
|
1030
|
+
}, wn = {
|
|
1031
1031
|
configurable: !0,
|
|
1032
1032
|
enumerable: !0,
|
|
1033
1033
|
writable: !1
|
|
@@ -1035,7 +1035,7 @@ var kr = {
|
|
|
1035
1035
|
configurable: !0,
|
|
1036
1036
|
enumerable: !1,
|
|
1037
1037
|
writable: !0
|
|
1038
|
-
},
|
|
1038
|
+
}, oe = {
|
|
1039
1039
|
configurable: !0,
|
|
1040
1040
|
enumerable: !1,
|
|
1041
1041
|
writable: !1
|
|
@@ -1056,7 +1056,7 @@ var kr = {
|
|
|
1056
1056
|
}, Ke = {
|
|
1057
1057
|
REGEXP_TIMEOUT: !0
|
|
1058
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
|
-
function
|
|
1059
|
+
function En(e) {
|
|
1060
1060
|
var t = e >>> 0;
|
|
1061
1061
|
return t === Number(e) ? t : NaN;
|
|
1062
1062
|
}
|
|
@@ -1138,7 +1138,7 @@ j.Eb = function() {
|
|
|
1138
1138
|
return this.za;
|
|
1139
1139
|
};
|
|
1140
1140
|
function li(e, t) {
|
|
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,
|
|
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, wn), 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);
|
|
@@ -1180,10 +1180,10 @@ function ui(e, t) {
|
|
|
1180
1180
|
} catch (b) {
|
|
1181
1181
|
w(e, e.T, "Invalid code: " + b.message);
|
|
1182
1182
|
}
|
|
1183
|
-
return m.body.length !== 1 && w(e, e.T, "Invalid code in function body"),
|
|
1183
|
+
return m.body.length !== 1 && w(e, e.T, "Invalid code in function body"), xn(e, m.body[0].la, e.N, "anonymous");
|
|
1184
1184
|
};
|
|
1185
1185
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, S), e.g(e.O, "prototype", e.Z, S), e.g(e.Z, "constructor", e.O, S), e.Z.Ta = function() {
|
|
1186
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1186
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, oe), e.Z.H = "Function", r = function(o, i) {
|
|
1187
1187
|
var s = e.o[e.o.length - 1];
|
|
1188
1188
|
s.U = this, s.B = o, s.F = [], i != null && (i instanceof P ? s.F = Kr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1189
1189
|
}, J(e, e.O, "apply", r), r = function(o) {
|
|
@@ -1247,7 +1247,7 @@ function pi(e, t) {
|
|
|
1247
1247
|
var n = function(r) {
|
|
1248
1248
|
var o = xe(e) ? this : qe(e), i = arguments[0];
|
|
1249
1249
|
if (arguments.length === 1 && typeof i == "number")
|
|
1250
|
-
isNaN(
|
|
1250
|
+
isNaN(En(i)) && w(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1251
1251
|
else {
|
|
1252
1252
|
for (i = 0; i < arguments.length; i++)
|
|
1253
1253
|
o.h[i] = arguments[i];
|
|
@@ -1424,9 +1424,9 @@ function gi(e, t) {
|
|
|
1424
1424
|
} catch (u) {
|
|
1425
1425
|
w(e, e.T, u.message);
|
|
1426
1426
|
}
|
|
1427
|
-
return
|
|
1427
|
+
return Tn(e, i, s), i;
|
|
1428
1428
|
};
|
|
1429
|
-
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, S), e.g(e.I.h.prototype, "global", void 0,
|
|
1429
|
+
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, S), e.g(e.I.h.prototype, "global", void 0, oe), e.g(e.I.h.prototype, "ignoreCase", void 0, oe), e.g(e.I.h.prototype, "multiline", void 0, oe), e.g(e.I.h.prototype, "source", "(?:)", oe), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1430
1430
|
function i(b) {
|
|
1431
1431
|
if (b) {
|
|
1432
1432
|
var v = Ce(e, b);
|
|
@@ -1455,13 +1455,13 @@ function yi(e, t) {
|
|
|
1455
1455
|
function n(r) {
|
|
1456
1456
|
var o = e.i(function(i) {
|
|
1457
1457
|
var s = xe(e) ? this : e.Aa(o);
|
|
1458
|
-
return
|
|
1458
|
+
return gn(e, s, i), s;
|
|
1459
1459
|
}, !0);
|
|
1460
1460
|
return e.g(o, "prototype", e.Aa(e.D), S), e.g(o.h.prototype, "name", r, S), e.g(t, r, o, S), o;
|
|
1461
1461
|
}
|
|
1462
1462
|
e.D = e.i(function(r) {
|
|
1463
1463
|
var o = xe(e) ? this : e.Aa(e.D);
|
|
1464
|
-
return
|
|
1464
|
+
return gn(e, o, r), o;
|
|
1465
1465
|
}, !0), e.g(t, "Error", e.D, S), e.g(e.D.h.prototype, "message", "", S), e.g(e.D.h.prototype, "name", "Error", S), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1466
1466
|
}
|
|
1467
1467
|
function vi(e, t) {
|
|
@@ -1469,7 +1469,7 @@ function vi(e, t) {
|
|
|
1469
1469
|
e.g(t, "Math", n, S);
|
|
1470
1470
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1471
1471
|
for (t = 0; t < r.length; t++)
|
|
1472
|
-
e.g(n, r[t], Math[r[t]],
|
|
1472
|
+
e.g(n, r[t], Math[r[t]], oe);
|
|
1473
1473
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1474
1474
|
e.g(n, r[t], e.i(Math[r[t]], !1), S);
|
|
1475
1475
|
}
|
|
@@ -1506,10 +1506,10 @@ function Y(e, t, n) {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
return !1;
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1510
|
-
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, S), e.g(t, "source", n.source,
|
|
1509
|
+
function Tn(e, t, n) {
|
|
1510
|
+
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, S), e.g(t, "source", n.source, oe), e.g(t, "global", n.global, oe), e.g(t, "ignoreCase", n.ignoreCase, oe), e.g(t, "multiline", n.multiline, oe);
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function gn(e, t, n) {
|
|
1513
1513
|
n && e.g(t, "message", String(n), S), n = [];
|
|
1514
1514
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1515
1515
|
var o = e.o[r], i = o.node;
|
|
@@ -1588,20 +1588,20 @@ function qe(e) {
|
|
|
1588
1588
|
writable: !0
|
|
1589
1589
|
}), t.H = "Array", t;
|
|
1590
1590
|
}
|
|
1591
|
-
function
|
|
1591
|
+
function In(e, t, n) {
|
|
1592
1592
|
var r = e.s(e.Z);
|
|
1593
|
-
return n ? (n = e.s(e.M), e.g(r, "prototype", n, S), e.g(n, "constructor", r, S)) : r.Ab = !0, e.g(r, "length", t,
|
|
1593
|
+
return n ? (n = e.s(e.M), e.g(r, "prototype", n, S), e.g(n, "constructor", r, S)) : r.Ab = !0, e.g(r, "length", t, oe), r.H = "Function", r;
|
|
1594
1594
|
}
|
|
1595
|
-
function
|
|
1596
|
-
var o =
|
|
1597
|
-
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "",
|
|
1595
|
+
function xn(e, t, n, r) {
|
|
1596
|
+
var o = In(e, t.oa.length, !0);
|
|
1597
|
+
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", oe), o;
|
|
1598
1598
|
}
|
|
1599
1599
|
j.i = function(e, t) {
|
|
1600
|
-
return t =
|
|
1600
|
+
return t = In(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, oe), t;
|
|
1601
1601
|
};
|
|
1602
1602
|
j.ub = function(e) {
|
|
1603
|
-
var t =
|
|
1604
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1603
|
+
var t = In(this, e.length, !0);
|
|
1604
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, oe), t;
|
|
1605
1605
|
};
|
|
1606
1606
|
j.Ia = function(e) {
|
|
1607
1607
|
if (e instanceof P)
|
|
@@ -1610,7 +1610,7 @@ j.Ia = function(e) {
|
|
|
1610
1610
|
return e;
|
|
1611
1611
|
if (e instanceof RegExp) {
|
|
1612
1612
|
var t = this.s(this.Ma);
|
|
1613
|
-
return
|
|
1613
|
+
return Tn(this, t, e), t;
|
|
1614
1614
|
}
|
|
1615
1615
|
if (e instanceof Date)
|
|
1616
1616
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1653,7 +1653,7 @@ j.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
|
+
Dt(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, {
|
|
@@ -1673,7 +1673,7 @@ function Kr(e, t) {
|
|
|
1673
1673
|
var n = [], r;
|
|
1674
1674
|
for (r in t.h)
|
|
1675
1675
|
n[r] = e.G(t, r);
|
|
1676
|
-
return n.length =
|
|
1676
|
+
return n.length = En(e.G(t, "length")) || 0, n;
|
|
1677
1677
|
}
|
|
1678
1678
|
function Te(e, t) {
|
|
1679
1679
|
switch (typeof t) {
|
|
@@ -1704,7 +1704,7 @@ j.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 Dt(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))
|
|
@@ -1726,7 +1726,7 @@ j.g = function(e, t, n, r) {
|
|
|
1726
1726
|
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
1727
1727
|
throw TypeError("Expecting native value or pseudo object");
|
|
1728
1728
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1729
|
-
var o = !this.o ||
|
|
1729
|
+
var o = !this.o || Rn(this).S;
|
|
1730
1730
|
if (e instanceof P) {
|
|
1731
1731
|
if (Y(this, e, this.J)) {
|
|
1732
1732
|
var i = dt(t);
|
|
@@ -1742,7 +1742,7 @@ j.g = function(e, t, n, r) {
|
|
|
1742
1742
|
return;
|
|
1743
1743
|
n = r.value;
|
|
1744
1744
|
}
|
|
1745
|
-
if (n =
|
|
1745
|
+
if (n = En(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < i)
|
|
1746
1746
|
for (s in e.h) {
|
|
1747
1747
|
var s = dt(s);
|
|
1748
1748
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1794,12 +1794,12 @@ function J(e, t, n, r) {
|
|
|
1794
1794
|
function ut(e, t, n, r) {
|
|
1795
1795
|
e.g(t.h.prototype, n, e.ub(r), S);
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function Rn(e) {
|
|
1798
1798
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1799
1799
|
throw Error("No scope found");
|
|
1800
1800
|
return e;
|
|
1801
1801
|
}
|
|
1802
|
-
function
|
|
1802
|
+
function yn(e, t, n) {
|
|
1803
1803
|
var r = !1;
|
|
1804
1804
|
if (n && n.S)
|
|
1805
1805
|
r = !0;
|
|
@@ -1809,23 +1809,23 @@ 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 An(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
|
|
1818
|
-
for (var n =
|
|
1817
|
+
function $n(e, t) {
|
|
1818
|
+
for (var n = Rn(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 && Dt(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
|
}
|
|
1827
1827
|
function zr(e, t, n) {
|
|
1828
|
-
for (var r =
|
|
1828
|
+
for (var r = Rn(e), o = r.S; r && r !== e.N; ) {
|
|
1829
1829
|
if (t in r.object.h) {
|
|
1830
1830
|
try {
|
|
1831
1831
|
r.object.h[t] = n;
|
|
@@ -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 || Dt(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
|
}
|
|
@@ -1886,20 +1886,20 @@ function gt(e, t, n) {
|
|
|
1886
1886
|
t.jb = r;
|
|
1887
1887
|
}
|
|
1888
1888
|
for (s in r)
|
|
1889
|
-
r[s] === !0 ? e.g(n.object, s, void 0, Sr) : e.g(n.object, s,
|
|
1889
|
+
r[s] === !0 ? e.g(n.object, s, void 0, Sr) : e.g(n.object, s, xn(e, r[s], n), Sr);
|
|
1890
1890
|
return r;
|
|
1891
1891
|
}
|
|
1892
1892
|
function xe(e) {
|
|
1893
1893
|
return e.o[e.o.length - 1].isConstructor;
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1896
|
-
return t[0] === _e ?
|
|
1895
|
+
function Pn(e, t) {
|
|
1896
|
+
return t[0] === _e ? $n(e, t[1]) : e.G(t[0], t[1]);
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function On(e, t, n) {
|
|
1899
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
|
-
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t),
|
|
1902
|
+
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), gn(e, t, n)), vt(e, 4, t), Hr) : n === void 0 ? t : n;
|
|
1903
1903
|
}
|
|
1904
1904
|
function vt(e, t, n, r) {
|
|
1905
1905
|
if (t === 0)
|
|
@@ -1946,34 +1946,34 @@ function vt(e, t, n, r) {
|
|
|
1946
1946
|
URIError
|
|
1947
1947
|
}, r = String(e.G(n, "name")), o = e.G(n, "message").valueOf(), t = (t[r] || Error)(o), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
|
|
1948
1948
|
}
|
|
1949
|
-
function
|
|
1949
|
+
function ne(e, t) {
|
|
1950
1950
|
switch (t.type) {
|
|
1951
1951
|
case "ArrayExpression":
|
|
1952
1952
|
return "[...]";
|
|
1953
1953
|
case "BinaryExpression":
|
|
1954
1954
|
case "LogicalExpression":
|
|
1955
|
-
return
|
|
1955
|
+
return ne(e, t.left) + " " + t.operator + " " + ne(e, t.right);
|
|
1956
1956
|
case "CallExpression":
|
|
1957
|
-
return
|
|
1957
|
+
return ne(e, t.callee) + "(...)";
|
|
1958
1958
|
case "ConditionalExpression":
|
|
1959
|
-
return
|
|
1959
|
+
return ne(e, t.test) + " ? " + ne(e, t.da) + " : " + ne(e, t.alternate);
|
|
1960
1960
|
case "Identifier":
|
|
1961
1961
|
return t.name;
|
|
1962
1962
|
case "Literal":
|
|
1963
1963
|
return t.raw;
|
|
1964
1964
|
case "MemberExpression":
|
|
1965
|
-
var n =
|
|
1966
|
-
return e =
|
|
1965
|
+
var n = ne(e, t.object);
|
|
1966
|
+
return e = ne(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
|
|
1967
1967
|
case "NewExpression":
|
|
1968
|
-
return "new " +
|
|
1968
|
+
return "new " + ne(e, t.callee) + "(...)";
|
|
1969
1969
|
case "ObjectExpression":
|
|
1970
1970
|
return "{...}";
|
|
1971
1971
|
case "ThisExpression":
|
|
1972
1972
|
return "this";
|
|
1973
1973
|
case "UnaryExpression":
|
|
1974
|
-
return t.operator + " " +
|
|
1974
|
+
return t.operator + " " + ne(e, t.K);
|
|
1975
1975
|
case "UpdateExpression":
|
|
1976
|
-
return n =
|
|
1976
|
+
return n = ne(e, t.K), t.prefix ? t.operator + n : n + t.operator;
|
|
1977
1977
|
}
|
|
1978
1978
|
return "???";
|
|
1979
1979
|
}
|
|
@@ -2013,14 +2013,14 @@ function bt(e, t, n) {
|
|
|
2013
2013
|
var r = e.ya();
|
|
2014
2014
|
return r.type = "CallExpression", e = new C(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2016
|
+
function Nn(e, t, n, r) {
|
|
2017
2017
|
if (!e.Ka)
|
|
2018
2018
|
throw Error("Unexpected call to createSetter");
|
|
2019
2019
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
2020
2020
|
var o = e.ya();
|
|
2021
2021
|
return o.type = "CallExpression", e = new C(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2023
|
+
function ln(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
|
j.Xb = function() {
|
|
@@ -2114,7 +2114,7 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2114
2114
|
if (!t.ja)
|
|
2115
2115
|
return t.ja = !0, t = new C(n.left, t.scope), t.sa = !0, t;
|
|
2116
2116
|
if (!t.Da)
|
|
2117
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
2117
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = Pn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, bt(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new C(n.right, t.scope));
|
|
2118
2118
|
if (t.ta)
|
|
2119
2119
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2120
2120
|
else {
|
|
@@ -2159,8 +2159,8 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2159
2159
|
default:
|
|
2160
2160
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2161
2161
|
}
|
|
2162
|
-
if (n =
|
|
2163
|
-
return t.ta = !0, t.ib = r,
|
|
2162
|
+
if (n = On(this, t.Fa, r))
|
|
2163
|
+
return t.ta = !0, t.ib = r, Nn(this, n, t.Fa, r);
|
|
2164
2164
|
e.pop(), e[e.length - 1].value = r;
|
|
2165
2165
|
}
|
|
2166
2166
|
};
|
|
@@ -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 = Dt(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 =
|
|
2263
|
+
if (t.U = Pn(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;
|
|
@@ -2270,7 +2270,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2270
2270
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2271
2271
|
return new C(n.arguments[t.A++], t.scope);
|
|
2272
2272
|
if (n.type === "NewExpression") {
|
|
2273
|
-
if (o instanceof P && !o.Ab || w(this, this.j,
|
|
2273
|
+
if (o instanceof P && !o.Ab || w(this, this.j, ne(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2274
2274
|
t.B = qe(this);
|
|
2275
2275
|
else {
|
|
2276
2276
|
var i = o.h.prototype;
|
|
@@ -2283,12 +2283,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2283
2283
|
if (t.eb)
|
|
2284
2284
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2285
2285
|
else {
|
|
2286
|
-
if (t.eb = !0, o instanceof P || w(this, this.j,
|
|
2287
|
-
for (n =
|
|
2286
|
+
if (t.eb = !0, o instanceof P || w(this, this.j, ne(this, n.callee) + " is not a function"), e = o.node) {
|
|
2287
|
+
for (n = yn(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);
|
|
2291
|
-
return n.S || (t.B =
|
|
2291
|
+
return n.S || (t.B = ln(this, t.B)), this.g(n.object, "this", t.B, wn), t.value = void 0, new C(e.body, n);
|
|
2292
2292
|
}
|
|
2293
2293
|
if (o.eval)
|
|
2294
2294
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2299,17 +2299,17 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2299
2299
|
} catch (u) {
|
|
2300
2300
|
w(this, this.T, "Invalid code: " + u.message);
|
|
2301
2301
|
}
|
|
2302
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, Ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n =
|
|
2302
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, Ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = yn(this, r, n) : gt(this, r, n), this.value = void 0, new C(o, n);
|
|
2303
2303
|
}
|
|
2304
2304
|
else if (o.Ta)
|
|
2305
|
-
t.scope.S || (t.B =
|
|
2305
|
+
t.scope.S || (t.B = ln(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2306
2306
|
else if (o.Za) {
|
|
2307
2307
|
var s = this;
|
|
2308
2308
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2309
2309
|
t.value = u, s.za = !1;
|
|
2310
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2310
|
+
}), this.za = !0, t.scope.S || (t.B = ln(this, t.B)), o.Za.apply(t.B, r);
|
|
2311
2311
|
} else
|
|
2312
|
-
w(this, this.j,
|
|
2312
|
+
w(this, this.j, ne(this, n.callee) + " is not callable");
|
|
2313
2313
|
}
|
|
2314
2314
|
};
|
|
2315
2315
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
@@ -2388,8 +2388,8 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2388
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
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2392
|
-
return
|
|
2391
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = On(this, t.pa, e)))
|
|
2392
|
+
return Nn(this, r, t.pa, e);
|
|
2393
2393
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2394
2394
|
return new C(n.body, t.scope);
|
|
2395
2395
|
};
|
|
@@ -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 = An(this, e)), t.value = xn(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, wn);
|
|
2422
2422
|
};
|
|
2423
2423
|
h.prototype.stepIdentifier = function(e, t, n) {
|
|
2424
2424
|
if (e.pop(), t.sa)
|
|
2425
2425
|
e[e.length - 1].value = [_e, n.name];
|
|
2426
2426
|
else {
|
|
2427
|
-
if (t =
|
|
2427
|
+
if (t = $n(this, n.name), this.P)
|
|
2428
2428
|
return bt(this, t, this.Na);
|
|
2429
2429
|
e[e.length - 1].value = t;
|
|
2430
2430
|
}
|
|
@@ -2434,7 +2434,7 @@ h.prototype.stepLabeledStatement = function(e, t, n) {
|
|
|
2434
2434
|
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new C(n.body, t.scope), t.labels = e, t;
|
|
2435
2435
|
};
|
|
2436
2436
|
h.prototype.stepLiteral = function(e, t, n) {
|
|
2437
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2437
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), Tn(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2438
2438
|
};
|
|
2439
2439
|
h.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2440
2440
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
@@ -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 = $n(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 = An(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);
|
|
@@ -2599,7 +2599,7 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2599
2599
|
if (!t.ja)
|
|
2600
2600
|
return t.ja = !0, e = new C(n.K, t.scope), e.sa = !0, e;
|
|
2601
2601
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2602
|
-
var r =
|
|
2602
|
+
var r = Pn(this, t.Ga);
|
|
2603
2603
|
if (t.ma = r, this.P)
|
|
2604
2604
|
return t.Ba = !0, bt(this, r, t.Ga);
|
|
2605
2605
|
}
|
|
@@ -2612,8 +2612,8 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2612
2612
|
o = r - 1;
|
|
2613
2613
|
else
|
|
2614
2614
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2615
|
-
if (n = n.prefix ? o : r, r =
|
|
2616
|
-
return t.ta = !0, t.ib = n,
|
|
2615
|
+
if (n = n.prefix ? o : r, r = On(this, t.Ga, o))
|
|
2616
|
+
return t.ta = !0, t.ib = n, Nn(this, r, t.Ga, o);
|
|
2617
2617
|
e.pop(), e[e.length - 1].value = n;
|
|
2618
2618
|
}
|
|
2619
2619
|
};
|
|
@@ -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 = An(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;
|
|
@@ -2685,7 +2685,7 @@ function main()`).replace(/\?\./g, "."), Tr = (e) => e + "JSON", Ei = ({
|
|
|
2685
2685
|
rootSetState: i,
|
|
2686
2686
|
code: s
|
|
2687
2687
|
}) => {
|
|
2688
|
-
const u =
|
|
2688
|
+
const u = Cn({
|
|
2689
2689
|
rootState: r,
|
|
2690
2690
|
localState: o,
|
|
2691
2691
|
rootSetState: i
|
|
@@ -2731,7 +2731,7 @@ const Ii = ({
|
|
|
2731
2731
|
if (!Ti())
|
|
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
|
-
return t && n && !r ? (e &&
|
|
2734
|
+
return t && n && !r ? (e && ie.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
2735
|
}, xi = (e) => G() || Ii({
|
|
2736
2736
|
shouldLogWarning: !0
|
|
2737
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) => {
|
|
@@ -2751,7 +2751,7 @@ function kt({
|
|
|
2751
2751
|
return;
|
|
2752
2752
|
const u = $i(e.trim());
|
|
2753
2753
|
if (u)
|
|
2754
|
-
return
|
|
2754
|
+
return Vr({
|
|
2755
2755
|
...r,
|
|
2756
2756
|
...n
|
|
2757
2757
|
}, u);
|
|
@@ -2769,7 +2769,7 @@ function kt({
|
|
|
2769
2769
|
try {
|
|
2770
2770
|
return xi(p);
|
|
2771
2771
|
} catch (m) {
|
|
2772
|
-
|
|
2772
|
+
ie.error("Failed code evaluation: " + m.message, {
|
|
2773
2773
|
code: e
|
|
2774
2774
|
});
|
|
2775
2775
|
return;
|
|
@@ -2843,27 +2843,27 @@ function Ui(e, t) {
|
|
|
2843
2843
|
var n, r;
|
|
2844
2844
|
return (n = e.component) != null && n.options && ji((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
|
-
const
|
|
2846
|
+
const jn = (e) => JSON.parse(JSON.stringify(e)), Jr = (e, t, n) => {
|
|
2847
2847
|
if (Object(e) !== e)
|
|
2848
2848
|
return e;
|
|
2849
2849
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
2850
2850
|
return r.slice(0, -1).reduce((o, i, s) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
2851
2851
|
};
|
|
2852
|
-
function
|
|
2852
|
+
function vn(e) {
|
|
2853
2853
|
if (e === null || typeof e != "object")
|
|
2854
2854
|
return e;
|
|
2855
2855
|
if (Array.isArray(e))
|
|
2856
|
-
return e.map((n) =>
|
|
2856
|
+
return e.map((n) => vn(n));
|
|
2857
2857
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
2858
2858
|
return e;
|
|
2859
2859
|
const t = {};
|
|
2860
2860
|
for (const n in e)
|
|
2861
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
2861
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = vn(e[n]));
|
|
2862
2862
|
return t;
|
|
2863
2863
|
}
|
|
2864
|
-
const
|
|
2865
|
-
if (
|
|
2866
|
-
const t =
|
|
2864
|
+
const Di = ["svelte", "vue", "angular", "qwik", "solid"].includes(ee), Vi = (e) => {
|
|
2865
|
+
if (Di) {
|
|
2866
|
+
const t = jn(e);
|
|
2867
2867
|
return {
|
|
2868
2868
|
...t,
|
|
2869
2869
|
properties: {
|
|
@@ -2874,7 +2874,7 @@ const Vi = ["svelte", "vue", "angular", "qwik", "solid"].includes(re), Di = (e)
|
|
|
2874
2874
|
}
|
|
2875
2875
|
};
|
|
2876
2876
|
} else {
|
|
2877
|
-
const t =
|
|
2877
|
+
const t = vn(Ni(e, "children", "meta"));
|
|
2878
2878
|
return {
|
|
2879
2879
|
...t,
|
|
2880
2880
|
properties: {
|
|
@@ -2896,7 +2896,7 @@ const Vi = ["svelte", "vue", "angular", "qwik", "solid"].includes(re), Di = (e)
|
|
|
2896
2896
|
}) => {
|
|
2897
2897
|
if (!e.bindings)
|
|
2898
2898
|
return e;
|
|
2899
|
-
const i =
|
|
2899
|
+
const i = Vi(e);
|
|
2900
2900
|
for (const s in e.bindings) {
|
|
2901
2901
|
const u = e.bindings[s], p = kt({
|
|
2902
2902
|
code: u,
|
|
@@ -2959,7 +2959,7 @@ function Hi(e, t) {
|
|
|
2959
2959
|
}
|
|
2960
2960
|
}
|
|
2961
2961
|
const xr = {};
|
|
2962
|
-
function
|
|
2962
|
+
function ju(e) {
|
|
2963
2963
|
if (G()) {
|
|
2964
2964
|
Object.assign(xr, e);
|
|
2965
2965
|
const t = {
|
|
@@ -2984,8 +2984,8 @@ const Rr = "builder.", Ki = "options.", Yr = (e) => {
|
|
|
2984
2984
|
return {};
|
|
2985
2985
|
const e = new URLSearchParams(window.location.search);
|
|
2986
2986
|
return Yr(e);
|
|
2987
|
-
}, Zr = "4.0.
|
|
2988
|
-
"X-Builder-SDK":
|
|
2987
|
+
}, Zr = "4.0.3", Qr = () => ({
|
|
2988
|
+
"X-Builder-SDK": ee,
|
|
2989
2989
|
"X-Builder-SDK-GEN": "2",
|
|
2990
2990
|
"X-Builder-SDK-Version": Zr
|
|
2991
2991
|
}), Gi = (e) => {
|
|
@@ -2993,7 +2993,7 @@ const Rr = "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
|
+
}, Vt = ({
|
|
2997
2997
|
name: e,
|
|
2998
2998
|
canTrack: t
|
|
2999
2999
|
}) => {
|
|
@@ -3001,10 +3001,10 @@ const Rr = "builder.", Ki = "options.", Yr = (e) => {
|
|
|
3001
3001
|
try {
|
|
3002
3002
|
return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
3003
3003
|
} catch (r) {
|
|
3004
|
-
|
|
3004
|
+
ie.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3005
3005
|
return;
|
|
3006
3006
|
}
|
|
3007
|
-
}, eo = async (e) =>
|
|
3007
|
+
}, eo = async (e) => Vt(e), qi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(Ne).join("; "), _i = [["secure", ""], ["SameSite", "None"]], Ji = ({
|
|
3008
3008
|
name: e,
|
|
3009
3009
|
value: t,
|
|
3010
3010
|
expires: n
|
|
@@ -3027,7 +3027,7 @@ const Rr = "builder.", Ki = "options.", Yr = (e) => {
|
|
|
3027
3027
|
});
|
|
3028
3028
|
document.cookie = o;
|
|
3029
3029
|
} catch (o) {
|
|
3030
|
-
|
|
3030
|
+
ie.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3031
3031
|
}
|
|
3032
3032
|
};
|
|
3033
3033
|
function Xi() {
|
|
@@ -3114,7 +3114,7 @@ const no = "builderSessionId", Yi = async ({
|
|
|
3114
3114
|
});
|
|
3115
3115
|
function Un(e) {
|
|
3116
3116
|
var t;
|
|
3117
|
-
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" &&
|
|
3117
|
+
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && ie.log(e);
|
|
3118
3118
|
}
|
|
3119
3119
|
const is = async ({
|
|
3120
3120
|
canTrack: e
|
|
@@ -3154,15 +3154,15 @@ const is = async ({
|
|
|
3154
3154
|
ownerId: n
|
|
3155
3155
|
}
|
|
3156
3156
|
});
|
|
3157
|
-
async function
|
|
3157
|
+
async function bn({
|
|
3158
3158
|
apiHost: e,
|
|
3159
3159
|
...t
|
|
3160
3160
|
}) {
|
|
3161
3161
|
if (!t.apiKey) {
|
|
3162
|
-
|
|
3162
|
+
ie.error("Missing API key for track call. Please provide your API key.");
|
|
3163
3163
|
return;
|
|
3164
3164
|
}
|
|
3165
|
-
if (!t.canTrack ||
|
|
3165
|
+
if (!t.canTrack || re() || !(G() || ee === "reactNative"))
|
|
3166
3166
|
return;
|
|
3167
3167
|
const r = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
3168
3168
|
return Un(r), fetch(r, {
|
|
@@ -3179,7 +3179,7 @@ async function vn({
|
|
|
3179
3179
|
console.error("Failed to track: ", o);
|
|
3180
3180
|
});
|
|
3181
3181
|
}
|
|
3182
|
-
const
|
|
3182
|
+
const Bu = (e) => bn({
|
|
3183
3183
|
...e,
|
|
3184
3184
|
canTrack: !0
|
|
3185
3185
|
}), as = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
@@ -3218,7 +3218,7 @@ const so = (e) => {
|
|
|
3218
3218
|
Ar || (Ar = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
3219
3219
|
type: "builder.sdkInfo",
|
|
3220
3220
|
data: {
|
|
3221
|
-
target:
|
|
3221
|
+
target: ee,
|
|
3222
3222
|
version: Zr,
|
|
3223
3223
|
supportsPatchUpdates: !1,
|
|
3224
3224
|
// Supports builder-model="..." attribute which is needed to
|
|
@@ -3309,14 +3309,14 @@ const so = (e) => {
|
|
|
3309
3309
|
break;
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
|
-
},
|
|
3312
|
+
}, Uu = ({
|
|
3313
3313
|
model: e,
|
|
3314
3314
|
apiKey: t,
|
|
3315
3315
|
callback: n,
|
|
3316
3316
|
trustedHosts: r
|
|
3317
3317
|
}) => {
|
|
3318
3318
|
if (!G)
|
|
3319
|
-
return
|
|
3319
|
+
return ie.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
3320
3320
|
};
|
|
3321
3321
|
so({
|
|
3322
3322
|
modelName: e,
|
|
@@ -3338,21 +3338,21 @@ const so = (e) => {
|
|
|
3338
3338
|
return window.addEventListener("message", o), () => {
|
|
3339
3339
|
window.removeEventListener("message", o);
|
|
3340
3340
|
};
|
|
3341
|
-
}, us = "builder.tests",
|
|
3341
|
+
}, us = "builder.tests", Dn = (e) => `${us}.${e}`, cs = ({
|
|
3342
3342
|
contentId: e
|
|
3343
3343
|
}) => eo({
|
|
3344
|
-
name:
|
|
3344
|
+
name: Dn(e),
|
|
3345
3345
|
canTrack: !0
|
|
3346
3346
|
}), ps = ({
|
|
3347
3347
|
contentId: e
|
|
3348
|
-
}) =>
|
|
3349
|
-
name:
|
|
3348
|
+
}) => Vt({
|
|
3349
|
+
name: Dn(e),
|
|
3350
3350
|
canTrack: !0
|
|
3351
3351
|
}), ds = ({
|
|
3352
3352
|
contentId: e,
|
|
3353
3353
|
value: t
|
|
3354
3354
|
}) => Bn({
|
|
3355
|
-
name:
|
|
3355
|
+
name: Dn(e),
|
|
3356
3356
|
value: t,
|
|
3357
3357
|
canTrack: !0
|
|
3358
3358
|
}), lo = (e) => Ne(e.id) && Ne(e.variations) && Object.keys(e.variations).length > 0, fs = ({
|
|
@@ -3374,7 +3374,7 @@ const so = (e) => {
|
|
|
3374
3374
|
contentId: e.id,
|
|
3375
3375
|
value: t
|
|
3376
3376
|
}).catch((n) => {
|
|
3377
|
-
|
|
3377
|
+
ie.error("could not store A/B test variation: ", n);
|
|
3378
3378
|
}), t;
|
|
3379
3379
|
}, co = ({
|
|
3380
3380
|
item: e,
|
|
@@ -3451,7 +3451,7 @@ function gs() {
|
|
|
3451
3451
|
}), t.forEach((o) => o(r));
|
|
3452
3452
|
},
|
|
3453
3453
|
getUserAttributes() {
|
|
3454
|
-
return G() ? JSON.parse(
|
|
3454
|
+
return G() ? JSON.parse(Vt({
|
|
3455
3455
|
name: $r,
|
|
3456
3456
|
canTrack: e
|
|
3457
3457
|
}) || "{}") : {};
|
|
@@ -3466,7 +3466,7 @@ function gs() {
|
|
|
3466
3466
|
}
|
|
3467
3467
|
};
|
|
3468
3468
|
}
|
|
3469
|
-
const po = gs(),
|
|
3469
|
+
const po = gs(), Du = (e) => {
|
|
3470
3470
|
po.setUserAttributes(e);
|
|
3471
3471
|
}, yt = (e) => {
|
|
3472
3472
|
const t = Ne(e) ? e : !0;
|
|
@@ -3483,12 +3483,12 @@ function vs() {
|
|
|
3483
3483
|
return e;
|
|
3484
3484
|
}
|
|
3485
3485
|
const bs = vs();
|
|
3486
|
-
function
|
|
3486
|
+
function kn(e, t = null, n = ".") {
|
|
3487
3487
|
return Object.keys(e).reduce((r, o) => {
|
|
3488
3488
|
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
3489
3489
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
3490
3490
|
...r,
|
|
3491
|
-
...
|
|
3491
|
+
...kn(i, s, n)
|
|
3492
3492
|
} : {
|
|
3493
3493
|
...r,
|
|
3494
3494
|
[s]: i
|
|
@@ -3514,7 +3514,7 @@ function ks(e) {
|
|
|
3514
3514
|
}
|
|
3515
3515
|
return t;
|
|
3516
3516
|
}
|
|
3517
|
-
const Ss = "v3", Pr = (e) => typeof e == "number" && !isNaN(e) && e >= 0,
|
|
3517
|
+
const Ss = "v3", Pr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Vn = (e) => {
|
|
3518
3518
|
const {
|
|
3519
3519
|
limit: t = 30,
|
|
3520
3520
|
userAttributes: n,
|
|
@@ -3539,13 +3539,13 @@ const Ss = "v3", Pr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Dn = (
|
|
|
3539
3539
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
|
|
3540
3540
|
const Re = t !== 1, $ = Z || "https://cdn.builder.io", F = new URL(`${$}/api/${p}/content/${o}`);
|
|
3541
3541
|
F.searchParams.set("apiKey", i), F.searchParams.set("limit", String(t)), F.searchParams.set("noTraverse", String(Re)), F.searchParams.set("includeRefs", String(!0));
|
|
3542
|
-
const
|
|
3542
|
+
const De = u || (n == null ? void 0 : n.locale);
|
|
3543
3543
|
let me = n || {};
|
|
3544
|
-
if (
|
|
3545
|
-
locale:
|
|
3544
|
+
if (De && (F.searchParams.set("locale", De), me = {
|
|
3545
|
+
locale: De,
|
|
3546
3546
|
...me
|
|
3547
3547
|
}), 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) {
|
|
3548
|
-
const E =
|
|
3548
|
+
const E = kn({
|
|
3549
3549
|
sort: U
|
|
3550
3550
|
});
|
|
3551
3551
|
for (const ge in E)
|
|
@@ -3559,7 +3559,7 @@ const Ss = "v3", Pr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Dn = (
|
|
|
3559
3559
|
...me,
|
|
3560
3560
|
...ws(M)
|
|
3561
3561
|
};
|
|
3562
|
-
const ce =
|
|
3562
|
+
const ce = kn(M);
|
|
3563
3563
|
for (const E in ce)
|
|
3564
3564
|
F.searchParams.set(E, String(ce[E]));
|
|
3565
3565
|
if (Object.keys(me).length > 0 && F.searchParams.set("userAttributes", JSON.stringify(me)), r) {
|
|
@@ -3594,7 +3594,7 @@ async function Fn(e) {
|
|
|
3594
3594
|
}
|
|
3595
3595
|
const Ts = async (e) => {
|
|
3596
3596
|
var s;
|
|
3597
|
-
const t =
|
|
3597
|
+
const t = Vn(e), n = e.fetch ?? bs, r = {
|
|
3598
3598
|
...e.fetchOptions,
|
|
3599
3599
|
headers: {
|
|
3600
3600
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
@@ -3602,9 +3602,9 @@ const Ts = async (e) => {
|
|
|
3602
3602
|
}
|
|
3603
3603
|
};
|
|
3604
3604
|
return await (await n(t.href, r)).json();
|
|
3605
|
-
}, Is = async (e, t, n =
|
|
3605
|
+
}, Is = async (e, t, n = Vn(e)) => {
|
|
3606
3606
|
const r = yt(e.canTrack);
|
|
3607
|
-
if (n.search.includes("preview="), !r || !(G() ||
|
|
3607
|
+
if (n.search.includes("preview="), !r || !(G() || ee === "reactNative"))
|
|
3608
3608
|
return t.results;
|
|
3609
3609
|
try {
|
|
3610
3610
|
const o = [];
|
|
@@ -3615,14 +3615,14 @@ const Ts = async (e) => {
|
|
|
3615
3615
|
}));
|
|
3616
3616
|
t.results = o;
|
|
3617
3617
|
} catch (o) {
|
|
3618
|
-
|
|
3618
|
+
ie.error("Could not process A/B tests. ", o);
|
|
3619
3619
|
}
|
|
3620
3620
|
return t.results;
|
|
3621
3621
|
};
|
|
3622
3622
|
async function xs(e) {
|
|
3623
|
-
const t =
|
|
3623
|
+
const t = Vn(e), n = await Ts(e);
|
|
3624
3624
|
if (!Es(n))
|
|
3625
|
-
throw
|
|
3625
|
+
throw ie.error("Error fetching data. ", {
|
|
3626
3626
|
url: t,
|
|
3627
3627
|
content: n,
|
|
3628
3628
|
options: e
|
|
@@ -3751,7 +3751,7 @@ const yo = (e) => Object.entries(e).map(([n, r]) => {
|
|
|
3751
3751
|
if (typeof r == "string")
|
|
3752
3752
|
return `${Wn(n)}: ${r};`;
|
|
3753
3753
|
}).filter(Ne), Os = (e) => yo(e).join(`
|
|
3754
|
-
`),
|
|
3754
|
+
`), Fu = ({
|
|
3755
3755
|
mediaQuery: e,
|
|
3756
3756
|
className: t,
|
|
3757
3757
|
styles: n
|
|
@@ -3768,7 +3768,7 @@ function Ns({
|
|
|
3768
3768
|
}) {
|
|
3769
3769
|
return e;
|
|
3770
3770
|
}
|
|
3771
|
-
const
|
|
3771
|
+
const Wu = ({
|
|
3772
3772
|
block: e,
|
|
3773
3773
|
context: t
|
|
3774
3774
|
}) => vo(Ns({
|
|
@@ -3777,7 +3777,7 @@ const Fu = ({
|
|
|
3777
3777
|
block: e
|
|
3778
3778
|
}));
|
|
3779
3779
|
function vo(e) {
|
|
3780
|
-
switch (
|
|
3780
|
+
switch (ee) {
|
|
3781
3781
|
case "svelte":
|
|
3782
3782
|
case "vue":
|
|
3783
3783
|
case "solid":
|
|
@@ -3845,12 +3845,12 @@ const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3845
3845
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
3846
3846
|
builderLinkComponent: t
|
|
3847
3847
|
} : {};
|
|
3848
|
-
},
|
|
3848
|
+
}, Ds = (e, t, n) => {
|
|
3849
3849
|
var r;
|
|
3850
3850
|
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderComponents ? {
|
|
3851
3851
|
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !bo(s, n)))
|
|
3852
3852
|
} : {};
|
|
3853
|
-
},
|
|
3853
|
+
}, Vs = (e, t) => {
|
|
3854
3854
|
var n;
|
|
3855
3855
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
3856
3856
|
builderBlock: t
|
|
@@ -3865,22 +3865,22 @@ const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3865
3865
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3866
3866
|
e
|
|
3867
3867
|
), e;
|
|
3868
|
-
}), Ls = () => import("./block-styles-
|
|
3868
|
+
}), Ls = () => import("./block-styles-s3hCMtmI.js").then((e) => e.default).catch((e) => {
|
|
3869
3869
|
throw console.error(
|
|
3870
3870
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3871
3871
|
e
|
|
3872
3872
|
), e;
|
|
3873
|
-
}), Ms = () => import("./block-wrapper-
|
|
3873
|
+
}), Ms = () => import("./block-wrapper-uHIPKxTk.js").then((e) => e.default).catch((e) => {
|
|
3874
3874
|
throw console.error(
|
|
3875
3875
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3876
3876
|
e
|
|
3877
3877
|
), e;
|
|
3878
|
-
}), Hs = () => import("./component-ref-
|
|
3878
|
+
}), Hs = () => import("./component-ref-G9jxu6eG.js").then((e) => e.default).catch((e) => {
|
|
3879
3879
|
throw console.error(
|
|
3880
3880
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3881
3881
|
e
|
|
3882
3882
|
), e;
|
|
3883
|
-
}), Ks = () => import("./repeated-block-
|
|
3883
|
+
}), Ks = () => import("./repeated-block-Ga7BjpSB.js").then((e) => e.default).catch((e) => {
|
|
3884
3884
|
throw console.error(
|
|
3885
3885
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3886
3886
|
e
|
|
@@ -3960,10 +3960,10 @@ const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3960
3960
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
3961
3961
|
componentOptions: {
|
|
3962
3962
|
...Pi(this.processedBlock, this.context),
|
|
3963
|
-
...
|
|
3963
|
+
...Vs(this.blockComponent, this.processedBlock),
|
|
3964
3964
|
...Fs(this.blockComponent, this.context),
|
|
3965
3965
|
...Us(this.blockComponent, this.linkComponent),
|
|
3966
|
-
...
|
|
3966
|
+
...Ds(
|
|
3967
3967
|
this.blockComponent,
|
|
3968
3968
|
this.registeredComponents,
|
|
3969
3969
|
this.context.model
|
|
@@ -3974,27 +3974,27 @@ const bo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3974
3974
|
registeredComponents: this.registeredComponents,
|
|
3975
3975
|
builderBlock: this.processedBlock,
|
|
3976
3976
|
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
3977
|
-
isInteractive: !((n = this.blockComponent) != null && n.isRSC &&
|
|
3977
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC && ee === "rsc")
|
|
3978
3978
|
};
|
|
3979
3979
|
}
|
|
3980
3980
|
}
|
|
3981
3981
|
});
|
|
3982
3982
|
function Gs(e, t, n, r, o, i) {
|
|
3983
3983
|
var v;
|
|
3984
|
-
const s =
|
|
3984
|
+
const s = V("BlockStyles"), u = V("ComponentRef"), p = V("Block", !0), m = V("BlockWrapper"), b = V("RepeatedBlock");
|
|
3985
3985
|
return e.canShowBlock ? (y(), I(X, { key: 0 }, [
|
|
3986
|
-
|
|
3986
|
+
ae(s, {
|
|
3987
3987
|
block: e.processedBlock,
|
|
3988
3988
|
context: e.context
|
|
3989
3989
|
}, null, 8, ["block", "context"]),
|
|
3990
3990
|
(v = e.blockComponent) != null && v.noWrap ? (y(), I(X, { key: 1 }, [
|
|
3991
|
-
e.repeatItem ? (y(!0), I(X, { key: 1 }, Ee(e.repeatItem, (g, T) => (y(),
|
|
3991
|
+
e.repeatItem ? (y(!0), I(X, { key: 1 }, Ee(e.repeatItem, (g, T) => (y(), D(b, {
|
|
3992
3992
|
key: T,
|
|
3993
3993
|
repeatContext: g.context,
|
|
3994
3994
|
block: g.block,
|
|
3995
3995
|
registeredComponents: e.registeredComponents,
|
|
3996
3996
|
linkComponent: e.linkComponent
|
|
3997
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (y(),
|
|
3997
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (y(), D(u, {
|
|
3998
3998
|
key: 0,
|
|
3999
3999
|
componentRef: e.componentRefProps.componentRef,
|
|
4000
4000
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -4007,20 +4007,20 @@ function Gs(e, t, n, r, o, i) {
|
|
|
4007
4007
|
isInteractive: e.componentRefProps.isInteractive
|
|
4008
4008
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
4009
4009
|
], 64)) : (y(), I(X, { key: 0 }, [
|
|
4010
|
-
e.repeatItem ? (y(!0), I(X, { key: 1 }, Ee(e.repeatItem, (g, T) => (y(),
|
|
4010
|
+
e.repeatItem ? (y(!0), I(X, { key: 1 }, Ee(e.repeatItem, (g, T) => (y(), D(b, {
|
|
4011
4011
|
key: T,
|
|
4012
4012
|
repeatContext: g.context,
|
|
4013
4013
|
block: g.block,
|
|
4014
4014
|
registeredComponents: e.registeredComponents,
|
|
4015
4015
|
linkComponent: e.linkComponent
|
|
4016
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (y(),
|
|
4016
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (y(), D(m, {
|
|
4017
4017
|
key: 0,
|
|
4018
4018
|
Wrapper: e.Tag,
|
|
4019
4019
|
block: e.processedBlock,
|
|
4020
4020
|
context: e.context
|
|
4021
4021
|
}, {
|
|
4022
4022
|
default: Ie(() => [
|
|
4023
|
-
|
|
4023
|
+
ae(u, {
|
|
4024
4024
|
componentRef: e.componentRefProps.componentRef,
|
|
4025
4025
|
componentOptions: e.componentRefProps.componentOptions,
|
|
4026
4026
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -4031,7 +4031,7 @@ function Gs(e, t, n, r, o, i) {
|
|
|
4031
4031
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
4032
4032
|
isInteractive: e.componentRefProps.isInteractive
|
|
4033
4033
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
4034
|
-
(y(!0), I(X, null, Ee(e.childrenWithoutParentComponent, (g, T) => (y(),
|
|
4034
|
+
(y(!0), I(X, null, Ee(e.childrenWithoutParentComponent, (g, T) => (y(), D(p, {
|
|
4035
4035
|
key: g.id,
|
|
4036
4036
|
block: g,
|
|
4037
4037
|
registeredComponents: e.registeredComponents,
|
|
@@ -4044,7 +4044,7 @@ function Gs(e, t, n, r, o, i) {
|
|
|
4044
4044
|
], 64))
|
|
4045
4045
|
], 64)) : L("", !0);
|
|
4046
4046
|
}
|
|
4047
|
-
const ko = /* @__PURE__ */ B(zs, [["render", Gs]]),
|
|
4047
|
+
const ko = /* @__PURE__ */ B(zs, [["render", Gs]]), Lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4048
4048
|
__proto__: null,
|
|
4049
4049
|
default: ko
|
|
4050
4050
|
}, Symbol.toStringTag, { value: "Module" })), qs = N({
|
|
@@ -4079,7 +4079,7 @@ const ko = /* @__PURE__ */ B(zs, [["render", Gs]]), Wu = /* @__PURE__ */ Object.
|
|
|
4079
4079
|
methods: {
|
|
4080
4080
|
onClick() {
|
|
4081
4081
|
var e, t;
|
|
4082
|
-
|
|
4082
|
+
re() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
4083
4083
|
{
|
|
4084
4084
|
type: "builder.clickEmptyBlocks",
|
|
4085
4085
|
data: {
|
|
@@ -4092,7 +4092,7 @@ const ko = /* @__PURE__ */ B(zs, [["render", Gs]]), Wu = /* @__PURE__ */ Object.
|
|
|
4092
4092
|
},
|
|
4093
4093
|
onMouseEnter() {
|
|
4094
4094
|
var e, t;
|
|
4095
|
-
|
|
4095
|
+
re() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
4096
4096
|
{
|
|
4097
4097
|
type: "builder.hoverEmptyBlocks",
|
|
4098
4098
|
data: {
|
|
@@ -4106,7 +4106,7 @@ const ko = /* @__PURE__ */ B(zs, [["render", Gs]]), Wu = /* @__PURE__ */ Object.
|
|
|
4106
4106
|
}
|
|
4107
4107
|
});
|
|
4108
4108
|
function _s(e, t, n, r, o, i) {
|
|
4109
|
-
return y(),
|
|
4109
|
+
return y(), D(ct(e.BlocksWrapper), z({
|
|
4110
4110
|
ref: "blocksWrapperRef",
|
|
4111
4111
|
class: e.className + " component-tqyw9m0iue",
|
|
4112
4112
|
"builder-path": e.dataPath,
|
|
@@ -4117,7 +4117,7 @@ function _s(e, t, n, r, o, i) {
|
|
|
4117
4117
|
onKeyPress: (s) => e.onClick()
|
|
4118
4118
|
}, { ...e.BlocksWrapperProps }), {
|
|
4119
4119
|
default: Ie(() => [
|
|
4120
|
-
|
|
4120
|
+
ue(e.$slots, "default", {}, void 0, !0)
|
|
4121
4121
|
]),
|
|
4122
4122
|
_: 3
|
|
4123
4123
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
@@ -4136,14 +4136,14 @@ const Js = /* @__PURE__ */ B(qs, [["render", _s], ["__scopeId", "data-v-4755f88c
|
|
|
4136
4136
|
"registeredComponents"
|
|
4137
4137
|
],
|
|
4138
4138
|
inject: {
|
|
4139
|
-
builderContext:
|
|
4140
|
-
componentsContext:
|
|
4139
|
+
builderContext: hn.key,
|
|
4140
|
+
componentsContext: Dr.key
|
|
4141
4141
|
}
|
|
4142
4142
|
});
|
|
4143
4143
|
function Ys(e, t, n, r, o, i) {
|
|
4144
4144
|
var p, m, b, v;
|
|
4145
|
-
const s =
|
|
4146
|
-
return y(),
|
|
4145
|
+
const s = V("Block"), u = V("BlocksWrapper");
|
|
4146
|
+
return y(), D(u, {
|
|
4147
4147
|
blocks: e.blocks,
|
|
4148
4148
|
parent: e.parent,
|
|
4149
4149
|
path: e.path,
|
|
@@ -4155,7 +4155,7 @@ function Ys(e, t, n, r, o, i) {
|
|
|
4155
4155
|
default: Ie(() => [
|
|
4156
4156
|
e.blocks ? (y(!0), I(X, { key: 0 }, Ee(e.blocks, (g, T) => {
|
|
4157
4157
|
var U;
|
|
4158
|
-
return y(),
|
|
4158
|
+
return y(), D(s, {
|
|
4159
4159
|
key: g.id,
|
|
4160
4160
|
block: g,
|
|
4161
4161
|
linkComponent: e.linkComponent,
|
|
@@ -4173,7 +4173,7 @@ const Je = /* @__PURE__ */ B(Xs, [["render", Ys]]), Zs = N({
|
|
|
4173
4173
|
});
|
|
4174
4174
|
function Qs(e, t, n, r, o, i) {
|
|
4175
4175
|
return y(), I("div", null, [
|
|
4176
|
-
|
|
4176
|
+
ue(e.$slots, "default")
|
|
4177
4177
|
]);
|
|
4178
4178
|
}
|
|
4179
4179
|
const St = /* @__PURE__ */ B(Zs, [["render", Qs]]), ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -4210,8 +4210,8 @@ const St = /* @__PURE__ */ B(Zs, [["render", Qs]]), ea = /* @__PURE__ */ Object.
|
|
|
4210
4210
|
default: 991,
|
|
4211
4211
|
max: 1200
|
|
4212
4212
|
}
|
|
4213
|
-
},
|
|
4214
|
-
const t =
|
|
4213
|
+
}, Mu = (e, t = So) => `@media (max-width: ${t[e].max}px)`, ta = (e) => {
|
|
4214
|
+
const t = jn(So);
|
|
4215
4215
|
if (!e)
|
|
4216
4216
|
return t;
|
|
4217
4217
|
const {
|
|
@@ -4252,7 +4252,7 @@ const St = /* @__PURE__ */ B(Zs, [["render", Qs]]), ea = /* @__PURE__ */ Object.
|
|
|
4252
4252
|
name: "builder-columns",
|
|
4253
4253
|
components: {
|
|
4254
4254
|
InlinedStyles: Ln,
|
|
4255
|
-
DynamicRenderer:
|
|
4255
|
+
DynamicRenderer: Sn,
|
|
4256
4256
|
Blocks: Je,
|
|
4257
4257
|
DynamicDiv: St
|
|
4258
4258
|
},
|
|
@@ -4267,7 +4267,7 @@ const St = /* @__PURE__ */ B(Zs, [["render", Qs]]), ea = /* @__PURE__ */ Object.
|
|
|
4267
4267
|
"builderComponents"
|
|
4268
4268
|
],
|
|
4269
4269
|
data() {
|
|
4270
|
-
return { TARGET:
|
|
4270
|
+
return { TARGET: ee, getColumnsClass: na };
|
|
4271
4271
|
},
|
|
4272
4272
|
computed: {
|
|
4273
4273
|
gutterSize() {
|
|
@@ -4391,25 +4391,25 @@ const St = /* @__PURE__ */ B(Zs, [["render", Qs]]), ea = /* @__PURE__ */ Object.
|
|
|
4391
4391
|
});
|
|
4392
4392
|
function oa(e, t, n, r, o, i) {
|
|
4393
4393
|
var m;
|
|
4394
|
-
const s =
|
|
4394
|
+
const s = V("InlinedStyles"), u = V("Blocks"), p = V("DynamicRenderer");
|
|
4395
4395
|
return y(), I("div", z({
|
|
4396
4396
|
class: e.getColumnsClass((m = e.builderBlock) == null ? void 0 : m.id) + " div-4wbls88y960",
|
|
4397
4397
|
style: e.columnsCssVars()
|
|
4398
4398
|
}, {}), [
|
|
4399
|
-
e.TARGET !== "reactNative" ? (y(),
|
|
4399
|
+
e.TARGET !== "reactNative" ? (y(), D(s, {
|
|
4400
4400
|
key: 0,
|
|
4401
4401
|
id: "builderio-columns",
|
|
4402
4402
|
styles: e.columnsStyles(),
|
|
4403
4403
|
nonce: e.builderContext.nonce
|
|
4404
4404
|
}, null, 8, ["styles", "nonce"])) : L("", !0),
|
|
4405
|
-
(y(!0), I(X, null, Ee(e.columns, (b, v) => (y(),
|
|
4405
|
+
(y(!0), I(X, null, Ee(e.columns, (b, v) => (y(), D(p, {
|
|
4406
4406
|
key: v,
|
|
4407
4407
|
TagName: e.getTagName(b),
|
|
4408
4408
|
actionAttributes: {},
|
|
4409
4409
|
attributes: e.getAttributes(b, v)
|
|
4410
4410
|
}, {
|
|
4411
4411
|
default: Ie(() => [
|
|
4412
|
-
|
|
4412
|
+
ae(u, {
|
|
4413
4413
|
path: `columns.${v}.blocks`,
|
|
4414
4414
|
parent: e.builderBlock.id,
|
|
4415
4415
|
context: e.builderContext,
|
|
@@ -4431,7 +4431,7 @@ const ia = /* @__PURE__ */ B(ra, [["render", oa], ["__scopeId", "data-v-bdc9da04
|
|
|
4431
4431
|
});
|
|
4432
4432
|
function aa(e, t, n, r, o, i) {
|
|
4433
4433
|
return y(), I("span", null, [
|
|
4434
|
-
|
|
4434
|
+
ue(e.$slots, "default")
|
|
4435
4435
|
]);
|
|
4436
4436
|
}
|
|
4437
4437
|
const la = /* @__PURE__ */ B(sa, [["render", aa]]);
|
|
@@ -4454,7 +4454,7 @@ function ca(e, t) {
|
|
|
4454
4454
|
}
|
|
4455
4455
|
return null;
|
|
4456
4456
|
}
|
|
4457
|
-
function
|
|
4457
|
+
function un(e) {
|
|
4458
4458
|
if (!e)
|
|
4459
4459
|
return e;
|
|
4460
4460
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -4493,10 +4493,10 @@ const pa = N({
|
|
|
4493
4493
|
if (!this.noWebp) {
|
|
4494
4494
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
4495
4495
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
4496
|
-
return console.debug("Removed given srcset"),
|
|
4496
|
+
return console.debug("Removed given srcset"), un(t);
|
|
4497
4497
|
} else if (this.image && !this.srcset)
|
|
4498
|
-
return
|
|
4499
|
-
return
|
|
4498
|
+
return un(t);
|
|
4499
|
+
return un(t);
|
|
4500
4500
|
}
|
|
4501
4501
|
},
|
|
4502
4502
|
webpSrcSet() {
|
|
@@ -4552,9 +4552,9 @@ function ma(e, t, n, r, o, i) {
|
|
|
4552
4552
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
4553
4553
|
})
|
|
4554
4554
|
}, null, 4)) : L("", !0),
|
|
4555
|
-
(m = (p = e.builderBlock) == null ? void 0 : p.children) != null && m.length && e.fitContent ?
|
|
4555
|
+
(m = (p = e.builderBlock) == null ? void 0 : p.children) != null && m.length && e.fitContent ? ue(e.$slots, "default", { key: 1 }, void 0, !0) : L("", !0),
|
|
4556
4556
|
!e.fitContent && ((v = (b = e.builderBlock) == null ? void 0 : b.children) != null && v.length) ? (y(), I("div", ha, [
|
|
4557
|
-
|
|
4557
|
+
ue(e.$slots, "default", {}, void 0, !0)
|
|
4558
4558
|
])) : L("", !0)
|
|
4559
4559
|
], 64);
|
|
4560
4560
|
}
|
|
@@ -4580,10 +4580,10 @@ function va(e, t, n, r, o, i) {
|
|
|
4580
4580
|
marginRight: "auto"
|
|
4581
4581
|
}
|
|
4582
4582
|
}, e.filterAttrs(e.attributes, "v-on:", !1), de(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4583
|
-
|
|
4583
|
+
ue(e.$slots, "default")
|
|
4584
4584
|
], 16);
|
|
4585
4585
|
}
|
|
4586
|
-
const ba = /* @__PURE__ */ B(ya, [["render", va]]),
|
|
4586
|
+
const ba = /* @__PURE__ */ B(ya, [["render", va]]), cn = {
|
|
4587
4587
|
"@type": "@builder.io/sdk:Element",
|
|
4588
4588
|
layerName: "Accordion item title",
|
|
4589
4589
|
responsiveStyles: {
|
|
@@ -4612,7 +4612,7 @@ const ba = /* @__PURE__ */ B(ya, [["render", va]]), un = {
|
|
|
4612
4612
|
}
|
|
4613
4613
|
}
|
|
4614
4614
|
}]
|
|
4615
|
-
},
|
|
4615
|
+
}, pn = {
|
|
4616
4616
|
"@type": "@builder.io/sdk:Element",
|
|
4617
4617
|
layerName: "Accordion item detail",
|
|
4618
4618
|
responsiveStyles: {
|
|
@@ -4660,19 +4660,19 @@ const ba = /* @__PURE__ */ B(ya, [["render", va]]), un = {
|
|
|
4660
4660
|
name: "title",
|
|
4661
4661
|
type: "uiBlocks",
|
|
4662
4662
|
hideFromUI: !0,
|
|
4663
|
-
defaultValue: [
|
|
4663
|
+
defaultValue: [cn]
|
|
4664
4664
|
}, {
|
|
4665
4665
|
name: "detail",
|
|
4666
4666
|
type: "uiBlocks",
|
|
4667
4667
|
hideFromUI: !0,
|
|
4668
|
-
defaultValue: [
|
|
4668
|
+
defaultValue: [pn]
|
|
4669
4669
|
}],
|
|
4670
4670
|
defaultValue: [{
|
|
4671
|
-
title: [
|
|
4672
|
-
detail: [
|
|
4671
|
+
title: [cn],
|
|
4672
|
+
detail: [pn]
|
|
4673
4673
|
}, {
|
|
4674
|
-
title: [
|
|
4675
|
-
detail: [
|
|
4674
|
+
title: [cn],
|
|
4675
|
+
detail: [pn]
|
|
4676
4676
|
}],
|
|
4677
4677
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
4678
4678
|
}, {
|
|
@@ -4804,7 +4804,7 @@ const ba = /* @__PURE__ */ B(ya, [["render", va]]), un = {
|
|
|
4804
4804
|
}
|
|
4805
4805
|
}), wa = ["data-index", "onClick"];
|
|
4806
4806
|
function Ea(e, t, n, r, o, i) {
|
|
4807
|
-
const s =
|
|
4807
|
+
const s = V("Blocks");
|
|
4808
4808
|
return y(), I("div", {
|
|
4809
4809
|
class: "builder-accordion",
|
|
4810
4810
|
style: Pe(e.accordionStyles)
|
|
@@ -4822,7 +4822,7 @@ function Ea(e, t, n, r, o, i) {
|
|
|
4822
4822
|
"data-index": p,
|
|
4823
4823
|
onClick: async (m) => e.onClick(p)
|
|
4824
4824
|
}, [
|
|
4825
|
-
|
|
4825
|
+
ae(s, {
|
|
4826
4826
|
blocks: u.title,
|
|
4827
4827
|
path: `items.${p}.title`,
|
|
4828
4828
|
parent: e.builderBlock.id,
|
|
@@ -4836,7 +4836,7 @@ function Ea(e, t, n, r, o, i) {
|
|
|
4836
4836
|
class: ht(e.getAccordionDetailClassName(p)),
|
|
4837
4837
|
style: Pe(e.accordionDetailStyles)
|
|
4838
4838
|
}, [
|
|
4839
|
-
|
|
4839
|
+
ae(s, {
|
|
4840
4840
|
blocks: u.detail,
|
|
4841
4841
|
path: `items.${p}.detail`,
|
|
4842
4842
|
parent: e.builderBlock.id,
|
|
@@ -5278,7 +5278,7 @@ const Ta = /* @__PURE__ */ B(Ca, [["render", Ea]]), Ia = {
|
|
|
5278
5278
|
});
|
|
5279
5279
|
function ja(e, t, n, r, o, i) {
|
|
5280
5280
|
var u, p, m;
|
|
5281
|
-
const s =
|
|
5281
|
+
const s = V("Blocks");
|
|
5282
5282
|
return y(), I("div", z(
|
|
5283
5283
|
{ style: {
|
|
5284
5284
|
pointerEvents: "auto"
|
|
@@ -5287,7 +5287,7 @@ function ja(e, t, n, r, o, i) {
|
|
|
5287
5287
|
"builder-slot": e.name
|
|
5288
5288
|
}
|
|
5289
5289
|
), [
|
|
5290
|
-
|
|
5290
|
+
ae(s, {
|
|
5291
5291
|
parent: (p = e.builderContext.context) == null ? void 0 : p.symbolId,
|
|
5292
5292
|
path: `symbol.data.${e.name}`,
|
|
5293
5293
|
context: e.builderContext,
|
|
@@ -5335,7 +5335,7 @@ const Ba = /* @__PURE__ */ B(Na, [["render", ja]]), Ua = {
|
|
|
5335
5335
|
builderComponents: !0,
|
|
5336
5336
|
builderLinkComponent: !0
|
|
5337
5337
|
}
|
|
5338
|
-
},
|
|
5338
|
+
}, dn = {
|
|
5339
5339
|
"@type": "@builder.io/sdk:Element",
|
|
5340
5340
|
responsiveStyles: {
|
|
5341
5341
|
large: {
|
|
@@ -5357,7 +5357,7 @@ const Ba = /* @__PURE__ */ B(Na, [["render", ja]]), Ua = {
|
|
|
5357
5357
|
text: "New tab"
|
|
5358
5358
|
}
|
|
5359
5359
|
}
|
|
5360
|
-
},
|
|
5360
|
+
}, fn = {
|
|
5361
5361
|
"@type": "@builder.io/sdk:Element",
|
|
5362
5362
|
responsiveStyles: {
|
|
5363
5363
|
large: {
|
|
@@ -5373,7 +5373,7 @@ const Ba = /* @__PURE__ */ B(Na, [["render", ja]]), Ua = {
|
|
|
5373
5373
|
text: "New tab content "
|
|
5374
5374
|
}
|
|
5375
5375
|
}
|
|
5376
|
-
},
|
|
5376
|
+
}, Da = {
|
|
5377
5377
|
name: "Builder: Tabs",
|
|
5378
5378
|
inputs: [{
|
|
5379
5379
|
name: "tabs",
|
|
@@ -5383,16 +5383,16 @@ const Ba = /* @__PURE__ */ B(Na, [["render", ja]]), Ua = {
|
|
|
5383
5383
|
name: "label",
|
|
5384
5384
|
type: "uiBlocks",
|
|
5385
5385
|
hideFromUI: !0,
|
|
5386
|
-
defaultValue: [
|
|
5386
|
+
defaultValue: [dn]
|
|
5387
5387
|
}, {
|
|
5388
5388
|
name: "content",
|
|
5389
5389
|
type: "uiBlocks",
|
|
5390
5390
|
hideFromUI: !0,
|
|
5391
|
-
defaultValue: [
|
|
5391
|
+
defaultValue: [fn]
|
|
5392
5392
|
}],
|
|
5393
5393
|
defaultValue: [{
|
|
5394
5394
|
label: [{
|
|
5395
|
-
...
|
|
5395
|
+
...dn,
|
|
5396
5396
|
component: {
|
|
5397
5397
|
name: "Text",
|
|
5398
5398
|
options: {
|
|
@@ -5401,7 +5401,7 @@ const Ba = /* @__PURE__ */ B(Na, [["render", ja]]), Ua = {
|
|
|
5401
5401
|
}
|
|
5402
5402
|
}],
|
|
5403
5403
|
content: [{
|
|
5404
|
-
...
|
|
5404
|
+
...fn,
|
|
5405
5405
|
component: {
|
|
5406
5406
|
name: "Text",
|
|
5407
5407
|
options: {
|
|
@@ -5411,7 +5411,7 @@ const Ba = /* @__PURE__ */ B(Na, [["render", ja]]), Ua = {
|
|
|
5411
5411
|
}]
|
|
5412
5412
|
}, {
|
|
5413
5413
|
label: [{
|
|
5414
|
-
...
|
|
5414
|
+
...dn,
|
|
5415
5415
|
component: {
|
|
5416
5416
|
name: "Text",
|
|
5417
5417
|
options: {
|
|
@@ -5420,7 +5420,7 @@ const Ba = /* @__PURE__ */ B(Na, [["render", ja]]), Ua = {
|
|
|
5420
5420
|
}
|
|
5421
5421
|
}],
|
|
5422
5422
|
content: [{
|
|
5423
|
-
...
|
|
5423
|
+
...fn,
|
|
5424
5424
|
component: {
|
|
5425
5425
|
name: "Text",
|
|
5426
5426
|
options: {
|
|
@@ -5476,7 +5476,7 @@ const Ba = /* @__PURE__ */ B(Na, [["render", ja]]), Ua = {
|
|
|
5476
5476
|
builderComponents: !0,
|
|
5477
5477
|
builderLinkComponent: !0
|
|
5478
5478
|
}
|
|
5479
|
-
},
|
|
5479
|
+
}, Va = N({
|
|
5480
5480
|
name: "builder-tabs",
|
|
5481
5481
|
components: { Blocks: Je },
|
|
5482
5482
|
props: [
|
|
@@ -5503,7 +5503,7 @@ const Ba = /* @__PURE__ */ B(Na, [["render", ja]]), Ua = {
|
|
|
5503
5503
|
}
|
|
5504
5504
|
}), Fa = ["onClick"], Wa = { key: 0 };
|
|
5505
5505
|
function La(e, t, n, r, o, i) {
|
|
5506
|
-
const s =
|
|
5506
|
+
const s = V("Blocks");
|
|
5507
5507
|
return y(), I("div", null, [
|
|
5508
5508
|
ze("div", {
|
|
5509
5509
|
class: "builder-tabs-wrap",
|
|
@@ -5522,7 +5522,7 @@ function La(e, t, n, r, o, i) {
|
|
|
5522
5522
|
}),
|
|
5523
5523
|
onClick: async (m) => e.onClick(p)
|
|
5524
5524
|
}, [
|
|
5525
|
-
|
|
5525
|
+
ae(s, {
|
|
5526
5526
|
parent: e.builderBlock.id,
|
|
5527
5527
|
path: `tabs.${p}.label`,
|
|
5528
5528
|
blocks: u.label,
|
|
@@ -5533,7 +5533,7 @@ function La(e, t, n, r, o, i) {
|
|
|
5533
5533
|
], 14, Fa))), 128))
|
|
5534
5534
|
], 4),
|
|
5535
5535
|
e.activeTabContent(e.activeTab) ? (y(), I("div", Wa, [
|
|
5536
|
-
|
|
5536
|
+
ae(s, {
|
|
5537
5537
|
parent: e.builderBlock.id,
|
|
5538
5538
|
path: `tabs.${e.activeTab}.content`,
|
|
5539
5539
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -5544,7 +5544,7 @@ function La(e, t, n, r, o, i) {
|
|
|
5544
5544
|
])) : L("", !0)
|
|
5545
5545
|
]);
|
|
5546
5546
|
}
|
|
5547
|
-
const Ma = /* @__PURE__ */ B(
|
|
5547
|
+
const Ma = /* @__PURE__ */ B(Va, [["render", La]]), Ha = {
|
|
5548
5548
|
shouldReceiveBuilderProps: {
|
|
5549
5549
|
builderBlock: !1,
|
|
5550
5550
|
builderContext: !0
|
|
@@ -5604,34 +5604,59 @@ const qa = /* @__PURE__ */ B(Ka, [["render", Ga]]), _a = {
|
|
|
5604
5604
|
}]
|
|
5605
5605
|
}, Ja = N({
|
|
5606
5606
|
name: "builder-custom-code",
|
|
5607
|
-
props: ["
|
|
5607
|
+
props: ["code", "replaceNodes"],
|
|
5608
5608
|
data() {
|
|
5609
5609
|
return { scriptsInserted: [], scriptsRun: [] };
|
|
5610
5610
|
},
|
|
5611
5611
|
mounted() {
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5612
|
+
this.runScripts();
|
|
5613
|
+
},
|
|
5614
|
+
watch: {
|
|
5615
|
+
onUpdateHook0: {
|
|
5616
|
+
handler() {
|
|
5617
|
+
re() && setTimeout(() => {
|
|
5618
|
+
this.runScripts();
|
|
5619
|
+
}, 0);
|
|
5620
|
+
},
|
|
5621
|
+
immediate: !0
|
|
5622
|
+
}
|
|
5623
|
+
},
|
|
5624
|
+
computed: {
|
|
5625
|
+
onUpdateHook0() {
|
|
5626
|
+
return {
|
|
5627
|
+
0: this.code
|
|
5628
|
+
};
|
|
5629
|
+
}
|
|
5630
|
+
},
|
|
5631
|
+
methods: {
|
|
5632
|
+
runScripts() {
|
|
5633
|
+
var t;
|
|
5634
|
+
if (!this.$refs.elementRef || !((t = this.$refs.elementRef) != null && t.getElementsByTagName) || typeof window > "u")
|
|
5635
|
+
return;
|
|
5636
|
+
const e = this.$refs.elementRef.getElementsByTagName("script");
|
|
5637
|
+
for (let n = 0; n < e.length; n++) {
|
|
5638
|
+
const r = e[n];
|
|
5639
|
+
if (r.src) {
|
|
5640
|
+
if (this.scriptsInserted.includes(r.src))
|
|
5641
|
+
continue;
|
|
5642
|
+
this.scriptsInserted.push(r.src);
|
|
5643
|
+
const o = document.createElement("script");
|
|
5644
|
+
o.async = !0, o.src = r.src, document.head.appendChild(o);
|
|
5645
|
+
} else if (!r.type || [
|
|
5646
|
+
"text/javascript",
|
|
5647
|
+
"application/javascript",
|
|
5648
|
+
"application/ecmascript"
|
|
5649
|
+
].includes(r.type)) {
|
|
5650
|
+
if (this.scriptsRun.includes(r.innerText))
|
|
5651
|
+
continue;
|
|
5652
|
+
try {
|
|
5653
|
+
this.scriptsRun.push(r.innerText), new Function(r.innerText)();
|
|
5654
|
+
} catch (o) {
|
|
5655
|
+
ie.warn(
|
|
5656
|
+
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
5657
|
+
o
|
|
5658
|
+
);
|
|
5659
|
+
}
|
|
5635
5660
|
}
|
|
5636
5661
|
}
|
|
5637
5662
|
}
|
|
@@ -5696,7 +5721,7 @@ const Za = /* @__PURE__ */ B(Ja, [["render", Ya]]), Qa = {
|
|
|
5696
5721
|
try {
|
|
5697
5722
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
5698
5723
|
} catch (r) {
|
|
5699
|
-
|
|
5724
|
+
ie.warn("[BUILDER.IO] `Embed`: Error running script:", r);
|
|
5700
5725
|
}
|
|
5701
5726
|
}
|
|
5702
5727
|
}
|
|
@@ -5990,7 +6015,7 @@ const il = /* @__PURE__ */ B(nl, [["render", ol]]), sl = {
|
|
|
5990
6015
|
this.builderContext.rootSetState ? (r = (n = this.builderContext).rootSetState) == null || r.call(n, t) : this.builderContext.rootState = t;
|
|
5991
6016
|
},
|
|
5992
6017
|
submissionState() {
|
|
5993
|
-
return
|
|
6018
|
+
return re() && this.previewState || this.formState;
|
|
5994
6019
|
},
|
|
5995
6020
|
onSubmit(e) {
|
|
5996
6021
|
var n;
|
|
@@ -6061,7 +6086,7 @@ const il = /* @__PURE__ */ B(nl, [["render", ol]]), sl = {
|
|
|
6061
6086
|
let T;
|
|
6062
6087
|
const U = g.headers.get("content-type");
|
|
6063
6088
|
if (U && U.indexOf("application/json") !== -1 ? T = await g.json() : T = await g.text(), !g.ok && this.errorMessagePath) {
|
|
6064
|
-
let O =
|
|
6089
|
+
let O = Vr(T, this.errorMessagePath);
|
|
6065
6090
|
O && (typeof O != "string" && (O = JSON.stringify(O)), this.formErrorMessage = O, this.mergeNewRootState({
|
|
6066
6091
|
formErrorMessage: O
|
|
6067
6092
|
}));
|
|
@@ -6107,7 +6132,7 @@ const il = /* @__PURE__ */ B(nl, [["render", ol]]), sl = {
|
|
|
6107
6132
|
class: "builder-form-error-text pre-1hjwvu3r5mj"
|
|
6108
6133
|
};
|
|
6109
6134
|
function dl(e, t, n, r, o, i) {
|
|
6110
|
-
const s =
|
|
6135
|
+
const s = V("Blocks");
|
|
6111
6136
|
return y(), I("form", z({
|
|
6112
6137
|
validate: e.validate,
|
|
6113
6138
|
ref: "formRef",
|
|
@@ -6116,21 +6141,21 @@ function dl(e, t, n, r, o, i) {
|
|
|
6116
6141
|
name: e.name,
|
|
6117
6142
|
onSubmit: t[0] || (t[0] = async (u) => e.onSubmit(u))
|
|
6118
6143
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, de(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
6119
|
-
|
|
6120
|
-
e.submissionState() === "error" ? (y(),
|
|
6144
|
+
ue(e.$slots, "default", {}, void 0, !0),
|
|
6145
|
+
e.submissionState() === "error" ? (y(), D(s, {
|
|
6121
6146
|
key: 0,
|
|
6122
6147
|
path: "errorMessage",
|
|
6123
6148
|
blocks: e.errorMessage,
|
|
6124
6149
|
context: e.builderContext
|
|
6125
6150
|
}, null, 8, ["blocks", "context"])) : L("", !0),
|
|
6126
|
-
e.submissionState() === "sending" ? (y(),
|
|
6151
|
+
e.submissionState() === "sending" ? (y(), D(s, {
|
|
6127
6152
|
key: 1,
|
|
6128
6153
|
path: "sendingMessage",
|
|
6129
6154
|
blocks: e.sendingMessage,
|
|
6130
6155
|
context: e.builderContext
|
|
6131
6156
|
}, null, 8, ["blocks", "context"])) : L("", !0),
|
|
6132
6157
|
e.submissionState() === "error" && e.responseData ? (y(), I("pre", pl, Bt(JSON.stringify(e.responseData, null, 2)), 1)) : L("", !0),
|
|
6133
|
-
e.submissionState() === "success" ? (y(),
|
|
6158
|
+
e.submissionState() === "success" ? (y(), D(s, {
|
|
6134
6159
|
key: 3,
|
|
6135
6160
|
path: "successMessage",
|
|
6136
6161
|
blocks: e.successMessage,
|
|
@@ -6201,7 +6226,7 @@ const fl = /* @__PURE__ */ B(ul, [["render", dl], ["__scopeId", "data-v-4ef43cdd
|
|
|
6201
6226
|
"required"
|
|
6202
6227
|
],
|
|
6203
6228
|
data() {
|
|
6204
|
-
return { isEditing:
|
|
6229
|
+
return { isEditing: re, filterAttrs: he };
|
|
6205
6230
|
}
|
|
6206
6231
|
}), gl = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
6207
6232
|
function yl(e, t, n, r, o, i) {
|
|
@@ -6261,7 +6286,7 @@ const vl = /* @__PURE__ */ B(ml, [["render", yl]]), bl = {
|
|
|
6261
6286
|
name: "builder-select-component",
|
|
6262
6287
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
6263
6288
|
data() {
|
|
6264
|
-
return { isEditing:
|
|
6289
|
+
return { isEditing: re, filterAttrs: he };
|
|
6265
6290
|
}
|
|
6266
6291
|
}), Sl = ["value", "defaultValue", "name", "required"], Cl = ["value"];
|
|
6267
6292
|
function wl(e, t, n, r, o, i) {
|
|
@@ -6397,10 +6422,10 @@ const Nl = /* @__PURE__ */ B($l, [["render", Ol]]), jl = {
|
|
|
6397
6422
|
"attributes"
|
|
6398
6423
|
],
|
|
6399
6424
|
data() {
|
|
6400
|
-
return { isEditing:
|
|
6425
|
+
return { isEditing: re, filterAttrs: he };
|
|
6401
6426
|
}
|
|
6402
6427
|
}), Ul = ["alt", "src"];
|
|
6403
|
-
function
|
|
6428
|
+
function Dl(e, t, n, r, o, i) {
|
|
6404
6429
|
return y(), I("img", z({
|
|
6405
6430
|
style: {
|
|
6406
6431
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -6411,7 +6436,7 @@ function Vl(e, t, n, r, o, i) {
|
|
|
6411
6436
|
src: e.imgSrc || e.image
|
|
6412
6437
|
}, e.filterAttrs(e.attributes, "v-on:", !1), de(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ul);
|
|
6413
6438
|
}
|
|
6414
|
-
const
|
|
6439
|
+
const Vl = /* @__PURE__ */ B(Bl, [["render", Dl]]), Fl = {
|
|
6415
6440
|
name: "Video",
|
|
6416
6441
|
canHaveChildren: !0,
|
|
6417
6442
|
defaultStyles: {
|
|
@@ -6632,10 +6657,10 @@ function zl(e, t, n, r, o, i) {
|
|
|
6632
6657
|
})
|
|
6633
6658
|
}, null, 4)) : L("", !0),
|
|
6634
6659
|
(b = (m = e.builderBlock) == null ? void 0 : m.children) != null && b.length && e.fitContent ? (y(), I("div", Hl, [
|
|
6635
|
-
|
|
6660
|
+
ue(e.$slots, "default")
|
|
6636
6661
|
])) : L("", !0),
|
|
6637
6662
|
(g = (v = e.builderBlock) == null ? void 0 : v.children) != null && g.length && !e.fitContent ? (y(), I("div", Kl, [
|
|
6638
|
-
|
|
6663
|
+
ue(e.$slots, "default")
|
|
6639
6664
|
])) : L("", !0)
|
|
6640
6665
|
]);
|
|
6641
6666
|
}
|
|
@@ -6661,7 +6686,7 @@ const Gl = /* @__PURE__ */ B(Wl, [["render", zl]]), ql = () => [{
|
|
|
6661
6686
|
component: Nl,
|
|
6662
6687
|
...Al
|
|
6663
6688
|
}, {
|
|
6664
|
-
component:
|
|
6689
|
+
component: Vl,
|
|
6665
6690
|
...jl
|
|
6666
6691
|
}, {
|
|
6667
6692
|
component: Gl,
|
|
@@ -6685,18 +6710,18 @@ const Gl = /* @__PURE__ */ B(Wl, [["render", zl]]), ql = () => [{
|
|
|
6685
6710
|
component: Ba,
|
|
6686
6711
|
...Oa
|
|
6687
6712
|
}, {
|
|
6688
|
-
component:
|
|
6713
|
+
component: Pu,
|
|
6689
6714
|
...Ua
|
|
6690
6715
|
}, {
|
|
6691
6716
|
component: qa,
|
|
6692
6717
|
...Ha
|
|
6693
6718
|
}, {
|
|
6694
6719
|
component: Ma,
|
|
6695
|
-
...
|
|
6720
|
+
...Da
|
|
6696
6721
|
}, {
|
|
6697
6722
|
component: Ta,
|
|
6698
6723
|
...ka
|
|
6699
|
-
}, ...ql()], _l = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
6724
|
+
}, ...ql()], _l = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
6700
6725
|
function getAndSetVariantId() {
|
|
6701
6726
|
function setCookie(name, value, days) {
|
|
6702
6727
|
let expires = '';
|
|
@@ -6738,7 +6763,10 @@ const Gl = /* @__PURE__ */ B(Wl, [["render", zl]]), ql = () => [{
|
|
|
6738
6763
|
return contentId;
|
|
6739
6764
|
}
|
|
6740
6765
|
const winningVariantId = getAndSetVariantId();
|
|
6741
|
-
|
|
6766
|
+
let styleEl = document.currentScript?.previousElementSibling;
|
|
6767
|
+
if (isAngularSDK) {
|
|
6768
|
+
styleEl = document.currentScript?.parentElement?.previousElementSibling?.querySelector('style');
|
|
6769
|
+
}
|
|
6742
6770
|
if (isHydrationTarget) {
|
|
6743
6771
|
styleEl.remove();
|
|
6744
6772
|
const thisScriptEl = document.currentScript;
|
|
@@ -6793,13 +6821,13 @@ const Gl = /* @__PURE__ */ B(Wl, [["render", zl]]), ql = () => [{
|
|
|
6793
6821
|
})), Xl = ({
|
|
6794
6822
|
canTrack: e,
|
|
6795
6823
|
content: t
|
|
6796
|
-
}) => !(!(Pt(t).length > 0) || !e), Yl = (e) => e === "react" || e === "reactNative", To = Yl(
|
|
6824
|
+
}) => !(!(Pt(t).length > 0) || !e), Yl = (e) => e === "react" || e === "reactNative", Zl = ee === "angular", To = Yl(ee), Ql = () => `
|
|
6797
6825
|
window.${wo} = ${_l}
|
|
6798
6826
|
window.${Eo} = ${Jl}
|
|
6799
|
-
`,
|
|
6827
|
+
`, eu = (e, t) => `
|
|
6800
6828
|
window.${wo}(
|
|
6801
|
-
"${t}",${JSON.stringify(e)}, ${To}
|
|
6802
|
-
)`,
|
|
6829
|
+
"${t}",${JSON.stringify(e)}, ${To}, ${Zl}
|
|
6830
|
+
)`, tu = ({
|
|
6803
6831
|
contentId: e,
|
|
6804
6832
|
variationId: t
|
|
6805
6833
|
}) => `window.${Eo}(
|
|
@@ -6808,7 +6836,7 @@ const Gl = /* @__PURE__ */ B(Wl, [["render", zl]]), ql = () => [{
|
|
|
6808
6836
|
function jr(e) {
|
|
6809
6837
|
return Math.round(e * 1e3) / 1e3;
|
|
6810
6838
|
}
|
|
6811
|
-
const
|
|
6839
|
+
const nu = (e, t, n = !0) => {
|
|
6812
6840
|
if (!(e instanceof HTMLElement))
|
|
6813
6841
|
return null;
|
|
6814
6842
|
let r = n ? e : e.parentElement;
|
|
@@ -6819,7 +6847,7 @@ const tu = (e, t, n = !0) => {
|
|
|
6819
6847
|
return r;
|
|
6820
6848
|
} while (r = r.parentElement);
|
|
6821
6849
|
return null;
|
|
6822
|
-
},
|
|
6850
|
+
}, ru = (e) => nu(e, (t) => {
|
|
6823
6851
|
const n = t.getAttribute("builder-id") || t.id;
|
|
6824
6852
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
6825
6853
|
}), Br = ({
|
|
@@ -6831,8 +6859,8 @@ const tu = (e, t, n = !0) => {
|
|
|
6831
6859
|
x: i,
|
|
6832
6860
|
y: s
|
|
6833
6861
|
};
|
|
6834
|
-
},
|
|
6835
|
-
const t = e.target, n = t &&
|
|
6862
|
+
}, ou = (e) => {
|
|
6863
|
+
const t = e.target, n = t && ru(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
6836
6864
|
return {
|
|
6837
6865
|
targetBuilderElement: r || void 0,
|
|
6838
6866
|
metadata: {
|
|
@@ -6847,7 +6875,7 @@ const tu = (e, t, n = !0) => {
|
|
|
6847
6875
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
6848
6876
|
}
|
|
6849
6877
|
};
|
|
6850
|
-
},
|
|
6878
|
+
}, iu = ["svelte", "qwik", "vue"], su = () => iu.includes(ee) && (re() || Xr()), au = (e) => {
|
|
6851
6879
|
var i;
|
|
6852
6880
|
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);
|
|
6853
6881
|
let o = "";
|
|
@@ -6873,15 +6901,15 @@ font-weight: ${s};
|
|
|
6873
6901
|
`.trim());
|
|
6874
6902
|
}
|
|
6875
6903
|
return o;
|
|
6876
|
-
},
|
|
6904
|
+
}, lu = ({
|
|
6877
6905
|
customFonts: e
|
|
6878
6906
|
}) => {
|
|
6879
6907
|
var t;
|
|
6880
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
6881
|
-
},
|
|
6908
|
+
return ((t = e == null ? void 0 : e.map((n) => au(n))) == null ? void 0 : t.join(" ")) || "";
|
|
6909
|
+
}, uu = ({
|
|
6882
6910
|
cssCode: e,
|
|
6883
6911
|
contentId: t
|
|
6884
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
6912
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", cu = `
|
|
6885
6913
|
.builder-button {
|
|
6886
6914
|
all: unset;
|
|
6887
6915
|
}
|
|
@@ -6898,7 +6926,7 @@ font-weight: ${s};
|
|
|
6898
6926
|
text-align: inherit;
|
|
6899
6927
|
font-family: inherit;
|
|
6900
6928
|
}
|
|
6901
|
-
`,
|
|
6929
|
+
`, pu = (e) => e ? "" : cu, du = (e) => `variant-${e}`, fu = N({
|
|
6902
6930
|
name: "enable-editor",
|
|
6903
6931
|
components: { DynamicDiv: St },
|
|
6904
6932
|
props: [
|
|
@@ -6920,41 +6948,47 @@ font-weight: ${s};
|
|
|
6920
6948
|
],
|
|
6921
6949
|
data() {
|
|
6922
6950
|
return {
|
|
6951
|
+
hasExecuted: !1,
|
|
6923
6952
|
ContentWrapper: this.contentWrapper || "div",
|
|
6924
6953
|
httpReqsData: {},
|
|
6925
6954
|
httpReqsPending: {},
|
|
6926
6955
|
clicked: !1,
|
|
6927
|
-
builderContext:
|
|
6928
|
-
needsElementRefDivForEditing:
|
|
6929
|
-
getWrapperClassName:
|
|
6956
|
+
builderContext: hn,
|
|
6957
|
+
needsElementRefDivForEditing: su,
|
|
6958
|
+
getWrapperClassName: du
|
|
6930
6959
|
};
|
|
6931
6960
|
},
|
|
6932
6961
|
provide() {
|
|
6933
6962
|
const e = this;
|
|
6934
6963
|
return {
|
|
6935
|
-
[
|
|
6964
|
+
[hn.key]: e.builderContextSignal
|
|
6936
6965
|
};
|
|
6937
6966
|
},
|
|
6938
6967
|
created() {
|
|
6939
6968
|
this.runHttpRequests(), this.emitStateUpdate();
|
|
6940
6969
|
},
|
|
6941
6970
|
mounted() {
|
|
6942
|
-
var e, t;
|
|
6971
|
+
var e, t, n;
|
|
6943
6972
|
if (G()) {
|
|
6944
|
-
|
|
6973
|
+
re() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
6945
6974
|
new CustomEvent("initeditingbldr")
|
|
6946
|
-
)
|
|
6947
|
-
|
|
6948
|
-
|
|
6975
|
+
);
|
|
6976
|
+
const r = this.builderContextSignal.content && yt(this.canTrack), o = Vt({
|
|
6977
|
+
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
6978
|
+
canTrack: !0
|
|
6979
|
+
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
6980
|
+
if (r && i === o) {
|
|
6981
|
+
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, u = this.apiKey;
|
|
6982
|
+
bn({
|
|
6949
6983
|
apiHost: this.apiHost,
|
|
6950
6984
|
type: "impression",
|
|
6951
6985
|
canTrack: !0,
|
|
6952
|
-
contentId:
|
|
6953
|
-
apiKey:
|
|
6954
|
-
variationId:
|
|
6986
|
+
contentId: s,
|
|
6987
|
+
apiKey: u,
|
|
6988
|
+
variationId: o !== s ? o : void 0
|
|
6955
6989
|
});
|
|
6956
6990
|
}
|
|
6957
|
-
Xr() && !
|
|
6991
|
+
Xr() && !re() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
6958
6992
|
new CustomEvent("initpreviewingbldr")
|
|
6959
6993
|
);
|
|
6960
6994
|
}
|
|
@@ -7077,14 +7111,14 @@ font-weight: ${s};
|
|
|
7077
7111
|
var t, n;
|
|
7078
7112
|
if (this.builderContextSignal.content) {
|
|
7079
7113
|
const r = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, o = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
7080
|
-
|
|
7114
|
+
bn({
|
|
7081
7115
|
apiHost: this.apiHost,
|
|
7082
7116
|
type: "click",
|
|
7083
7117
|
canTrack: yt(this.canTrack),
|
|
7084
7118
|
contentId: o,
|
|
7085
7119
|
apiKey: this.apiKey,
|
|
7086
7120
|
variationId: r !== o ? r : void 0,
|
|
7087
|
-
...
|
|
7121
|
+
...ou(e),
|
|
7088
7122
|
unique: !this.clicked
|
|
7089
7123
|
});
|
|
7090
7124
|
}
|
|
@@ -7094,7 +7128,7 @@ font-weight: ${s};
|
|
|
7094
7128
|
var t, n;
|
|
7095
7129
|
const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
|
|
7096
7130
|
Object.entries(e).forEach(([r, o]) => {
|
|
7097
|
-
if (!o || this.httpReqsPending[r] || this.httpReqsData[r] && !
|
|
7131
|
+
if (!o || this.httpReqsPending[r] || this.httpReqsData[r] && !re())
|
|
7098
7132
|
return;
|
|
7099
7133
|
this.httpReqsPending[r] = !0;
|
|
7100
7134
|
const i = o.replace(
|
|
@@ -7121,12 +7155,12 @@ font-weight: ${s};
|
|
|
7121
7155
|
});
|
|
7122
7156
|
},
|
|
7123
7157
|
emitStateUpdate() {
|
|
7124
|
-
|
|
7158
|
+
re() && window.dispatchEvent(
|
|
7125
7159
|
new CustomEvent(
|
|
7126
7160
|
"builder:component:stateChange",
|
|
7127
7161
|
{
|
|
7128
7162
|
detail: {
|
|
7129
|
-
state:
|
|
7163
|
+
state: jn(this.builderContextSignal.rootState),
|
|
7130
7164
|
ref: {
|
|
7131
7165
|
name: this.model
|
|
7132
7166
|
}
|
|
@@ -7181,9 +7215,9 @@ font-weight: ${s};
|
|
|
7181
7215
|
}
|
|
7182
7216
|
}
|
|
7183
7217
|
});
|
|
7184
|
-
function
|
|
7218
|
+
function hu(e, t, n, r, o, i) {
|
|
7185
7219
|
var s, u, p;
|
|
7186
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (y(),
|
|
7220
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (y(), D(ct(e.ContentWrapper), z({
|
|
7187
7221
|
key: 0,
|
|
7188
7222
|
ref: "elementRef",
|
|
7189
7223
|
onClick: (m) => e.onClick(m),
|
|
@@ -7197,39 +7231,39 @@ function fu(e, t, n, r, o, i) {
|
|
|
7197
7231
|
onInitpreviewingbldr: (m) => e.elementRef_onInitpreviewingbldr(m)
|
|
7198
7232
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
7199
7233
|
default: Ie(() => [
|
|
7200
|
-
|
|
7234
|
+
ue(e.$slots, "default")
|
|
7201
7235
|
]),
|
|
7202
7236
|
_: 3
|
|
7203
7237
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : L("", !0);
|
|
7204
7238
|
}
|
|
7205
|
-
const
|
|
7239
|
+
const mu = /* @__PURE__ */ B(fu, [["render", hu]]), gu = N({
|
|
7206
7240
|
name: "content-styles",
|
|
7207
7241
|
components: { InlinedStyles: Ln },
|
|
7208
7242
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
7209
7243
|
data() {
|
|
7210
7244
|
return {
|
|
7211
7245
|
injectedStyles: `
|
|
7212
|
-
${
|
|
7246
|
+
${uu({
|
|
7213
7247
|
cssCode: this.cssCode,
|
|
7214
7248
|
contentId: this.contentId
|
|
7215
7249
|
})}
|
|
7216
|
-
${
|
|
7250
|
+
${lu({
|
|
7217
7251
|
customFonts: this.customFonts
|
|
7218
7252
|
})}
|
|
7219
|
-
${
|
|
7253
|
+
${pu(this.isNestedRender)}
|
|
7220
7254
|
`.trim()
|
|
7221
7255
|
};
|
|
7222
7256
|
}
|
|
7223
7257
|
});
|
|
7224
|
-
function
|
|
7225
|
-
const s =
|
|
7226
|
-
return y(),
|
|
7258
|
+
function yu(e, t, n, r, o, i) {
|
|
7259
|
+
const s = V("InlinedStyles");
|
|
7260
|
+
return y(), D(s, {
|
|
7227
7261
|
id: "builderio-content",
|
|
7228
7262
|
styles: e.injectedStyles,
|
|
7229
7263
|
nonce: e.nonce
|
|
7230
7264
|
}, null, 8, ["styles", "nonce"]);
|
|
7231
7265
|
}
|
|
7232
|
-
const
|
|
7266
|
+
const vu = /* @__PURE__ */ B(gu, [["render", yu]]), bu = ({
|
|
7233
7267
|
content: e,
|
|
7234
7268
|
data: t,
|
|
7235
7269
|
locale: n
|
|
@@ -7246,7 +7280,7 @@ const yu = /* @__PURE__ */ B(mu, [["render", gu]]), vu = ({
|
|
|
7246
7280
|
locale: n
|
|
7247
7281
|
} : {}
|
|
7248
7282
|
};
|
|
7249
|
-
},
|
|
7283
|
+
}, ku = ({
|
|
7250
7284
|
content: e,
|
|
7251
7285
|
data: t
|
|
7252
7286
|
}) => e ? {
|
|
@@ -7256,12 +7290,12 @@ const yu = /* @__PURE__ */ B(mu, [["render", gu]]), vu = ({
|
|
|
7256
7290
|
...t
|
|
7257
7291
|
},
|
|
7258
7292
|
meta: e == null ? void 0 : e.meta
|
|
7259
|
-
} : void 0,
|
|
7293
|
+
} : void 0, Su = Ho, Cu = N({
|
|
7260
7294
|
name: "content-component",
|
|
7261
7295
|
components: {
|
|
7262
|
-
EnableEditor:
|
|
7296
|
+
EnableEditor: mu,
|
|
7263
7297
|
InlinedScript: Co,
|
|
7264
|
-
ContentStyles:
|
|
7298
|
+
ContentStyles: vu,
|
|
7265
7299
|
Blocks: Je,
|
|
7266
7300
|
DynamicDiv: St
|
|
7267
7301
|
},
|
|
@@ -7291,7 +7325,7 @@ const yu = /* @__PURE__ */ B(mu, [["render", gu]]), vu = ({
|
|
|
7291
7325
|
data() {
|
|
7292
7326
|
var e, t;
|
|
7293
7327
|
return {
|
|
7294
|
-
scriptStr:
|
|
7328
|
+
scriptStr: tu({
|
|
7295
7329
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
7296
7330
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
7297
7331
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -7304,19 +7338,19 @@ const yu = /* @__PURE__ */ B(mu, [["render", gu]]), vu = ({
|
|
|
7304
7338
|
(n, { component: r, ...o }) => ({
|
|
7305
7339
|
...n,
|
|
7306
7340
|
[o.name]: {
|
|
7307
|
-
component:
|
|
7341
|
+
component: Su(r),
|
|
7308
7342
|
...jt(o)
|
|
7309
7343
|
}
|
|
7310
7344
|
}),
|
|
7311
7345
|
{}
|
|
7312
7346
|
),
|
|
7313
7347
|
builderContextSignal: {
|
|
7314
|
-
content:
|
|
7348
|
+
content: ku({
|
|
7315
7349
|
content: this.content,
|
|
7316
7350
|
data: this.data
|
|
7317
7351
|
}),
|
|
7318
7352
|
localState: void 0,
|
|
7319
|
-
rootState:
|
|
7353
|
+
rootState: bu({
|
|
7320
7354
|
content: this.content,
|
|
7321
7355
|
data: this.data,
|
|
7322
7356
|
locale: this.locale
|
|
@@ -7342,20 +7376,20 @@ const yu = /* @__PURE__ */ B(mu, [["render", gu]]), vu = ({
|
|
|
7342
7376
|
nonce: this.nonce || "",
|
|
7343
7377
|
model: this.model
|
|
7344
7378
|
},
|
|
7345
|
-
TARGET:
|
|
7379
|
+
TARGET: ee
|
|
7346
7380
|
};
|
|
7347
7381
|
},
|
|
7348
7382
|
provide() {
|
|
7349
7383
|
const e = this;
|
|
7350
7384
|
return {
|
|
7351
|
-
[
|
|
7385
|
+
[Dr.key]: {
|
|
7352
7386
|
registeredComponents: e.registeredComponents
|
|
7353
7387
|
}
|
|
7354
7388
|
};
|
|
7355
7389
|
},
|
|
7356
7390
|
created() {
|
|
7357
7391
|
var t, n;
|
|
7358
|
-
this.apiKey ||
|
|
7392
|
+
this.apiKey || ie.error(
|
|
7359
7393
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
7360
7394
|
);
|
|
7361
7395
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
@@ -7376,9 +7410,9 @@ const yu = /* @__PURE__ */ B(mu, [["render", gu]]), vu = ({
|
|
|
7376
7410
|
}
|
|
7377
7411
|
}
|
|
7378
7412
|
});
|
|
7379
|
-
function
|
|
7380
|
-
const s =
|
|
7381
|
-
return y(),
|
|
7413
|
+
function wu(e, t, n, r, o, i) {
|
|
7414
|
+
const s = V("InlinedScript"), u = V("ContentStyles"), p = V("Blocks"), m = V("EnableEditor");
|
|
7415
|
+
return y(), D(m, z({
|
|
7382
7416
|
apiHost: e.apiHost,
|
|
7383
7417
|
nonce: e.nonce,
|
|
7384
7418
|
content: e.content,
|
|
@@ -7399,13 +7433,13 @@ function Cu(e, t, n, r, o, i) {
|
|
|
7399
7433
|
default: Ie(() => {
|
|
7400
7434
|
var b, v, g, T, U, O, Z;
|
|
7401
7435
|
return [
|
|
7402
|
-
e.isSsrAbTest ? (y(),
|
|
7436
|
+
e.isSsrAbTest ? (y(), D(s, {
|
|
7403
7437
|
key: 0,
|
|
7404
7438
|
id: "builderio-variant-visibility",
|
|
7405
7439
|
scriptStr: e.scriptStr,
|
|
7406
7440
|
nonce: e.nonce || ""
|
|
7407
7441
|
}, null, 8, ["scriptStr", "nonce"])) : L("", !0),
|
|
7408
|
-
e.TARGET !== "reactNative" ? (y(),
|
|
7442
|
+
e.TARGET !== "reactNative" ? (y(), D(u, {
|
|
7409
7443
|
key: 1,
|
|
7410
7444
|
nonce: e.nonce || "",
|
|
7411
7445
|
isNestedRender: e.isNestedRender,
|
|
@@ -7413,7 +7447,7 @@ function Cu(e, t, n, r, o, i) {
|
|
|
7413
7447
|
cssCode: (g = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : g.cssCode,
|
|
7414
7448
|
customFonts: (U = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : U.customFonts
|
|
7415
7449
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : L("", !0),
|
|
7416
|
-
|
|
7450
|
+
ae(p, {
|
|
7417
7451
|
blocks: (Z = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : Z.blocks,
|
|
7418
7452
|
context: e.builderContextSignal,
|
|
7419
7453
|
registeredComponents: e.registeredComponents,
|
|
@@ -7424,12 +7458,12 @@ function Cu(e, t, n, r, o, i) {
|
|
|
7424
7458
|
_: 1
|
|
7425
7459
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
7426
7460
|
}
|
|
7427
|
-
const
|
|
7461
|
+
const Eu = /* @__PURE__ */ B(Cu, [["render", wu]]), Tu = N({
|
|
7428
7462
|
name: "content-variants",
|
|
7429
7463
|
components: {
|
|
7430
7464
|
InlinedScript: Co,
|
|
7431
7465
|
InlinedStyles: Ln,
|
|
7432
|
-
ContentComponent:
|
|
7466
|
+
ContentComponent: Eu
|
|
7433
7467
|
},
|
|
7434
7468
|
props: [
|
|
7435
7469
|
"canTrack",
|
|
@@ -7458,8 +7492,8 @@ const wu = /* @__PURE__ */ B(Su, [["render", Cu]]), Eu = N({
|
|
|
7458
7492
|
canTrack: yt(this.canTrack),
|
|
7459
7493
|
content: this.content
|
|
7460
7494
|
}),
|
|
7461
|
-
TARGET:
|
|
7462
|
-
getInitVariantsFnsScriptString:
|
|
7495
|
+
TARGET: ee,
|
|
7496
|
+
getInitVariantsFnsScriptString: Ql,
|
|
7463
7497
|
getVariants: Pt
|
|
7464
7498
|
};
|
|
7465
7499
|
},
|
|
@@ -7468,7 +7502,7 @@ const wu = /* @__PURE__ */ B(Su, [["render", Cu]]), Eu = N({
|
|
|
7468
7502
|
computed: {
|
|
7469
7503
|
updateCookieAndStylesScriptStr() {
|
|
7470
7504
|
var e;
|
|
7471
|
-
return
|
|
7505
|
+
return eu(
|
|
7472
7506
|
Pt(this.content).map((t) => ({
|
|
7473
7507
|
id: t.testVariationId,
|
|
7474
7508
|
testRatio: t.testRatio
|
|
@@ -7491,27 +7525,27 @@ const wu = /* @__PURE__ */ B(Su, [["render", Cu]]), Eu = N({
|
|
|
7491
7525
|
}
|
|
7492
7526
|
}
|
|
7493
7527
|
});
|
|
7494
|
-
function
|
|
7495
|
-
const s =
|
|
7528
|
+
function Iu(e, t, n, r, o, i) {
|
|
7529
|
+
const s = V("InlinedScript"), u = V("InlinedStyles"), p = V("ContentComponent");
|
|
7496
7530
|
return y(), I(X, null, [
|
|
7497
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (y(),
|
|
7531
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (y(), D(s, {
|
|
7498
7532
|
key: 0,
|
|
7499
7533
|
id: "builderio-init-variants-fns",
|
|
7500
7534
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
7501
7535
|
nonce: e.nonce || ""
|
|
7502
7536
|
}, null, 8, ["scriptStr", "nonce"])) : L("", !0),
|
|
7503
7537
|
e.shouldRenderVariants ? (y(), I(X, { key: 1 }, [
|
|
7504
|
-
|
|
7538
|
+
ae(u, {
|
|
7505
7539
|
id: "builderio-variants",
|
|
7506
7540
|
styles: e.hideVariantsStyleString,
|
|
7507
7541
|
nonce: e.nonce || ""
|
|
7508
7542
|
}, null, 8, ["styles", "nonce"]),
|
|
7509
|
-
|
|
7543
|
+
ae(s, {
|
|
7510
7544
|
id: "builderio-variants-visibility",
|
|
7511
7545
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
7512
7546
|
nonce: e.nonce || ""
|
|
7513
7547
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
7514
|
-
(y(!0), I(X, null, Ee(e.getVariants(e.content), (m, b) => (y(),
|
|
7548
|
+
(y(!0), I(X, null, Ee(e.getVariants(e.content), (m, b) => (y(), D(p, z({
|
|
7515
7549
|
key: m.testVariationId,
|
|
7516
7550
|
apiHost: e.apiHost,
|
|
7517
7551
|
isNestedRender: e.isNestedRender,
|
|
@@ -7536,7 +7570,7 @@ function Tu(e, t, n, r, o, i) {
|
|
|
7536
7570
|
trustedHosts: e.trustedHosts
|
|
7537
7571
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
7538
7572
|
], 64)) : L("", !0),
|
|
7539
|
-
|
|
7573
|
+
ae(p, z({
|
|
7540
7574
|
apiHost: e.apiHost,
|
|
7541
7575
|
nonce: e.nonce,
|
|
7542
7576
|
isNestedRender: e.isNestedRender,
|
|
@@ -7563,7 +7597,7 @@ function Tu(e, t, n, r, o, i) {
|
|
|
7563
7597
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
7564
7598
|
], 64);
|
|
7565
7599
|
}
|
|
7566
|
-
const
|
|
7600
|
+
const xu = /* @__PURE__ */ B(Tu, [["render", Iu]]), Ru = async ({
|
|
7567
7601
|
builderContextValue: e,
|
|
7568
7602
|
symbol: t
|
|
7569
7603
|
}) => {
|
|
@@ -7579,11 +7613,11 @@ const Iu = /* @__PURE__ */ B(Eu, [["render", Tu]]), xu = async ({
|
|
|
7579
7613
|
}
|
|
7580
7614
|
}
|
|
7581
7615
|
}).catch((n) => {
|
|
7582
|
-
|
|
7616
|
+
ie.error("Could not fetch symbol content: ", n);
|
|
7583
7617
|
});
|
|
7584
|
-
},
|
|
7618
|
+
}, Au = N({
|
|
7585
7619
|
name: "builder-symbol",
|
|
7586
|
-
components: { ContentVariants:
|
|
7620
|
+
components: { ContentVariants: xu, DynamicDiv: St },
|
|
7587
7621
|
props: [
|
|
7588
7622
|
"symbol",
|
|
7589
7623
|
"attributes",
|
|
@@ -7632,7 +7666,7 @@ const Iu = /* @__PURE__ */ B(Eu, [["render", Tu]]), xu = async ({
|
|
|
7632
7666
|
},
|
|
7633
7667
|
methods: {
|
|
7634
7668
|
setContent() {
|
|
7635
|
-
this.contentToUse ||
|
|
7669
|
+
this.contentToUse || Ru({
|
|
7636
7670
|
symbol: this.symbol,
|
|
7637
7671
|
builderContextValue: this.builderContext
|
|
7638
7672
|
}).then((e) => {
|
|
@@ -7641,11 +7675,11 @@ const Iu = /* @__PURE__ */ B(Eu, [["render", Tu]]), xu = async ({
|
|
|
7641
7675
|
}
|
|
7642
7676
|
}
|
|
7643
7677
|
});
|
|
7644
|
-
function
|
|
7678
|
+
function $u(e, t, n, r, o, i) {
|
|
7645
7679
|
var u, p, m, b, v;
|
|
7646
|
-
const s =
|
|
7680
|
+
const s = V("ContentVariants");
|
|
7647
7681
|
return y(), I("div", z({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, de(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
7648
|
-
|
|
7682
|
+
ae(s, {
|
|
7649
7683
|
nonce: e.builderContext.nonce,
|
|
7650
7684
|
isNestedRender: !0,
|
|
7651
7685
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -7669,7 +7703,7 @@ function Au(e, t, n, r, o, i) {
|
|
|
7669
7703
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
7670
7704
|
], 16);
|
|
7671
7705
|
}
|
|
7672
|
-
const
|
|
7706
|
+
const Pu = /* @__PURE__ */ B(Au, [["render", $u]]);
|
|
7673
7707
|
export {
|
|
7674
7708
|
Is as A,
|
|
7675
7709
|
ko as B,
|
|
@@ -7677,37 +7711,37 @@ export {
|
|
|
7677
7711
|
xs as D,
|
|
7678
7712
|
Fn as E,
|
|
7679
7713
|
la as F,
|
|
7680
|
-
|
|
7681
|
-
|
|
7714
|
+
Nu as G,
|
|
7715
|
+
Lu as H,
|
|
7682
7716
|
ga as I,
|
|
7683
7717
|
ba as S,
|
|
7684
|
-
|
|
7718
|
+
ee as T,
|
|
7685
7719
|
Gl as V,
|
|
7686
7720
|
Ln as _,
|
|
7687
|
-
|
|
7688
|
-
|
|
7721
|
+
Fu as a,
|
|
7722
|
+
Mu as b,
|
|
7689
7723
|
Ne as c,
|
|
7690
7724
|
Wn as d,
|
|
7691
7725
|
B as e,
|
|
7692
7726
|
kt as f,
|
|
7693
7727
|
ta as g,
|
|
7694
|
-
|
|
7728
|
+
Wu as h,
|
|
7695
7729
|
Ot as i,
|
|
7696
|
-
|
|
7730
|
+
hn as j,
|
|
7697
7731
|
Xo as k,
|
|
7698
|
-
|
|
7732
|
+
Pu as l,
|
|
7699
7733
|
qa as m,
|
|
7700
7734
|
Je as n,
|
|
7701
|
-
|
|
7702
|
-
|
|
7735
|
+
xu as o,
|
|
7736
|
+
re as p,
|
|
7703
7737
|
Xr as q,
|
|
7704
7738
|
Li as r,
|
|
7705
|
-
|
|
7739
|
+
Du as s,
|
|
7706
7740
|
Hi as t,
|
|
7707
|
-
|
|
7741
|
+
ju as u,
|
|
7708
7742
|
Yr as v,
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7743
|
+
Su as w,
|
|
7744
|
+
Bu as x,
|
|
7745
|
+
Uu as y,
|
|
7712
7746
|
Vu as z
|
|
7713
7747
|
};
|