@builder.io/sdk-vue 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/block-styles-dCtjVM33.js +87 -0
- package/lib/browser/block-styles-vJjDjr-p.cjs +1 -0
- package/lib/browser/{block-wrapper-mlbE709c.cjs → block-wrapper--ZdEHV8w.cjs} +1 -1
- package/lib/browser/{block-wrapper-a1zxMruE.js → block-wrapper-JRsL0Mr2.js} +3 -3
- package/lib/browser/{component-ref-5K3RMLKh.js → component-ref-IfYzvEjh.js} +2 -2
- package/lib/browser/{component-ref-mNbBuzhy.cjs → component-ref-YU4cmBVZ.cjs} +1 -1
- package/lib/browser/components/block/animator.d.ts +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/is-previewing.d.ts +1 -1
- package/lib/browser/{get-block-properties-4MopDiTP.js → get-block-properties-U49zKnMK.js} +6 -6
- package/lib/browser/{get-block-properties-PuGrG7pm.cjs → get-block-properties-qdvSfWjS.cjs} +1 -1
- package/lib/browser/{index-mwZzSIN7.js → index-T89gD77O.js} +426 -451
- package/lib/browser/{index-OSGu6alT.cjs → index-YYfrLt1V.cjs} +19 -19
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +3 -3
- package/lib/browser/{repeated-block-VP4euR8a.cjs → repeated-block-GnmpQPxE.cjs} +1 -1
- package/lib/browser/{repeated-block-hUFMTXXS.js → repeated-block-oYGHWwW3.js} +2 -2
- package/lib/edge/block-styles-9nbFFeOH.cjs +1 -0
- package/lib/edge/block-styles-nidJqmvF.js +86 -0
- package/lib/edge/{block-wrapper-xgShkhuq.js → block-wrapper-7WuameoR.js} +3 -3
- package/lib/{node/block-wrapper-bGeMckW5.cjs → edge/block-wrapper-OitVCHV4.cjs} +1 -1
- package/lib/{node/component-ref-YhLendyR.cjs → edge/component-ref-Z3GxM6cH.cjs} +1 -1
- package/lib/{node/component-ref-PGVczQrW.js → edge/component-ref-fkgFjHYh.js} +2 -2
- package/lib/edge/components/block/animator.d.ts +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/is-previewing.d.ts +1 -1
- package/lib/edge/{get-block-properties-v6bf_R5d.cjs → get-block-properties-hpLeBYvo.cjs} +1 -1
- package/lib/{node/get-block-properties-kAmm-X1q.js → edge/get-block-properties-uUwzuzd6.js} +4 -4
- package/lib/edge/{index-xnWjf2tW.cjs → index-CKoC6tWI.cjs} +27 -27
- package/lib/edge/{index-Ua4OW_gh.js → index-hIX7Gefu.js} +681 -706
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +4 -4
- package/lib/edge/{repeated-block-qRyqdxjD.cjs → repeated-block-TT5biOEz.cjs} +1 -1
- package/lib/{node/repeated-block-tjhtQDPA.js → edge/repeated-block-otH5LpjC.js} +13 -13
- package/lib/node/block-styles-4KxeWlDy.cjs +1 -0
- package/lib/node/block-styles-FYc9WmuJ.js +86 -0
- package/lib/node/{block-wrapper--vej-Ae6.js → block-wrapper-NWQoMvJs.js} +3 -3
- package/lib/{edge/block-wrapper-4RaFHsBw.cjs → node/block-wrapper-a_fu1ViB.cjs} +1 -1
- package/lib/{edge/component-ref-KD6yANwg.cjs → node/component-ref-jllHNOll.cjs} +1 -1
- package/lib/{edge/component-ref-kGbDg8GR.js → node/component-ref-jqz9fyL1.js} +2 -2
- package/lib/node/components/block/animator.d.ts +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/is-previewing.d.ts +1 -1
- package/lib/node/{get-block-properties-GTVEiEYp.cjs → get-block-properties-DnPEkmGq.cjs} +1 -1
- package/lib/{edge/get-block-properties-yFfbPH85.js → node/get-block-properties-ddOPipN4.js} +4 -4
- package/lib/node/{index-mnDtU0q8.js → index-Bc6eCrlT.js} +37 -62
- package/lib/node/{index-XIqTnRyC.cjs → index-ixVpFh79.cjs} +5 -5
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +4 -4
- package/lib/node/{repeated-block-SWSMCPvd.cjs → repeated-block-W2kKB7D3.cjs} +1 -1
- package/lib/{edge/repeated-block-uiPuS74Z.js → node/repeated-block-sdoj-hCY.js} +13 -13
- package/package.json +1 -1
- package/lib/browser/block-styles-2lYNYVH3.js +0 -70
- package/lib/browser/block-styles-y6pFfJz3.cjs +0 -1
- package/lib/edge/block-styles-_eYB_Fxz.cjs +0 -1
- package/lib/edge/block-styles-nhMA9R4s.js +0 -69
- package/lib/node/block-styles-h0iWFk09.cjs +0 -1
- package/lib/node/block-styles-rz8jpORX.js +0 -69
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ao = Object.defineProperty;
|
|
2
2
|
var $o = (e, t, n) => t in e ? Ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var rn = (e, t, n) => ($o(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { defineComponent as N, openBlock as v, createElementBlock as $, Fragment as re, createBlock as B, resolveDynamicComponent as
|
|
4
|
+
import { defineComponent as N, openBlock as v, createElementBlock as $, Fragment as re, createBlock as B, resolveDynamicComponent as at, mergeProps as J, toHandlers as ce, withCtx as we, renderSlot as pe, resolveComponent as U, createTextVNode as Po, toDisplayString as $t, defineAsyncComponent as It, createVNode as Se, renderList as Be, createCommentVNode as D, h as Tr, createElementVNode as an, normalizeStyle as ln, normalizeClass as xr, markRaw as Oo } from "vue";
|
|
5
5
|
const jo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), No = (e) => typeof e == "string" && jo.has(e.toLowerCase());
|
|
6
6
|
function Pe(e = {}, t, n) {
|
|
7
7
|
const r = {};
|
|
@@ -26,13 +26,13 @@ const Bo = N({
|
|
|
26
26
|
return n;
|
|
27
27
|
};
|
|
28
28
|
function Vo(e, t, n, r, o, i) {
|
|
29
|
-
return e.isEmptyElement(e.TagName) ? (v(), B(
|
|
30
|
-
typeof e.TagName == "string" ? (v(), B(
|
|
29
|
+
return e.isEmptyElement(e.TagName) ? (v(), B(at(e.TagName), J({ key: 1 }, e.attributes, ce(e.actionAttributes)), null, 16)) : (v(), $(re, { key: 0 }, [
|
|
30
|
+
typeof e.TagName == "string" ? (v(), B(at(e.TagName), J({ key: 0 }, e.attributes, ce(e.actionAttributes)), {
|
|
31
31
|
default: we(() => [
|
|
32
32
|
pe(e.$slots, "default")
|
|
33
33
|
]),
|
|
34
34
|
_: 3
|
|
35
|
-
}, 16)) : (v(), B(
|
|
35
|
+
}, 16)) : (v(), B(at(e.TagName), J({ key: 1 }, e.attributes, ce(e.actionAttributes)), {
|
|
36
36
|
default: we(() => [
|
|
37
37
|
pe(e.$slots, "default")
|
|
38
38
|
]),
|
|
@@ -40,7 +40,7 @@ function Vo(e, t, n, r, o, i) {
|
|
|
40
40
|
}, 16))
|
|
41
41
|
], 64));
|
|
42
42
|
}
|
|
43
|
-
const mn = /* @__PURE__ */ V(Bo, [["render", Vo]]),
|
|
43
|
+
const mn = /* @__PURE__ */ V(Bo, [["render", Vo]]), Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
44
44
|
__proto__: null,
|
|
45
45
|
default: mn
|
|
46
46
|
}, Symbol.toStringTag, { value: "Module" })), de = "vue", gn = () => {
|
|
@@ -108,7 +108,7 @@ const Fo = /* @__PURE__ */ V(Mo, [["render", Uo]]), Wo = Symbol(), un = {
|
|
|
108
108
|
BlocksWrapperProps: {}
|
|
109
109
|
},
|
|
110
110
|
key: Wo
|
|
111
|
-
}, Do = Symbol(),
|
|
111
|
+
}, Do = Symbol(), Rr = {
|
|
112
112
|
Components: { registeredComponents: {} },
|
|
113
113
|
key: Do
|
|
114
114
|
};
|
|
@@ -123,7 +123,7 @@ function Lo(e) {
|
|
|
123
123
|
builderBlock: e
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
const Tt = "[Builder.io]: ",
|
|
126
|
+
const Tt = "[Builder.io]: ", te = {
|
|
127
127
|
log: (...e) => console.log(Tt, ...e),
|
|
128
128
|
error: (...e) => console.error(Tt, ...e),
|
|
129
129
|
warn: (...e) => console.warn(Tt, ...e),
|
|
@@ -137,12 +137,13 @@ const Ho = (e) => {
|
|
|
137
137
|
return e.forEach((n, r) => {
|
|
138
138
|
t[r] = n;
|
|
139
139
|
}), t;
|
|
140
|
-
},
|
|
140
|
+
}, Ar = (e) => e instanceof URLSearchParams ? Ho(e) : e, $r = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
141
141
|
function Ko() {
|
|
142
142
|
return X() && window.self !== window.top;
|
|
143
143
|
}
|
|
144
144
|
function ie(e) {
|
|
145
|
-
return Ko() &&
|
|
145
|
+
return Ko() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
146
|
+
$r(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
146
147
|
}
|
|
147
148
|
const _o = () => {
|
|
148
149
|
if (X()) {
|
|
@@ -150,7 +151,7 @@ const _o = () => {
|
|
|
150
151
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
151
152
|
} else
|
|
152
153
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
153
|
-
}, zo = () => typeof navigator == "object" && navigator.userAgent || "",
|
|
154
|
+
}, zo = () => typeof navigator == "object" && navigator.userAgent || "", Pr = () => {
|
|
154
155
|
const e = zo(), t = {
|
|
155
156
|
Android() {
|
|
156
157
|
return e.match(/Android/i);
|
|
@@ -176,7 +177,7 @@ const _o = () => {
|
|
|
176
177
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
177
178
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
178
179
|
};
|
|
179
|
-
},
|
|
180
|
+
}, Or = ({
|
|
180
181
|
builder: e,
|
|
181
182
|
context: t,
|
|
182
183
|
event: n,
|
|
@@ -192,7 +193,7 @@ const _o = () => {
|
|
|
192
193
|
isEditing: ie(),
|
|
193
194
|
isBrowser: X(),
|
|
194
195
|
isServer: !X(),
|
|
195
|
-
getUserAttributes: () =>
|
|
196
|
+
getUserAttributes: () => Pr()
|
|
196
197
|
}), qo = (e, {
|
|
197
198
|
isExpression: t = !0
|
|
198
199
|
}) => /* 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, Jo = ({
|
|
@@ -204,11 +205,11 @@ const _o = () => {
|
|
|
204
205
|
rootSetState: i,
|
|
205
206
|
rootState: a
|
|
206
207
|
}) => {
|
|
207
|
-
const u =
|
|
208
|
+
const u = Or({
|
|
208
209
|
builder: t,
|
|
209
210
|
context: n,
|
|
210
211
|
event: r,
|
|
211
|
-
state:
|
|
212
|
+
state: jr({
|
|
212
213
|
rootState: a,
|
|
213
214
|
localState: o,
|
|
214
215
|
rootSetState: i
|
|
@@ -216,7 +217,7 @@ const _o = () => {
|
|
|
216
217
|
});
|
|
217
218
|
return new Function(...u.map(([d]) => d), e)(...u.map(([, d]) => d));
|
|
218
219
|
};
|
|
219
|
-
function
|
|
220
|
+
function jr({
|
|
220
221
|
rootState: e,
|
|
221
222
|
localState: t,
|
|
222
223
|
rootSetState: n
|
|
@@ -226,7 +227,7 @@ function Vr({
|
|
|
226
227
|
if (t && o in t)
|
|
227
228
|
return t[o];
|
|
228
229
|
const i = r[o];
|
|
229
|
-
return typeof i == "object" && i !== null ?
|
|
230
|
+
return typeof i == "object" && i !== null ? jr({
|
|
230
231
|
rootState: i,
|
|
231
232
|
localState: void 0,
|
|
232
233
|
rootSetState: n ? (a) => {
|
|
@@ -252,7 +253,7 @@ var j, Xo = function(e) {
|
|
|
252
253
|
return 48 > s ? s === 36 : 58 > s ? !0 : 65 > s ? !1 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s && xo.test(String.fromCharCode(s));
|
|
253
254
|
}
|
|
254
255
|
function n(s) {
|
|
255
|
-
return 65 > s ? s === 36 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s &&
|
|
256
|
+
return 65 > s ? s === 36 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s && cr.test(String.fromCharCode(s));
|
|
256
257
|
}
|
|
257
258
|
function r(s, l) {
|
|
258
259
|
for (var c = b, h = 1, T = 0; ; ) {
|
|
@@ -280,15 +281,15 @@ var j, Xo = function(e) {
|
|
|
280
281
|
this.line = je, this.ab = p - me;
|
|
281
282
|
}
|
|
282
283
|
function a(s, l) {
|
|
283
|
-
|
|
284
|
+
Ue = p, R.C && (Ht = new i()), I = s, d(), oe = l, Ye = s.m;
|
|
284
285
|
}
|
|
285
286
|
function u() {
|
|
286
|
-
for (var s = p, l = R.va && R.C && new i(), c = b.charCodeAt(p += 2); p <
|
|
287
|
+
for (var s = p, l = R.va && R.C && new i(), c = b.charCodeAt(p += 2); p < Me && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
287
288
|
++p, c = b.charCodeAt(p);
|
|
288
289
|
R.va && R.va(!1, b.slice(s + 2, p), s, p, l, R.C && new i());
|
|
289
290
|
}
|
|
290
291
|
function d() {
|
|
291
|
-
for (; p <
|
|
292
|
+
for (; p < Me; ) {
|
|
292
293
|
var s = b.charCodeAt(p);
|
|
293
294
|
if (s === 32)
|
|
294
295
|
++p;
|
|
@@ -321,7 +322,7 @@ var j, Xo = function(e) {
|
|
|
321
322
|
function m(s) {
|
|
322
323
|
switch (s) {
|
|
323
324
|
case 46:
|
|
324
|
-
s = b.charCodeAt(p + 1), 48 <= s && 57 >= s ? E(!0) : (++p, a(
|
|
325
|
+
s = b.charCodeAt(p + 1), 48 <= s && 57 >= s ? E(!0) : (++p, a(nr));
|
|
325
326
|
return;
|
|
326
327
|
case 40:
|
|
327
328
|
return ++p, a(ge);
|
|
@@ -336,16 +337,16 @@ var j, Xo = function(e) {
|
|
|
336
337
|
case 93:
|
|
337
338
|
return ++p, a(en);
|
|
338
339
|
case 123:
|
|
339
|
-
return ++p, a(
|
|
340
|
+
return ++p, a(et);
|
|
340
341
|
case 125:
|
|
341
|
-
return ++p, a(
|
|
342
|
+
return ++p, a(We);
|
|
342
343
|
case 58:
|
|
343
|
-
return ++p, a(
|
|
344
|
+
return ++p, a(tt);
|
|
344
345
|
case 63:
|
|
345
|
-
return ++p, a(
|
|
346
|
+
return ++p, a(rr);
|
|
346
347
|
case 48:
|
|
347
348
|
if (s = b.charCodeAt(p + 1), s === 120 || s === 88) {
|
|
348
|
-
p += 2, s = O(16), s === null && r(K + 2, "Expected hexadecimal number"), n(b.charCodeAt(p)) && r(p, "Identifier directly after number"), a(
|
|
349
|
+
p += 2, s = O(16), s === null && r(K + 2, "Expected hexadecimal number"), n(b.charCodeAt(p)) && r(p, "Identifier directly after number"), a(Qe, s);
|
|
349
350
|
return;
|
|
350
351
|
}
|
|
351
352
|
case 49:
|
|
@@ -362,7 +363,7 @@ var j, Xo = function(e) {
|
|
|
362
363
|
case 39:
|
|
363
364
|
p++;
|
|
364
365
|
for (var l = ""; ; ) {
|
|
365
|
-
p >=
|
|
366
|
+
p >= Me && r(K, "Unterminated string constant");
|
|
366
367
|
var c = b.charCodeAt(p);
|
|
367
368
|
if (c === s) {
|
|
368
369
|
++p, a(kt, l);
|
|
@@ -421,7 +422,7 @@ var j, Xo = function(e) {
|
|
|
421
422
|
}
|
|
422
423
|
return;
|
|
423
424
|
case 47:
|
|
424
|
-
s = b.charCodeAt(p + 1),
|
|
425
|
+
s = b.charCodeAt(p + 1), Ye ? (++p, C()) : s === 61 ? f(Ne, 2) : f(or, 1);
|
|
425
426
|
return;
|
|
426
427
|
case 37:
|
|
427
428
|
case 42:
|
|
@@ -429,7 +430,7 @@ var j, Xo = function(e) {
|
|
|
429
430
|
return;
|
|
430
431
|
case 124:
|
|
431
432
|
case 38:
|
|
432
|
-
l = b.charCodeAt(p + 1), l === s ? f(s === 124 ?
|
|
433
|
+
l = b.charCodeAt(p + 1), l === s ? f(s === 124 ? ar : lr, 2) : l === 61 ? f(Ne, 2) : f(s === 124 ? go : vo, 1);
|
|
433
434
|
return;
|
|
434
435
|
case 94:
|
|
435
436
|
b.charCodeAt(p + 1) === 61 ? f(Ne, 2) : f(yo, 1);
|
|
@@ -444,22 +445,22 @@ var j, Xo = function(e) {
|
|
|
444
445
|
return;
|
|
445
446
|
case 61:
|
|
446
447
|
case 33:
|
|
447
|
-
b.charCodeAt(p + 1) === 61 ? f(bo, b.charCodeAt(p + 2) === 61 ? 3 : 2) : f(s === 61 ?
|
|
448
|
+
b.charCodeAt(p + 1) === 61 ? f(bo, b.charCodeAt(p + 2) === 61 ? 3 : 2) : f(s === 61 ? ir : sr, 1);
|
|
448
449
|
return;
|
|
449
450
|
case 126:
|
|
450
|
-
return f(
|
|
451
|
+
return f(sr, 1);
|
|
451
452
|
}
|
|
452
453
|
return !1;
|
|
453
454
|
}
|
|
454
455
|
function y(s) {
|
|
455
456
|
if (s ? p = K + 1 : K = p, R.C && (Lt = new i()), s)
|
|
456
457
|
return C();
|
|
457
|
-
if (p >=
|
|
458
|
+
if (p >= Me)
|
|
458
459
|
return a(zt);
|
|
459
460
|
if (s = b.charCodeAt(p), n(s) || s === 92)
|
|
460
461
|
return W();
|
|
461
462
|
if (m(s) === !1) {
|
|
462
|
-
if (s = String.fromCharCode(s), s === "\\" ||
|
|
463
|
+
if (s = String.fromCharCode(s), s === "\\" || cr.test(s))
|
|
463
464
|
return W();
|
|
464
465
|
r(p, "Unexpected character '" + s + "'");
|
|
465
466
|
}
|
|
@@ -470,7 +471,7 @@ var j, Xo = function(e) {
|
|
|
470
471
|
}
|
|
471
472
|
function C() {
|
|
472
473
|
for (var s, l, c = p; ; ) {
|
|
473
|
-
p >=
|
|
474
|
+
p >= Me && r(c, "Unterminated regexp");
|
|
474
475
|
var h = b.charAt(p);
|
|
475
476
|
if (wt.test(h) && r(c, "Unterminated regexp"), s)
|
|
476
477
|
s = !1;
|
|
@@ -491,14 +492,14 @@ var j, Xo = function(e) {
|
|
|
491
492
|
} catch (_) {
|
|
492
493
|
throw _ instanceof SyntaxError && r(c, _.message), _;
|
|
493
494
|
}
|
|
494
|
-
a(
|
|
495
|
+
a(Mn, T);
|
|
495
496
|
}
|
|
496
497
|
function O(s, l) {
|
|
497
498
|
for (var c = p, h = 0, T = l === void 0 ? 1 / 0 : l, _ = 0; _ < T; ++_) {
|
|
498
|
-
var
|
|
499
|
-
if (
|
|
499
|
+
var Z = b.charCodeAt(p);
|
|
500
|
+
if (Z = 97 <= Z ? Z - 97 + 10 : 65 <= Z ? Z - 65 + 10 : 48 <= Z && 57 >= Z ? Z - 48 : 1 / 0, Z >= s)
|
|
500
501
|
break;
|
|
501
|
-
++p, h = h * s +
|
|
502
|
+
++p, h = h * s + Z;
|
|
502
503
|
}
|
|
503
504
|
return p === c || l !== void 0 && p - c !== l ? null : h;
|
|
504
505
|
}
|
|
@@ -506,35 +507,35 @@ var j, Xo = function(e) {
|
|
|
506
507
|
var l = p, c = !1, h = b.charCodeAt(p) === 48;
|
|
507
508
|
s || O(10) !== null || r(l, "Invalid number"), b.charCodeAt(p) === 46 && (++p, O(10), c = !0), s = b.charCodeAt(p), (s === 69 || s === 101) && (s = b.charCodeAt(++p), s !== 43 && s !== 45 || ++p, O(10) === null && r(l, "Invalid number"), c = !0), n(b.charCodeAt(p)) && r(p, "Identifier directly after number"), s = b.slice(l, p);
|
|
508
509
|
var T;
|
|
509
|
-
c ? T = parseFloat(s) : h && s.length !== 1 ? /[89]/.test(s) || ne ? r(l, "Invalid number") : T = parseInt(s, 8) : T = parseInt(s, 10), a(
|
|
510
|
+
c ? T = parseFloat(s) : h && s.length !== 1 ? /[89]/.test(s) || ne ? r(l, "Invalid number") : T = parseInt(s, 8) : T = parseInt(s, 10), a(Qe, T);
|
|
510
511
|
}
|
|
511
512
|
function F(s) {
|
|
512
513
|
return s = O(16, s), s === null && r(K, "Bad character escape sequence"), s;
|
|
513
514
|
}
|
|
514
515
|
function se() {
|
|
515
|
-
|
|
516
|
+
De = !1;
|
|
516
517
|
for (var s, l = !0, c = p; ; ) {
|
|
517
518
|
var h = b.charCodeAt(p);
|
|
518
519
|
if (t(h))
|
|
519
|
-
|
|
520
|
+
De && (s += b.charAt(p)), ++p;
|
|
520
521
|
else if (h === 92) {
|
|
521
|
-
|
|
522
|
+
De || (s = b.slice(c, p)), De = !0, b.charCodeAt(++p) !== 117 && r(p, "Expecting Unicode escape sequence \\uXXXX"), ++p, h = F(4);
|
|
522
523
|
var T = String.fromCharCode(h);
|
|
523
524
|
T || r(p - 1, "Invalid Unicode escape"), (l ? n(h) : t(h)) || r(p - 4, "Invalid Unicode escape"), s += T;
|
|
524
525
|
} else
|
|
525
526
|
break;
|
|
526
527
|
l = !1;
|
|
527
528
|
}
|
|
528
|
-
return
|
|
529
|
+
return De ? s : b.slice(c, p);
|
|
529
530
|
}
|
|
530
531
|
function W() {
|
|
531
|
-
var s = se(), l =
|
|
532
|
-
!
|
|
532
|
+
var s = se(), l = Fe;
|
|
533
|
+
!De && Io(s) && (l = fo[s]), a(l, s);
|
|
533
534
|
}
|
|
534
535
|
function A() {
|
|
535
|
-
Kt = K, xe =
|
|
536
|
+
Kt = K, xe = Ue, _t = Ht, y();
|
|
536
537
|
}
|
|
537
|
-
function
|
|
538
|
+
function Ve(s) {
|
|
538
539
|
if (ne = s, p = K, R.C)
|
|
539
540
|
for (; p < me; )
|
|
540
541
|
me = b.lastIndexOf(`
|
|
@@ -565,7 +566,7 @@ var j, Xo = function(e) {
|
|
|
565
566
|
return I === s ? (A(), !0) : !1;
|
|
566
567
|
}
|
|
567
568
|
function yt() {
|
|
568
|
-
return !R.fc && (I === zt || I ===
|
|
569
|
+
return !R.fc && (I === zt || I === We || wt.test(b.slice(xe, K)));
|
|
569
570
|
}
|
|
570
571
|
function Oe() {
|
|
571
572
|
M(ye) || yt() || he();
|
|
@@ -580,52 +581,52 @@ var j, Xo = function(e) {
|
|
|
580
581
|
s.type !== "Identifier" && s.type !== "MemberExpression" && r(s.start, "Assigning to rvalue"), ne && s.type === "Identifier" && Ct(s.name) && r(s.start, "Assigning to " + s.name + " in strict mode");
|
|
581
582
|
}
|
|
582
583
|
function le() {
|
|
583
|
-
(I ===
|
|
584
|
+
(I === or || I === Ne && oe === "/=") && y(!0);
|
|
584
585
|
var s = I, l = G();
|
|
585
586
|
switch (s) {
|
|
586
587
|
case Gt:
|
|
587
|
-
case
|
|
588
|
+
case Fn:
|
|
588
589
|
A();
|
|
589
590
|
var c = s === Gt;
|
|
590
|
-
M(ye) || yt() ? l.label = null : I !==
|
|
591
|
+
M(ye) || yt() ? l.label = null : I !== Fe ? he() : (l.label = fe(), Oe());
|
|
591
592
|
for (var h = 0; h < H.length; ++h) {
|
|
592
593
|
var T = H[h];
|
|
593
594
|
if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (c || T.kind === "loop") || l.label && c))
|
|
594
595
|
break;
|
|
595
596
|
}
|
|
596
597
|
return h === H.length && r(l.start, "Unsyntactic " + s.l), x(l, c ? "BreakStatement" : "ContinueStatement");
|
|
597
|
-
case
|
|
598
|
+
case Wn:
|
|
598
599
|
return A(), Oe(), x(l, "DebuggerStatement");
|
|
600
|
+
case Ln:
|
|
601
|
+
return A(), H.push(tn), l.body = le(), H.pop(), L(Zt), l.test = qe(), Oe(), x(l, "DoWhileStatement");
|
|
599
602
|
case _n:
|
|
600
|
-
return A(), H.push(tn), l
|
|
601
|
-
case qn:
|
|
602
|
-
return A(), H.push(tn), L(ge), I === ye ? Bt(l, null) : I === Yt ? (s = G(), A(), Un(s, !0), x(s, "VariableDeclaration"), s.fa.length === 1 && M(St) ? Mn(l, s) : Bt(l, s)) : (s = Y(!1, !0), M(St) ? (vt(s), Mn(l, s)) : Bt(l, s));
|
|
603
|
+
return A(), H.push(tn), L(ge), I === ye ? Bt(l, null) : I === Yt ? (s = G(), A(), Bn(s, !0), x(s, "VariableDeclaration"), s.fa.length === 1 && M(St) ? Nn(l, s) : Bt(l, s)) : (s = Y(!1, !0), M(St) ? (vt(s), Nn(l, s)) : Bt(l, s));
|
|
603
604
|
case Jt:
|
|
604
605
|
return A(), Ft(l, !0);
|
|
605
|
-
case
|
|
606
|
-
return A(), l.test =
|
|
607
|
-
case
|
|
608
|
-
return
|
|
606
|
+
case zn:
|
|
607
|
+
return A(), l.test = qe(), l.da = le(), l.alternate = M(Hn) ? le() : null, x(l, "IfStatement");
|
|
608
|
+
case Gn:
|
|
609
|
+
return Ze || R.Ib || r(K, "'return' outside of function"), A(), M(ye) || yt() ? l.K = null : (l.K = Y(), Oe()), x(l, "ReturnStatement");
|
|
609
610
|
case Xt:
|
|
610
|
-
for (A(), l.Qb =
|
|
611
|
-
I === qt || I ===
|
|
611
|
+
for (A(), l.Qb = qe(), l.tb = [], L(et), H.push(Ro); I !== We; )
|
|
612
|
+
I === qt || I === Dn ? (s = I === qt, h && x(h, "SwitchCase"), l.tb.push(h = G()), h.da = [], A(), s ? h.test = Y() : (c && r(Kt, "Multiple default clauses"), c = !0, h.test = null), L(tt)) : (h || he(), h.da.push(le()));
|
|
612
613
|
return h && x(h, "SwitchCase"), A(), H.pop(), x(l, "SwitchStatement");
|
|
613
|
-
case
|
|
614
|
+
case qn:
|
|
614
615
|
return A(), wt.test(b.slice(xe, K)) && r(xe, "Illegal newline after throw"), l.K = Y(), Oe(), x(l, "ThrowStatement");
|
|
615
|
-
case
|
|
616
|
-
return A(), l.block =
|
|
616
|
+
case Jn:
|
|
617
|
+
return A(), l.block = Je(), l.Ea = null, I === Un && (s = G(), A(), L(ge), s.Ua = fe(), ne && Ct(s.Ua.name) && r(s.Ua.start, "Binding " + s.Ua.name + " in strict mode"), L(ue), s.body = Je(), l.Ea = x(s, "CatchClause")), l.fb = M(Kn) ? Je() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), x(l, "TryStatement");
|
|
617
618
|
case Yt:
|
|
618
|
-
return A(),
|
|
619
|
+
return A(), Bn(l), Oe(), x(l, "VariableDeclaration");
|
|
619
620
|
case Zt:
|
|
620
|
-
return A(), l.test =
|
|
621
|
-
case
|
|
622
|
-
return ne && r(K, "'with' in strict mode"), A(), l.object =
|
|
623
|
-
case
|
|
624
|
-
return
|
|
621
|
+
return A(), l.test = qe(), H.push(tn), l.body = le(), H.pop(), x(l, "WhileStatement");
|
|
622
|
+
case Xn:
|
|
623
|
+
return ne && r(K, "'with' in strict mode"), A(), l.object = qe(), l.body = le(), x(l, "WithStatement");
|
|
624
|
+
case et:
|
|
625
|
+
return Je();
|
|
625
626
|
case ye:
|
|
626
627
|
return A(), x(l, "EmptyStatement");
|
|
627
628
|
default:
|
|
628
|
-
if (c = oe, T = Y(), s ===
|
|
629
|
+
if (c = oe, T = Y(), s === Fe && T.type === "Identifier" && M(tt)) {
|
|
629
630
|
for (h = 0; h < H.length; ++h)
|
|
630
631
|
H[h].name === c && r(T.start, "Label '" + c + "' is already declared");
|
|
631
632
|
return H.push({
|
|
@@ -636,33 +637,33 @@ var j, Xo = function(e) {
|
|
|
636
637
|
return l.la = T, Oe(), x(l, "ExpressionStatement");
|
|
637
638
|
}
|
|
638
639
|
}
|
|
639
|
-
function
|
|
640
|
+
function qe() {
|
|
640
641
|
L(ge);
|
|
641
642
|
var s = Y();
|
|
642
643
|
return L(ue), s;
|
|
643
644
|
}
|
|
644
|
-
function
|
|
645
|
+
function Je(s) {
|
|
645
646
|
var l = G(), c = !0, h = !1;
|
|
646
|
-
for (l.body = [], L(
|
|
647
|
+
for (l.body = [], L(et); !M(We); ) {
|
|
647
648
|
var T = le();
|
|
648
649
|
if (l.body.push(T), c && s && Nt(T)) {
|
|
649
650
|
var _ = h;
|
|
650
|
-
|
|
651
|
+
Ve(h = !0);
|
|
651
652
|
}
|
|
652
653
|
c = !1;
|
|
653
654
|
}
|
|
654
|
-
return h && !_ &&
|
|
655
|
+
return h && !_ && Ve(!1), x(l, "BlockStatement");
|
|
655
656
|
}
|
|
656
657
|
function Bt(s, l) {
|
|
657
658
|
return s.ua = l, L(ye), s.test = I === ye ? null : Y(), L(ye), s.update = I === ue ? null : Y(), L(ue), s.body = le(), H.pop(), x(s, "ForStatement");
|
|
658
659
|
}
|
|
659
|
-
function
|
|
660
|
+
function Nn(s, l) {
|
|
660
661
|
return s.left = l, s.right = Y(), L(ue), s.body = le(), H.pop(), x(s, "ForInStatement");
|
|
661
662
|
}
|
|
662
|
-
function
|
|
663
|
+
function Bn(s, l) {
|
|
663
664
|
for (s.fa = [], s.kind = "var"; ; ) {
|
|
664
665
|
var c = G();
|
|
665
|
-
if (c.id = fe(), ne && Ct(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = M(
|
|
666
|
+
if (c.id = fe(), ne && Ct(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = M(ir) ? Y(!0, l) : null, s.fa.push(x(c, "VariableDeclarator")), !M(Re))
|
|
666
667
|
break;
|
|
667
668
|
}
|
|
668
669
|
}
|
|
@@ -677,9 +678,9 @@ var j, Xo = function(e) {
|
|
|
677
678
|
}
|
|
678
679
|
function Vt(s) {
|
|
679
680
|
var l = Mt(Ut(), -1, s);
|
|
680
|
-
if (M(
|
|
681
|
+
if (M(rr)) {
|
|
681
682
|
var c = Te(l);
|
|
682
|
-
c.test = l, c.da = Y(!0), L(
|
|
683
|
+
c.test = l, c.da = Y(!0), L(tt), c.alternate = Y(!0, s), l = x(c, "ConditionalExpression");
|
|
683
684
|
}
|
|
684
685
|
return I.Cb ? (c = Te(l), c.operator = oe, c.left = l, A(), c.right = Vt(s), vt(l), x(c, "AssignmentExpression")) : l;
|
|
685
686
|
}
|
|
@@ -687,69 +688,69 @@ var j, Xo = function(e) {
|
|
|
687
688
|
var h = I.L;
|
|
688
689
|
if (h !== null && (!c || I !== St) && h > l) {
|
|
689
690
|
var T = Te(s);
|
|
690
|
-
return T.left = s, T.operator = oe, s = I, A(), T.right = Mt(Ut(), h, c), h = x(T, s ===
|
|
691
|
+
return T.left = s, T.operator = oe, s = I, A(), T.right = Mt(Ut(), h, c), h = x(T, s === ar || s === lr ? "LogicalExpression" : "BinaryExpression"), Mt(h, l, c);
|
|
691
692
|
}
|
|
692
693
|
return s;
|
|
693
694
|
}
|
|
694
695
|
function Ut() {
|
|
695
696
|
if (I.prefix) {
|
|
696
697
|
var s = G(), l = I.$b;
|
|
697
|
-
return s.operator = oe,
|
|
698
|
+
return s.operator = oe, Ye = s.prefix = !0, A(), s.K = Ut(), l ? vt(s.K) : ne && s.operator === "delete" && s.K.type === "Identifier" && r(s.start, "Deleting local variable in strict mode"), x(s, l ? "UpdateExpression" : "UnaryExpression");
|
|
698
699
|
}
|
|
699
|
-
for (l =
|
|
700
|
+
for (l = Xe(bt()); I.cc && !yt(); )
|
|
700
701
|
s = Te(l), s.operator = oe, s.prefix = !1, s.K = l, vt(l), A(), l = x(s, "UpdateExpression");
|
|
701
702
|
return l;
|
|
702
703
|
}
|
|
703
|
-
function
|
|
704
|
-
if (M(
|
|
704
|
+
function Xe(s, l) {
|
|
705
|
+
if (M(nr)) {
|
|
705
706
|
var c = Te(s);
|
|
706
|
-
return c.object = s, c.Wa = fe(!0), c.bb = !1,
|
|
707
|
+
return c.object = s, c.Wa = fe(!0), c.bb = !1, Xe(x(c, "MemberExpression"), l);
|
|
707
708
|
}
|
|
708
|
-
return M(Qt) ? (c = Te(s), c.object = s, c.Wa = Y(), c.bb = !0, L(en),
|
|
709
|
+
return M(Qt) ? (c = Te(s), c.object = s, c.Wa = Y(), c.bb = !0, L(en), Xe(x(c, "MemberExpression"), l)) : !l && M(ge) ? (c = Te(s), c.callee = s, c.arguments = Wt(ue, !1), Xe(x(c, "CallExpression"), l)) : s;
|
|
709
710
|
}
|
|
710
711
|
function bt() {
|
|
711
712
|
switch (I) {
|
|
712
|
-
case
|
|
713
|
+
case Zn:
|
|
713
714
|
var s = G();
|
|
714
715
|
return A(), x(s, "ThisExpression");
|
|
715
|
-
case
|
|
716
|
+
case Fe:
|
|
716
717
|
return fe();
|
|
717
|
-
case
|
|
718
|
+
case Qe:
|
|
718
719
|
case kt:
|
|
719
|
-
case
|
|
720
|
-
return s = G(), s.value = oe, s.raw = b.slice(K,
|
|
721
|
-
case
|
|
722
|
-
case
|
|
723
|
-
case
|
|
720
|
+
case Mn:
|
|
721
|
+
return s = G(), s.value = oe, s.raw = b.slice(K, Ue), A(), x(s, "Literal");
|
|
722
|
+
case Qn:
|
|
723
|
+
case er:
|
|
724
|
+
case tr:
|
|
724
725
|
return s = G(), s.value = I.$a, s.raw = I.l, A(), x(s, "Literal");
|
|
725
726
|
case ge:
|
|
726
727
|
s = Lt;
|
|
727
728
|
var l = K;
|
|
728
729
|
A();
|
|
729
730
|
var c = Y();
|
|
730
|
-
return c.start = l, c.end =
|
|
731
|
+
return c.start = l, c.end = Ue, R.C && (c.X.start = s, c.X.end = Ht), R.Xa && (c.j = [l, Ue]), L(ue), c;
|
|
731
732
|
case Qt:
|
|
732
733
|
return s = G(), A(), s.elements = Wt(en, !0, !0), x(s, "ArrayExpression");
|
|
733
|
-
case
|
|
734
|
-
for (s = G(), l = !0, c = !1, s.h = [], A(); !M(
|
|
734
|
+
case et:
|
|
735
|
+
for (s = G(), l = !0, c = !1, s.h = [], A(); !M(We); ) {
|
|
735
736
|
if (l)
|
|
736
737
|
l = !1;
|
|
737
|
-
else if (L(Re), R.sb && M(
|
|
738
|
+
else if (L(Re), R.sb && M(We))
|
|
738
739
|
break;
|
|
739
740
|
var h = {
|
|
740
|
-
key: I ===
|
|
741
|
+
key: I === Qe || I === kt ? bt() : fe(!0)
|
|
741
742
|
}, T = !1;
|
|
742
|
-
if (M(
|
|
743
|
+
if (M(tt)) {
|
|
743
744
|
h.value = Y(!0);
|
|
744
745
|
var _ = h.kind = "init";
|
|
745
746
|
} else
|
|
746
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? he() : (T = c = !0, _ = h.kind = h.key.name, h.key = I ===
|
|
747
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? he() : (T = c = !0, _ = h.kind = h.key.name, h.key = I === Qe || I === kt ? bt() : fe(!0), I !== ge && he(), h.value = Ft(G(), !1));
|
|
747
748
|
if (h.key.type === "Identifier" && (ne || c))
|
|
748
|
-
for (var
|
|
749
|
-
var
|
|
750
|
-
if (
|
|
751
|
-
var nn = _ ===
|
|
752
|
-
nn && !ne && _ === "init" &&
|
|
749
|
+
for (var Z = 0; Z < s.h.length; ++Z) {
|
|
750
|
+
var Le = s.h[Z];
|
|
751
|
+
if (Le.key.name === h.key.name) {
|
|
752
|
+
var nn = _ === Le.kind || T && Le.kind === "init" || _ === "init" && (Le.kind === "get" || Le.kind === "set");
|
|
753
|
+
nn && !ne && _ === "init" && Le.kind === "init" && (nn = !1), nn && r(h.key.start, "Redefinition of property");
|
|
753
754
|
}
|
|
754
755
|
}
|
|
755
756
|
s.h.push(h);
|
|
@@ -757,21 +758,21 @@ var j, Xo = function(e) {
|
|
|
757
758
|
return x(s, "ObjectExpression");
|
|
758
759
|
case Jt:
|
|
759
760
|
return s = G(), A(), Ft(s, !1);
|
|
760
|
-
case
|
|
761
|
-
return s = G(), A(), s.callee =
|
|
761
|
+
case Yn:
|
|
762
|
+
return s = G(), A(), s.callee = Xe(bt(), !0), s.arguments = M(ge) ? Wt(ue, !1) : ho, x(s, "NewExpression");
|
|
762
763
|
}
|
|
763
764
|
he();
|
|
764
765
|
}
|
|
765
766
|
function Ft(s, l) {
|
|
766
|
-
I ===
|
|
767
|
+
I === Fe ? s.id = fe() : l ? he() : s.id = null, s.oa = [];
|
|
767
768
|
var c = !0;
|
|
768
769
|
for (L(ge); !M(ue); )
|
|
769
770
|
c ? c = !1 : L(Re), s.oa.push(fe());
|
|
770
|
-
c =
|
|
771
|
+
c = Ze;
|
|
771
772
|
var h = H;
|
|
772
|
-
if (
|
|
773
|
+
if (Ze = !0, H = [], s.body = Je(!0), Ze = c, H = h, ne || s.body.body.length && Nt(s.body.body[0])) {
|
|
773
774
|
for (c = s.id ? -1 : 0; c < s.oa.length; ++c)
|
|
774
|
-
if (h = 0 > c ? s.id : s.oa[c], (
|
|
775
|
+
if (h = 0 > c ? s.id : s.oa[c], (ur(h.name) || Ct(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
775
776
|
for (var T = 0; T < c; ++T)
|
|
776
777
|
h.name === s.oa[T].name && r(h.start, "Argument name clash in strict mode");
|
|
777
778
|
}
|
|
@@ -789,19 +790,19 @@ var j, Xo = function(e) {
|
|
|
789
790
|
}
|
|
790
791
|
function fe(s) {
|
|
791
792
|
var l = G();
|
|
792
|
-
return s && R.yb === "everywhere" && (s = !1), I ===
|
|
793
|
+
return s && R.yb === "everywhere" && (s = !1), I === Fe ? (!s && (R.yb && Eo(oe) || ne && ur(oe)) && b.slice(K, Ue).indexOf("\\") === -1 && r(K, "The keyword '" + oe + "' is reserved"), l.name = oe) : s && I.l ? l.name = I.l : he(), Ye = !1, A(), x(l, "Identifier");
|
|
793
794
|
}
|
|
794
795
|
e.version = "0.5.0";
|
|
795
|
-
var R, b = "",
|
|
796
|
+
var R, b = "", Me, Dt;
|
|
796
797
|
e.parse = function(s, l) {
|
|
797
|
-
b = String(s),
|
|
798
|
-
for (var c in
|
|
799
|
-
Object.prototype.hasOwnProperty.call(R, c) || (R[c] =
|
|
800
|
-
for (Dt = R.sourceFile, je = 1, p = me = 0,
|
|
801
|
-
c = le(), s.body.push(c), l && Nt(c) &&
|
|
798
|
+
b = String(s), Me = b.length, R = l || {};
|
|
799
|
+
for (var c in Vn)
|
|
800
|
+
Object.prototype.hasOwnProperty.call(R, c) || (R[c] = Vn[c]);
|
|
801
|
+
for (Dt = R.sourceFile, je = 1, p = me = 0, Ye = !0, d(), c = R.dc, Kt = xe = p, R.C && (_t = new i()), Ze = ne = !1, H = [], y(), s = c || G(), l = !0, c || (s.body = []); I !== zt; )
|
|
802
|
+
c = le(), s.body.push(c), l && Nt(c) && Ve(!0), l = !1;
|
|
802
803
|
return x(s, "Program");
|
|
803
804
|
};
|
|
804
|
-
var
|
|
805
|
+
var Vn = {
|
|
805
806
|
fc: !1,
|
|
806
807
|
sb: !0,
|
|
807
808
|
yb: !1,
|
|
@@ -812,13 +813,13 @@ var j, Xo = function(e) {
|
|
|
812
813
|
dc: null,
|
|
813
814
|
sourceFile: null,
|
|
814
815
|
vb: null
|
|
815
|
-
}, p = 0, K = 0,
|
|
816
|
+
}, p = 0, K = 0, Ue = 0, Lt, Ht, I, oe, Ye, je, me, Kt = 0, xe = 0, _t, Ze, H, ne, ho = [], Qe = {
|
|
816
817
|
type: "num"
|
|
817
|
-
},
|
|
818
|
+
}, Mn = {
|
|
818
819
|
type: "regexp"
|
|
819
820
|
}, kt = {
|
|
820
821
|
type: "string"
|
|
821
|
-
},
|
|
822
|
+
}, Fe = {
|
|
822
823
|
type: "name"
|
|
823
824
|
}, zt = {
|
|
824
825
|
type: "eof"
|
|
@@ -827,58 +828,58 @@ var j, Xo = function(e) {
|
|
|
827
828
|
}, qt = {
|
|
828
829
|
l: "case",
|
|
829
830
|
m: !0
|
|
830
|
-
},
|
|
831
|
+
}, Un = {
|
|
831
832
|
l: "catch"
|
|
832
|
-
},
|
|
833
|
+
}, Fn = {
|
|
833
834
|
l: "continue"
|
|
834
|
-
},
|
|
835
|
+
}, Wn = {
|
|
835
836
|
l: "debugger"
|
|
836
|
-
},
|
|
837
|
+
}, Dn = {
|
|
837
838
|
l: "default"
|
|
838
|
-
},
|
|
839
|
+
}, Ln = {
|
|
839
840
|
l: "do",
|
|
840
841
|
W: !0
|
|
841
|
-
},
|
|
842
|
+
}, Hn = {
|
|
842
843
|
l: "else",
|
|
843
844
|
m: !0
|
|
844
|
-
},
|
|
845
|
+
}, Kn = {
|
|
845
846
|
l: "finally"
|
|
846
|
-
},
|
|
847
|
+
}, _n = {
|
|
847
848
|
l: "for",
|
|
848
849
|
W: !0
|
|
849
850
|
}, Jt = {
|
|
850
851
|
l: "function"
|
|
851
|
-
},
|
|
852
|
+
}, zn = {
|
|
852
853
|
l: "if"
|
|
853
|
-
},
|
|
854
|
+
}, Gn = {
|
|
854
855
|
l: "return",
|
|
855
856
|
m: !0
|
|
856
857
|
}, Xt = {
|
|
857
858
|
l: "switch"
|
|
858
|
-
},
|
|
859
|
+
}, qn = {
|
|
859
860
|
l: "throw",
|
|
860
861
|
m: !0
|
|
861
|
-
},
|
|
862
|
+
}, Jn = {
|
|
862
863
|
l: "try"
|
|
863
864
|
}, Yt = {
|
|
864
865
|
l: "var"
|
|
865
866
|
}, Zt = {
|
|
866
867
|
l: "while",
|
|
867
868
|
W: !0
|
|
868
|
-
},
|
|
869
|
+
}, Xn = {
|
|
869
870
|
l: "with"
|
|
870
|
-
},
|
|
871
|
+
}, Yn = {
|
|
871
872
|
l: "new",
|
|
872
873
|
m: !0
|
|
873
|
-
},
|
|
874
|
+
}, Zn = {
|
|
874
875
|
l: "this"
|
|
875
|
-
},
|
|
876
|
+
}, Qn = {
|
|
876
877
|
l: "null",
|
|
877
878
|
$a: null
|
|
878
|
-
},
|
|
879
|
+
}, er = {
|
|
879
880
|
l: "true",
|
|
880
881
|
$a: !0
|
|
881
|
-
},
|
|
882
|
+
}, tr = {
|
|
882
883
|
l: "false",
|
|
883
884
|
$a: !1
|
|
884
885
|
}, St = {
|
|
@@ -888,34 +889,34 @@ var j, Xo = function(e) {
|
|
|
888
889
|
}, fo = {
|
|
889
890
|
break: Gt,
|
|
890
891
|
case: qt,
|
|
891
|
-
catch:
|
|
892
|
-
continue:
|
|
893
|
-
debugger:
|
|
894
|
-
default:
|
|
895
|
-
do:
|
|
896
|
-
else:
|
|
897
|
-
finally:
|
|
898
|
-
for:
|
|
892
|
+
catch: Un,
|
|
893
|
+
continue: Fn,
|
|
894
|
+
debugger: Wn,
|
|
895
|
+
default: Dn,
|
|
896
|
+
do: Ln,
|
|
897
|
+
else: Hn,
|
|
898
|
+
finally: Kn,
|
|
899
|
+
for: _n,
|
|
899
900
|
function: Jt,
|
|
900
|
-
if:
|
|
901
|
-
return:
|
|
901
|
+
if: zn,
|
|
902
|
+
return: Gn,
|
|
902
903
|
switch: Xt,
|
|
903
|
-
throw:
|
|
904
|
-
try:
|
|
904
|
+
throw: qn,
|
|
905
|
+
try: Jn,
|
|
905
906
|
var: Yt,
|
|
906
907
|
while: Zt,
|
|
907
|
-
with:
|
|
908
|
-
null:
|
|
909
|
-
true:
|
|
910
|
-
false:
|
|
911
|
-
new:
|
|
908
|
+
with: Xn,
|
|
909
|
+
null: Qn,
|
|
910
|
+
true: er,
|
|
911
|
+
false: tr,
|
|
912
|
+
new: Yn,
|
|
912
913
|
in: St,
|
|
913
914
|
instanceof: {
|
|
914
915
|
l: "instanceof",
|
|
915
916
|
L: 7,
|
|
916
917
|
m: !0
|
|
917
918
|
},
|
|
918
|
-
this:
|
|
919
|
+
this: Zn,
|
|
919
920
|
typeof: {
|
|
920
921
|
l: "typeof",
|
|
921
922
|
prefix: !0,
|
|
@@ -936,10 +937,10 @@ var j, Xo = function(e) {
|
|
|
936
937
|
m: !0
|
|
937
938
|
}, en = {
|
|
938
939
|
type: "]"
|
|
939
|
-
},
|
|
940
|
+
}, et = {
|
|
940
941
|
type: "{",
|
|
941
942
|
m: !0
|
|
942
|
-
},
|
|
943
|
+
}, We = {
|
|
943
944
|
type: "}"
|
|
944
945
|
}, ge = {
|
|
945
946
|
type: "(",
|
|
@@ -952,18 +953,18 @@ var j, Xo = function(e) {
|
|
|
952
953
|
}, ye = {
|
|
953
954
|
type: ";",
|
|
954
955
|
m: !0
|
|
955
|
-
},
|
|
956
|
+
}, tt = {
|
|
956
957
|
type: ":",
|
|
957
958
|
m: !0
|
|
958
|
-
},
|
|
959
|
+
}, nr = {
|
|
959
960
|
type: "."
|
|
960
|
-
},
|
|
961
|
+
}, rr = {
|
|
961
962
|
type: "?",
|
|
962
963
|
m: !0
|
|
963
|
-
},
|
|
964
|
+
}, or = {
|
|
964
965
|
L: 10,
|
|
965
966
|
m: !0
|
|
966
|
-
},
|
|
967
|
+
}, ir = {
|
|
967
968
|
Cb: !0,
|
|
968
969
|
m: !0
|
|
969
970
|
}, Ne = {
|
|
@@ -973,13 +974,13 @@ var j, Xo = function(e) {
|
|
|
973
974
|
cc: !0,
|
|
974
975
|
prefix: !0,
|
|
975
976
|
$b: !0
|
|
976
|
-
},
|
|
977
|
+
}, sr = {
|
|
977
978
|
prefix: !0,
|
|
978
979
|
m: !0
|
|
979
|
-
},
|
|
980
|
+
}, ar = {
|
|
980
981
|
L: 1,
|
|
981
982
|
m: !0
|
|
982
|
-
},
|
|
983
|
+
}, lr = {
|
|
983
984
|
L: 2,
|
|
984
985
|
m: !0
|
|
985
986
|
}, go = {
|
|
@@ -1007,7 +1008,7 @@ var j, Xo = function(e) {
|
|
|
1007
1008
|
}, wo = {
|
|
1008
1009
|
L: 10,
|
|
1009
1010
|
m: !0
|
|
1010
|
-
}, Eo = o("class enum extends super const export import"),
|
|
1011
|
+
}, Eo = o("class enum extends super const export import"), ur = o("implements interface let package private protected public static yield"), Ct = o("eval arguments"), Io = 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"), To = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, cr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), xo = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), wt = /[\n\r\u2028\u2029]/, Et = /\r\n|[\n\r\u2028\u2029]/g, De, tn = {
|
|
1011
1012
|
kind: "loop"
|
|
1012
1013
|
}, Ro = {
|
|
1013
1014
|
kind: "switch"
|
|
@@ -1015,7 +1016,7 @@ var j, Xo = function(e) {
|
|
|
1015
1016
|
}, cn = cn = typeof globalThis > "u" ? void 0 : globalThis;
|
|
1016
1017
|
Xo(cn.j || (cn.j = {}));
|
|
1017
1018
|
function g(e, t) {
|
|
1018
|
-
typeof e == "string" && (e =
|
|
1019
|
+
typeof e == "string" && (e = _e(e, "code"));
|
|
1019
1020
|
var n = e.constructor;
|
|
1020
1021
|
this.ya = function() {
|
|
1021
1022
|
return new n({
|
|
@@ -1029,10 +1030,10 @@ function g(e, t) {
|
|
|
1029
1030
|
var i, a;
|
|
1030
1031
|
for (a in this)
|
|
1031
1032
|
typeof this[a] == "function" && (i = a.match(e)) && (this.rb[i[1]] = this[a].bind(this));
|
|
1032
|
-
this.N = dn(this, this.ra, null), this.Na = this.N.object, this.ra =
|
|
1033
|
+
this.N = dn(this, this.ra, null), this.Na = this.N.object, this.ra = _e(this.ba.join(`
|
|
1033
1034
|
`), "polyfills"), this.ba = void 0, Pt(this.ra), i = new S(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new S(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
1034
1035
|
}
|
|
1035
|
-
var
|
|
1036
|
+
var pr = {
|
|
1036
1037
|
C: !0,
|
|
1037
1038
|
kc: 5
|
|
1038
1039
|
}, vn = {
|
|
@@ -1043,32 +1044,32 @@ var fr = {
|
|
|
1043
1044
|
configurable: !0,
|
|
1044
1045
|
enumerable: !1,
|
|
1045
1046
|
writable: !0
|
|
1046
|
-
},
|
|
1047
|
+
}, ee = {
|
|
1047
1048
|
configurable: !0,
|
|
1048
1049
|
enumerable: !1,
|
|
1049
1050
|
writable: !1
|
|
1050
|
-
},
|
|
1051
|
+
}, nt = {
|
|
1051
1052
|
configurable: !1,
|
|
1052
1053
|
enumerable: !1,
|
|
1053
1054
|
writable: !1
|
|
1054
|
-
},
|
|
1055
|
+
}, dr = {
|
|
1055
1056
|
configurable: !1,
|
|
1056
1057
|
enumerable: !0,
|
|
1057
1058
|
writable: !0
|
|
1058
|
-
},
|
|
1059
|
+
}, Nr = {
|
|
1059
1060
|
STEP_ERROR: !0
|
|
1060
|
-
},
|
|
1061
|
+
}, Ge = {
|
|
1061
1062
|
SCOPE_REFERENCE: !0
|
|
1062
1063
|
}, pt = {
|
|
1063
1064
|
VALUE_IN_DESCRIPTOR: !0
|
|
1064
|
-
},
|
|
1065
|
+
}, He = {
|
|
1065
1066
|
REGEXP_TIMEOUT: !0
|
|
1066
|
-
},
|
|
1067
|
+
}, hr = [], ke = null, lt = null, Ae = typeof globalThis > "u" ? void 0 : globalThis, Yo = ["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();", "};"];
|
|
1067
1068
|
function bn(e) {
|
|
1068
1069
|
var t = e >>> 0;
|
|
1069
1070
|
return t === Number(e) ? t : NaN;
|
|
1070
1071
|
}
|
|
1071
|
-
function
|
|
1072
|
+
function ut(e) {
|
|
1072
1073
|
var t = e >>> 0;
|
|
1073
1074
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
1074
1075
|
}
|
|
@@ -1088,17 +1089,17 @@ j.P = !1;
|
|
|
1088
1089
|
j.Ka = !1;
|
|
1089
1090
|
j.Kb = 0;
|
|
1090
1091
|
j.ic = 0;
|
|
1091
|
-
function
|
|
1092
|
+
function _e(e, t) {
|
|
1092
1093
|
var n = {}, r;
|
|
1093
|
-
for (r in
|
|
1094
|
-
n[r] =
|
|
1094
|
+
for (r in pr)
|
|
1095
|
+
n[r] = pr[r];
|
|
1095
1096
|
return n.sourceFile = t, Ae.j.parse(e, n);
|
|
1096
1097
|
}
|
|
1097
1098
|
j.Jb = function(e) {
|
|
1098
1099
|
var t = this.o[0];
|
|
1099
1100
|
if (!t || t.node.type !== "Program")
|
|
1100
1101
|
throw Error("Expecting original AST to start with a Program node");
|
|
1101
|
-
if (typeof e == "string" && (e =
|
|
1102
|
+
if (typeof e == "string" && (e = _e(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
1102
1103
|
throw Error("Expecting new AST to start with a Program node");
|
|
1103
1104
|
dt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
1104
1105
|
};
|
|
@@ -1114,7 +1115,7 @@ j.lb = function() {
|
|
|
1114
1115
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
1115
1116
|
n = null;
|
|
1116
1117
|
else {
|
|
1117
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
1118
|
+
this.ca.shift(), 0 <= n.interval && Mr(this, n, n.interval);
|
|
1118
1119
|
var r = new S(n.node, n.scope);
|
|
1119
1120
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1120
1121
|
}
|
|
@@ -1122,15 +1123,15 @@ j.lb = function() {
|
|
|
1122
1123
|
break;
|
|
1123
1124
|
}
|
|
1124
1125
|
r = n.node;
|
|
1125
|
-
var o =
|
|
1126
|
-
|
|
1126
|
+
var o = lt;
|
|
1127
|
+
lt = this;
|
|
1127
1128
|
try {
|
|
1128
1129
|
var i = this.rb[r.type](e, n, r);
|
|
1129
1130
|
} catch (a) {
|
|
1130
|
-
if (a !==
|
|
1131
|
+
if (a !== Nr)
|
|
1131
1132
|
throw this.value !== a && (this.value = void 0), a;
|
|
1132
1133
|
} finally {
|
|
1133
|
-
|
|
1134
|
+
lt = o;
|
|
1134
1135
|
}
|
|
1135
1136
|
if (i && e.push(i), this.P)
|
|
1136
1137
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -1146,7 +1147,7 @@ j.Eb = function() {
|
|
|
1146
1147
|
return this.za;
|
|
1147
1148
|
};
|
|
1148
1149
|
function Zo(e, t) {
|
|
1149
|
-
e.g(t, "NaN", NaN,
|
|
1150
|
+
e.g(t, "NaN", NaN, nt), e.g(t, "Infinity", 1 / 0, nt), e.g(t, "undefined", void 0, nt), e.g(t, "window", t, vn), e.g(t, "this", t, nt), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), Qo(e, t), ei(e, t), t.xa = e.M, e.g(t, "constructor", e.v, k), ti(e, t), ni(e, t), ri(e, t), oi(e, t), ii(e, t), si(e, t), ai(e, t), li(e, t), ui(e, t);
|
|
1150
1151
|
var n = e.i(function() {
|
|
1151
1152
|
throw EvalError("Can't happen");
|
|
1152
1153
|
}, !1);
|
|
@@ -1162,13 +1163,13 @@ function Zo(e, t) {
|
|
|
1162
1163
|
};
|
|
1163
1164
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), k);
|
|
1164
1165
|
n = function(i) {
|
|
1165
|
-
return
|
|
1166
|
+
return fr(e, !1, arguments);
|
|
1166
1167
|
}, e.g(t, "setTimeout", e.i(n, !1), k), n = function(i) {
|
|
1167
|
-
return
|
|
1168
|
+
return fr(e, !0, arguments);
|
|
1168
1169
|
}, e.g(t, "setInterval", e.i(n, !1), k), n = function(i) {
|
|
1169
|
-
|
|
1170
|
+
mr(e, i);
|
|
1170
1171
|
}, e.g(t, "clearTimeout", e.i(n, !1), k), n = function(i) {
|
|
1171
|
-
|
|
1172
|
+
mr(e, i);
|
|
1172
1173
|
}, e.g(t, "clearInterval", e.i(n, !1), k), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1173
1174
|
}
|
|
1174
1175
|
j.Wb = 0;
|
|
@@ -1184,16 +1185,16 @@ function Qo(e, t) {
|
|
|
1184
1185
|
a = a.join(", ");
|
|
1185
1186
|
}
|
|
1186
1187
|
try {
|
|
1187
|
-
var m =
|
|
1188
|
+
var m = _e("(function(" + a + ") {" + i + "})", "function" + e.Wb++);
|
|
1188
1189
|
} catch (y) {
|
|
1189
1190
|
w(e, e.T, "Invalid code: " + y.message);
|
|
1190
1191
|
}
|
|
1191
1192
|
return m.body.length !== 1 && w(e, e.T, "Invalid code in function body"), Cn(e, m.body[0].la, e.N, "anonymous");
|
|
1192
1193
|
};
|
|
1193
1194
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, k), e.g(e.O, "prototype", e.Z, k), e.g(e.Z, "constructor", e.O, k), e.Z.Ta = function() {
|
|
1194
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1195
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ee), e.Z.H = "Function", r = function(o, i) {
|
|
1195
1196
|
var a = e.o[e.o.length - 1];
|
|
1196
|
-
a.U = this, a.B = o, a.F = [], i != null && (i instanceof P ? a.F =
|
|
1197
|
+
a.U = this, a.B = o, a.F = [], i != null && (i instanceof P ? a.F = Br(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), a.eb = !1;
|
|
1197
1198
|
}, z(e, e.O, "apply", r), r = function(o) {
|
|
1198
1199
|
var i = e.o[e.o.length - 1];
|
|
1199
1200
|
i.U = this, i.B = o, i.F = [];
|
|
@@ -1253,7 +1254,7 @@ function ei(e, t) {
|
|
|
1253
1254
|
}
|
|
1254
1255
|
function ti(e, t) {
|
|
1255
1256
|
var n = function(r) {
|
|
1256
|
-
var o = Ee(e) ? this :
|
|
1257
|
+
var o = Ee(e) ? this : ze(e), i = arguments[0];
|
|
1257
1258
|
if (arguments.length === 1 && typeof i == "number")
|
|
1258
1259
|
isNaN(bn(i)) && w(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1259
1260
|
else {
|
|
@@ -1286,15 +1287,15 @@ function ni(e, t) {
|
|
|
1286
1287
|
}
|
|
1287
1288
|
}, z(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1288
1289
|
var a = String(this);
|
|
1289
|
-
if (o = o ? Number(o) : void 0, q(e, r, e.I) && (r = r.data,
|
|
1290
|
+
if (o = o ? Number(o) : void 0, q(e, r, e.I) && (r = r.data, ot(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1290
1291
|
if (ke)
|
|
1291
|
-
r =
|
|
1292
|
+
r = rt(e, "string.split(separator, limit)", {
|
|
1292
1293
|
string: a,
|
|
1293
1294
|
separator: r,
|
|
1294
1295
|
limit: o
|
|
1295
|
-
}, r, i), r !==
|
|
1296
|
+
}, r, i), r !== He && i(be(e, r));
|
|
1296
1297
|
else {
|
|
1297
|
-
var u = e.ha(), d =
|
|
1298
|
+
var u = e.ha(), d = it(e, r, u, i);
|
|
1298
1299
|
u.onmessage = function(m) {
|
|
1299
1300
|
clearTimeout(d), i(be(e, m.data));
|
|
1300
1301
|
}, u.postMessage(["split", a, r, o]);
|
|
@@ -1302,49 +1303,49 @@ function ni(e, t) {
|
|
|
1302
1303
|
return;
|
|
1303
1304
|
}
|
|
1304
1305
|
r = a.split(r, o), i(be(e, r));
|
|
1305
|
-
},
|
|
1306
|
+
}, st(e, e.J, "split", n), n = function(r, o) {
|
|
1306
1307
|
var i = String(this);
|
|
1307
|
-
if (r = q(e, r, e.I) ? r.data : new RegExp(r),
|
|
1308
|
+
if (r = q(e, r, e.I) ? r.data : new RegExp(r), ot(e, r, o), e.REGEXP_MODE === 2)
|
|
1308
1309
|
if (ke)
|
|
1309
|
-
r =
|
|
1310
|
+
r = rt(e, "string.match(regexp)", {
|
|
1310
1311
|
string: i,
|
|
1311
1312
|
regexp: r
|
|
1312
|
-
}, r, o), r !==
|
|
1313
|
+
}, r, o), r !== He && o(r && be(e, r));
|
|
1313
1314
|
else {
|
|
1314
|
-
var a = e.ha(), u =
|
|
1315
|
+
var a = e.ha(), u = it(e, r, a, o);
|
|
1315
1316
|
a.onmessage = function(d) {
|
|
1316
1317
|
clearTimeout(u), o(d.data && be(e, d.data));
|
|
1317
1318
|
}, a.postMessage(["match", i, r]);
|
|
1318
1319
|
}
|
|
1319
1320
|
else
|
|
1320
1321
|
r = i.match(r), o(r && be(e, r));
|
|
1321
|
-
},
|
|
1322
|
+
}, st(e, e.J, "match", n), n = function(r, o) {
|
|
1322
1323
|
var i = String(this);
|
|
1323
|
-
if (q(e, r, e.I) ? r = r.data : r = new RegExp(r),
|
|
1324
|
+
if (q(e, r, e.I) ? r = r.data : r = new RegExp(r), ot(e, r, o), e.REGEXP_MODE === 2)
|
|
1324
1325
|
if (ke)
|
|
1325
|
-
r =
|
|
1326
|
+
r = rt(e, "string.search(regexp)", {
|
|
1326
1327
|
string: i,
|
|
1327
1328
|
regexp: r
|
|
1328
|
-
}, r, o), r !==
|
|
1329
|
+
}, r, o), r !== He && o(r);
|
|
1329
1330
|
else {
|
|
1330
|
-
var a = e.ha(), u =
|
|
1331
|
+
var a = e.ha(), u = it(e, r, a, o);
|
|
1331
1332
|
a.onmessage = function(d) {
|
|
1332
1333
|
clearTimeout(u), o(d.data);
|
|
1333
1334
|
}, a.postMessage(["search", i, r]);
|
|
1334
1335
|
}
|
|
1335
1336
|
else
|
|
1336
1337
|
o(i.search(r));
|
|
1337
|
-
},
|
|
1338
|
+
}, st(e, e.J, "search", n), n = function(r, o, i) {
|
|
1338
1339
|
var a = String(this);
|
|
1339
|
-
if (o = String(o), q(e, r, e.I) && (r = r.data,
|
|
1340
|
+
if (o = String(o), q(e, r, e.I) && (r = r.data, ot(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1340
1341
|
if (ke)
|
|
1341
|
-
r =
|
|
1342
|
+
r = rt(e, "string.replace(substr, newSubstr)", {
|
|
1342
1343
|
string: a,
|
|
1343
1344
|
substr: r,
|
|
1344
1345
|
newSubstr: o
|
|
1345
|
-
}, r, i), r !==
|
|
1346
|
+
}, r, i), r !== He && i(r);
|
|
1346
1347
|
else {
|
|
1347
|
-
var u = e.ha(), d =
|
|
1348
|
+
var u = e.ha(), d = it(e, r, u, i);
|
|
1348
1349
|
u.onmessage = function(m) {
|
|
1349
1350
|
clearTimeout(d), i(m.data);
|
|
1350
1351
|
}, u.postMessage(["replace", a, r, o]);
|
|
@@ -1352,7 +1353,7 @@ function ni(e, t) {
|
|
|
1352
1353
|
return;
|
|
1353
1354
|
}
|
|
1354
1355
|
i(a.replace(r, o));
|
|
1355
|
-
},
|
|
1356
|
+
}, st(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1356
1357
|
}
|
|
1357
1358
|
function ri(e, t) {
|
|
1358
1359
|
e.mb = e.i(function(n) {
|
|
@@ -1364,7 +1365,7 @@ function oi(e, t) {
|
|
|
1364
1365
|
return r = arguments.length ? Ae.Number(r) : 0, Ee(e) ? (this.data = r, this) : r;
|
|
1365
1366
|
};
|
|
1366
1367
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, k), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1367
|
-
e.g(e.aa, t[n], Number[t[n]],
|
|
1368
|
+
e.g(e.aa, t[n], Number[t[n]], nt);
|
|
1368
1369
|
n = function(r) {
|
|
1369
1370
|
try {
|
|
1370
1371
|
return Number(this).toExponential(r);
|
|
@@ -1434,7 +1435,7 @@ function si(e, t) {
|
|
|
1434
1435
|
}
|
|
1435
1436
|
return kn(e, i, a), i;
|
|
1436
1437
|
};
|
|
1437
|
-
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, k), e.g(e.I.h.prototype, "global", void 0,
|
|
1438
|
+
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, k), e.g(e.I.h.prototype, "global", void 0, ee), e.g(e.I.h.prototype, "ignoreCase", void 0, ee), e.g(e.I.h.prototype, "multiline", void 0, ee), e.g(e.I.h.prototype, "source", "(?:)", ee), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1438
1439
|
function i(y) {
|
|
1439
1440
|
if (y) {
|
|
1440
1441
|
var f = be(e, y);
|
|
@@ -1443,21 +1444,21 @@ function si(e, t) {
|
|
|
1443
1444
|
return null;
|
|
1444
1445
|
}
|
|
1445
1446
|
var a = this.data;
|
|
1446
|
-
if (r = String(r), a.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1447
|
+
if (r = String(r), a.lastIndex = Number(e.G(this, "lastIndex")), ot(e, a, o), e.REGEXP_MODE === 2)
|
|
1447
1448
|
if (ke)
|
|
1448
|
-
r =
|
|
1449
|
+
r = rt(e, "regexp.exec(string)", {
|
|
1449
1450
|
string: r,
|
|
1450
1451
|
regexp: a
|
|
1451
|
-
}, a, o), r !==
|
|
1452
|
+
}, a, o), r !== He && (e.g(this, "lastIndex", a.lastIndex), o(i(r)));
|
|
1452
1453
|
else {
|
|
1453
|
-
var u = e.ha(), d =
|
|
1454
|
+
var u = e.ha(), d = it(e, a, u, o), m = this;
|
|
1454
1455
|
u.onmessage = function(y) {
|
|
1455
1456
|
clearTimeout(d), e.g(m, "lastIndex", y.data[1]), o(i(y.data[0]));
|
|
1456
1457
|
}, u.postMessage(["exec", a, a.lastIndex, r]);
|
|
1457
1458
|
}
|
|
1458
1459
|
else
|
|
1459
1460
|
r = a.exec(r), e.g(this, "lastIndex", a.lastIndex), o(i(r));
|
|
1460
|
-
},
|
|
1461
|
+
}, st(e, e.I, "exec", n);
|
|
1461
1462
|
}
|
|
1462
1463
|
function ai(e, t) {
|
|
1463
1464
|
function n(r) {
|
|
@@ -1477,7 +1478,7 @@ function li(e, t) {
|
|
|
1477
1478
|
e.g(t, "Math", n, k);
|
|
1478
1479
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1479
1480
|
for (t = 0; t < r.length; t++)
|
|
1480
|
-
e.g(n, r[t], Math[r[t]],
|
|
1481
|
+
e.g(n, r[t], Math[r[t]], ee);
|
|
1481
1482
|
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++)
|
|
1482
1483
|
e.g(n, r[t], e.i(Math[r[t]], !1), k);
|
|
1483
1484
|
}
|
|
@@ -1491,7 +1492,7 @@ function ui(e, t) {
|
|
|
1491
1492
|
}
|
|
1492
1493
|
return e.Ia(o);
|
|
1493
1494
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1494
|
-
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o =
|
|
1495
|
+
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = Br(e, o), o = o.filter(function(u) {
|
|
1495
1496
|
return typeof u == "string" || typeof u == "number";
|
|
1496
1497
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1497
1498
|
try {
|
|
@@ -1515,7 +1516,7 @@ function q(e, t, n) {
|
|
|
1515
1516
|
return !1;
|
|
1516
1517
|
}
|
|
1517
1518
|
function kn(e, t, n) {
|
|
1518
|
-
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, k), e.g(t, "source", n.source,
|
|
1519
|
+
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, k), e.g(t, "source", n.source, ee), e.g(t, "global", n.global, ee), e.g(t, "ignoreCase", n.ignoreCase, ee), e.g(t, "multiline", n.multiline, ee);
|
|
1519
1520
|
}
|
|
1520
1521
|
function pn(e, t, n) {
|
|
1521
1522
|
n && e.g(t, "message", String(n), k), n = [];
|
|
@@ -1541,7 +1542,7 @@ j.ha = function() {
|
|
|
1541
1542
|
type: "application/javascript"
|
|
1542
1543
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1543
1544
|
};
|
|
1544
|
-
function
|
|
1545
|
+
function rt(e, t, n, r, o) {
|
|
1545
1546
|
var i = {
|
|
1546
1547
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1547
1548
|
};
|
|
@@ -1550,9 +1551,9 @@ function ot(e, t, n, r, o) {
|
|
|
1550
1551
|
} catch {
|
|
1551
1552
|
o(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1552
1553
|
}
|
|
1553
|
-
return
|
|
1554
|
+
return He;
|
|
1554
1555
|
}
|
|
1555
|
-
function
|
|
1556
|
+
function ot(e, t, n) {
|
|
1556
1557
|
if (e.REGEXP_MODE === 0)
|
|
1557
1558
|
var r = !1;
|
|
1558
1559
|
else if (e.REGEXP_MODE === 1)
|
|
@@ -1571,7 +1572,7 @@ function it(e, t, n) {
|
|
|
1571
1572
|
r = !1;
|
|
1572
1573
|
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
1573
1574
|
}
|
|
1574
|
-
function
|
|
1575
|
+
function it(e, t, n, r) {
|
|
1575
1576
|
return setTimeout(function() {
|
|
1576
1577
|
n.terminate(), r(null);
|
|
1577
1578
|
try {
|
|
@@ -1588,7 +1589,7 @@ j.s = function(e) {
|
|
|
1588
1589
|
throw Error("Non object prototype");
|
|
1589
1590
|
return e = new P(e), q(this, e, this.D) && (e.H = "Error"), e;
|
|
1590
1591
|
};
|
|
1591
|
-
function
|
|
1592
|
+
function ze(e) {
|
|
1592
1593
|
var t = e.s(e.La);
|
|
1593
1594
|
return e.g(t, "length", 0, {
|
|
1594
1595
|
configurable: !1,
|
|
@@ -1598,18 +1599,18 @@ function Ge(e) {
|
|
|
1598
1599
|
}
|
|
1599
1600
|
function Sn(e, t, n) {
|
|
1600
1601
|
var r = e.s(e.Z);
|
|
1601
|
-
return n ? (n = e.s(e.M), e.g(r, "prototype", n, k), e.g(n, "constructor", r, k)) : r.Ab = !0, e.g(r, "length", t,
|
|
1602
|
+
return n ? (n = e.s(e.M), e.g(r, "prototype", n, k), e.g(n, "constructor", r, k)) : r.Ab = !0, e.g(r, "length", t, ee), r.H = "Function", r;
|
|
1602
1603
|
}
|
|
1603
1604
|
function Cn(e, t, n, r) {
|
|
1604
1605
|
var o = Sn(e, t.oa.length, !0);
|
|
1605
|
-
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "",
|
|
1606
|
+
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", ee), o;
|
|
1606
1607
|
}
|
|
1607
1608
|
j.i = function(e, t) {
|
|
1608
|
-
return t = Sn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1609
|
+
return t = Sn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ee), t;
|
|
1609
1610
|
};
|
|
1610
1611
|
j.ub = function(e) {
|
|
1611
1612
|
var t = Sn(this, e.length, !0);
|
|
1612
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1613
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ee), t;
|
|
1613
1614
|
};
|
|
1614
1615
|
j.Ia = function(e) {
|
|
1615
1616
|
if (e instanceof P)
|
|
@@ -1632,7 +1633,7 @@ j.Ia = function(e) {
|
|
|
1632
1633
|
}, !!t);
|
|
1633
1634
|
}
|
|
1634
1635
|
if (Array.isArray(e)) {
|
|
1635
|
-
t =
|
|
1636
|
+
t = ze(this);
|
|
1636
1637
|
for (var r = 0; r < e.length; r++)
|
|
1637
1638
|
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1638
1639
|
return t;
|
|
@@ -1673,11 +1674,11 @@ j.R = function(e, t) {
|
|
|
1673
1674
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1674
1675
|
};
|
|
1675
1676
|
function be(e, t) {
|
|
1676
|
-
for (var n =
|
|
1677
|
+
for (var n = ze(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1677
1678
|
e.g(n, r[o], t[r[o]]);
|
|
1678
1679
|
return n;
|
|
1679
1680
|
}
|
|
1680
|
-
function
|
|
1681
|
+
function Br(e, t) {
|
|
1681
1682
|
var n = [], r;
|
|
1682
1683
|
for (r in t.h)
|
|
1683
1684
|
n[r] = e.G(t, r);
|
|
@@ -1703,7 +1704,7 @@ j.G = function(e, t) {
|
|
|
1703
1704
|
if (q(this, e, this.J))
|
|
1704
1705
|
return String(e).length;
|
|
1705
1706
|
} else if (64 > t.charCodeAt(0) && q(this, e, this.J)) {
|
|
1706
|
-
var n =
|
|
1707
|
+
var n = ut(t);
|
|
1707
1708
|
if (!isNaN(n) && n < String(e).length)
|
|
1708
1709
|
return String(e)[n];
|
|
1709
1710
|
}
|
|
@@ -1718,7 +1719,7 @@ function Ot(e, t, n) {
|
|
|
1718
1719
|
if (n = String(n), n === "length" && q(e, t, e.J))
|
|
1719
1720
|
return !0;
|
|
1720
1721
|
if (q(e, t, e.J)) {
|
|
1721
|
-
var r =
|
|
1722
|
+
var r = ut(n);
|
|
1722
1723
|
if (!isNaN(r) && r < String(t).length)
|
|
1723
1724
|
return !0;
|
|
1724
1725
|
}
|
|
@@ -1737,7 +1738,7 @@ j.g = function(e, t, n, r) {
|
|
|
1737
1738
|
var o = !this.o || wn(this).S;
|
|
1738
1739
|
if (e instanceof P) {
|
|
1739
1740
|
if (q(this, e, this.J)) {
|
|
1740
|
-
var i =
|
|
1741
|
+
var i = ut(t);
|
|
1741
1742
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1742
1743
|
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1743
1744
|
return;
|
|
@@ -1752,11 +1753,11 @@ j.g = function(e, t, n, r) {
|
|
|
1752
1753
|
}
|
|
1753
1754
|
if (n = bn(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < i)
|
|
1754
1755
|
for (a in e.h) {
|
|
1755
|
-
var a =
|
|
1756
|
+
var a = ut(a);
|
|
1756
1757
|
!isNaN(a) && n <= a && delete e.h[a];
|
|
1757
1758
|
}
|
|
1758
1759
|
} else
|
|
1759
|
-
isNaN(a =
|
|
1760
|
+
isNaN(a = ut(t)) || (e.h.length = Math.max(i, a + 1));
|
|
1760
1761
|
if (!e.preventExtensions || t in e.h)
|
|
1761
1762
|
if (r) {
|
|
1762
1763
|
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== pt && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
@@ -1799,7 +1800,7 @@ j.g.bc = function() {
|
|
|
1799
1800
|
function z(e, t, n, r) {
|
|
1800
1801
|
e.g(t.h.prototype, n, e.i(r, !1), k);
|
|
1801
1802
|
}
|
|
1802
|
-
function
|
|
1803
|
+
function st(e, t, n, r) {
|
|
1803
1804
|
e.g(t.h.prototype, n, e.ub(r), k);
|
|
1804
1805
|
}
|
|
1805
1806
|
function wn(e) {
|
|
@@ -1815,12 +1816,12 @@ function dn(e, t, n) {
|
|
|
1815
1816
|
var o = t.body && t.body[0];
|
|
1816
1817
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1817
1818
|
}
|
|
1818
|
-
return o = e.s(null), r = new
|
|
1819
|
+
return o = e.s(null), r = new Ur(n, r, o), n || Zo(e, r.object), dt(e, t, r), r;
|
|
1819
1820
|
}
|
|
1820
1821
|
function En(e, t, n) {
|
|
1821
1822
|
if (!t)
|
|
1822
1823
|
throw Error("parentScope required");
|
|
1823
|
-
return e = n || e.s(null), new
|
|
1824
|
+
return e = n || e.s(null), new Ur(t, t.S, e);
|
|
1824
1825
|
}
|
|
1825
1826
|
function In(e, t) {
|
|
1826
1827
|
for (var n = wn(e); n && n !== e.N; ) {
|
|
@@ -1832,7 +1833,7 @@ function In(e, t) {
|
|
|
1832
1833
|
return e.G(n.object, t);
|
|
1833
1834
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1834
1835
|
}
|
|
1835
|
-
function
|
|
1836
|
+
function Vr(e, t, n) {
|
|
1836
1837
|
for (var r = wn(e), o = r.S; r && r !== e.N; ) {
|
|
1837
1838
|
if (t in r.object.h) {
|
|
1838
1839
|
try {
|
|
@@ -1894,20 +1895,20 @@ function dt(e, t, n) {
|
|
|
1894
1895
|
t.jb = r;
|
|
1895
1896
|
}
|
|
1896
1897
|
for (a in r)
|
|
1897
|
-
r[a] === !0 ? e.g(n.object, a, void 0,
|
|
1898
|
+
r[a] === !0 ? e.g(n.object, a, void 0, dr) : e.g(n.object, a, Cn(e, r[a], n), dr);
|
|
1898
1899
|
return r;
|
|
1899
1900
|
}
|
|
1900
1901
|
function Ee(e) {
|
|
1901
1902
|
return e.o[e.o.length - 1].isConstructor;
|
|
1902
1903
|
}
|
|
1903
1904
|
function Tn(e, t) {
|
|
1904
|
-
return t[0] ===
|
|
1905
|
+
return t[0] === Ge ? In(e, t[1]) : e.G(t[0], t[1]);
|
|
1905
1906
|
}
|
|
1906
1907
|
function xn(e, t, n) {
|
|
1907
|
-
return t[0] ===
|
|
1908
|
+
return t[0] === Ge ? Vr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1908
1909
|
}
|
|
1909
1910
|
function w(e, t, n) {
|
|
1910
|
-
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), pn(e, t, n)), ft(e, 4, t),
|
|
1911
|
+
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), pn(e, t, n)), ft(e, 4, t), Nr) : n === void 0 ? t : n;
|
|
1911
1912
|
}
|
|
1912
1913
|
function ft(e, t, n, r) {
|
|
1913
1914
|
if (t === 0)
|
|
@@ -1954,38 +1955,38 @@ function ft(e, t, n, r) {
|
|
|
1954
1955
|
URIError
|
|
1955
1956
|
}, 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;
|
|
1956
1957
|
}
|
|
1957
|
-
function
|
|
1958
|
+
function Q(e, t) {
|
|
1958
1959
|
switch (t.type) {
|
|
1959
1960
|
case "ArrayExpression":
|
|
1960
1961
|
return "[...]";
|
|
1961
1962
|
case "BinaryExpression":
|
|
1962
1963
|
case "LogicalExpression":
|
|
1963
|
-
return
|
|
1964
|
+
return Q(e, t.left) + " " + t.operator + " " + Q(e, t.right);
|
|
1964
1965
|
case "CallExpression":
|
|
1965
|
-
return
|
|
1966
|
+
return Q(e, t.callee) + "(...)";
|
|
1966
1967
|
case "ConditionalExpression":
|
|
1967
|
-
return
|
|
1968
|
+
return Q(e, t.test) + " ? " + Q(e, t.da) + " : " + Q(e, t.alternate);
|
|
1968
1969
|
case "Identifier":
|
|
1969
1970
|
return t.name;
|
|
1970
1971
|
case "Literal":
|
|
1971
1972
|
return t.raw;
|
|
1972
1973
|
case "MemberExpression":
|
|
1973
|
-
var n =
|
|
1974
|
-
return e =
|
|
1974
|
+
var n = Q(e, t.object);
|
|
1975
|
+
return e = Q(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
|
|
1975
1976
|
case "NewExpression":
|
|
1976
|
-
return "new " +
|
|
1977
|
+
return "new " + Q(e, t.callee) + "(...)";
|
|
1977
1978
|
case "ObjectExpression":
|
|
1978
1979
|
return "{...}";
|
|
1979
1980
|
case "ThisExpression":
|
|
1980
1981
|
return "this";
|
|
1981
1982
|
case "UnaryExpression":
|
|
1982
|
-
return t.operator + " " +
|
|
1983
|
+
return t.operator + " " + Q(e, t.K);
|
|
1983
1984
|
case "UpdateExpression":
|
|
1984
|
-
return n =
|
|
1985
|
+
return n = Q(e, t.K), t.prefix ? t.operator + n : n + t.operator;
|
|
1985
1986
|
}
|
|
1986
1987
|
return "???";
|
|
1987
1988
|
}
|
|
1988
|
-
function
|
|
1989
|
+
function fr(e, t, n) {
|
|
1989
1990
|
var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
|
|
1990
1991
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1991
1992
|
var a = e.ya();
|
|
@@ -1994,20 +1995,20 @@ function yr(e, t, n) {
|
|
|
1994
1995
|
a.type = "CallExpression", r = r.scope;
|
|
1995
1996
|
} else {
|
|
1996
1997
|
try {
|
|
1997
|
-
var d =
|
|
1998
|
+
var d = _e(String(i), "taskCode" + e.ic++);
|
|
1998
1999
|
} catch (m) {
|
|
1999
2000
|
w(e, e.T, "Invalid code: " + m.message);
|
|
2000
2001
|
}
|
|
2001
2002
|
a.type = "EvalProgram_", a.body = d.body, r = r.node.arguments[0], Pt(a, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
2002
2003
|
}
|
|
2003
|
-
return t = new ci(u, o, r, a, t ? n : -1),
|
|
2004
|
+
return t = new ci(u, o, r, a, t ? n : -1), Mr(e, t, n), t.Db;
|
|
2004
2005
|
}
|
|
2005
|
-
function
|
|
2006
|
+
function Mr(e, t, n) {
|
|
2006
2007
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
2007
2008
|
return r.time - o.time;
|
|
2008
2009
|
});
|
|
2009
2010
|
}
|
|
2010
|
-
function
|
|
2011
|
+
function mr(e, t) {
|
|
2011
2012
|
for (var n = 0; n < e.ca.length; n++)
|
|
2012
2013
|
if (e.ca[n].Db == t) {
|
|
2013
2014
|
e.ca.splice(n, 1);
|
|
@@ -2043,7 +2044,7 @@ j.ec = function(e) {
|
|
|
2043
2044
|
function S(e, t) {
|
|
2044
2045
|
this.node = e, this.scope = t;
|
|
2045
2046
|
}
|
|
2046
|
-
function
|
|
2047
|
+
function Ur(e, t, n) {
|
|
2047
2048
|
this.Va = e, this.S = t, this.object = n;
|
|
2048
2049
|
}
|
|
2049
2050
|
function P(e) {
|
|
@@ -2054,12 +2055,12 @@ j.xa = null;
|
|
|
2054
2055
|
j.H = "Object";
|
|
2055
2056
|
j.data = null;
|
|
2056
2057
|
j.toString = function() {
|
|
2057
|
-
if (!
|
|
2058
|
+
if (!lt)
|
|
2058
2059
|
return "[object Interpreter.Object]";
|
|
2059
2060
|
if (!(this instanceof P))
|
|
2060
2061
|
return String(this);
|
|
2061
2062
|
if (this.H === "Array") {
|
|
2062
|
-
var e =
|
|
2063
|
+
var e = hr;
|
|
2063
2064
|
e.push(this);
|
|
2064
2065
|
try {
|
|
2065
2066
|
var t = [], n = this.h.length, r = !1;
|
|
@@ -2075,7 +2076,7 @@ j.toString = function() {
|
|
|
2075
2076
|
return t.join(",");
|
|
2076
2077
|
}
|
|
2077
2078
|
if (this.H === "Error") {
|
|
2078
|
-
if (e =
|
|
2079
|
+
if (e = hr, e.indexOf(this) !== -1)
|
|
2079
2080
|
return "[object Error]";
|
|
2080
2081
|
n = this;
|
|
2081
2082
|
do
|
|
@@ -2102,7 +2103,7 @@ j.toString = function() {
|
|
|
2102
2103
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
2103
2104
|
};
|
|
2104
2105
|
j.valueOf = function() {
|
|
2105
|
-
return !
|
|
2106
|
+
return !lt || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2106
2107
|
};
|
|
2107
2108
|
function ci(e, t, n, r, o) {
|
|
2108
2109
|
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++pi, this.time = 0;
|
|
@@ -2111,7 +2112,7 @@ var pi = 0;
|
|
|
2111
2112
|
g.prototype.stepArrayExpression = function(e, t, n) {
|
|
2112
2113
|
n = n.elements;
|
|
2113
2114
|
var r = t.A || 0;
|
|
2114
|
-
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa =
|
|
2115
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = ze(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
2115
2116
|
if (n[r])
|
|
2116
2117
|
return t.A = r, new S(n[r], t.scope);
|
|
2117
2118
|
r++;
|
|
@@ -2268,7 +2269,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2268
2269
|
t.ia = 2;
|
|
2269
2270
|
var o = t.value;
|
|
2270
2271
|
if (Array.isArray(o)) {
|
|
2271
|
-
if (t.U = Tn(this, o), o[0] ===
|
|
2272
|
+
if (t.U = Tn(this, o), o[0] === Ge ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2272
2273
|
return t.ia = 1, mt(this, o, t.value);
|
|
2273
2274
|
} else
|
|
2274
2275
|
t.U = o;
|
|
@@ -2278,8 +2279,8 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2278
2279
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2279
2280
|
return new S(n.arguments[t.A++], t.scope);
|
|
2280
2281
|
if (n.type === "NewExpression") {
|
|
2281
|
-
if (o instanceof P && !o.Ab || w(this, this.j,
|
|
2282
|
-
t.B =
|
|
2282
|
+
if (o instanceof P && !o.Ab || w(this, this.j, Q(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2283
|
+
t.B = ze(this);
|
|
2283
2284
|
else {
|
|
2284
2285
|
var i = o.h.prototype;
|
|
2285
2286
|
(typeof i != "object" || i === null) && (i = this.M), t.B = this.s(i);
|
|
@@ -2291,8 +2292,8 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2291
2292
|
if (t.eb)
|
|
2292
2293
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2293
2294
|
else {
|
|
2294
|
-
if (t.eb = !0, o instanceof P || w(this, this.j,
|
|
2295
|
-
for (n = dn(this, e.body, o.Va), r =
|
|
2295
|
+
if (t.eb = !0, o instanceof P || w(this, this.j, Q(this, n.callee) + " is not a function"), e = o.node) {
|
|
2296
|
+
for (n = dn(this, e.body, o.Va), r = ze(this), o = 0; o < t.F.length; o++)
|
|
2296
2297
|
this.g(r, o, t.F[o]);
|
|
2297
2298
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2298
2299
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
@@ -2303,7 +2304,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2303
2304
|
t.value = o;
|
|
2304
2305
|
else {
|
|
2305
2306
|
try {
|
|
2306
|
-
r =
|
|
2307
|
+
r = _e(String(o), "eval" + this.Hb++);
|
|
2307
2308
|
} catch (u) {
|
|
2308
2309
|
w(this, this.T, "Invalid code: " + u.message);
|
|
2309
2310
|
}
|
|
@@ -2317,7 +2318,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2317
2318
|
t.value = u, a.za = !1;
|
|
2318
2319
|
}), this.za = !0, t.scope.S || (t.B = on(this, t.B)), o.Za.apply(t.B, r);
|
|
2319
2320
|
} else
|
|
2320
|
-
w(this, this.j,
|
|
2321
|
+
w(this, this.j, Q(this, n.callee) + " is not callable");
|
|
2321
2322
|
}
|
|
2322
2323
|
};
|
|
2323
2324
|
g.prototype.stepConditionalExpression = function(e, t, n) {
|
|
@@ -2393,7 +2394,7 @@ g.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2393
2394
|
}
|
|
2394
2395
|
if (!t.wb)
|
|
2395
2396
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2396
|
-
t.pa = [
|
|
2397
|
+
t.pa = [Ge, e.fa[0].id.name];
|
|
2397
2398
|
else
|
|
2398
2399
|
return t.pa = null, t = new S(e, t.scope), t.sa = !0, t;
|
|
2399
2400
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = xn(this, t.pa, e)))
|
|
@@ -2430,7 +2431,7 @@ g.prototype.stepFunctionExpression = function(e, t, n) {
|
|
|
2430
2431
|
};
|
|
2431
2432
|
g.prototype.stepIdentifier = function(e, t, n) {
|
|
2432
2433
|
if (e.pop(), t.sa)
|
|
2433
|
-
e[e.length - 1].value = [
|
|
2434
|
+
e[e.length - 1].value = [Ge, n.name];
|
|
2434
2435
|
else {
|
|
2435
2436
|
if (t = In(this, n.name), this.P)
|
|
2436
2437
|
return mt(this, t, this.Na);
|
|
@@ -2583,7 +2584,7 @@ g.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2583
2584
|
case "delete":
|
|
2584
2585
|
if (n = !0, Array.isArray(r)) {
|
|
2585
2586
|
var o = r[0];
|
|
2586
|
-
o ===
|
|
2587
|
+
o === Ge && (o = t.scope), r = String(r[1]);
|
|
2587
2588
|
try {
|
|
2588
2589
|
delete o.h[r];
|
|
2589
2590
|
} catch {
|
|
@@ -2628,7 +2629,7 @@ g.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2628
2629
|
g.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2629
2630
|
n = n.fa;
|
|
2630
2631
|
var r = t.A || 0, o = n[r];
|
|
2631
|
-
for (t.Bb && o && (
|
|
2632
|
+
for (t.Bb && o && (Vr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2632
2633
|
if (o.ua)
|
|
2633
2634
|
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new S(o.ua, t.scope);
|
|
2634
2635
|
o = n[++r];
|
|
@@ -2668,7 +2669,7 @@ const di = (e) => e.split(`
|
|
|
2668
2669
|
${u}
|
|
2669
2670
|
`;
|
|
2670
2671
|
}).filter(Boolean).join(`
|
|
2671
|
-
`),
|
|
2672
|
+
`), gr = (e) => e + "JSON", hi = ({
|
|
2672
2673
|
builder: e,
|
|
2673
2674
|
context: t,
|
|
2674
2675
|
event: n,
|
|
@@ -2680,18 +2681,18 @@ const di = (e) => e.split(`
|
|
|
2680
2681
|
const u = {
|
|
2681
2682
|
...r,
|
|
2682
2683
|
...o
|
|
2683
|
-
}, d =
|
|
2684
|
+
}, d = Or({
|
|
2684
2685
|
builder: e,
|
|
2685
2686
|
context: t,
|
|
2686
2687
|
event: n,
|
|
2687
2688
|
state: u
|
|
2688
2689
|
}), m = d.map(([E]) => {
|
|
2689
|
-
const F =
|
|
2690
|
+
const F = gr(E);
|
|
2690
2691
|
return `var ${E} = ${F} === undefined ? undefined : JSON.parse(${F});`;
|
|
2691
2692
|
}).join(`
|
|
2692
2693
|
`), y = di(a);
|
|
2693
2694
|
if (y === "") {
|
|
2694
|
-
|
|
2695
|
+
te.warn("Skipping evaluation of empty code block.");
|
|
2695
2696
|
return;
|
|
2696
2697
|
}
|
|
2697
2698
|
const f = `
|
|
@@ -2707,14 +2708,14 @@ theFunction();
|
|
|
2707
2708
|
}, O = function(E, F) {
|
|
2708
2709
|
d.forEach(([se, W]) => {
|
|
2709
2710
|
const A = JSON.stringify(W);
|
|
2710
|
-
E.setProperty(F,
|
|
2711
|
+
E.setProperty(F, gr(se), A);
|
|
2711
2712
|
}), E.setProperty(F, "setRootState", E.createNativeFunction(C));
|
|
2712
2713
|
};
|
|
2713
2714
|
try {
|
|
2714
2715
|
const E = new g(f, O);
|
|
2715
2716
|
return E.run(), E.pseudoToNative(E.value);
|
|
2716
2717
|
} catch (E) {
|
|
2717
|
-
|
|
2718
|
+
te.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2718
2719
|
e: E
|
|
2719
2720
|
});
|
|
2720
2721
|
return;
|
|
@@ -2729,7 +2730,7 @@ const mi = () => {
|
|
|
2729
2730
|
if (!fi())
|
|
2730
2731
|
return !1;
|
|
2731
2732
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2732
|
-
return e && t && !n ? (
|
|
2733
|
+
return e && t && !n ? (te.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;
|
|
2733
2734
|
}, gi = (e) => X() || mi() ? Jo(e) : hi(e), ve = class ve {
|
|
2734
2735
|
static getCacheKey(t) {
|
|
2735
2736
|
return JSON.stringify({
|
|
@@ -2749,7 +2750,7 @@ const mi = () => {
|
|
|
2749
2750
|
}
|
|
2750
2751
|
};
|
|
2751
2752
|
rn(ve, "cacheLimit", 20), rn(ve, "cache", /* @__PURE__ */ new Map());
|
|
2752
|
-
let
|
|
2753
|
+
let Ke = ve;
|
|
2753
2754
|
function At({
|
|
2754
2755
|
code: e,
|
|
2755
2756
|
context: t,
|
|
@@ -2760,10 +2761,8 @@ function At({
|
|
|
2760
2761
|
isExpression: a = !0,
|
|
2761
2762
|
enableCache: u
|
|
2762
2763
|
}) {
|
|
2763
|
-
if (e === "")
|
|
2764
|
-
Z.warn("Skipping evaluation of empty code block.");
|
|
2764
|
+
if (e === "")
|
|
2765
2765
|
return;
|
|
2766
|
-
}
|
|
2767
2766
|
const d = {
|
|
2768
2767
|
code: qo(e, {
|
|
2769
2768
|
isExpression: a
|
|
@@ -2776,19 +2775,19 @@ function At({
|
|
|
2776
2775
|
localState: n
|
|
2777
2776
|
};
|
|
2778
2777
|
if (u) {
|
|
2779
|
-
const m =
|
|
2778
|
+
const m = Ke.getCacheKey(d), y = Ke.getCachedValue(m);
|
|
2780
2779
|
if (y)
|
|
2781
2780
|
return y.value;
|
|
2782
2781
|
}
|
|
2783
2782
|
try {
|
|
2784
2783
|
const m = gi(d);
|
|
2785
2784
|
if (u) {
|
|
2786
|
-
const y =
|
|
2787
|
-
|
|
2785
|
+
const y = Ke.getCacheKey(d);
|
|
2786
|
+
Ke.setCachedValue(y, m);
|
|
2788
2787
|
}
|
|
2789
2788
|
return m;
|
|
2790
2789
|
} catch (m) {
|
|
2791
|
-
|
|
2790
|
+
te.error("Failed code evaluation: " + m.message, {
|
|
2792
2791
|
code: e
|
|
2793
2792
|
});
|
|
2794
2793
|
return;
|
|
@@ -2826,7 +2825,7 @@ const yi = ({
|
|
|
2826
2825
|
}
|
|
2827
2826
|
return a;
|
|
2828
2827
|
};
|
|
2829
|
-
function
|
|
2828
|
+
function Fr({
|
|
2830
2829
|
block: e,
|
|
2831
2830
|
context: t,
|
|
2832
2831
|
shouldEvaluateBindings: n,
|
|
@@ -2855,7 +2854,7 @@ function vi(e, t, n = {}) {
|
|
|
2855
2854
|
return r = this, o = arguments, y <= 0 || y > t ? (a && (clearTimeout(a), a = null), u = m, i = e.apply(r, o), a || (r = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, y)), i;
|
|
2856
2855
|
};
|
|
2857
2856
|
}
|
|
2858
|
-
function
|
|
2857
|
+
function ct(e, ...t) {
|
|
2859
2858
|
const n = Object(e);
|
|
2860
2859
|
for (let r = 1; r < arguments.length; r++) {
|
|
2861
2860
|
const o = arguments[r];
|
|
@@ -2865,25 +2864,22 @@ function Be(e, ...t) {
|
|
|
2865
2864
|
}
|
|
2866
2865
|
return n;
|
|
2867
2866
|
}
|
|
2868
|
-
const
|
|
2867
|
+
const Wr = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
2869
2868
|
function bi(e) {
|
|
2870
2869
|
for (const t of e)
|
|
2871
2870
|
switch (t.trigger) {
|
|
2872
2871
|
case "pageLoad":
|
|
2873
2872
|
Hr(t);
|
|
2874
2873
|
break;
|
|
2875
|
-
case "hover":
|
|
2876
|
-
Si(t);
|
|
2877
|
-
break;
|
|
2878
2874
|
case "scrollInView":
|
|
2879
|
-
|
|
2875
|
+
Si(t);
|
|
2880
2876
|
break;
|
|
2881
2877
|
}
|
|
2882
2878
|
}
|
|
2883
|
-
function
|
|
2879
|
+
function Dr(e) {
|
|
2884
2880
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2885
2881
|
}
|
|
2886
|
-
function
|
|
2882
|
+
function Lr(e, t) {
|
|
2887
2883
|
const n = ki(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, a = [o, i];
|
|
2888
2884
|
for (const u of a)
|
|
2889
2885
|
for (const d of n)
|
|
@@ -2899,12 +2895,12 @@ function ki(e) {
|
|
|
2899
2895
|
function Hr(e) {
|
|
2900
2896
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2901
2897
|
if (!t.length) {
|
|
2902
|
-
|
|
2898
|
+
Dr(e.elementId || e.id || "");
|
|
2903
2899
|
return;
|
|
2904
2900
|
}
|
|
2905
2901
|
Array.from(t).forEach((n) => {
|
|
2906
|
-
|
|
2907
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2902
|
+
Lr(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ct(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2903
|
+
n.style.transition = `all ${e.duration}s ${Wr(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ct(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2908
2904
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2909
2905
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2910
2906
|
});
|
|
@@ -2913,38 +2909,18 @@ function Hr(e) {
|
|
|
2913
2909
|
function Si(e) {
|
|
2914
2910
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2915
2911
|
if (!t.length) {
|
|
2916
|
-
|
|
2912
|
+
Dr(e.elementId || e.id || "");
|
|
2917
2913
|
return;
|
|
2918
2914
|
}
|
|
2919
2915
|
Array.from(t).forEach((n) => {
|
|
2920
|
-
|
|
2921
|
-
const r = e.steps[0].styles, o = e.steps[1].styles;
|
|
2922
|
-
function i() {
|
|
2923
|
-
Be(n.style, r);
|
|
2924
|
-
}
|
|
2925
|
-
function a() {
|
|
2926
|
-
Be(n.style, o);
|
|
2927
|
-
}
|
|
2928
|
-
i(), n.addEventListener("mouseenter", a), n.addEventListener("mouseleave", i), setTimeout(() => {
|
|
2929
|
-
n.style.transition = `all ${e.duration}s ${An(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
2930
|
-
});
|
|
2931
|
-
});
|
|
2932
|
-
}
|
|
2933
|
-
function Ci(e) {
|
|
2934
|
-
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2935
|
-
if (!t.length) {
|
|
2936
|
-
$n(e.elementId || e.id || "");
|
|
2937
|
-
return;
|
|
2938
|
-
}
|
|
2939
|
-
Array.from(t).forEach((n) => {
|
|
2940
|
-
Pn(e, n);
|
|
2916
|
+
Lr(e, n);
|
|
2941
2917
|
let r = !1, o = !1;
|
|
2942
2918
|
function i() {
|
|
2943
2919
|
!r && u(n) ? (r = !0, o = !0, setTimeout(() => {
|
|
2944
|
-
|
|
2920
|
+
ct(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
2945
2921
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
2946
2922
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
2947
|
-
})) : e.repeat && r && !o && !u(n) && (r = !1,
|
|
2923
|
+
})) : e.repeat && r && !o && !u(n) && (r = !1, ct(n.style, e.steps[0].styles));
|
|
2948
2924
|
}
|
|
2949
2925
|
const a = vi(i, 200, {
|
|
2950
2926
|
leading: !1
|
|
@@ -2955,41 +2931,41 @@ function Ci(e) {
|
|
|
2955
2931
|
}
|
|
2956
2932
|
const d = e.steps[0].styles;
|
|
2957
2933
|
function m() {
|
|
2958
|
-
|
|
2934
|
+
ct(n.style, d);
|
|
2959
2935
|
}
|
|
2960
2936
|
m(), setTimeout(() => {
|
|
2961
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2937
|
+
n.style.transition = `all ${e.duration}s ${Wr(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
2962
2938
|
}), document.addEventListener("scroll", a, {
|
|
2963
2939
|
capture: !0,
|
|
2964
2940
|
passive: !0
|
|
2965
2941
|
}), i();
|
|
2966
2942
|
});
|
|
2967
2943
|
}
|
|
2968
|
-
const
|
|
2944
|
+
const Ci = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Kr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2969
2945
|
if (typeof r == "string")
|
|
2970
|
-
return `${
|
|
2971
|
-
}).filter($e),
|
|
2972
|
-
`),
|
|
2946
|
+
return `${Ci(n)}: ${r};`;
|
|
2947
|
+
}).filter($e), wi = (e) => Kr(e).join(`
|
|
2948
|
+
`), Vl = ({
|
|
2973
2949
|
mediaQuery: e,
|
|
2974
2950
|
className: t,
|
|
2975
2951
|
styles: n
|
|
2976
2952
|
}) => {
|
|
2977
2953
|
const r = `.${t} {
|
|
2978
|
-
${
|
|
2954
|
+
${wi(n)}
|
|
2979
2955
|
}`;
|
|
2980
2956
|
return e ? `${e} {
|
|
2981
2957
|
${r}
|
|
2982
2958
|
}` : r;
|
|
2983
2959
|
};
|
|
2984
|
-
function
|
|
2960
|
+
function Ei({
|
|
2985
2961
|
style: e
|
|
2986
2962
|
}) {
|
|
2987
2963
|
return e;
|
|
2988
2964
|
}
|
|
2989
|
-
const
|
|
2965
|
+
const Ml = ({
|
|
2990
2966
|
block: e,
|
|
2991
2967
|
context: t
|
|
2992
|
-
}) => _r(
|
|
2968
|
+
}) => _r(Ei({
|
|
2993
2969
|
style: e.style || {},
|
|
2994
2970
|
context: t,
|
|
2995
2971
|
block: e
|
|
@@ -3007,13 +2983,13 @@ function _r(e) {
|
|
|
3007
2983
|
return e;
|
|
3008
2984
|
}
|
|
3009
2985
|
}
|
|
3010
|
-
const
|
|
2986
|
+
const Ii = ({
|
|
3011
2987
|
block: e,
|
|
3012
2988
|
context: t,
|
|
3013
2989
|
registeredComponents: n
|
|
3014
2990
|
}) => {
|
|
3015
2991
|
var i;
|
|
3016
|
-
const r = (i =
|
|
2992
|
+
const r = (i = Fr({
|
|
3017
2993
|
block: e,
|
|
3018
2994
|
localState: t.localState,
|
|
3019
2995
|
rootState: t.rootState,
|
|
@@ -3029,7 +3005,7 @@ const Ti = ({
|
|
|
3029
3005
|
console.warn(`
|
|
3030
3006
|
Could not find a registered component named "${r}".
|
|
3031
3007
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
3032
|
-
},
|
|
3008
|
+
}, Ti = ({
|
|
3033
3009
|
block: e,
|
|
3034
3010
|
context: t
|
|
3035
3011
|
}) => {
|
|
@@ -3063,39 +3039,39 @@ const Ti = ({
|
|
|
3063
3039
|
},
|
|
3064
3040
|
block: r
|
|
3065
3041
|
}));
|
|
3066
|
-
},
|
|
3042
|
+
}, xi = () => import("./block-styles-nidJqmvF.js").then((e) => e.default).catch((e) => {
|
|
3067
3043
|
throw console.error(
|
|
3068
3044
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3069
3045
|
e
|
|
3070
3046
|
), e;
|
|
3071
|
-
}),
|
|
3047
|
+
}), Ri = () => import("./block-wrapper-7WuameoR.js").then((e) => e.default).catch((e) => {
|
|
3072
3048
|
throw console.error(
|
|
3073
3049
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3074
3050
|
e
|
|
3075
3051
|
), e;
|
|
3076
|
-
}),
|
|
3052
|
+
}), Ai = () => import("./component-ref-fkgFjHYh.js").then((e) => e.default).catch((e) => {
|
|
3077
3053
|
throw console.error(
|
|
3078
3054
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3079
3055
|
e
|
|
3080
3056
|
), e;
|
|
3081
|
-
}),
|
|
3057
|
+
}), $i = () => import("./repeated-block-otH5LpjC.js").then((e) => e.default).catch((e) => {
|
|
3082
3058
|
throw console.error(
|
|
3083
3059
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3084
3060
|
e
|
|
3085
3061
|
), e;
|
|
3086
|
-
}),
|
|
3062
|
+
}), Pi = N({
|
|
3087
3063
|
name: "block",
|
|
3088
3064
|
components: {
|
|
3089
|
-
BlockStyles: It(
|
|
3090
|
-
ComponentRef: It(
|
|
3091
|
-
RepeatedBlock: It(
|
|
3092
|
-
BlockWrapper: It(
|
|
3065
|
+
BlockStyles: It(xi),
|
|
3066
|
+
ComponentRef: It(Ai),
|
|
3067
|
+
RepeatedBlock: It($i),
|
|
3068
|
+
BlockWrapper: It(Ri)
|
|
3093
3069
|
},
|
|
3094
3070
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
3095
3071
|
mounted() {
|
|
3096
3072
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
3097
3073
|
t && e && bi(
|
|
3098
|
-
t.
|
|
3074
|
+
t.map((n) => ({
|
|
3099
3075
|
...n,
|
|
3100
3076
|
elementId: e
|
|
3101
3077
|
}))
|
|
@@ -3103,21 +3079,21 @@ const Ti = ({
|
|
|
3103
3079
|
},
|
|
3104
3080
|
computed: {
|
|
3105
3081
|
blockComponent() {
|
|
3106
|
-
return
|
|
3082
|
+
return Ii({
|
|
3107
3083
|
block: this.block,
|
|
3108
3084
|
context: this.context,
|
|
3109
3085
|
registeredComponents: this.registeredComponents
|
|
3110
3086
|
});
|
|
3111
3087
|
},
|
|
3112
3088
|
repeatItem() {
|
|
3113
|
-
return
|
|
3089
|
+
return Ti({
|
|
3114
3090
|
block: this.block,
|
|
3115
3091
|
context: this.context
|
|
3116
3092
|
});
|
|
3117
3093
|
},
|
|
3118
3094
|
processedBlock() {
|
|
3119
3095
|
var e;
|
|
3120
|
-
return (e = this.block.repeat) != null && e.collection ? this.block :
|
|
3096
|
+
return (e = this.block.repeat) != null && e.collection ? this.block : Fr({
|
|
3121
3097
|
block: this.block,
|
|
3122
3098
|
localState: this.context.localState,
|
|
3123
3099
|
rootState: this.context.rootState,
|
|
@@ -3166,7 +3142,7 @@ const Ti = ({
|
|
|
3166
3142
|
}
|
|
3167
3143
|
}
|
|
3168
3144
|
});
|
|
3169
|
-
function
|
|
3145
|
+
function Oi(e, t, n, r, o, i) {
|
|
3170
3146
|
var f;
|
|
3171
3147
|
const a = U("block-styles"), u = U("component-ref"), d = U("block", !0), m = U("block-wrapper"), y = U("repeated-block");
|
|
3172
3148
|
return e.canShowBlock ? (v(), $(re, { key: 0 }, [
|
|
@@ -3186,7 +3162,7 @@ function ji(e, t, n, r, o, i) {
|
|
|
3186
3162
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
3187
3163
|
isInteractive: e.componentRefProps.isInteractive
|
|
3188
3164
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (v(), $(re, { key: 0 }, [
|
|
3189
|
-
e.repeatItem ? (v(!0), $(re, { key: 1 },
|
|
3165
|
+
e.repeatItem ? (v(!0), $(re, { key: 1 }, Be(e.repeatItem, (C, O) => (v(), B(y, {
|
|
3190
3166
|
key: O,
|
|
3191
3167
|
repeatContext: C.context,
|
|
3192
3168
|
block: C.block,
|
|
@@ -3211,7 +3187,7 @@ function ji(e, t, n, r, o, i) {
|
|
|
3211
3187
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
3212
3188
|
isInteractive: e.componentRefProps.isInteractive
|
|
3213
3189
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
3214
|
-
(v(!0), $(re, null,
|
|
3190
|
+
(v(!0), $(re, null, Be(e.childrenWithoutParentComponent, (C, O) => (v(), B(d, {
|
|
3215
3191
|
key: C.id,
|
|
3216
3192
|
block: C,
|
|
3217
3193
|
registeredComponents: e.registeredComponents,
|
|
@@ -3224,10 +3200,10 @@ function ji(e, t, n, r, o, i) {
|
|
|
3224
3200
|
], 64))
|
|
3225
3201
|
], 64)) : D("", !0);
|
|
3226
3202
|
}
|
|
3227
|
-
const
|
|
3203
|
+
const An = /* @__PURE__ */ V(Pi, [["render", Oi]]), Ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3228
3204
|
__proto__: null,
|
|
3229
|
-
default:
|
|
3230
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3205
|
+
default: An
|
|
3206
|
+
}, Symbol.toStringTag, { value: "Module" })), ji = N({
|
|
3231
3207
|
name: "builder-blocks-wrapper",
|
|
3232
3208
|
props: [
|
|
3233
3209
|
"blocks",
|
|
@@ -3272,8 +3248,8 @@ const On = /* @__PURE__ */ V(Oi, [["render", ji]]), Fl = /* @__PURE__ */ Object.
|
|
|
3272
3248
|
}
|
|
3273
3249
|
}
|
|
3274
3250
|
});
|
|
3275
|
-
function
|
|
3276
|
-
return v(), B(
|
|
3251
|
+
function Ni(e, t, n, r, o, i) {
|
|
3252
|
+
return v(), B(at(e.BlocksWrapper), J({
|
|
3277
3253
|
class: e.className + " component-1o2kztlxdt6",
|
|
3278
3254
|
"builder-path": e.path,
|
|
3279
3255
|
"builder-parent-id": e.parent,
|
|
@@ -3288,9 +3264,9 @@ function Bi(e, t, n, r, o, i) {
|
|
|
3288
3264
|
_: 3
|
|
3289
3265
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
3290
3266
|
}
|
|
3291
|
-
const
|
|
3267
|
+
const Bi = /* @__PURE__ */ V(ji, [["render", Ni], ["__scopeId", "data-v-9724ab41"]]), Vi = N({
|
|
3292
3268
|
name: "builder-blocks",
|
|
3293
|
-
components: { BlocksWrapper:
|
|
3269
|
+
components: { BlocksWrapper: Bi, Block: An },
|
|
3294
3270
|
props: [
|
|
3295
3271
|
"blocks",
|
|
3296
3272
|
"parent",
|
|
@@ -3302,10 +3278,10 @@ const Vi = /* @__PURE__ */ V(Ni, [["render", Bi], ["__scopeId", "data-v-9724ab41
|
|
|
3302
3278
|
],
|
|
3303
3279
|
inject: {
|
|
3304
3280
|
builderContext: un.key,
|
|
3305
|
-
componentsContext:
|
|
3281
|
+
componentsContext: Rr.key
|
|
3306
3282
|
}
|
|
3307
3283
|
});
|
|
3308
|
-
function
|
|
3284
|
+
function Mi(e, t, n, r, o, i) {
|
|
3309
3285
|
var d, m;
|
|
3310
3286
|
const a = U("block"), u = U("blocks-wrapper");
|
|
3311
3287
|
return v(), B(u, {
|
|
@@ -3317,7 +3293,7 @@ function Ui(e, t, n, r, o, i) {
|
|
|
3317
3293
|
BlocksWrapperProps: ((m = e.context) == null ? void 0 : m.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
|
|
3318
3294
|
}, {
|
|
3319
3295
|
default: we(() => [
|
|
3320
|
-
e.blocks ? (v(!0), $(re, { key: 0 },
|
|
3296
|
+
e.blocks ? (v(!0), $(re, { key: 0 }, Be(e.blocks, (y, f) => (v(), B(a, {
|
|
3321
3297
|
key: y.id,
|
|
3322
3298
|
block: y,
|
|
3323
3299
|
linkComponent: e.linkComponent,
|
|
@@ -3328,9 +3304,9 @@ function Ui(e, t, n, r, o, i) {
|
|
|
3328
3304
|
_: 1
|
|
3329
3305
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
3330
3306
|
}
|
|
3331
|
-
const jt = /* @__PURE__ */ V(
|
|
3307
|
+
const jt = /* @__PURE__ */ V(Vi, [["render", Mi]]), $n = N({
|
|
3332
3308
|
render() {
|
|
3333
|
-
return
|
|
3309
|
+
return Tr("style", {
|
|
3334
3310
|
innerHTML: this.styles,
|
|
3335
3311
|
"data-id": this.id
|
|
3336
3312
|
});
|
|
@@ -3353,7 +3329,7 @@ const jt = /* @__PURE__ */ V(Mi, [["render", Ui]]), jn = N({
|
|
|
3353
3329
|
default: 991,
|
|
3354
3330
|
max: 1200
|
|
3355
3331
|
}
|
|
3356
|
-
},
|
|
3332
|
+
}, Fl = (e, t = zr) => `@media (max-width: ${t[e].max}px)`, Ui = ({
|
|
3357
3333
|
small: e,
|
|
3358
3334
|
medium: t
|
|
3359
3335
|
}) => {
|
|
@@ -3379,10 +3355,10 @@ const jt = /* @__PURE__ */ V(Mi, [["render", Ui]]), jn = N({
|
|
|
3379
3355
|
min: i,
|
|
3380
3356
|
default: i + 1
|
|
3381
3357
|
}, n;
|
|
3382
|
-
},
|
|
3358
|
+
}, Fi = N({
|
|
3383
3359
|
name: "builder-columns",
|
|
3384
3360
|
components: {
|
|
3385
|
-
InlinedStyles:
|
|
3361
|
+
InlinedStyles: $n,
|
|
3386
3362
|
DynamicRenderer: mn,
|
|
3387
3363
|
Blocks: jt
|
|
3388
3364
|
},
|
|
@@ -3496,13 +3472,13 @@ const jt = /* @__PURE__ */ V(Mi, [["render", Ui]]), jn = N({
|
|
|
3496
3472
|
},
|
|
3497
3473
|
getWidthForBreakpointSize(e) {
|
|
3498
3474
|
var n, r;
|
|
3499
|
-
return
|
|
3475
|
+
return Ui(
|
|
3500
3476
|
((r = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : r.breakpoints) || {}
|
|
3501
3477
|
)[e].max;
|
|
3502
3478
|
}
|
|
3503
3479
|
}
|
|
3504
3480
|
});
|
|
3505
|
-
function
|
|
3481
|
+
function Wi(e, t, n, r, o, i) {
|
|
3506
3482
|
const a = U("inlined-styles"), u = U("blocks"), d = U("dynamic-renderer");
|
|
3507
3483
|
return v(), $("div", J({
|
|
3508
3484
|
class: `builder-columns ${e.builderBlock.id}-breakpoints div-2fnk003dqad`,
|
|
@@ -3513,7 +3489,7 @@ function Di(e, t, n, r, o, i) {
|
|
|
3513
3489
|
id: "builderio-columns",
|
|
3514
3490
|
styles: e.columnsStyles
|
|
3515
3491
|
}, null, 8, ["styles"])) : D("", !0),
|
|
3516
|
-
(v(!0), $(re, null,
|
|
3492
|
+
(v(!0), $(re, null, Be(e.columns, (m, y) => (v(), B(d, {
|
|
3517
3493
|
key: y,
|
|
3518
3494
|
TagName: m.link ? e.builderLinkComponent || "a" : "div",
|
|
3519
3495
|
actionAttributes: {},
|
|
@@ -3542,32 +3518,32 @@ function Di(e, t, n, r, o, i) {
|
|
|
3542
3518
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
3543
3519
|
], 16);
|
|
3544
3520
|
}
|
|
3545
|
-
const
|
|
3521
|
+
const Di = /* @__PURE__ */ V(Fi, [["render", Wi], ["__scopeId", "data-v-6caab097"]]), Li = N({
|
|
3546
3522
|
name: "builder-fragment-component",
|
|
3547
3523
|
props: []
|
|
3548
3524
|
});
|
|
3549
|
-
function
|
|
3525
|
+
function Hi(e, t, n, r, o, i) {
|
|
3550
3526
|
return v(), $("span", null, [
|
|
3551
3527
|
pe(e.$slots, "default")
|
|
3552
3528
|
]);
|
|
3553
3529
|
}
|
|
3554
|
-
const
|
|
3555
|
-
function
|
|
3530
|
+
const Ki = /* @__PURE__ */ V(Li, [["render", Hi]]);
|
|
3531
|
+
function yr(e) {
|
|
3556
3532
|
return e.replace(/http(s)?:/, "");
|
|
3557
3533
|
}
|
|
3558
|
-
function
|
|
3534
|
+
function _i(e = "", t, n) {
|
|
3559
3535
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3560
3536
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3561
3537
|
}
|
|
3562
|
-
function
|
|
3538
|
+
function zi(e, t) {
|
|
3563
3539
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3564
3540
|
return e;
|
|
3565
3541
|
if (t === "master")
|
|
3566
|
-
return
|
|
3542
|
+
return yr(e);
|
|
3567
3543
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3568
3544
|
if (n) {
|
|
3569
3545
|
const r = e.split(n[0]), o = n[3], i = t.match("x") ? t : `${t}x`;
|
|
3570
|
-
return
|
|
3546
|
+
return yr(`${r[0]}_${i}${o}`);
|
|
3571
3547
|
}
|
|
3572
3548
|
return null;
|
|
3573
3549
|
}
|
|
@@ -3578,11 +3554,11 @@ function sn(e) {
|
|
|
3578
3554
|
if (e.match(/builder\.io/)) {
|
|
3579
3555
|
let n = e;
|
|
3580
3556
|
const r = Number(e.split("?width=")[1]);
|
|
3581
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3557
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${_i(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3582
3558
|
}
|
|
3583
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3559
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [zi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3584
3560
|
}
|
|
3585
|
-
const
|
|
3561
|
+
const Gi = N({
|
|
3586
3562
|
name: "builder-image",
|
|
3587
3563
|
props: [
|
|
3588
3564
|
"image",
|
|
@@ -3628,11 +3604,11 @@ const qi = N({
|
|
|
3628
3604
|
return this.aspectRatio ? e : void 0;
|
|
3629
3605
|
}
|
|
3630
3606
|
}
|
|
3631
|
-
}),
|
|
3607
|
+
}), qi = ["srcset"], Ji = ["alt", "role", "src", "srcset", "sizes"], Xi = {
|
|
3632
3608
|
key: 2,
|
|
3633
3609
|
class: "div-1be3j8m9ewb-2"
|
|
3634
3610
|
};
|
|
3635
|
-
function
|
|
3611
|
+
function Yi(e, t, n, r, o, i) {
|
|
3636
3612
|
var a, u, d, m;
|
|
3637
3613
|
return v(), $(re, null, [
|
|
3638
3614
|
an("picture", null, [
|
|
@@ -3640,7 +3616,7 @@ function Zi(e, t, n, r, o, i) {
|
|
|
3640
3616
|
key: 0,
|
|
3641
3617
|
type: "image/webp",
|
|
3642
3618
|
srcset: e.webpSrcSet
|
|
3643
|
-
}, null, 8,
|
|
3619
|
+
}, null, 8, qi)) : D("", !0),
|
|
3644
3620
|
an("img", {
|
|
3645
3621
|
loading: "lazy",
|
|
3646
3622
|
alt: e.altText,
|
|
@@ -3650,13 +3626,13 @@ function Zi(e, t, n, r, o, i) {
|
|
|
3650
3626
|
objectFit: e.backgroundSize || "cover",
|
|
3651
3627
|
...e.aspectRatioCss
|
|
3652
3628
|
}),
|
|
3653
|
-
class:
|
|
3629
|
+
class: xr(
|
|
3654
3630
|
"builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
|
|
3655
3631
|
),
|
|
3656
3632
|
src: e.image,
|
|
3657
3633
|
srcset: e.srcSetToUse,
|
|
3658
3634
|
sizes: e.sizes
|
|
3659
|
-
}, null, 14,
|
|
3635
|
+
}, null, 14, Ji)
|
|
3660
3636
|
]),
|
|
3661
3637
|
e.aspectRatio && !((u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent) ? (v(), $("div", {
|
|
3662
3638
|
key: 0,
|
|
@@ -3666,19 +3642,19 @@ function Zi(e, t, n, r, o, i) {
|
|
|
3666
3642
|
})
|
|
3667
3643
|
}, null, 4)) : D("", !0),
|
|
3668
3644
|
(m = (d = e.builderBlock) == null ? void 0 : d.children) != null && m.length && e.fitContent ? pe(e.$slots, "default", { key: 1 }, void 0, !0) : D("", !0),
|
|
3669
|
-
!e.fitContent && e.$slots.default ? (v(), $("div",
|
|
3645
|
+
!e.fitContent && e.$slots.default ? (v(), $("div", Xi, [
|
|
3670
3646
|
pe(e.$slots, "default", {}, void 0, !0)
|
|
3671
3647
|
])) : D("", !0)
|
|
3672
3648
|
], 64);
|
|
3673
3649
|
}
|
|
3674
|
-
const
|
|
3650
|
+
const Zi = /* @__PURE__ */ V(Gi, [["render", Yi], ["__scopeId", "data-v-dde76a35"]]), Qi = N({
|
|
3675
3651
|
name: "builder-section-component",
|
|
3676
3652
|
props: ["attributes", "maxWidth"],
|
|
3677
3653
|
data() {
|
|
3678
3654
|
return { filterAttrs: Pe };
|
|
3679
3655
|
}
|
|
3680
3656
|
});
|
|
3681
|
-
function
|
|
3657
|
+
function es(e, t, n, r, o, i) {
|
|
3682
3658
|
return v(), $("section", J({
|
|
3683
3659
|
style: {
|
|
3684
3660
|
width: "100%",
|
|
@@ -3696,7 +3672,7 @@ function ts(e, t, n, r, o, i) {
|
|
|
3696
3672
|
pe(e.$slots, "default")
|
|
3697
3673
|
], 16);
|
|
3698
3674
|
}
|
|
3699
|
-
const
|
|
3675
|
+
const ts = /* @__PURE__ */ V(Qi, [["render", es]]), ns = (e) => {
|
|
3700
3676
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3701
3677
|
return e;
|
|
3702
3678
|
const t = e.split(".");
|
|
@@ -3709,16 +3685,16 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3709
3685
|
try {
|
|
3710
3686
|
return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
3711
3687
|
} catch (r) {
|
|
3712
|
-
|
|
3688
|
+
te.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3713
3689
|
return;
|
|
3714
3690
|
}
|
|
3715
|
-
}, qr = async (e) => Gr(e),
|
|
3691
|
+
}, qr = async (e) => Gr(e), rs = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter($e).join("; "), os = [["secure", ""], ["SameSite", "None"]], is = ({
|
|
3716
3692
|
name: e,
|
|
3717
3693
|
value: t,
|
|
3718
3694
|
expires: n
|
|
3719
3695
|
}) => {
|
|
3720
|
-
const o = (X() ? location.protocol === "https:" : !0) ?
|
|
3721
|
-
return
|
|
3696
|
+
const o = (X() ? location.protocol === "https:" : !0) ? os : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...i, ["path", "/"], ["domain", ns(window.location.hostname)], ...o];
|
|
3697
|
+
return rs(a);
|
|
3722
3698
|
}, Jr = async ({
|
|
3723
3699
|
name: e,
|
|
3724
3700
|
value: t,
|
|
@@ -3728,33 +3704,33 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3728
3704
|
try {
|
|
3729
3705
|
if (!r)
|
|
3730
3706
|
return;
|
|
3731
|
-
const o =
|
|
3707
|
+
const o = is({
|
|
3732
3708
|
name: e,
|
|
3733
3709
|
value: t,
|
|
3734
3710
|
expires: n
|
|
3735
3711
|
});
|
|
3736
3712
|
document.cookie = o;
|
|
3737
3713
|
} catch (o) {
|
|
3738
|
-
|
|
3714
|
+
te.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3739
3715
|
}
|
|
3740
|
-
},
|
|
3716
|
+
}, ss = "builder.tests", Pn = (e) => `${ss}.${e}`, as = ({
|
|
3741
3717
|
contentId: e
|
|
3742
3718
|
}) => qr({
|
|
3743
|
-
name:
|
|
3719
|
+
name: Pn(e),
|
|
3744
3720
|
canTrack: !0
|
|
3745
|
-
}),
|
|
3721
|
+
}), ls = ({
|
|
3746
3722
|
contentId: e
|
|
3747
3723
|
}) => Gr({
|
|
3748
|
-
name:
|
|
3724
|
+
name: Pn(e),
|
|
3749
3725
|
canTrack: !0
|
|
3750
|
-
}),
|
|
3726
|
+
}), us = ({
|
|
3751
3727
|
contentId: e,
|
|
3752
3728
|
value: t
|
|
3753
3729
|
}) => Jr({
|
|
3754
|
-
name:
|
|
3730
|
+
name: Pn(e),
|
|
3755
3731
|
value: t,
|
|
3756
3732
|
canTrack: !0
|
|
3757
|
-
}), Xr = (e) => $e(e.id) && $e(e.variations) && Object.keys(e.variations).length > 0,
|
|
3733
|
+
}), Xr = (e) => $e(e.id) && $e(e.variations) && Object.keys(e.variations).length > 0, cs = ({
|
|
3758
3734
|
id: e,
|
|
3759
3735
|
variations: t
|
|
3760
3736
|
}) => {
|
|
@@ -3768,12 +3744,12 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3768
3744
|
}
|
|
3769
3745
|
return e;
|
|
3770
3746
|
}, Yr = (e) => {
|
|
3771
|
-
const t =
|
|
3772
|
-
return
|
|
3747
|
+
const t = cs(e);
|
|
3748
|
+
return us({
|
|
3773
3749
|
contentId: e.id,
|
|
3774
3750
|
value: t
|
|
3775
3751
|
}).catch((n) => {
|
|
3776
|
-
|
|
3752
|
+
te.error("could not store A/B test variation: ", n);
|
|
3777
3753
|
}), t;
|
|
3778
3754
|
}, Zr = ({
|
|
3779
3755
|
item: e,
|
|
@@ -3789,7 +3765,7 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3789
3765
|
testVariationId: n.id,
|
|
3790
3766
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3791
3767
|
};
|
|
3792
|
-
},
|
|
3768
|
+
}, ps = ({
|
|
3793
3769
|
item: e,
|
|
3794
3770
|
canTrack: t
|
|
3795
3771
|
}) => {
|
|
@@ -3799,7 +3775,7 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3799
3775
|
return;
|
|
3800
3776
|
if (!Xr(e))
|
|
3801
3777
|
return e;
|
|
3802
|
-
const n =
|
|
3778
|
+
const n = ls({
|
|
3803
3779
|
contentId: e.id
|
|
3804
3780
|
}) || Yr({
|
|
3805
3781
|
variations: e.variations,
|
|
@@ -3812,13 +3788,13 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3812
3788
|
...e,
|
|
3813
3789
|
...r
|
|
3814
3790
|
};
|
|
3815
|
-
},
|
|
3791
|
+
}, ds = async ({
|
|
3816
3792
|
item: e,
|
|
3817
3793
|
canTrack: t
|
|
3818
3794
|
}) => {
|
|
3819
3795
|
if (!t || !Xr(e))
|
|
3820
3796
|
return e;
|
|
3821
|
-
const r = await
|
|
3797
|
+
const r = await as({
|
|
3822
3798
|
contentId: e.id
|
|
3823
3799
|
}) || Yr({
|
|
3824
3800
|
variations: e.variations,
|
|
@@ -3831,7 +3807,7 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3831
3807
|
...e,
|
|
3832
3808
|
...o
|
|
3833
3809
|
};
|
|
3834
|
-
}, ht = (e) => $e(e) ? e : !0,
|
|
3810
|
+
}, ht = (e) => $e(e) ? e : !0, hs = {
|
|
3835
3811
|
name: "Core:Button",
|
|
3836
3812
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3837
3813
|
defaultStyles: {
|
|
@@ -3864,7 +3840,7 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3864
3840
|
}],
|
|
3865
3841
|
static: !0,
|
|
3866
3842
|
noWrap: !0
|
|
3867
|
-
},
|
|
3843
|
+
}, fs = {
|
|
3868
3844
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3869
3845
|
name: "Columns",
|
|
3870
3846
|
isRSC: !0,
|
|
@@ -4065,13 +4041,13 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
4065
4041
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
4066
4042
|
advanced: !0
|
|
4067
4043
|
}]
|
|
4068
|
-
},
|
|
4044
|
+
}, ms = {
|
|
4069
4045
|
name: "Fragment",
|
|
4070
4046
|
static: !0,
|
|
4071
4047
|
hidden: !0,
|
|
4072
4048
|
canHaveChildren: !0,
|
|
4073
4049
|
noWrap: !0
|
|
4074
|
-
},
|
|
4050
|
+
}, gs = {
|
|
4075
4051
|
name: "Image",
|
|
4076
4052
|
static: !0,
|
|
4077
4053
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -4171,7 +4147,7 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
4171
4147
|
advanced: !0,
|
|
4172
4148
|
defaultValue: 0.7041
|
|
4173
4149
|
}]
|
|
4174
|
-
},
|
|
4150
|
+
}, ys = {
|
|
4175
4151
|
name: "Core:Section",
|
|
4176
4152
|
static: !0,
|
|
4177
4153
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -4210,7 +4186,7 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
4210
4186
|
}
|
|
4211
4187
|
}
|
|
4212
4188
|
}]
|
|
4213
|
-
},
|
|
4189
|
+
}, vs = {
|
|
4214
4190
|
name: "Slot",
|
|
4215
4191
|
isRSC: !0,
|
|
4216
4192
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -4223,12 +4199,12 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
4223
4199
|
required: !0,
|
|
4224
4200
|
defaultValue: "children"
|
|
4225
4201
|
}]
|
|
4226
|
-
},
|
|
4202
|
+
}, bs = N({
|
|
4227
4203
|
name: "builder-slot",
|
|
4228
4204
|
components: { Blocks: jt },
|
|
4229
4205
|
props: ["builderContext", "name"]
|
|
4230
4206
|
});
|
|
4231
|
-
function
|
|
4207
|
+
function ks(e, t, n, r, o, i) {
|
|
4232
4208
|
var u, d, m;
|
|
4233
4209
|
const a = U("blocks");
|
|
4234
4210
|
return v(), $("div", J(
|
|
@@ -4247,7 +4223,7 @@ function Ss(e, t, n, r, o, i) {
|
|
|
4247
4223
|
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
4248
4224
|
], 16);
|
|
4249
4225
|
}
|
|
4250
|
-
const
|
|
4226
|
+
const Ss = /* @__PURE__ */ V(bs, [["render", ks]]), Cs = {
|
|
4251
4227
|
name: "Symbol",
|
|
4252
4228
|
noWrap: !0,
|
|
4253
4229
|
static: !0,
|
|
@@ -4280,7 +4256,7 @@ const Cs = /* @__PURE__ */ V(ks, [["render", Ss]]), ws = {
|
|
|
4280
4256
|
hideFromUI: !0,
|
|
4281
4257
|
type: "boolean"
|
|
4282
4258
|
}]
|
|
4283
|
-
},
|
|
4259
|
+
}, ws = {
|
|
4284
4260
|
name: "Text",
|
|
4285
4261
|
static: !0,
|
|
4286
4262
|
isRSC: !0,
|
|
@@ -4298,11 +4274,11 @@ const Cs = /* @__PURE__ */ V(ks, [["render", Ss]]), ws = {
|
|
|
4298
4274
|
height: "auto",
|
|
4299
4275
|
textAlign: "center"
|
|
4300
4276
|
}
|
|
4301
|
-
},
|
|
4277
|
+
}, Es = N({
|
|
4302
4278
|
name: "builder-text",
|
|
4303
4279
|
props: ["text"]
|
|
4304
|
-
}),
|
|
4305
|
-
function
|
|
4280
|
+
}), Is = ["innerHTML"];
|
|
4281
|
+
function Ts(e, t, n, r, o, i) {
|
|
4306
4282
|
var a;
|
|
4307
4283
|
return v(), $("div", {
|
|
4308
4284
|
class: "builder-text",
|
|
@@ -4310,9 +4286,9 @@ function xs(e, t, n, r, o, i) {
|
|
|
4310
4286
|
style: {
|
|
4311
4287
|
outline: "none"
|
|
4312
4288
|
}
|
|
4313
|
-
}, null, 8,
|
|
4289
|
+
}, null, 8, Is);
|
|
4314
4290
|
}
|
|
4315
|
-
const
|
|
4291
|
+
const xs = /* @__PURE__ */ V(Es, [["render", Ts]]), Rs = {
|
|
4316
4292
|
name: "Custom Code",
|
|
4317
4293
|
static: !0,
|
|
4318
4294
|
requiredPermissions: ["editCode"],
|
|
@@ -4334,7 +4310,7 @@ const Rs = /* @__PURE__ */ V(Is, [["render", xs]]), As = {
|
|
|
4334
4310
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
4335
4311
|
advanced: !0
|
|
4336
4312
|
}]
|
|
4337
|
-
},
|
|
4313
|
+
}, As = N({
|
|
4338
4314
|
name: "builder-custom-code",
|
|
4339
4315
|
props: ["replaceNodes", "code"],
|
|
4340
4316
|
data() {
|
|
@@ -4368,15 +4344,15 @@ const Rs = /* @__PURE__ */ V(Is, [["render", xs]]), As = {
|
|
|
4368
4344
|
}
|
|
4369
4345
|
}
|
|
4370
4346
|
}
|
|
4371
|
-
}),
|
|
4372
|
-
function
|
|
4347
|
+
}), $s = ["innerHTML"];
|
|
4348
|
+
function Ps(e, t, n, r, o, i) {
|
|
4373
4349
|
return v(), $("div", {
|
|
4374
4350
|
ref: "elementRef",
|
|
4375
|
-
class:
|
|
4351
|
+
class: xr("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
4376
4352
|
innerHTML: e.code
|
|
4377
|
-
}, null, 10,
|
|
4353
|
+
}, null, 10, $s);
|
|
4378
4354
|
}
|
|
4379
|
-
const
|
|
4355
|
+
const Os = /* @__PURE__ */ V(As, [["render", Ps]]), js = {
|
|
4380
4356
|
name: "Embed",
|
|
4381
4357
|
static: !0,
|
|
4382
4358
|
inputs: [{
|
|
@@ -4401,7 +4377,7 @@ const js = /* @__PURE__ */ V($s, [["render", Os]]), Ns = {
|
|
|
4401
4377
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4402
4378
|
hideFromUI: !0
|
|
4403
4379
|
}]
|
|
4404
|
-
},
|
|
4380
|
+
}, Ns = ["text/javascript", "application/javascript", "application/ecmascript"], Bs = (e) => Ns.includes(e.type), Vs = N({
|
|
4405
4381
|
name: "builder-embed",
|
|
4406
4382
|
props: ["content"],
|
|
4407
4383
|
data() {
|
|
@@ -4434,7 +4410,7 @@ const js = /* @__PURE__ */ V($s, [["render", Os]]), Ns = {
|
|
|
4434
4410
|
this.scriptsInserted.push(n.src);
|
|
4435
4411
|
const r = document.createElement("script");
|
|
4436
4412
|
r.async = !0, r.src = n.src, document.head.appendChild(r);
|
|
4437
|
-
} else if (
|
|
4413
|
+
} else if (Bs(n) && !this.scriptsRun.includes(n.innerText))
|
|
4438
4414
|
try {
|
|
4439
4415
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
4440
4416
|
} catch (r) {
|
|
@@ -4443,15 +4419,15 @@ const js = /* @__PURE__ */ V($s, [["render", Os]]), Ns = {
|
|
|
4443
4419
|
}
|
|
4444
4420
|
}
|
|
4445
4421
|
}
|
|
4446
|
-
}),
|
|
4447
|
-
function
|
|
4422
|
+
}), Ms = ["innerHTML"];
|
|
4423
|
+
function Us(e, t, n, r, o, i) {
|
|
4448
4424
|
return v(), $("div", {
|
|
4449
4425
|
class: "builder-embed",
|
|
4450
4426
|
ref: "elem",
|
|
4451
4427
|
innerHTML: e.content
|
|
4452
|
-
}, null, 8,
|
|
4428
|
+
}, null, 8, Ms);
|
|
4453
4429
|
}
|
|
4454
|
-
const
|
|
4430
|
+
const Fs = /* @__PURE__ */ V(Vs, [["render", Us]]), Ws = {
|
|
4455
4431
|
name: "Form:Form",
|
|
4456
4432
|
// editableTags: ['builder-form-error']
|
|
4457
4433
|
defaults: {
|
|
@@ -4682,15 +4658,15 @@ const Ws = /* @__PURE__ */ V(Ms, [["render", Fs]]), Ds = {
|
|
|
4682
4658
|
}
|
|
4683
4659
|
}
|
|
4684
4660
|
}]
|
|
4685
|
-
},
|
|
4661
|
+
}, Ds = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Ls = () => {
|
|
4686
4662
|
const e = process.env.NODE_ENV || "production";
|
|
4687
|
-
return
|
|
4688
|
-
},
|
|
4663
|
+
return Ds.includes(e) ? e : "production";
|
|
4664
|
+
}, Hs = (e, t, n) => {
|
|
4689
4665
|
const r = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, i) => o != null ? o[i] : o, e);
|
|
4690
4666
|
return r === void 0 || r === e ? n : r;
|
|
4691
|
-
},
|
|
4667
|
+
}, Ks = N({
|
|
4692
4668
|
name: "builder-form-component",
|
|
4693
|
-
components: { Block:
|
|
4669
|
+
components: { Block: An, Blocks: jt },
|
|
4694
4670
|
props: [
|
|
4695
4671
|
"builderContext",
|
|
4696
4672
|
"previewState",
|
|
@@ -4793,7 +4769,7 @@ const Ws = /* @__PURE__ */ V(Ms, [["render", Fs]]), Ds = {
|
|
|
4793
4769
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(m), m.defaultPrevented))
|
|
4794
4770
|
return;
|
|
4795
4771
|
this.formState = "sending";
|
|
4796
|
-
const y = `${
|
|
4772
|
+
const y = `${Ls() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4797
4773
|
this.sendSubmissionsToEmail || ""
|
|
4798
4774
|
)}&name=${encodeURIComponent(this.name || "")}`;
|
|
4799
4775
|
fetch(
|
|
@@ -4808,7 +4784,7 @@ const Ws = /* @__PURE__ */ V(Ms, [["render", Fs]]), Ds = {
|
|
|
4808
4784
|
let C;
|
|
4809
4785
|
const O = f.headers.get("content-type");
|
|
4810
4786
|
if (O && O.indexOf("application/json") !== -1 ? C = await f.json() : C = await f.text(), !f.ok && this.errorMessagePath) {
|
|
4811
|
-
let E =
|
|
4787
|
+
let E = Hs(C, this.errorMessagePath);
|
|
4812
4788
|
E && (typeof E != "string" && (E = JSON.stringify(E)), this.formErrorMessage = E, this.mergeNewRootState({
|
|
4813
4789
|
formErrorMessage: E
|
|
4814
4790
|
}));
|
|
@@ -4849,11 +4825,11 @@ const Ws = /* @__PURE__ */ V(Ms, [["render", Fs]]), Ds = {
|
|
|
4849
4825
|
}
|
|
4850
4826
|
}
|
|
4851
4827
|
}
|
|
4852
|
-
}),
|
|
4828
|
+
}), _s = ["validate", "action", "method", "name"], zs = {
|
|
4853
4829
|
key: 3,
|
|
4854
4830
|
class: "builder-form-error-text pre-5vz8uirn7sc"
|
|
4855
4831
|
};
|
|
4856
|
-
function
|
|
4832
|
+
function Gs(e, t, n, r, o, i) {
|
|
4857
4833
|
var d;
|
|
4858
4834
|
const a = U("block"), u = U("blocks");
|
|
4859
4835
|
return v(), $("form", J({
|
|
@@ -4864,7 +4840,7 @@ function qs(e, t, n, r, o, i) {
|
|
|
4864
4840
|
name: e.name,
|
|
4865
4841
|
onSubmit: t[0] || (t[0] = (m) => e.onSubmit(m))
|
|
4866
4842
|
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4867
|
-
e.builderBlock && e.builderBlock.children ? (v(!0), $(re, { key: 0 },
|
|
4843
|
+
e.builderBlock && e.builderBlock.children ? (v(!0), $(re, { key: 0 }, Be((d = e.builderBlock) == null ? void 0 : d.children, (m, y) => (v(), B(a, {
|
|
4868
4844
|
key: `form-block-${e.idx}`,
|
|
4869
4845
|
block: m,
|
|
4870
4846
|
context: e.builderContext,
|
|
@@ -4883,16 +4859,16 @@ function qs(e, t, n, r, o, i) {
|
|
|
4883
4859
|
blocks: e.sendingMessage,
|
|
4884
4860
|
context: e.builderContext
|
|
4885
4861
|
}, null, 8, ["blocks", "context"])) : D("", !0),
|
|
4886
|
-
e.submissionState() === "error" && e.responseData ? (v(), $("pre",
|
|
4862
|
+
e.submissionState() === "error" && e.responseData ? (v(), $("pre", zs, $t(JSON.stringify(e.responseData, null, 2)), 1)) : D("", !0),
|
|
4887
4863
|
e.submissionState() === "success" ? (v(), B(u, {
|
|
4888
4864
|
key: 4,
|
|
4889
4865
|
path: "successMessage",
|
|
4890
4866
|
blocks: e.successMessage,
|
|
4891
4867
|
context: e.builderContext
|
|
4892
4868
|
}, null, 8, ["blocks", "context"])) : D("", !0)
|
|
4893
|
-
], 16,
|
|
4869
|
+
], 16, _s);
|
|
4894
4870
|
}
|
|
4895
|
-
const
|
|
4871
|
+
const qs = /* @__PURE__ */ V(Ks, [["render", Gs], ["__scopeId", "data-v-83a4b1d9"]]), Js = {
|
|
4896
4872
|
name: "Form:Input",
|
|
4897
4873
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4898
4874
|
inputs: [
|
|
@@ -4943,7 +4919,7 @@ const Js = /* @__PURE__ */ V(_s, [["render", qs], ["__scopeId", "data-v-83a4b1d9
|
|
|
4943
4919
|
borderStyle: "solid",
|
|
4944
4920
|
borderColor: "#ccc"
|
|
4945
4921
|
}
|
|
4946
|
-
},
|
|
4922
|
+
}, Xs = N({
|
|
4947
4923
|
name: "builder-form-input-component",
|
|
4948
4924
|
props: [
|
|
4949
4925
|
"attributes",
|
|
@@ -4957,8 +4933,8 @@ const Js = /* @__PURE__ */ V(_s, [["render", qs], ["__scopeId", "data-v-83a4b1d9
|
|
|
4957
4933
|
data() {
|
|
4958
4934
|
return { isEditing: ie, filterAttrs: Pe };
|
|
4959
4935
|
}
|
|
4960
|
-
}),
|
|
4961
|
-
function
|
|
4936
|
+
}), Ys = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4937
|
+
function Zs(e, t, n, r, o, i) {
|
|
4962
4938
|
return v(), $("input", J({
|
|
4963
4939
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4964
4940
|
placeholder: e.placeholder,
|
|
@@ -4967,9 +4943,9 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4967
4943
|
value: e.value,
|
|
4968
4944
|
defaultValue: e.defaultValue,
|
|
4969
4945
|
required: e.required
|
|
4970
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4946
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ys);
|
|
4971
4947
|
}
|
|
4972
|
-
const
|
|
4948
|
+
const Qs = /* @__PURE__ */ V(Xs, [["render", Zs]]), ea = {
|
|
4973
4949
|
name: "Form:Select",
|
|
4974
4950
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4975
4951
|
defaultStyles: {
|
|
@@ -5011,27 +4987,27 @@ const ea = /* @__PURE__ */ V(Ys, [["render", Qs]]), ta = {
|
|
|
5011
4987
|
}],
|
|
5012
4988
|
static: !0,
|
|
5013
4989
|
noWrap: !0
|
|
5014
|
-
},
|
|
4990
|
+
}, ta = N({
|
|
5015
4991
|
name: "builder-select-component",
|
|
5016
4992
|
props: ["attributes", "value", "defaultValue", "name", "options"],
|
|
5017
4993
|
data() {
|
|
5018
4994
|
return { isEditing: ie, filterAttrs: Pe };
|
|
5019
4995
|
}
|
|
5020
|
-
}),
|
|
5021
|
-
function
|
|
4996
|
+
}), na = ["value", "defaultValue", "name"], ra = ["value"];
|
|
4997
|
+
function oa(e, t, n, r, o, i) {
|
|
5022
4998
|
return v(), $("select", J({
|
|
5023
4999
|
value: e.value,
|
|
5024
5000
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
5025
5001
|
defaultValue: e.defaultValue,
|
|
5026
5002
|
name: e.name
|
|
5027
5003
|
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5028
|
-
(v(!0), $(re, null,
|
|
5004
|
+
(v(!0), $(re, null, Be(e.options, (a, u) => (v(), $("option", {
|
|
5029
5005
|
key: `${a.name}-${u}`,
|
|
5030
5006
|
value: a.value
|
|
5031
|
-
}, $t(a.name || a.value), 9,
|
|
5032
|
-
], 16,
|
|
5007
|
+
}, $t(a.name || a.value), 9, ra))), 128))
|
|
5008
|
+
], 16, na);
|
|
5033
5009
|
}
|
|
5034
|
-
const
|
|
5010
|
+
const ia = /* @__PURE__ */ V(ta, [["render", oa]]), sa = {
|
|
5035
5011
|
name: "Form:SubmitButton",
|
|
5036
5012
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
5037
5013
|
defaultStyles: {
|
|
@@ -5056,17 +5032,17 @@ const sa = /* @__PURE__ */ V(na, [["render", ia]]), aa = {
|
|
|
5056
5032
|
// that only shows if advanced setting is flipped
|
|
5057
5033
|
// TODO: defaultChildren
|
|
5058
5034
|
// canHaveChildren: true,
|
|
5059
|
-
},
|
|
5035
|
+
}, aa = N({
|
|
5060
5036
|
name: "builder-submit-button",
|
|
5061
5037
|
props: ["attributes", "text"],
|
|
5062
5038
|
data() {
|
|
5063
5039
|
return { filterAttrs: Pe };
|
|
5064
5040
|
}
|
|
5065
5041
|
});
|
|
5066
|
-
function
|
|
5042
|
+
function la(e, t, n, r, o, i) {
|
|
5067
5043
|
return v(), $("button", J({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), $t(e.text), 17);
|
|
5068
5044
|
}
|
|
5069
|
-
const
|
|
5045
|
+
const ua = /* @__PURE__ */ V(aa, [["render", la]]), ca = {
|
|
5070
5046
|
// friendlyName?
|
|
5071
5047
|
name: "Raw:Img",
|
|
5072
5048
|
hideFromInsertMenu: !0,
|
|
@@ -5080,7 +5056,7 @@ const ca = /* @__PURE__ */ V(la, [["render", ua]]), pa = {
|
|
|
5080
5056
|
}],
|
|
5081
5057
|
noWrap: !0,
|
|
5082
5058
|
static: !0
|
|
5083
|
-
},
|
|
5059
|
+
}, pa = N({
|
|
5084
5060
|
name: "builder-img-component",
|
|
5085
5061
|
props: [
|
|
5086
5062
|
"backgroundSize",
|
|
@@ -5093,8 +5069,8 @@ const ca = /* @__PURE__ */ V(la, [["render", ua]]), pa = {
|
|
|
5093
5069
|
data() {
|
|
5094
5070
|
return { isEditing: ie, filterAttrs: Pe };
|
|
5095
5071
|
}
|
|
5096
|
-
}),
|
|
5097
|
-
function
|
|
5072
|
+
}), da = ["alt", "src"];
|
|
5073
|
+
function ha(e, t, n, r, o, i) {
|
|
5098
5074
|
return v(), $("img", J({
|
|
5099
5075
|
style: {
|
|
5100
5076
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -5103,9 +5079,9 @@ function fa(e, t, n, r, o, i) {
|
|
|
5103
5079
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
5104
5080
|
alt: e.altText,
|
|
5105
5081
|
src: e.imgSrc || e.image
|
|
5106
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
5082
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, da);
|
|
5107
5083
|
}
|
|
5108
|
-
const
|
|
5084
|
+
const fa = /* @__PURE__ */ V(pa, [["render", ha]]), ma = {
|
|
5109
5085
|
name: "Video",
|
|
5110
5086
|
canHaveChildren: !0,
|
|
5111
5087
|
defaultStyles: {
|
|
@@ -5186,7 +5162,7 @@ const ma = /* @__PURE__ */ V(da, [["render", fa]]), ga = {
|
|
|
5186
5162
|
defaultValue: !0,
|
|
5187
5163
|
advanced: !0
|
|
5188
5164
|
}]
|
|
5189
|
-
},
|
|
5165
|
+
}, ga = N({
|
|
5190
5166
|
name: "builder-video",
|
|
5191
5167
|
props: [
|
|
5192
5168
|
"autoPlay",
|
|
@@ -5231,16 +5207,16 @@ const ma = /* @__PURE__ */ V(da, [["render", fa]]), ga = {
|
|
|
5231
5207
|
};
|
|
5232
5208
|
}
|
|
5233
5209
|
}
|
|
5234
|
-
}),
|
|
5210
|
+
}), ya = { style: {
|
|
5235
5211
|
position: "relative"
|
|
5236
|
-
} },
|
|
5212
|
+
} }, va = ["preload", "src", "poster"], ba = ["src"], ka = {
|
|
5237
5213
|
key: 1,
|
|
5238
5214
|
style: {
|
|
5239
5215
|
display: "flex",
|
|
5240
5216
|
flexDirection: "column",
|
|
5241
5217
|
alignItems: "stretch"
|
|
5242
5218
|
}
|
|
5243
|
-
},
|
|
5219
|
+
}, Sa = {
|
|
5244
5220
|
key: 2,
|
|
5245
5221
|
style: {
|
|
5246
5222
|
pointerEvents: "none",
|
|
@@ -5254,9 +5230,9 @@ const ma = /* @__PURE__ */ V(da, [["render", fa]]), ga = {
|
|
|
5254
5230
|
height: "100%"
|
|
5255
5231
|
}
|
|
5256
5232
|
};
|
|
5257
|
-
function
|
|
5233
|
+
function Ca(e, t, n, r, o, i) {
|
|
5258
5234
|
var a, u, d, m, y, f, C;
|
|
5259
|
-
return v(), $("div",
|
|
5235
|
+
return v(), $("div", ya, [
|
|
5260
5236
|
an("video", J({
|
|
5261
5237
|
class: "builder-video",
|
|
5262
5238
|
preload: e.preload || "metadata",
|
|
@@ -5281,8 +5257,8 @@ function wa(e, t, n, r, o, i) {
|
|
|
5281
5257
|
key: 0,
|
|
5282
5258
|
type: "video/mp4",
|
|
5283
5259
|
src: e.video
|
|
5284
|
-
}, null, 8,
|
|
5285
|
-
], 16,
|
|
5260
|
+
}, null, 8, ba))
|
|
5261
|
+
], 16, va),
|
|
5286
5262
|
e.aspectRatio && !(e.fitContent && ((d = (u = e.builderBlock) == null ? void 0 : u.children) != null && d.length)) ? (v(), $("div", {
|
|
5287
5263
|
key: 0,
|
|
5288
5264
|
style: ln({
|
|
@@ -5292,78 +5268,78 @@ function wa(e, t, n, r, o, i) {
|
|
|
5292
5268
|
fontSize: "0px"
|
|
5293
5269
|
})
|
|
5294
5270
|
}, null, 4)) : D("", !0),
|
|
5295
|
-
(y = (m = e.builderBlock) == null ? void 0 : m.children) != null && y.length && e.fitContent ? (v(), $("div",
|
|
5271
|
+
(y = (m = e.builderBlock) == null ? void 0 : m.children) != null && y.length && e.fitContent ? (v(), $("div", ka, [
|
|
5296
5272
|
pe(e.$slots, "default")
|
|
5297
5273
|
])) : D("", !0),
|
|
5298
|
-
(C = (f = e.builderBlock) == null ? void 0 : f.children) != null && C.length && !e.fitContent ? (v(), $("div",
|
|
5274
|
+
(C = (f = e.builderBlock) == null ? void 0 : f.children) != null && C.length && !e.fitContent ? (v(), $("div", Sa, [
|
|
5299
5275
|
pe(e.$slots, "default")
|
|
5300
5276
|
])) : D("", !0)
|
|
5301
5277
|
]);
|
|
5302
5278
|
}
|
|
5303
|
-
const
|
|
5304
|
-
component:
|
|
5305
|
-
...
|
|
5279
|
+
const wa = /* @__PURE__ */ V(ga, [["render", Ca]]), Ea = () => [{
|
|
5280
|
+
component: Os,
|
|
5281
|
+
...Rs
|
|
5306
5282
|
}, {
|
|
5307
|
-
component:
|
|
5308
|
-
...
|
|
5283
|
+
component: Fs,
|
|
5284
|
+
...js
|
|
5309
5285
|
}, {
|
|
5310
|
-
component:
|
|
5311
|
-
...
|
|
5286
|
+
component: qs,
|
|
5287
|
+
...Ws
|
|
5312
5288
|
}, {
|
|
5313
|
-
component:
|
|
5314
|
-
...
|
|
5289
|
+
component: Qs,
|
|
5290
|
+
...Js
|
|
5315
5291
|
}, {
|
|
5316
|
-
component:
|
|
5317
|
-
...
|
|
5292
|
+
component: ua,
|
|
5293
|
+
...sa
|
|
5318
5294
|
}, {
|
|
5319
|
-
component:
|
|
5320
|
-
...
|
|
5295
|
+
component: ia,
|
|
5296
|
+
...ea
|
|
5321
5297
|
}, {
|
|
5322
|
-
component:
|
|
5323
|
-
...
|
|
5298
|
+
component: fa,
|
|
5299
|
+
...ca
|
|
5324
5300
|
}, {
|
|
5325
|
-
component:
|
|
5326
|
-
...
|
|
5327
|
-
}],
|
|
5301
|
+
component: wa,
|
|
5302
|
+
...ma
|
|
5303
|
+
}], vr = () => [{
|
|
5328
5304
|
component: Fo,
|
|
5305
|
+
...hs
|
|
5306
|
+
}, {
|
|
5307
|
+
component: Di,
|
|
5329
5308
|
...fs
|
|
5330
5309
|
}, {
|
|
5331
|
-
component:
|
|
5310
|
+
component: Ki,
|
|
5332
5311
|
...ms
|
|
5333
5312
|
}, {
|
|
5334
|
-
component:
|
|
5313
|
+
component: Zi,
|
|
5335
5314
|
...gs
|
|
5336
5315
|
}, {
|
|
5337
|
-
component:
|
|
5316
|
+
component: ts,
|
|
5338
5317
|
...ys
|
|
5339
5318
|
}, {
|
|
5340
|
-
component:
|
|
5319
|
+
component: Ss,
|
|
5341
5320
|
...vs
|
|
5342
5321
|
}, {
|
|
5343
|
-
component:
|
|
5344
|
-
...
|
|
5322
|
+
component: Ol,
|
|
5323
|
+
...Cs
|
|
5345
5324
|
}, {
|
|
5346
|
-
component:
|
|
5325
|
+
component: xs,
|
|
5347
5326
|
...ws
|
|
5348
|
-
}, {
|
|
5349
|
-
component: Rs,
|
|
5350
|
-
...Es
|
|
5351
|
-
}, ...Ia()], Ta = (e) => ({
|
|
5327
|
+
}, ...Ea()], Ia = (e) => ({
|
|
5352
5328
|
type: "builder.registerComponent",
|
|
5353
5329
|
data: hn(e)
|
|
5354
|
-
}),
|
|
5330
|
+
}), Ta = (e) => {
|
|
5355
5331
|
const t = e.toString().trim();
|
|
5356
5332
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
5357
|
-
},
|
|
5333
|
+
}, xa = (e) => typeof e == "function" ? Ta(e) : gt(e), hn = ({
|
|
5358
5334
|
inputs: e,
|
|
5359
5335
|
...t
|
|
5360
5336
|
}) => ({
|
|
5361
5337
|
...gt(t),
|
|
5362
5338
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
5363
5339
|
...r,
|
|
5364
|
-
[o]:
|
|
5340
|
+
[o]: xa(i)
|
|
5365
5341
|
}), {}))
|
|
5366
|
-
}),
|
|
5342
|
+
}), Ra = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
5367
5343
|
function getAndSetVariantId() {
|
|
5368
5344
|
function setCookie(name, value, days) {
|
|
5369
5345
|
let expires = '';
|
|
@@ -5419,7 +5395,7 @@ const Ea = /* @__PURE__ */ V(ya, [["render", wa]]), Ia = () => [{
|
|
|
5419
5395
|
}).join('');
|
|
5420
5396
|
styleEl.innerHTML = newStyleStr;
|
|
5421
5397
|
}
|
|
5422
|
-
}`,
|
|
5398
|
+
}`, Aa = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
5423
5399
|
if (!navigator.cookieEnabled) {
|
|
5424
5400
|
return;
|
|
5425
5401
|
}
|
|
@@ -5457,23 +5433,23 @@ const Ea = /* @__PURE__ */ V(ya, [["render", wa]]), Ia = () => [{
|
|
|
5457
5433
|
...t,
|
|
5458
5434
|
testVariationId: t.id,
|
|
5459
5435
|
id: e == null ? void 0 : e.id
|
|
5460
|
-
})),
|
|
5436
|
+
})), $a = ({
|
|
5461
5437
|
canTrack: e,
|
|
5462
5438
|
content: t
|
|
5463
|
-
}) => !(!(xt(t).length > 0) || !e),
|
|
5464
|
-
window.${Qr} = ${
|
|
5465
|
-
window.${eo} = ${
|
|
5466
|
-
`,
|
|
5439
|
+
}) => !(!(xt(t).length > 0) || !e), Pa = (e) => e === "react" || e === "reactNative", to = Pa(de), Oa = () => `
|
|
5440
|
+
window.${Qr} = ${Ra}
|
|
5441
|
+
window.${eo} = ${Aa}
|
|
5442
|
+
`, ja = (e, t) => `
|
|
5467
5443
|
window.${Qr}(
|
|
5468
5444
|
"${t}",${JSON.stringify(e)}, ${to}
|
|
5469
|
-
)`,
|
|
5445
|
+
)`, Na = ({
|
|
5470
5446
|
contentId: e,
|
|
5471
5447
|
variationId: t
|
|
5472
5448
|
}) => `window.${eo}(
|
|
5473
5449
|
"${t}", "${e}", ${to}
|
|
5474
5450
|
)`, no = N({
|
|
5475
5451
|
render() {
|
|
5476
|
-
return
|
|
5452
|
+
return Tr("script", {
|
|
5477
5453
|
innerHTML: this.scriptStr,
|
|
5478
5454
|
"data-id": this.id
|
|
5479
5455
|
});
|
|
@@ -5481,17 +5457,17 @@ const Ea = /* @__PURE__ */ V(ya, [["render", wa]]), Ia = () => [{
|
|
|
5481
5457
|
name: "inlined-script",
|
|
5482
5458
|
props: ["scriptStr", "id"]
|
|
5483
5459
|
});
|
|
5484
|
-
function
|
|
5460
|
+
function Ba() {
|
|
5485
5461
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
5486
5462
|
}
|
|
5487
|
-
function
|
|
5488
|
-
const e =
|
|
5463
|
+
function Va() {
|
|
5464
|
+
const e = Ba().fetch;
|
|
5489
5465
|
if (typeof e > "u")
|
|
5490
5466
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
5491
5467
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
5492
5468
|
return e;
|
|
5493
5469
|
}
|
|
5494
|
-
const ro =
|
|
5470
|
+
const ro = Va();
|
|
5495
5471
|
function Rt(e, t = null, n = ".") {
|
|
5496
5472
|
return Object.keys(e).reduce((r, o) => {
|
|
5497
5473
|
const i = e[o], a = [t, o].filter(Boolean).join(n);
|
|
@@ -5504,22 +5480,22 @@ function Rt(e, t = null, n = ".") {
|
|
|
5504
5480
|
};
|
|
5505
5481
|
}, {});
|
|
5506
5482
|
}
|
|
5507
|
-
const
|
|
5483
|
+
const Ma = "v3", br = "builder.", Ua = "options.", oo = (e) => {
|
|
5508
5484
|
if (!e)
|
|
5509
5485
|
return {};
|
|
5510
|
-
const t =
|
|
5486
|
+
const t = Ar(e), n = {};
|
|
5511
5487
|
return Object.keys(t).forEach((r) => {
|
|
5512
|
-
if (r.startsWith(
|
|
5513
|
-
const o = r.replace(
|
|
5488
|
+
if (r.startsWith(br)) {
|
|
5489
|
+
const o = r.replace(br, "").replace(Ua, "");
|
|
5514
5490
|
n[o] = t[r];
|
|
5515
5491
|
}
|
|
5516
5492
|
}), n;
|
|
5517
|
-
},
|
|
5493
|
+
}, Fa = () => {
|
|
5518
5494
|
if (!X())
|
|
5519
5495
|
return {};
|
|
5520
5496
|
const e = new URLSearchParams(window.location.search);
|
|
5521
5497
|
return oo(e);
|
|
5522
|
-
},
|
|
5498
|
+
}, kr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, On = (e) => {
|
|
5523
5499
|
const {
|
|
5524
5500
|
limit: t = 30,
|
|
5525
5501
|
userAttributes: n,
|
|
@@ -5528,7 +5504,7 @@ const Ua = "v3", Cr = "builder.", Fa = "options.", oo = (e) => {
|
|
|
5528
5504
|
apiKey: i,
|
|
5529
5505
|
enrich: a,
|
|
5530
5506
|
locale: u,
|
|
5531
|
-
apiVersion: d =
|
|
5507
|
+
apiVersion: d = Ma,
|
|
5532
5508
|
fields: m,
|
|
5533
5509
|
omit: y,
|
|
5534
5510
|
offset: f,
|
|
@@ -5542,7 +5518,7 @@ const Ua = "v3", Cr = "builder.", Fa = "options.", oo = (e) => {
|
|
|
5542
5518
|
if (!["v3"].includes(d))
|
|
5543
5519
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${d}'`);
|
|
5544
5520
|
const se = t !== 1, W = new URL(`https://cdn.builder.io/api/${d}/content/${o}`);
|
|
5545
|
-
if (W.searchParams.set("apiKey", i), W.searchParams.set("limit", String(t)), W.searchParams.set("noTraverse", String(se)), W.searchParams.set("includeRefs", String(!0)), u && W.searchParams.set("locale", u), a && W.searchParams.set("enrich", String(a)), W.searchParams.set("omit", y || "meta.componentsUsed"), m && W.searchParams.set("fields", m), Number.isFinite(f) && f > -1 && W.searchParams.set("offset", String(Math.floor(f))), typeof F == "boolean" && W.searchParams.set("includeUnpublished", String(F)), C &&
|
|
5521
|
+
if (W.searchParams.set("apiKey", i), W.searchParams.set("limit", String(t)), W.searchParams.set("noTraverse", String(se)), W.searchParams.set("includeRefs", String(!0)), u && W.searchParams.set("locale", u), a && W.searchParams.set("enrich", String(a)), W.searchParams.set("omit", y || "meta.componentsUsed"), m && W.searchParams.set("fields", m), Number.isFinite(f) && f > -1 && W.searchParams.set("offset", String(Math.floor(f))), typeof F == "boolean" && W.searchParams.set("includeUnpublished", String(F)), C && kr(C) && W.searchParams.set("cacheSeconds", String(C)), O && kr(O) && W.searchParams.set("staleCacheSeconds", String(O)), E) {
|
|
5546
5522
|
const ae = Rt({
|
|
5547
5523
|
sort: E
|
|
5548
5524
|
});
|
|
@@ -5550,11 +5526,11 @@ const Ua = "v3", Cr = "builder.", Fa = "options.", oo = (e) => {
|
|
|
5550
5526
|
W.searchParams.set(Ie, JSON.stringify(ae[Ie]));
|
|
5551
5527
|
}
|
|
5552
5528
|
const A = {
|
|
5553
|
-
...
|
|
5554
|
-
...
|
|
5555
|
-
},
|
|
5556
|
-
for (const ae in
|
|
5557
|
-
W.searchParams.set(ae, String(
|
|
5529
|
+
...Fa(),
|
|
5530
|
+
...Ar(e.options || {})
|
|
5531
|
+
}, Ve = Rt(A);
|
|
5532
|
+
for (const ae in Ve)
|
|
5533
|
+
W.searchParams.set(ae, String(Ve[ae]));
|
|
5558
5534
|
if (n && W.searchParams.set("userAttributes", JSON.stringify(n)), r) {
|
|
5559
5535
|
const ae = Rt({
|
|
5560
5536
|
query: r
|
|
@@ -5563,62 +5539,60 @@ const Ua = "v3", Cr = "builder.", Fa = "options.", oo = (e) => {
|
|
|
5563
5539
|
W.searchParams.set(Ie, JSON.stringify(ae[Ie]));
|
|
5564
5540
|
}
|
|
5565
5541
|
return W;
|
|
5566
|
-
},
|
|
5567
|
-
async function
|
|
5568
|
-
const t = await
|
|
5542
|
+
}, Wa = (e) => "results" in e;
|
|
5543
|
+
async function jn(e) {
|
|
5544
|
+
const t = await Ha({
|
|
5569
5545
|
...e,
|
|
5570
5546
|
limit: 1
|
|
5571
5547
|
});
|
|
5572
5548
|
return t && t[0] || null;
|
|
5573
5549
|
}
|
|
5574
|
-
const
|
|
5575
|
-
const t =
|
|
5550
|
+
const Da = async (e) => {
|
|
5551
|
+
const t = On(e);
|
|
5576
5552
|
return await (await (e.fetch ?? ro)(t.href, e.fetchOptions)).json();
|
|
5577
|
-
},
|
|
5553
|
+
}, La = async (e, t, n = On(e)) => {
|
|
5578
5554
|
const r = ht(e.canTrack);
|
|
5579
5555
|
if (n.search.includes("preview="), !r || !(X() || de === "reactNative"))
|
|
5580
5556
|
return t.results;
|
|
5581
5557
|
try {
|
|
5582
5558
|
const o = [];
|
|
5583
5559
|
for (const i of t.results)
|
|
5584
|
-
o.push(await
|
|
5560
|
+
o.push(await ds({
|
|
5585
5561
|
item: i,
|
|
5586
5562
|
canTrack: r
|
|
5587
5563
|
}));
|
|
5588
5564
|
t.results = o;
|
|
5589
5565
|
} catch (o) {
|
|
5590
|
-
|
|
5566
|
+
te.error("Could not process A/B tests. ", o);
|
|
5591
5567
|
}
|
|
5592
5568
|
return t.results;
|
|
5593
5569
|
};
|
|
5594
|
-
async function
|
|
5570
|
+
async function Ha(e) {
|
|
5595
5571
|
try {
|
|
5596
|
-
const t =
|
|
5597
|
-
return
|
|
5572
|
+
const t = On(e), n = await Da(e);
|
|
5573
|
+
return Wa(n) ? La(e, n) : (te.error("Error fetching data. ", {
|
|
5598
5574
|
url: t,
|
|
5599
5575
|
content: n,
|
|
5600
5576
|
options: e
|
|
5601
5577
|
}), null);
|
|
5602
5578
|
} catch (t) {
|
|
5603
|
-
return
|
|
5579
|
+
return te.error("Error fetching data. ", t), null;
|
|
5604
5580
|
}
|
|
5605
5581
|
}
|
|
5606
|
-
function
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
const t = jr(e || window.location.search);
|
|
5610
|
-
return ie(t) ? !1 : t.indexOf("builder.preview=") !== -1;
|
|
5582
|
+
function Ka(e) {
|
|
5583
|
+
const t = e || (X() ? window.location.search : void 0);
|
|
5584
|
+
return t ? $r(t).indexOf("builder.preview=") !== -1 : !1;
|
|
5611
5585
|
}
|
|
5612
|
-
function
|
|
5586
|
+
function _a() {
|
|
5613
5587
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
5614
5588
|
const t = Math.random() * 16 | 0;
|
|
5615
5589
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
5616
5590
|
});
|
|
5617
5591
|
}
|
|
5618
5592
|
function io() {
|
|
5619
|
-
return
|
|
5593
|
+
return _a().replace(/-/g, "");
|
|
5620
5594
|
}
|
|
5621
|
-
const so = "builderSessionId",
|
|
5595
|
+
const so = "builderSessionId", za = async ({
|
|
5622
5596
|
canTrack: e
|
|
5623
5597
|
}) => {
|
|
5624
5598
|
if (!e)
|
|
@@ -5630,20 +5604,20 @@ const so = "builderSessionId", Ga = async ({
|
|
|
5630
5604
|
if ($e(t))
|
|
5631
5605
|
return t;
|
|
5632
5606
|
{
|
|
5633
|
-
const n =
|
|
5634
|
-
return
|
|
5607
|
+
const n = Ga();
|
|
5608
|
+
return qa({
|
|
5635
5609
|
id: n,
|
|
5636
5610
|
canTrack: e
|
|
5637
5611
|
}), n;
|
|
5638
5612
|
}
|
|
5639
|
-
},
|
|
5613
|
+
}, Ga = () => io(), qa = ({
|
|
5640
5614
|
id: e,
|
|
5641
5615
|
canTrack: t
|
|
5642
5616
|
}) => Jr({
|
|
5643
5617
|
name: so,
|
|
5644
5618
|
value: e,
|
|
5645
5619
|
canTrack: t
|
|
5646
|
-
}), ao = () => X() && typeof localStorage < "u" ? localStorage : void 0,
|
|
5620
|
+
}), ao = () => X() && typeof localStorage < "u" ? localStorage : void 0, Ja = ({
|
|
5647
5621
|
key: e,
|
|
5648
5622
|
canTrack: t
|
|
5649
5623
|
}) => {
|
|
@@ -5654,7 +5628,7 @@ const so = "builderSessionId", Ga = async ({
|
|
|
5654
5628
|
console.debug("[LocalStorage] GET error: ", r);
|
|
5655
5629
|
return;
|
|
5656
5630
|
}
|
|
5657
|
-
},
|
|
5631
|
+
}, Xa = ({
|
|
5658
5632
|
key: e,
|
|
5659
5633
|
canTrack: t,
|
|
5660
5634
|
value: n
|
|
@@ -5665,32 +5639,32 @@ const so = "builderSessionId", Ga = async ({
|
|
|
5665
5639
|
} catch (o) {
|
|
5666
5640
|
console.debug("[LocalStorage] SET error: ", o);
|
|
5667
5641
|
}
|
|
5668
|
-
}, lo = "builderVisitorId",
|
|
5642
|
+
}, lo = "builderVisitorId", Ya = ({
|
|
5669
5643
|
canTrack: e
|
|
5670
5644
|
}) => {
|
|
5671
5645
|
if (!e)
|
|
5672
5646
|
return;
|
|
5673
|
-
const t =
|
|
5647
|
+
const t = Ja({
|
|
5674
5648
|
key: lo,
|
|
5675
5649
|
canTrack: e
|
|
5676
5650
|
});
|
|
5677
5651
|
if ($e(t))
|
|
5678
5652
|
return t;
|
|
5679
5653
|
{
|
|
5680
|
-
const n =
|
|
5681
|
-
return
|
|
5654
|
+
const n = Za();
|
|
5655
|
+
return Qa({
|
|
5682
5656
|
id: n,
|
|
5683
5657
|
canTrack: e
|
|
5684
5658
|
}), n;
|
|
5685
5659
|
}
|
|
5686
|
-
},
|
|
5660
|
+
}, Za = () => io(), Qa = ({
|
|
5687
5661
|
id: e,
|
|
5688
5662
|
canTrack: t
|
|
5689
|
-
}) =>
|
|
5663
|
+
}) => Xa({
|
|
5690
5664
|
key: lo,
|
|
5691
5665
|
value: e,
|
|
5692
5666
|
canTrack: t
|
|
5693
|
-
}),
|
|
5667
|
+
}), el = async ({
|
|
5694
5668
|
canTrack: e
|
|
5695
5669
|
}) => {
|
|
5696
5670
|
if (!e)
|
|
@@ -5698,16 +5672,16 @@ const so = "builderSessionId", Ga = async ({
|
|
|
5698
5672
|
visitorId: void 0,
|
|
5699
5673
|
sessionId: void 0
|
|
5700
5674
|
};
|
|
5701
|
-
const t = await
|
|
5675
|
+
const t = await za({
|
|
5702
5676
|
canTrack: e
|
|
5703
|
-
}), n =
|
|
5677
|
+
}), n = Ya({
|
|
5704
5678
|
canTrack: e
|
|
5705
5679
|
});
|
|
5706
5680
|
return {
|
|
5707
5681
|
sessionId: t,
|
|
5708
5682
|
visitorId: n
|
|
5709
5683
|
};
|
|
5710
|
-
},
|
|
5684
|
+
}, tl = async ({
|
|
5711
5685
|
type: e,
|
|
5712
5686
|
canTrack: t,
|
|
5713
5687
|
apiKey: n,
|
|
@@ -5721,23 +5695,23 @@ const so = "builderSessionId", Ga = async ({
|
|
|
5721
5695
|
url: location.href,
|
|
5722
5696
|
...r
|
|
5723
5697
|
},
|
|
5724
|
-
...await
|
|
5698
|
+
...await el({
|
|
5725
5699
|
canTrack: t
|
|
5726
5700
|
}),
|
|
5727
|
-
userAttributes:
|
|
5701
|
+
userAttributes: Pr(),
|
|
5728
5702
|
ownerId: n
|
|
5729
5703
|
}
|
|
5730
5704
|
});
|
|
5731
5705
|
async function fn(e) {
|
|
5732
5706
|
if (!e.apiKey) {
|
|
5733
|
-
|
|
5707
|
+
te.error("Missing API key for track call. Please provide your API key.");
|
|
5734
5708
|
return;
|
|
5735
5709
|
}
|
|
5736
5710
|
if (e.canTrack && !ie() && (X() || de === "reactNative"))
|
|
5737
5711
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
5738
5712
|
method: "POST",
|
|
5739
5713
|
body: JSON.stringify({
|
|
5740
|
-
events: [await
|
|
5714
|
+
events: [await tl(e)]
|
|
5741
5715
|
}),
|
|
5742
5716
|
headers: {
|
|
5743
5717
|
"content-type": "application/json"
|
|
@@ -5747,14 +5721,14 @@ async function fn(e) {
|
|
|
5747
5721
|
console.error("Failed to track: ", t);
|
|
5748
5722
|
});
|
|
5749
5723
|
}
|
|
5750
|
-
const
|
|
5724
|
+
const Wl = (e) => fn({
|
|
5751
5725
|
...e,
|
|
5752
5726
|
canTrack: !0
|
|
5753
5727
|
});
|
|
5754
|
-
function
|
|
5728
|
+
function Sr(e) {
|
|
5755
5729
|
return Math.round(e * 1e3) / 1e3;
|
|
5756
5730
|
}
|
|
5757
|
-
const
|
|
5731
|
+
const nl = (e, t, n = !0) => {
|
|
5758
5732
|
if (!(e instanceof HTMLElement))
|
|
5759
5733
|
return null;
|
|
5760
5734
|
let r = n ? e : e.parentElement;
|
|
@@ -5765,43 +5739,43 @@ const rl = (e, t, n = !0) => {
|
|
|
5765
5739
|
return r;
|
|
5766
5740
|
} while (r = r.parentElement);
|
|
5767
5741
|
return null;
|
|
5768
|
-
},
|
|
5742
|
+
}, rl = (e) => nl(e, (t) => {
|
|
5769
5743
|
const n = t.getAttribute("builder-id") || t.id;
|
|
5770
5744
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
5771
|
-
}),
|
|
5745
|
+
}), Cr = ({
|
|
5772
5746
|
event: e,
|
|
5773
5747
|
target: t
|
|
5774
5748
|
}) => {
|
|
5775
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i =
|
|
5749
|
+
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i = Sr(r / n.width), a = Sr(o / n.height);
|
|
5776
5750
|
return {
|
|
5777
5751
|
x: i,
|
|
5778
5752
|
y: a
|
|
5779
5753
|
};
|
|
5780
|
-
},
|
|
5781
|
-
const t = e.target, n = t &&
|
|
5754
|
+
}, ol = (e) => {
|
|
5755
|
+
const t = e.target, n = t && rl(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
5782
5756
|
return {
|
|
5783
5757
|
targetBuilderElement: r || void 0,
|
|
5784
5758
|
metadata: {
|
|
5785
|
-
targetOffset: t ?
|
|
5759
|
+
targetOffset: t ? Cr({
|
|
5786
5760
|
event: e,
|
|
5787
5761
|
target: t
|
|
5788
5762
|
}) : void 0,
|
|
5789
|
-
builderTargetOffset: n ?
|
|
5763
|
+
builderTargetOffset: n ? Cr({
|
|
5790
5764
|
event: e,
|
|
5791
5765
|
target: n
|
|
5792
5766
|
}) : void 0,
|
|
5793
5767
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
5794
5768
|
}
|
|
5795
5769
|
};
|
|
5796
|
-
},
|
|
5770
|
+
}, il = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
5797
5771
|
function uo(e, t) {
|
|
5798
5772
|
const n = new URL(t.origin), r = n.hostname;
|
|
5799
|
-
return (e ||
|
|
5773
|
+
return (e || il).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
5800
5774
|
}
|
|
5801
|
-
const
|
|
5802
|
-
function
|
|
5803
|
-
let n =
|
|
5804
|
-
if (n || (n =
|
|
5775
|
+
const sl = "1.0.23", wr = {};
|
|
5776
|
+
function al(e, t) {
|
|
5777
|
+
let n = wr[e];
|
|
5778
|
+
if (n || (n = wr[e] = []), n.push(t), X()) {
|
|
5805
5779
|
const r = {
|
|
5806
5780
|
type: "builder.register",
|
|
5807
5781
|
data: {
|
|
@@ -5816,8 +5790,8 @@ function ll(e, t) {
|
|
|
5816
5790
|
}
|
|
5817
5791
|
}
|
|
5818
5792
|
}
|
|
5819
|
-
const
|
|
5820
|
-
|
|
5793
|
+
const ll = () => {
|
|
5794
|
+
al("insertMenu", {
|
|
5821
5795
|
name: "_default",
|
|
5822
5796
|
default: !0,
|
|
5823
5797
|
items: [{
|
|
@@ -5839,14 +5813,14 @@ const ul = () => {
|
|
|
5839
5813
|
}]
|
|
5840
5814
|
});
|
|
5841
5815
|
};
|
|
5842
|
-
let
|
|
5816
|
+
let Er = !1;
|
|
5843
5817
|
const co = (e = {}) => {
|
|
5844
5818
|
var t, n;
|
|
5845
|
-
|
|
5819
|
+
Er || (Er = !0, X() && ((t = window.parent) == null || t.postMessage({
|
|
5846
5820
|
type: "builder.sdkInfo",
|
|
5847
5821
|
data: {
|
|
5848
5822
|
target: de,
|
|
5849
|
-
version:
|
|
5823
|
+
version: sl,
|
|
5850
5824
|
supportsPatchUpdates: !1,
|
|
5851
5825
|
// Supports builder-model="..." attribute which is needed to
|
|
5852
5826
|
// scope our '+ add block' button styling
|
|
@@ -5927,9 +5901,9 @@ const co = (e = {}) => {
|
|
|
5927
5901
|
break;
|
|
5928
5902
|
}
|
|
5929
5903
|
}
|
|
5930
|
-
},
|
|
5904
|
+
}, Dl = (e, t, n) => {
|
|
5931
5905
|
if (!X)
|
|
5932
|
-
return
|
|
5906
|
+
return te.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
5933
5907
|
};
|
|
5934
5908
|
co();
|
|
5935
5909
|
const r = po({
|
|
@@ -5946,7 +5920,7 @@ const co = (e = {}) => {
|
|
|
5946
5920
|
return window.addEventListener("message", r), () => {
|
|
5947
5921
|
window.removeEventListener("message", r);
|
|
5948
5922
|
};
|
|
5949
|
-
},
|
|
5923
|
+
}, ul = N({
|
|
5950
5924
|
name: "enable-editor",
|
|
5951
5925
|
props: [
|
|
5952
5926
|
"builderContextSignal",
|
|
@@ -5994,12 +5968,12 @@ const co = (e = {}) => {
|
|
|
5994
5968
|
variationId: i !== a ? i : void 0
|
|
5995
5969
|
});
|
|
5996
5970
|
}
|
|
5997
|
-
|
|
5971
|
+
Ka() && !ie() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5998
5972
|
new CustomEvent("initpreviewingbldr")
|
|
5999
5973
|
);
|
|
6000
5974
|
}
|
|
6001
5975
|
})(), (() => {
|
|
6002
|
-
this.apiKey ||
|
|
5976
|
+
this.apiKey || te.error(
|
|
6003
5977
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
6004
5978
|
), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
|
|
6005
5979
|
})();
|
|
@@ -6158,7 +6132,7 @@ const co = (e = {}) => {
|
|
|
6158
6132
|
contentId: o,
|
|
6159
6133
|
apiKey: this.apiKey,
|
|
6160
6134
|
variationId: r !== o ? r : void 0,
|
|
6161
|
-
...
|
|
6135
|
+
...ol(e),
|
|
6162
6136
|
unique: !this.clicked
|
|
6163
6137
|
});
|
|
6164
6138
|
}
|
|
@@ -6211,7 +6185,7 @@ const co = (e = {}) => {
|
|
|
6211
6185
|
);
|
|
6212
6186
|
},
|
|
6213
6187
|
elementRef_onIniteditingbldr(e) {
|
|
6214
|
-
window.addEventListener("message", this.processMessage),
|
|
6188
|
+
window.addEventListener("message", this.processMessage), ll(), co({
|
|
6215
6189
|
...this.locale ? {
|
|
6216
6190
|
locale: this.locale
|
|
6217
6191
|
} : {},
|
|
@@ -6225,7 +6199,7 @@ const co = (e = {}) => {
|
|
|
6225
6199
|
this.builderContextSignal.componentInfos
|
|
6226
6200
|
).forEach((t) => {
|
|
6227
6201
|
var r;
|
|
6228
|
-
const n =
|
|
6202
|
+
const n = Ia(t);
|
|
6229
6203
|
(r = window.parent) == null || r.postMessage(n, "*");
|
|
6230
6204
|
}), window.addEventListener(
|
|
6231
6205
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -6236,7 +6210,7 @@ const co = (e = {}) => {
|
|
|
6236
6210
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), r = t.get(
|
|
6237
6211
|
`builder.preview.${n}`
|
|
6238
6212
|
), o = t.get("apiKey") || t.get("builder.space");
|
|
6239
|
-
n === this.model && o === this.apiKey && (!this.content || r === this.content.id) &&
|
|
6213
|
+
n === this.model && o === this.apiKey && (!this.content || r === this.content.id) && jn({
|
|
6240
6214
|
model: this.model,
|
|
6241
6215
|
apiKey: this.apiKey,
|
|
6242
6216
|
apiVersion: this.builderContextSignal.apiVersion
|
|
@@ -6246,9 +6220,9 @@ const co = (e = {}) => {
|
|
|
6246
6220
|
}
|
|
6247
6221
|
}
|
|
6248
6222
|
});
|
|
6249
|
-
function
|
|
6223
|
+
function cl(e, t, n, r, o, i) {
|
|
6250
6224
|
var a, u, d;
|
|
6251
|
-
return e.builderContextSignal.content ? (v(), B(
|
|
6225
|
+
return e.builderContextSignal.content ? (v(), B(at(e.ContentWrapper), J({
|
|
6252
6226
|
key: 0,
|
|
6253
6227
|
ref: "elementRef",
|
|
6254
6228
|
onClick: (m) => e.onClick(m),
|
|
@@ -6270,7 +6244,7 @@ function pl(e, t, n, r, o, i) {
|
|
|
6270
6244
|
_: 3
|
|
6271
6245
|
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : D("", !0);
|
|
6272
6246
|
}
|
|
6273
|
-
const
|
|
6247
|
+
const pl = /* @__PURE__ */ V(ul, [["render", cl]]), dl = (e) => {
|
|
6274
6248
|
var i;
|
|
6275
6249
|
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);
|
|
6276
6250
|
let o = "";
|
|
@@ -6296,15 +6270,15 @@ font-weight: ${a};
|
|
|
6296
6270
|
`.trim());
|
|
6297
6271
|
}
|
|
6298
6272
|
return o;
|
|
6299
|
-
},
|
|
6273
|
+
}, hl = ({
|
|
6300
6274
|
customFonts: e
|
|
6301
6275
|
}) => {
|
|
6302
6276
|
var t;
|
|
6303
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
6304
|
-
},
|
|
6277
|
+
return ((t = e == null ? void 0 : e.map((n) => dl(n))) == null ? void 0 : t.join(" ")) || "";
|
|
6278
|
+
}, fl = ({
|
|
6305
6279
|
cssCode: e,
|
|
6306
6280
|
contentId: t
|
|
6307
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
6281
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ml = `
|
|
6308
6282
|
.builder-button {
|
|
6309
6283
|
all: unset;
|
|
6310
6284
|
}
|
|
@@ -6321,33 +6295,33 @@ font-weight: ${a};
|
|
|
6321
6295
|
text-align: inherit;
|
|
6322
6296
|
font-family: inherit;
|
|
6323
6297
|
}
|
|
6324
|
-
`,
|
|
6298
|
+
`, gl = (e) => e ? "" : ml, yl = N({
|
|
6325
6299
|
name: "content-styles",
|
|
6326
|
-
components: { InlinedStyles:
|
|
6300
|
+
components: { InlinedStyles: $n },
|
|
6327
6301
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
|
|
6328
6302
|
data() {
|
|
6329
6303
|
return {
|
|
6330
6304
|
injectedStyles: `
|
|
6331
|
-
${
|
|
6305
|
+
${fl({
|
|
6332
6306
|
cssCode: this.cssCode,
|
|
6333
6307
|
contentId: this.contentId
|
|
6334
6308
|
})}
|
|
6335
|
-
${
|
|
6309
|
+
${hl({
|
|
6336
6310
|
customFonts: this.customFonts
|
|
6337
6311
|
})}
|
|
6338
|
-
${
|
|
6312
|
+
${gl(this.isNestedRender)}
|
|
6339
6313
|
`.trim()
|
|
6340
6314
|
};
|
|
6341
6315
|
}
|
|
6342
6316
|
});
|
|
6343
|
-
function
|
|
6317
|
+
function vl(e, t, n, r, o, i) {
|
|
6344
6318
|
const a = U("inlined-styles");
|
|
6345
6319
|
return v(), B(a, {
|
|
6346
6320
|
id: "builderio-content",
|
|
6347
6321
|
styles: e.injectedStyles
|
|
6348
6322
|
}, null, 8, ["styles"]);
|
|
6349
6323
|
}
|
|
6350
|
-
const
|
|
6324
|
+
const bl = /* @__PURE__ */ V(yl, [["render", vl]]), kl = ({
|
|
6351
6325
|
content: e,
|
|
6352
6326
|
data: t,
|
|
6353
6327
|
locale: n
|
|
@@ -6364,7 +6338,7 @@ const kl = /* @__PURE__ */ V(vl, [["render", bl]]), Sl = ({
|
|
|
6364
6338
|
locale: n
|
|
6365
6339
|
} : {}
|
|
6366
6340
|
};
|
|
6367
|
-
},
|
|
6341
|
+
}, Sl = ({
|
|
6368
6342
|
content: e,
|
|
6369
6343
|
data: t
|
|
6370
6344
|
}) => e ? {
|
|
@@ -6374,12 +6348,12 @@ const kl = /* @__PURE__ */ V(vl, [["render", bl]]), Sl = ({
|
|
|
6374
6348
|
...t
|
|
6375
6349
|
},
|
|
6376
6350
|
meta: e == null ? void 0 : e.meta
|
|
6377
|
-
} : void 0,
|
|
6351
|
+
} : void 0, Cl = Oo, wl = N({
|
|
6378
6352
|
name: "content-component",
|
|
6379
6353
|
components: {
|
|
6380
|
-
EnableEditor:
|
|
6354
|
+
EnableEditor: pl,
|
|
6381
6355
|
InlinedScript: no,
|
|
6382
|
-
ContentStyles:
|
|
6356
|
+
ContentStyles: bl,
|
|
6383
6357
|
Blocks: jt
|
|
6384
6358
|
},
|
|
6385
6359
|
props: [
|
|
@@ -6406,32 +6380,32 @@ const kl = /* @__PURE__ */ V(vl, [["render", bl]]), Sl = ({
|
|
|
6406
6380
|
data() {
|
|
6407
6381
|
var e, t;
|
|
6408
6382
|
return {
|
|
6409
|
-
scriptStr:
|
|
6383
|
+
scriptStr: Na({
|
|
6410
6384
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
6411
6385
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
6412
6386
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
6413
6387
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
6414
6388
|
}),
|
|
6415
6389
|
registeredComponents: [
|
|
6416
|
-
...
|
|
6390
|
+
...vr(),
|
|
6417
6391
|
...this.customComponents || []
|
|
6418
6392
|
].reduce(
|
|
6419
6393
|
(n, { component: r, ...o }) => ({
|
|
6420
6394
|
...n,
|
|
6421
6395
|
[o.name]: {
|
|
6422
|
-
component:
|
|
6396
|
+
component: Cl(r),
|
|
6423
6397
|
...hn(o)
|
|
6424
6398
|
}
|
|
6425
6399
|
}),
|
|
6426
6400
|
{}
|
|
6427
6401
|
),
|
|
6428
6402
|
builderContextSignal: {
|
|
6429
|
-
content:
|
|
6403
|
+
content: Sl({
|
|
6430
6404
|
content: this.content,
|
|
6431
6405
|
data: this.data
|
|
6432
6406
|
}),
|
|
6433
6407
|
localState: void 0,
|
|
6434
|
-
rootState:
|
|
6408
|
+
rootState: kl({
|
|
6435
6409
|
content: this.content,
|
|
6436
6410
|
data: this.data,
|
|
6437
6411
|
locale: this.locale
|
|
@@ -6441,7 +6415,7 @@ const kl = /* @__PURE__ */ V(vl, [["render", bl]]), Sl = ({
|
|
|
6441
6415
|
apiKey: this.apiKey,
|
|
6442
6416
|
apiVersion: this.apiVersion,
|
|
6443
6417
|
componentInfos: [
|
|
6444
|
-
...
|
|
6418
|
+
...vr(),
|
|
6445
6419
|
...this.customComponents || []
|
|
6446
6420
|
].reduce(
|
|
6447
6421
|
(n, { component: r, ...o }) => ({
|
|
@@ -6460,7 +6434,7 @@ const kl = /* @__PURE__ */ V(vl, [["render", bl]]), Sl = ({
|
|
|
6460
6434
|
provide() {
|
|
6461
6435
|
const e = this;
|
|
6462
6436
|
return {
|
|
6463
|
-
[
|
|
6437
|
+
[Rr.key]: {
|
|
6464
6438
|
registeredComponents: e.registeredComponents
|
|
6465
6439
|
}
|
|
6466
6440
|
};
|
|
@@ -6471,7 +6445,7 @@ const kl = /* @__PURE__ */ V(vl, [["render", bl]]), Sl = ({
|
|
|
6471
6445
|
}
|
|
6472
6446
|
}
|
|
6473
6447
|
});
|
|
6474
|
-
function
|
|
6448
|
+
function El(e, t, n, r, o, i) {
|
|
6475
6449
|
const a = U("inlined-script"), u = U("content-styles"), d = U("blocks"), m = U("enable-editor");
|
|
6476
6450
|
return v(), B(m, J({
|
|
6477
6451
|
content: e.content,
|
|
@@ -6515,12 +6489,12 @@ function Il(e, t, n, r, o, i) {
|
|
|
6515
6489
|
_: 1
|
|
6516
6490
|
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
|
|
6517
6491
|
}
|
|
6518
|
-
const
|
|
6492
|
+
const Il = /* @__PURE__ */ V(wl, [["render", El]]), Tl = N({
|
|
6519
6493
|
name: "content-variants",
|
|
6520
6494
|
components: {
|
|
6521
6495
|
InlinedScript: no,
|
|
6522
|
-
InlinedStyles:
|
|
6523
|
-
ContentComponent:
|
|
6496
|
+
InlinedStyles: $n,
|
|
6497
|
+
ContentComponent: Il
|
|
6524
6498
|
},
|
|
6525
6499
|
props: [
|
|
6526
6500
|
"canTrack",
|
|
@@ -6543,12 +6517,12 @@ const Tl = /* @__PURE__ */ V(El, [["render", Il]]), xl = N({
|
|
|
6543
6517
|
],
|
|
6544
6518
|
data() {
|
|
6545
6519
|
return {
|
|
6546
|
-
shouldRenderVariants:
|
|
6520
|
+
shouldRenderVariants: $a({
|
|
6547
6521
|
canTrack: ht(this.canTrack),
|
|
6548
6522
|
content: this.content
|
|
6549
6523
|
}),
|
|
6550
6524
|
TARGET: de,
|
|
6551
|
-
getInitVariantsFnsScriptString:
|
|
6525
|
+
getInitVariantsFnsScriptString: Oa,
|
|
6552
6526
|
getVariants: xt
|
|
6553
6527
|
};
|
|
6554
6528
|
},
|
|
@@ -6557,7 +6531,7 @@ const Tl = /* @__PURE__ */ V(El, [["render", Il]]), xl = N({
|
|
|
6557
6531
|
computed: {
|
|
6558
6532
|
updateCookieAndStylesScriptStr() {
|
|
6559
6533
|
var e;
|
|
6560
|
-
return
|
|
6534
|
+
return ja(
|
|
6561
6535
|
xt(this.content).map((t) => ({
|
|
6562
6536
|
id: t.testVariationId,
|
|
6563
6537
|
testRatio: t.testRatio
|
|
@@ -6573,14 +6547,14 @@ const Tl = /* @__PURE__ */ V(El, [["render", Il]]), xl = N({
|
|
|
6573
6547
|
return this.shouldRenderVariants ? {
|
|
6574
6548
|
...this.content,
|
|
6575
6549
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
6576
|
-
} :
|
|
6550
|
+
} : ps({
|
|
6577
6551
|
item: this.content,
|
|
6578
6552
|
canTrack: ht(this.canTrack)
|
|
6579
6553
|
});
|
|
6580
6554
|
}
|
|
6581
6555
|
}
|
|
6582
6556
|
});
|
|
6583
|
-
function
|
|
6557
|
+
function xl(e, t, n, r, o, i) {
|
|
6584
6558
|
const a = U("inlined-script"), u = U("inlined-styles"), d = U("content-component");
|
|
6585
6559
|
return v(), $(re, null, [
|
|
6586
6560
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (v(), B(a, {
|
|
@@ -6597,7 +6571,7 @@ function Rl(e, t, n, r, o, i) {
|
|
|
6597
6571
|
id: "builderio-variants-visibility",
|
|
6598
6572
|
scriptStr: e.updateCookieAndStylesScriptStr
|
|
6599
6573
|
}, null, 8, ["scriptStr"]),
|
|
6600
|
-
(v(!0), $(re, null,
|
|
6574
|
+
(v(!0), $(re, null, Be(e.getVariants(e.content), (m, y) => (v(), B(d, {
|
|
6601
6575
|
key: m.testVariationId,
|
|
6602
6576
|
isNestedRender: e.isNestedRender,
|
|
6603
6577
|
content: m,
|
|
@@ -6645,13 +6619,13 @@ function Rl(e, t, n, r, o, i) {
|
|
|
6645
6619
|
}), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
6646
6620
|
], 64);
|
|
6647
6621
|
}
|
|
6648
|
-
const
|
|
6622
|
+
const Rl = /* @__PURE__ */ V(Tl, [["render", xl]]), Al = async ({
|
|
6649
6623
|
builderContextValue: e,
|
|
6650
6624
|
symbol: t
|
|
6651
6625
|
}) => {
|
|
6652
6626
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
6653
6627
|
(e != null && e.apiKey))
|
|
6654
|
-
return
|
|
6628
|
+
return jn({
|
|
6655
6629
|
model: t.model,
|
|
6656
6630
|
apiKey: e.apiKey,
|
|
6657
6631
|
apiVersion: e.apiVersion,
|
|
@@ -6661,11 +6635,11 @@ const Al = /* @__PURE__ */ V(xl, [["render", Rl]]), $l = async ({
|
|
|
6661
6635
|
}
|
|
6662
6636
|
}
|
|
6663
6637
|
}).catch((n) => {
|
|
6664
|
-
|
|
6638
|
+
te.error("Could not fetch symbol content: ", n);
|
|
6665
6639
|
});
|
|
6666
|
-
},
|
|
6640
|
+
}, $l = N({
|
|
6667
6641
|
name: "builder-symbol",
|
|
6668
|
-
components: { ContentVariants:
|
|
6642
|
+
components: { ContentVariants: Rl },
|
|
6669
6643
|
props: [
|
|
6670
6644
|
"symbol",
|
|
6671
6645
|
"attributes",
|
|
@@ -6708,7 +6682,7 @@ const Al = /* @__PURE__ */ V(xl, [["render", Rl]]), $l = async ({
|
|
|
6708
6682
|
},
|
|
6709
6683
|
methods: {
|
|
6710
6684
|
setContent() {
|
|
6711
|
-
this.contentToUse ||
|
|
6685
|
+
this.contentToUse || Al({
|
|
6712
6686
|
symbol: this.symbol,
|
|
6713
6687
|
builderContextValue: this.builderContext
|
|
6714
6688
|
}).then((e) => {
|
|
@@ -6717,7 +6691,7 @@ const Al = /* @__PURE__ */ V(xl, [["render", Rl]]), $l = async ({
|
|
|
6717
6691
|
}
|
|
6718
6692
|
}
|
|
6719
6693
|
});
|
|
6720
|
-
function
|
|
6694
|
+
function Pl(e, t, n, r, o, i) {
|
|
6721
6695
|
var u, d, m, y, f;
|
|
6722
6696
|
const a = U("content-variants");
|
|
6723
6697
|
return v(), $("div", J({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
@@ -6743,18 +6717,18 @@ function Ol(e, t, n, r, o, i) {
|
|
|
6743
6717
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
|
|
6744
6718
|
], 16);
|
|
6745
6719
|
}
|
|
6746
|
-
const
|
|
6747
|
-
function
|
|
6720
|
+
const Ol = /* @__PURE__ */ V($l, [["render", Pl]]), Ir = {};
|
|
6721
|
+
function Ll(e) {
|
|
6748
6722
|
if (X()) {
|
|
6749
|
-
Object.assign(
|
|
6723
|
+
Object.assign(Ir, e);
|
|
6750
6724
|
const t = {
|
|
6751
6725
|
type: "builder.settingsChange",
|
|
6752
|
-
data:
|
|
6726
|
+
data: Ir
|
|
6753
6727
|
};
|
|
6754
6728
|
parent.postMessage(t, "*");
|
|
6755
6729
|
}
|
|
6756
6730
|
}
|
|
6757
|
-
const
|
|
6731
|
+
const Hl = async (e) => {
|
|
6758
6732
|
var r, o, i;
|
|
6759
6733
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
6760
6734
|
...e,
|
|
@@ -6771,46 +6745,47 @@ const Kl = async (e) => {
|
|
|
6771
6745
|
return {
|
|
6772
6746
|
apiKey: n.apiKey,
|
|
6773
6747
|
model: n.model,
|
|
6774
|
-
content: await
|
|
6748
|
+
content: await jn(n)
|
|
6775
6749
|
};
|
|
6776
6750
|
};
|
|
6777
6751
|
export {
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6752
|
+
La as A,
|
|
6753
|
+
An as B,
|
|
6754
|
+
Di as C,
|
|
6755
|
+
Ha as D,
|
|
6756
|
+
jn as E,
|
|
6757
|
+
Ki as F,
|
|
6758
|
+
Bl as G,
|
|
6759
|
+
Ul as H,
|
|
6760
|
+
Zi as I,
|
|
6761
|
+
ts as S,
|
|
6787
6762
|
de as T,
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6763
|
+
wa as V,
|
|
6764
|
+
$n as _,
|
|
6765
|
+
Ui as a,
|
|
6766
|
+
Vl as b,
|
|
6792
6767
|
$e as c,
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6768
|
+
Fl as d,
|
|
6769
|
+
Wr as e,
|
|
6770
|
+
V as f,
|
|
6771
|
+
Fr as g,
|
|
6772
|
+
At as h,
|
|
6773
|
+
Ml as i,
|
|
6774
|
+
gn as j,
|
|
6775
|
+
un as k,
|
|
6776
|
+
Fo as l,
|
|
6777
|
+
Ol as m,
|
|
6778
|
+
xs as n,
|
|
6779
|
+
jt as o,
|
|
6780
|
+
Rl as p,
|
|
6781
|
+
ie as q,
|
|
6782
|
+
Ka as r,
|
|
6783
|
+
Ia as s,
|
|
6784
|
+
al as t,
|
|
6785
|
+
Ll as u,
|
|
6786
|
+
oo as v,
|
|
6787
|
+
Cl as w,
|
|
6788
|
+
Wl as x,
|
|
6789
|
+
Dl as y,
|
|
6790
|
+
Hl as z
|
|
6816
6791
|
};
|