@builder.io/sdk-vue 5.2.2 → 5.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{awaiter-hHorxjIR.cjs → awaiter-4bKOAzti.cjs} +1 -1
- package/lib/browser/{awaiter-PiTJ_7wp.js → awaiter-q_DSjMVD.js} +1 -1
- package/lib/browser/{block-wrapper-v0E7yyzI.cjs → block-wrapper-Q-de2c75.cjs} +1 -1
- package/lib/browser/{block-wrapper-8FiWiPra.js → block-wrapper-YNVEwJsu.js} +3 -3
- package/lib/browser/{component-ref-jU5sC23e.cjs → component-ref-YeF1fWsm.cjs} +1 -1
- package/lib/browser/{component-ref-u11yYjHx.js → component-ref-watkJI0h.js} +4 -4
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +0 -1
- package/lib/browser/components/content-variants/helpers.d.ts +0 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-UD7oT_P6.js → get-block-properties-DvyFZA6k.js} +1 -1
- package/lib/browser/{get-block-properties-AT7KmjRH.cjs → get-block-properties-Q4RE1NYS.cjs} +1 -1
- package/lib/browser/{index-qBdmc4Tf.js → index-DfB3iR8x.js} +357 -385
- package/lib/browser/{index-9zsNLjBY.cjs → index-U5K993_E.cjs} +31 -53
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-yO4ZTgek.js → live-edit-9dPB7jWd.js} +1 -1
- package/lib/browser/{live-edit-9FW3XnJY.cjs → live-edit-naKnBygx.cjs} +1 -1
- package/lib/browser/{repeated-block-7Kr5DU4s.js → repeated-block-B84MBN4t.js} +2 -2
- package/lib/browser/{repeated-block-HJlXpRlA.cjs → repeated-block-BQB7dngl.cjs} +1 -1
- package/lib/browser/{style-wrapper-oGUCilmw.js → style-wrapper-1pU2q-Nj.js} +1 -1
- package/lib/browser/{style-wrapper-NagZ3htF.cjs → style-wrapper-dtKxKeZ0.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-yr8VAu_H.cjs → awaiter-HFBt_OAF.cjs} +1 -1
- package/lib/edge/{awaiter-acJdczkp.js → awaiter-n-gIbP8r.js} +1 -1
- package/lib/edge/{block-wrapper-aEKGXQsG.cjs → block-wrapper-Bu7g5EV_.cjs} +1 -1
- package/lib/{node/block-wrapper-MpV_yto9.js → edge/block-wrapper-fPMgU7lR.js} +3 -3
- package/lib/edge/{component-ref-wzojJNtP.cjs → component-ref-4wKEKXCt.cjs} +1 -1
- package/lib/edge/{component-ref-pA4-SwIs.js → component-ref-JHSTjcJx.js} +4 -4
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +0 -1
- package/lib/edge/components/content-variants/helpers.d.ts +0 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-vOCtFmny.cjs → get-block-properties--14I0FqA.cjs} +1 -1
- package/lib/edge/{get-block-properties-T1Ci7dP5.js → get-block-properties-5Wxv-oHg.js} +1 -1
- package/lib/edge/{index-OZxVFmQK.cjs → index-78yK7PsD.cjs} +35 -57
- package/lib/edge/{index-9d4BROG7.js → index-_fUTINXy.js} +698 -726
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{live-edit-oX2tpNY4.js → live-edit-9xqNMwhC.js} +1 -1
- package/lib/{node/live-edit-g3b-brGl.cjs → edge/live-edit-nbVPESOp.cjs} +1 -1
- package/lib/edge/{repeated-block-WFlqwuyL.js → repeated-block-F75iqpVr.js} +2 -2
- package/lib/edge/{repeated-block-uS6k8BJT.cjs → repeated-block-nCuqUDP7.cjs} +1 -1
- package/lib/edge/{style-wrapper-UNbimac8.cjs → style-wrapper-rVAWy7o_.cjs} +1 -1
- package/lib/edge/{style-wrapper-QjzY0pp1.js → style-wrapper-w933365M.js} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-68BBjUeZ.cjs → awaiter-MgDlcUHI.cjs} +1 -1
- package/lib/node/{awaiter-j4ORMLjV.js → awaiter-aepEb5fm.js} +1 -1
- package/lib/node/{block-wrapper-xbWj7xN4.cjs → block-wrapper-3kiJne4m.cjs} +1 -1
- package/lib/{edge/block-wrapper-mCaWnoxQ.js → node/block-wrapper-sEviqhU3.js} +3 -3
- package/lib/node/{component-ref-gcCyaLPb.cjs → component-ref-6kTApMRL.cjs} +1 -1
- package/lib/node/{component-ref-FMaZUEHA.js → component-ref-TyXWBWEx.js} +5 -5
- package/lib/node/components/content-variants/content-variants.vue.d.ts +0 -1
- package/lib/node/components/content-variants/helpers.d.ts +0 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-xyodoUq1.cjs → get-block-properties-3uCiF9Qm.cjs} +1 -1
- package/lib/node/{get-block-properties-OFyB13c0.js → get-block-properties-NjyNQiag.js} +2 -2
- package/lib/node/{index-INlBMXV-.cjs → index-9WZ86cun.cjs} +29 -51
- package/lib/node/{index-TU01S1LU.js → index-YYQAkk5S.js} +386 -414
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-DElUbmBW.cjs → node/live-edit-267vHpIq.cjs} +1 -1
- package/lib/node/{live-edit-047YZnu-.js → live-edit-U9pCBdly.js} +1 -1
- package/lib/node/{repeated-block-EcOLRgeJ.cjs → repeated-block-BfYZqoE0.cjs} +1 -1
- package/lib/node/{repeated-block-om1ZGsyQ.js → repeated-block-f2s-IUoM.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-dW9p7rxg.js → should-force-browser-runtime-in-node-HsyT-bd2.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-A9wQILFE.cjs → should-force-browser-runtime-in-node-yK_d4v-W.cjs} +1 -1
- package/lib/node/{style-wrapper-2Rqb9g04.js → style-wrapper-MJzB79lB.js} +2 -2
- package/lib/node/{style-wrapper-lvW1HnEu.cjs → style-wrapper-vHL9MNhi.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, openBlock as v, createElementBlock as
|
|
1
|
+
import { defineComponent as B, openBlock as v, createElementBlock as w, Fragment as z, createBlock as U, resolveDynamicComponent as dt, mergeProps as q, toHandlers as ye, withCtx as me, renderSlot as pe, resolveComponent as W, createTextVNode as Xo, toDisplayString as Wt, defineAsyncComponent as st, createVNode as ee, renderList as ve, createCommentVNode as F, h as zr, createElementVNode as Ge, normalizeStyle as Pe, normalizeClass as gt, markRaw as Yo } from "vue";
|
|
2
2
|
const Qo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Zo = (e) => typeof e == "string" && Qo.has(e.toLowerCase());
|
|
3
3
|
function de(e = {}, t, n) {
|
|
4
4
|
const r = {};
|
|
@@ -23,13 +23,13 @@ const ei = B({
|
|
|
23
23
|
return n;
|
|
24
24
|
};
|
|
25
25
|
function ti(e, t, n, r, o, i) {
|
|
26
|
-
return e.isEmptyElement(e.TagName) ? (v(), U(dt(e.TagName),
|
|
27
|
-
typeof e.TagName == "string" ? (v(), U(dt(e.TagName),
|
|
26
|
+
return e.isEmptyElement(e.TagName) ? (v(), U(dt(e.TagName), q({ key: 1 }, e.attributes, ye(e.actionAttributes)), null, 16)) : (v(), w(z, { key: 0 }, [
|
|
27
|
+
typeof e.TagName == "string" ? (v(), U(dt(e.TagName), q({ key: 0 }, e.attributes, ye(e.actionAttributes)), {
|
|
28
28
|
default: me(() => [
|
|
29
29
|
pe(e.$slots, "default")
|
|
30
30
|
]),
|
|
31
31
|
_: 3
|
|
32
|
-
}, 16)) : (v(), U(dt(e.TagName),
|
|
32
|
+
}, 16)) : (v(), U(dt(e.TagName), q({ key: 1 }, e.attributes, ye(e.actionAttributes)), {
|
|
33
33
|
default: me(() => [
|
|
34
34
|
pe(e.$slots, "default")
|
|
35
35
|
]),
|
|
@@ -37,11 +37,11 @@ function ti(e, t, n, r, o, i) {
|
|
|
37
37
|
}, 16))
|
|
38
38
|
], 64));
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const Rn = /* @__PURE__ */ j(ei, [["render", ti]]), Zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41
41
|
__proto__: null,
|
|
42
|
-
default:
|
|
43
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
44
|
-
switch (
|
|
42
|
+
default: Rn
|
|
43
|
+
}, Symbol.toStringTag, { value: "Module" })), G = "vue", Oe = () => {
|
|
44
|
+
switch (G) {
|
|
45
45
|
case "react":
|
|
46
46
|
case "reactNative":
|
|
47
47
|
case "rsc":
|
|
@@ -55,7 +55,7 @@ const En = /* @__PURE__ */ j(ei, [["render", ti]]), ec = /* @__PURE__ */ Object.
|
|
|
55
55
|
}
|
|
56
56
|
}, ni = B({
|
|
57
57
|
name: "builder-button",
|
|
58
|
-
components: { DynamicRenderer:
|
|
58
|
+
components: { DynamicRenderer: Rn },
|
|
59
59
|
props: [
|
|
60
60
|
"attributes",
|
|
61
61
|
"link",
|
|
@@ -113,7 +113,7 @@ const oi = /* @__PURE__ */ j(ni, [["render", ri]]), ii = Symbol(), vn = {
|
|
|
113
113
|
model: ""
|
|
114
114
|
},
|
|
115
115
|
key: ii
|
|
116
|
-
}, si = Symbol(),
|
|
116
|
+
}, si = Symbol(), qr = {
|
|
117
117
|
Components: { registeredComponents: {} },
|
|
118
118
|
key: si
|
|
119
119
|
}, Pt = "[Builder.io]: ", ue = {
|
|
@@ -121,7 +121,7 @@ const oi = /* @__PURE__ */ j(ni, [["render", ri]]), ii = Symbol(), vn = {
|
|
|
121
121
|
error: (...e) => console.error(Pt, ...e),
|
|
122
122
|
warn: (...e) => console.warn(Pt, ...e),
|
|
123
123
|
debug: (...e) => console.debug(Pt, ...e)
|
|
124
|
-
},
|
|
124
|
+
}, Gr = (e, t, n) => {
|
|
125
125
|
const r = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, i) => o != null ? o[i] : o, e);
|
|
126
126
|
return r === void 0 || r === e ? n : r;
|
|
127
127
|
};
|
|
@@ -133,13 +133,13 @@ const ai = (e) => {
|
|
|
133
133
|
return e.forEach((n, r) => {
|
|
134
134
|
t[r] = n;
|
|
135
135
|
}), t;
|
|
136
|
-
},
|
|
136
|
+
}, _r = (e) => e instanceof URLSearchParams ? ai(e) : e, Jr = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
137
137
|
function li() {
|
|
138
138
|
return M() && window.self !== window.top;
|
|
139
139
|
}
|
|
140
140
|
function oe(e) {
|
|
141
141
|
return li() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
142
|
-
|
|
142
|
+
Jr(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
143
143
|
}
|
|
144
144
|
const ui = () => {
|
|
145
145
|
if (M()) {
|
|
@@ -147,7 +147,7 @@ const ui = () => {
|
|
|
147
147
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
148
148
|
} else
|
|
149
149
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
150
|
-
}, ci = () => typeof navigator == "object" && navigator.userAgent || "",
|
|
150
|
+
}, ci = () => typeof navigator == "object" && navigator.userAgent || "", Xr = () => {
|
|
151
151
|
const e = ci(), t = {
|
|
152
152
|
Android() {
|
|
153
153
|
return e.match(/Android/i);
|
|
@@ -165,7 +165,7 @@ const ui = () => {
|
|
|
165
165
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
166
166
|
},
|
|
167
167
|
any() {
|
|
168
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
168
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || G === "reactNative";
|
|
169
169
|
}
|
|
170
170
|
}, n = e.match(/Tablet|iPad/i), r = ui();
|
|
171
171
|
return {
|
|
@@ -173,10 +173,10 @@ const ui = () => {
|
|
|
173
173
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
174
174
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
175
175
|
};
|
|
176
|
-
},
|
|
177
|
-
"X-Builder-SDK":
|
|
176
|
+
}, Yr = "5.2.4", Qr = () => ({
|
|
177
|
+
"X-Builder-SDK": G,
|
|
178
178
|
"X-Builder-SDK-GEN": "2",
|
|
179
|
-
"X-Builder-SDK-Version":
|
|
179
|
+
"X-Builder-SDK-Version": Yr
|
|
180
180
|
}), Ne = (e) => e != null, pi = (e) => {
|
|
181
181
|
if (e === "localhost" || e === "127.0.0.1")
|
|
182
182
|
return e;
|
|
@@ -193,14 +193,14 @@ const ui = () => {
|
|
|
193
193
|
ue.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
},
|
|
196
|
+
}, Zr = async (e) => Lt(e), di = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(Ne).join("; "), fi = [["secure", ""], ["SameSite", "None"]], hi = ({
|
|
197
197
|
name: e,
|
|
198
198
|
value: t,
|
|
199
199
|
expires: n
|
|
200
200
|
}) => {
|
|
201
201
|
const o = (M() ? location.protocol === "https:" : !0) ? fi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", pi(window.location.hostname)], ...o];
|
|
202
202
|
return di(s);
|
|
203
|
-
},
|
|
203
|
+
}, An = async ({
|
|
204
204
|
name: e,
|
|
205
205
|
value: t,
|
|
206
206
|
expires: n,
|
|
@@ -225,16 +225,16 @@ function mi() {
|
|
|
225
225
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function eo() {
|
|
229
229
|
return mi().replace(/-/g, "");
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const to = "builderSessionId", gi = async ({
|
|
232
232
|
canTrack: e
|
|
233
233
|
}) => {
|
|
234
234
|
if (!e)
|
|
235
235
|
return;
|
|
236
|
-
const t = await
|
|
237
|
-
name:
|
|
236
|
+
const t = await Zr({
|
|
237
|
+
name: to,
|
|
238
238
|
canTrack: e
|
|
239
239
|
});
|
|
240
240
|
if (Ne(t))
|
|
@@ -246,20 +246,20 @@ const Qr = "builderSessionId", gi = async ({
|
|
|
246
246
|
canTrack: e
|
|
247
247
|
}), n;
|
|
248
248
|
}
|
|
249
|
-
}, yi = () =>
|
|
249
|
+
}, yi = () => eo(), vi = ({
|
|
250
250
|
id: e,
|
|
251
251
|
canTrack: t
|
|
252
|
-
}) =>
|
|
253
|
-
name:
|
|
252
|
+
}) => An({
|
|
253
|
+
name: to,
|
|
254
254
|
value: e,
|
|
255
255
|
canTrack: t
|
|
256
|
-
}),
|
|
256
|
+
}), no = () => M() && typeof localStorage < "u" ? localStorage : void 0, bi = ({
|
|
257
257
|
key: e,
|
|
258
258
|
canTrack: t
|
|
259
259
|
}) => {
|
|
260
260
|
var n;
|
|
261
261
|
try {
|
|
262
|
-
return t ? (n =
|
|
262
|
+
return t ? (n = no()) == null ? void 0 : n.getItem(e) : void 0;
|
|
263
263
|
} catch (r) {
|
|
264
264
|
console.debug("[LocalStorage] GET error: ", r);
|
|
265
265
|
return;
|
|
@@ -271,17 +271,17 @@ const Qr = "builderSessionId", gi = async ({
|
|
|
271
271
|
}) => {
|
|
272
272
|
var r;
|
|
273
273
|
try {
|
|
274
|
-
t && ((r =
|
|
274
|
+
t && ((r = no()) == null || r.setItem(e, n));
|
|
275
275
|
} catch (o) {
|
|
276
276
|
console.debug("[LocalStorage] SET error: ", o);
|
|
277
277
|
}
|
|
278
|
-
},
|
|
278
|
+
}, ro = "builderVisitorId", ki = ({
|
|
279
279
|
canTrack: e
|
|
280
280
|
}) => {
|
|
281
281
|
if (!e)
|
|
282
282
|
return;
|
|
283
283
|
const t = bi({
|
|
284
|
-
key:
|
|
284
|
+
key: ro,
|
|
285
285
|
canTrack: e
|
|
286
286
|
});
|
|
287
287
|
if (Ne(t))
|
|
@@ -293,15 +293,15 @@ const Qr = "builderSessionId", gi = async ({
|
|
|
293
293
|
canTrack: e
|
|
294
294
|
}), n;
|
|
295
295
|
}
|
|
296
|
-
}, Ci = () =>
|
|
296
|
+
}, Ci = () => eo(), wi = ({
|
|
297
297
|
id: e,
|
|
298
298
|
canTrack: t
|
|
299
299
|
}) => Si({
|
|
300
|
-
key:
|
|
300
|
+
key: ro,
|
|
301
301
|
value: e,
|
|
302
302
|
canTrack: t
|
|
303
303
|
});
|
|
304
|
-
function
|
|
304
|
+
function $n(e) {
|
|
305
305
|
var t;
|
|
306
306
|
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && ue.log(e);
|
|
307
307
|
}
|
|
@@ -339,7 +339,7 @@ const Ti = async ({
|
|
|
339
339
|
...await Ti({
|
|
340
340
|
canTrack: t
|
|
341
341
|
}),
|
|
342
|
-
userAttributes:
|
|
342
|
+
userAttributes: Xr(),
|
|
343
343
|
ownerId: n
|
|
344
344
|
}
|
|
345
345
|
});
|
|
@@ -351,27 +351,27 @@ async function jt({
|
|
|
351
351
|
ue.error("Missing API key for track call. Please provide your API key.");
|
|
352
352
|
return;
|
|
353
353
|
}
|
|
354
|
-
if (!t.canTrack || oe() || !(M() ||
|
|
354
|
+
if (!t.canTrack || oe() || !(M() || G === "reactNative"))
|
|
355
355
|
return;
|
|
356
356
|
const r = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
357
|
-
return
|
|
357
|
+
return $n(r), fetch(r, {
|
|
358
358
|
method: "POST",
|
|
359
359
|
body: JSON.stringify({
|
|
360
360
|
events: [await Ei(t)]
|
|
361
361
|
}),
|
|
362
362
|
headers: {
|
|
363
363
|
"content-type": "application/json",
|
|
364
|
-
...
|
|
364
|
+
...Qr()
|
|
365
365
|
},
|
|
366
366
|
mode: "cors"
|
|
367
367
|
}).catch((o) => {
|
|
368
368
|
console.error("Failed to track: ", o);
|
|
369
369
|
});
|
|
370
370
|
}
|
|
371
|
-
const
|
|
371
|
+
const ec = (e) => jt({
|
|
372
372
|
...e,
|
|
373
373
|
canTrack: !0
|
|
374
|
-
}),
|
|
374
|
+
}), oo = ({
|
|
375
375
|
builder: e,
|
|
376
376
|
context: t,
|
|
377
377
|
event: n,
|
|
@@ -387,7 +387,7 @@ const tc = (e) => jt({
|
|
|
387
387
|
isEditing: oe(),
|
|
388
388
|
isBrowser: M(),
|
|
389
389
|
isServer: !M(),
|
|
390
|
-
getUserAttributes: () =>
|
|
390
|
+
getUserAttributes: () => Xr(),
|
|
391
391
|
trackConversion: (t, n) => {
|
|
392
392
|
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || jt({
|
|
393
393
|
type: "conversion",
|
|
@@ -406,7 +406,7 @@ const tc = (e) => jt({
|
|
|
406
406
|
}), Ri = (e, {
|
|
407
407
|
isExpression: t = !0
|
|
408
408
|
}) => /* 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;
|
|
409
|
-
function
|
|
409
|
+
function xn({
|
|
410
410
|
rootState: e,
|
|
411
411
|
localState: t,
|
|
412
412
|
rootSetState: n
|
|
@@ -416,7 +416,7 @@ function An({
|
|
|
416
416
|
if (t && o in t)
|
|
417
417
|
return t[o];
|
|
418
418
|
const i = r[o];
|
|
419
|
-
return typeof i == "object" && i !== null ?
|
|
419
|
+
return typeof i == "object" && i !== null ? xn({
|
|
420
420
|
rootState: i,
|
|
421
421
|
localState: void 0,
|
|
422
422
|
rootSetState: n ? (s) => {
|
|
@@ -440,11 +440,11 @@ const Ai = ({
|
|
|
440
440
|
rootSetState: i,
|
|
441
441
|
rootState: s
|
|
442
442
|
}) => {
|
|
443
|
-
const u =
|
|
443
|
+
const u = oo({
|
|
444
444
|
builder: t,
|
|
445
445
|
context: n,
|
|
446
446
|
event: r,
|
|
447
|
-
state:
|
|
447
|
+
state: xn({
|
|
448
448
|
rootState: s,
|
|
449
449
|
localState: o,
|
|
450
450
|
rootSetState: i
|
|
@@ -457,7 +457,7 @@ var V, $i = function(e) {
|
|
|
457
457
|
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && _o.test(String.fromCharCode(a));
|
|
458
458
|
}
|
|
459
459
|
function n(a) {
|
|
460
|
-
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
460
|
+
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Rr.test(String.fromCharCode(a));
|
|
461
461
|
}
|
|
462
462
|
function r(a, l) {
|
|
463
463
|
for (var p = k, f = 1, P = 0; ; ) {
|
|
@@ -526,7 +526,7 @@ var V, $i = function(e) {
|
|
|
526
526
|
function m(a) {
|
|
527
527
|
switch (a) {
|
|
528
528
|
case 46:
|
|
529
|
-
a = k.charCodeAt(d + 1), 48 <= a && 57 >= a ? A(!0) : (++d, s(
|
|
529
|
+
a = k.charCodeAt(d + 1), 48 <= a && 57 >= a ? A(!0) : (++d, s(br));
|
|
530
530
|
return;
|
|
531
531
|
case 40:
|
|
532
532
|
return ++d, s(Ce);
|
|
@@ -547,7 +547,7 @@ var V, $i = function(e) {
|
|
|
547
547
|
case 58:
|
|
548
548
|
return ++d, s(it);
|
|
549
549
|
case 63:
|
|
550
|
-
return ++d, s(
|
|
550
|
+
return ++d, s(Sr);
|
|
551
551
|
case 48:
|
|
552
552
|
if (a = k.charCodeAt(d + 1), a === 120 || a === 88) {
|
|
553
553
|
d += 2, a = S(16), a === null && r(Y + 2, "Expected hexadecimal number"), n(k.charCodeAt(d)) && r(d, "Identifier directly after number"), s(rt, a);
|
|
@@ -626,7 +626,7 @@ var V, $i = function(e) {
|
|
|
626
626
|
}
|
|
627
627
|
return;
|
|
628
628
|
case 47:
|
|
629
|
-
a = k.charCodeAt(d + 1), tt ? (++d, h()) : a === 61 ? b(De, 2) : b(
|
|
629
|
+
a = k.charCodeAt(d + 1), tt ? (++d, h()) : a === 61 ? b(De, 2) : b(kr, 1);
|
|
630
630
|
return;
|
|
631
631
|
case 37:
|
|
632
632
|
case 42:
|
|
@@ -634,7 +634,7 @@ var V, $i = function(e) {
|
|
|
634
634
|
return;
|
|
635
635
|
case 124:
|
|
636
636
|
case 38:
|
|
637
|
-
l = k.charCodeAt(d + 1), l === a ? b(a === 124 ?
|
|
637
|
+
l = k.charCodeAt(d + 1), l === a ? b(a === 124 ? Tr : Er, 2) : l === 61 ? b(De, 2) : b(a === 124 ? Do : Wo, 1);
|
|
638
638
|
return;
|
|
639
639
|
case 94:
|
|
640
640
|
k.charCodeAt(d + 1) === 61 ? b(De, 2) : b(Uo, 1);
|
|
@@ -649,10 +649,10 @@ var V, $i = function(e) {
|
|
|
649
649
|
return;
|
|
650
650
|
case 61:
|
|
651
651
|
case 33:
|
|
652
|
-
k.charCodeAt(d + 1) === 61 ? b(Lo, k.charCodeAt(d + 2) === 61 ? 3 : 2) : b(a === 61 ?
|
|
652
|
+
k.charCodeAt(d + 1) === 61 ? b(Lo, k.charCodeAt(d + 2) === 61 ? 3 : 2) : b(a === 61 ? Cr : wr, 1);
|
|
653
653
|
return;
|
|
654
654
|
case 126:
|
|
655
|
-
return b(
|
|
655
|
+
return b(wr, 1);
|
|
656
656
|
}
|
|
657
657
|
return !1;
|
|
658
658
|
}
|
|
@@ -662,10 +662,10 @@ var V, $i = function(e) {
|
|
|
662
662
|
if (d >= Le)
|
|
663
663
|
return s(tn);
|
|
664
664
|
if (a = k.charCodeAt(d), n(a) || a === 92)
|
|
665
|
-
return
|
|
665
|
+
return te();
|
|
666
666
|
if (m(a) === !1) {
|
|
667
|
-
if (a = String.fromCharCode(a), a === "\\" ||
|
|
668
|
-
return
|
|
667
|
+
if (a = String.fromCharCode(a), a === "\\" || Rr.test(a))
|
|
668
|
+
return te();
|
|
669
669
|
r(d, "Unexpected character '" + a + "'");
|
|
670
670
|
}
|
|
671
671
|
}
|
|
@@ -696,7 +696,7 @@ var V, $i = function(e) {
|
|
|
696
696
|
} catch (Q) {
|
|
697
697
|
throw Q instanceof SyntaxError && r(p, Q.message), Q;
|
|
698
698
|
}
|
|
699
|
-
s(
|
|
699
|
+
s(er, P);
|
|
700
700
|
}
|
|
701
701
|
function S(a, l) {
|
|
702
702
|
for (var p = d, f = 0, P = l === void 0 ? 1 / 0 : l, Q = 0; Q < P; ++Q) {
|
|
@@ -732,11 +732,11 @@ var V, $i = function(e) {
|
|
|
732
732
|
}
|
|
733
733
|
return Ke ? a : k.slice(p, d);
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function te() {
|
|
736
736
|
var a = H(), l = Me;
|
|
737
737
|
!Ke && qo(a) && (l = jo[a]), s(l, a);
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function E() {
|
|
740
740
|
Zt = Y, $e = Fe, en = Qt, y();
|
|
741
741
|
}
|
|
742
742
|
function D(a) {
|
|
@@ -756,7 +756,7 @@ var V, $i = function(e) {
|
|
|
756
756
|
var a = new ie();
|
|
757
757
|
return O.C && (a.X = new Ae()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [Y, 0]), a;
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function _(a) {
|
|
760
760
|
var l = new ie();
|
|
761
761
|
return l.start = a.start, O.C && (l.X = new Ae(), l.X.start = a.X.start), O.Xa && (l.j = [a.j[0], 0]), l;
|
|
762
762
|
}
|
|
@@ -767,7 +767,7 @@ var V, $i = function(e) {
|
|
|
767
767
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
768
768
|
}
|
|
769
769
|
function L(a) {
|
|
770
|
-
return x === a ? (
|
|
770
|
+
return x === a ? (E(), !0) : !1;
|
|
771
771
|
}
|
|
772
772
|
function wt() {
|
|
773
773
|
return !O.fc && (x === tn || x === He || $t.test(k.slice($e, Y)));
|
|
@@ -775,8 +775,8 @@ var V, $i = function(e) {
|
|
|
775
775
|
function je() {
|
|
776
776
|
L(we) || wt() || be();
|
|
777
777
|
}
|
|
778
|
-
function
|
|
779
|
-
x === a ?
|
|
778
|
+
function J(a) {
|
|
779
|
+
x === a ? E() : be();
|
|
780
780
|
}
|
|
781
781
|
function be() {
|
|
782
782
|
r(Y, "Unexpected token");
|
|
@@ -785,70 +785,70 @@ var V, $i = function(e) {
|
|
|
785
785
|
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), ce && a.type === "Identifier" && At(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
786
786
|
}
|
|
787
787
|
function he() {
|
|
788
|
-
(x ===
|
|
788
|
+
(x === kr || x === De && fe === "/=") && y(!0);
|
|
789
789
|
var a = x, l = K();
|
|
790
790
|
switch (a) {
|
|
791
791
|
case nn:
|
|
792
|
-
case
|
|
793
|
-
|
|
792
|
+
case nr:
|
|
793
|
+
E();
|
|
794
794
|
var p = a === nn;
|
|
795
795
|
L(we) || wt() ? l.label = null : x !== Me ? be() : (l.label = Se(), je());
|
|
796
|
-
for (var f = 0; f <
|
|
797
|
-
var P =
|
|
796
|
+
for (var f = 0; f < X.length; ++f) {
|
|
797
|
+
var P = X[f];
|
|
798
798
|
if ((l.label === null || P.name === l.label.name) && (P.kind !== null && (p || P.kind === "loop") || l.label && p))
|
|
799
799
|
break;
|
|
800
800
|
}
|
|
801
|
-
return f ===
|
|
802
|
-
case
|
|
803
|
-
return
|
|
804
|
-
case nr:
|
|
805
|
-
return T(), J.push(pn), l.body = he(), J.pop(), _(ln), l.test = Qe(), je(), R(l, "DoWhileStatement");
|
|
801
|
+
return f === X.length && r(l.start, "Unsyntactic " + a.l), R(l, p ? "BreakStatement" : "ContinueStatement");
|
|
802
|
+
case rr:
|
|
803
|
+
return E(), je(), R(l, "DebuggerStatement");
|
|
806
804
|
case ir:
|
|
807
|
-
return
|
|
808
|
-
case on:
|
|
809
|
-
return T(), _t(l, !0);
|
|
810
|
-
case sr:
|
|
811
|
-
return T(), l.test = Qe(), l.da = he(), l.alternate = L(rr) ? he() : null, R(l, "IfStatement");
|
|
812
|
-
case ar:
|
|
813
|
-
return nt || O.Ib || r(Y, "'return' outside of function"), T(), L(we) || wt() ? l.K = null : (l.K = re(), je()), R(l, "ReturnStatement");
|
|
814
|
-
case sn:
|
|
815
|
-
for (T(), l.Qb = Qe(), l.tb = [], _(ot), J.push(Jo); x !== He; )
|
|
816
|
-
x === rn || x === tr ? (a = x === rn, f && R(f, "SwitchCase"), l.tb.push(f = K()), f.da = [], T(), a ? f.test = re() : (p && r(Zt, "Multiple default clauses"), p = !0, f.test = null), _(it)) : (f || be(), f.da.push(he()));
|
|
817
|
-
return f && R(f, "SwitchCase"), T(), J.pop(), R(l, "SwitchStatement");
|
|
805
|
+
return E(), X.push(pn), l.body = he(), X.pop(), J(ln), l.test = Qe(), je(), R(l, "DoWhileStatement");
|
|
818
806
|
case lr:
|
|
819
|
-
return
|
|
807
|
+
return E(), X.push(pn), J(Ce), x === we ? Kt(l, null) : x === an ? (a = K(), E(), Qn(a, !0), R(a, "VariableDeclaration"), a.fa.length === 1 && L(Rt) ? Yn(l, a) : Kt(l, a)) : (a = re(!1, !0), L(Rt) ? (Tt(a), Yn(l, a)) : Kt(l, a));
|
|
808
|
+
case on:
|
|
809
|
+
return E(), _t(l, !0);
|
|
820
810
|
case ur:
|
|
821
|
-
return
|
|
811
|
+
return E(), l.test = Qe(), l.da = he(), l.alternate = L(sr) ? he() : null, R(l, "IfStatement");
|
|
812
|
+
case cr:
|
|
813
|
+
return nt || O.Ib || r(Y, "'return' outside of function"), E(), L(we) || wt() ? l.K = null : (l.K = re(), je()), R(l, "ReturnStatement");
|
|
814
|
+
case sn:
|
|
815
|
+
for (E(), l.Qb = Qe(), l.tb = [], J(ot), X.push(Jo); x !== He; )
|
|
816
|
+
x === rn || x === or ? (a = x === rn, f && R(f, "SwitchCase"), l.tb.push(f = K()), f.da = [], E(), a ? f.test = re() : (p && r(Zt, "Multiple default clauses"), p = !0, f.test = null), J(it)) : (f || be(), f.da.push(he()));
|
|
817
|
+
return f && R(f, "SwitchCase"), E(), X.pop(), R(l, "SwitchStatement");
|
|
818
|
+
case pr:
|
|
819
|
+
return E(), $t.test(k.slice($e, Y)) && r($e, "Illegal newline after throw"), l.K = re(), je(), R(l, "ThrowStatement");
|
|
820
|
+
case dr:
|
|
821
|
+
return E(), l.block = Ze(), l.Ea = null, x === tr && (a = K(), E(), J(Ce), a.Ua = Se(), ce && At(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), J(ge), a.body = Ze(), l.Ea = R(a, "CatchClause")), l.fb = L(ar) ? Ze() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), R(l, "TryStatement");
|
|
822
822
|
case an:
|
|
823
|
-
return
|
|
823
|
+
return E(), Qn(l), je(), R(l, "VariableDeclaration");
|
|
824
824
|
case ln:
|
|
825
|
-
return
|
|
826
|
-
case
|
|
827
|
-
return ce && r(Y, "'with' in strict mode"),
|
|
825
|
+
return E(), l.test = Qe(), X.push(pn), l.body = he(), X.pop(), R(l, "WhileStatement");
|
|
826
|
+
case fr:
|
|
827
|
+
return ce && r(Y, "'with' in strict mode"), E(), l.object = Qe(), l.body = he(), R(l, "WithStatement");
|
|
828
828
|
case ot:
|
|
829
829
|
return Ze();
|
|
830
830
|
case we:
|
|
831
|
-
return
|
|
831
|
+
return E(), R(l, "EmptyStatement");
|
|
832
832
|
default:
|
|
833
833
|
if (p = fe, P = re(), a === Me && P.type === "Identifier" && L(it)) {
|
|
834
|
-
for (f = 0; f <
|
|
835
|
-
|
|
836
|
-
return
|
|
834
|
+
for (f = 0; f < X.length; ++f)
|
|
835
|
+
X[f].name === p && r(P.start, "Label '" + p + "' is already declared");
|
|
836
|
+
return X.push({
|
|
837
837
|
name: p,
|
|
838
838
|
kind: x.W ? "loop" : x === sn ? "switch" : null
|
|
839
|
-
}), l.body = he(),
|
|
839
|
+
}), l.body = he(), X.pop(), l.label = P, R(l, "LabeledStatement");
|
|
840
840
|
}
|
|
841
841
|
return l.la = P, je(), R(l, "ExpressionStatement");
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
function Qe() {
|
|
845
|
-
|
|
845
|
+
J(Ce);
|
|
846
846
|
var a = re();
|
|
847
|
-
return
|
|
847
|
+
return J(ge), a;
|
|
848
848
|
}
|
|
849
849
|
function Ze(a) {
|
|
850
850
|
var l = K(), p = !0, f = !1;
|
|
851
|
-
for (l.body = [],
|
|
851
|
+
for (l.body = [], J(ot); !L(He); ) {
|
|
852
852
|
var P = he();
|
|
853
853
|
if (l.body.push(P), p && a && We(P)) {
|
|
854
854
|
var Q = f;
|
|
@@ -859,22 +859,22 @@ var V, $i = function(e) {
|
|
|
859
859
|
return f && !Q && D(!1), R(l, "BlockStatement");
|
|
860
860
|
}
|
|
861
861
|
function Kt(a, l) {
|
|
862
|
-
return a.ua = l,
|
|
862
|
+
return a.ua = l, J(we), a.test = x === we ? null : re(), J(we), a.update = x === ge ? null : re(), J(ge), a.body = he(), X.pop(), R(a, "ForStatement");
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
return a.left = l, a.right = re(),
|
|
864
|
+
function Yn(a, l) {
|
|
865
|
+
return a.left = l, a.right = re(), J(ge), a.body = he(), X.pop(), R(a, "ForInStatement");
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Qn(a, l) {
|
|
868
868
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
869
869
|
var p = K();
|
|
870
|
-
if (p.id = Se(), ce && At(p.id.name) && r(p.id.start, "Binding " + p.id.name + " in strict mode"), p.ua = L(
|
|
870
|
+
if (p.id = Se(), ce && At(p.id.name) && r(p.id.start, "Binding " + p.id.name + " in strict mode"), p.ua = L(Cr) ? re(!0, l) : null, a.fa.push(R(p, "VariableDeclarator")), !L(xe))
|
|
871
871
|
break;
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
874
|
function re(a, l) {
|
|
875
875
|
var p = zt(l);
|
|
876
876
|
if (!a && x === xe) {
|
|
877
|
-
for (a =
|
|
877
|
+
for (a = _(p), a.xb = [p]; L(xe); )
|
|
878
878
|
a.xb.push(zt(l));
|
|
879
879
|
return R(a, "SequenceExpression");
|
|
880
880
|
}
|
|
@@ -882,64 +882,64 @@ var V, $i = function(e) {
|
|
|
882
882
|
}
|
|
883
883
|
function zt(a) {
|
|
884
884
|
var l = qt(Gt(), -1, a);
|
|
885
|
-
if (L(
|
|
886
|
-
var p =
|
|
887
|
-
p.test = l, p.da = re(!0),
|
|
885
|
+
if (L(Sr)) {
|
|
886
|
+
var p = _(l);
|
|
887
|
+
p.test = l, p.da = re(!0), J(it), p.alternate = re(!0, a), l = R(p, "ConditionalExpression");
|
|
888
888
|
}
|
|
889
|
-
return x.Cb ? (p =
|
|
889
|
+
return x.Cb ? (p = _(l), p.operator = fe, p.left = l, E(), p.right = zt(a), Tt(l), R(p, "AssignmentExpression")) : l;
|
|
890
890
|
}
|
|
891
891
|
function qt(a, l, p) {
|
|
892
892
|
var f = x.L;
|
|
893
893
|
if (f !== null && (!p || x !== Rt) && f > l) {
|
|
894
|
-
var P =
|
|
895
|
-
return P.left = a, P.operator = fe, a = x,
|
|
894
|
+
var P = _(a);
|
|
895
|
+
return P.left = a, P.operator = fe, a = x, E(), P.right = qt(Gt(), f, p), f = R(P, a === Tr || a === Er ? "LogicalExpression" : "BinaryExpression"), qt(f, l, p);
|
|
896
896
|
}
|
|
897
897
|
return a;
|
|
898
898
|
}
|
|
899
899
|
function Gt() {
|
|
900
900
|
if (x.prefix) {
|
|
901
901
|
var a = K(), l = x.$b;
|
|
902
|
-
return a.operator = fe, tt = a.prefix = !0,
|
|
902
|
+
return a.operator = fe, tt = a.prefix = !0, E(), a.K = Gt(), l ? Tt(a.K) : ce && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), R(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
903
903
|
}
|
|
904
904
|
for (l = et(Et()); x.cc && !wt(); )
|
|
905
|
-
a =
|
|
905
|
+
a = _(l), a.operator = fe, a.prefix = !1, a.K = l, Tt(l), E(), l = R(a, "UpdateExpression");
|
|
906
906
|
return l;
|
|
907
907
|
}
|
|
908
908
|
function et(a, l) {
|
|
909
|
-
if (L(
|
|
910
|
-
var p =
|
|
909
|
+
if (L(br)) {
|
|
910
|
+
var p = _(a);
|
|
911
911
|
return p.object = a, p.Wa = Se(!0), p.bb = !1, et(R(p, "MemberExpression"), l);
|
|
912
912
|
}
|
|
913
|
-
return L(un) ? (p =
|
|
913
|
+
return L(un) ? (p = _(a), p.object = a, p.Wa = re(), p.bb = !0, J(cn), et(R(p, "MemberExpression"), l)) : !l && L(Ce) ? (p = _(a), p.callee = a, p.arguments = Jt(ge, !1), et(R(p, "CallExpression"), l)) : a;
|
|
914
914
|
}
|
|
915
915
|
function Et() {
|
|
916
916
|
switch (x) {
|
|
917
|
-
case
|
|
917
|
+
case mr:
|
|
918
918
|
var a = K();
|
|
919
|
-
return
|
|
919
|
+
return E(), R(a, "ThisExpression");
|
|
920
920
|
case Me:
|
|
921
921
|
return Se();
|
|
922
922
|
case rt:
|
|
923
923
|
case It:
|
|
924
|
-
case
|
|
925
|
-
return a = K(), a.value = fe, a.raw = k.slice(Y, Fe),
|
|
926
|
-
case
|
|
927
|
-
case
|
|
928
|
-
case
|
|
929
|
-
return a = K(), a.value = x.$a, a.raw = x.l,
|
|
924
|
+
case er:
|
|
925
|
+
return a = K(), a.value = fe, a.raw = k.slice(Y, Fe), E(), R(a, "Literal");
|
|
926
|
+
case gr:
|
|
927
|
+
case yr:
|
|
928
|
+
case vr:
|
|
929
|
+
return a = K(), a.value = x.$a, a.raw = x.l, E(), R(a, "Literal");
|
|
930
930
|
case Ce:
|
|
931
931
|
a = Yt;
|
|
932
932
|
var l = Y;
|
|
933
|
-
|
|
933
|
+
E();
|
|
934
934
|
var p = re();
|
|
935
|
-
return p.start = l, p.end = Fe, O.C && (p.X.start = a, p.X.end = Qt), O.Xa && (p.j = [l, Fe]),
|
|
935
|
+
return p.start = l, p.end = Fe, O.C && (p.X.start = a, p.X.end = Qt), O.Xa && (p.j = [l, Fe]), J(ge), p;
|
|
936
936
|
case un:
|
|
937
|
-
return a = K(),
|
|
937
|
+
return a = K(), E(), a.elements = Jt(cn, !0, !0), R(a, "ArrayExpression");
|
|
938
938
|
case ot:
|
|
939
|
-
for (a = K(), l = !0, p = !1, a.h = [],
|
|
939
|
+
for (a = K(), l = !0, p = !1, a.h = [], E(); !L(He); ) {
|
|
940
940
|
if (l)
|
|
941
941
|
l = !1;
|
|
942
|
-
else if (
|
|
942
|
+
else if (J(xe), O.sb && L(He))
|
|
943
943
|
break;
|
|
944
944
|
var f = {
|
|
945
945
|
key: x === rt || x === It ? Et() : Se(!0)
|
|
@@ -961,22 +961,22 @@ var V, $i = function(e) {
|
|
|
961
961
|
}
|
|
962
962
|
return R(a, "ObjectExpression");
|
|
963
963
|
case on:
|
|
964
|
-
return a = K(),
|
|
965
|
-
case
|
|
966
|
-
return a = K(),
|
|
964
|
+
return a = K(), E(), _t(a, !1);
|
|
965
|
+
case hr:
|
|
966
|
+
return a = K(), E(), a.callee = et(Et(), !0), a.arguments = L(Ce) ? Jt(ge, !1) : Bo, R(a, "NewExpression");
|
|
967
967
|
}
|
|
968
968
|
be();
|
|
969
969
|
}
|
|
970
970
|
function _t(a, l) {
|
|
971
971
|
x === Me ? a.id = Se() : l ? be() : a.id = null, a.oa = [];
|
|
972
972
|
var p = !0;
|
|
973
|
-
for (
|
|
974
|
-
p ? p = !1 :
|
|
973
|
+
for (J(Ce); !L(ge); )
|
|
974
|
+
p ? p = !1 : J(xe), a.oa.push(Se());
|
|
975
975
|
p = nt;
|
|
976
|
-
var f =
|
|
977
|
-
if (nt = !0,
|
|
976
|
+
var f = X;
|
|
977
|
+
if (nt = !0, X = [], a.body = Ze(!0), nt = p, X = f, ce || a.body.body.length && We(a.body.body[0])) {
|
|
978
978
|
for (p = a.id ? -1 : 0; p < a.oa.length; ++p)
|
|
979
|
-
if (f = 0 > p ? a.id : a.oa[p], (
|
|
979
|
+
if (f = 0 > p ? a.id : a.oa[p], (Ir(f.name) || At(f.name)) && r(f.start, "Defining '" + f.name + "' in strict mode"), 0 <= p)
|
|
980
980
|
for (var P = 0; P < p; ++P)
|
|
981
981
|
f.name === a.oa[P].name && r(f.start, "Argument name clash in strict mode");
|
|
982
982
|
}
|
|
@@ -986,7 +986,7 @@ var V, $i = function(e) {
|
|
|
986
986
|
for (var f = [], P = !0; !L(a); ) {
|
|
987
987
|
if (P)
|
|
988
988
|
P = !1;
|
|
989
|
-
else if (
|
|
989
|
+
else if (J(xe), l && O.sb && L(a))
|
|
990
990
|
break;
|
|
991
991
|
f.push(p && x === xe ? null : re(!0));
|
|
992
992
|
}
|
|
@@ -994,19 +994,19 @@ var V, $i = function(e) {
|
|
|
994
994
|
}
|
|
995
995
|
function Se(a) {
|
|
996
996
|
var l = K();
|
|
997
|
-
return a && O.yb === "everywhere" && (a = !1), x === Me ? (!a && (O.yb && zo(fe) || ce &&
|
|
997
|
+
return a && O.yb === "everywhere" && (a = !1), x === Me ? (!a && (O.yb && zo(fe) || ce && Ir(fe)) && k.slice(Y, Fe).indexOf("\\") === -1 && r(Y, "The keyword '" + fe + "' is reserved"), l.name = fe) : a && x.l ? l.name = x.l : be(), tt = !1, E(), R(l, "Identifier");
|
|
998
998
|
}
|
|
999
999
|
e.version = "0.5.0";
|
|
1000
1000
|
var O, k = "", Le, Xt;
|
|
1001
1001
|
e.parse = function(a, l) {
|
|
1002
1002
|
k = String(a), Le = k.length, O = l || {};
|
|
1003
|
-
for (var p in
|
|
1004
|
-
Object.prototype.hasOwnProperty.call(O, p) || (O[p] =
|
|
1005
|
-
for (Xt = O.sourceFile, Ve = 1, d = ke = 0, tt = !0, c(), p = O.dc, Zt = $e = d, O.C && (en = new i()), nt = ce = !1,
|
|
1003
|
+
for (var p in Zn)
|
|
1004
|
+
Object.prototype.hasOwnProperty.call(O, p) || (O[p] = Zn[p]);
|
|
1005
|
+
for (Xt = O.sourceFile, Ve = 1, d = ke = 0, tt = !0, c(), p = O.dc, Zt = $e = d, O.C && (en = new i()), nt = ce = !1, X = [], y(), a = p || K(), l = !0, p || (a.body = []); x !== tn; )
|
|
1006
1006
|
p = he(), a.body.push(p), l && We(p) && D(!0), l = !1;
|
|
1007
1007
|
return R(a, "Program");
|
|
1008
1008
|
};
|
|
1009
|
-
var
|
|
1009
|
+
var Zn = {
|
|
1010
1010
|
fc: !1,
|
|
1011
1011
|
sb: !0,
|
|
1012
1012
|
yb: !1,
|
|
@@ -1017,9 +1017,9 @@ var V, $i = function(e) {
|
|
|
1017
1017
|
dc: null,
|
|
1018
1018
|
sourceFile: null,
|
|
1019
1019
|
vb: null
|
|
1020
|
-
}, d = 0, Y = 0, Fe = 0, Yt, Qt, x, fe, tt, Ve, ke, Zt = 0, $e = 0, en, nt,
|
|
1020
|
+
}, d = 0, Y = 0, Fe = 0, Yt, Qt, x, fe, tt, Ve, ke, Zt = 0, $e = 0, en, nt, X, ce, Bo = [], rt = {
|
|
1021
1021
|
type: "num"
|
|
1022
|
-
},
|
|
1022
|
+
}, er = {
|
|
1023
1023
|
type: "regexp"
|
|
1024
1024
|
}, It = {
|
|
1025
1025
|
type: "string"
|
|
@@ -1032,58 +1032,58 @@ var V, $i = function(e) {
|
|
|
1032
1032
|
}, rn = {
|
|
1033
1033
|
l: "case",
|
|
1034
1034
|
m: !0
|
|
1035
|
-
},
|
|
1035
|
+
}, tr = {
|
|
1036
1036
|
l: "catch"
|
|
1037
|
-
},
|
|
1037
|
+
}, nr = {
|
|
1038
1038
|
l: "continue"
|
|
1039
|
-
},
|
|
1039
|
+
}, rr = {
|
|
1040
1040
|
l: "debugger"
|
|
1041
|
-
},
|
|
1041
|
+
}, or = {
|
|
1042
1042
|
l: "default"
|
|
1043
|
-
},
|
|
1043
|
+
}, ir = {
|
|
1044
1044
|
l: "do",
|
|
1045
1045
|
W: !0
|
|
1046
|
-
},
|
|
1046
|
+
}, sr = {
|
|
1047
1047
|
l: "else",
|
|
1048
1048
|
m: !0
|
|
1049
|
-
},
|
|
1049
|
+
}, ar = {
|
|
1050
1050
|
l: "finally"
|
|
1051
|
-
},
|
|
1051
|
+
}, lr = {
|
|
1052
1052
|
l: "for",
|
|
1053
1053
|
W: !0
|
|
1054
1054
|
}, on = {
|
|
1055
1055
|
l: "function"
|
|
1056
|
-
},
|
|
1056
|
+
}, ur = {
|
|
1057
1057
|
l: "if"
|
|
1058
|
-
},
|
|
1058
|
+
}, cr = {
|
|
1059
1059
|
l: "return",
|
|
1060
1060
|
m: !0
|
|
1061
1061
|
}, sn = {
|
|
1062
1062
|
l: "switch"
|
|
1063
|
-
},
|
|
1063
|
+
}, pr = {
|
|
1064
1064
|
l: "throw",
|
|
1065
1065
|
m: !0
|
|
1066
|
-
},
|
|
1066
|
+
}, dr = {
|
|
1067
1067
|
l: "try"
|
|
1068
1068
|
}, an = {
|
|
1069
1069
|
l: "var"
|
|
1070
1070
|
}, ln = {
|
|
1071
1071
|
l: "while",
|
|
1072
1072
|
W: !0
|
|
1073
|
-
},
|
|
1073
|
+
}, fr = {
|
|
1074
1074
|
l: "with"
|
|
1075
|
-
},
|
|
1075
|
+
}, hr = {
|
|
1076
1076
|
l: "new",
|
|
1077
1077
|
m: !0
|
|
1078
|
-
},
|
|
1078
|
+
}, mr = {
|
|
1079
1079
|
l: "this"
|
|
1080
|
-
},
|
|
1080
|
+
}, gr = {
|
|
1081
1081
|
l: "null",
|
|
1082
1082
|
$a: null
|
|
1083
|
-
},
|
|
1083
|
+
}, yr = {
|
|
1084
1084
|
l: "true",
|
|
1085
1085
|
$a: !0
|
|
1086
|
-
},
|
|
1086
|
+
}, vr = {
|
|
1087
1087
|
l: "false",
|
|
1088
1088
|
$a: !1
|
|
1089
1089
|
}, Rt = {
|
|
@@ -1093,34 +1093,34 @@ var V, $i = function(e) {
|
|
|
1093
1093
|
}, jo = {
|
|
1094
1094
|
break: nn,
|
|
1095
1095
|
case: rn,
|
|
1096
|
-
catch:
|
|
1097
|
-
continue:
|
|
1098
|
-
debugger:
|
|
1099
|
-
default:
|
|
1100
|
-
do:
|
|
1101
|
-
else:
|
|
1102
|
-
finally:
|
|
1103
|
-
for:
|
|
1096
|
+
catch: tr,
|
|
1097
|
+
continue: nr,
|
|
1098
|
+
debugger: rr,
|
|
1099
|
+
default: or,
|
|
1100
|
+
do: ir,
|
|
1101
|
+
else: sr,
|
|
1102
|
+
finally: ar,
|
|
1103
|
+
for: lr,
|
|
1104
1104
|
function: on,
|
|
1105
|
-
if:
|
|
1106
|
-
return:
|
|
1105
|
+
if: ur,
|
|
1106
|
+
return: cr,
|
|
1107
1107
|
switch: sn,
|
|
1108
|
-
throw:
|
|
1109
|
-
try:
|
|
1108
|
+
throw: pr,
|
|
1109
|
+
try: dr,
|
|
1110
1110
|
var: an,
|
|
1111
1111
|
while: ln,
|
|
1112
|
-
with:
|
|
1113
|
-
null:
|
|
1114
|
-
true:
|
|
1115
|
-
false:
|
|
1116
|
-
new:
|
|
1112
|
+
with: fr,
|
|
1113
|
+
null: gr,
|
|
1114
|
+
true: yr,
|
|
1115
|
+
false: vr,
|
|
1116
|
+
new: hr,
|
|
1117
1117
|
in: Rt,
|
|
1118
1118
|
instanceof: {
|
|
1119
1119
|
l: "instanceof",
|
|
1120
1120
|
L: 7,
|
|
1121
1121
|
m: !0
|
|
1122
1122
|
},
|
|
1123
|
-
this:
|
|
1123
|
+
this: mr,
|
|
1124
1124
|
typeof: {
|
|
1125
1125
|
l: "typeof",
|
|
1126
1126
|
prefix: !0,
|
|
@@ -1160,15 +1160,15 @@ var V, $i = function(e) {
|
|
|
1160
1160
|
}, it = {
|
|
1161
1161
|
type: ":",
|
|
1162
1162
|
m: !0
|
|
1163
|
-
},
|
|
1163
|
+
}, br = {
|
|
1164
1164
|
type: "."
|
|
1165
|
-
},
|
|
1165
|
+
}, Sr = {
|
|
1166
1166
|
type: "?",
|
|
1167
1167
|
m: !0
|
|
1168
|
-
},
|
|
1168
|
+
}, kr = {
|
|
1169
1169
|
L: 10,
|
|
1170
1170
|
m: !0
|
|
1171
|
-
},
|
|
1171
|
+
}, Cr = {
|
|
1172
1172
|
Cb: !0,
|
|
1173
1173
|
m: !0
|
|
1174
1174
|
}, De = {
|
|
@@ -1178,13 +1178,13 @@ var V, $i = function(e) {
|
|
|
1178
1178
|
cc: !0,
|
|
1179
1179
|
prefix: !0,
|
|
1180
1180
|
$b: !0
|
|
1181
|
-
},
|
|
1181
|
+
}, wr = {
|
|
1182
1182
|
prefix: !0,
|
|
1183
1183
|
m: !0
|
|
1184
|
-
},
|
|
1184
|
+
}, Tr = {
|
|
1185
1185
|
L: 1,
|
|
1186
1186
|
m: !0
|
|
1187
|
-
},
|
|
1187
|
+
}, Er = {
|
|
1188
1188
|
L: 2,
|
|
1189
1189
|
m: !0
|
|
1190
1190
|
}, Do = {
|
|
@@ -1212,7 +1212,7 @@ var V, $i = function(e) {
|
|
|
1212
1212
|
}, Ko = {
|
|
1213
1213
|
L: 10,
|
|
1214
1214
|
m: !0
|
|
1215
|
-
}, zo = o("class enum extends super const export import"),
|
|
1215
|
+
}, zo = o("class enum extends super const export import"), Ir = o("implements interface let package private protected public static yield"), At = o("eval arguments"), qo = 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"), Go = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Rr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), _o = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), $t = /[\n\r\u2028\u2029]/, xt = /\r\n|[\n\r\u2028\u2029]/g, Ke, pn = {
|
|
1216
1216
|
kind: "loop"
|
|
1217
1217
|
}, Jo = {
|
|
1218
1218
|
kind: "switch"
|
|
@@ -1235,12 +1235,12 @@ function g(e, t) {
|
|
|
1235
1235
|
for (s in this)
|
|
1236
1236
|
typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this));
|
|
1237
1237
|
this.N = kn(this, this.ra, null), this.Na = this.N.object, this.ra = _e(this.ba.join(`
|
|
1238
|
-
`), "polyfills"), this.ba = void 0, Ft(this.ra), i = new
|
|
1238
|
+
`), "polyfills"), this.ba = void 0, Ft(this.ra), i = new T(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new T(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
1239
1239
|
}
|
|
1240
|
-
var
|
|
1240
|
+
var Ar = {
|
|
1241
1241
|
C: !0,
|
|
1242
1242
|
kc: 5
|
|
1243
|
-
},
|
|
1243
|
+
}, Pn = {
|
|
1244
1244
|
configurable: !0,
|
|
1245
1245
|
enumerable: !0,
|
|
1246
1246
|
writable: !1
|
|
@@ -1256,11 +1256,11 @@ var Er = {
|
|
|
1256
1256
|
configurable: !1,
|
|
1257
1257
|
enumerable: !1,
|
|
1258
1258
|
writable: !1
|
|
1259
|
-
},
|
|
1259
|
+
}, $r = {
|
|
1260
1260
|
configurable: !1,
|
|
1261
1261
|
enumerable: !0,
|
|
1262
1262
|
writable: !0
|
|
1263
|
-
},
|
|
1263
|
+
}, io = {
|
|
1264
1264
|
STEP_ERROR: !0
|
|
1265
1265
|
}, Ye = {
|
|
1266
1266
|
SCOPE_REFERENCE: !0
|
|
@@ -1268,8 +1268,8 @@ var Er = {
|
|
|
1268
1268
|
VALUE_IN_DESCRIPTOR: !0
|
|
1269
1269
|
}, qe = {
|
|
1270
1270
|
REGEXP_TIMEOUT: !0
|
|
1271
|
-
},
|
|
1272
|
-
function
|
|
1271
|
+
}, xr = [], Ee = null, ft = null, Be = typeof globalThis > "u" ? void 0 : globalThis, xi = ["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();", "};"];
|
|
1272
|
+
function On(e) {
|
|
1273
1273
|
var t = e >>> 0;
|
|
1274
1274
|
return t === Number(e) ? t : NaN;
|
|
1275
1275
|
}
|
|
@@ -1295,8 +1295,8 @@ V.Kb = 0;
|
|
|
1295
1295
|
V.ic = 0;
|
|
1296
1296
|
function _e(e, t) {
|
|
1297
1297
|
var n = {}, r;
|
|
1298
|
-
for (r in
|
|
1299
|
-
n[r] =
|
|
1298
|
+
for (r in Ar)
|
|
1299
|
+
n[r] = Ar[r];
|
|
1300
1300
|
return n.sourceFile = t, Be.j.parse(e, n);
|
|
1301
1301
|
}
|
|
1302
1302
|
V.Jb = function(e) {
|
|
@@ -1319,8 +1319,8 @@ V.lb = function() {
|
|
|
1319
1319
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
1320
1320
|
n = null;
|
|
1321
1321
|
else {
|
|
1322
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
1323
|
-
var r = new
|
|
1322
|
+
this.ca.shift(), 0 <= n.interval && lo(this, n, n.interval);
|
|
1323
|
+
var r = new T(n.node, n.scope);
|
|
1324
1324
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1325
1325
|
}
|
|
1326
1326
|
if (!n)
|
|
@@ -1332,7 +1332,7 @@ V.lb = function() {
|
|
|
1332
1332
|
try {
|
|
1333
1333
|
var i = this.rb[r.type](e, n, r);
|
|
1334
1334
|
} catch (s) {
|
|
1335
|
-
if (s !==
|
|
1335
|
+
if (s !== io)
|
|
1336
1336
|
throw this.value !== s && (this.value = void 0), s;
|
|
1337
1337
|
} finally {
|
|
1338
1338
|
ft = o;
|
|
@@ -1351,7 +1351,7 @@ V.Eb = function() {
|
|
|
1351
1351
|
return this.za;
|
|
1352
1352
|
};
|
|
1353
1353
|
function Pi(e, t) {
|
|
1354
|
-
e.g(t, "NaN", NaN, at), e.g(t, "Infinity", 1 / 0, at), e.g(t, "undefined", void 0, at), e.g(t, "window", t,
|
|
1354
|
+
e.g(t, "NaN", NaN, at), e.g(t, "Infinity", 1 / 0, at), e.g(t, "undefined", void 0, at), e.g(t, "window", t, Pn), e.g(t, "this", t, at), e.g(t, "self", t), e.M = new N(null), e.Z = new N(e.M), Oi(e, t), Ni(e, t), t.xa = e.M, e.g(t, "constructor", e.v, C), Bi(e, t), ji(e, t), Vi(e, t), Di(e, t), Ui(e, t), Wi(e, t), Li(e, t), Fi(e, t), Mi(e, t);
|
|
1355
1355
|
var n = e.i(function() {
|
|
1356
1356
|
throw EvalError("Can't happen");
|
|
1357
1357
|
}, !1);
|
|
@@ -1362,18 +1362,18 @@ function Pi(e, t) {
|
|
|
1362
1362
|
try {
|
|
1363
1363
|
return i(s);
|
|
1364
1364
|
} catch (u) {
|
|
1365
|
-
|
|
1365
|
+
I(e, e.Gb, u.message);
|
|
1366
1366
|
}
|
|
1367
1367
|
};
|
|
1368
1368
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), C);
|
|
1369
1369
|
n = function(i) {
|
|
1370
|
-
return
|
|
1370
|
+
return Pr(e, !1, arguments);
|
|
1371
1371
|
}, e.g(t, "setTimeout", e.i(n, !1), C), n = function(i) {
|
|
1372
|
-
return
|
|
1372
|
+
return Pr(e, !0, arguments);
|
|
1373
1373
|
}, e.g(t, "setInterval", e.i(n, !1), C), n = function(i) {
|
|
1374
|
-
|
|
1374
|
+
Or(e, i);
|
|
1375
1375
|
}, e.g(t, "clearTimeout", e.i(n, !1), C), n = function(i) {
|
|
1376
|
-
|
|
1376
|
+
Or(e, i);
|
|
1377
1377
|
}, e.g(t, "clearInterval", e.i(n, !1), C), 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);
|
|
1378
1378
|
}
|
|
1379
1379
|
V.Wb = 0;
|
|
@@ -1384,21 +1384,21 @@ function Oi(e, t) {
|
|
|
1384
1384
|
s = s.split(/\s*,\s*/);
|
|
1385
1385
|
for (var u = 0; u < s.length; u++) {
|
|
1386
1386
|
var c = s[u];
|
|
1387
|
-
n.test(c) ||
|
|
1387
|
+
n.test(c) || I(e, e.T, "Invalid function argument: " + c);
|
|
1388
1388
|
}
|
|
1389
1389
|
s = s.join(", ");
|
|
1390
1390
|
}
|
|
1391
1391
|
try {
|
|
1392
1392
|
var m = _e("(function(" + s + ") {" + i + "})", "function" + e.Wb++);
|
|
1393
1393
|
} catch (y) {
|
|
1394
|
-
|
|
1394
|
+
I(e, e.T, "Invalid code: " + y.message);
|
|
1395
1395
|
}
|
|
1396
|
-
return m.body.length !== 1 &&
|
|
1396
|
+
return m.body.length !== 1 && I(e, e.T, "Invalid code in function body"), jn(e, m.body[0].la, e.N, "anonymous");
|
|
1397
1397
|
};
|
|
1398
1398
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, C), e.g(e.O, "prototype", e.Z, C), e.g(e.Z, "constructor", e.O, C), e.Z.Ta = function() {
|
|
1399
1399
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, le), e.Z.H = "Function", r = function(o, i) {
|
|
1400
1400
|
var s = e.o[e.o.length - 1];
|
|
1401
|
-
s.U = this, s.B = o, s.F = [], i != null && (i instanceof N ? s.F =
|
|
1401
|
+
s.U = this, s.B = o, s.F = [], i != null && (i instanceof N ? s.F = so(e, i) : I(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1402
1402
|
}, Z(e, e.O, "apply", r), r = function(o) {
|
|
1403
1403
|
var i = e.o[e.o.length - 1];
|
|
1404
1404
|
i.U = this, i.B = o, i.F = [];
|
|
@@ -1413,7 +1413,7 @@ function Oi(e, t) {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
function Ni(e, t) {
|
|
1415
1415
|
function n(o) {
|
|
1416
|
-
o != null ||
|
|
1416
|
+
o != null || I(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1417
1417
|
}
|
|
1418
1418
|
var r = function(o) {
|
|
1419
1419
|
if (o == null)
|
|
@@ -1429,11 +1429,11 @@ function Ni(e, t) {
|
|
|
1429
1429
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), C), r = function(o) {
|
|
1430
1430
|
return n(o), o instanceof N && (o = o.h), Te(e, Object.keys(o));
|
|
1431
1431
|
}, e.g(e.v, "keys", e.i(r, !1), C), r = function(o) {
|
|
1432
|
-
return o === null ? e.s(null) : (o instanceof N ||
|
|
1432
|
+
return o === null ? e.s(null) : (o instanceof N || I(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1433
1433
|
}, e.g(e.v, "create", e.i(r, !1), C), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, s) {
|
|
1434
|
-
return i = String(i), o instanceof N ||
|
|
1434
|
+
return i = String(i), o instanceof N || I(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof N || I(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || I(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, yt, s.h), o;
|
|
1435
1435
|
}, e.g(e.v, "defineProperty", e.i(r, !1), C), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
|
|
1436
|
-
if (o instanceof N ||
|
|
1436
|
+
if (o instanceof N || I(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
|
|
1437
1437
|
var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
|
|
1438
1438
|
return o = o.Y[i], i = e.s(e.M), u || o ? (e.g(i, "get", u), e.g(i, "set", o)) : (e.g(i, "value", s.value), e.g(i, "writable", s.writable)), e.g(i, "configurable", s.configurable), e.g(i, "enumerable", s.enumerable), i;
|
|
1439
1439
|
}
|
|
@@ -1460,7 +1460,7 @@ function Bi(e, t) {
|
|
|
1460
1460
|
var n = function(r) {
|
|
1461
1461
|
var o = Re(e) ? this : Je(e), i = arguments[0];
|
|
1462
1462
|
if (arguments.length === 1 && typeof i == "number")
|
|
1463
|
-
isNaN(
|
|
1463
|
+
isNaN(On(i)) && I(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1464
1464
|
else {
|
|
1465
1465
|
for (i = 0; i < arguments.length; i++)
|
|
1466
1466
|
o.h[i] = arguments[i];
|
|
@@ -1487,7 +1487,7 @@ function ji(e, t) {
|
|
|
1487
1487
|
try {
|
|
1488
1488
|
return String(this).localeCompare(r, o, i);
|
|
1489
1489
|
} catch (s) {
|
|
1490
|
-
|
|
1490
|
+
I(e, e.D, "localeCompare: " + s.message);
|
|
1491
1491
|
}
|
|
1492
1492
|
}, Z(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1493
1493
|
var s = String(this);
|
|
@@ -1574,32 +1574,32 @@ function Di(e, t) {
|
|
|
1574
1574
|
try {
|
|
1575
1575
|
return Number(this).toExponential(r);
|
|
1576
1576
|
} catch (o) {
|
|
1577
|
-
|
|
1577
|
+
I(e, e.D, o.message);
|
|
1578
1578
|
}
|
|
1579
1579
|
}, Z(e, e.aa, "toExponential", n), n = function(r) {
|
|
1580
1580
|
try {
|
|
1581
1581
|
return Number(this).toFixed(r);
|
|
1582
1582
|
} catch (o) {
|
|
1583
|
-
|
|
1583
|
+
I(e, e.D, o.message);
|
|
1584
1584
|
}
|
|
1585
1585
|
}, Z(e, e.aa, "toFixed", n), n = function(r) {
|
|
1586
1586
|
try {
|
|
1587
1587
|
return Number(this).toPrecision(r);
|
|
1588
1588
|
} catch (o) {
|
|
1589
|
-
|
|
1589
|
+
I(e, e.D, o.message);
|
|
1590
1590
|
}
|
|
1591
1591
|
}, Z(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1592
1592
|
try {
|
|
1593
1593
|
return Number(this).toString(r);
|
|
1594
1594
|
} catch (o) {
|
|
1595
|
-
|
|
1595
|
+
I(e, e.D, o.message);
|
|
1596
1596
|
}
|
|
1597
1597
|
}, Z(e, e.aa, "toString", n), n = function(r, o) {
|
|
1598
1598
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1599
1599
|
try {
|
|
1600
1600
|
return Number(this).toLocaleString(r, o);
|
|
1601
1601
|
} catch (i) {
|
|
1602
|
-
|
|
1602
|
+
I(e, e.D, "toLocaleString: " + i.message);
|
|
1603
1603
|
}
|
|
1604
1604
|
}, Z(e, e.aa, "toLocaleString", n);
|
|
1605
1605
|
}
|
|
@@ -1615,7 +1615,7 @@ function Ui(e, t) {
|
|
|
1615
1615
|
n = /* @__PURE__ */ function(o) {
|
|
1616
1616
|
return function(i) {
|
|
1617
1617
|
var s = this.data;
|
|
1618
|
-
s instanceof Date ||
|
|
1618
|
+
s instanceof Date || I(e, e.j, o + " not called on a Date");
|
|
1619
1619
|
for (var u = [], c = 0; c < arguments.length; c++)
|
|
1620
1620
|
u[c] = e.R(arguments[c]);
|
|
1621
1621
|
return s[o].apply(s, u);
|
|
@@ -1631,13 +1631,13 @@ function Wi(e, t) {
|
|
|
1631
1631
|
return r;
|
|
1632
1632
|
i = e.s(e.Ma);
|
|
1633
1633
|
}
|
|
1634
|
-
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) ||
|
|
1634
|
+
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || I(e, e.T, "Invalid regexp flag: " + o);
|
|
1635
1635
|
try {
|
|
1636
1636
|
var s = new Be.RegExp(r, o);
|
|
1637
1637
|
} catch (u) {
|
|
1638
|
-
|
|
1638
|
+
I(e, e.T, u.message);
|
|
1639
1639
|
}
|
|
1640
|
-
return
|
|
1640
|
+
return Nn(e, i, s), i;
|
|
1641
1641
|
};
|
|
1642
1642
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, C), e.g(e.I.h.prototype, "global", void 0, le), e.g(e.I.h.prototype, "ignoreCase", void 0, le), e.g(e.I.h.prototype, "multiline", void 0, le), e.g(e.I.h.prototype, "source", "(?:)", le), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1643
1643
|
function i(y) {
|
|
@@ -1692,17 +1692,17 @@ function Mi(e, t) {
|
|
|
1692
1692
|
try {
|
|
1693
1693
|
var o = JSON.parse(String(r));
|
|
1694
1694
|
} catch (i) {
|
|
1695
|
-
|
|
1695
|
+
I(e, e.T, i.message);
|
|
1696
1696
|
}
|
|
1697
1697
|
return e.Ia(o);
|
|
1698
1698
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1699
|
-
o && o.H === "Function" ?
|
|
1699
|
+
o && o.H === "Function" ? I(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = so(e, o), o = o.filter(function(u) {
|
|
1700
1700
|
return typeof u == "string" || typeof u == "number";
|
|
1701
1701
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1702
1702
|
try {
|
|
1703
1703
|
var s = JSON.stringify(r, o, i);
|
|
1704
1704
|
} catch (u) {
|
|
1705
|
-
|
|
1705
|
+
I(e, e.j, u.message);
|
|
1706
1706
|
}
|
|
1707
1707
|
return s;
|
|
1708
1708
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1719,7 +1719,7 @@ function ne(e, t, n) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
return !1;
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function Nn(e, t, n) {
|
|
1723
1723
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, C), e.g(t, "source", n.source, le), e.g(t, "global", n.global, le), e.g(t, "ignoreCase", n.ignoreCase, le), e.g(t, "multiline", n.multiline, le);
|
|
1724
1724
|
}
|
|
1725
1725
|
function Sn(e, t, n) {
|
|
@@ -1753,7 +1753,7 @@ function lt(e, t, n, r, o) {
|
|
|
1753
1753
|
try {
|
|
1754
1754
|
return Ee.runInNewContext(t, n, i);
|
|
1755
1755
|
} catch {
|
|
1756
|
-
o(null),
|
|
1756
|
+
o(null), I(e, e.D, "RegExp Timeout: " + r);
|
|
1757
1757
|
}
|
|
1758
1758
|
return qe;
|
|
1759
1759
|
}
|
|
@@ -1774,13 +1774,13 @@ function ut(e, t, n) {
|
|
|
1774
1774
|
r = !!Ee;
|
|
1775
1775
|
} else
|
|
1776
1776
|
r = !1;
|
|
1777
|
-
r || (n(null),
|
|
1777
|
+
r || (n(null), I(e, e.D, "Regular expressions not supported: " + t));
|
|
1778
1778
|
}
|
|
1779
1779
|
function ct(e, t, n, r) {
|
|
1780
1780
|
return setTimeout(function() {
|
|
1781
1781
|
n.terminate(), r(null);
|
|
1782
1782
|
try {
|
|
1783
|
-
|
|
1783
|
+
I(e, e.D, "RegExp Timeout: " + t);
|
|
1784
1784
|
} catch {
|
|
1785
1785
|
}
|
|
1786
1786
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
@@ -1801,19 +1801,19 @@ function Je(e) {
|
|
|
1801
1801
|
writable: !0
|
|
1802
1802
|
}), t.H = "Array", t;
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function Bn(e, t, n) {
|
|
1805
1805
|
var r = e.s(e.Z);
|
|
1806
1806
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, C), e.g(n, "constructor", r, C)) : r.Ab = !0, e.g(r, "length", t, le), r.H = "Function", r;
|
|
1807
1807
|
}
|
|
1808
|
-
function
|
|
1809
|
-
var o =
|
|
1808
|
+
function jn(e, t, n, r) {
|
|
1809
|
+
var o = Bn(e, t.oa.length, !0);
|
|
1810
1810
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", le), o;
|
|
1811
1811
|
}
|
|
1812
1812
|
V.i = function(e, t) {
|
|
1813
|
-
return t =
|
|
1813
|
+
return t = Bn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, le), t;
|
|
1814
1814
|
};
|
|
1815
1815
|
V.ub = function(e) {
|
|
1816
|
-
var t =
|
|
1816
|
+
var t = Bn(this, e.length, !0);
|
|
1817
1817
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, le), t;
|
|
1818
1818
|
};
|
|
1819
1819
|
V.Ia = function(e) {
|
|
@@ -1823,7 +1823,7 @@ V.Ia = function(e) {
|
|
|
1823
1823
|
return e;
|
|
1824
1824
|
if (e instanceof RegExp) {
|
|
1825
1825
|
var t = this.s(this.Ma);
|
|
1826
|
-
return
|
|
1826
|
+
return Nn(this, t, e), t;
|
|
1827
1827
|
}
|
|
1828
1828
|
if (e instanceof Date)
|
|
1829
1829
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1882,11 +1882,11 @@ function Te(e, t) {
|
|
|
1882
1882
|
e.g(n, r[o], t[r[o]]);
|
|
1883
1883
|
return n;
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function so(e, t) {
|
|
1886
1886
|
var n = [], r;
|
|
1887
1887
|
for (r in t.h)
|
|
1888
1888
|
n[r] = e.G(t, r);
|
|
1889
|
-
return n.length =
|
|
1889
|
+
return n.length = On(e.G(t, "length")) || 0, n;
|
|
1890
1890
|
}
|
|
1891
1891
|
function Ie(e, t) {
|
|
1892
1892
|
switch (typeof t) {
|
|
@@ -1902,7 +1902,7 @@ function Ie(e, t) {
|
|
|
1902
1902
|
V.G = function(e, t) {
|
|
1903
1903
|
if (this.P)
|
|
1904
1904
|
throw Error("Getter not supported in that context");
|
|
1905
|
-
if (t = String(t), e != null ||
|
|
1905
|
+
if (t = String(t), e != null || I(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1906
1906
|
throw TypeError("Expecting native value or pseudo object");
|
|
1907
1907
|
if (t === "length") {
|
|
1908
1908
|
if (ne(this, e, this.J))
|
|
@@ -1936,15 +1936,15 @@ function Mt(e, t, n) {
|
|
|
1936
1936
|
V.g = function(e, t, n, r) {
|
|
1937
1937
|
if (this.Ka)
|
|
1938
1938
|
throw Error("Setter not supported in that context");
|
|
1939
|
-
if (t = String(t), e != null ||
|
|
1939
|
+
if (t = String(t), e != null || I(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1940
1940
|
throw TypeError("Expecting native value or pseudo object");
|
|
1941
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1942
|
-
var o = !this.o ||
|
|
1941
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && I(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1942
|
+
var o = !this.o || Vn(this).S;
|
|
1943
1943
|
if (e instanceof N) {
|
|
1944
1944
|
if (ne(this, e, this.J)) {
|
|
1945
1945
|
var i = ht(t);
|
|
1946
1946
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1947
|
-
o &&
|
|
1947
|
+
o && I(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1948
1948
|
return;
|
|
1949
1949
|
}
|
|
1950
1950
|
}
|
|
@@ -1955,7 +1955,7 @@ V.g = function(e, t, n, r) {
|
|
|
1955
1955
|
return;
|
|
1956
1956
|
n = r.value;
|
|
1957
1957
|
}
|
|
1958
|
-
if (n =
|
|
1958
|
+
if (n = On(n), isNaN(n) && I(this, this.ob, "Invalid array length"), n < i)
|
|
1959
1959
|
for (s in e.h) {
|
|
1960
1960
|
var s = ht(s);
|
|
1961
1961
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1968,7 +1968,7 @@ V.g = function(e, t, n, r) {
|
|
|
1968
1968
|
try {
|
|
1969
1969
|
Object.defineProperty(e.h, t, o);
|
|
1970
1970
|
} catch {
|
|
1971
|
-
|
|
1971
|
+
I(this, this.j, "Cannot redefine property: " + t);
|
|
1972
1972
|
}
|
|
1973
1973
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1974
1974
|
} else {
|
|
@@ -1982,18 +1982,18 @@ V.g = function(e, t, n, r) {
|
|
|
1982
1982
|
if (r.Y && r.Y[t])
|
|
1983
1983
|
return this.Ka = !0, r.Y[t];
|
|
1984
1984
|
if (r.V && r.V[t])
|
|
1985
|
-
o &&
|
|
1985
|
+
o && I(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1986
1986
|
else
|
|
1987
1987
|
try {
|
|
1988
1988
|
e.h[t] = n;
|
|
1989
1989
|
} catch {
|
|
1990
|
-
o &&
|
|
1990
|
+
o && I(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1991
1991
|
}
|
|
1992
1992
|
}
|
|
1993
1993
|
else
|
|
1994
|
-
o &&
|
|
1994
|
+
o && I(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1995
1995
|
} else
|
|
1996
|
-
o &&
|
|
1996
|
+
o && I(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1997
1997
|
};
|
|
1998
1998
|
V.g.ac = function() {
|
|
1999
1999
|
throw Error("Placeholder getter");
|
|
@@ -2007,7 +2007,7 @@ function Z(e, t, n, r) {
|
|
|
2007
2007
|
function pt(e, t, n, r) {
|
|
2008
2008
|
e.g(t.h.prototype, n, e.ub(r), C);
|
|
2009
2009
|
}
|
|
2010
|
-
function
|
|
2010
|
+
function Vn(e) {
|
|
2011
2011
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
2012
2012
|
throw Error("No scope found");
|
|
2013
2013
|
return e;
|
|
@@ -2020,30 +2020,30 @@ function kn(e, t, n) {
|
|
|
2020
2020
|
var o = t.body && t.body[0];
|
|
2021
2021
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
2022
2022
|
}
|
|
2023
|
-
return o = e.s(null), r = new
|
|
2023
|
+
return o = e.s(null), r = new uo(n, r, o), n || Pi(e, r.object), vt(e, t, r), r;
|
|
2024
2024
|
}
|
|
2025
|
-
function
|
|
2025
|
+
function Dn(e, t, n) {
|
|
2026
2026
|
if (!t)
|
|
2027
2027
|
throw Error("parentScope required");
|
|
2028
|
-
return e = n || e.s(null), new
|
|
2028
|
+
return e = n || e.s(null), new uo(t, t.S, e);
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2031
|
-
for (var n =
|
|
2030
|
+
function Un(e, t) {
|
|
2031
|
+
for (var n = Vn(e); n && n !== e.N; ) {
|
|
2032
2032
|
if (t in n.object.h)
|
|
2033
2033
|
return n.object.h[t];
|
|
2034
2034
|
n = n.Va;
|
|
2035
2035
|
}
|
|
2036
2036
|
if (n === e.N && Mt(e, n.object, t))
|
|
2037
2037
|
return e.G(n.object, t);
|
|
2038
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
2038
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || I(e, e.pb, t + " is not defined");
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2041
|
-
for (var r =
|
|
2040
|
+
function ao(e, t, n) {
|
|
2041
|
+
for (var r = Vn(e), o = r.S; r && r !== e.N; ) {
|
|
2042
2042
|
if (t in r.object.h) {
|
|
2043
2043
|
try {
|
|
2044
2044
|
r.object.h[t] = n;
|
|
2045
2045
|
} catch {
|
|
2046
|
-
o &&
|
|
2046
|
+
o && I(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
2047
2047
|
}
|
|
2048
2048
|
return;
|
|
2049
2049
|
}
|
|
@@ -2051,7 +2051,7 @@ function oo(e, t, n) {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
if (r === e.N && (!o || Mt(e, r.object, t)))
|
|
2053
2053
|
return e.g(r.object, t, n);
|
|
2054
|
-
|
|
2054
|
+
I(e, e.pb, t + " is not defined");
|
|
2055
2055
|
}
|
|
2056
2056
|
function vt(e, t, n) {
|
|
2057
2057
|
if (t.jb)
|
|
@@ -2099,20 +2099,20 @@ function vt(e, t, n) {
|
|
|
2099
2099
|
t.jb = r;
|
|
2100
2100
|
}
|
|
2101
2101
|
for (s in r)
|
|
2102
|
-
r[s] === !0 ? e.g(n.object, s, void 0,
|
|
2102
|
+
r[s] === !0 ? e.g(n.object, s, void 0, $r) : e.g(n.object, s, jn(e, r[s], n), $r);
|
|
2103
2103
|
return r;
|
|
2104
2104
|
}
|
|
2105
2105
|
function Re(e) {
|
|
2106
2106
|
return e.o[e.o.length - 1].isConstructor;
|
|
2107
2107
|
}
|
|
2108
|
-
function
|
|
2109
|
-
return t[0] === Ye ?
|
|
2108
|
+
function Wn(e, t) {
|
|
2109
|
+
return t[0] === Ye ? Un(e, t[1]) : e.G(t[0], t[1]);
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2112
|
-
return t[0] === Ye ?
|
|
2111
|
+
function Ln(e, t, n) {
|
|
2112
|
+
return t[0] === Ye ? ao(e, t[1], n) : e.g(t[0], t[1], n);
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2115
|
-
throw e.N ? (n !== void 0 && t instanceof N && (t = e.Aa(t), Sn(e, t, n)), bt(e, 4, t),
|
|
2114
|
+
function I(e, t, n) {
|
|
2115
|
+
throw e.N ? (n !== void 0 && t instanceof N && (t = e.Aa(t), Sn(e, t, n)), bt(e, 4, t), io) : n === void 0 ? t : n;
|
|
2116
2116
|
}
|
|
2117
2117
|
function bt(e, t, n, r) {
|
|
2118
2118
|
if (t === 0)
|
|
@@ -2190,7 +2190,7 @@ function ae(e, t) {
|
|
|
2190
2190
|
}
|
|
2191
2191
|
return "???";
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function Pr(e, t, n) {
|
|
2194
2194
|
var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
|
|
2195
2195
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
2196
2196
|
var s = e.ya();
|
|
@@ -2201,18 +2201,18 @@ function Ar(e, t, n) {
|
|
|
2201
2201
|
try {
|
|
2202
2202
|
var c = _e(String(i), "taskCode" + e.ic++);
|
|
2203
2203
|
} catch (m) {
|
|
2204
|
-
|
|
2204
|
+
I(e, e.T, "Invalid code: " + m.message);
|
|
2205
2205
|
}
|
|
2206
2206
|
s.type = "EvalProgram_", s.body = c.body, r = r.node.arguments[0], Ft(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
2207
2207
|
}
|
|
2208
|
-
return t = new Hi(u, o, r, s, t ? n : -1),
|
|
2208
|
+
return t = new Hi(u, o, r, s, t ? n : -1), lo(e, t, n), t.Db;
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2210
|
+
function lo(e, t, n) {
|
|
2211
2211
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
2212
2212
|
return r.time - o.time;
|
|
2213
2213
|
});
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2215
|
+
function Or(e, t) {
|
|
2216
2216
|
for (var n = 0; n < e.ca.length; n++)
|
|
2217
2217
|
if (e.ca[n].Db == t) {
|
|
2218
2218
|
e.ca.splice(n, 1);
|
|
@@ -2224,14 +2224,14 @@ function St(e, t, n) {
|
|
|
2224
2224
|
throw Error("Unexpected call to createGetter");
|
|
2225
2225
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
2226
2226
|
var r = e.ya();
|
|
2227
|
-
return r.type = "CallExpression", e = new
|
|
2227
|
+
return r.type = "CallExpression", e = new T(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
2228
2228
|
}
|
|
2229
|
-
function
|
|
2229
|
+
function Fn(e, t, n, r) {
|
|
2230
2230
|
if (!e.Ka)
|
|
2231
2231
|
throw Error("Unexpected call to createSetter");
|
|
2232
2232
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
2233
2233
|
var o = e.ya();
|
|
2234
|
-
return o.type = "CallExpression", e = new
|
|
2234
|
+
return o.type = "CallExpression", e = new T(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
2235
2235
|
}
|
|
2236
2236
|
function fn(e, t) {
|
|
2237
2237
|
return t == null ? e.Na : t instanceof N ? t : (e = e.s(Ie(e, t)), e.data = t, e);
|
|
@@ -2245,10 +2245,10 @@ V.Yb = function() {
|
|
|
2245
2245
|
V.ec = function(e) {
|
|
2246
2246
|
this.o = e;
|
|
2247
2247
|
};
|
|
2248
|
-
function
|
|
2248
|
+
function T(e, t) {
|
|
2249
2249
|
this.node = e, this.scope = t;
|
|
2250
2250
|
}
|
|
2251
|
-
function
|
|
2251
|
+
function uo(e, t, n) {
|
|
2252
2252
|
this.Va = e, this.S = t, this.object = n;
|
|
2253
2253
|
}
|
|
2254
2254
|
function N(e) {
|
|
@@ -2264,7 +2264,7 @@ V.toString = function() {
|
|
|
2264
2264
|
if (!(this instanceof N))
|
|
2265
2265
|
return String(this);
|
|
2266
2266
|
if (this.H === "Array") {
|
|
2267
|
-
var e =
|
|
2267
|
+
var e = xr;
|
|
2268
2268
|
e.push(this);
|
|
2269
2269
|
try {
|
|
2270
2270
|
var t = [], n = this.h.length, r = !1;
|
|
@@ -2280,7 +2280,7 @@ V.toString = function() {
|
|
|
2280
2280
|
return t.join(",");
|
|
2281
2281
|
}
|
|
2282
2282
|
if (this.H === "Error") {
|
|
2283
|
-
if (e =
|
|
2283
|
+
if (e = xr, e.indexOf(this) !== -1)
|
|
2284
2284
|
return "[object Error]";
|
|
2285
2285
|
n = this;
|
|
2286
2286
|
do
|
|
@@ -2318,16 +2318,16 @@ g.prototype.stepArrayExpression = function(e, t, n) {
|
|
|
2318
2318
|
var r = t.A || 0;
|
|
2319
2319
|
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Je(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
2320
2320
|
if (n[r])
|
|
2321
|
-
return t.A = r, new
|
|
2321
|
+
return t.A = r, new T(n[r], t.scope);
|
|
2322
2322
|
r++;
|
|
2323
2323
|
}
|
|
2324
2324
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
2325
2325
|
};
|
|
2326
2326
|
g.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
2327
2327
|
if (!t.ja)
|
|
2328
|
-
return t.ja = !0, t = new
|
|
2328
|
+
return t.ja = !0, t = new T(n.left, t.scope), t.sa = !0, t;
|
|
2329
2329
|
if (!t.Da)
|
|
2330
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
2330
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = Wn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, St(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new T(n.right, t.scope));
|
|
2331
2331
|
if (t.ta)
|
|
2332
2332
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2333
2333
|
else {
|
|
@@ -2372,16 +2372,16 @@ g.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2372
2372
|
default:
|
|
2373
2373
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2374
2374
|
}
|
|
2375
|
-
if (n =
|
|
2376
|
-
return t.ta = !0, t.ib = r,
|
|
2375
|
+
if (n = Ln(this, t.Fa, r))
|
|
2376
|
+
return t.ta = !0, t.ib = r, Fn(this, n, t.Fa, r);
|
|
2377
2377
|
e.pop(), e[e.length - 1].value = r;
|
|
2378
2378
|
}
|
|
2379
2379
|
};
|
|
2380
2380
|
g.prototype.stepBinaryExpression = function(e, t, n) {
|
|
2381
2381
|
if (!t.ja)
|
|
2382
|
-
return t.ja = !0, new
|
|
2382
|
+
return t.ja = !0, new T(n.left, t.scope);
|
|
2383
2383
|
if (!t.Da)
|
|
2384
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2384
|
+
return t.Da = !0, t.ma = t.value, new T(n.right, t.scope);
|
|
2385
2385
|
e.pop();
|
|
2386
2386
|
var r = t.ma;
|
|
2387
2387
|
switch (t = t.value, n.operator) {
|
|
@@ -2443,10 +2443,10 @@ g.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2443
2443
|
n = r >>> t;
|
|
2444
2444
|
break;
|
|
2445
2445
|
case "in":
|
|
2446
|
-
t instanceof N ||
|
|
2446
|
+
t instanceof N || I(this, this.j, "'in' expects an object, not '" + t + "'"), n = Mt(this, t, r);
|
|
2447
2447
|
break;
|
|
2448
2448
|
case "instanceof":
|
|
2449
|
-
ne(this, t, this.O) ||
|
|
2449
|
+
ne(this, t, this.O) || I(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof N ? ne(this, r, t) : !1;
|
|
2450
2450
|
break;
|
|
2451
2451
|
default:
|
|
2452
2452
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2456,7 +2456,7 @@ g.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2456
2456
|
g.prototype.stepBlockStatement = function(e, t, n) {
|
|
2457
2457
|
var r = t.A || 0;
|
|
2458
2458
|
if (n = n.body[r])
|
|
2459
|
-
return t.A = r + 1, new
|
|
2459
|
+
return t.A = r + 1, new T(n, t.scope);
|
|
2460
2460
|
e.pop();
|
|
2461
2461
|
};
|
|
2462
2462
|
g.prototype.stepBreakStatement = function(e, t, n) {
|
|
@@ -2466,14 +2466,14 @@ g.prototype.Hb = 0;
|
|
|
2466
2466
|
g.prototype.stepCallExpression = function(e, t, n) {
|
|
2467
2467
|
if (!t.ia) {
|
|
2468
2468
|
t.ia = 1;
|
|
2469
|
-
var r = new
|
|
2469
|
+
var r = new T(n.callee, t.scope);
|
|
2470
2470
|
return r.sa = !0, r;
|
|
2471
2471
|
}
|
|
2472
2472
|
if (t.ia === 1) {
|
|
2473
2473
|
t.ia = 2;
|
|
2474
2474
|
var o = t.value;
|
|
2475
2475
|
if (Array.isArray(o)) {
|
|
2476
|
-
if (t.U =
|
|
2476
|
+
if (t.U = Wn(this, o), o[0] === Ye ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2477
2477
|
return t.ia = 1, St(this, o, t.value);
|
|
2478
2478
|
} else
|
|
2479
2479
|
t.U = o;
|
|
@@ -2481,9 +2481,9 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2481
2481
|
}
|
|
2482
2482
|
if (o = t.U, !t.Qa) {
|
|
2483
2483
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2484
|
-
return new
|
|
2484
|
+
return new T(n.arguments[t.A++], t.scope);
|
|
2485
2485
|
if (n.type === "NewExpression") {
|
|
2486
|
-
if (o instanceof N && !o.Ab ||
|
|
2486
|
+
if (o instanceof N && !o.Ab || I(this, this.j, ae(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2487
2487
|
t.B = Je(this);
|
|
2488
2488
|
else {
|
|
2489
2489
|
var i = o.h.prototype;
|
|
@@ -2496,12 +2496,12 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2496
2496
|
if (t.eb)
|
|
2497
2497
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2498
2498
|
else {
|
|
2499
|
-
if (t.eb = !0, o instanceof N ||
|
|
2499
|
+
if (t.eb = !0, o instanceof N || I(this, this.j, ae(this, n.callee) + " is not a function"), e = o.node) {
|
|
2500
2500
|
for (n = kn(this, e.body, o.Va), r = Je(this), o = 0; o < t.F.length; o++)
|
|
2501
2501
|
this.g(r, o, t.F[o]);
|
|
2502
2502
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2503
2503
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2504
|
-
return n.S || (t.B = fn(this, t.B)), this.g(n.object, "this", t.B,
|
|
2504
|
+
return n.S || (t.B = fn(this, t.B)), this.g(n.object, "this", t.B, Pn), t.value = void 0, new T(e.body, n);
|
|
2505
2505
|
}
|
|
2506
2506
|
if (o.eval)
|
|
2507
2507
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2510,9 +2510,9 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2510
2510
|
try {
|
|
2511
2511
|
r = _e(String(o), "eval" + this.Hb++);
|
|
2512
2512
|
} catch (u) {
|
|
2513
|
-
|
|
2513
|
+
I(this, this.T, "Invalid code: " + u.message);
|
|
2514
2514
|
}
|
|
2515
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, Ft(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = kn(this, r, n) : vt(this, r, n), this.value = void 0, new
|
|
2515
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, Ft(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = kn(this, r, n) : vt(this, r, n), this.value = void 0, new T(o, n);
|
|
2516
2516
|
}
|
|
2517
2517
|
else if (o.Ta)
|
|
2518
2518
|
t.scope.S || (t.B = fn(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
@@ -2522,18 +2522,18 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2522
2522
|
t.value = u, s.za = !1;
|
|
2523
2523
|
}), this.za = !0, t.scope.S || (t.B = fn(this, t.B)), o.Za.apply(t.B, r);
|
|
2524
2524
|
} else
|
|
2525
|
-
|
|
2525
|
+
I(this, this.j, ae(this, n.callee) + " is not callable");
|
|
2526
2526
|
}
|
|
2527
2527
|
};
|
|
2528
2528
|
g.prototype.stepConditionalExpression = function(e, t, n) {
|
|
2529
2529
|
var r = t.na || 0;
|
|
2530
2530
|
if (r === 0)
|
|
2531
|
-
return t.na = 1, new
|
|
2531
|
+
return t.na = 1, new T(n.test, t.scope);
|
|
2532
2532
|
if (r === 1) {
|
|
2533
2533
|
if (t.na = 2, (r = !!t.value) && n.da)
|
|
2534
|
-
return new
|
|
2534
|
+
return new T(n.da, t.scope);
|
|
2535
2535
|
if (!r && n.alternate)
|
|
2536
|
-
return new
|
|
2536
|
+
return new T(n.alternate, t.scope);
|
|
2537
2537
|
this.value = void 0;
|
|
2538
2538
|
}
|
|
2539
2539
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
@@ -2546,11 +2546,11 @@ g.prototype.stepDebuggerStatement = function(e) {
|
|
|
2546
2546
|
};
|
|
2547
2547
|
g.prototype.stepDoWhileStatement = function(e, t, n) {
|
|
2548
2548
|
if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2549
|
-
return t.ga = !0, new
|
|
2549
|
+
return t.ga = !0, new T(n.test, t.scope);
|
|
2550
2550
|
if (!t.value)
|
|
2551
2551
|
e.pop();
|
|
2552
2552
|
else if (n.body)
|
|
2553
|
-
return t.ga = !1, t.W = !0, new
|
|
2553
|
+
return t.ga = !1, t.W = !0, new T(n.body, t.scope);
|
|
2554
2554
|
};
|
|
2555
2555
|
g.prototype.stepEmptyStatement = function(e) {
|
|
2556
2556
|
e.pop();
|
|
@@ -2558,19 +2558,19 @@ g.prototype.stepEmptyStatement = function(e) {
|
|
|
2558
2558
|
g.prototype.stepEvalProgram_ = function(e, t, n) {
|
|
2559
2559
|
var r = t.A || 0;
|
|
2560
2560
|
if (n = n.body[r])
|
|
2561
|
-
return t.A = r + 1, new
|
|
2561
|
+
return t.A = r + 1, new T(n, t.scope);
|
|
2562
2562
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2563
2563
|
};
|
|
2564
2564
|
g.prototype.stepExpressionStatement = function(e, t, n) {
|
|
2565
2565
|
if (!t.ka)
|
|
2566
|
-
return this.value = void 0, t.ka = !0, new
|
|
2566
|
+
return this.value = void 0, t.ka = !0, new T(n.la, t.scope);
|
|
2567
2567
|
e.pop(), this.value = t.value;
|
|
2568
2568
|
};
|
|
2569
2569
|
g.prototype.stepForInStatement = function(e, t, n) {
|
|
2570
2570
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2571
|
-
return t.scope.S &&
|
|
2571
|
+
return t.scope.S && I(this, this.T, "for-in loop variable declaration may not have an initializer"), new T(n.left, t.scope);
|
|
2572
2572
|
if (!t.Ca)
|
|
2573
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2573
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new T(n.right, t.scope);
|
|
2574
2574
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2575
2575
|
e:
|
|
2576
2576
|
for (; ; ) {
|
|
@@ -2600,75 +2600,75 @@ g.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2600
2600
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2601
2601
|
t.pa = [Ye, e.fa[0].id.name];
|
|
2602
2602
|
else
|
|
2603
|
-
return t.pa = null, t = new
|
|
2604
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2605
|
-
return
|
|
2603
|
+
return t.pa = null, t = new T(e, t.scope), t.sa = !0, t;
|
|
2604
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = Ln(this, t.pa, e)))
|
|
2605
|
+
return Fn(this, r, t.pa, e);
|
|
2606
2606
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2607
|
-
return new
|
|
2607
|
+
return new T(n.body, t.scope);
|
|
2608
2608
|
};
|
|
2609
2609
|
g.prototype.stepForStatement = function(e, t, n) {
|
|
2610
2610
|
switch (t.na) {
|
|
2611
2611
|
default:
|
|
2612
2612
|
if (t.na = 1, n.ua)
|
|
2613
|
-
return new
|
|
2613
|
+
return new T(n.ua, t.scope);
|
|
2614
2614
|
break;
|
|
2615
2615
|
case 1:
|
|
2616
2616
|
if (t.na = 2, n.test)
|
|
2617
|
-
return new
|
|
2617
|
+
return new T(n.test, t.scope);
|
|
2618
2618
|
break;
|
|
2619
2619
|
case 2:
|
|
2620
2620
|
if (t.na = 3, n.test && !t.value)
|
|
2621
2621
|
e.pop();
|
|
2622
2622
|
else
|
|
2623
|
-
return t.W = !0, new
|
|
2623
|
+
return t.W = !0, new T(n.body, t.scope);
|
|
2624
2624
|
break;
|
|
2625
2625
|
case 3:
|
|
2626
2626
|
if (t.na = 1, n.update)
|
|
2627
|
-
return new
|
|
2627
|
+
return new T(n.update, t.scope);
|
|
2628
2628
|
}
|
|
2629
2629
|
};
|
|
2630
2630
|
g.prototype.stepFunctionDeclaration = function(e) {
|
|
2631
2631
|
e.pop();
|
|
2632
2632
|
};
|
|
2633
2633
|
g.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2634
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2634
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = Dn(this, e)), t.value = jn(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Pn);
|
|
2635
2635
|
};
|
|
2636
2636
|
g.prototype.stepIdentifier = function(e, t, n) {
|
|
2637
2637
|
if (e.pop(), t.sa)
|
|
2638
2638
|
e[e.length - 1].value = [Ye, n.name];
|
|
2639
2639
|
else {
|
|
2640
|
-
if (t =
|
|
2640
|
+
if (t = Un(this, n.name), this.P)
|
|
2641
2641
|
return St(this, t, this.Na);
|
|
2642
2642
|
e[e.length - 1].value = t;
|
|
2643
2643
|
}
|
|
2644
2644
|
};
|
|
2645
2645
|
g.prototype.stepIfStatement = g.prototype.stepConditionalExpression;
|
|
2646
2646
|
g.prototype.stepLabeledStatement = function(e, t, n) {
|
|
2647
|
-
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new
|
|
2647
|
+
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new T(n.body, t.scope), t.labels = e, t;
|
|
2648
2648
|
};
|
|
2649
2649
|
g.prototype.stepLiteral = function(e, t, n) {
|
|
2650
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2650
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), Nn(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2651
2651
|
};
|
|
2652
2652
|
g.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2653
2653
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
2654
2654
|
throw SyntaxError("Unknown logical operator: " + n.operator);
|
|
2655
2655
|
if (!t.ja)
|
|
2656
|
-
return t.ja = !0, new
|
|
2656
|
+
return t.ja = !0, new T(n.left, t.scope);
|
|
2657
2657
|
if (t.Da)
|
|
2658
2658
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2659
2659
|
else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
|
|
2660
2660
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2661
2661
|
else
|
|
2662
|
-
return t.Da = !0, new
|
|
2662
|
+
return t.Da = !0, new T(n.right, t.scope);
|
|
2663
2663
|
};
|
|
2664
2664
|
g.prototype.stepMemberExpression = function(e, t, n) {
|
|
2665
2665
|
if (!t.Ca)
|
|
2666
|
-
return t.Ca = !0, new
|
|
2666
|
+
return t.Ca = !0, new T(n.object, t.scope);
|
|
2667
2667
|
if (n.bb)
|
|
2668
2668
|
if (t.Vb)
|
|
2669
2669
|
n = t.value;
|
|
2670
2670
|
else
|
|
2671
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2671
|
+
return t.u = t.value, t.Vb = !0, new T(n.Wa, t.scope);
|
|
2672
2672
|
else
|
|
2673
2673
|
t.u = t.value, n = n.Wa.name;
|
|
2674
2674
|
if (e.pop(), t.sa)
|
|
@@ -2695,7 +2695,7 @@ g.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2695
2695
|
i = s.value;
|
|
2696
2696
|
else
|
|
2697
2697
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2698
|
-
return t.Pa = i, new
|
|
2698
|
+
return t.Pa = i, new T(o.value, t.scope);
|
|
2699
2699
|
}
|
|
2700
2700
|
for (s in t.Ja)
|
|
2701
2701
|
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, yt, {
|
|
@@ -2708,35 +2708,35 @@ g.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2708
2708
|
};
|
|
2709
2709
|
g.prototype.stepProgram = function(e, t, n) {
|
|
2710
2710
|
if (e = n.body.shift())
|
|
2711
|
-
return t.done = !1, new
|
|
2711
|
+
return t.done = !1, new T(e, t.scope);
|
|
2712
2712
|
t.done = !0;
|
|
2713
2713
|
};
|
|
2714
2714
|
g.prototype.stepReturnStatement = function(e, t, n) {
|
|
2715
2715
|
if (n.K && !t.ka)
|
|
2716
|
-
return t.ka = !0, new
|
|
2716
|
+
return t.ka = !0, new T(n.K, t.scope);
|
|
2717
2717
|
bt(this, 3, t.value);
|
|
2718
2718
|
};
|
|
2719
2719
|
g.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2720
2720
|
var r = t.A || 0;
|
|
2721
2721
|
if (n = n.xb[r])
|
|
2722
|
-
return t.A = r + 1, new
|
|
2722
|
+
return t.A = r + 1, new T(n, t.scope);
|
|
2723
2723
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2724
2724
|
};
|
|
2725
2725
|
g.prototype.stepSwitchStatement = function(e, t, n) {
|
|
2726
2726
|
if (!t.ga)
|
|
2727
|
-
return t.ga = 1, new
|
|
2727
|
+
return t.ga = 1, new T(n.Qb, t.scope);
|
|
2728
2728
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2729
2729
|
var r = t.gb || 0, o = n.tb[r];
|
|
2730
2730
|
if (t.Ha || !o || o.test)
|
|
2731
2731
|
if (o || t.Ha || t.cb === -1)
|
|
2732
2732
|
if (o) {
|
|
2733
2733
|
if (!t.Ha && !t.Fb && o.test)
|
|
2734
|
-
return t.Fb = !0, new
|
|
2734
|
+
return t.Fb = !0, new T(o.test, t.scope);
|
|
2735
2735
|
if (t.Ha || t.value === t.hc) {
|
|
2736
2736
|
t.Ha = !0;
|
|
2737
2737
|
var i = t.A || 0;
|
|
2738
2738
|
if (o.da[i])
|
|
2739
|
-
return t.Zb = !0, t.A = i + 1, new
|
|
2739
|
+
return t.Zb = !0, t.A = i + 1, new T(o.da[i], t.scope);
|
|
2740
2740
|
}
|
|
2741
2741
|
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2742
2742
|
} else {
|
|
@@ -2750,26 +2750,26 @@ g.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2750
2750
|
}
|
|
2751
2751
|
};
|
|
2752
2752
|
g.prototype.stepThisExpression = function(e) {
|
|
2753
|
-
e.pop(), e[e.length - 1].value =
|
|
2753
|
+
e.pop(), e[e.length - 1].value = Un(this, "this");
|
|
2754
2754
|
};
|
|
2755
2755
|
g.prototype.stepThrowStatement = function(e, t, n) {
|
|
2756
2756
|
if (t.ka)
|
|
2757
|
-
|
|
2757
|
+
I(this, t.value);
|
|
2758
2758
|
else
|
|
2759
|
-
return t.ka = !0, new
|
|
2759
|
+
return t.ka = !0, new T(n.K, t.scope);
|
|
2760
2760
|
};
|
|
2761
2761
|
g.prototype.stepTryStatement = function(e, t, n) {
|
|
2762
2762
|
if (!t.Rb)
|
|
2763
|
-
return t.Rb = !0, new
|
|
2763
|
+
return t.Rb = !0, new T(n.block, t.scope);
|
|
2764
2764
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2765
|
-
return t.Tb = !0, e =
|
|
2765
|
+
return t.Tb = !0, e = Dn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new T(n.Ea.body, e);
|
|
2766
2766
|
if (!t.Sb && n.fb)
|
|
2767
|
-
return t.Sb = !0, new
|
|
2767
|
+
return t.Sb = !0, new T(n.fb, t.scope);
|
|
2768
2768
|
e.pop(), t.ea && bt(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2769
2769
|
};
|
|
2770
2770
|
g.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2771
2771
|
if (!t.ka)
|
|
2772
|
-
return t.ka = !0, e = new
|
|
2772
|
+
return t.ka = !0, e = new T(n.K, t.scope), e.sa = n.operator === "delete", e;
|
|
2773
2773
|
e.pop();
|
|
2774
2774
|
var r = t.value;
|
|
2775
2775
|
switch (n.operator) {
|
|
@@ -2792,7 +2792,7 @@ g.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2792
2792
|
try {
|
|
2793
2793
|
delete o.h[r];
|
|
2794
2794
|
} catch {
|
|
2795
|
-
t.scope.S ?
|
|
2795
|
+
t.scope.S ? I(this, this.j, "Cannot delete property '" + r + "' of '" + o + "'") : n = !1;
|
|
2796
2796
|
}
|
|
2797
2797
|
}
|
|
2798
2798
|
r = n;
|
|
@@ -2810,9 +2810,9 @@ g.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2810
2810
|
};
|
|
2811
2811
|
g.prototype.stepUpdateExpression = function(e, t, n) {
|
|
2812
2812
|
if (!t.ja)
|
|
2813
|
-
return t.ja = !0, e = new
|
|
2813
|
+
return t.ja = !0, e = new T(n.K, t.scope), e.sa = !0, e;
|
|
2814
2814
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2815
|
-
var r =
|
|
2815
|
+
var r = Wn(this, t.Ga);
|
|
2816
2816
|
if (t.ma = r, this.P)
|
|
2817
2817
|
return t.Ba = !0, St(this, r, t.Ga);
|
|
2818
2818
|
}
|
|
@@ -2825,23 +2825,23 @@ g.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2825
2825
|
o = r - 1;
|
|
2826
2826
|
else
|
|
2827
2827
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2828
|
-
if (n = n.prefix ? o : r, r =
|
|
2829
|
-
return t.ta = !0, t.ib = n,
|
|
2828
|
+
if (n = n.prefix ? o : r, r = Ln(this, t.Ga, o))
|
|
2829
|
+
return t.ta = !0, t.ib = n, Fn(this, r, t.Ga, o);
|
|
2830
2830
|
e.pop(), e[e.length - 1].value = n;
|
|
2831
2831
|
}
|
|
2832
2832
|
};
|
|
2833
2833
|
g.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2834
2834
|
n = n.fa;
|
|
2835
2835
|
var r = t.A || 0, o = n[r];
|
|
2836
|
-
for (t.Bb && o && (
|
|
2836
|
+
for (t.Bb && o && (ao(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2837
2837
|
if (o.ua)
|
|
2838
|
-
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new
|
|
2838
|
+
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new T(o.ua, t.scope);
|
|
2839
2839
|
o = n[++r];
|
|
2840
2840
|
}
|
|
2841
2841
|
e.pop();
|
|
2842
2842
|
};
|
|
2843
2843
|
g.prototype.stepWithStatement = function(e, t, n) {
|
|
2844
|
-
return t.Ca ? (e.pop(), e =
|
|
2844
|
+
return t.Ca ? (e.pop(), e = Dn(this, t.scope, t.value), new T(n.body, e)) : (t.Ca = !0, new T(n.object, t.scope));
|
|
2845
2845
|
};
|
|
2846
2846
|
g.prototype.stepWhileStatement = g.prototype.stepDoWhileStatement;
|
|
2847
2847
|
Be.Interpreter = g;
|
|
@@ -2889,7 +2889,7 @@ zi();
|
|
|
2889
2889
|
const qi = (e) => e.replace(/^.*?function main\(\)/, `
|
|
2890
2890
|
var __awaiter = function (e, t, n, r) {return r()},
|
|
2891
2891
|
__generator = function (e, t) { return t() };
|
|
2892
|
-
function main()`).replace(/\?\./g, "."),
|
|
2892
|
+
function main()`).replace(/\?\./g, "."), Nr = (e) => e + "JSON", Gi = ({
|
|
2893
2893
|
builder: e,
|
|
2894
2894
|
context: t,
|
|
2895
2895
|
event: n,
|
|
@@ -2898,17 +2898,17 @@ function main()`).replace(/\?\./g, "."), xr = (e) => e + "JSON", Gi = ({
|
|
|
2898
2898
|
rootSetState: i,
|
|
2899
2899
|
code: s
|
|
2900
2900
|
}) => {
|
|
2901
|
-
const u =
|
|
2901
|
+
const u = xn({
|
|
2902
2902
|
rootState: r,
|
|
2903
2903
|
localState: o,
|
|
2904
2904
|
rootSetState: i
|
|
2905
|
-
}), c =
|
|
2905
|
+
}), c = oo({
|
|
2906
2906
|
builder: e,
|
|
2907
2907
|
context: t,
|
|
2908
2908
|
event: n,
|
|
2909
2909
|
state: u
|
|
2910
2910
|
}), m = c.map(([$]) => {
|
|
2911
|
-
const H =
|
|
2911
|
+
const H = Nr($);
|
|
2912
2912
|
return $ === "state" ? "" : `var ${$} = ${H} === undefined ? undefined : JSON.parse(${H});`;
|
|
2913
2913
|
}).join(`
|
|
2914
2914
|
`), y = qi(s);
|
|
@@ -2922,12 +2922,12 @@ function theFunction() {
|
|
|
2922
2922
|
}
|
|
2923
2923
|
theFunction();
|
|
2924
2924
|
`, h = function($, H) {
|
|
2925
|
-
c.forEach(([
|
|
2926
|
-
if (
|
|
2927
|
-
$.setProperty(H,
|
|
2925
|
+
c.forEach(([te, E]) => {
|
|
2926
|
+
if (te === "state")
|
|
2927
|
+
$.setProperty(H, te, $.createConnectedObject(E), $.READONLY_DESCRIPTOR);
|
|
2928
2928
|
else {
|
|
2929
|
-
const D = JSON.stringify(
|
|
2930
|
-
$.setProperty(H,
|
|
2929
|
+
const D = JSON.stringify(E);
|
|
2930
|
+
$.setProperty(H, Nr(te), D);
|
|
2931
2931
|
}
|
|
2932
2932
|
});
|
|
2933
2933
|
}, S = new g(b, h);
|
|
@@ -2965,7 +2965,7 @@ function kt({
|
|
|
2965
2965
|
return;
|
|
2966
2966
|
const c = Zi(e.trim());
|
|
2967
2967
|
if (c)
|
|
2968
|
-
return
|
|
2968
|
+
return Gr({
|
|
2969
2969
|
...r,
|
|
2970
2970
|
...n
|
|
2971
2971
|
}, c);
|
|
@@ -3034,7 +3034,7 @@ function Vt(e, t, n = null, r = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
|
3034
3034
|
}), Vt(s, t, e, i, o);
|
|
3035
3035
|
}));
|
|
3036
3036
|
}
|
|
3037
|
-
function
|
|
3037
|
+
function co(e) {
|
|
3038
3038
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
3039
3039
|
}
|
|
3040
3040
|
function rs(e) {
|
|
@@ -3042,7 +3042,7 @@ function rs(e) {
|
|
|
3042
3042
|
return !1;
|
|
3043
3043
|
let t = !1;
|
|
3044
3044
|
return Vt(e, (n) => {
|
|
3045
|
-
if (
|
|
3045
|
+
if (co(n)) {
|
|
3046
3046
|
t = !0;
|
|
3047
3047
|
return;
|
|
3048
3048
|
}
|
|
@@ -3050,14 +3050,14 @@ function rs(e) {
|
|
|
3050
3050
|
}
|
|
3051
3051
|
function os(e, t) {
|
|
3052
3052
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (Vt(e, (n, r) => {
|
|
3053
|
-
|
|
3053
|
+
co(n) && r(n[t] ?? void 0);
|
|
3054
3054
|
}), e);
|
|
3055
3055
|
}
|
|
3056
3056
|
function is(e, t) {
|
|
3057
3057
|
var n, r;
|
|
3058
3058
|
return (n = e.component) != null && n.options && rs((r = e.component) == null ? void 0 : r.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = os(e.component.options, t ?? "Default")), e;
|
|
3059
3059
|
}
|
|
3060
|
-
const
|
|
3060
|
+
const Mn = (e) => JSON.parse(JSON.stringify(e)), po = (e, t, n) => {
|
|
3061
3061
|
if (Object(e) !== e)
|
|
3062
3062
|
return e;
|
|
3063
3063
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -3075,9 +3075,9 @@ function Cn(e) {
|
|
|
3075
3075
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Cn(e[n]));
|
|
3076
3076
|
return t;
|
|
3077
3077
|
}
|
|
3078
|
-
const ss = ["svelte", "vue", "angular", "qwik", "solid"].includes(
|
|
3078
|
+
const ss = ["svelte", "vue", "angular", "qwik", "solid"].includes(G), as = (e) => {
|
|
3079
3079
|
if (ss) {
|
|
3080
|
-
const t =
|
|
3080
|
+
const t = Mn(e);
|
|
3081
3081
|
return {
|
|
3082
3082
|
...t,
|
|
3083
3083
|
properties: {
|
|
@@ -3119,7 +3119,7 @@ const ss = ["svelte", "vue", "angular", "qwik", "solid"].includes(q), as = (e) =
|
|
|
3119
3119
|
rootSetState: o,
|
|
3120
3120
|
context: t
|
|
3121
3121
|
});
|
|
3122
|
-
|
|
3122
|
+
po(i, s, c);
|
|
3123
3123
|
}
|
|
3124
3124
|
return i;
|
|
3125
3125
|
};
|
|
@@ -3139,9 +3139,9 @@ function us({
|
|
|
3139
3139
|
context: t
|
|
3140
3140
|
}), i = is(i, r.locale), i;
|
|
3141
3141
|
}
|
|
3142
|
-
function
|
|
3142
|
+
function Hn(e) {
|
|
3143
3143
|
const t = e || (M() ? window.location.search : void 0);
|
|
3144
|
-
return t ?
|
|
3144
|
+
return t ? Jr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
3145
3145
|
}
|
|
3146
3146
|
const cs = (e) => ({
|
|
3147
3147
|
type: "builder.registerComponent",
|
|
@@ -3153,11 +3153,11 @@ const cs = (e) => ({
|
|
|
3153
3153
|
function Dt(e) {
|
|
3154
3154
|
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? ps(n) : n));
|
|
3155
3155
|
}
|
|
3156
|
-
const
|
|
3157
|
-
function
|
|
3156
|
+
const Br = {};
|
|
3157
|
+
function tc(e, t) {
|
|
3158
3158
|
e === "plugin" && (t = Dt(t));
|
|
3159
|
-
let n =
|
|
3160
|
-
if (n || (n =
|
|
3159
|
+
let n = Br[e];
|
|
3160
|
+
if (n || (n = Br[e] = []), n.push(t), M()) {
|
|
3161
3161
|
const r = {
|
|
3162
3162
|
type: "builder.register",
|
|
3163
3163
|
data: {
|
|
@@ -3172,7 +3172,7 @@ function nc(e, t) {
|
|
|
3172
3172
|
}
|
|
3173
3173
|
}
|
|
3174
3174
|
}
|
|
3175
|
-
function
|
|
3175
|
+
function nc(e) {
|
|
3176
3176
|
var t;
|
|
3177
3177
|
if (M()) {
|
|
3178
3178
|
const n = JSON.parse(JSON.stringify(e));
|
|
@@ -3182,24 +3182,24 @@ function rc(e) {
|
|
|
3182
3182
|
}, "*");
|
|
3183
3183
|
}
|
|
3184
3184
|
}
|
|
3185
|
-
const
|
|
3186
|
-
function
|
|
3185
|
+
const jr = {};
|
|
3186
|
+
function rc(e) {
|
|
3187
3187
|
if (M()) {
|
|
3188
|
-
Object.assign(
|
|
3188
|
+
Object.assign(jr, e);
|
|
3189
3189
|
const t = {
|
|
3190
3190
|
type: "builder.settingsChange",
|
|
3191
|
-
data:
|
|
3191
|
+
data: jr
|
|
3192
3192
|
};
|
|
3193
3193
|
parent.postMessage(t, "*");
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
|
-
const
|
|
3196
|
+
const Vr = "builder.", ds = "options.", fo = (e) => {
|
|
3197
3197
|
if (!e)
|
|
3198
3198
|
return {};
|
|
3199
|
-
const t =
|
|
3199
|
+
const t = _r(e), n = {};
|
|
3200
3200
|
return Object.keys(t).forEach((r) => {
|
|
3201
|
-
if (r.startsWith(
|
|
3202
|
-
const o = r.replace(
|
|
3201
|
+
if (r.startsWith(Vr)) {
|
|
3202
|
+
const o = r.replace(Vr, "").replace(ds, "");
|
|
3203
3203
|
n[o] = t[r];
|
|
3204
3204
|
}
|
|
3205
3205
|
}), n;
|
|
@@ -3207,22 +3207,22 @@ const Nr = "builder.", ds = "options.", uo = (e) => {
|
|
|
3207
3207
|
if (!M())
|
|
3208
3208
|
return {};
|
|
3209
3209
|
const e = new URLSearchParams(window.location.search);
|
|
3210
|
-
return
|
|
3210
|
+
return fo(e);
|
|
3211
3211
|
}, hs = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
3212
|
-
function
|
|
3212
|
+
function ho(e, t) {
|
|
3213
3213
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
3214
3214
|
return !1;
|
|
3215
3215
|
const n = new URL(t.origin), r = n.hostname;
|
|
3216
3216
|
return (e || hs).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
3217
3217
|
}
|
|
3218
|
-
let
|
|
3219
|
-
const
|
|
3218
|
+
let Dr = !1;
|
|
3219
|
+
const mo = (e) => {
|
|
3220
3220
|
var t, n;
|
|
3221
|
-
|
|
3221
|
+
Dr || (Dr = !0, M() && ((t = window.parent) == null || t.postMessage({
|
|
3222
3222
|
type: "builder.sdkInfo",
|
|
3223
3223
|
data: {
|
|
3224
|
-
target:
|
|
3225
|
-
version:
|
|
3224
|
+
target: G,
|
|
3225
|
+
version: Yr,
|
|
3226
3226
|
supportsPatchUpdates: !1,
|
|
3227
3227
|
// Supports builder-model="..." attribute which is needed to
|
|
3228
3228
|
// scope our '+ add block' button styling
|
|
@@ -3240,7 +3240,7 @@ const po = (e) => {
|
|
|
3240
3240
|
}
|
|
3241
3241
|
}, "*"), window.addEventListener("message", (r) => {
|
|
3242
3242
|
var i, s;
|
|
3243
|
-
if (!
|
|
3243
|
+
if (!ho(e.trustedHosts, r))
|
|
3244
3244
|
return;
|
|
3245
3245
|
const {
|
|
3246
3246
|
data: o
|
|
@@ -3281,12 +3281,12 @@ const po = (e) => {
|
|
|
3281
3281
|
}
|
|
3282
3282
|
}
|
|
3283
3283
|
})));
|
|
3284
|
-
},
|
|
3284
|
+
}, go = ({
|
|
3285
3285
|
model: e,
|
|
3286
3286
|
trustedHosts: t,
|
|
3287
3287
|
callbacks: n
|
|
3288
3288
|
}) => (r) => {
|
|
3289
|
-
if (!
|
|
3289
|
+
if (!ho(t, r))
|
|
3290
3290
|
return;
|
|
3291
3291
|
const {
|
|
3292
3292
|
data: o
|
|
@@ -3312,7 +3312,7 @@ const po = (e) => {
|
|
|
3312
3312
|
break;
|
|
3313
3313
|
}
|
|
3314
3314
|
}
|
|
3315
|
-
},
|
|
3315
|
+
}, oc = ({
|
|
3316
3316
|
model: e,
|
|
3317
3317
|
apiKey: t,
|
|
3318
3318
|
callback: n,
|
|
@@ -3321,11 +3321,11 @@ const po = (e) => {
|
|
|
3321
3321
|
if (!M)
|
|
3322
3322
|
return ue.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
3323
3323
|
};
|
|
3324
|
-
|
|
3324
|
+
mo({
|
|
3325
3325
|
modelName: e,
|
|
3326
3326
|
apiKey: t
|
|
3327
3327
|
});
|
|
3328
|
-
const o =
|
|
3328
|
+
const o = go({
|
|
3329
3329
|
callbacks: {
|
|
3330
3330
|
contentUpdate: n,
|
|
3331
3331
|
animation: () => {
|
|
@@ -3341,24 +3341,24 @@ const po = (e) => {
|
|
|
3341
3341
|
return window.addEventListener("message", o), () => {
|
|
3342
3342
|
window.removeEventListener("message", o);
|
|
3343
3343
|
};
|
|
3344
|
-
}, ms = "builder.tests",
|
|
3344
|
+
}, ms = "builder.tests", Kn = (e) => `${ms}.${e}`, gs = ({
|
|
3345
3345
|
contentId: e
|
|
3346
|
-
}) =>
|
|
3347
|
-
name:
|
|
3346
|
+
}) => Zr({
|
|
3347
|
+
name: Kn(e),
|
|
3348
3348
|
canTrack: !0
|
|
3349
3349
|
}), ys = ({
|
|
3350
3350
|
contentId: e
|
|
3351
3351
|
}) => Lt({
|
|
3352
|
-
name:
|
|
3352
|
+
name: Kn(e),
|
|
3353
3353
|
canTrack: !0
|
|
3354
3354
|
}), vs = ({
|
|
3355
3355
|
contentId: e,
|
|
3356
3356
|
value: t
|
|
3357
|
-
}) =>
|
|
3358
|
-
name:
|
|
3357
|
+
}) => An({
|
|
3358
|
+
name: Kn(e),
|
|
3359
3359
|
value: t,
|
|
3360
3360
|
canTrack: !0
|
|
3361
|
-
}),
|
|
3361
|
+
}), yo = (e) => Ne(e.id) && Ne(e.variations) && Object.keys(e.variations).length > 0, bs = ({
|
|
3362
3362
|
id: e,
|
|
3363
3363
|
variations: t
|
|
3364
3364
|
}) => {
|
|
@@ -3371,7 +3371,7 @@ const po = (e) => {
|
|
|
3371
3371
|
return i;
|
|
3372
3372
|
}
|
|
3373
3373
|
return e;
|
|
3374
|
-
},
|
|
3374
|
+
}, vo = (e) => {
|
|
3375
3375
|
const t = bs(e);
|
|
3376
3376
|
return vs({
|
|
3377
3377
|
contentId: e.id,
|
|
@@ -3379,7 +3379,7 @@ const po = (e) => {
|
|
|
3379
3379
|
}).catch((n) => {
|
|
3380
3380
|
ue.error("could not store A/B test variation: ", n);
|
|
3381
3381
|
}), t;
|
|
3382
|
-
},
|
|
3382
|
+
}, bo = ({
|
|
3383
3383
|
item: e,
|
|
3384
3384
|
testGroupId: t
|
|
3385
3385
|
}) => {
|
|
@@ -3401,14 +3401,14 @@ const po = (e) => {
|
|
|
3401
3401
|
return e;
|
|
3402
3402
|
if (!e)
|
|
3403
3403
|
return;
|
|
3404
|
-
if (!
|
|
3404
|
+
if (!yo(e))
|
|
3405
3405
|
return e;
|
|
3406
3406
|
const n = ys({
|
|
3407
3407
|
contentId: e.id
|
|
3408
|
-
}) ||
|
|
3408
|
+
}) || vo({
|
|
3409
3409
|
variations: e.variations,
|
|
3410
3410
|
id: e.id
|
|
3411
|
-
}), r =
|
|
3411
|
+
}), r = bo({
|
|
3412
3412
|
item: e,
|
|
3413
3413
|
testGroupId: n
|
|
3414
3414
|
});
|
|
@@ -3420,14 +3420,14 @@ const po = (e) => {
|
|
|
3420
3420
|
item: e,
|
|
3421
3421
|
canTrack: t
|
|
3422
3422
|
}) => {
|
|
3423
|
-
if (!t || !
|
|
3423
|
+
if (!t || !yo(e))
|
|
3424
3424
|
return e;
|
|
3425
3425
|
const r = await gs({
|
|
3426
3426
|
contentId: e.id
|
|
3427
|
-
}) ||
|
|
3427
|
+
}) || vo({
|
|
3428
3428
|
variations: e.variations,
|
|
3429
3429
|
id: e.id
|
|
3430
|
-
}), o =
|
|
3430
|
+
}), o = bo({
|
|
3431
3431
|
item: e,
|
|
3432
3432
|
testGroupId: r
|
|
3433
3433
|
});
|
|
@@ -3436,8 +3436,8 @@ const po = (e) => {
|
|
|
3436
3436
|
...o
|
|
3437
3437
|
};
|
|
3438
3438
|
};
|
|
3439
|
-
const
|
|
3440
|
-
function
|
|
3439
|
+
const Ur = "builder.userAttributes";
|
|
3440
|
+
function Wr() {
|
|
3441
3441
|
let e = !0;
|
|
3442
3442
|
const t = /* @__PURE__ */ new Set();
|
|
3443
3443
|
return {
|
|
@@ -3448,15 +3448,15 @@ function Vr() {
|
|
|
3448
3448
|
...this.getUserAttributes(),
|
|
3449
3449
|
...n
|
|
3450
3450
|
};
|
|
3451
|
-
|
|
3452
|
-
name:
|
|
3451
|
+
An({
|
|
3452
|
+
name: Ur,
|
|
3453
3453
|
value: JSON.stringify(r),
|
|
3454
3454
|
canTrack: e
|
|
3455
3455
|
}), t.forEach((o) => o(r));
|
|
3456
3456
|
},
|
|
3457
3457
|
getUserAttributes() {
|
|
3458
3458
|
return M() ? JSON.parse(Lt({
|
|
3459
|
-
name:
|
|
3459
|
+
name: Ur,
|
|
3460
3460
|
canTrack: e
|
|
3461
3461
|
}) || "{}") : {};
|
|
3462
3462
|
},
|
|
@@ -3473,8 +3473,8 @@ function Vr() {
|
|
|
3473
3473
|
};
|
|
3474
3474
|
}
|
|
3475
3475
|
let wn;
|
|
3476
|
-
M() &&
|
|
3477
|
-
const Ut = wn,
|
|
3476
|
+
M() && G === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Wr()), wn = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : wn = Wr();
|
|
3477
|
+
const Ut = wn, ic = (e) => {
|
|
3478
3478
|
Ut.setUserAttributes(e);
|
|
3479
3479
|
}, Xe = (e) => {
|
|
3480
3480
|
const t = Ne(e) ? e : !0;
|
|
@@ -3503,10 +3503,10 @@ function Tn(e, t = null, n = ".") {
|
|
|
3503
3503
|
};
|
|
3504
3504
|
}, {});
|
|
3505
3505
|
}
|
|
3506
|
-
function
|
|
3506
|
+
function So(e, t, n = {}) {
|
|
3507
3507
|
for (const r in e) {
|
|
3508
3508
|
const o = e[r], i = t ? t + "." + r : r;
|
|
3509
|
-
o && typeof o == "object" && !Array.isArray(o) && !Object.keys(o).find((s) => s.startsWith("$")) ?
|
|
3509
|
+
o && typeof o == "object" && !Array.isArray(o) && !Object.keys(o).find((s) => s.startsWith("$")) ? So(o, i, n) : n[i] = o;
|
|
3510
3510
|
}
|
|
3511
3511
|
return n;
|
|
3512
3512
|
}
|
|
@@ -3522,7 +3522,7 @@ function Es(e) {
|
|
|
3522
3522
|
}
|
|
3523
3523
|
return t;
|
|
3524
3524
|
}
|
|
3525
|
-
const Is = "v3",
|
|
3525
|
+
const Is = "v3", Lr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, zn = (e) => {
|
|
3526
3526
|
const {
|
|
3527
3527
|
limit: t = 30,
|
|
3528
3528
|
userAttributes: n,
|
|
@@ -3545,33 +3545,33 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3545
3545
|
throw new Error("Missing API key");
|
|
3546
3546
|
if (!["v3"].includes(c))
|
|
3547
3547
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${c}'`);
|
|
3548
|
-
const
|
|
3549
|
-
D.searchParams.set("apiKey", i), D.searchParams.set("limit", String(t)), D.searchParams.set("noTraverse", String(
|
|
3548
|
+
const te = t !== 1, E = H || "https://cdn.builder.io", D = new URL(`${E}/api/${c}/content/${o}`);
|
|
3549
|
+
D.searchParams.set("apiKey", i), D.searchParams.set("limit", String(t)), D.searchParams.set("noTraverse", String(te)), D.searchParams.set("includeRefs", String(!0)), u && D.searchParams.set("locale", u);
|
|
3550
3550
|
let ie = n || {};
|
|
3551
|
-
if (s && D.searchParams.set("enrich", String(s)), D.searchParams.set("omit", y ?? "meta.componentsUsed"), m && D.searchParams.set("fields", m), Number.isFinite(b) && b > -1 && D.searchParams.set("offset", String(Math.floor(b))), typeof $ == "boolean" && D.searchParams.set("includeUnpublished", String($)), h &&
|
|
3552
|
-
const
|
|
3551
|
+
if (s && D.searchParams.set("enrich", String(s)), D.searchParams.set("omit", y ?? "meta.componentsUsed"), m && D.searchParams.set("fields", m), Number.isFinite(b) && b > -1 && D.searchParams.set("offset", String(Math.floor(b))), typeof $ == "boolean" && D.searchParams.set("includeUnpublished", String($)), h && Lr(h) && D.searchParams.set("cacheSeconds", String(h)), S && Lr(S) && D.searchParams.set("staleCacheSeconds", String(S)), A) {
|
|
3552
|
+
const _ = Tn({
|
|
3553
3553
|
sort: A
|
|
3554
3554
|
});
|
|
3555
|
-
for (const R in
|
|
3556
|
-
D.searchParams.set(R, JSON.stringify(
|
|
3555
|
+
for (const R in _)
|
|
3556
|
+
D.searchParams.set(R, JSON.stringify(_[R]));
|
|
3557
3557
|
}
|
|
3558
3558
|
const Ae = {
|
|
3559
3559
|
...fs(),
|
|
3560
|
-
...
|
|
3560
|
+
..._r(e.options || {})
|
|
3561
3561
|
};
|
|
3562
3562
|
ie = {
|
|
3563
3563
|
...ie,
|
|
3564
3564
|
...As(Ae)
|
|
3565
3565
|
};
|
|
3566
3566
|
const K = Tn(Ae);
|
|
3567
|
-
for (const
|
|
3568
|
-
D.searchParams.set(
|
|
3567
|
+
for (const _ in K)
|
|
3568
|
+
D.searchParams.set(_, String(K[_]));
|
|
3569
3569
|
if (Object.keys(ie).length > 0 && D.searchParams.set("userAttributes", JSON.stringify(ie)), r) {
|
|
3570
|
-
const
|
|
3570
|
+
const _ = So({
|
|
3571
3571
|
query: r
|
|
3572
3572
|
});
|
|
3573
|
-
for (const R in
|
|
3574
|
-
D.searchParams.set(R, JSON.stringify(
|
|
3573
|
+
for (const R in _)
|
|
3574
|
+
D.searchParams.set(R, JSON.stringify(_[R]));
|
|
3575
3575
|
}
|
|
3576
3576
|
return D;
|
|
3577
3577
|
}, Rs = (e) => {
|
|
@@ -3589,7 +3589,7 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3589
3589
|
}
|
|
3590
3590
|
return {};
|
|
3591
3591
|
}, $s = (e) => "results" in e;
|
|
3592
|
-
async function
|
|
3592
|
+
async function qn(e) {
|
|
3593
3593
|
var r;
|
|
3594
3594
|
const t = e.locale || ((r = e.userAttributes) == null ? void 0 : r.locale);
|
|
3595
3595
|
t && (e.locale = t, e.userAttributes = {
|
|
@@ -3604,17 +3604,17 @@ async function Kn(e) {
|
|
|
3604
3604
|
}
|
|
3605
3605
|
const xs = async (e) => {
|
|
3606
3606
|
var s;
|
|
3607
|
-
const t =
|
|
3607
|
+
const t = zn(e), n = e.fetch ?? Ts, r = {
|
|
3608
3608
|
...e.fetchOptions,
|
|
3609
3609
|
headers: {
|
|
3610
3610
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
3611
|
-
...
|
|
3611
|
+
...Qr()
|
|
3612
3612
|
}
|
|
3613
3613
|
};
|
|
3614
3614
|
return await (await n(t.href, r)).json();
|
|
3615
|
-
}, Ps = async (e, t, n =
|
|
3615
|
+
}, Ps = async (e, t, n = zn(e)) => {
|
|
3616
3616
|
const r = Xe(e.canTrack);
|
|
3617
|
-
if (n.search.includes("preview="), !r || !(M() ||
|
|
3617
|
+
if (n.search.includes("preview="), !r || !(M() || G === "reactNative"))
|
|
3618
3618
|
return t.results;
|
|
3619
3619
|
try {
|
|
3620
3620
|
const o = [];
|
|
@@ -3630,7 +3630,7 @@ const xs = async (e) => {
|
|
|
3630
3630
|
return t.results;
|
|
3631
3631
|
};
|
|
3632
3632
|
async function Os(e) {
|
|
3633
|
-
const t =
|
|
3633
|
+
const t = zn(e), n = await xs(e);
|
|
3634
3634
|
if (!$s(n))
|
|
3635
3635
|
throw ue.error("Error fetching data. ", {
|
|
3636
3636
|
url: t,
|
|
@@ -3639,7 +3639,7 @@ async function Os(e) {
|
|
|
3639
3639
|
}), n;
|
|
3640
3640
|
return Ps(e, n);
|
|
3641
3641
|
}
|
|
3642
|
-
const
|
|
3642
|
+
const sc = async (e) => {
|
|
3643
3643
|
var r, o, i;
|
|
3644
3644
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
3645
3645
|
...e,
|
|
@@ -3651,14 +3651,14 @@ const ac = async (e) => {
|
|
|
3651
3651
|
urlPath: t
|
|
3652
3652
|
} : {}
|
|
3653
3653
|
},
|
|
3654
|
-
options:
|
|
3654
|
+
options: fo(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
3655
3655
|
};
|
|
3656
3656
|
return {
|
|
3657
3657
|
apiKey: n.apiKey,
|
|
3658
3658
|
model: n.model,
|
|
3659
|
-
content: await
|
|
3659
|
+
content: await qn(n)
|
|
3660
3660
|
};
|
|
3661
|
-
},
|
|
3661
|
+
}, Gn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
3662
3662
|
function Ns(e, t, n = {}) {
|
|
3663
3663
|
let r, o, i, s = null, u = 0;
|
|
3664
3664
|
const c = function() {
|
|
@@ -3685,17 +3685,17 @@ function Bs(e) {
|
|
|
3685
3685
|
for (const t of e)
|
|
3686
3686
|
switch (t.trigger) {
|
|
3687
3687
|
case "pageLoad":
|
|
3688
|
-
|
|
3688
|
+
wo(t);
|
|
3689
3689
|
break;
|
|
3690
3690
|
case "scrollInView":
|
|
3691
3691
|
Vs(t);
|
|
3692
3692
|
break;
|
|
3693
3693
|
}
|
|
3694
3694
|
}
|
|
3695
|
-
function
|
|
3695
|
+
function ko(e) {
|
|
3696
3696
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
3697
3697
|
}
|
|
3698
|
-
function
|
|
3698
|
+
function Co(e, t) {
|
|
3699
3699
|
const n = js(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
3700
3700
|
for (const u of s)
|
|
3701
3701
|
for (const c of n)
|
|
@@ -3708,15 +3708,15 @@ function js(e) {
|
|
|
3708
3708
|
t.indexOf(r) === -1 && t.push(r);
|
|
3709
3709
|
return t;
|
|
3710
3710
|
}
|
|
3711
|
-
function
|
|
3711
|
+
function wo(e) {
|
|
3712
3712
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
3713
3713
|
if (!t.length) {
|
|
3714
|
-
|
|
3714
|
+
ko(e.elementId || e.id || "");
|
|
3715
3715
|
return;
|
|
3716
3716
|
}
|
|
3717
3717
|
Array.from(t).forEach((n) => {
|
|
3718
|
-
|
|
3719
|
-
n.style.transition = `all ${e.duration}s ${
|
|
3718
|
+
Co(e, n), n.style.transition = "none", n.style.transitionDelay = "0", mt(n.style, e.steps[0].styles), setTimeout(() => {
|
|
3719
|
+
n.style.transition = `all ${e.duration}s ${Gn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), mt(n.style, e.steps[1].styles), setTimeout(() => {
|
|
3720
3720
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
3721
3721
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
3722
3722
|
});
|
|
@@ -3725,11 +3725,11 @@ function So(e) {
|
|
|
3725
3725
|
function Vs(e) {
|
|
3726
3726
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
3727
3727
|
if (!t.length) {
|
|
3728
|
-
|
|
3728
|
+
ko(e.elementId || e.id || "");
|
|
3729
3729
|
return;
|
|
3730
3730
|
}
|
|
3731
3731
|
Array.from(t).forEach((n) => {
|
|
3732
|
-
|
|
3732
|
+
Co(e, n);
|
|
3733
3733
|
let r = !1, o = !1;
|
|
3734
3734
|
function i() {
|
|
3735
3735
|
!r && u(n) ? (r = !0, o = !0, setTimeout(() => {
|
|
@@ -3750,18 +3750,18 @@ function Vs(e) {
|
|
|
3750
3750
|
mt(n.style, c);
|
|
3751
3751
|
}
|
|
3752
3752
|
m(), setTimeout(() => {
|
|
3753
|
-
n.style.transition = `all ${e.duration}s ${
|
|
3753
|
+
n.style.transition = `all ${e.duration}s ${Gn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
3754
3754
|
}), document.addEventListener("scroll", s, {
|
|
3755
3755
|
capture: !0,
|
|
3756
3756
|
passive: !0
|
|
3757
3757
|
}), i();
|
|
3758
3758
|
});
|
|
3759
3759
|
}
|
|
3760
|
-
const
|
|
3760
|
+
const To = (e) => Object.entries(e).map(([n, r]) => {
|
|
3761
3761
|
if (typeof r == "string")
|
|
3762
|
-
return `${
|
|
3763
|
-
}).filter(Ne), Ds = (e) =>
|
|
3764
|
-
`),
|
|
3762
|
+
return `${Gn(n)}: ${r};`;
|
|
3763
|
+
}).filter(Ne), Ds = (e) => To(e).join(`
|
|
3764
|
+
`), ac = ({
|
|
3765
3765
|
mediaQuery: e,
|
|
3766
3766
|
className: t,
|
|
3767
3767
|
styles: n
|
|
@@ -3778,21 +3778,21 @@ function Us({
|
|
|
3778
3778
|
}) {
|
|
3779
3779
|
return e;
|
|
3780
3780
|
}
|
|
3781
|
-
const
|
|
3781
|
+
const lc = ({
|
|
3782
3782
|
block: e,
|
|
3783
3783
|
context: t
|
|
3784
|
-
}) =>
|
|
3784
|
+
}) => Eo(Us({
|
|
3785
3785
|
style: e.style || {},
|
|
3786
3786
|
context: t,
|
|
3787
3787
|
block: e
|
|
3788
3788
|
}));
|
|
3789
|
-
function
|
|
3790
|
-
switch (
|
|
3789
|
+
function Eo(e) {
|
|
3790
|
+
switch (G) {
|
|
3791
3791
|
case "svelte":
|
|
3792
3792
|
case "vue":
|
|
3793
3793
|
case "solid":
|
|
3794
3794
|
case "angular":
|
|
3795
|
-
return
|
|
3795
|
+
return To(e).join(" ");
|
|
3796
3796
|
case "qwik":
|
|
3797
3797
|
case "reactNative":
|
|
3798
3798
|
case "react":
|
|
@@ -3800,7 +3800,7 @@ function Co(e) {
|
|
|
3800
3800
|
return e;
|
|
3801
3801
|
}
|
|
3802
3802
|
}
|
|
3803
|
-
const
|
|
3803
|
+
const Io = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Ws = ({
|
|
3804
3804
|
block: e,
|
|
3805
3805
|
registeredComponents: t,
|
|
3806
3806
|
model: n
|
|
@@ -3810,7 +3810,7 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3810
3810
|
if (!r)
|
|
3811
3811
|
return null;
|
|
3812
3812
|
const o = t[r];
|
|
3813
|
-
if (!o ||
|
|
3813
|
+
if (!o || Io(o, n)) {
|
|
3814
3814
|
console.warn(`
|
|
3815
3815
|
Could not find a registered component named "${r}".
|
|
3816
3816
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
@@ -3858,7 +3858,7 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3858
3858
|
}, Ms = (e, t, n) => {
|
|
3859
3859
|
var r;
|
|
3860
3860
|
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderComponents ? {
|
|
3861
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !
|
|
3861
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !Io(s, n)))
|
|
3862
3862
|
} : {};
|
|
3863
3863
|
}, Hs = (e, t) => {
|
|
3864
3864
|
var n;
|
|
@@ -3875,22 +3875,22 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3875
3875
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3876
3876
|
e
|
|
3877
3877
|
), e;
|
|
3878
|
-
}), Gs = () => import("./block-wrapper-
|
|
3878
|
+
}), Gs = () => import("./block-wrapper-fPMgU7lR.js").then((e) => e.default).catch((e) => {
|
|
3879
3879
|
throw console.error(
|
|
3880
3880
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3881
3881
|
e
|
|
3882
3882
|
), e;
|
|
3883
|
-
}), _s = () => import("./component-ref-
|
|
3883
|
+
}), _s = () => import("./component-ref-JHSTjcJx.js").then((e) => e.default).catch((e) => {
|
|
3884
3884
|
throw console.error(
|
|
3885
3885
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3886
3886
|
e
|
|
3887
3887
|
), e;
|
|
3888
|
-
}), Js = () => import("./repeated-block-
|
|
3888
|
+
}), Js = () => import("./repeated-block-F75iqpVr.js").then((e) => e.default).catch((e) => {
|
|
3889
3889
|
throw console.error(
|
|
3890
3890
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3891
3891
|
e
|
|
3892
3892
|
), e;
|
|
3893
|
-
}), Xs = () => import("./style-wrapper-
|
|
3893
|
+
}), Xs = () => import("./style-wrapper-w933365M.js").then((e) => e.default).catch((e) => {
|
|
3894
3894
|
throw console.error(
|
|
3895
3895
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
3896
3896
|
e
|
|
@@ -3985,7 +3985,7 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3985
3985
|
registeredComponents: this.registeredComponents,
|
|
3986
3986
|
builderBlock: this.processedBlock,
|
|
3987
3987
|
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
3988
|
-
isInteractive: !((n = this.blockComponent) != null && n.isRSC &&
|
|
3988
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC && G === "rsc")
|
|
3989
3989
|
};
|
|
3990
3990
|
}
|
|
3991
3991
|
}
|
|
@@ -3993,14 +3993,14 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3993
3993
|
function Qs(e, t, n, r, o, i) {
|
|
3994
3994
|
var b;
|
|
3995
3995
|
const s = W("StyleWrapper"), u = W("ComponentRef"), c = W("Block", !0), m = W("BlockWrapper"), y = W("RepeatedBlock");
|
|
3996
|
-
return e.canShowBlock ? (v(),
|
|
3997
|
-
|
|
3996
|
+
return e.canShowBlock ? (v(), w(z, { key: 0 }, [
|
|
3997
|
+
ee(s, {
|
|
3998
3998
|
block: e.processedBlock,
|
|
3999
3999
|
context: e.context,
|
|
4000
4000
|
id: e.block.id
|
|
4001
4001
|
}, null, 8, ["block", "context", "id"]),
|
|
4002
|
-
(b = e.blockComponent) != null && b.noWrap ? (v(),
|
|
4003
|
-
e.repeatItem ? (v(!0),
|
|
4002
|
+
(b = e.blockComponent) != null && b.noWrap ? (v(), w(z, { key: 1 }, [
|
|
4003
|
+
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (h, S) => (v(), U(y, {
|
|
4004
4004
|
key: e.generateKey(S),
|
|
4005
4005
|
repeatContext: h.context,
|
|
4006
4006
|
block: h.block,
|
|
@@ -4018,8 +4018,8 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4018
4018
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
4019
4019
|
isInteractive: e.componentRefProps.isInteractive
|
|
4020
4020
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
4021
|
-
], 64)) : (v(),
|
|
4022
|
-
e.repeatItem ? (v(!0),
|
|
4021
|
+
], 64)) : (v(), w(z, { key: 0 }, [
|
|
4022
|
+
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (h, S) => (v(), U(y, {
|
|
4023
4023
|
key: e.generateKey(S),
|
|
4024
4024
|
repeatContext: h.context,
|
|
4025
4025
|
block: h.block,
|
|
@@ -4032,7 +4032,7 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4032
4032
|
context: e.context
|
|
4033
4033
|
}, {
|
|
4034
4034
|
default: me(() => [
|
|
4035
|
-
|
|
4035
|
+
ee(u, {
|
|
4036
4036
|
componentRef: e.componentRefProps.componentRef,
|
|
4037
4037
|
componentOptions: e.componentRefProps.componentOptions,
|
|
4038
4038
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -4043,7 +4043,7 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4043
4043
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
4044
4044
|
isInteractive: e.componentRefProps.isInteractive
|
|
4045
4045
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
4046
|
-
(v(!0),
|
|
4046
|
+
(v(!0), w(z, null, ve(e.childrenWithoutParentComponent, (h, S) => (v(), U(c, {
|
|
4047
4047
|
key: h.id,
|
|
4048
4048
|
block: h,
|
|
4049
4049
|
registeredComponents: e.registeredComponents,
|
|
@@ -4056,9 +4056,9 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4056
4056
|
], 64))
|
|
4057
4057
|
], 64)) : F("", !0);
|
|
4058
4058
|
}
|
|
4059
|
-
const
|
|
4059
|
+
const Ro = /* @__PURE__ */ j(Ys, [["render", Qs]]), uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4060
4060
|
__proto__: null,
|
|
4061
|
-
default:
|
|
4061
|
+
default: Ro
|
|
4062
4062
|
}, Symbol.toStringTag, { value: "Module" })), Zs = B({
|
|
4063
4063
|
name: "builder-blocks-wrapper",
|
|
4064
4064
|
props: [
|
|
@@ -4130,7 +4130,7 @@ const To = /* @__PURE__ */ j(Ys, [["render", Qs]]), cc = /* @__PURE__ */ Object.
|
|
|
4130
4130
|
}
|
|
4131
4131
|
});
|
|
4132
4132
|
function ea(e, t, n, r, o, i) {
|
|
4133
|
-
return v(), U(dt(e.BlocksWrapper),
|
|
4133
|
+
return v(), U(dt(e.BlocksWrapper), q({
|
|
4134
4134
|
ref: "blocksWrapperRef",
|
|
4135
4135
|
class: e.className + " component-5vz8uirn7sc",
|
|
4136
4136
|
"builder-path": e.dataPath,
|
|
@@ -4148,7 +4148,7 @@ function ea(e, t, n, r, o, i) {
|
|
|
4148
4148
|
}
|
|
4149
4149
|
const ta = /* @__PURE__ */ j(Zs, [["render", ea], ["__scopeId", "data-v-82fc93d6"]]), na = B({
|
|
4150
4150
|
name: "builder-blocks",
|
|
4151
|
-
components: { BlocksWrapper: ta, Block:
|
|
4151
|
+
components: { BlocksWrapper: ta, Block: Ro },
|
|
4152
4152
|
props: [
|
|
4153
4153
|
"blocks",
|
|
4154
4154
|
"parent",
|
|
@@ -4162,7 +4162,7 @@ const ta = /* @__PURE__ */ j(Zs, [["render", ea], ["__scopeId", "data-v-82fc93d6
|
|
|
4162
4162
|
],
|
|
4163
4163
|
inject: {
|
|
4164
4164
|
builderContext: vn.key,
|
|
4165
|
-
componentsContext:
|
|
4165
|
+
componentsContext: qr.key
|
|
4166
4166
|
}
|
|
4167
4167
|
});
|
|
4168
4168
|
function ra(e, t, n, r, o, i) {
|
|
@@ -4179,7 +4179,7 @@ function ra(e, t, n, r, o, i) {
|
|
|
4179
4179
|
}, {
|
|
4180
4180
|
default: me(() => [
|
|
4181
4181
|
pe(e.$slots, "default"),
|
|
4182
|
-
e.blocks ? (v(!0),
|
|
4182
|
+
e.blocks ? (v(!0), w(z, { key: 0 }, ve(e.blocks, (h, S) => {
|
|
4183
4183
|
var A;
|
|
4184
4184
|
return v(), U(s, {
|
|
4185
4185
|
key: h.id,
|
|
@@ -4198,7 +4198,7 @@ const Ue = /* @__PURE__ */ j(na, [["render", ra]]), oa = B({
|
|
|
4198
4198
|
props: []
|
|
4199
4199
|
});
|
|
4200
4200
|
function ia(e, t, n, r, o, i) {
|
|
4201
|
-
return v(),
|
|
4201
|
+
return v(), w("div", null, [
|
|
4202
4202
|
pe(e.$slots, "default")
|
|
4203
4203
|
]);
|
|
4204
4204
|
}
|
|
@@ -4207,7 +4207,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4207
4207
|
default: Ct
|
|
4208
4208
|
}, Symbol.toStringTag, { value: "Module" })), Ht = B({
|
|
4209
4209
|
render() {
|
|
4210
|
-
return
|
|
4210
|
+
return zr("style", {
|
|
4211
4211
|
innerHTML: this.styles,
|
|
4212
4212
|
"data-id": this.id,
|
|
4213
4213
|
nonce: this.nonce
|
|
@@ -4215,7 +4215,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4215
4215
|
},
|
|
4216
4216
|
name: "inlined-styles",
|
|
4217
4217
|
props: ["styles", "id", "nonce"]
|
|
4218
|
-
}),
|
|
4218
|
+
}), Ao = {
|
|
4219
4219
|
xsmall: {
|
|
4220
4220
|
min: 0,
|
|
4221
4221
|
default: 160,
|
|
@@ -4236,8 +4236,8 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4236
4236
|
default: 991,
|
|
4237
4237
|
max: 1200
|
|
4238
4238
|
}
|
|
4239
|
-
},
|
|
4240
|
-
const t =
|
|
4239
|
+
}, cc = (e, t = Ao) => `@media (max-width: ${t[e].max}px)`, aa = (e) => {
|
|
4240
|
+
const t = Mn(Ao);
|
|
4241
4241
|
if (!e)
|
|
4242
4242
|
return t;
|
|
4243
4243
|
const {
|
|
@@ -4278,7 +4278,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4278
4278
|
name: "builder-columns",
|
|
4279
4279
|
components: {
|
|
4280
4280
|
InlinedStyles: Ht,
|
|
4281
|
-
DynamicRenderer:
|
|
4281
|
+
DynamicRenderer: Rn,
|
|
4282
4282
|
Blocks: Ue,
|
|
4283
4283
|
DynamicDiv: Ct
|
|
4284
4284
|
},
|
|
@@ -4293,7 +4293,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4293
4293
|
"builderComponents"
|
|
4294
4294
|
],
|
|
4295
4295
|
data() {
|
|
4296
|
-
return { TARGET:
|
|
4296
|
+
return { TARGET: G, getColumnsClass: la };
|
|
4297
4297
|
},
|
|
4298
4298
|
computed: {
|
|
4299
4299
|
gutterSize() {
|
|
@@ -4410,7 +4410,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4410
4410
|
href: e.link
|
|
4411
4411
|
} : {},
|
|
4412
4412
|
[Oe()]: "builder-column",
|
|
4413
|
-
style:
|
|
4413
|
+
style: Eo(this.columnCssVars(t))
|
|
4414
4414
|
};
|
|
4415
4415
|
}
|
|
4416
4416
|
}
|
|
@@ -4418,7 +4418,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4418
4418
|
function ca(e, t, n, r, o, i) {
|
|
4419
4419
|
var m;
|
|
4420
4420
|
const s = W("InlinedStyles"), u = W("Blocks"), c = W("DynamicRenderer");
|
|
4421
|
-
return v(),
|
|
4421
|
+
return v(), w("div", q({
|
|
4422
4422
|
class: e.getColumnsClass((m = e.builderBlock) == null ? void 0 : m.id) + " div-1be3j8m9ewb",
|
|
4423
4423
|
style: e.columnsCssVars()
|
|
4424
4424
|
}, {}), [
|
|
@@ -4428,14 +4428,14 @@ function ca(e, t, n, r, o, i) {
|
|
|
4428
4428
|
styles: e.columnsStyles(),
|
|
4429
4429
|
nonce: e.builderContext.nonce
|
|
4430
4430
|
}, null, 8, ["styles", "nonce"])) : F("", !0),
|
|
4431
|
-
(v(!0),
|
|
4431
|
+
(v(!0), w(z, null, ve(e.columns, (y, b) => (v(), U(c, {
|
|
4432
4432
|
key: b,
|
|
4433
4433
|
TagName: e.getTagName(y),
|
|
4434
4434
|
actionAttributes: {},
|
|
4435
4435
|
attributes: e.getAttributes(y, b)
|
|
4436
4436
|
}, {
|
|
4437
4437
|
default: me(() => [
|
|
4438
|
-
|
|
4438
|
+
ee(u, {
|
|
4439
4439
|
path: `columns.${b}.blocks`,
|
|
4440
4440
|
parent: e.builderBlock.id,
|
|
4441
4441
|
context: e.builderContext,
|
|
@@ -4456,12 +4456,12 @@ const pa = /* @__PURE__ */ j(ua, [["render", ca], ["__scopeId", "data-v-ab15749a
|
|
|
4456
4456
|
props: []
|
|
4457
4457
|
});
|
|
4458
4458
|
function fa(e, t, n, r, o, i) {
|
|
4459
|
-
return v(),
|
|
4459
|
+
return v(), w("span", null, [
|
|
4460
4460
|
pe(e.$slots, "default")
|
|
4461
4461
|
]);
|
|
4462
4462
|
}
|
|
4463
4463
|
const ha = /* @__PURE__ */ j(da, [["render", fa]]);
|
|
4464
|
-
function
|
|
4464
|
+
function Fr(e) {
|
|
4465
4465
|
return e.replace(/http(s)?:/, "");
|
|
4466
4466
|
}
|
|
4467
4467
|
function ma(e = "", t, n) {
|
|
@@ -4472,11 +4472,11 @@ function ga(e, t) {
|
|
|
4472
4472
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
4473
4473
|
return e;
|
|
4474
4474
|
if (t === "master")
|
|
4475
|
-
return
|
|
4475
|
+
return Fr(e);
|
|
4476
4476
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
4477
4477
|
if (n) {
|
|
4478
4478
|
const r = e.split(n[0]), o = n[3], i = t.match("x") ? t : `${t}x`;
|
|
4479
|
-
return
|
|
4479
|
+
return Fr(`${r[0]}_${i}${o}`);
|
|
4480
4480
|
}
|
|
4481
4481
|
return null;
|
|
4482
4482
|
}
|
|
@@ -4548,9 +4548,9 @@ const ya = B({
|
|
|
4548
4548
|
};
|
|
4549
4549
|
function ka(e, t, n, r, o, i) {
|
|
4550
4550
|
var s, u, c, m, y, b;
|
|
4551
|
-
return v(),
|
|
4551
|
+
return v(), w(z, null, [
|
|
4552
4552
|
Ge("picture", null, [
|
|
4553
|
-
e.webpSrcSet ? (v(),
|
|
4553
|
+
e.webpSrcSet ? (v(), w("source", {
|
|
4554
4554
|
key: 0,
|
|
4555
4555
|
type: "image/webp",
|
|
4556
4556
|
srcset: e.webpSrcSet
|
|
@@ -4574,7 +4574,7 @@ function ka(e, t, n, r, o, i) {
|
|
|
4574
4574
|
sizes: e.sizes
|
|
4575
4575
|
}, null, 14, ba)
|
|
4576
4576
|
]),
|
|
4577
|
-
e.aspectRatio && !((u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent) ? (v(),
|
|
4577
|
+
e.aspectRatio && !((u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent) ? (v(), w("div", {
|
|
4578
4578
|
key: 0,
|
|
4579
4579
|
class: "builder-image-sizer div-t43jfuqn6g",
|
|
4580
4580
|
style: Pe({
|
|
@@ -4582,7 +4582,7 @@ function ka(e, t, n, r, o, i) {
|
|
|
4582
4582
|
})
|
|
4583
4583
|
}, null, 4)) : F("", !0),
|
|
4584
4584
|
(m = (c = e.builderBlock) == null ? void 0 : c.children) != null && m.length && e.fitContent ? pe(e.$slots, "default", { key: 1 }, void 0, !0) : F("", !0),
|
|
4585
|
-
!e.fitContent && ((b = (y = e.builderBlock) == null ? void 0 : y.children) != null && b.length) ? (v(),
|
|
4585
|
+
!e.fitContent && ((b = (y = e.builderBlock) == null ? void 0 : y.children) != null && b.length) ? (v(), w("div", Sa, [
|
|
4586
4586
|
pe(e.$slots, "default", {}, void 0, !0)
|
|
4587
4587
|
])) : F("", !0)
|
|
4588
4588
|
], 64);
|
|
@@ -4595,7 +4595,7 @@ const Ca = /* @__PURE__ */ j(ya, [["render", ka], ["__scopeId", "data-v-741b9bbc
|
|
|
4595
4595
|
}
|
|
4596
4596
|
});
|
|
4597
4597
|
function Ta(e, t, n, r, o, i) {
|
|
4598
|
-
return v(),
|
|
4598
|
+
return v(), w("section", q({
|
|
4599
4599
|
style: {
|
|
4600
4600
|
width: "100%",
|
|
4601
4601
|
alignSelf: "stretch",
|
|
@@ -4831,9 +4831,9 @@ const Ra = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
4831
4831
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
4832
4832
|
}
|
|
4833
4833
|
}
|
|
4834
|
-
}`, Nt = "default", xa = "filterWithCustomTargeting",
|
|
4834
|
+
}`, Nt = "default", xa = "filterWithCustomTargeting", $o = "builderIoPersonalization", xo = "updateVisibilityStylesScript", Po = ["react", "vue", "svelte", "qwik"], Oo = ["vue", "svelte", "qwik"];
|
|
4835
4835
|
function Pa(e, t) {
|
|
4836
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
4836
|
+
return !(e && e.length > 0) || !t ? !1 : Oo.includes(G) ? !0 : !M();
|
|
4837
4837
|
}
|
|
4838
4838
|
function Oa({
|
|
4839
4839
|
variants: e,
|
|
@@ -4875,9 +4875,9 @@ function Oa({
|
|
|
4875
4875
|
}
|
|
4876
4876
|
const Na = () => `
|
|
4877
4877
|
window.${xa} = ${Aa}
|
|
4878
|
-
window.${
|
|
4879
|
-
window.${
|
|
4880
|
-
`,
|
|
4878
|
+
window.${$o} = ${Ra}
|
|
4879
|
+
window.${xo} = ${$a}
|
|
4880
|
+
`, No = G === "react", Ba = (e, t, n) => `window.${$o}(${JSON.stringify(e)}, "${t}", ${No}${n ? `, "${n}"` : ""})`, ja = (e, t, n) => `window.${xo}(${JSON.stringify(e)}, "${t}", ${No}${n ? `, "${n}"` : ""})`, hn = {
|
|
4881
4881
|
"@type": "@builder.io/sdk:Element",
|
|
4882
4882
|
layerName: "Accordion item title",
|
|
4883
4883
|
responsiveStyles: {
|
|
@@ -5099,11 +5099,11 @@ const Na = () => `
|
|
|
5099
5099
|
}), Wa = ["data-index", "onClick"];
|
|
5100
5100
|
function La(e, t, n, r, o, i) {
|
|
5101
5101
|
const s = W("Blocks");
|
|
5102
|
-
return v(),
|
|
5102
|
+
return v(), w("div", {
|
|
5103
5103
|
class: "builder-accordion",
|
|
5104
5104
|
style: Pe(e.accordionStyles)
|
|
5105
5105
|
}, [
|
|
5106
|
-
(v(!0),
|
|
5106
|
+
(v(!0), w(z, null, ve(e.items, (u, c) => (v(), w(z, { key: c }, [
|
|
5107
5107
|
Ge("div", {
|
|
5108
5108
|
class: gt(e.getAccordionTitleClassName(c)),
|
|
5109
5109
|
style: Pe({
|
|
@@ -5116,7 +5116,7 @@ function La(e, t, n, r, o, i) {
|
|
|
5116
5116
|
"data-index": c,
|
|
5117
5117
|
onClick: async (m) => e.onClick(c)
|
|
5118
5118
|
}, [
|
|
5119
|
-
|
|
5119
|
+
ee(s, {
|
|
5120
5120
|
blocks: u.title,
|
|
5121
5121
|
path: `items.${c}.title`,
|
|
5122
5122
|
parent: e.builderBlock.id,
|
|
@@ -5125,12 +5125,12 @@ function La(e, t, n, r, o, i) {
|
|
|
5125
5125
|
linkComponent: e.builderLinkComponent
|
|
5126
5126
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
5127
5127
|
], 14, Wa),
|
|
5128
|
-
e.open.includes(c) ? (v(),
|
|
5128
|
+
e.open.includes(c) ? (v(), w("div", {
|
|
5129
5129
|
key: 0,
|
|
5130
5130
|
class: gt(e.getAccordionDetailClassName(c)),
|
|
5131
5131
|
style: Pe(e.accordionDetailStyles)
|
|
5132
5132
|
}, [
|
|
5133
|
-
|
|
5133
|
+
ee(s, {
|
|
5134
5134
|
blocks: u.detail,
|
|
5135
5135
|
path: `items.${c}.detail`,
|
|
5136
5136
|
parent: e.builderBlock.id,
|
|
@@ -5391,7 +5391,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5391
5391
|
hidden: !0,
|
|
5392
5392
|
canHaveChildren: !0,
|
|
5393
5393
|
noWrap: !0
|
|
5394
|
-
},
|
|
5394
|
+
}, _n = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], za = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], qa = {
|
|
5395
5395
|
name: "Image",
|
|
5396
5396
|
static: !0,
|
|
5397
5397
|
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",
|
|
@@ -5406,7 +5406,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5406
5406
|
name: "image",
|
|
5407
5407
|
type: "file",
|
|
5408
5408
|
bubble: !0,
|
|
5409
|
-
allowedFileTypes:
|
|
5409
|
+
allowedFileTypes: _n,
|
|
5410
5410
|
required: !0,
|
|
5411
5411
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
5412
5412
|
onChange: (e) => {
|
|
@@ -5539,9 +5539,9 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5539
5539
|
defaultValue: []
|
|
5540
5540
|
}]
|
|
5541
5541
|
}]
|
|
5542
|
-
},
|
|
5542
|
+
}, Jn = B({
|
|
5543
5543
|
render() {
|
|
5544
|
-
return
|
|
5544
|
+
return zr("script", {
|
|
5545
5545
|
innerHTML: this.scriptStr,
|
|
5546
5546
|
"data-id": this.id,
|
|
5547
5547
|
nonce: this.nonce
|
|
@@ -5554,7 +5554,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5554
5554
|
components: {
|
|
5555
5555
|
Blocks: Ue,
|
|
5556
5556
|
InlinedStyles: Ht,
|
|
5557
|
-
InlinedScript:
|
|
5557
|
+
InlinedScript: Jn
|
|
5558
5558
|
},
|
|
5559
5559
|
props: [
|
|
5560
5560
|
"builderContext",
|
|
@@ -5584,9 +5584,9 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5584
5584
|
Xe((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
5585
5585
|
),
|
|
5586
5586
|
shouldResetVariants: !1,
|
|
5587
|
-
TARGET:
|
|
5587
|
+
TARGET: G,
|
|
5588
5588
|
DEFAULT_INDEX: Nt,
|
|
5589
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
5589
|
+
SDKS_REQUIRING_RESET_APPROACH: Oo
|
|
5590
5590
|
};
|
|
5591
5591
|
},
|
|
5592
5592
|
mounted() {
|
|
@@ -5597,10 +5597,10 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5597
5597
|
this.userAttributes = n;
|
|
5598
5598
|
},
|
|
5599
5599
|
{
|
|
5600
|
-
fireImmediately:
|
|
5600
|
+
fireImmediately: G === "qwik"
|
|
5601
5601
|
}
|
|
5602
5602
|
);
|
|
5603
|
-
if (!(oe() ||
|
|
5603
|
+
if (!(oe() || Hn())) {
|
|
5604
5604
|
const n = this.filteredVariants[0];
|
|
5605
5605
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
5606
5606
|
new CustomEvent("builder.variantLoaded", {
|
|
@@ -5675,9 +5675,9 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5675
5675
|
}
|
|
5676
5676
|
});
|
|
5677
5677
|
function Ja(e, t, n, r, o, i) {
|
|
5678
|
-
var m, y, b, h, S, A, $, H,
|
|
5678
|
+
var m, y, b, h, S, A, $, H, te, E;
|
|
5679
5679
|
const s = W("Blocks"), u = W("InlinedStyles"), c = W("InlinedScript");
|
|
5680
|
-
return v(),
|
|
5680
|
+
return v(), w("div", q({ ref: "rootRef" }, e.attrs), [
|
|
5681
5681
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (v(), U(s, {
|
|
5682
5682
|
key: 0,
|
|
5683
5683
|
blocks: e.blocksToRender.blocks,
|
|
@@ -5690,27 +5690,27 @@ function Ja(e, t, n, r, o, i) {
|
|
|
5690
5690
|
"data-variant-id": `${(b = e.builderBlock) == null ? void 0 : b.id}-${e.blocksToRender.index}`
|
|
5691
5691
|
}
|
|
5692
5692
|
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : F("", !0),
|
|
5693
|
-
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (v(),
|
|
5694
|
-
e.shouldRenderVariants ? (v(),
|
|
5695
|
-
|
|
5693
|
+
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (v(), w(z, { key: 1 }, [
|
|
5694
|
+
e.shouldRenderVariants ? (v(), w(z, { key: 0 }, [
|
|
5695
|
+
ee(u, {
|
|
5696
5696
|
nonce: ((h = e.builderContext) == null ? void 0 : h.nonce) || "",
|
|
5697
5697
|
styles: e.hideVariantsStyleString,
|
|
5698
5698
|
id: `variants-styles-${(S = e.builderBlock) == null ? void 0 : S.id}`
|
|
5699
5699
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
5700
|
-
|
|
5700
|
+
ee(c, {
|
|
5701
5701
|
nonce: ((A = e.builderContext) == null ? void 0 : A.nonce) || "",
|
|
5702
5702
|
scriptStr: e.updateVisibilityStylesScript,
|
|
5703
5703
|
id: `variants-visibility-script-${($ = e.builderBlock) == null ? void 0 : $.id}`
|
|
5704
5704
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
5705
|
-
(v(!0),
|
|
5706
|
-
var Ae, K,
|
|
5705
|
+
(v(!0), w(z, null, ve(e.variants, (D, ie) => {
|
|
5706
|
+
var Ae, K, _, R;
|
|
5707
5707
|
return v(), U(s, {
|
|
5708
5708
|
key: `${(Ae = e.builderBlock) == null ? void 0 : Ae.id}-${ie}`,
|
|
5709
5709
|
BlocksWrapperProps: {
|
|
5710
5710
|
...(K = e.builderContext) == null ? void 0 : K.BlocksWrapperProps,
|
|
5711
5711
|
"aria-hidden": !0,
|
|
5712
5712
|
hidden: !0,
|
|
5713
|
-
"data-variant-id": `${(
|
|
5713
|
+
"data-variant-id": `${(_ = e.builderBlock) == null ? void 0 : _.id}-${ie}`
|
|
5714
5714
|
},
|
|
5715
5715
|
blocks: D.blocks,
|
|
5716
5716
|
parent: (R = e.builderBlock) == null ? void 0 : R.id,
|
|
@@ -5721,7 +5721,7 @@ function Ja(e, t, n, r, o, i) {
|
|
|
5721
5721
|
default: me(() => {
|
|
5722
5722
|
var We, L;
|
|
5723
5723
|
return [
|
|
5724
|
-
|
|
5724
|
+
ee(c, {
|
|
5725
5725
|
nonce: ((We = e.builderContext) == null ? void 0 : We.nonce) || "",
|
|
5726
5726
|
scriptStr: e.scriptStr,
|
|
5727
5727
|
id: `variants-script-${(L = e.builderBlock) == null ? void 0 : L.id}-${ie}`
|
|
@@ -5732,15 +5732,15 @@ function Ja(e, t, n, r, o, i) {
|
|
|
5732
5732
|
}, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
|
|
5733
5733
|
}), 128))
|
|
5734
5734
|
], 64)) : F("", !0),
|
|
5735
|
-
|
|
5735
|
+
ee(s, {
|
|
5736
5736
|
blocks: e.blocksToRender.blocks,
|
|
5737
5737
|
parent: (H = e.builderBlock) == null ? void 0 : H.id,
|
|
5738
5738
|
path: e.blocksToRender.path,
|
|
5739
5739
|
context: e.builderContext,
|
|
5740
5740
|
registeredComponents: e.builderComponents,
|
|
5741
5741
|
BlocksWrapperProps: {
|
|
5742
|
-
...(
|
|
5743
|
-
"data-variant-id": `${(
|
|
5742
|
+
...(te = e.builderContext) == null ? void 0 : te.BlocksWrapperProps,
|
|
5743
|
+
"data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${e.blocksToRender.index}`
|
|
5744
5744
|
}
|
|
5745
5745
|
}, {
|
|
5746
5746
|
default: me(() => {
|
|
@@ -5823,7 +5823,7 @@ const Xa = /* @__PURE__ */ j(_a, [["render", Ja]]), Ya = {
|
|
|
5823
5823
|
function el(e, t, n, r, o, i) {
|
|
5824
5824
|
var u, c, m;
|
|
5825
5825
|
const s = W("Blocks");
|
|
5826
|
-
return v(),
|
|
5826
|
+
return v(), w("div", q(
|
|
5827
5827
|
{ style: {
|
|
5828
5828
|
pointerEvents: "auto"
|
|
5829
5829
|
} },
|
|
@@ -5831,7 +5831,7 @@ function el(e, t, n, r, o, i) {
|
|
|
5831
5831
|
"builder-slot": e.name
|
|
5832
5832
|
}
|
|
5833
5833
|
), [
|
|
5834
|
-
|
|
5834
|
+
ee(s, {
|
|
5835
5835
|
parent: (c = e.builderContext.context) == null ? void 0 : c.symbolId,
|
|
5836
5836
|
path: `symbol.data.${e.name}`,
|
|
5837
5837
|
context: e.builderContext,
|
|
@@ -6051,7 +6051,7 @@ const tl = /* @__PURE__ */ j(Za, [["render", el]]), nl = {
|
|
|
6051
6051
|
}), il = ["onClick"], sl = { key: 0 };
|
|
6052
6052
|
function al(e, t, n, r, o, i) {
|
|
6053
6053
|
const s = W("Blocks");
|
|
6054
|
-
return v(),
|
|
6054
|
+
return v(), w("div", null, [
|
|
6055
6055
|
Ge("div", {
|
|
6056
6056
|
class: "builder-tabs-wrap",
|
|
6057
6057
|
style: Pe({
|
|
@@ -6061,13 +6061,13 @@ function al(e, t, n, r, o, i) {
|
|
|
6061
6061
|
overflow: "auto"
|
|
6062
6062
|
})
|
|
6063
6063
|
}, [
|
|
6064
|
-
(v(!0),
|
|
6064
|
+
(v(!0), w(z, null, ve(e.tabs, (u, c) => (v(), w("span", {
|
|
6065
6065
|
key: c,
|
|
6066
6066
|
class: gt(`builder-tab-wrap ${e.activeTab === c ? "builder-tab-active" : ""}`),
|
|
6067
6067
|
style: Pe(e.getTabStyle(c)),
|
|
6068
6068
|
onClick: async (m) => e.onClick(c)
|
|
6069
6069
|
}, [
|
|
6070
|
-
|
|
6070
|
+
ee(s, {
|
|
6071
6071
|
parent: e.builderBlock.id,
|
|
6072
6072
|
path: `tabs.${c}.label`,
|
|
6073
6073
|
blocks: u.label,
|
|
@@ -6077,8 +6077,8 @@ function al(e, t, n, r, o, i) {
|
|
|
6077
6077
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
6078
6078
|
], 14, il))), 128))
|
|
6079
6079
|
], 4),
|
|
6080
|
-
e.activeTabContent(e.activeTab) ? (v(),
|
|
6081
|
-
|
|
6080
|
+
e.activeTabContent(e.activeTab) ? (v(), w("div", sl, [
|
|
6081
|
+
ee(s, {
|
|
6082
6082
|
parent: e.builderBlock.id,
|
|
6083
6083
|
path: `tabs.${e.activeTab}.content`,
|
|
6084
6084
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -6113,7 +6113,7 @@ const ll = /* @__PURE__ */ j(ol, [["render", al]]), ul = {
|
|
|
6113
6113
|
}), pl = ["innerHTML"];
|
|
6114
6114
|
function dl(e, t, n, r, o, i) {
|
|
6115
6115
|
var s;
|
|
6116
|
-
return v(),
|
|
6116
|
+
return v(), w("div", {
|
|
6117
6117
|
class: "builder-text",
|
|
6118
6118
|
innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
|
|
6119
6119
|
style: {
|
|
@@ -6204,7 +6204,7 @@ const fl = /* @__PURE__ */ j(cl, [["render", dl]]), hl = {
|
|
|
6204
6204
|
}
|
|
6205
6205
|
}), gl = ["innerHTML"];
|
|
6206
6206
|
function yl(e, t, n, r, o, i) {
|
|
6207
|
-
return v(),
|
|
6207
|
+
return v(), w("div", {
|
|
6208
6208
|
ref: "elementRef",
|
|
6209
6209
|
class: gt("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
6210
6210
|
innerHTML: e.code
|
|
@@ -6269,7 +6269,7 @@ const vl = /* @__PURE__ */ j(ml, [["render", yl]]), bl = {
|
|
|
6269
6269
|
}
|
|
6270
6270
|
}), wl = ["innerHTML"];
|
|
6271
6271
|
function Tl(e, t, n, r, o, i) {
|
|
6272
|
-
return v(),
|
|
6272
|
+
return v(), w("div", {
|
|
6273
6273
|
class: "builder-embed",
|
|
6274
6274
|
ref: "elem",
|
|
6275
6275
|
innerHTML: e.content
|
|
@@ -6608,7 +6608,7 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6608
6608
|
else {
|
|
6609
6609
|
const h = {};
|
|
6610
6610
|
Array.from(u).forEach(({ value: S, key: A }) => {
|
|
6611
|
-
|
|
6611
|
+
po(h, A, S);
|
|
6612
6612
|
}), i = JSON.stringify(h);
|
|
6613
6613
|
}
|
|
6614
6614
|
c && c !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (o["content-type"] = c));
|
|
@@ -6629,7 +6629,7 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6629
6629
|
const y = `${Al() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
6630
6630
|
this.sendSubmissionsToEmail || ""
|
|
6631
6631
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? y : this.action;
|
|
6632
|
-
|
|
6632
|
+
$n(b), fetch(b, {
|
|
6633
6633
|
body: i,
|
|
6634
6634
|
headers: o,
|
|
6635
6635
|
method: this.method || "post"
|
|
@@ -6639,43 +6639,43 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6639
6639
|
let S;
|
|
6640
6640
|
const A = h.headers.get("content-type");
|
|
6641
6641
|
if (A && A.indexOf("application/json") !== -1 ? S = await h.json() : S = await h.text(), !h.ok) {
|
|
6642
|
-
const
|
|
6642
|
+
const te = new CustomEvent("submit:error", {
|
|
6643
6643
|
detail: {
|
|
6644
6644
|
error: S,
|
|
6645
6645
|
status: h.status
|
|
6646
6646
|
}
|
|
6647
6647
|
});
|
|
6648
6648
|
if (($ = this.$refs.formRef) != null && $.nativeElement && ((H = this.$refs.formRef) == null || H.nativeElement.dispatchEvent(
|
|
6649
|
-
|
|
6650
|
-
),
|
|
6649
|
+
te
|
|
6650
|
+
), te.defaultPrevented))
|
|
6651
6651
|
return;
|
|
6652
6652
|
this.responseData = S, this.formState = "error";
|
|
6653
|
-
let
|
|
6654
|
-
typeof
|
|
6655
|
-
formErrorMessage:
|
|
6653
|
+
let E = this.errorMessagePath ? Gr(S, this.errorMessagePath) : S.message || S.error || S;
|
|
6654
|
+
typeof E != "string" && (E = JSON.stringify(E)), this.formErrorMessage = E, this.mergeNewRootState({
|
|
6655
|
+
formErrorMessage: E
|
|
6656
6656
|
});
|
|
6657
6657
|
return;
|
|
6658
6658
|
}
|
|
6659
6659
|
if (this.responseData = S, this.formState = h.ok ? "success" : "error", h.ok) {
|
|
6660
|
-
const
|
|
6660
|
+
const te = new CustomEvent("submit:success", {
|
|
6661
6661
|
detail: {
|
|
6662
6662
|
res: h,
|
|
6663
6663
|
body: S
|
|
6664
6664
|
}
|
|
6665
6665
|
});
|
|
6666
6666
|
if (this.$refs.formRef) {
|
|
6667
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
6667
|
+
if (this.$refs.formRef.dispatchEvent(te), te.defaultPrevented)
|
|
6668
6668
|
return;
|
|
6669
6669
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
6670
6670
|
}
|
|
6671
6671
|
if (this.successUrl)
|
|
6672
6672
|
if (this.$refs.formRef) {
|
|
6673
|
-
const
|
|
6673
|
+
const E = new CustomEvent("route", {
|
|
6674
6674
|
detail: {
|
|
6675
6675
|
url: this.successUrl
|
|
6676
6676
|
}
|
|
6677
6677
|
});
|
|
6678
|
-
this.$refs.formRef.dispatchEvent(
|
|
6678
|
+
this.$refs.formRef.dispatchEvent(E), E.defaultPrevented || (location.href = this.successUrl);
|
|
6679
6679
|
} else
|
|
6680
6680
|
location.href = this.successUrl;
|
|
6681
6681
|
}
|
|
@@ -6694,11 +6694,11 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6694
6694
|
}
|
|
6695
6695
|
}), xl = ["validate", "action", "method", "name"], Pl = {
|
|
6696
6696
|
key: 2,
|
|
6697
|
-
class: "builder-form-error-text pre-
|
|
6697
|
+
class: "builder-form-error-text pre-1hjwvu3r5mj"
|
|
6698
6698
|
};
|
|
6699
6699
|
function Ol(e, t, n, r, o, i) {
|
|
6700
6700
|
const s = W("Blocks");
|
|
6701
|
-
return v(),
|
|
6701
|
+
return v(), w("form", q({
|
|
6702
6702
|
validate: e.validate,
|
|
6703
6703
|
ref: "formRef",
|
|
6704
6704
|
action: !e.sendWithJs && e.action,
|
|
@@ -6719,7 +6719,7 @@ function Ol(e, t, n, r, o, i) {
|
|
|
6719
6719
|
blocks: e.sendingMessage,
|
|
6720
6720
|
context: e.builderContext
|
|
6721
6721
|
}, null, 8, ["blocks", "context"])) : F("", !0),
|
|
6722
|
-
e.submissionState() === "error" && e.responseData ? (v(),
|
|
6722
|
+
e.submissionState() === "error" && e.responseData ? (v(), w("pre", Pl, Wt(e.errorResponse(e.responseData)), 1)) : F("", !0),
|
|
6723
6723
|
e.submissionState() === "success" ? (v(), U(s, {
|
|
6724
6724
|
key: 3,
|
|
6725
6725
|
path: "successMessage",
|
|
@@ -6728,7 +6728,7 @@ function Ol(e, t, n, r, o, i) {
|
|
|
6728
6728
|
}, null, 8, ["blocks", "context"])) : F("", !0)
|
|
6729
6729
|
], 16, xl);
|
|
6730
6730
|
}
|
|
6731
|
-
const Nl = /* @__PURE__ */ j($l, [["render", Ol], ["__scopeId", "data-v-
|
|
6731
|
+
const Nl = /* @__PURE__ */ j($l, [["render", Ol], ["__scopeId", "data-v-3c8c685f"]]), Bl = {
|
|
6732
6732
|
name: "Form:Input",
|
|
6733
6733
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
6734
6734
|
inputs: [
|
|
@@ -6795,7 +6795,7 @@ const Nl = /* @__PURE__ */ j($l, [["render", Ol], ["__scopeId", "data-v-77c7888c
|
|
|
6795
6795
|
}
|
|
6796
6796
|
}), Vl = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
6797
6797
|
function Dl(e, t, n, r, o, i) {
|
|
6798
|
-
return v(),
|
|
6798
|
+
return v(), w("input", q({
|
|
6799
6799
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
6800
6800
|
placeholder: e.placeholder,
|
|
6801
6801
|
type: e.type,
|
|
@@ -6855,14 +6855,14 @@ const Ul = /* @__PURE__ */ j(jl, [["render", Dl]]), Wl = {
|
|
|
6855
6855
|
}
|
|
6856
6856
|
}), Fl = ["value", "defaultValue", "name", "required"], Ml = ["value"];
|
|
6857
6857
|
function Hl(e, t, n, r, o, i) {
|
|
6858
|
-
return v(),
|
|
6858
|
+
return v(), w("select", q({
|
|
6859
6859
|
value: e.value,
|
|
6860
6860
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
6861
6861
|
defaultValue: e.defaultValue,
|
|
6862
6862
|
name: e.name,
|
|
6863
6863
|
required: e.required
|
|
6864
6864
|
}, e.filterAttrs(e.attributes, "v-on:", !1), ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
6865
|
-
(v(!0),
|
|
6865
|
+
(v(!0), w(z, null, ve(e.options, (s, u) => (v(), w("option", {
|
|
6866
6866
|
key: `${s.name}-${u}`,
|
|
6867
6867
|
value: s.value
|
|
6868
6868
|
}, Wt(s.name || s.value), 9, Ml))), 128))
|
|
@@ -6901,7 +6901,7 @@ const Kl = /* @__PURE__ */ j(Ll, [["render", Hl]]), zl = {
|
|
|
6901
6901
|
}
|
|
6902
6902
|
});
|
|
6903
6903
|
function Gl(e, t, n, r, o, i) {
|
|
6904
|
-
return v(),
|
|
6904
|
+
return v(), w("button", q({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), Wt(e.text), 17);
|
|
6905
6905
|
}
|
|
6906
6906
|
const _l = /* @__PURE__ */ j(ql, [["render", Gl]]), Jl = {
|
|
6907
6907
|
name: "Form:TextArea",
|
|
@@ -6954,7 +6954,7 @@ const _l = /* @__PURE__ */ j(ql, [["render", Gl]]), Jl = {
|
|
|
6954
6954
|
}
|
|
6955
6955
|
}), Yl = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
6956
6956
|
function Ql(e, t, n, r, o, i) {
|
|
6957
|
-
return v(),
|
|
6957
|
+
return v(), w("textarea", q({
|
|
6958
6958
|
placeholder: e.placeholder,
|
|
6959
6959
|
name: e.name,
|
|
6960
6960
|
value: e.value,
|
|
@@ -6970,7 +6970,7 @@ const Zl = /* @__PURE__ */ j(Xl, [["render", Ql]]), eu = {
|
|
|
6970
6970
|
name: "image",
|
|
6971
6971
|
bubble: !0,
|
|
6972
6972
|
type: "file",
|
|
6973
|
-
allowedFileTypes:
|
|
6973
|
+
allowedFileTypes: _n,
|
|
6974
6974
|
required: !0
|
|
6975
6975
|
}, {
|
|
6976
6976
|
name: "backgroundSize",
|
|
@@ -7039,7 +7039,7 @@ const Zl = /* @__PURE__ */ j(Xl, [["render", Ql]]), eu = {
|
|
|
7039
7039
|
}), nu = ["alt", "title", "src"];
|
|
7040
7040
|
function ru(e, t, n, r, o, i) {
|
|
7041
7041
|
var s;
|
|
7042
|
-
return v(),
|
|
7042
|
+
return v(), w("img", q({
|
|
7043
7043
|
loading: "lazy",
|
|
7044
7044
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
7045
7045
|
alt: e.altText,
|
|
@@ -7071,7 +7071,7 @@ const ou = /* @__PURE__ */ j(tu, [["render", ru]]), iu = {
|
|
|
7071
7071
|
}, {
|
|
7072
7072
|
name: "posterImage",
|
|
7073
7073
|
type: "file",
|
|
7074
|
-
allowedFileTypes:
|
|
7074
|
+
allowedFileTypes: _n,
|
|
7075
7075
|
helperText: "Image to show before the video plays"
|
|
7076
7076
|
}, {
|
|
7077
7077
|
name: "autoPlay",
|
|
@@ -7235,8 +7235,8 @@ const ou = /* @__PURE__ */ j(tu, [["render", ru]]), iu = {
|
|
|
7235
7235
|
};
|
|
7236
7236
|
function pu(e, t, n, r, o, i) {
|
|
7237
7237
|
var s, u, c, m, y, b, h;
|
|
7238
|
-
return v(),
|
|
7239
|
-
Ge("video",
|
|
7238
|
+
return v(), w("div", au, [
|
|
7239
|
+
Ge("video", q({
|
|
7240
7240
|
class: "builder-video",
|
|
7241
7241
|
ref: "videoRef",
|
|
7242
7242
|
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
@@ -7255,7 +7255,7 @@ function pu(e, t, n, r, o, i) {
|
|
|
7255
7255
|
},
|
|
7256
7256
|
poster: e.posterImage
|
|
7257
7257
|
}, e.spreadProps), [
|
|
7258
|
-
Ge("source",
|
|
7258
|
+
Ge("source", q(
|
|
7259
7259
|
{ type: "video/mp4" },
|
|
7260
7260
|
e.lazyLoad ? {
|
|
7261
7261
|
"data-src": e.video
|
|
@@ -7264,7 +7264,7 @@ function pu(e, t, n, r, o, i) {
|
|
|
7264
7264
|
}
|
|
7265
7265
|
), null, 16)
|
|
7266
7266
|
], 16, lu),
|
|
7267
|
-
e.aspectRatio && !(e.fitContent && ((c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length)) ? (v(),
|
|
7267
|
+
e.aspectRatio && !(e.fitContent && ((c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length)) ? (v(), w("div", {
|
|
7268
7268
|
key: 0,
|
|
7269
7269
|
style: Pe({
|
|
7270
7270
|
width: "100%",
|
|
@@ -7273,10 +7273,10 @@ function pu(e, t, n, r, o, i) {
|
|
|
7273
7273
|
fontSize: "0px"
|
|
7274
7274
|
})
|
|
7275
7275
|
}, null, 4)) : F("", !0),
|
|
7276
|
-
(y = (m = e.builderBlock) == null ? void 0 : m.children) != null && y.length && e.fitContent ? (v(),
|
|
7276
|
+
(y = (m = e.builderBlock) == null ? void 0 : m.children) != null && y.length && e.fitContent ? (v(), w("div", uu, [
|
|
7277
7277
|
pe(e.$slots, "default")
|
|
7278
7278
|
])) : F("", !0),
|
|
7279
|
-
(h = (b = e.builderBlock) == null ? void 0 : b.children) != null && h.length && !e.fitContent ? (v(),
|
|
7279
|
+
(h = (b = e.builderBlock) == null ? void 0 : b.children) != null && h.length && !e.fitContent ? (v(), w("div", cu, [
|
|
7280
7280
|
pe(e.$slots, "default")
|
|
7281
7281
|
])) : F("", !0)
|
|
7282
7282
|
]);
|
|
@@ -7308,7 +7308,7 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7308
7308
|
}, {
|
|
7309
7309
|
component: du,
|
|
7310
7310
|
...iu
|
|
7311
|
-
}],
|
|
7311
|
+
}], Mr = () => [{
|
|
7312
7312
|
component: oi,
|
|
7313
7313
|
...Ma
|
|
7314
7314
|
}, {
|
|
@@ -7327,12 +7327,12 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7327
7327
|
component: tl,
|
|
7328
7328
|
...Qa
|
|
7329
7329
|
}, {
|
|
7330
|
-
component:
|
|
7330
|
+
component: Yu,
|
|
7331
7331
|
...nl
|
|
7332
7332
|
}, {
|
|
7333
7333
|
component: fl,
|
|
7334
7334
|
...ul
|
|
7335
|
-
}, ...
|
|
7335
|
+
}, ...Po.includes(G) ? [{
|
|
7336
7336
|
component: Xa,
|
|
7337
7337
|
...Ga
|
|
7338
7338
|
}] : [], {
|
|
@@ -7434,59 +7434,37 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7434
7434
|
thisScriptEl?.remove();
|
|
7435
7435
|
}
|
|
7436
7436
|
return;
|
|
7437
|
-
}`,
|
|
7437
|
+
}`, En = "builderIoAbTest", In = "builderIoRenderContent", Bt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
7438
7438
|
...t,
|
|
7439
7439
|
testVariationId: t.id,
|
|
7440
7440
|
id: e == null ? void 0 : e.id
|
|
7441
7441
|
})), gu = ({
|
|
7442
7442
|
canTrack: e,
|
|
7443
7443
|
content: t
|
|
7444
|
-
}) => !(!(Bt(t).length > 0) || !e), yu = (e) => e === "react" || e === "reactNative", vu =
|
|
7444
|
+
}) => !(!(Bt(t).length > 0) || !e), yu = (e) => e === "react" || e === "reactNative", vu = G === "angular", Xn = yu(G), bu = () => `
|
|
7445
7445
|
(function() {
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
script.parentNode && script.parentNode.removeChild(script);
|
|
7455
|
-
}
|
|
7456
|
-
});
|
|
7457
|
-
|
|
7458
|
-
// Watch for duplicates added later (e.g. RSC streaming chunks)
|
|
7459
|
-
if (!window[observerKey] && typeof MutationObserver !== 'undefined') {
|
|
7460
|
-
window[observerKey] = new MutationObserver(function() {
|
|
7461
|
-
var all = document.querySelectorAll(selector);
|
|
7462
|
-
for (var i = 1; i < all.length; i++) {
|
|
7463
|
-
all[i].parentNode && all[i].parentNode.removeChild(all[i]);
|
|
7464
|
-
}
|
|
7465
|
-
});
|
|
7466
|
-
window[observerKey].observe(document.documentElement, { childList: true, subtree: true });
|
|
7467
|
-
}
|
|
7468
|
-
|
|
7469
|
-
if (!window[scriptKey]) {
|
|
7470
|
-
window[scriptKey] = true;
|
|
7471
|
-
${t}
|
|
7472
|
-
}
|
|
7446
|
+
if (!window.${En}) {
|
|
7447
|
+
window.${En} = ${hu};
|
|
7448
|
+
}
|
|
7449
|
+
if (!window.${In}) {
|
|
7450
|
+
window.${In} = ${mu};
|
|
7451
|
+
}${Xn ? `
|
|
7452
|
+
var thisScriptEl = document.currentScript;
|
|
7453
|
+
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
7473
7454
|
})();
|
|
7474
|
-
`, Su = () => `
|
|
7475
|
-
window.${
|
|
7476
|
-
|
|
7477
|
-
`, ku = (
|
|
7478
|
-
window.${Po}(
|
|
7479
|
-
"${t}",${JSON.stringify(e)}, ${No}, ${vu}
|
|
7480
|
-
)`, Cu = ({
|
|
7455
|
+
`, Su = (e, t) => `
|
|
7456
|
+
window.${En}(
|
|
7457
|
+
"${t}",${JSON.stringify(e)}, ${Xn}, ${vu}
|
|
7458
|
+
)`, ku = ({
|
|
7481
7459
|
contentId: e,
|
|
7482
7460
|
variationId: t
|
|
7483
|
-
}) => `window.${
|
|
7484
|
-
"${t}", "${e}", ${
|
|
7461
|
+
}) => `window.${In}(
|
|
7462
|
+
"${t}", "${e}", ${Xn}
|
|
7485
7463
|
)`;
|
|
7486
|
-
function
|
|
7464
|
+
function Hr(e) {
|
|
7487
7465
|
return Math.round(e * 1e3) / 1e3;
|
|
7488
7466
|
}
|
|
7489
|
-
const
|
|
7467
|
+
const Cu = (e, t, n = !0) => {
|
|
7490
7468
|
if (!(e instanceof HTMLElement))
|
|
7491
7469
|
return null;
|
|
7492
7470
|
let r = n ? e : e.parentElement;
|
|
@@ -7497,35 +7475,35 @@ const wu = (e, t, n = !0) => {
|
|
|
7497
7475
|
return r;
|
|
7498
7476
|
} while (r = r.parentElement);
|
|
7499
7477
|
return null;
|
|
7500
|
-
},
|
|
7478
|
+
}, wu = (e) => Cu(e, (t) => {
|
|
7501
7479
|
const n = t.getAttribute("builder-id") || t.id;
|
|
7502
7480
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
7503
|
-
}),
|
|
7481
|
+
}), Kr = ({
|
|
7504
7482
|
event: e,
|
|
7505
7483
|
target: t
|
|
7506
7484
|
}) => {
|
|
7507
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i =
|
|
7485
|
+
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i = Hr(r / n.width), s = Hr(o / n.height);
|
|
7508
7486
|
return {
|
|
7509
7487
|
x: i,
|
|
7510
7488
|
y: s
|
|
7511
7489
|
};
|
|
7512
|
-
},
|
|
7513
|
-
const t = e.target, n = t &&
|
|
7490
|
+
}, Tu = (e) => {
|
|
7491
|
+
const t = e.target, n = t && wu(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
7514
7492
|
return {
|
|
7515
7493
|
targetBuilderElement: r || void 0,
|
|
7516
7494
|
metadata: {
|
|
7517
|
-
targetOffset: t ?
|
|
7495
|
+
targetOffset: t ? Kr({
|
|
7518
7496
|
event: e,
|
|
7519
7497
|
target: t
|
|
7520
7498
|
}) : void 0,
|
|
7521
|
-
builderTargetOffset: n ?
|
|
7499
|
+
builderTargetOffset: n ? Kr({
|
|
7522
7500
|
event: e,
|
|
7523
7501
|
target: n
|
|
7524
7502
|
}) : void 0,
|
|
7525
7503
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
7526
7504
|
}
|
|
7527
7505
|
};
|
|
7528
|
-
},
|
|
7506
|
+
}, Eu = ["svelte", "qwik", "vue"], Iu = () => Eu.includes(G) && (oe() || Hn()), Ru = (e) => {
|
|
7529
7507
|
var i;
|
|
7530
7508
|
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);
|
|
7531
7509
|
let o = "";
|
|
@@ -7551,15 +7529,15 @@ font-weight: ${s};
|
|
|
7551
7529
|
`.trim());
|
|
7552
7530
|
}
|
|
7553
7531
|
return o;
|
|
7554
|
-
},
|
|
7532
|
+
}, Au = ({
|
|
7555
7533
|
customFonts: e
|
|
7556
7534
|
}) => {
|
|
7557
7535
|
var t;
|
|
7558
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
7559
|
-
},
|
|
7536
|
+
return ((t = e == null ? void 0 : e.map((n) => Ru(n))) == null ? void 0 : t.join(" ")) || "";
|
|
7537
|
+
}, $u = ({
|
|
7560
7538
|
cssCode: e,
|
|
7561
7539
|
contentId: t
|
|
7562
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
7540
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", xu = `
|
|
7563
7541
|
.builder-button {
|
|
7564
7542
|
all: unset;
|
|
7565
7543
|
}
|
|
@@ -7576,7 +7554,7 @@ font-weight: ${s};
|
|
|
7576
7554
|
text-align: inherit;
|
|
7577
7555
|
font-family: inherit;
|
|
7578
7556
|
}
|
|
7579
|
-
`,
|
|
7557
|
+
`, Pu = (e) => e ? "" : xu, Ou = (e) => `variant-${e}`, Nu = B({
|
|
7580
7558
|
name: "enable-editor",
|
|
7581
7559
|
components: { DynamicDiv: Ct },
|
|
7582
7560
|
props: [
|
|
@@ -7607,8 +7585,8 @@ font-weight: ${s};
|
|
|
7607
7585
|
httpReqsPending: {},
|
|
7608
7586
|
clicked: !1,
|
|
7609
7587
|
builderContext: vn,
|
|
7610
|
-
needsElementRefDivForEditing:
|
|
7611
|
-
getWrapperClassName:
|
|
7588
|
+
needsElementRefDivForEditing: Iu,
|
|
7589
|
+
getWrapperClassName: Ou
|
|
7612
7590
|
};
|
|
7613
7591
|
},
|
|
7614
7592
|
provide() {
|
|
@@ -7641,7 +7619,7 @@ font-weight: ${s};
|
|
|
7641
7619
|
variationId: o !== s ? o : void 0
|
|
7642
7620
|
});
|
|
7643
7621
|
}
|
|
7644
|
-
|
|
7622
|
+
Hn() && !oe() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
7645
7623
|
new CustomEvent("initpreviewingbldr")
|
|
7646
7624
|
);
|
|
7647
7625
|
}
|
|
@@ -7743,7 +7721,7 @@ font-weight: ${s};
|
|
|
7743
7721
|
this.builderContextSignal.content = n;
|
|
7744
7722
|
},
|
|
7745
7723
|
processMessage(e) {
|
|
7746
|
-
return
|
|
7724
|
+
return go({
|
|
7747
7725
|
model: this.model,
|
|
7748
7726
|
trustedHosts: this.trustedHosts,
|
|
7749
7727
|
callbacks: {
|
|
@@ -7757,7 +7735,7 @@ font-weight: ${s};
|
|
|
7757
7735
|
});
|
|
7758
7736
|
},
|
|
7759
7737
|
animation: (t) => {
|
|
7760
|
-
|
|
7738
|
+
wo(t);
|
|
7761
7739
|
},
|
|
7762
7740
|
contentUpdate: (t, n) => {
|
|
7763
7741
|
this.mergeNewContent(t, n);
|
|
@@ -7779,7 +7757,7 @@ font-weight: ${s};
|
|
|
7779
7757
|
contentId: o,
|
|
7780
7758
|
apiKey: this.apiKey,
|
|
7781
7759
|
variationId: r !== o ? r : void 0,
|
|
7782
|
-
...
|
|
7760
|
+
...Tu(e),
|
|
7783
7761
|
unique: !this.clicked
|
|
7784
7762
|
});
|
|
7785
7763
|
}
|
|
@@ -7817,7 +7795,7 @@ font-weight: ${s};
|
|
|
7817
7795
|
url: u,
|
|
7818
7796
|
method: "GET"
|
|
7819
7797
|
};
|
|
7820
|
-
|
|
7798
|
+
$n(JSON.stringify(c));
|
|
7821
7799
|
const m = {
|
|
7822
7800
|
method: c.method,
|
|
7823
7801
|
headers: c.headers,
|
|
@@ -7845,7 +7823,7 @@ font-weight: ${s};
|
|
|
7845
7823
|
"builder:component:stateChange",
|
|
7846
7824
|
{
|
|
7847
7825
|
detail: {
|
|
7848
|
-
state:
|
|
7826
|
+
state: Mn(this.builderContextSignal.rootState),
|
|
7849
7827
|
ref: {
|
|
7850
7828
|
name: this.model
|
|
7851
7829
|
}
|
|
@@ -7855,7 +7833,7 @@ font-weight: ${s};
|
|
|
7855
7833
|
);
|
|
7856
7834
|
},
|
|
7857
7835
|
elementRef_onIniteditingbldr(e) {
|
|
7858
|
-
window.addEventListener("message", this.processMessage),
|
|
7836
|
+
window.addEventListener("message", this.processMessage), mo({
|
|
7859
7837
|
...this.locale ? {
|
|
7860
7838
|
locale: this.locale
|
|
7861
7839
|
} : {},
|
|
@@ -7885,7 +7863,7 @@ font-weight: ${s};
|
|
|
7885
7863
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), r = t.get(
|
|
7886
7864
|
`builder.overrides.${n}`
|
|
7887
7865
|
), o = t.get("apiKey") || t.get("builder.space");
|
|
7888
|
-
(n === "BUILDER_STUDIO" || n === this.model && o === this.apiKey && (!this.content || r === this.content.id)) &&
|
|
7866
|
+
(n === "BUILDER_STUDIO" || n === this.model && o === this.apiKey && (!this.content || r === this.content.id)) && qn({
|
|
7889
7867
|
model: this.model,
|
|
7890
7868
|
apiKey: this.apiKey,
|
|
7891
7869
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -7900,9 +7878,9 @@ font-weight: ${s};
|
|
|
7900
7878
|
}
|
|
7901
7879
|
}
|
|
7902
7880
|
});
|
|
7903
|
-
function
|
|
7881
|
+
function Bu(e, t, n, r, o, i) {
|
|
7904
7882
|
var s, u, c;
|
|
7905
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (v(), U(dt(e.ContentWrapper),
|
|
7883
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (v(), U(dt(e.ContentWrapper), q({
|
|
7906
7884
|
key: 0,
|
|
7907
7885
|
ref: "elementRef",
|
|
7908
7886
|
onClick: (m) => e.onClick(m),
|
|
@@ -7921,26 +7899,26 @@ function ju(e, t, n, r, o, i) {
|
|
|
7921
7899
|
_: 3
|
|
7922
7900
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : F("", !0);
|
|
7923
7901
|
}
|
|
7924
|
-
const
|
|
7902
|
+
const ju = /* @__PURE__ */ j(Nu, [["render", Bu]]), Vu = B({
|
|
7925
7903
|
name: "content-styles",
|
|
7926
7904
|
components: { InlinedStyles: Ht },
|
|
7927
7905
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
7928
7906
|
data() {
|
|
7929
7907
|
return {
|
|
7930
7908
|
injectedStyles: `
|
|
7931
|
-
${
|
|
7909
|
+
${$u({
|
|
7932
7910
|
cssCode: this.cssCode,
|
|
7933
7911
|
contentId: this.contentId
|
|
7934
7912
|
})}
|
|
7935
|
-
${
|
|
7913
|
+
${Au({
|
|
7936
7914
|
customFonts: this.customFonts
|
|
7937
7915
|
})}
|
|
7938
|
-
${
|
|
7916
|
+
${Pu(this.isNestedRender)}
|
|
7939
7917
|
`.trim()
|
|
7940
7918
|
};
|
|
7941
7919
|
}
|
|
7942
7920
|
});
|
|
7943
|
-
function
|
|
7921
|
+
function Du(e, t, n, r, o, i) {
|
|
7944
7922
|
const s = W("InlinedStyles");
|
|
7945
7923
|
return v(), U(s, {
|
|
7946
7924
|
id: "builderio-content",
|
|
@@ -7948,7 +7926,7 @@ function Uu(e, t, n, r, o, i) {
|
|
|
7948
7926
|
nonce: e.nonce
|
|
7949
7927
|
}, null, 8, ["styles", "nonce"]);
|
|
7950
7928
|
}
|
|
7951
|
-
const
|
|
7929
|
+
const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
7952
7930
|
content: e,
|
|
7953
7931
|
data: t,
|
|
7954
7932
|
locale: n
|
|
@@ -7965,7 +7943,7 @@ const Wu = /* @__PURE__ */ j(Du, [["render", Uu]]), Lu = ({
|
|
|
7965
7943
|
locale: n
|
|
7966
7944
|
} : {}
|
|
7967
7945
|
};
|
|
7968
|
-
},
|
|
7946
|
+
}, Lu = ({
|
|
7969
7947
|
content: e,
|
|
7970
7948
|
data: t
|
|
7971
7949
|
}) => e ? {
|
|
@@ -7975,12 +7953,12 @@ const Wu = /* @__PURE__ */ j(Du, [["render", Uu]]), Lu = ({
|
|
|
7975
7953
|
...t
|
|
7976
7954
|
},
|
|
7977
7955
|
meta: e == null ? void 0 : e.meta
|
|
7978
|
-
} : void 0,
|
|
7956
|
+
} : void 0, Fu = Yo, Mu = B({
|
|
7979
7957
|
name: "content-component",
|
|
7980
7958
|
components: {
|
|
7981
|
-
EnableEditor:
|
|
7982
|
-
InlinedScript:
|
|
7983
|
-
ContentStyles:
|
|
7959
|
+
EnableEditor: ju,
|
|
7960
|
+
InlinedScript: Jn,
|
|
7961
|
+
ContentStyles: Uu,
|
|
7984
7962
|
Blocks: Ue,
|
|
7985
7963
|
DynamicDiv: Ct
|
|
7986
7964
|
},
|
|
@@ -8010,32 +7988,32 @@ const Wu = /* @__PURE__ */ j(Du, [["render", Uu]]), Lu = ({
|
|
|
8010
7988
|
data() {
|
|
8011
7989
|
var e, t;
|
|
8012
7990
|
return {
|
|
8013
|
-
scriptStr:
|
|
7991
|
+
scriptStr: ku({
|
|
8014
7992
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
8015
7993
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
8016
7994
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
8017
7995
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
8018
7996
|
}),
|
|
8019
7997
|
registeredComponents: [
|
|
8020
|
-
...
|
|
7998
|
+
...Mr(),
|
|
8021
7999
|
...this.customComponents || []
|
|
8022
8000
|
].reduce(
|
|
8023
8001
|
(n, { component: r, ...o }) => ({
|
|
8024
8002
|
...n,
|
|
8025
8003
|
[o.name]: {
|
|
8026
|
-
component:
|
|
8004
|
+
component: Fu(r),
|
|
8027
8005
|
...Dt(o)
|
|
8028
8006
|
}
|
|
8029
8007
|
}),
|
|
8030
8008
|
{}
|
|
8031
8009
|
),
|
|
8032
8010
|
builderContextSignal: {
|
|
8033
|
-
content:
|
|
8011
|
+
content: Lu({
|
|
8034
8012
|
content: this.content,
|
|
8035
8013
|
data: this.data
|
|
8036
8014
|
}),
|
|
8037
8015
|
localState: void 0,
|
|
8038
|
-
rootState:
|
|
8016
|
+
rootState: Wu({
|
|
8039
8017
|
content: this.content,
|
|
8040
8018
|
data: this.data,
|
|
8041
8019
|
locale: this.locale
|
|
@@ -8046,7 +8024,7 @@ const Wu = /* @__PURE__ */ j(Du, [["render", Uu]]), Lu = ({
|
|
|
8046
8024
|
apiKey: this.apiKey,
|
|
8047
8025
|
apiVersion: this.apiVersion,
|
|
8048
8026
|
componentInfos: [
|
|
8049
|
-
...
|
|
8027
|
+
...Mr(),
|
|
8050
8028
|
...this.customComponents || []
|
|
8051
8029
|
].reduce(
|
|
8052
8030
|
(n, { component: r, ...o }) => ({
|
|
@@ -8061,13 +8039,13 @@ const Wu = /* @__PURE__ */ j(Du, [["render", Uu]]), Lu = ({
|
|
|
8061
8039
|
nonce: this.nonce || "",
|
|
8062
8040
|
model: this.model
|
|
8063
8041
|
},
|
|
8064
|
-
TARGET:
|
|
8042
|
+
TARGET: G
|
|
8065
8043
|
};
|
|
8066
8044
|
},
|
|
8067
8045
|
provide() {
|
|
8068
8046
|
const e = this;
|
|
8069
8047
|
return {
|
|
8070
|
-
[
|
|
8048
|
+
[qr.key]: {
|
|
8071
8049
|
registeredComponents: e.registeredComponents
|
|
8072
8050
|
}
|
|
8073
8051
|
};
|
|
@@ -8111,9 +8089,9 @@ const Wu = /* @__PURE__ */ j(Du, [["render", Uu]]), Lu = ({
|
|
|
8111
8089
|
}
|
|
8112
8090
|
}
|
|
8113
8091
|
});
|
|
8114
|
-
function
|
|
8092
|
+
function Hu(e, t, n, r, o, i) {
|
|
8115
8093
|
const s = W("InlinedScript"), u = W("ContentStyles"), c = W("Blocks"), m = W("EnableEditor");
|
|
8116
|
-
return v(), U(m,
|
|
8094
|
+
return v(), U(m, q({
|
|
8117
8095
|
apiHost: e.apiHost,
|
|
8118
8096
|
nonce: e.nonce,
|
|
8119
8097
|
content: e.content,
|
|
@@ -8148,7 +8126,7 @@ function Ku(e, t, n, r, o, i) {
|
|
|
8148
8126
|
cssCode: (h = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : h.cssCode,
|
|
8149
8127
|
customFonts: (A = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : A.customFonts
|
|
8150
8128
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : F("", !0),
|
|
8151
|
-
|
|
8129
|
+
ee(c, {
|
|
8152
8130
|
blocks: (H = ($ = e.builderContextSignal.content) == null ? void 0 : $.data) == null ? void 0 : H.blocks,
|
|
8153
8131
|
context: e.builderContextSignal,
|
|
8154
8132
|
registeredComponents: e.registeredComponents,
|
|
@@ -8159,12 +8137,12 @@ function Ku(e, t, n, r, o, i) {
|
|
|
8159
8137
|
_: 1
|
|
8160
8138
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
8161
8139
|
}
|
|
8162
|
-
const
|
|
8140
|
+
const Ku = /* @__PURE__ */ j(Mu, [["render", Hu]]), zu = B({
|
|
8163
8141
|
name: "content-variants",
|
|
8164
8142
|
components: {
|
|
8165
|
-
InlinedScript:
|
|
8143
|
+
InlinedScript: Jn,
|
|
8166
8144
|
InlinedStyles: Ht,
|
|
8167
|
-
ContentComponent:
|
|
8145
|
+
ContentComponent: Ku
|
|
8168
8146
|
},
|
|
8169
8147
|
props: [
|
|
8170
8148
|
"canTrack",
|
|
@@ -8193,12 +8171,11 @@ const zu = /* @__PURE__ */ j(Hu, [["render", Ku]]), qu = B({
|
|
|
8193
8171
|
canTrack: Xe(this.canTrack),
|
|
8194
8172
|
content: this.content
|
|
8195
8173
|
}),
|
|
8196
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
8174
|
+
SDKS_SUPPORTING_PERSONALIZATION: Po,
|
|
8197
8175
|
getInitPersonalizationVariantsFnsScriptString: Na,
|
|
8198
|
-
TARGET:
|
|
8199
|
-
getInitVariantsFnsScriptString:
|
|
8200
|
-
getVariants: Bt
|
|
8201
|
-
removeDuplicateScript: bu
|
|
8176
|
+
TARGET: G,
|
|
8177
|
+
getInitVariantsFnsScriptString: bu,
|
|
8178
|
+
getVariants: Bt
|
|
8202
8179
|
};
|
|
8203
8180
|
},
|
|
8204
8181
|
mounted() {
|
|
@@ -8206,7 +8183,7 @@ const zu = /* @__PURE__ */ j(Hu, [["render", Ku]]), qu = B({
|
|
|
8206
8183
|
computed: {
|
|
8207
8184
|
updateCookieAndStylesScriptStr() {
|
|
8208
8185
|
var e;
|
|
8209
|
-
return
|
|
8186
|
+
return Su(
|
|
8210
8187
|
Bt(this.content).map((t) => ({
|
|
8211
8188
|
id: t.testVariationId,
|
|
8212
8189
|
testRatio: t.testRatio
|
|
@@ -8229,39 +8206,34 @@ const zu = /* @__PURE__ */ j(Hu, [["render", Ku]]), qu = B({
|
|
|
8229
8206
|
}
|
|
8230
8207
|
}
|
|
8231
8208
|
});
|
|
8232
|
-
function
|
|
8209
|
+
function qu(e, t, n, r, o, i) {
|
|
8233
8210
|
const s = W("InlinedScript"), u = W("InlinedStyles"), c = W("ContentComponent");
|
|
8234
|
-
return v(),
|
|
8235
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (v(),
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
"
|
|
8240
|
-
e.
|
|
8241
|
-
),
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
scriptStr
|
|
8249
|
-
|
|
8250
|
-
e.getInitPersonalizationVariantsFnsScriptString()
|
|
8251
|
-
)
|
|
8252
|
-
}, null, 8, ["nonce", "scriptStr"])) : F("", !0),
|
|
8253
|
-
e.shouldRenderVariants ? (v(), I(X, { key: 2 }, [
|
|
8254
|
-
te(u, {
|
|
8211
|
+
return v(), w(z, null, [
|
|
8212
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (v(), w(z, { key: 0 }, [
|
|
8213
|
+
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (v(), U(s, {
|
|
8214
|
+
key: 0,
|
|
8215
|
+
id: "builderio-init-personalization-variants-fns",
|
|
8216
|
+
nonce: e.nonce || "",
|
|
8217
|
+
scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
|
|
8218
|
+
}, null, 8, ["nonce", "scriptStr"])) : F("", !0)
|
|
8219
|
+
], 64)) : F("", !0),
|
|
8220
|
+
e.shouldRenderVariants ? (v(), w(z, { key: 1 }, [
|
|
8221
|
+
ee(s, {
|
|
8222
|
+
id: "builderio-init-variants-fns",
|
|
8223
|
+
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
8224
|
+
nonce: e.nonce || ""
|
|
8225
|
+
}, null, 8, ["scriptStr", "nonce"]),
|
|
8226
|
+
ee(u, {
|
|
8255
8227
|
id: "builderio-variants",
|
|
8256
8228
|
styles: e.hideVariantsStyleString,
|
|
8257
8229
|
nonce: e.nonce || ""
|
|
8258
8230
|
}, null, 8, ["styles", "nonce"]),
|
|
8259
|
-
|
|
8231
|
+
ee(s, {
|
|
8260
8232
|
id: "builderio-variants-visibility",
|
|
8261
8233
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
8262
8234
|
nonce: e.nonce || ""
|
|
8263
8235
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
8264
|
-
(v(!0),
|
|
8236
|
+
(v(!0), w(z, null, ve(e.getVariants(e.content), (m, y) => (v(), U(c, q({
|
|
8265
8237
|
key: m.testVariationId,
|
|
8266
8238
|
apiHost: e.apiHost,
|
|
8267
8239
|
isNestedRender: e.isNestedRender,
|
|
@@ -8286,7 +8258,7 @@ function Gu(e, t, n, r, o, i) {
|
|
|
8286
8258
|
trustedHosts: e.trustedHosts
|
|
8287
8259
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
8288
8260
|
], 64)) : F("", !0),
|
|
8289
|
-
|
|
8261
|
+
ee(c, q({
|
|
8290
8262
|
apiHost: e.apiHost,
|
|
8291
8263
|
nonce: e.nonce,
|
|
8292
8264
|
isNestedRender: e.isNestedRender,
|
|
@@ -8313,13 +8285,13 @@ function Gu(e, t, n, r, o, i) {
|
|
|
8313
8285
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
8314
8286
|
], 64);
|
|
8315
8287
|
}
|
|
8316
|
-
const
|
|
8288
|
+
const Gu = /* @__PURE__ */ j(zu, [["render", qu]]), _u = async ({
|
|
8317
8289
|
builderContextValue: e,
|
|
8318
8290
|
symbol: t
|
|
8319
8291
|
}) => {
|
|
8320
8292
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
8321
8293
|
(e != null && e.apiKey))
|
|
8322
|
-
return
|
|
8294
|
+
return qn({
|
|
8323
8295
|
model: t.model,
|
|
8324
8296
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
8325
8297
|
apiVersion: e.apiVersion,
|
|
@@ -8331,9 +8303,9 @@ const _u = /* @__PURE__ */ j(qu, [["render", Gu]]), Ju = async ({
|
|
|
8331
8303
|
}).catch((n) => {
|
|
8332
8304
|
ue.error("Could not fetch symbol content: ", n);
|
|
8333
8305
|
});
|
|
8334
|
-
},
|
|
8306
|
+
}, Ju = B({
|
|
8335
8307
|
name: "builder-symbol",
|
|
8336
|
-
components: { ContentVariants:
|
|
8308
|
+
components: { ContentVariants: Gu, DynamicDiv: Ct },
|
|
8337
8309
|
props: [
|
|
8338
8310
|
"symbol",
|
|
8339
8311
|
"builderComponents",
|
|
@@ -8390,7 +8362,7 @@ const _u = /* @__PURE__ */ j(qu, [["render", Gu]]), Ju = async ({
|
|
|
8390
8362
|
methods: {
|
|
8391
8363
|
setContent() {
|
|
8392
8364
|
var e;
|
|
8393
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
8365
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || _u({
|
|
8394
8366
|
symbol: this.symbol,
|
|
8395
8367
|
builderContextValue: this.builderContext
|
|
8396
8368
|
}).then((t) => {
|
|
@@ -8400,11 +8372,11 @@ const _u = /* @__PURE__ */ j(qu, [["render", Gu]]), Ju = async ({
|
|
|
8400
8372
|
}
|
|
8401
8373
|
}
|
|
8402
8374
|
});
|
|
8403
|
-
function
|
|
8375
|
+
function Xu(e, t, n, r, o, i) {
|
|
8404
8376
|
var u, c, m, y, b, h, S;
|
|
8405
8377
|
const s = W("ContentVariants");
|
|
8406
|
-
return v(),
|
|
8407
|
-
|
|
8378
|
+
return v(), w("div", q({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
8379
|
+
ee(s, {
|
|
8408
8380
|
nonce: e.builderContext.nonce,
|
|
8409
8381
|
isNestedRender: !0,
|
|
8410
8382
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -8428,21 +8400,21 @@ function Yu(e, t, n, r, o, i) {
|
|
|
8428
8400
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
8429
8401
|
], 16);
|
|
8430
8402
|
}
|
|
8431
|
-
const
|
|
8403
|
+
const Yu = /* @__PURE__ */ j(Ju, [["render", Xu]]);
|
|
8432
8404
|
export {
|
|
8433
|
-
|
|
8434
|
-
|
|
8405
|
+
oc as A,
|
|
8406
|
+
Ro as B,
|
|
8435
8407
|
pa as C,
|
|
8436
|
-
|
|
8408
|
+
sc as D,
|
|
8437
8409
|
Ps as E,
|
|
8438
8410
|
ha as F,
|
|
8439
8411
|
Os as G,
|
|
8440
|
-
|
|
8412
|
+
qn as H,
|
|
8441
8413
|
Ca as I,
|
|
8442
|
-
|
|
8443
|
-
|
|
8414
|
+
Zu as J,
|
|
8415
|
+
uc as K,
|
|
8444
8416
|
Ea as S,
|
|
8445
|
-
|
|
8417
|
+
G as T,
|
|
8446
8418
|
du as V,
|
|
8447
8419
|
j as _,
|
|
8448
8420
|
Oe as a,
|
|
@@ -8451,24 +8423,24 @@ export {
|
|
|
8451
8423
|
Ne as d,
|
|
8452
8424
|
kt as e,
|
|
8453
8425
|
aa as f,
|
|
8454
|
-
|
|
8455
|
-
|
|
8426
|
+
lc as g,
|
|
8427
|
+
ac as h,
|
|
8456
8428
|
oe as i,
|
|
8457
|
-
|
|
8458
|
-
|
|
8429
|
+
cc as j,
|
|
8430
|
+
Gn as k,
|
|
8459
8431
|
us as l,
|
|
8460
8432
|
oi as m,
|
|
8461
|
-
|
|
8433
|
+
Yu as n,
|
|
8462
8434
|
fl as o,
|
|
8463
8435
|
Ue as p,
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8436
|
+
Gu as q,
|
|
8437
|
+
Hn as r,
|
|
8438
|
+
ic as s,
|
|
8467
8439
|
cs as t,
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8440
|
+
tc as u,
|
|
8441
|
+
nc as v,
|
|
8442
|
+
Fu as w,
|
|
8443
|
+
rc as x,
|
|
8444
|
+
fo as y,
|
|
8445
|
+
ec as z
|
|
8474
8446
|
};
|