@builder.io/sdk-vue 0.12.1 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{block-styles.15daad04.js → block-styles.8d24c282.js} +2 -2
- package/lib/browser/{block-styles.0a1c13cc.cjs → block-styles.a0585e05.cjs} +1 -1
- package/lib/browser/block-wrapper.68d48f7a.cjs +1 -0
- package/lib/browser/block-wrapper.c5dfbc00.js +45 -0
- package/lib/browser/blocks/button/button.vue.d.ts +1 -3
- package/lib/browser/blocks/columns/columns.vue.d.ts +0 -1
- package/lib/browser/blocks/custom-code/custom-code.vue.d.ts +1 -3
- package/lib/browser/blocks/image/image.vue.d.ts +1 -3
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +0 -1
- package/lib/browser/{component-ref.408ec744.js → component-ref.c3fbfacf.js} +3 -3
- package/lib/browser/{component-ref.35876089.cjs → component-ref.d00ee381.cjs} +1 -1
- package/lib/browser/components/block/block.helpers.d.ts +0 -1
- package/lib/browser/components/block/block.vue.d.ts +0 -1
- package/lib/browser/components/block/components/block-wrapper.vue.d.ts +0 -7
- package/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +8 -1
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +8 -1
- package/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +0 -1
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -1
- package/lib/browser/components/content/content.vue.d.ts +3 -0
- package/lib/browser/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/components/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
- package/lib/browser/components/dynamic-renderer/dynamic-renderer.vue.d.ts +16 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{css.56c01a0f.cjs → css.33017a13.cjs} +1 -1
- package/lib/browser/{css.e56cc923.js → css.c99b7535.js} +1 -1
- package/lib/browser/dynamic-renderer.72e99722.js +29 -0
- package/lib/browser/dynamic-renderer.e95e3678.cjs +1 -0
- package/lib/browser/functions/get-block-properties.d.ts +6 -1
- package/lib/browser/functions/is-from-trusted-host.d.ts +3 -0
- package/lib/browser/functions/transform-block-properties.d.ts +7 -5
- package/lib/browser/{get-block-actions.5749164d.js → get-block-actions.351bce86.js} +21 -30
- package/lib/browser/get-block-actions.d7726c65.cjs +1 -0
- package/lib/browser/index-helpers/blocks-exports.d.ts +3 -0
- package/lib/browser/{index.1c3cd66d.js → index.62a4dd7e.js} +445 -513
- package/lib/browser/index.8856c30a.cjs +160 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block.3aa48114.js → repeated-block.610c249f.js} +2 -2
- package/lib/browser/{repeated-block.f3af0b09.cjs → repeated-block.d31def44.cjs} +1 -1
- package/lib/browser/scripts/init-editing.d.ts +1 -0
- package/lib/browser/style.css +1 -1
- package/lib/edge/{block-styles.baf84624.js → block-styles.4feb92ca.js} +2 -2
- package/lib/edge/{block-styles.1d36e17e.cjs → block-styles.573b7b1b.cjs} +1 -1
- package/lib/edge/block-wrapper.8fa7315b.cjs +1 -0
- package/lib/edge/block-wrapper.94c267ab.js +44 -0
- package/lib/edge/blocks/button/button.vue.d.ts +1 -3
- package/lib/edge/blocks/columns/columns.vue.d.ts +0 -1
- package/lib/edge/blocks/custom-code/custom-code.vue.d.ts +1 -3
- package/lib/edge/blocks/image/image.vue.d.ts +1 -3
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +0 -1
- package/lib/edge/{component-ref.b38c0a17.cjs → component-ref.25ff38ac.cjs} +1 -1
- package/lib/edge/{component-ref.a0bf7c30.js → component-ref.c15b3af0.js} +3 -3
- package/lib/edge/components/block/block.helpers.d.ts +0 -1
- package/lib/edge/components/block/block.vue.d.ts +0 -1
- package/lib/edge/components/block/components/block-wrapper.vue.d.ts +0 -7
- package/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +8 -1
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +8 -1
- package/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +0 -1
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -1
- package/lib/edge/components/content/content.vue.d.ts +3 -0
- package/lib/edge/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/components/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
- package/lib/edge/components/dynamic-renderer/dynamic-renderer.vue.d.ts +16 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/{node/css.43e589b6.js → edge/css.d221cd8e.js} +1 -1
- package/lib/{node/css.b8f02dce.cjs → edge/css.ec6fd2a5.cjs} +1 -1
- package/lib/edge/dynamic-renderer.47f81bbb.js +28 -0
- package/lib/edge/dynamic-renderer.7abdc573.cjs +1 -0
- package/lib/edge/functions/get-block-properties.d.ts +6 -1
- package/lib/edge/functions/is-from-trusted-host.d.ts +3 -0
- package/lib/edge/functions/transform-block-properties.d.ts +7 -5
- package/lib/edge/get-block-actions.4687c8f3.js +75 -0
- package/lib/edge/get-block-actions.ec83f582.cjs +1 -0
- package/lib/edge/index-helpers/blocks-exports.d.ts +3 -0
- package/lib/edge/{index.7f2747c7.cjs → index.5778aa26.cjs} +27 -23
- package/lib/edge/{index.d2eea20b.js → index.6b56947b.js} +755 -823
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block.d802e6a0.cjs → repeated-block.29e381f4.cjs} +1 -1
- package/lib/edge/{repeated-block.d2e0b56c.js → repeated-block.76408127.js} +2 -2
- package/lib/edge/scripts/init-editing.d.ts +1 -0
- package/lib/edge/style.css +1 -1
- package/lib/node/{block-styles.544d0fa5.cjs → block-styles.35531025.cjs} +1 -1
- package/lib/node/{block-styles.9378e041.js → block-styles.b73795eb.js} +2 -2
- package/lib/node/block-wrapper.047cda0b.cjs +1 -0
- package/lib/node/block-wrapper.8dcfcfa1.js +45 -0
- package/lib/node/blocks/button/button.vue.d.ts +1 -3
- package/lib/node/blocks/columns/columns.vue.d.ts +0 -1
- package/lib/node/blocks/custom-code/custom-code.vue.d.ts +1 -3
- package/lib/node/blocks/image/image.vue.d.ts +1 -3
- package/lib/node/blocks/symbol/symbol.vue.d.ts +0 -1
- package/lib/node/{component-ref.36955ca9.cjs → component-ref.4ba40051.cjs} +1 -1
- package/lib/node/{component-ref.85cf8aff.js → component-ref.e6e92c8d.js} +3 -3
- package/lib/node/components/block/block.helpers.d.ts +0 -1
- package/lib/node/components/block/block.vue.d.ts +0 -1
- package/lib/node/components/block/components/block-wrapper.vue.d.ts +0 -7
- package/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +8 -1
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +8 -1
- package/lib/node/components/blocks/blocks-wrapper.vue.d.ts +0 -1
- package/lib/node/components/content/components/enable-editor.vue.d.ts +3 -1
- package/lib/node/components/content/content.vue.d.ts +3 -0
- package/lib/node/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/components/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
- package/lib/node/components/dynamic-renderer/dynamic-renderer.vue.d.ts +16 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/{edge/css.817ffaca.cjs → node/css.a76e2f77.cjs} +1 -1
- package/lib/{edge/css.c9cd980b.js → node/css.ed4d90da.js} +1 -1
- package/lib/node/dynamic-renderer.beba4cd5.cjs +1 -0
- package/lib/node/dynamic-renderer.e6ce0b70.js +29 -0
- package/lib/node/functions/get-block-properties.d.ts +6 -1
- package/lib/node/functions/is-from-trusted-host.d.ts +3 -0
- package/lib/node/functions/transform-block-properties.d.ts +7 -5
- package/lib/node/get-block-actions.5e56d085.js +75 -0
- package/lib/node/get-block-actions.899ffab6.cjs +1 -0
- package/lib/node/index-helpers/blocks-exports.d.ts +3 -0
- package/lib/node/{index.73c9ec13.js → index.48b1738e.js} +83 -150
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.f4ffe7ae.cjs +200 -0
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block.182fc93f.cjs → repeated-block.a42031b0.cjs} +1 -1
- package/lib/node/{repeated-block.6972ade9.js → repeated-block.cc0857ed.js} +2 -2
- package/lib/node/scripts/init-editing.d.ts +1 -0
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/block-wrapper.3372ead3.cjs +0 -1
- package/lib/browser/block-wrapper.684870c2.js +0 -56
- package/lib/browser/get-block-actions.786a0830.cjs +0 -1
- package/lib/browser/index.caecdbca.cjs +0 -156
- package/lib/edge/block-wrapper.c2e6a717.js +0 -55
- package/lib/edge/block-wrapper.e35eb0ba.cjs +0 -1
- package/lib/edge/get-block-actions.59e642f2.js +0 -84
- package/lib/edge/get-block-actions.c4334ce2.cjs +0 -1
- package/lib/node/block-wrapper.20c333af.js +0 -56
- package/lib/node/block-wrapper.498bd360.cjs +0 -1
- package/lib/node/get-block-actions.9542f4f9.js +0 -84
- package/lib/node/get-block-actions.c427b339.cjs +0 -1
- package/lib/node/index.52366dfd.cjs +0 -196
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
function
|
|
1
|
+
import { defineComponent as P, openBlock as E, createElementBlock as x, mergeProps as ee, toHandlers as rt, toDisplayString as tr, defineAsyncComponent as Ct, resolveComponent as V, Fragment as ue, createVNode as me, createBlock as J, withCtx as at, renderList as ot, createCommentVNode as z, resolveDynamicComponent as vr, renderSlot as Ee, h as Ar, createElementVNode as tn, normalizeStyle as nn, normalizeClass as Cr, markRaw as go } from "vue";
|
|
2
|
+
function St(e = {}, t, n) {
|
|
3
3
|
const r = {};
|
|
4
4
|
for (const o in e) {
|
|
5
5
|
if (!e[o] || n && !o.startsWith(t))
|
|
@@ -9,43 +9,32 @@ function Ft(e = {}, t, n) {
|
|
|
9
9
|
}
|
|
10
10
|
return r;
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const yo = P({
|
|
13
13
|
name: "builder-button",
|
|
14
14
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
15
15
|
data() {
|
|
16
|
-
return { filterAttrs:
|
|
17
|
-
},
|
|
18
|
-
methods: {
|
|
19
|
-
_classStringToObject(e) {
|
|
20
|
-
const t = {};
|
|
21
|
-
if (typeof e != "string")
|
|
22
|
-
return t;
|
|
23
|
-
const n = e.trim().split(/\s+/);
|
|
24
|
-
for (const r of n)
|
|
25
|
-
t[r] = !0;
|
|
26
|
-
return t;
|
|
27
|
-
}
|
|
16
|
+
return { filterAttrs: St };
|
|
28
17
|
}
|
|
29
|
-
})
|
|
30
|
-
const P = (e, t) => {
|
|
18
|
+
}), N = (e, t) => {
|
|
31
19
|
const n = e.__vccOpts || e;
|
|
32
20
|
for (const [r, o] of t)
|
|
33
21
|
n[r] = o;
|
|
34
22
|
return n;
|
|
35
|
-
},
|
|
36
|
-
function
|
|
37
|
-
return e.link ? (E(),
|
|
23
|
+
}, vo = ["href", "target"];
|
|
24
|
+
function Ao(e, t, n, r, o, i) {
|
|
25
|
+
return e.link ? (E(), x("a", ee({
|
|
38
26
|
key: 0,
|
|
39
27
|
href: e.link,
|
|
40
28
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
41
29
|
role: "button"
|
|
42
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), rt(e.filterAttrs(e.attributes, "v-on:", !0), !0)), tr(e.text), 17,
|
|
30
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), rt(e.filterAttrs(e.attributes, "v-on:", !0), !0)), tr(e.text), 17, vo)) : (E(), x("button", ee({
|
|
43
31
|
key: 1,
|
|
44
|
-
|
|
45
|
-
class: e.
|
|
32
|
+
role: "button",
|
|
33
|
+
class: `builder-button ${e.attributes.class}`,
|
|
34
|
+
style: e.attributes.style
|
|
46
35
|
}, e.filterAttrs(e.attributes, "v-on:", !1), rt(e.filterAttrs(e.attributes, "v-on:", !0), !0)), tr(e.text), 17));
|
|
47
36
|
}
|
|
48
|
-
const
|
|
37
|
+
const Co = /* @__PURE__ */ N(yo, [["render", Ao], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/button/button.vue"]]), bo = Symbol(), rn = {
|
|
49
38
|
Builder: {
|
|
50
39
|
content: null,
|
|
51
40
|
context: {},
|
|
@@ -60,12 +49,12 @@ const Ao = /* @__PURE__ */ P(go, [["render", vo], ["__scopeId", "data-v-becdf225
|
|
|
60
49
|
BlocksWrapper: "div",
|
|
61
50
|
BlocksWrapperProps: {}
|
|
62
51
|
},
|
|
63
|
-
key: Co
|
|
64
|
-
}, bo = Symbol(), br = {
|
|
65
|
-
Components: { registeredComponents: {} },
|
|
66
52
|
key: bo
|
|
53
|
+
}, ko = Symbol(), br = {
|
|
54
|
+
Components: { registeredComponents: {} },
|
|
55
|
+
key: ko
|
|
67
56
|
};
|
|
68
|
-
function
|
|
57
|
+
function Eo(e) {
|
|
69
58
|
var t;
|
|
70
59
|
return {
|
|
71
60
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -79,23 +68,23 @@ const Ae = "vue", Pe = (e) => e != null, bt = "[Builder.io]: ", te = {
|
|
|
79
68
|
warn: (...e) => console.warn(bt, ...e),
|
|
80
69
|
debug: (...e) => console.debug(bt, ...e)
|
|
81
70
|
};
|
|
82
|
-
function
|
|
71
|
+
function X() {
|
|
83
72
|
return typeof window < "u" && typeof document < "u";
|
|
84
73
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
74
|
+
function Fo() {
|
|
75
|
+
return X() && window.self !== window.top;
|
|
87
76
|
}
|
|
88
77
|
function ge() {
|
|
89
|
-
return
|
|
78
|
+
return Fo() && (Ae === "reactNative" || window.location.search.indexOf("builder.frameEditing=") !== -1);
|
|
90
79
|
}
|
|
91
80
|
const So = () => {
|
|
92
|
-
if (
|
|
81
|
+
if (X()) {
|
|
93
82
|
const e = new URL(location.href);
|
|
94
83
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
95
84
|
} else
|
|
96
85
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
97
|
-
},
|
|
98
|
-
const e =
|
|
86
|
+
}, wo = () => typeof navigator == "object" && navigator.userAgent || "", kr = () => {
|
|
87
|
+
const e = wo(), t = {
|
|
99
88
|
Android() {
|
|
100
89
|
return e.match(/Android/i);
|
|
101
90
|
},
|
|
@@ -131,14 +120,14 @@ const So = () => {
|
|
|
131
120
|
builder: e,
|
|
132
121
|
context: t,
|
|
133
122
|
event: n
|
|
134
|
-
}),
|
|
123
|
+
}), Bo = () => ({
|
|
135
124
|
isEditing: ge(),
|
|
136
|
-
isBrowser:
|
|
137
|
-
isServer: !
|
|
125
|
+
isBrowser: X(),
|
|
126
|
+
isServer: !X(),
|
|
138
127
|
getUserAttributes: () => kr()
|
|
139
|
-
}),
|
|
128
|
+
}), Do = (e, {
|
|
140
129
|
isExpression: t = !0
|
|
141
|
-
}) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
130
|
+
}) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, xo = ({
|
|
142
131
|
code: e,
|
|
143
132
|
builder: t,
|
|
144
133
|
context: n,
|
|
@@ -167,31 +156,31 @@ function Io(e, t, n) {
|
|
|
167
156
|
}
|
|
168
157
|
});
|
|
169
158
|
}
|
|
170
|
-
const
|
|
159
|
+
const Fr = (e, t, n) => {
|
|
171
160
|
if (Object(e) !== e)
|
|
172
161
|
return e;
|
|
173
162
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
174
163
|
return r.slice(0, -1).reduce((o, i, u) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[u + 1])) >> 0 === +r[u + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
175
164
|
};
|
|
176
|
-
var
|
|
165
|
+
var I, To = function(e) {
|
|
177
166
|
function t(s) {
|
|
178
|
-
return 48 > s ? s === 36 : 58 > s ? !0 : 65 > s ? !1 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s &&
|
|
167
|
+
return 48 > s ? s === 36 : 58 > s ? !0 : 65 > s ? !1 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s && fo.test(String.fromCharCode(s));
|
|
179
168
|
}
|
|
180
169
|
function n(s) {
|
|
181
170
|
return 65 > s ? s === 36 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s && er.test(String.fromCharCode(s));
|
|
182
171
|
}
|
|
183
172
|
function r(s, a) {
|
|
184
|
-
for (var l = g, d = 1,
|
|
185
|
-
At.lastIndex =
|
|
186
|
-
var
|
|
187
|
-
if (
|
|
188
|
-
++d,
|
|
173
|
+
for (var l = g, d = 1, S = 0; ; ) {
|
|
174
|
+
At.lastIndex = S;
|
|
175
|
+
var L = At.exec(l);
|
|
176
|
+
if (L && L.index < s)
|
|
177
|
+
++d, S = L.index + L[0].length;
|
|
189
178
|
else
|
|
190
179
|
break;
|
|
191
180
|
}
|
|
192
181
|
throw l = {
|
|
193
182
|
line: d,
|
|
194
|
-
ab: s -
|
|
183
|
+
ab: s - S
|
|
195
184
|
}, a += " (" + l.line + ":" + l.ab + ")", a = new SyntaxError(a), a.j = s, a.X = l, a.o = c, a;
|
|
196
185
|
}
|
|
197
186
|
function o(s) {
|
|
@@ -206,15 +195,15 @@ var x, xo = function(e) {
|
|
|
206
195
|
this.line = Be, this.ab = c - ce;
|
|
207
196
|
}
|
|
208
197
|
function u(s, a) {
|
|
209
|
-
|
|
198
|
+
Ie = c, B.C && (_t = new i()), F = s, h(), re = a, Ke = s.m;
|
|
210
199
|
}
|
|
211
200
|
function p() {
|
|
212
|
-
for (var s = c, a = B.va && B.C && new i(), l = g.charCodeAt(c += 2); c <
|
|
201
|
+
for (var s = c, a = B.va && B.C && new i(), l = g.charCodeAt(c += 2); c < xe && l !== 10 && l !== 13 && l !== 8232 && l !== 8233; )
|
|
213
202
|
++c, l = g.charCodeAt(c);
|
|
214
203
|
B.va && B.va(!1, g.slice(s + 2, c), s, c, a, B.C && new i());
|
|
215
204
|
}
|
|
216
205
|
function h() {
|
|
217
|
-
for (; c <
|
|
206
|
+
for (; c < xe; ) {
|
|
218
207
|
var s = g.charCodeAt(c);
|
|
219
208
|
if (s === 32)
|
|
220
209
|
++c;
|
|
@@ -238,7 +227,7 @@ var x, xo = function(e) {
|
|
|
238
227
|
break;
|
|
239
228
|
else if (s === 160)
|
|
240
229
|
++c;
|
|
241
|
-
else if (5760 <= s &&
|
|
230
|
+
else if (5760 <= s && ho.test(String.fromCharCode(s)))
|
|
242
231
|
++c;
|
|
243
232
|
else
|
|
244
233
|
break;
|
|
@@ -247,7 +236,7 @@ var x, xo = function(e) {
|
|
|
247
236
|
function m(s) {
|
|
248
237
|
switch (s) {
|
|
249
238
|
case 46:
|
|
250
|
-
s = g.charCodeAt(c + 1), 48 <= s && 57 >= s ?
|
|
239
|
+
s = g.charCodeAt(c + 1), 48 <= s && 57 >= s ? T(!0) : (++c, u(Gn));
|
|
251
240
|
return;
|
|
252
241
|
case 40:
|
|
253
242
|
return ++c, u(pe);
|
|
@@ -271,7 +260,7 @@ var x, xo = function(e) {
|
|
|
271
260
|
return ++c, u(zn);
|
|
272
261
|
case 48:
|
|
273
262
|
if (s = g.charCodeAt(c + 1), s === 120 || s === 88) {
|
|
274
|
-
c += 2, s =
|
|
263
|
+
c += 2, s = $(16), s === null && r(W + 2, "Expected hexadecimal number"), n(g.charCodeAt(c)) && r(c, "Identifier directly after number"), u(ze, s);
|
|
275
264
|
return;
|
|
276
265
|
}
|
|
277
266
|
case 49:
|
|
@@ -283,12 +272,12 @@ var x, xo = function(e) {
|
|
|
283
272
|
case 55:
|
|
284
273
|
case 56:
|
|
285
274
|
case 57:
|
|
286
|
-
return
|
|
275
|
+
return T(!1);
|
|
287
276
|
case 34:
|
|
288
277
|
case 39:
|
|
289
278
|
c++;
|
|
290
279
|
for (var a = ""; ; ) {
|
|
291
|
-
c >=
|
|
280
|
+
c >= xe && r(W, "Unterminated string constant");
|
|
292
281
|
var l = g.charCodeAt(c);
|
|
293
282
|
if (l === s) {
|
|
294
283
|
++c, u(mt, a);
|
|
@@ -311,13 +300,13 @@ var x, xo = function(e) {
|
|
|
311
300
|
a += "\r";
|
|
312
301
|
break;
|
|
313
302
|
case 120:
|
|
314
|
-
a += String.fromCharCode(
|
|
303
|
+
a += String.fromCharCode(U(2));
|
|
315
304
|
break;
|
|
316
305
|
case 117:
|
|
317
|
-
a += String.fromCharCode(
|
|
306
|
+
a += String.fromCharCode(U(4));
|
|
318
307
|
break;
|
|
319
308
|
case 85:
|
|
320
|
-
a += String.fromCharCode(
|
|
309
|
+
a += String.fromCharCode(U(8));
|
|
321
310
|
break;
|
|
322
311
|
case 116:
|
|
323
312
|
a += " ";
|
|
@@ -347,56 +336,56 @@ var x, xo = function(e) {
|
|
|
347
336
|
}
|
|
348
337
|
return;
|
|
349
338
|
case 47:
|
|
350
|
-
s = g.charCodeAt(c + 1), Ke ? (++c,
|
|
339
|
+
s = g.charCodeAt(c + 1), Ke ? (++c, R()) : s === 61 ? A(De, 2) : A(Xn, 1);
|
|
351
340
|
return;
|
|
352
341
|
case 37:
|
|
353
342
|
case 42:
|
|
354
|
-
g.charCodeAt(c + 1) === 61 ?
|
|
343
|
+
g.charCodeAt(c + 1) === 61 ? A(De, 2) : A(lo, 1);
|
|
355
344
|
return;
|
|
356
345
|
case 124:
|
|
357
346
|
case 38:
|
|
358
|
-
a = g.charCodeAt(c + 1), a === s ?
|
|
347
|
+
a = g.charCodeAt(c + 1), a === s ? A(s === 124 ? qn : Qn, 2) : a === 61 ? A(De, 2) : A(s === 124 ? no : oo, 1);
|
|
359
348
|
return;
|
|
360
349
|
case 94:
|
|
361
|
-
g.charCodeAt(c + 1) === 61 ?
|
|
350
|
+
g.charCodeAt(c + 1) === 61 ? A(De, 2) : A(ro, 1);
|
|
362
351
|
return;
|
|
363
352
|
case 43:
|
|
364
353
|
case 45:
|
|
365
|
-
a = g.charCodeAt(c + 1), a === s ? a === 45 && g.charCodeAt(c + 2) === 62 && vt.test(g.slice(be, c)) ? (c += 3, p(), h(),
|
|
354
|
+
a = g.charCodeAt(c + 1), a === s ? a === 45 && g.charCodeAt(c + 2) === 62 && vt.test(g.slice(be, c)) ? (c += 3, p(), h(), b()) : A(to, 2) : a === 61 ? A(De, 2) : A(ao, 1);
|
|
366
355
|
return;
|
|
367
356
|
case 60:
|
|
368
357
|
case 62:
|
|
369
|
-
a = g.charCodeAt(c + 1), l = 1, a === s ? (l = s === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + l) === 61 ?
|
|
358
|
+
a = g.charCodeAt(c + 1), l = 1, a === s ? (l = s === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + l) === 61 ? A(De, l + 1) : A(uo, l)) : a === 33 && s === 60 && g.charCodeAt(c + 2) === 45 && g.charCodeAt(c + 3) === 45 ? (c += 4, p(), h(), b()) : (a === 61 && (l = g.charCodeAt(c + 2) === 61 ? 3 : 2), A(so, l));
|
|
370
359
|
return;
|
|
371
360
|
case 61:
|
|
372
361
|
case 33:
|
|
373
|
-
g.charCodeAt(c + 1) === 61 ?
|
|
362
|
+
g.charCodeAt(c + 1) === 61 ? A(io, g.charCodeAt(c + 2) === 61 ? 3 : 2) : A(s === 61 ? Jn : Yn, 1);
|
|
374
363
|
return;
|
|
375
364
|
case 126:
|
|
376
|
-
return
|
|
365
|
+
return A(Yn, 1);
|
|
377
366
|
}
|
|
378
367
|
return !1;
|
|
379
368
|
}
|
|
380
|
-
function
|
|
381
|
-
if (s ? c = W + 1 : W = c, B.C && (
|
|
382
|
-
return
|
|
383
|
-
if (c >=
|
|
369
|
+
function b(s) {
|
|
370
|
+
if (s ? c = W + 1 : W = c, B.C && (Ut = new i()), s)
|
|
371
|
+
return R();
|
|
372
|
+
if (c >= xe)
|
|
384
373
|
return u(Vt);
|
|
385
374
|
if (s = g.charCodeAt(c), n(s) || s === 92)
|
|
386
|
-
return
|
|
375
|
+
return Se();
|
|
387
376
|
if (m(s) === !1) {
|
|
388
377
|
if (s = String.fromCharCode(s), s === "\\" || er.test(s))
|
|
389
|
-
return
|
|
378
|
+
return Se();
|
|
390
379
|
r(c, "Unexpected character '" + s + "'");
|
|
391
380
|
}
|
|
392
381
|
}
|
|
393
|
-
function
|
|
382
|
+
function A(s, a) {
|
|
394
383
|
var l = g.slice(c, c + a);
|
|
395
384
|
c += a, u(s, l);
|
|
396
385
|
}
|
|
397
|
-
function
|
|
386
|
+
function R() {
|
|
398
387
|
for (var s, a, l = c; ; ) {
|
|
399
|
-
c >=
|
|
388
|
+
c >= xe && r(l, "Unterminated regexp");
|
|
400
389
|
var d = g.charAt(c);
|
|
401
390
|
if (vt.test(d) && r(l, "Unterminated regexp"), s)
|
|
402
391
|
s = !1;
|
|
@@ -413,14 +402,14 @@ var x, xo = function(e) {
|
|
|
413
402
|
}
|
|
414
403
|
s = g.slice(l, c), ++c, (a = ne()) && !/^[gmi]*$/.test(a) && r(l, "Invalid regexp flag");
|
|
415
404
|
try {
|
|
416
|
-
var
|
|
417
|
-
} catch (
|
|
418
|
-
throw
|
|
405
|
+
var S = new RegExp(s, a);
|
|
406
|
+
} catch (L) {
|
|
407
|
+
throw L instanceof SyntaxError && r(l, L.message), L;
|
|
419
408
|
}
|
|
420
|
-
u(Bn,
|
|
409
|
+
u(Bn, S);
|
|
421
410
|
}
|
|
422
|
-
function
|
|
423
|
-
for (var l = c, d = 0,
|
|
411
|
+
function $(s, a) {
|
|
412
|
+
for (var l = c, d = 0, S = a === void 0 ? 1 / 0 : a, L = 0; L < S; ++L) {
|
|
424
413
|
var Y = g.charCodeAt(c);
|
|
425
414
|
if (Y = 97 <= Y ? Y - 97 + 10 : 65 <= Y ? Y - 65 + 10 : 48 <= Y && 57 >= Y ? Y - 48 : 1 / 0, Y >= s)
|
|
426
415
|
break;
|
|
@@ -428,14 +417,14 @@ var x, xo = function(e) {
|
|
|
428
417
|
}
|
|
429
418
|
return c === l || a !== void 0 && c - l !== a ? null : d;
|
|
430
419
|
}
|
|
431
|
-
function
|
|
420
|
+
function T(s) {
|
|
432
421
|
var a = c, l = !1, d = g.charCodeAt(c) === 48;
|
|
433
|
-
s ||
|
|
434
|
-
var
|
|
435
|
-
l ?
|
|
422
|
+
s || $(10) !== null || r(a, "Invalid number"), g.charCodeAt(c) === 46 && (++c, $(10), l = !0), s = g.charCodeAt(c), (s === 69 || s === 101) && (s = g.charCodeAt(++c), s !== 43 && s !== 45 || ++c, $(10) === null && r(a, "Invalid number"), l = !0), n(g.charCodeAt(c)) && r(c, "Identifier directly after number"), s = g.slice(a, c);
|
|
423
|
+
var S;
|
|
424
|
+
l ? S = parseFloat(s) : d && s.length !== 1 ? /[89]/.test(s) || Z ? r(a, "Invalid number") : S = parseInt(s, 8) : S = parseInt(s, 10), u(ze, S);
|
|
436
425
|
}
|
|
437
|
-
function
|
|
438
|
-
return s =
|
|
426
|
+
function U(s) {
|
|
427
|
+
return s = $(16, s), s === null && r(W, "Bad character escape sequence"), s;
|
|
439
428
|
}
|
|
440
429
|
function ne() {
|
|
441
430
|
je = !1;
|
|
@@ -444,34 +433,34 @@ var x, xo = function(e) {
|
|
|
444
433
|
if (t(d))
|
|
445
434
|
je && (s += g.charAt(c)), ++c;
|
|
446
435
|
else if (d === 92) {
|
|
447
|
-
je || (s = g.slice(l, c)), je = !0, g.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, d =
|
|
448
|
-
var
|
|
449
|
-
|
|
436
|
+
je || (s = g.slice(l, c)), je = !0, g.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, d = U(4);
|
|
437
|
+
var S = String.fromCharCode(d);
|
|
438
|
+
S || r(c - 1, "Invalid Unicode escape"), (a ? n(d) : t(d)) || r(c - 4, "Invalid Unicode escape"), s += S;
|
|
450
439
|
} else
|
|
451
440
|
break;
|
|
452
441
|
a = !1;
|
|
453
442
|
}
|
|
454
443
|
return je ? s : g.slice(l, c);
|
|
455
444
|
}
|
|
456
|
-
function
|
|
445
|
+
function Se() {
|
|
457
446
|
var s = ne(), a = Te;
|
|
458
|
-
!je &&
|
|
447
|
+
!je && po(s) && (a = eo[s]), u(a, s);
|
|
459
448
|
}
|
|
460
449
|
function k() {
|
|
461
|
-
Mt = W, be =
|
|
450
|
+
Mt = W, be = Ie, Wt = _t, b();
|
|
462
451
|
}
|
|
463
452
|
function Me(s) {
|
|
464
453
|
if (Z = s, c = W, B.C)
|
|
465
454
|
for (; c < ce; )
|
|
466
455
|
ce = g.lastIndexOf(`
|
|
467
456
|
`, ce - 2) + 1, --Be;
|
|
468
|
-
h(),
|
|
457
|
+
h(), b();
|
|
469
458
|
}
|
|
470
459
|
function We() {
|
|
471
460
|
this.type = null, this.start = W, this.end = null;
|
|
472
461
|
}
|
|
473
462
|
function oe() {
|
|
474
|
-
this.start =
|
|
463
|
+
this.start = Ut, this.end = null, Nt && (this.source = Nt);
|
|
475
464
|
}
|
|
476
465
|
function j() {
|
|
477
466
|
var s = new We();
|
|
@@ -484,20 +473,20 @@ var x, xo = function(e) {
|
|
|
484
473
|
function w(s, a) {
|
|
485
474
|
return s.type = a, s.end = be, B.C && (s.X.end = Wt), B.Xa && (s.j[1] = be), s;
|
|
486
475
|
}
|
|
487
|
-
function
|
|
476
|
+
function It(s) {
|
|
488
477
|
return s.type === "ExpressionStatement" && s.la.type === "Literal" && s.la.value === "use strict";
|
|
489
478
|
}
|
|
490
479
|
function O(s) {
|
|
491
|
-
return
|
|
480
|
+
return F === s ? (k(), !0) : !1;
|
|
492
481
|
}
|
|
493
482
|
function dt() {
|
|
494
|
-
return !B.fc && (
|
|
483
|
+
return !B.fc && (F === Vt || F === Re || vt.test(g.slice(be, W)));
|
|
495
484
|
}
|
|
496
485
|
function we() {
|
|
497
486
|
O(de) || dt() || ae();
|
|
498
487
|
}
|
|
499
|
-
function
|
|
500
|
-
|
|
488
|
+
function _(s) {
|
|
489
|
+
F === s ? k() : ae();
|
|
501
490
|
}
|
|
502
491
|
function ae() {
|
|
503
492
|
r(W, "Unexpected token");
|
|
@@ -506,42 +495,42 @@ var x, xo = function(e) {
|
|
|
506
495
|
s.type !== "Identifier" && s.type !== "MemberExpression" && r(s.start, "Assigning to rvalue"), Z && s.type === "Identifier" && yt(s.name) && r(s.start, "Assigning to " + s.name + " in strict mode");
|
|
507
496
|
}
|
|
508
497
|
function ie() {
|
|
509
|
-
(
|
|
510
|
-
var s =
|
|
498
|
+
(F === Xn || F === De && re === "/=") && b(!0);
|
|
499
|
+
var s = F, a = j();
|
|
511
500
|
switch (s) {
|
|
512
501
|
case Lt:
|
|
513
|
-
case
|
|
502
|
+
case xn:
|
|
514
503
|
k();
|
|
515
504
|
var l = s === Lt;
|
|
516
|
-
O(de) || dt() ? a.label = null :
|
|
505
|
+
O(de) || dt() ? a.label = null : F !== Te ? ae() : (a.label = le(), we());
|
|
517
506
|
for (var d = 0; d < M.length; ++d) {
|
|
518
|
-
var
|
|
519
|
-
if ((a.label === null ||
|
|
507
|
+
var S = M[d];
|
|
508
|
+
if ((a.label === null || S.name === a.label.name) && (S.kind !== null && (l || S.kind === "loop") || a.label && l))
|
|
520
509
|
break;
|
|
521
510
|
}
|
|
522
511
|
return d === M.length && r(a.start, "Unsyntactic " + s.l), w(a, l ? "BreakStatement" : "ContinueStatement");
|
|
523
|
-
case
|
|
512
|
+
case In:
|
|
524
513
|
return k(), we(), w(a, "DebuggerStatement");
|
|
525
514
|
case Rn:
|
|
526
|
-
return k(), M.push(qt), a.body = ie(), M.pop(),
|
|
515
|
+
return k(), M.push(qt), a.body = ie(), M.pop(), _(Xt), a.test = Ve(), we(), w(a, "DoWhileStatement");
|
|
527
516
|
case $n:
|
|
528
|
-
return k(), M.push(qt),
|
|
517
|
+
return k(), M.push(qt), _(pe), F === de ? Tt(a, null) : F === zt ? (s = j(), k(), Sn(s, !0), w(s, "VariableDeclaration"), s.fa.length === 1 && O(gt) ? Fn(a, s) : Tt(a, s)) : (s = G(!1, !0), O(gt) ? (ht(s), Fn(a, s)) : Tt(a, s));
|
|
529
518
|
case Kt:
|
|
530
519
|
return k(), $t(a, !0);
|
|
531
520
|
case Pn:
|
|
532
521
|
return k(), a.test = Ve(), a.da = ie(), a.alternate = O(jn) ? ie() : null, w(a, "IfStatement");
|
|
533
522
|
case Nn:
|
|
534
|
-
return Ge || B.Ib || r(W, "'return' outside of function"), k(), O(de) || dt() ? a.K = null : (a.K =
|
|
523
|
+
return Ge || B.Ib || r(W, "'return' outside of function"), k(), O(de) || dt() ? a.K = null : (a.K = G(), we()), w(a, "ReturnStatement");
|
|
535
524
|
case Gt:
|
|
536
|
-
for (k(), a.Qb = Ve(), a.tb = [],
|
|
537
|
-
|
|
525
|
+
for (k(), a.Qb = Ve(), a.tb = [], _(Xe), M.push(mo); F !== Re; )
|
|
526
|
+
F === Ht || F === Tn ? (s = F === Ht, d && w(d, "SwitchCase"), a.tb.push(d = j()), d.da = [], k(), s ? d.test = G() : (l && r(Mt, "Multiple default clauses"), l = !0, d.test = null), _(Je)) : (d || ae(), d.da.push(ie()));
|
|
538
527
|
return d && w(d, "SwitchCase"), k(), M.pop(), w(a, "SwitchStatement");
|
|
539
|
-
case _n:
|
|
540
|
-
return k(), vt.test(g.slice(be, W)) && r(be, "Illegal newline after throw"), a.K = z(), we(), w(a, "ThrowStatement");
|
|
541
528
|
case Un:
|
|
542
|
-
return k(),
|
|
529
|
+
return k(), vt.test(g.slice(be, W)) && r(be, "Illegal newline after throw"), a.K = G(), we(), w(a, "ThrowStatement");
|
|
530
|
+
case _n:
|
|
531
|
+
return k(), a.block = Le(), a.Ea = null, F === Dn && (s = j(), k(), _(pe), s.Ua = le(), Z && yt(s.Ua.name) && r(s.Ua.start, "Binding " + s.Ua.name + " in strict mode"), _(se), s.body = Le(), a.Ea = w(s, "CatchClause")), a.fb = O(On) ? Le() : null, a.Ea || a.fb || r(a.start, "Missing catch or finally clause"), w(a, "TryStatement");
|
|
543
532
|
case zt:
|
|
544
|
-
return k(),
|
|
533
|
+
return k(), Sn(a), we(), w(a, "VariableDeclaration");
|
|
545
534
|
case Xt:
|
|
546
535
|
return k(), a.test = Ve(), M.push(qt), a.body = ie(), M.pop(), w(a, "WhileStatement");
|
|
547
536
|
case Mn:
|
|
@@ -551,50 +540,50 @@ var x, xo = function(e) {
|
|
|
551
540
|
case de:
|
|
552
541
|
return k(), w(a, "EmptyStatement");
|
|
553
542
|
default:
|
|
554
|
-
if (l = re,
|
|
543
|
+
if (l = re, S = G(), s === Te && S.type === "Identifier" && O(Je)) {
|
|
555
544
|
for (d = 0; d < M.length; ++d)
|
|
556
|
-
M[d].name === l && r(
|
|
545
|
+
M[d].name === l && r(S.start, "Label '" + l + "' is already declared");
|
|
557
546
|
return M.push({
|
|
558
547
|
name: l,
|
|
559
|
-
kind:
|
|
560
|
-
}), a.body = ie(), M.pop(), a.label =
|
|
548
|
+
kind: F.W ? "loop" : F === Gt ? "switch" : null
|
|
549
|
+
}), a.body = ie(), M.pop(), a.label = S, w(a, "LabeledStatement");
|
|
561
550
|
}
|
|
562
|
-
return a.la =
|
|
551
|
+
return a.la = S, we(), w(a, "ExpressionStatement");
|
|
563
552
|
}
|
|
564
553
|
}
|
|
565
554
|
function Ve() {
|
|
566
|
-
|
|
567
|
-
var s =
|
|
568
|
-
return
|
|
555
|
+
_(pe);
|
|
556
|
+
var s = G();
|
|
557
|
+
return _(se), s;
|
|
569
558
|
}
|
|
570
559
|
function Le(s) {
|
|
571
560
|
var a = j(), l = !0, d = !1;
|
|
572
|
-
for (a.body = [],
|
|
573
|
-
var
|
|
574
|
-
if (a.body.push(
|
|
575
|
-
var
|
|
561
|
+
for (a.body = [], _(Xe); !O(Re); ) {
|
|
562
|
+
var S = ie();
|
|
563
|
+
if (a.body.push(S), l && s && It(S)) {
|
|
564
|
+
var L = d;
|
|
576
565
|
Me(d = !0);
|
|
577
566
|
}
|
|
578
567
|
l = !1;
|
|
579
568
|
}
|
|
580
|
-
return d && !
|
|
569
|
+
return d && !L && Me(!1), w(a, "BlockStatement");
|
|
581
570
|
}
|
|
582
571
|
function Tt(s, a) {
|
|
583
|
-
return s.ua = a,
|
|
584
|
-
}
|
|
585
|
-
function Sn(s, a) {
|
|
586
|
-
return s.left = a, s.right = z(), U(se), s.body = ie(), M.pop(), w(s, "ForInStatement");
|
|
572
|
+
return s.ua = a, _(de), s.test = F === de ? null : G(), _(de), s.update = F === se ? null : G(), _(se), s.body = ie(), M.pop(), w(s, "ForStatement");
|
|
587
573
|
}
|
|
588
574
|
function Fn(s, a) {
|
|
575
|
+
return s.left = a, s.right = G(), _(se), s.body = ie(), M.pop(), w(s, "ForInStatement");
|
|
576
|
+
}
|
|
577
|
+
function Sn(s, a) {
|
|
589
578
|
for (s.fa = [], s.kind = "var"; ; ) {
|
|
590
579
|
var l = j();
|
|
591
|
-
if (l.id = le(), Z && yt(l.id.name) && r(l.id.start, "Binding " + l.id.name + " in strict mode"), l.ua = O(Jn) ?
|
|
580
|
+
if (l.id = le(), Z && yt(l.id.name) && r(l.id.start, "Binding " + l.id.name + " in strict mode"), l.ua = O(Jn) ? G(!0, a) : null, s.fa.push(w(l, "VariableDeclarator")), !O(ke))
|
|
592
581
|
break;
|
|
593
582
|
}
|
|
594
583
|
}
|
|
595
|
-
function
|
|
584
|
+
function G(s, a) {
|
|
596
585
|
var l = Rt(a);
|
|
597
|
-
if (!s &&
|
|
586
|
+
if (!s && F === ke) {
|
|
598
587
|
for (s = Ce(l), s.xb = [l]; O(ke); )
|
|
599
588
|
s.xb.push(Rt(a));
|
|
600
589
|
return w(s, "SequenceExpression");
|
|
@@ -605,24 +594,24 @@ var x, xo = function(e) {
|
|
|
605
594
|
var a = jt(Ot(), -1, s);
|
|
606
595
|
if (O(zn)) {
|
|
607
596
|
var l = Ce(a);
|
|
608
|
-
l.test = a, l.da =
|
|
597
|
+
l.test = a, l.da = G(!0), _(Je), l.alternate = G(!0, s), a = w(l, "ConditionalExpression");
|
|
609
598
|
}
|
|
610
|
-
return
|
|
599
|
+
return F.Cb ? (l = Ce(a), l.operator = re, l.left = a, k(), l.right = Rt(s), ht(a), w(l, "AssignmentExpression")) : a;
|
|
611
600
|
}
|
|
612
601
|
function jt(s, a, l) {
|
|
613
|
-
var d =
|
|
614
|
-
if (d !== null && (!l ||
|
|
615
|
-
var
|
|
616
|
-
return
|
|
602
|
+
var d = F.L;
|
|
603
|
+
if (d !== null && (!l || F !== gt) && d > a) {
|
|
604
|
+
var S = Ce(s);
|
|
605
|
+
return S.left = s, S.operator = re, s = F, k(), S.right = jt(Ot(), d, l), d = w(S, s === qn || s === Qn ? "LogicalExpression" : "BinaryExpression"), jt(d, a, l);
|
|
617
606
|
}
|
|
618
607
|
return s;
|
|
619
608
|
}
|
|
620
609
|
function Ot() {
|
|
621
|
-
if (
|
|
622
|
-
var s = j(), a =
|
|
610
|
+
if (F.prefix) {
|
|
611
|
+
var s = j(), a = F.$b;
|
|
623
612
|
return s.operator = re, Ke = s.prefix = !0, k(), s.K = Ot(), a ? ht(s.K) : Z && s.operator === "delete" && s.K.type === "Identifier" && r(s.start, "Deleting local variable in strict mode"), w(s, a ? "UpdateExpression" : "UnaryExpression");
|
|
624
613
|
}
|
|
625
|
-
for (a = He(ft());
|
|
614
|
+
for (a = He(ft()); F.cc && !dt(); )
|
|
626
615
|
s = Ce(a), s.operator = re, s.prefix = !1, s.K = a, ht(a), k(), a = w(s, "UpdateExpression");
|
|
627
616
|
return a;
|
|
628
617
|
}
|
|
@@ -631,10 +620,10 @@ var x, xo = function(e) {
|
|
|
631
620
|
var l = Ce(s);
|
|
632
621
|
return l.object = s, l.Wa = le(!0), l.bb = !1, He(w(l, "MemberExpression"), a);
|
|
633
622
|
}
|
|
634
|
-
return O(Jt) ? (l = Ce(s), l.object = s, l.Wa =
|
|
623
|
+
return O(Jt) ? (l = Ce(s), l.object = s, l.Wa = G(), l.bb = !0, _(Yt), He(w(l, "MemberExpression"), a)) : !a && O(pe) ? (l = Ce(s), l.callee = s, l.arguments = Pt(se, !1), He(w(l, "CallExpression"), a)) : s;
|
|
635
624
|
}
|
|
636
625
|
function ft() {
|
|
637
|
-
switch (
|
|
626
|
+
switch (F) {
|
|
638
627
|
case Vn:
|
|
639
628
|
var s = j();
|
|
640
629
|
return k(), w(s, "ThisExpression");
|
|
@@ -643,39 +632,39 @@ var x, xo = function(e) {
|
|
|
643
632
|
case ze:
|
|
644
633
|
case mt:
|
|
645
634
|
case Bn:
|
|
646
|
-
return s = j(), s.value = re, s.raw = g.slice(W,
|
|
635
|
+
return s = j(), s.value = re, s.raw = g.slice(W, Ie), k(), w(s, "Literal");
|
|
647
636
|
case Ln:
|
|
648
637
|
case Hn:
|
|
649
638
|
case Kn:
|
|
650
|
-
return s = j(), s.value =
|
|
639
|
+
return s = j(), s.value = F.$a, s.raw = F.l, k(), w(s, "Literal");
|
|
651
640
|
case pe:
|
|
652
|
-
s =
|
|
641
|
+
s = Ut;
|
|
653
642
|
var a = W;
|
|
654
643
|
k();
|
|
655
|
-
var l =
|
|
656
|
-
return l.start = a, l.end =
|
|
644
|
+
var l = G();
|
|
645
|
+
return l.start = a, l.end = Ie, B.C && (l.X.start = s, l.X.end = _t), B.Xa && (l.j = [a, Ie]), _(se), l;
|
|
657
646
|
case Jt:
|
|
658
647
|
return s = j(), k(), s.elements = Pt(Yt, !0, !0), w(s, "ArrayExpression");
|
|
659
648
|
case Xe:
|
|
660
649
|
for (s = j(), a = !0, l = !1, s.h = [], k(); !O(Re); ) {
|
|
661
650
|
if (a)
|
|
662
651
|
a = !1;
|
|
663
|
-
else if (
|
|
652
|
+
else if (_(ke), B.sb && O(Re))
|
|
664
653
|
break;
|
|
665
654
|
var d = {
|
|
666
|
-
key:
|
|
667
|
-
},
|
|
655
|
+
key: F === ze || F === mt ? ft() : le(!0)
|
|
656
|
+
}, S = !1;
|
|
668
657
|
if (O(Je)) {
|
|
669
|
-
d.value =
|
|
670
|
-
var
|
|
658
|
+
d.value = G(!0);
|
|
659
|
+
var L = d.kind = "init";
|
|
671
660
|
} else
|
|
672
|
-
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ae() : (
|
|
661
|
+
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ae() : (S = l = !0, L = d.kind = d.key.name, d.key = F === ze || F === mt ? ft() : le(!0), F !== pe && ae(), d.value = $t(j(), !1));
|
|
673
662
|
if (d.key.type === "Identifier" && (Z || l))
|
|
674
663
|
for (var Y = 0; Y < s.h.length; ++Y) {
|
|
675
664
|
var Oe = s.h[Y];
|
|
676
665
|
if (Oe.key.name === d.key.name) {
|
|
677
|
-
var Qt =
|
|
678
|
-
Qt && !Z &&
|
|
666
|
+
var Qt = L === Oe.kind || S && Oe.kind === "init" || L === "init" && (Oe.kind === "get" || Oe.kind === "set");
|
|
667
|
+
Qt && !Z && L === "init" && Oe.kind === "init" && (Qt = !1), Qt && r(d.key.start, "Redefinition of property");
|
|
679
668
|
}
|
|
680
669
|
}
|
|
681
670
|
s.h.push(d);
|
|
@@ -684,47 +673,47 @@ var x, xo = function(e) {
|
|
|
684
673
|
case Kt:
|
|
685
674
|
return s = j(), k(), $t(s, !1);
|
|
686
675
|
case Wn:
|
|
687
|
-
return s = j(), k(), s.callee = He(ft(), !0), s.arguments = O(pe) ? Pt(se, !1) :
|
|
676
|
+
return s = j(), k(), s.callee = He(ft(), !0), s.arguments = O(pe) ? Pt(se, !1) : Zr, w(s, "NewExpression");
|
|
688
677
|
}
|
|
689
678
|
ae();
|
|
690
679
|
}
|
|
691
680
|
function $t(s, a) {
|
|
692
|
-
|
|
681
|
+
F === Te ? s.id = le() : a ? ae() : s.id = null, s.oa = [];
|
|
693
682
|
var l = !0;
|
|
694
|
-
for (
|
|
695
|
-
l ? l = !1 :
|
|
683
|
+
for (_(pe); !O(se); )
|
|
684
|
+
l ? l = !1 : _(ke), s.oa.push(le());
|
|
696
685
|
l = Ge;
|
|
697
686
|
var d = M;
|
|
698
|
-
if (Ge = !0, M = [], s.body = Le(!0), Ge = l, M = d, Z || s.body.body.length &&
|
|
687
|
+
if (Ge = !0, M = [], s.body = Le(!0), Ge = l, M = d, Z || s.body.body.length && It(s.body.body[0])) {
|
|
699
688
|
for (l = s.id ? -1 : 0; l < s.oa.length; ++l)
|
|
700
689
|
if (d = 0 > l ? s.id : s.oa[l], (Zn(d.name) || yt(d.name)) && r(d.start, "Defining '" + d.name + "' in strict mode"), 0 <= l)
|
|
701
|
-
for (var
|
|
702
|
-
d.name === s.oa[
|
|
690
|
+
for (var S = 0; S < l; ++S)
|
|
691
|
+
d.name === s.oa[S].name && r(d.start, "Argument name clash in strict mode");
|
|
703
692
|
}
|
|
704
693
|
return w(s, a ? "FunctionDeclaration" : "FunctionExpression");
|
|
705
694
|
}
|
|
706
695
|
function Pt(s, a, l) {
|
|
707
|
-
for (var d = [],
|
|
708
|
-
if (
|
|
709
|
-
|
|
710
|
-
else if (
|
|
696
|
+
for (var d = [], S = !0; !O(s); ) {
|
|
697
|
+
if (S)
|
|
698
|
+
S = !1;
|
|
699
|
+
else if (_(ke), a && B.sb && O(s))
|
|
711
700
|
break;
|
|
712
|
-
d.push(l &&
|
|
701
|
+
d.push(l && F === ke ? null : G(!0));
|
|
713
702
|
}
|
|
714
703
|
return d;
|
|
715
704
|
}
|
|
716
705
|
function le(s) {
|
|
717
706
|
var a = j();
|
|
718
|
-
return s && B.yb === "everywhere" && (s = !1),
|
|
707
|
+
return s && B.yb === "everywhere" && (s = !1), F === Te ? (!s && (B.yb && co(re) || Z && Zn(re)) && g.slice(W, Ie).indexOf("\\") === -1 && r(W, "The keyword '" + re + "' is reserved"), a.name = re) : s && F.l ? a.name = F.l : ae(), Ke = !1, k(), w(a, "Identifier");
|
|
719
708
|
}
|
|
720
709
|
e.version = "0.5.0";
|
|
721
|
-
var B, g = "",
|
|
710
|
+
var B, g = "", xe, Nt;
|
|
722
711
|
e.parse = function(s, a) {
|
|
723
|
-
g = String(s),
|
|
712
|
+
g = String(s), xe = g.length, B = a || {};
|
|
724
713
|
for (var l in wn)
|
|
725
714
|
Object.prototype.hasOwnProperty.call(B, l) || (B[l] = wn[l]);
|
|
726
|
-
for (Nt = B.sourceFile, Be = 1, c = ce = 0, Ke = !0, h(), l = B.dc, Mt = be = c, B.C && (Wt = new i()), Ge = Z = !1, M = [],
|
|
727
|
-
l = ie(), s.body.push(l), a &&
|
|
715
|
+
for (Nt = B.sourceFile, Be = 1, c = ce = 0, Ke = !0, h(), l = B.dc, Mt = be = c, B.C && (Wt = new i()), Ge = Z = !1, M = [], b(), s = l || j(), a = !0, l || (s.body = []); F !== Vt; )
|
|
716
|
+
l = ie(), s.body.push(l), a && It(l) && Me(!0), a = !1;
|
|
728
717
|
return w(s, "Program");
|
|
729
718
|
};
|
|
730
719
|
var wn = {
|
|
@@ -738,7 +727,7 @@ var x, xo = function(e) {
|
|
|
738
727
|
dc: null,
|
|
739
728
|
sourceFile: null,
|
|
740
729
|
vb: null
|
|
741
|
-
}, c = 0, W = 0,
|
|
730
|
+
}, c = 0, W = 0, Ie = 0, Ut, _t, F, re, Ke, Be, ce, Mt = 0, be = 0, Wt, Ge, M, Z, Zr = [], ze = {
|
|
742
731
|
type: "num"
|
|
743
732
|
}, Bn = {
|
|
744
733
|
type: "regexp"
|
|
@@ -755,9 +744,9 @@ var x, xo = function(e) {
|
|
|
755
744
|
m: !0
|
|
756
745
|
}, Dn = {
|
|
757
746
|
l: "catch"
|
|
758
|
-
}, In = {
|
|
759
|
-
l: "continue"
|
|
760
747
|
}, xn = {
|
|
748
|
+
l: "continue"
|
|
749
|
+
}, In = {
|
|
761
750
|
l: "debugger"
|
|
762
751
|
}, Tn = {
|
|
763
752
|
l: "default"
|
|
@@ -781,10 +770,10 @@ var x, xo = function(e) {
|
|
|
781
770
|
m: !0
|
|
782
771
|
}, Gt = {
|
|
783
772
|
l: "switch"
|
|
784
|
-
},
|
|
773
|
+
}, Un = {
|
|
785
774
|
l: "throw",
|
|
786
775
|
m: !0
|
|
787
|
-
},
|
|
776
|
+
}, _n = {
|
|
788
777
|
l: "try"
|
|
789
778
|
}, zt = {
|
|
790
779
|
l: "var"
|
|
@@ -811,12 +800,12 @@ var x, xo = function(e) {
|
|
|
811
800
|
l: "in",
|
|
812
801
|
L: 7,
|
|
813
802
|
m: !0
|
|
814
|
-
},
|
|
803
|
+
}, eo = {
|
|
815
804
|
break: Lt,
|
|
816
805
|
case: Ht,
|
|
817
806
|
catch: Dn,
|
|
818
|
-
continue:
|
|
819
|
-
debugger:
|
|
807
|
+
continue: xn,
|
|
808
|
+
debugger: In,
|
|
820
809
|
default: Tn,
|
|
821
810
|
do: Rn,
|
|
822
811
|
else: jn,
|
|
@@ -826,8 +815,8 @@ var x, xo = function(e) {
|
|
|
826
815
|
if: Pn,
|
|
827
816
|
return: Nn,
|
|
828
817
|
switch: Gt,
|
|
829
|
-
throw:
|
|
830
|
-
try:
|
|
818
|
+
throw: Un,
|
|
819
|
+
try: _n,
|
|
831
820
|
var: zt,
|
|
832
821
|
while: Xt,
|
|
833
822
|
with: Mn,
|
|
@@ -895,7 +884,7 @@ var x, xo = function(e) {
|
|
|
895
884
|
}, De = {
|
|
896
885
|
Cb: !0,
|
|
897
886
|
m: !0
|
|
898
|
-
},
|
|
887
|
+
}, to = {
|
|
899
888
|
cc: !0,
|
|
900
889
|
prefix: !0,
|
|
901
890
|
$b: !0
|
|
@@ -908,38 +897,38 @@ var x, xo = function(e) {
|
|
|
908
897
|
}, Qn = {
|
|
909
898
|
L: 2,
|
|
910
899
|
m: !0
|
|
911
|
-
},
|
|
900
|
+
}, no = {
|
|
912
901
|
L: 3,
|
|
913
902
|
m: !0
|
|
914
|
-
},
|
|
903
|
+
}, ro = {
|
|
915
904
|
L: 4,
|
|
916
905
|
m: !0
|
|
917
|
-
},
|
|
906
|
+
}, oo = {
|
|
918
907
|
L: 5,
|
|
919
908
|
m: !0
|
|
920
|
-
},
|
|
909
|
+
}, io = {
|
|
921
910
|
L: 6,
|
|
922
911
|
m: !0
|
|
923
|
-
},
|
|
912
|
+
}, so = {
|
|
924
913
|
L: 7,
|
|
925
914
|
m: !0
|
|
926
|
-
},
|
|
915
|
+
}, uo = {
|
|
927
916
|
L: 8,
|
|
928
917
|
m: !0
|
|
929
|
-
},
|
|
918
|
+
}, ao = {
|
|
930
919
|
L: 9,
|
|
931
920
|
prefix: !0,
|
|
932
921
|
m: !0
|
|
933
|
-
},
|
|
922
|
+
}, lo = {
|
|
934
923
|
L: 10,
|
|
935
924
|
m: !0
|
|
936
|
-
}, lo = o("class enum extends super const export import"), Zn = o("implements interface let package private protected public static yield"), yt = o("eval arguments"), co = 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"), po = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, er = RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]"), ho = RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u0620-\u0649\u0672-\u06D3\u06E7-\u06E8\u06FB-\u06FC\u0730-\u074A\u0800-\u0814\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0840-\u0857\u08E4-\u08FE\u0900-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09D7\u09DF-\u09E0\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5F-\u0B60\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D02\u0D03\u0D46-\u0D48\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E34-\u0E3A\u0E40-\u0E45\u0E50-\u0E59\u0EB4-\u0EB9\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F41-\u0F47\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1029\u1040-\u1049\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u170E-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17B2\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1920-\u192B\u1930-\u193B\u1951-\u196D\u19B0-\u19C0\u19C8-\u19C9\u19D0-\u19D9\u1A00-\u1A15\u1A20-\u1A53\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1B46-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C00-\u1C22\u1C40-\u1C49\u1C5B-\u1C7D\u1CD0-\u1CD2\u1D00-\u1DBE\u1E01-\u1F15\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2D81-\u2D96\u2DE0-\u2DFF\u3021-\u3028\u3099\u309A\uA640-\uA66D\uA674-\uA67D\uA69F\uA6F0-\uA6F1\uA7F8-\uA800\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8F3-\uA8F7\uA900-\uA909\uA926-\uA92D\uA930-\uA945\uA980-\uA983\uA9B3-\uA9C0\uAA00-\uAA27\uAA40-\uAA41\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B\uAAE0-\uAAE9\uAAF2-\uAAF3\uABC0-\uABE1\uABEC\uABED\uABF0-\uABF9\uFB20-\uFB28\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]"), vt = /[\n\r\u2028\u2029]/, At = /\r\n|[\n\r\u2028\u2029]/g, je, qt = {
|
|
925
|
+
}, co = o("class enum extends super const export import"), Zn = o("implements interface let package private protected public static yield"), yt = o("eval arguments"), po = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), ho = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, er = RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]"), fo = RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u0620-\u0649\u0672-\u06D3\u06E7-\u06E8\u06FB-\u06FC\u0730-\u074A\u0800-\u0814\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0840-\u0857\u08E4-\u08FE\u0900-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09D7\u09DF-\u09E0\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5F-\u0B60\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D02\u0D03\u0D46-\u0D48\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E34-\u0E3A\u0E40-\u0E45\u0E50-\u0E59\u0EB4-\u0EB9\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F41-\u0F47\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1029\u1040-\u1049\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u170E-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17B2\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1920-\u192B\u1930-\u193B\u1951-\u196D\u19B0-\u19C0\u19C8-\u19C9\u19D0-\u19D9\u1A00-\u1A15\u1A20-\u1A53\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1B46-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C00-\u1C22\u1C40-\u1C49\u1C5B-\u1C7D\u1CD0-\u1CD2\u1D00-\u1DBE\u1E01-\u1F15\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2D81-\u2D96\u2DE0-\u2DFF\u3021-\u3028\u3099\u309A\uA640-\uA66D\uA674-\uA67D\uA69F\uA6F0-\uA6F1\uA7F8-\uA800\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8F3-\uA8F7\uA900-\uA909\uA926-\uA92D\uA930-\uA945\uA980-\uA983\uA9B3-\uA9C0\uAA00-\uAA27\uAA40-\uAA41\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B\uAAE0-\uAAE9\uAAF2-\uAAF3\uABC0-\uABE1\uABEC\uABED\uABF0-\uABF9\uFB20-\uFB28\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]"), vt = /[\n\r\u2028\u2029]/, At = /\r\n|[\n\r\u2028\u2029]/g, je, qt = {
|
|
937
926
|
kind: "loop"
|
|
938
|
-
},
|
|
927
|
+
}, mo = {
|
|
939
928
|
kind: "switch"
|
|
940
929
|
};
|
|
941
930
|
}, on = on = typeof globalThis > "u" ? void 0 : globalThis;
|
|
942
|
-
|
|
931
|
+
To(on.j || (on.j = {}));
|
|
943
932
|
function f(e, t) {
|
|
944
933
|
typeof e == "string" && (e = Ne(e, "code"));
|
|
945
934
|
var n = e.constructor;
|
|
@@ -956,7 +945,7 @@ function f(e, t) {
|
|
|
956
945
|
for (u in this)
|
|
957
946
|
typeof this[u] == "function" && (i = u.match(e)) && (this.rb[i[1]] = this[u].bind(this));
|
|
958
947
|
this.N = un(this, this.ra, null), this.Na = this.N.object, this.ra = Ne(this.ba.join(`
|
|
959
|
-
`), "polyfills"), this.ba = void 0, wt(this.ra), i = new
|
|
948
|
+
`), "polyfills"), this.ba = void 0, wt(this.ra), i = new v(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new v(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
960
949
|
}
|
|
961
950
|
var nr = {
|
|
962
951
|
C: !0,
|
|
@@ -981,15 +970,15 @@ var nr = {
|
|
|
981
970
|
configurable: !1,
|
|
982
971
|
enumerable: !0,
|
|
983
972
|
writable: !0
|
|
984
|
-
},
|
|
973
|
+
}, Sr = {
|
|
985
974
|
STEP_ERROR: !0
|
|
986
|
-
},
|
|
975
|
+
}, _e = {
|
|
987
976
|
SCOPE_REFERENCE: !0
|
|
988
977
|
}, it = {
|
|
989
978
|
VALUE_IN_DESCRIPTOR: !0
|
|
990
979
|
}, $e = {
|
|
991
980
|
REGEXP_TIMEOUT: !0
|
|
992
|
-
}, or = [], fe = null, tt = null,
|
|
981
|
+
}, or = [], fe = null, tt = null, Fe = typeof globalThis > "u" ? void 0 : globalThis, Ro = ["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();", "};"];
|
|
993
982
|
function pn(e) {
|
|
994
983
|
var t = e >>> 0;
|
|
995
984
|
return t === Number(e) ? t : NaN;
|
|
@@ -1009,18 +998,18 @@ function wt(e, t, n) {
|
|
|
1009
998
|
f.prototype.REGEXP_MODE = 2;
|
|
1010
999
|
f.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
1011
1000
|
f.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1001
|
+
I = f.prototype;
|
|
1002
|
+
I.P = !1;
|
|
1003
|
+
I.Ka = !1;
|
|
1004
|
+
I.Kb = 0;
|
|
1005
|
+
I.ic = 0;
|
|
1017
1006
|
function Ne(e, t) {
|
|
1018
1007
|
var n = {}, r;
|
|
1019
1008
|
for (r in nr)
|
|
1020
1009
|
n[r] = nr[r];
|
|
1021
|
-
return n.sourceFile = t,
|
|
1010
|
+
return n.sourceFile = t, Fe.j.parse(e, n);
|
|
1022
1011
|
}
|
|
1023
|
-
|
|
1012
|
+
I.Jb = function(e) {
|
|
1024
1013
|
var t = this.o[0];
|
|
1025
1014
|
if (!t || t.node.type !== "Program")
|
|
1026
1015
|
throw Error("Expecting original AST to start with a Program node");
|
|
@@ -1028,7 +1017,7 @@ x.Jb = function(e) {
|
|
|
1028
1017
|
throw Error("Expecting new AST to start with a Program node");
|
|
1029
1018
|
st(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
1030
1019
|
};
|
|
1031
|
-
|
|
1020
|
+
I.lb = function() {
|
|
1032
1021
|
var e = this.o, t;
|
|
1033
1022
|
do {
|
|
1034
1023
|
var n = e[e.length - 1];
|
|
@@ -1041,7 +1030,7 @@ x.lb = function() {
|
|
|
1041
1030
|
n = null;
|
|
1042
1031
|
else {
|
|
1043
1032
|
this.ca.shift(), 0 <= n.interval && Dr(this, n, n.interval);
|
|
1044
|
-
var r = new
|
|
1033
|
+
var r = new v(n.node, n.scope);
|
|
1045
1034
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1046
1035
|
}
|
|
1047
1036
|
if (!n)
|
|
@@ -1053,7 +1042,7 @@ x.lb = function() {
|
|
|
1053
1042
|
try {
|
|
1054
1043
|
var i = this.rb[r.type](e, n, r);
|
|
1055
1044
|
} catch (u) {
|
|
1056
|
-
if (u !==
|
|
1045
|
+
if (u !== Sr)
|
|
1057
1046
|
throw this.value !== u && (this.value = void 0), u;
|
|
1058
1047
|
} finally {
|
|
1059
1048
|
tt = o;
|
|
@@ -1066,13 +1055,13 @@ x.lb = function() {
|
|
|
1066
1055
|
} while (!r.end && t > Date.now());
|
|
1067
1056
|
return !0;
|
|
1068
1057
|
};
|
|
1069
|
-
|
|
1058
|
+
I.Eb = function() {
|
|
1070
1059
|
for (; !this.za && this.lb(); )
|
|
1071
1060
|
;
|
|
1072
1061
|
return this.za;
|
|
1073
1062
|
};
|
|
1074
|
-
function
|
|
1075
|
-
e.g(t, "NaN", NaN, Ye), e.g(t, "Infinity", 1 / 0, Ye), e.g(t, "undefined", void 0, Ye), e.g(t, "window", t, cn), e.g(t, "this", t, Ye), e.g(t, "self", t), e.M = new D(null), e.Z = new D(e.M),
|
|
1063
|
+
function jo(e, t) {
|
|
1064
|
+
e.g(t, "NaN", NaN, Ye), e.g(t, "Infinity", 1 / 0, Ye), e.g(t, "undefined", void 0, Ye), e.g(t, "window", t, cn), e.g(t, "this", t, Ye), e.g(t, "self", t), e.M = new D(null), e.Z = new D(e.M), Oo(e, t), $o(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Po(e, t), No(e, t), Uo(e, t), _o(e, t), Mo(e, t), Wo(e, t), Vo(e, t), Lo(e, t), Ho(e, t);
|
|
1076
1065
|
var n = e.i(function() {
|
|
1077
1066
|
throw EvalError("Can't happen");
|
|
1078
1067
|
}, !1);
|
|
@@ -1097,8 +1086,8 @@ function Ro(e, t) {
|
|
|
1097
1086
|
sr(e, i);
|
|
1098
1087
|
}, e.g(t, "clearInterval", e.i(n, !1), y), 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);
|
|
1099
1088
|
}
|
|
1100
|
-
|
|
1101
|
-
function
|
|
1089
|
+
I.Wb = 0;
|
|
1090
|
+
function Oo(e, t) {
|
|
1102
1091
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1103
1092
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", u = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1104
1093
|
if (u) {
|
|
@@ -1111,8 +1100,8 @@ function jo(e, t) {
|
|
|
1111
1100
|
}
|
|
1112
1101
|
try {
|
|
1113
1102
|
var m = Ne("(function(" + u + ") {" + i + "})", "function" + e.Wb++);
|
|
1114
|
-
} catch (
|
|
1115
|
-
C(e, e.T, "Invalid code: " +
|
|
1103
|
+
} catch (b) {
|
|
1104
|
+
C(e, e.T, "Invalid code: " + b.message);
|
|
1116
1105
|
}
|
|
1117
1106
|
return m.body.length !== 1 && C(e, e.T, "Invalid code in function body"), fn(e, m.body[0].la, e.N, "anonymous");
|
|
1118
1107
|
};
|
|
@@ -1120,19 +1109,19 @@ function jo(e, t) {
|
|
|
1120
1109
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, Q), e.Z.H = "Function", r = function(o, i) {
|
|
1121
1110
|
var u = e.o[e.o.length - 1];
|
|
1122
1111
|
u.U = this, u.B = o, u.F = [], i != null && (i instanceof D ? u.F = wr(e, i) : C(e, e.j, "CreateListFromArrayLike called on non-object")), u.eb = !1;
|
|
1123
|
-
},
|
|
1112
|
+
}, H(e, e.O, "apply", r), r = function(o) {
|
|
1124
1113
|
var i = e.o[e.o.length - 1];
|
|
1125
1114
|
i.U = this, i.B = o, i.F = [];
|
|
1126
1115
|
for (var u = 1; u < arguments.length; u++)
|
|
1127
1116
|
i.F.push(arguments[u]);
|
|
1128
1117
|
i.eb = !1;
|
|
1129
|
-
},
|
|
1118
|
+
}, H(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
|
|
1130
1119
|
return String(this);
|
|
1131
|
-
},
|
|
1120
|
+
}, H(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), y), r = function() {
|
|
1132
1121
|
return this.valueOf();
|
|
1133
|
-
},
|
|
1122
|
+
}, H(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
|
|
1134
1123
|
}
|
|
1135
|
-
function
|
|
1124
|
+
function $o(e, t) {
|
|
1136
1125
|
function n(o) {
|
|
1137
1126
|
o != null || C(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1138
1127
|
}
|
|
@@ -1164,22 +1153,22 @@ function Oo(e, t) {
|
|
|
1164
1153
|
return !!o && !o.preventExtensions;
|
|
1165
1154
|
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
|
|
1166
1155
|
return o instanceof D && (o.preventExtensions = !0), o;
|
|
1167
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), y),
|
|
1156
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), y), H(e, e.v, "toString", D.prototype.toString), H(e, e.v, "toLocaleString", D.prototype.toString), H(e, e.v, "valueOf", D.prototype.valueOf), r = function(o) {
|
|
1168
1157
|
return n(this), this instanceof D ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1169
|
-
},
|
|
1158
|
+
}, H(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1170
1159
|
return n(this), this instanceof D ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1171
|
-
},
|
|
1160
|
+
}, H(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1172
1161
|
for (; ; ) {
|
|
1173
1162
|
if (o = ye(e, o), !o)
|
|
1174
1163
|
return !1;
|
|
1175
1164
|
if (o === this)
|
|
1176
1165
|
return !0;
|
|
1177
1166
|
}
|
|
1178
|
-
},
|
|
1167
|
+
}, H(e, e.v, "isPrototypeOf", r);
|
|
1179
1168
|
}
|
|
1180
|
-
function
|
|
1169
|
+
function Po(e, t) {
|
|
1181
1170
|
var n = function(r) {
|
|
1182
|
-
var o = ve(e) ? this :
|
|
1171
|
+
var o = ve(e) ? this : Ue(e), i = arguments[0];
|
|
1183
1172
|
if (arguments.length === 1 && typeof i == "number")
|
|
1184
1173
|
isNaN(pn(i)) && C(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1185
1174
|
else {
|
|
@@ -1197,12 +1186,12 @@ function $o(e, t) {
|
|
|
1197
1186
|
writable: !0
|
|
1198
1187
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1199
1188
|
}
|
|
1200
|
-
function
|
|
1189
|
+
function No(e, t) {
|
|
1201
1190
|
var n = function(r) {
|
|
1202
|
-
return r = arguments.length ?
|
|
1191
|
+
return r = arguments.length ? Fe.String(r) : "", ve(e) ? (this.data = r, this) : r;
|
|
1203
1192
|
};
|
|
1204
1193
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1205
|
-
|
|
1194
|
+
H(e, e.J, t[n], String.prototype[t[n]]);
|
|
1206
1195
|
n = function(r, o, i) {
|
|
1207
1196
|
o = e.R(o), i = e.R(i);
|
|
1208
1197
|
try {
|
|
@@ -1210,9 +1199,9 @@ function Po(e, t) {
|
|
|
1210
1199
|
} catch (u) {
|
|
1211
1200
|
C(e, e.D, "localeCompare: " + u.message);
|
|
1212
1201
|
}
|
|
1213
|
-
},
|
|
1202
|
+
}, H(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1214
1203
|
var u = String(this);
|
|
1215
|
-
if (o = o ? Number(o) : void 0,
|
|
1204
|
+
if (o = o ? Number(o) : void 0, K(e, r, e.I) && (r = r.data, Qe(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1216
1205
|
if (fe)
|
|
1217
1206
|
r = qe(e, "string.split(separator, limit)", {
|
|
1218
1207
|
string: u,
|
|
@@ -1230,7 +1219,7 @@ function Po(e, t) {
|
|
|
1230
1219
|
r = u.split(r, o), i(he(e, r));
|
|
1231
1220
|
}, et(e, e.J, "split", n), n = function(r, o) {
|
|
1232
1221
|
var i = String(this);
|
|
1233
|
-
if (r =
|
|
1222
|
+
if (r = K(e, r, e.I) ? r.data : new RegExp(r), Qe(e, r, o), e.REGEXP_MODE === 2)
|
|
1234
1223
|
if (fe)
|
|
1235
1224
|
r = qe(e, "string.match(regexp)", {
|
|
1236
1225
|
string: i,
|
|
@@ -1246,7 +1235,7 @@ function Po(e, t) {
|
|
|
1246
1235
|
r = i.match(r), o(r && he(e, r));
|
|
1247
1236
|
}, et(e, e.J, "match", n), n = function(r, o) {
|
|
1248
1237
|
var i = String(this);
|
|
1249
|
-
if (
|
|
1238
|
+
if (K(e, r, e.I) ? r = r.data : r = new RegExp(r), Qe(e, r, o), e.REGEXP_MODE === 2)
|
|
1250
1239
|
if (fe)
|
|
1251
1240
|
r = qe(e, "string.search(regexp)", {
|
|
1252
1241
|
string: i,
|
|
@@ -1262,7 +1251,7 @@ function Po(e, t) {
|
|
|
1262
1251
|
o(i.search(r));
|
|
1263
1252
|
}, et(e, e.J, "search", n), n = function(r, o, i) {
|
|
1264
1253
|
var u = String(this);
|
|
1265
|
-
if (o = String(o),
|
|
1254
|
+
if (o = String(o), K(e, r, e.I) && (r = r.data, Qe(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1266
1255
|
if (fe)
|
|
1267
1256
|
r = qe(e, "string.replace(substr, newSubstr)", {
|
|
1268
1257
|
string: u,
|
|
@@ -1280,14 +1269,14 @@ function Po(e, t) {
|
|
|
1280
1269
|
i(u.replace(r, o));
|
|
1281
1270
|
}, et(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1282
1271
|
}
|
|
1283
|
-
function
|
|
1272
|
+
function Uo(e, t) {
|
|
1284
1273
|
e.mb = e.i(function(n) {
|
|
1285
|
-
return n =
|
|
1274
|
+
return n = Fe.Boolean(n), ve(e) ? (this.data = n, this) : n;
|
|
1286
1275
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1287
1276
|
}
|
|
1288
1277
|
function _o(e, t) {
|
|
1289
1278
|
var n = function(r) {
|
|
1290
|
-
return r = arguments.length ?
|
|
1279
|
+
return r = arguments.length ? Fe.Number(r) : 0, ve(e) ? (this.data = r, this) : r;
|
|
1291
1280
|
};
|
|
1292
1281
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, y), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1293
1282
|
e.g(e.aa, t[n], Number[t[n]], Ye);
|
|
@@ -1297,39 +1286,39 @@ function _o(e, t) {
|
|
|
1297
1286
|
} catch (o) {
|
|
1298
1287
|
C(e, e.D, o.message);
|
|
1299
1288
|
}
|
|
1300
|
-
},
|
|
1289
|
+
}, H(e, e.aa, "toExponential", n), n = function(r) {
|
|
1301
1290
|
try {
|
|
1302
1291
|
return Number(this).toFixed(r);
|
|
1303
1292
|
} catch (o) {
|
|
1304
1293
|
C(e, e.D, o.message);
|
|
1305
1294
|
}
|
|
1306
|
-
},
|
|
1295
|
+
}, H(e, e.aa, "toFixed", n), n = function(r) {
|
|
1307
1296
|
try {
|
|
1308
1297
|
return Number(this).toPrecision(r);
|
|
1309
1298
|
} catch (o) {
|
|
1310
1299
|
C(e, e.D, o.message);
|
|
1311
1300
|
}
|
|
1312
|
-
},
|
|
1301
|
+
}, H(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1313
1302
|
try {
|
|
1314
1303
|
return Number(this).toString(r);
|
|
1315
1304
|
} catch (o) {
|
|
1316
1305
|
C(e, e.D, o.message);
|
|
1317
1306
|
}
|
|
1318
|
-
},
|
|
1307
|
+
}, H(e, e.aa, "toString", n), n = function(r, o) {
|
|
1319
1308
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1320
1309
|
try {
|
|
1321
1310
|
return Number(this).toLocaleString(r, o);
|
|
1322
1311
|
} catch (i) {
|
|
1323
1312
|
C(e, e.D, "toLocaleString: " + i.message);
|
|
1324
1313
|
}
|
|
1325
|
-
},
|
|
1314
|
+
}, H(e, e.aa, "toLocaleString", n);
|
|
1326
1315
|
}
|
|
1327
|
-
function
|
|
1316
|
+
function Mo(e, t) {
|
|
1328
1317
|
var n = function(o, i) {
|
|
1329
1318
|
if (!ve(e))
|
|
1330
|
-
return
|
|
1319
|
+
return Fe.Date();
|
|
1331
1320
|
var u = [null].concat(Array.from(arguments));
|
|
1332
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1321
|
+
return this.data = new (Function.prototype.bind.apply(Fe.Date, u))(), this;
|
|
1333
1322
|
};
|
|
1334
1323
|
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, y), e.g(e.$, "now", e.i(Date.now, !1), y), e.g(e.$, "parse", e.i(Date.parse, !1), y), e.g(e.$, "UTC", e.i(Date.UTC, !1), y), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
|
|
1335
1324
|
for (var r = 0; r < t.length; r++)
|
|
@@ -1341,30 +1330,30 @@ function Uo(e, t) {
|
|
|
1341
1330
|
p[h] = e.R(arguments[h]);
|
|
1342
1331
|
return u[o].apply(u, p);
|
|
1343
1332
|
};
|
|
1344
|
-
}(t[r]),
|
|
1333
|
+
}(t[r]), H(e, e.$, t[r], n);
|
|
1345
1334
|
}
|
|
1346
|
-
function
|
|
1335
|
+
function Wo(e, t) {
|
|
1347
1336
|
var n = function(r, o) {
|
|
1348
1337
|
if (ve(e))
|
|
1349
1338
|
var i = this;
|
|
1350
1339
|
else {
|
|
1351
|
-
if (o === void 0 &&
|
|
1340
|
+
if (o === void 0 && K(e, r, e.I))
|
|
1352
1341
|
return r;
|
|
1353
1342
|
i = e.s(e.Ma);
|
|
1354
1343
|
}
|
|
1355
1344
|
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || C(e, e.T, "Invalid regexp flag: " + o);
|
|
1356
1345
|
try {
|
|
1357
|
-
var u = new
|
|
1346
|
+
var u = new Fe.RegExp(r, o);
|
|
1358
1347
|
} catch (p) {
|
|
1359
1348
|
C(e, e.T, p.message);
|
|
1360
1349
|
}
|
|
1361
1350
|
return dn(e, i, u), i;
|
|
1362
1351
|
};
|
|
1363
1352
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, Q), e.g(e.I.h.prototype, "ignoreCase", void 0, Q), e.g(e.I.h.prototype, "multiline", void 0, Q), e.g(e.I.h.prototype, "source", "(?:)", Q), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1364
|
-
function i(
|
|
1365
|
-
if (
|
|
1366
|
-
var
|
|
1367
|
-
return e.g(
|
|
1353
|
+
function i(b) {
|
|
1354
|
+
if (b) {
|
|
1355
|
+
var A = he(e, b);
|
|
1356
|
+
return e.g(A, "index", b.index), e.g(A, "input", b.input), A;
|
|
1368
1357
|
}
|
|
1369
1358
|
return null;
|
|
1370
1359
|
}
|
|
@@ -1377,15 +1366,15 @@ function Mo(e, t) {
|
|
|
1377
1366
|
}, u, o), r !== $e && (e.g(this, "lastIndex", u.lastIndex), o(i(r)));
|
|
1378
1367
|
else {
|
|
1379
1368
|
var p = e.ha(), h = Ze(e, u, p, o), m = this;
|
|
1380
|
-
p.onmessage = function(
|
|
1381
|
-
clearTimeout(h), e.g(m, "lastIndex",
|
|
1369
|
+
p.onmessage = function(b) {
|
|
1370
|
+
clearTimeout(h), e.g(m, "lastIndex", b.data[1]), o(i(b.data[0]));
|
|
1382
1371
|
}, p.postMessage(["exec", u, u.lastIndex, r]);
|
|
1383
1372
|
}
|
|
1384
1373
|
else
|
|
1385
1374
|
r = u.exec(r), e.g(this, "lastIndex", u.lastIndex), o(i(r));
|
|
1386
1375
|
}, et(e, e.I, "exec", n);
|
|
1387
1376
|
}
|
|
1388
|
-
function
|
|
1377
|
+
function Vo(e, t) {
|
|
1389
1378
|
function n(r) {
|
|
1390
1379
|
var o = e.i(function(i) {
|
|
1391
1380
|
var u = ve(e) ? this : e.Aa(o);
|
|
@@ -1398,7 +1387,7 @@ function Wo(e, t) {
|
|
|
1398
1387
|
return sn(e, o, r), o;
|
|
1399
1388
|
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1400
1389
|
}
|
|
1401
|
-
function
|
|
1390
|
+
function Lo(e, t) {
|
|
1402
1391
|
var n = e.s(e.M);
|
|
1403
1392
|
e.g(t, "Math", n, y);
|
|
1404
1393
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1407,7 +1396,7 @@ function Vo(e, t) {
|
|
|
1407
1396
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1408
1397
|
e.g(n, r[t], e.i(Math[r[t]], !1), y);
|
|
1409
1398
|
}
|
|
1410
|
-
function
|
|
1399
|
+
function Ho(e, t) {
|
|
1411
1400
|
var n = e.s(e.M);
|
|
1412
1401
|
e.g(t, "JSON", n, y), t = function(r) {
|
|
1413
1402
|
try {
|
|
@@ -1428,7 +1417,7 @@ function Lo(e, t) {
|
|
|
1428
1417
|
return u;
|
|
1429
1418
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
1430
1419
|
}
|
|
1431
|
-
function
|
|
1420
|
+
function K(e, t, n) {
|
|
1432
1421
|
if (t == null || !n)
|
|
1433
1422
|
return !1;
|
|
1434
1423
|
if (n = n.h.prototype, t === n)
|
|
@@ -1460,9 +1449,9 @@ function sn(e, t, n) {
|
|
|
1460
1449
|
}
|
|
1461
1450
|
e.g(t, "stack", i.trim(), y);
|
|
1462
1451
|
}
|
|
1463
|
-
|
|
1452
|
+
I.ha = function() {
|
|
1464
1453
|
var e = this.ha.Mb;
|
|
1465
|
-
return e || (e = new Blob([
|
|
1454
|
+
return e || (e = new Blob([Ro.join(`
|
|
1466
1455
|
`)], {
|
|
1467
1456
|
type: "application/javascript"
|
|
1468
1457
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1506,15 +1495,15 @@ function Ze(e, t, n, r) {
|
|
|
1506
1495
|
}
|
|
1507
1496
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1508
1497
|
}
|
|
1509
|
-
|
|
1498
|
+
I.Aa = function(e) {
|
|
1510
1499
|
return this.s(e && e.h.prototype);
|
|
1511
1500
|
};
|
|
1512
|
-
|
|
1501
|
+
I.s = function(e) {
|
|
1513
1502
|
if (typeof e != "object")
|
|
1514
1503
|
throw Error("Non object prototype");
|
|
1515
|
-
return e = new D(e),
|
|
1504
|
+
return e = new D(e), K(this, e, this.D) && (e.H = "Error"), e;
|
|
1516
1505
|
};
|
|
1517
|
-
function
|
|
1506
|
+
function Ue(e) {
|
|
1518
1507
|
var t = e.s(e.La);
|
|
1519
1508
|
return e.g(t, "length", 0, {
|
|
1520
1509
|
configurable: !1,
|
|
@@ -1530,14 +1519,14 @@ function fn(e, t, n, r) {
|
|
|
1530
1519
|
var o = hn(e, t.oa.length, !0);
|
|
1531
1520
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", Q), o;
|
|
1532
1521
|
}
|
|
1533
|
-
|
|
1522
|
+
I.i = function(e, t) {
|
|
1534
1523
|
return t = hn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, Q), t;
|
|
1535
1524
|
};
|
|
1536
|
-
|
|
1525
|
+
I.ub = function(e) {
|
|
1537
1526
|
var t = hn(this, e.length, !0);
|
|
1538
1527
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, Q), t;
|
|
1539
1528
|
};
|
|
1540
|
-
|
|
1529
|
+
I.Ia = function(e) {
|
|
1541
1530
|
if (e instanceof D)
|
|
1542
1531
|
throw Error("Object is already pseudo");
|
|
1543
1532
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
@@ -1558,7 +1547,7 @@ x.Ia = function(e) {
|
|
|
1558
1547
|
}, !!t);
|
|
1559
1548
|
}
|
|
1560
1549
|
if (Array.isArray(e)) {
|
|
1561
|
-
t =
|
|
1550
|
+
t = Ue(this);
|
|
1562
1551
|
for (var r = 0; r < e.length; r++)
|
|
1563
1552
|
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1564
1553
|
return t;
|
|
@@ -1568,14 +1557,14 @@ x.Ia = function(e) {
|
|
|
1568
1557
|
this.g(t, r, this.Ia(e[r]));
|
|
1569
1558
|
return t;
|
|
1570
1559
|
};
|
|
1571
|
-
|
|
1560
|
+
I.R = function(e, t) {
|
|
1572
1561
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1573
1562
|
return e;
|
|
1574
1563
|
if (!(e instanceof D))
|
|
1575
1564
|
throw Error("Object is not pseudo");
|
|
1576
|
-
if (
|
|
1565
|
+
if (K(this, e, this.I))
|
|
1577
1566
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
1578
|
-
if (
|
|
1567
|
+
if (K(this, e, this.$))
|
|
1579
1568
|
return new Date(e.data.valueOf());
|
|
1580
1569
|
t = t || {
|
|
1581
1570
|
hb: [],
|
|
@@ -1584,7 +1573,7 @@ x.R = function(e, t) {
|
|
|
1584
1573
|
var n = t.hb.indexOf(e);
|
|
1585
1574
|
if (n !== -1)
|
|
1586
1575
|
return t.Sa[n];
|
|
1587
|
-
if (t.hb.push(e),
|
|
1576
|
+
if (t.hb.push(e), K(this, e, this.qa)) {
|
|
1588
1577
|
n = [], t.Sa.push(n);
|
|
1589
1578
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1590
1579
|
Bt(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
@@ -1599,7 +1588,7 @@ x.R = function(e, t) {
|
|
|
1599
1588
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1600
1589
|
};
|
|
1601
1590
|
function he(e, t) {
|
|
1602
|
-
for (var n =
|
|
1591
|
+
for (var n = Ue(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1603
1592
|
e.g(n, r[o], t[r[o]]);
|
|
1604
1593
|
return n;
|
|
1605
1594
|
}
|
|
@@ -1620,15 +1609,15 @@ function ye(e, t) {
|
|
|
1620
1609
|
}
|
|
1621
1610
|
return t ? t.xa : null;
|
|
1622
1611
|
}
|
|
1623
|
-
|
|
1612
|
+
I.G = function(e, t) {
|
|
1624
1613
|
if (this.P)
|
|
1625
1614
|
throw Error("Getter not supported in that context");
|
|
1626
1615
|
if (t = String(t), e != null || C(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof D))
|
|
1627
1616
|
throw TypeError("Expecting native value or pseudo object");
|
|
1628
1617
|
if (t === "length") {
|
|
1629
|
-
if (
|
|
1618
|
+
if (K(this, e, this.J))
|
|
1630
1619
|
return String(e).length;
|
|
1631
|
-
} else if (64 > t.charCodeAt(0) &&
|
|
1620
|
+
} else if (64 > t.charCodeAt(0) && K(this, e, this.J)) {
|
|
1632
1621
|
var n = nt(t);
|
|
1633
1622
|
if (!isNaN(n) && n < String(e).length)
|
|
1634
1623
|
return String(e)[n];
|
|
@@ -1641,9 +1630,9 @@ x.G = function(e, t) {
|
|
|
1641
1630
|
function Bt(e, t, n) {
|
|
1642
1631
|
if (!(t instanceof D))
|
|
1643
1632
|
throw TypeError("Primitive data type has no properties");
|
|
1644
|
-
if (n = String(n), n === "length" &&
|
|
1633
|
+
if (n = String(n), n === "length" && K(e, t, e.J))
|
|
1645
1634
|
return !0;
|
|
1646
|
-
if (
|
|
1635
|
+
if (K(e, t, e.J)) {
|
|
1647
1636
|
var r = nt(n);
|
|
1648
1637
|
if (!isNaN(r) && r < String(t).length)
|
|
1649
1638
|
return !0;
|
|
@@ -1654,7 +1643,7 @@ function Bt(e, t, n) {
|
|
|
1654
1643
|
while (t = ye(e, t));
|
|
1655
1644
|
return !1;
|
|
1656
1645
|
}
|
|
1657
|
-
|
|
1646
|
+
I.g = function(e, t, n, r) {
|
|
1658
1647
|
if (this.Ka)
|
|
1659
1648
|
throw Error("Setter not supported in that context");
|
|
1660
1649
|
if (t = String(t), e != null || C(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof D))
|
|
@@ -1662,7 +1651,7 @@ x.g = function(e, t, n, r) {
|
|
|
1662
1651
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && C(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1663
1652
|
var o = !this.o || mn(this).S;
|
|
1664
1653
|
if (e instanceof D) {
|
|
1665
|
-
if (
|
|
1654
|
+
if (K(this, e, this.J)) {
|
|
1666
1655
|
var i = nt(t);
|
|
1667
1656
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1668
1657
|
o && C(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
@@ -1716,13 +1705,13 @@ x.g = function(e, t, n, r) {
|
|
|
1716
1705
|
} else
|
|
1717
1706
|
o && C(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1718
1707
|
};
|
|
1719
|
-
|
|
1708
|
+
I.g.ac = function() {
|
|
1720
1709
|
throw Error("Placeholder getter");
|
|
1721
1710
|
};
|
|
1722
|
-
|
|
1711
|
+
I.g.bc = function() {
|
|
1723
1712
|
throw Error("Placeholder setter");
|
|
1724
1713
|
};
|
|
1725
|
-
function
|
|
1714
|
+
function H(e, t, n, r) {
|
|
1726
1715
|
e.g(t.h.prototype, n, e.i(r, !1), y);
|
|
1727
1716
|
}
|
|
1728
1717
|
function et(e, t, n, r) {
|
|
@@ -1741,12 +1730,12 @@ function un(e, t, n) {
|
|
|
1741
1730
|
var o = t.body && t.body[0];
|
|
1742
1731
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1743
1732
|
}
|
|
1744
|
-
return o = e.s(null), r = new
|
|
1733
|
+
return o = e.s(null), r = new xr(n, r, o), n || jo(e, r.object), st(e, t, r), r;
|
|
1745
1734
|
}
|
|
1746
1735
|
function gn(e, t, n) {
|
|
1747
1736
|
if (!t)
|
|
1748
1737
|
throw Error("parentScope required");
|
|
1749
|
-
return e = n || e.s(null), new
|
|
1738
|
+
return e = n || e.s(null), new xr(t, t.S, e);
|
|
1750
1739
|
}
|
|
1751
1740
|
function yn(e, t) {
|
|
1752
1741
|
for (var n = mn(e); n && n !== e.N; ) {
|
|
@@ -1827,13 +1816,13 @@ function ve(e) {
|
|
|
1827
1816
|
return e.o[e.o.length - 1].isConstructor;
|
|
1828
1817
|
}
|
|
1829
1818
|
function vn(e, t) {
|
|
1830
|
-
return t[0] ===
|
|
1819
|
+
return t[0] === _e ? yn(e, t[1]) : e.G(t[0], t[1]);
|
|
1831
1820
|
}
|
|
1832
1821
|
function An(e, t, n) {
|
|
1833
|
-
return t[0] ===
|
|
1822
|
+
return t[0] === _e ? Br(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1834
1823
|
}
|
|
1835
1824
|
function C(e, t, n) {
|
|
1836
|
-
throw e.N ? (n !== void 0 && t instanceof D && (t = e.Aa(t), sn(e, t, n)), lt(e, 4, t),
|
|
1825
|
+
throw e.N ? (n !== void 0 && t instanceof D && (t = e.Aa(t), sn(e, t, n)), lt(e, 4, t), Sr) : n === void 0 ? t : n;
|
|
1837
1826
|
}
|
|
1838
1827
|
function lt(e, t, n, r) {
|
|
1839
1828
|
if (t === 0)
|
|
@@ -1871,7 +1860,7 @@ function lt(e, t, n, r) {
|
|
|
1871
1860
|
} else if (t === 2 && (r ? i.labels && i.labels.indexOf(r) !== -1 : i.W))
|
|
1872
1861
|
return;
|
|
1873
1862
|
}
|
|
1874
|
-
throw
|
|
1863
|
+
throw K(e, n, e.D) ? (t = {
|
|
1875
1864
|
EvalError,
|
|
1876
1865
|
RangeError,
|
|
1877
1866
|
ReferenceError,
|
|
@@ -1926,7 +1915,7 @@ function ir(e, t, n) {
|
|
|
1926
1915
|
}
|
|
1927
1916
|
u.type = "EvalProgram_", u.body = h.body, r = r.node.arguments[0], wt(u, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1928
1917
|
}
|
|
1929
|
-
return t = new
|
|
1918
|
+
return t = new Ko(p, o, r, u, t ? n : -1), Dr(e, t, n), t.Db;
|
|
1930
1919
|
}
|
|
1931
1920
|
function Dr(e, t, n) {
|
|
1932
1921
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
@@ -1945,41 +1934,41 @@ function ct(e, t, n) {
|
|
|
1945
1934
|
throw Error("Unexpected call to createGetter");
|
|
1946
1935
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
1947
1936
|
var r = e.ya();
|
|
1948
|
-
return r.type = "CallExpression", e = new
|
|
1937
|
+
return r.type = "CallExpression", e = new v(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1949
1938
|
}
|
|
1950
1939
|
function Cn(e, t, n, r) {
|
|
1951
1940
|
if (!e.Ka)
|
|
1952
1941
|
throw Error("Unexpected call to createSetter");
|
|
1953
1942
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1954
1943
|
var o = e.ya();
|
|
1955
|
-
return o.type = "CallExpression", e = new
|
|
1944
|
+
return o.type = "CallExpression", e = new v(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1956
1945
|
}
|
|
1957
1946
|
function Zt(e, t) {
|
|
1958
1947
|
return t == null ? e.Na : t instanceof D ? t : (e = e.s(ye(e, t)), e.data = t, e);
|
|
1959
1948
|
}
|
|
1960
|
-
|
|
1949
|
+
I.Xb = function() {
|
|
1961
1950
|
return this.N;
|
|
1962
1951
|
};
|
|
1963
|
-
|
|
1952
|
+
I.Yb = function() {
|
|
1964
1953
|
return this.o;
|
|
1965
1954
|
};
|
|
1966
|
-
|
|
1955
|
+
I.ec = function(e) {
|
|
1967
1956
|
this.o = e;
|
|
1968
1957
|
};
|
|
1969
|
-
function
|
|
1958
|
+
function v(e, t) {
|
|
1970
1959
|
this.node = e, this.scope = t;
|
|
1971
1960
|
}
|
|
1972
|
-
function
|
|
1961
|
+
function xr(e, t, n) {
|
|
1973
1962
|
this.Va = e, this.S = t, this.object = n;
|
|
1974
1963
|
}
|
|
1975
1964
|
function D(e) {
|
|
1976
1965
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1977
1966
|
}
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1967
|
+
I = D.prototype;
|
|
1968
|
+
I.xa = null;
|
|
1969
|
+
I.H = "Object";
|
|
1970
|
+
I.data = null;
|
|
1971
|
+
I.toString = function() {
|
|
1983
1972
|
if (!tt)
|
|
1984
1973
|
return "[object Interpreter.Object]";
|
|
1985
1974
|
if (!(this instanceof D))
|
|
@@ -2027,28 +2016,28 @@ x.toString = function() {
|
|
|
2027
2016
|
}
|
|
2028
2017
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
2029
2018
|
};
|
|
2030
|
-
|
|
2019
|
+
I.valueOf = function() {
|
|
2031
2020
|
return !tt || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2032
2021
|
};
|
|
2033
|
-
function
|
|
2034
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
2022
|
+
function Ko(e, t, n, r, o) {
|
|
2023
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Go, this.time = 0;
|
|
2035
2024
|
}
|
|
2036
|
-
var
|
|
2025
|
+
var Go = 0;
|
|
2037
2026
|
f.prototype.stepArrayExpression = function(e, t, n) {
|
|
2038
2027
|
n = n.elements;
|
|
2039
2028
|
var r = t.A || 0;
|
|
2040
|
-
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa =
|
|
2029
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Ue(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
2041
2030
|
if (n[r])
|
|
2042
|
-
return t.A = r, new
|
|
2031
|
+
return t.A = r, new v(n[r], t.scope);
|
|
2043
2032
|
r++;
|
|
2044
2033
|
}
|
|
2045
2034
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
2046
2035
|
};
|
|
2047
2036
|
f.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
2048
2037
|
if (!t.ja)
|
|
2049
|
-
return t.ja = !0, t = new
|
|
2038
|
+
return t.ja = !0, t = new v(n.left, t.scope), t.sa = !0, t;
|
|
2050
2039
|
if (!t.Da)
|
|
2051
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = vn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, ct(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new
|
|
2040
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = vn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, ct(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new v(n.right, t.scope));
|
|
2052
2041
|
if (t.ta)
|
|
2053
2042
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2054
2043
|
else {
|
|
@@ -2100,9 +2089,9 @@ f.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2100
2089
|
};
|
|
2101
2090
|
f.prototype.stepBinaryExpression = function(e, t, n) {
|
|
2102
2091
|
if (!t.ja)
|
|
2103
|
-
return t.ja = !0, new
|
|
2092
|
+
return t.ja = !0, new v(n.left, t.scope);
|
|
2104
2093
|
if (!t.Da)
|
|
2105
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2094
|
+
return t.Da = !0, t.ma = t.value, new v(n.right, t.scope);
|
|
2106
2095
|
e.pop();
|
|
2107
2096
|
var r = t.ma;
|
|
2108
2097
|
switch (t = t.value, n.operator) {
|
|
@@ -2167,7 +2156,7 @@ f.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2167
2156
|
t instanceof D || C(this, this.j, "'in' expects an object, not '" + t + "'"), n = Bt(this, t, r);
|
|
2168
2157
|
break;
|
|
2169
2158
|
case "instanceof":
|
|
2170
|
-
|
|
2159
|
+
K(this, t, this.O) || C(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof D ? K(this, r, t) : !1;
|
|
2171
2160
|
break;
|
|
2172
2161
|
default:
|
|
2173
2162
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2177,7 +2166,7 @@ f.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2177
2166
|
f.prototype.stepBlockStatement = function(e, t, n) {
|
|
2178
2167
|
var r = t.A || 0;
|
|
2179
2168
|
if (n = n.body[r])
|
|
2180
|
-
return t.A = r + 1, new
|
|
2169
|
+
return t.A = r + 1, new v(n, t.scope);
|
|
2181
2170
|
e.pop();
|
|
2182
2171
|
};
|
|
2183
2172
|
f.prototype.stepBreakStatement = function(e, t, n) {
|
|
@@ -2187,14 +2176,14 @@ f.prototype.Hb = 0;
|
|
|
2187
2176
|
f.prototype.stepCallExpression = function(e, t, n) {
|
|
2188
2177
|
if (!t.ia) {
|
|
2189
2178
|
t.ia = 1;
|
|
2190
|
-
var r = new
|
|
2179
|
+
var r = new v(n.callee, t.scope);
|
|
2191
2180
|
return r.sa = !0, r;
|
|
2192
2181
|
}
|
|
2193
2182
|
if (t.ia === 1) {
|
|
2194
2183
|
t.ia = 2;
|
|
2195
2184
|
var o = t.value;
|
|
2196
2185
|
if (Array.isArray(o)) {
|
|
2197
|
-
if (t.U = vn(this, o), o[0] ===
|
|
2186
|
+
if (t.U = vn(this, o), o[0] === _e ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2198
2187
|
return t.ia = 1, ct(this, o, t.value);
|
|
2199
2188
|
} else
|
|
2200
2189
|
t.U = o;
|
|
@@ -2202,10 +2191,10 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2202
2191
|
}
|
|
2203
2192
|
if (o = t.U, !t.Qa) {
|
|
2204
2193
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2205
|
-
return new
|
|
2194
|
+
return new v(n.arguments[t.A++], t.scope);
|
|
2206
2195
|
if (n.type === "NewExpression") {
|
|
2207
2196
|
if (o instanceof D && !o.Ab || C(this, this.j, q(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2208
|
-
t.B =
|
|
2197
|
+
t.B = Ue(this);
|
|
2209
2198
|
else {
|
|
2210
2199
|
var i = o.h.prototype;
|
|
2211
2200
|
(typeof i != "object" || i === null) && (i = this.M), t.B = this.s(i);
|
|
@@ -2218,11 +2207,11 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2218
2207
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2219
2208
|
else {
|
|
2220
2209
|
if (t.eb = !0, o instanceof D || C(this, this.j, q(this, n.callee) + " is not a function"), e = o.node) {
|
|
2221
|
-
for (n = un(this, e.body, o.Va), r =
|
|
2210
|
+
for (n = un(this, e.body, o.Va), r = Ue(this), o = 0; o < t.F.length; o++)
|
|
2222
2211
|
this.g(r, o, t.F[o]);
|
|
2223
2212
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2224
2213
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2225
|
-
return n.S || (t.B = Zt(this, t.B)), this.g(n.object, "this", t.B, cn), t.value = void 0, new
|
|
2214
|
+
return n.S || (t.B = Zt(this, t.B)), this.g(n.object, "this", t.B, cn), t.value = void 0, new v(e.body, n);
|
|
2226
2215
|
}
|
|
2227
2216
|
if (o.eval)
|
|
2228
2217
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2233,7 +2222,7 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2233
2222
|
} catch (p) {
|
|
2234
2223
|
C(this, this.T, "Invalid code: " + p.message);
|
|
2235
2224
|
}
|
|
2236
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, wt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = un(this, r, n) : st(this, r, n), this.value = void 0, new
|
|
2225
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, wt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = un(this, r, n) : st(this, r, n), this.value = void 0, new v(o, n);
|
|
2237
2226
|
}
|
|
2238
2227
|
else if (o.Ta)
|
|
2239
2228
|
t.scope.S || (t.B = Zt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
@@ -2249,12 +2238,12 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2249
2238
|
f.prototype.stepConditionalExpression = function(e, t, n) {
|
|
2250
2239
|
var r = t.na || 0;
|
|
2251
2240
|
if (r === 0)
|
|
2252
|
-
return t.na = 1, new
|
|
2241
|
+
return t.na = 1, new v(n.test, t.scope);
|
|
2253
2242
|
if (r === 1) {
|
|
2254
2243
|
if (t.na = 2, (r = !!t.value) && n.da)
|
|
2255
|
-
return new
|
|
2244
|
+
return new v(n.da, t.scope);
|
|
2256
2245
|
if (!r && n.alternate)
|
|
2257
|
-
return new
|
|
2246
|
+
return new v(n.alternate, t.scope);
|
|
2258
2247
|
this.value = void 0;
|
|
2259
2248
|
}
|
|
2260
2249
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
@@ -2267,11 +2256,11 @@ f.prototype.stepDebuggerStatement = function(e) {
|
|
|
2267
2256
|
};
|
|
2268
2257
|
f.prototype.stepDoWhileStatement = function(e, t, n) {
|
|
2269
2258
|
if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2270
|
-
return t.ga = !0, new
|
|
2259
|
+
return t.ga = !0, new v(n.test, t.scope);
|
|
2271
2260
|
if (!t.value)
|
|
2272
2261
|
e.pop();
|
|
2273
2262
|
else if (n.body)
|
|
2274
|
-
return t.ga = !1, t.W = !0, new
|
|
2263
|
+
return t.ga = !1, t.W = !0, new v(n.body, t.scope);
|
|
2275
2264
|
};
|
|
2276
2265
|
f.prototype.stepEmptyStatement = function(e) {
|
|
2277
2266
|
e.pop();
|
|
@@ -2279,19 +2268,19 @@ f.prototype.stepEmptyStatement = function(e) {
|
|
|
2279
2268
|
f.prototype.stepEvalProgram_ = function(e, t, n) {
|
|
2280
2269
|
var r = t.A || 0;
|
|
2281
2270
|
if (n = n.body[r])
|
|
2282
|
-
return t.A = r + 1, new
|
|
2271
|
+
return t.A = r + 1, new v(n, t.scope);
|
|
2283
2272
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2284
2273
|
};
|
|
2285
2274
|
f.prototype.stepExpressionStatement = function(e, t, n) {
|
|
2286
2275
|
if (!t.ka)
|
|
2287
|
-
return this.value = void 0, t.ka = !0, new
|
|
2276
|
+
return this.value = void 0, t.ka = !0, new v(n.la, t.scope);
|
|
2288
2277
|
e.pop(), this.value = t.value;
|
|
2289
2278
|
};
|
|
2290
2279
|
f.prototype.stepForInStatement = function(e, t, n) {
|
|
2291
2280
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2292
|
-
return t.scope.S && C(this, this.T, "for-in loop variable declaration may not have an initializer"), new
|
|
2281
|
+
return t.scope.S && C(this, this.T, "for-in loop variable declaration may not have an initializer"), new v(n.left, t.scope);
|
|
2293
2282
|
if (!t.Ca)
|
|
2294
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2283
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new v(n.right, t.scope);
|
|
2295
2284
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2296
2285
|
e:
|
|
2297
2286
|
for (; ; ) {
|
|
@@ -2319,33 +2308,33 @@ f.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2319
2308
|
}
|
|
2320
2309
|
if (!t.wb)
|
|
2321
2310
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2322
|
-
t.pa = [
|
|
2311
|
+
t.pa = [_e, e.fa[0].id.name];
|
|
2323
2312
|
else
|
|
2324
|
-
return t.pa = null, t = new
|
|
2313
|
+
return t.pa = null, t = new v(e, t.scope), t.sa = !0, t;
|
|
2325
2314
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = An(this, t.pa, e)))
|
|
2326
2315
|
return Cn(this, r, t.pa, e);
|
|
2327
2316
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2328
|
-
return new
|
|
2317
|
+
return new v(n.body, t.scope);
|
|
2329
2318
|
};
|
|
2330
2319
|
f.prototype.stepForStatement = function(e, t, n) {
|
|
2331
2320
|
switch (t.na) {
|
|
2332
2321
|
default:
|
|
2333
2322
|
if (t.na = 1, n.ua)
|
|
2334
|
-
return new
|
|
2323
|
+
return new v(n.ua, t.scope);
|
|
2335
2324
|
break;
|
|
2336
2325
|
case 1:
|
|
2337
2326
|
if (t.na = 2, n.test)
|
|
2338
|
-
return new
|
|
2327
|
+
return new v(n.test, t.scope);
|
|
2339
2328
|
break;
|
|
2340
2329
|
case 2:
|
|
2341
2330
|
if (t.na = 3, n.test && !t.value)
|
|
2342
2331
|
e.pop();
|
|
2343
2332
|
else
|
|
2344
|
-
return t.W = !0, new
|
|
2333
|
+
return t.W = !0, new v(n.body, t.scope);
|
|
2345
2334
|
break;
|
|
2346
2335
|
case 3:
|
|
2347
2336
|
if (t.na = 1, n.update)
|
|
2348
|
-
return new
|
|
2337
|
+
return new v(n.update, t.scope);
|
|
2349
2338
|
}
|
|
2350
2339
|
};
|
|
2351
2340
|
f.prototype.stepFunctionDeclaration = function(e) {
|
|
@@ -2356,7 +2345,7 @@ f.prototype.stepFunctionExpression = function(e, t, n) {
|
|
|
2356
2345
|
};
|
|
2357
2346
|
f.prototype.stepIdentifier = function(e, t, n) {
|
|
2358
2347
|
if (e.pop(), t.sa)
|
|
2359
|
-
e[e.length - 1].value = [
|
|
2348
|
+
e[e.length - 1].value = [_e, n.name];
|
|
2360
2349
|
else {
|
|
2361
2350
|
if (t = yn(this, n.name), this.P)
|
|
2362
2351
|
return ct(this, t, this.Na);
|
|
@@ -2365,7 +2354,7 @@ f.prototype.stepIdentifier = function(e, t, n) {
|
|
|
2365
2354
|
};
|
|
2366
2355
|
f.prototype.stepIfStatement = f.prototype.stepConditionalExpression;
|
|
2367
2356
|
f.prototype.stepLabeledStatement = function(e, t, n) {
|
|
2368
|
-
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new
|
|
2357
|
+
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new v(n.body, t.scope), t.labels = e, t;
|
|
2369
2358
|
};
|
|
2370
2359
|
f.prototype.stepLiteral = function(e, t, n) {
|
|
2371
2360
|
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), dn(this, n, t), t = n), e[e.length - 1].value = t;
|
|
@@ -2374,22 +2363,22 @@ f.prototype.stepLogicalExpression = function(e, t, n) {
|
|
|
2374
2363
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
2375
2364
|
throw SyntaxError("Unknown logical operator: " + n.operator);
|
|
2376
2365
|
if (!t.ja)
|
|
2377
|
-
return t.ja = !0, new
|
|
2366
|
+
return t.ja = !0, new v(n.left, t.scope);
|
|
2378
2367
|
if (t.Da)
|
|
2379
2368
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2380
2369
|
else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
|
|
2381
2370
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2382
2371
|
else
|
|
2383
|
-
return t.Da = !0, new
|
|
2372
|
+
return t.Da = !0, new v(n.right, t.scope);
|
|
2384
2373
|
};
|
|
2385
2374
|
f.prototype.stepMemberExpression = function(e, t, n) {
|
|
2386
2375
|
if (!t.Ca)
|
|
2387
|
-
return t.Ca = !0, new
|
|
2376
|
+
return t.Ca = !0, new v(n.object, t.scope);
|
|
2388
2377
|
if (n.bb)
|
|
2389
2378
|
if (t.Vb)
|
|
2390
2379
|
n = t.value;
|
|
2391
2380
|
else
|
|
2392
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2381
|
+
return t.u = t.value, t.Vb = !0, new v(n.Wa, t.scope);
|
|
2393
2382
|
else
|
|
2394
2383
|
t.u = t.value, n = n.Wa.name;
|
|
2395
2384
|
if (e.pop(), t.sa)
|
|
@@ -2416,7 +2405,7 @@ f.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2416
2405
|
i = u.value;
|
|
2417
2406
|
else
|
|
2418
2407
|
throw SyntaxError("Unknown object structure: " + u.type);
|
|
2419
|
-
return t.Pa = i, new
|
|
2408
|
+
return t.Pa = i, new v(o.value, t.scope);
|
|
2420
2409
|
}
|
|
2421
2410
|
for (u in t.Ja)
|
|
2422
2411
|
n = t.Ja[u], "get" in n || "set" in n ? this.g(t.u, u, it, {
|
|
@@ -2429,35 +2418,35 @@ f.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2429
2418
|
};
|
|
2430
2419
|
f.prototype.stepProgram = function(e, t, n) {
|
|
2431
2420
|
if (e = n.body.shift())
|
|
2432
|
-
return t.done = !1, new
|
|
2421
|
+
return t.done = !1, new v(e, t.scope);
|
|
2433
2422
|
t.done = !0;
|
|
2434
2423
|
};
|
|
2435
2424
|
f.prototype.stepReturnStatement = function(e, t, n) {
|
|
2436
2425
|
if (n.K && !t.ka)
|
|
2437
|
-
return t.ka = !0, new
|
|
2426
|
+
return t.ka = !0, new v(n.K, t.scope);
|
|
2438
2427
|
lt(this, 3, t.value);
|
|
2439
2428
|
};
|
|
2440
2429
|
f.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2441
2430
|
var r = t.A || 0;
|
|
2442
2431
|
if (n = n.xb[r])
|
|
2443
|
-
return t.A = r + 1, new
|
|
2432
|
+
return t.A = r + 1, new v(n, t.scope);
|
|
2444
2433
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2445
2434
|
};
|
|
2446
2435
|
f.prototype.stepSwitchStatement = function(e, t, n) {
|
|
2447
2436
|
if (!t.ga)
|
|
2448
|
-
return t.ga = 1, new
|
|
2437
|
+
return t.ga = 1, new v(n.Qb, t.scope);
|
|
2449
2438
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2450
2439
|
var r = t.gb || 0, o = n.tb[r];
|
|
2451
2440
|
if (t.Ha || !o || o.test)
|
|
2452
2441
|
if (o || t.Ha || t.cb === -1)
|
|
2453
2442
|
if (o) {
|
|
2454
2443
|
if (!t.Ha && !t.Fb && o.test)
|
|
2455
|
-
return t.Fb = !0, new
|
|
2444
|
+
return t.Fb = !0, new v(o.test, t.scope);
|
|
2456
2445
|
if (t.Ha || t.value === t.hc) {
|
|
2457
2446
|
t.Ha = !0;
|
|
2458
2447
|
var i = t.A || 0;
|
|
2459
2448
|
if (o.da[i])
|
|
2460
|
-
return t.Zb = !0, t.A = i + 1, new
|
|
2449
|
+
return t.Zb = !0, t.A = i + 1, new v(o.da[i], t.scope);
|
|
2461
2450
|
}
|
|
2462
2451
|
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2463
2452
|
} else {
|
|
@@ -2477,20 +2466,20 @@ f.prototype.stepThrowStatement = function(e, t, n) {
|
|
|
2477
2466
|
if (t.ka)
|
|
2478
2467
|
C(this, t.value);
|
|
2479
2468
|
else
|
|
2480
|
-
return t.ka = !0, new
|
|
2469
|
+
return t.ka = !0, new v(n.K, t.scope);
|
|
2481
2470
|
};
|
|
2482
2471
|
f.prototype.stepTryStatement = function(e, t, n) {
|
|
2483
2472
|
if (!t.Rb)
|
|
2484
|
-
return t.Rb = !0, new
|
|
2473
|
+
return t.Rb = !0, new v(n.block, t.scope);
|
|
2485
2474
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2486
|
-
return t.Tb = !0, e = gn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new
|
|
2475
|
+
return t.Tb = !0, e = gn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new v(n.Ea.body, e);
|
|
2487
2476
|
if (!t.Sb && n.fb)
|
|
2488
|
-
return t.Sb = !0, new
|
|
2477
|
+
return t.Sb = !0, new v(n.fb, t.scope);
|
|
2489
2478
|
e.pop(), t.ea && lt(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2490
2479
|
};
|
|
2491
2480
|
f.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2492
2481
|
if (!t.ka)
|
|
2493
|
-
return t.ka = !0, e = new
|
|
2482
|
+
return t.ka = !0, e = new v(n.K, t.scope), e.sa = n.operator === "delete", e;
|
|
2494
2483
|
e.pop();
|
|
2495
2484
|
var r = t.value;
|
|
2496
2485
|
switch (n.operator) {
|
|
@@ -2509,7 +2498,7 @@ f.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2509
2498
|
case "delete":
|
|
2510
2499
|
if (n = !0, Array.isArray(r)) {
|
|
2511
2500
|
var o = r[0];
|
|
2512
|
-
o ===
|
|
2501
|
+
o === _e && (o = t.scope), r = String(r[1]);
|
|
2513
2502
|
try {
|
|
2514
2503
|
delete o.h[r];
|
|
2515
2504
|
} catch {
|
|
@@ -2531,7 +2520,7 @@ f.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2531
2520
|
};
|
|
2532
2521
|
f.prototype.stepUpdateExpression = function(e, t, n) {
|
|
2533
2522
|
if (!t.ja)
|
|
2534
|
-
return t.ja = !0, e = new
|
|
2523
|
+
return t.ja = !0, e = new v(n.K, t.scope), e.sa = !0, e;
|
|
2535
2524
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2536
2525
|
var r = vn(this, t.Ga);
|
|
2537
2526
|
if (t.ma = r, this.P)
|
|
@@ -2556,16 +2545,16 @@ f.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2556
2545
|
var r = t.A || 0, o = n[r];
|
|
2557
2546
|
for (t.Bb && o && (Br(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2558
2547
|
if (o.ua)
|
|
2559
|
-
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new
|
|
2548
|
+
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new v(o.ua, t.scope);
|
|
2560
2549
|
o = n[++r];
|
|
2561
2550
|
}
|
|
2562
2551
|
e.pop();
|
|
2563
2552
|
};
|
|
2564
2553
|
f.prototype.stepWithStatement = function(e, t, n) {
|
|
2565
|
-
return t.Ca ? (e.pop(), e = gn(this, t.scope, t.value), new
|
|
2554
|
+
return t.Ca ? (e.pop(), e = gn(this, t.scope, t.value), new v(n.body, e)) : (t.Ca = !0, new v(n.object, t.scope));
|
|
2566
2555
|
};
|
|
2567
2556
|
f.prototype.stepWhileStatement = f.prototype.stepDoWhileStatement;
|
|
2568
|
-
|
|
2557
|
+
Fe.Interpreter = f;
|
|
2569
2558
|
f.prototype.step = f.prototype.lb;
|
|
2570
2559
|
f.prototype.run = f.prototype.Eb;
|
|
2571
2560
|
f.prototype.appendCode = f.prototype.Jb;
|
|
@@ -2581,7 +2570,7 @@ f.prototype.getGlobalScope = f.prototype.Xb;
|
|
|
2581
2570
|
f.prototype.getStateStack = f.prototype.Yb;
|
|
2582
2571
|
f.prototype.setStateStack = f.prototype.ec;
|
|
2583
2572
|
f.VALUE_IN_DESCRIPTOR = it;
|
|
2584
|
-
const
|
|
2573
|
+
const zo = (e) => e.split(`
|
|
2585
2574
|
`).map((t) => {
|
|
2586
2575
|
const n = t.trim();
|
|
2587
2576
|
if (t.includes("__awaiter"))
|
|
@@ -2594,7 +2583,7 @@ const Go = (e) => e.split(`
|
|
|
2594
2583
|
${p}
|
|
2595
2584
|
`;
|
|
2596
2585
|
}).filter(Boolean).join(`
|
|
2597
|
-
`), ur = (e) => e + "JSON",
|
|
2586
|
+
`), ur = (e) => e + "JSON", Xo = ({
|
|
2598
2587
|
builder: e,
|
|
2599
2588
|
context: t,
|
|
2600
2589
|
event: n,
|
|
@@ -2611,42 +2600,42 @@ const Go = (e) => e.split(`
|
|
|
2611
2600
|
context: t,
|
|
2612
2601
|
event: n,
|
|
2613
2602
|
state: p
|
|
2614
|
-
}), m = h.map(([
|
|
2615
|
-
const
|
|
2616
|
-
return `var ${
|
|
2603
|
+
}), m = h.map(([T]) => {
|
|
2604
|
+
const U = ur(T);
|
|
2605
|
+
return `var ${T} = ${U} === undefined ? undefined : JSON.parse(${U});`;
|
|
2617
2606
|
}).join(`
|
|
2618
|
-
`),
|
|
2619
|
-
if (
|
|
2607
|
+
`), b = zo(u);
|
|
2608
|
+
if (b === "") {
|
|
2620
2609
|
te.warn("Skipping evaluation of empty code block.");
|
|
2621
2610
|
return;
|
|
2622
2611
|
}
|
|
2623
|
-
const
|
|
2612
|
+
const A = `
|
|
2624
2613
|
function theFunction() {
|
|
2625
2614
|
${m}
|
|
2626
2615
|
|
|
2627
|
-
${
|
|
2616
|
+
${b}
|
|
2628
2617
|
}
|
|
2629
2618
|
theFunction();
|
|
2630
|
-
`,
|
|
2631
|
-
const ne =
|
|
2619
|
+
`, R = (T, U) => {
|
|
2620
|
+
const ne = Fr(p, T, U);
|
|
2632
2621
|
i == null || i(ne);
|
|
2633
|
-
},
|
|
2634
|
-
h.forEach(([ne,
|
|
2635
|
-
const k = JSON.stringify(
|
|
2636
|
-
|
|
2637
|
-
}),
|
|
2622
|
+
}, $ = function(T, U) {
|
|
2623
|
+
h.forEach(([ne, Se]) => {
|
|
2624
|
+
const k = JSON.stringify(Se);
|
|
2625
|
+
T.setProperty(U, ur(ne), k);
|
|
2626
|
+
}), T.setProperty(U, "setRootState", T.createNativeFunction(R));
|
|
2638
2627
|
};
|
|
2639
2628
|
try {
|
|
2640
|
-
const
|
|
2641
|
-
return
|
|
2642
|
-
} catch (
|
|
2629
|
+
const T = new f(A, $);
|
|
2630
|
+
return T.run(), T.pseudoToNative(T.value);
|
|
2631
|
+
} catch (T) {
|
|
2643
2632
|
te.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2644
|
-
e:
|
|
2633
|
+
e: T
|
|
2645
2634
|
});
|
|
2646
2635
|
return;
|
|
2647
2636
|
}
|
|
2648
|
-
},
|
|
2649
|
-
function
|
|
2637
|
+
}, Jo = (e) => X() ? xo(e) : Xo(e);
|
|
2638
|
+
function Ft({
|
|
2650
2639
|
code: e,
|
|
2651
2640
|
context: t,
|
|
2652
2641
|
localState: n,
|
|
@@ -2660,10 +2649,10 @@ function St({
|
|
|
2660
2649
|
return;
|
|
2661
2650
|
}
|
|
2662
2651
|
const p = {
|
|
2663
|
-
code:
|
|
2652
|
+
code: Do(e, {
|
|
2664
2653
|
isExpression: u
|
|
2665
2654
|
}),
|
|
2666
|
-
builder:
|
|
2655
|
+
builder: Bo(),
|
|
2667
2656
|
context: t,
|
|
2668
2657
|
event: i,
|
|
2669
2658
|
rootSetState: o,
|
|
@@ -2671,7 +2660,7 @@ function St({
|
|
|
2671
2660
|
localState: n
|
|
2672
2661
|
};
|
|
2673
2662
|
try {
|
|
2674
|
-
return
|
|
2663
|
+
return Jo(p);
|
|
2675
2664
|
} catch (h) {
|
|
2676
2665
|
te.error("Failed code evaluation: " + h.message, {
|
|
2677
2666
|
code: e
|
|
@@ -2680,7 +2669,7 @@ function St({
|
|
|
2680
2669
|
}
|
|
2681
2670
|
}
|
|
2682
2671
|
const pt = (e) => JSON.parse(JSON.stringify(e));
|
|
2683
|
-
const
|
|
2672
|
+
const Yo = ({
|
|
2684
2673
|
block: e,
|
|
2685
2674
|
context: t,
|
|
2686
2675
|
localState: n,
|
|
@@ -2699,18 +2688,18 @@ const Jo = ({
|
|
|
2699
2688
|
}
|
|
2700
2689
|
};
|
|
2701
2690
|
for (const p in e.bindings) {
|
|
2702
|
-
const h = e.bindings[p], m =
|
|
2691
|
+
const h = e.bindings[p], m = Ft({
|
|
2703
2692
|
code: h,
|
|
2704
2693
|
localState: n,
|
|
2705
2694
|
rootState: r,
|
|
2706
2695
|
rootSetState: o,
|
|
2707
2696
|
context: t
|
|
2708
2697
|
});
|
|
2709
|
-
|
|
2698
|
+
Fr(u, p, m);
|
|
2710
2699
|
}
|
|
2711
2700
|
return u;
|
|
2712
2701
|
};
|
|
2713
|
-
function
|
|
2702
|
+
function Ir({
|
|
2714
2703
|
block: e,
|
|
2715
2704
|
context: t,
|
|
2716
2705
|
shouldEvaluateBindings: n,
|
|
@@ -2719,7 +2708,7 @@ function xr({
|
|
|
2719
2708
|
rootSetState: i
|
|
2720
2709
|
}) {
|
|
2721
2710
|
const u = e;
|
|
2722
|
-
return n ?
|
|
2711
|
+
return n ? Yo({
|
|
2723
2712
|
block: u,
|
|
2724
2713
|
localState: r,
|
|
2725
2714
|
rootState: o,
|
|
@@ -2727,13 +2716,13 @@ function xr({
|
|
|
2727
2716
|
context: t
|
|
2728
2717
|
}) : u;
|
|
2729
2718
|
}
|
|
2730
|
-
const
|
|
2719
|
+
const qo = ({
|
|
2731
2720
|
block: e,
|
|
2732
2721
|
context: t,
|
|
2733
2722
|
registeredComponents: n
|
|
2734
2723
|
}) => {
|
|
2735
2724
|
var i;
|
|
2736
|
-
const r = (i =
|
|
2725
|
+
const r = (i = Ir({
|
|
2737
2726
|
block: e,
|
|
2738
2727
|
localState: t.localState,
|
|
2739
2728
|
rootState: t.rootState,
|
|
@@ -2749,7 +2738,7 @@ const Yo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2749
2738
|
console.warn(`
|
|
2750
2739
|
Could not find a registered component named "${r}".
|
|
2751
2740
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2752
|
-
},
|
|
2741
|
+
}, Qo = ({
|
|
2753
2742
|
block: e,
|
|
2754
2743
|
context: t
|
|
2755
2744
|
}) => {
|
|
@@ -2759,7 +2748,7 @@ const Yo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2759
2748
|
} = e;
|
|
2760
2749
|
if (!(n != null && n.collection))
|
|
2761
2750
|
return;
|
|
2762
|
-
const o =
|
|
2751
|
+
const o = Ft({
|
|
2763
2752
|
code: n.collection,
|
|
2764
2753
|
localState: t.localState,
|
|
2765
2754
|
rootState: t.rootState,
|
|
@@ -2782,55 +2771,55 @@ const Yo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2782
2771
|
},
|
|
2783
2772
|
block: r
|
|
2784
2773
|
}));
|
|
2785
|
-
},
|
|
2774
|
+
}, Zo = () => import("./block-styles.4feb92ca.js").then((e) => e.default).catch((e) => {
|
|
2786
2775
|
throw console.error(
|
|
2787
2776
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
2788
2777
|
e
|
|
2789
2778
|
), e;
|
|
2790
|
-
}),
|
|
2779
|
+
}), ei = () => import("./block-wrapper.94c267ab.js").then((e) => e.default).catch((e) => {
|
|
2791
2780
|
throw console.error(
|
|
2792
2781
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
2793
2782
|
e
|
|
2794
2783
|
), e;
|
|
2795
|
-
}),
|
|
2784
|
+
}), ti = () => import("./component-ref.c15b3af0.js").then((e) => e.default).catch((e) => {
|
|
2796
2785
|
throw console.error(
|
|
2797
2786
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
2798
2787
|
e
|
|
2799
2788
|
), e;
|
|
2800
|
-
}),
|
|
2789
|
+
}), ni = () => import("./repeated-block.76408127.js").then((e) => e.default).catch((e) => {
|
|
2801
2790
|
throw console.error(
|
|
2802
2791
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
2803
2792
|
e
|
|
2804
2793
|
), e;
|
|
2805
|
-
}),
|
|
2794
|
+
}), ri = P({
|
|
2806
2795
|
name: "block",
|
|
2807
2796
|
components: {
|
|
2808
|
-
BlockStyles: Ct(
|
|
2809
|
-
ComponentRef: Ct(
|
|
2810
|
-
|
|
2811
|
-
|
|
2797
|
+
BlockStyles: Ct(Zo),
|
|
2798
|
+
ComponentRef: Ct(ti),
|
|
2799
|
+
RepeatedBlock: Ct(ni),
|
|
2800
|
+
BlockWrapper: Ct(ei)
|
|
2812
2801
|
},
|
|
2813
2802
|
props: ["block", "context", "registeredComponents"],
|
|
2814
2803
|
data() {
|
|
2815
|
-
return { childrenContext: this.context
|
|
2804
|
+
return { childrenContext: this.context };
|
|
2816
2805
|
},
|
|
2817
2806
|
computed: {
|
|
2818
2807
|
blockComponent() {
|
|
2819
|
-
return
|
|
2808
|
+
return qo({
|
|
2820
2809
|
block: this.block,
|
|
2821
2810
|
context: this.context,
|
|
2822
2811
|
registeredComponents: this.registeredComponents
|
|
2823
2812
|
});
|
|
2824
2813
|
},
|
|
2825
2814
|
repeatItem() {
|
|
2826
|
-
return
|
|
2815
|
+
return Qo({
|
|
2827
2816
|
block: this.block,
|
|
2828
2817
|
context: this.context
|
|
2829
2818
|
});
|
|
2830
2819
|
},
|
|
2831
2820
|
processedBlock() {
|
|
2832
2821
|
var e;
|
|
2833
|
-
return (e = this.block.repeat) != null && e.collection ? this.block :
|
|
2822
|
+
return (e = this.block.repeat) != null && e.collection ? this.block : Ir({
|
|
2834
2823
|
block: this.block,
|
|
2835
2824
|
localState: this.context.localState,
|
|
2836
2825
|
rootState: this.context.rootState,
|
|
@@ -2859,7 +2848,7 @@ const Yo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2859
2848
|
blockChildren: (e = this.processedBlock.children) != null ? e : [],
|
|
2860
2849
|
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
2861
2850
|
componentOptions: {
|
|
2862
|
-
...
|
|
2851
|
+
...Eo(this.processedBlock),
|
|
2863
2852
|
builderContext: this.context,
|
|
2864
2853
|
...((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((r = this.blockComponent) == null ? void 0 : r.name) === "Columns" ? {
|
|
2865
2854
|
builderComponents: this.registeredComponents
|
|
@@ -2874,15 +2863,15 @@ const Yo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2874
2863
|
}
|
|
2875
2864
|
}
|
|
2876
2865
|
});
|
|
2877
|
-
function
|
|
2878
|
-
var
|
|
2879
|
-
const u = V("block-styles"), p = V("
|
|
2880
|
-
return e.canShowBlock ? (E(),
|
|
2866
|
+
function oi(e, t, n, r, o, i) {
|
|
2867
|
+
var A;
|
|
2868
|
+
const u = V("block-styles"), p = V("component-ref"), h = V("block", !0), m = V("block-wrapper"), b = V("repeated-block");
|
|
2869
|
+
return e.canShowBlock ? (E(), x(ue, { key: 0 }, [
|
|
2881
2870
|
me(u, {
|
|
2882
2871
|
block: e.block,
|
|
2883
2872
|
context: e.context
|
|
2884
2873
|
}, null, 8, ["block", "context"]),
|
|
2885
|
-
(
|
|
2874
|
+
(A = e.blockComponent) != null && A.noWrap ? (E(), J(p, {
|
|
2886
2875
|
key: 1,
|
|
2887
2876
|
componentRef: e.componentRefProps.componentRef,
|
|
2888
2877
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -2892,29 +2881,20 @@ function ii(e, t, n, r, o, i) {
|
|
|
2892
2881
|
builderBlock: e.componentRefProps.builderBlock,
|
|
2893
2882
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
2894
2883
|
isInteractive: e.componentRefProps.isInteractive
|
|
2895
|
-
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (E(),
|
|
2896
|
-
e.
|
|
2897
|
-
key:
|
|
2898
|
-
|
|
2899
|
-
block:
|
|
2900
|
-
context: e.context,
|
|
2901
|
-
hasChildren: !1
|
|
2902
|
-
}, null, 8, ["Wrapper", "block", "context"])) : L("v-if", !0),
|
|
2903
|
-
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (E(!0), I(ue, { key: 1 }, ot(e.repeatItem, (T, N) => (E(), X(h, {
|
|
2904
|
-
key: N,
|
|
2905
|
-
repeatContext: T.context,
|
|
2906
|
-
block: T.block,
|
|
2884
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (E(), x(ue, { key: 0 }, [
|
|
2885
|
+
e.repeatItem ? (E(!0), x(ue, { key: 1 }, ot(e.repeatItem, (R, $) => (E(), J(b, {
|
|
2886
|
+
key: $,
|
|
2887
|
+
repeatContext: R.context,
|
|
2888
|
+
block: R.block,
|
|
2907
2889
|
registeredComponents: e.registeredComponents
|
|
2908
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) :
|
|
2909
|
-
|
|
2910
|
-
key: 2,
|
|
2890
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : (E(), J(m, {
|
|
2891
|
+
key: 0,
|
|
2911
2892
|
Wrapper: e.Tag,
|
|
2912
2893
|
block: e.processedBlock,
|
|
2913
|
-
context: e.context
|
|
2914
|
-
hasChildren: !0
|
|
2894
|
+
context: e.context
|
|
2915
2895
|
}, {
|
|
2916
2896
|
default: at(() => [
|
|
2917
|
-
me(
|
|
2897
|
+
me(p, {
|
|
2918
2898
|
componentRef: e.componentRefProps.componentRef,
|
|
2919
2899
|
componentOptions: e.componentRefProps.componentOptions,
|
|
2920
2900
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -2924,22 +2904,22 @@ function ii(e, t, n, r, o, i) {
|
|
|
2924
2904
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
2925
2905
|
isInteractive: e.componentRefProps.isInteractive
|
|
2926
2906
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
2927
|
-
(E(!0),
|
|
2928
|
-
key:
|
|
2929
|
-
block:
|
|
2907
|
+
(E(!0), x(ue, null, ot(e.childrenWithoutParentComponent, (R, $) => (E(), J(h, {
|
|
2908
|
+
key: R.id,
|
|
2909
|
+
block: R,
|
|
2930
2910
|
context: e.childrenContext,
|
|
2931
2911
|
registeredComponents: e.registeredComponents
|
|
2932
2912
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128))
|
|
2933
2913
|
]),
|
|
2934
2914
|
_: 1
|
|
2935
|
-
}, 8, ["Wrapper", "block", "context"]))
|
|
2915
|
+
}, 8, ["Wrapper", "block", "context"]))
|
|
2936
2916
|
], 64))
|
|
2937
|
-
], 64)) :
|
|
2917
|
+
], 64)) : z("v-if", !0);
|
|
2938
2918
|
}
|
|
2939
|
-
const Tr = /* @__PURE__ */
|
|
2919
|
+
const Tr = /* @__PURE__ */ N(ri, [["render", oi], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/block.vue"]]), $u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2940
2920
|
__proto__: null,
|
|
2941
2921
|
default: Tr
|
|
2942
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2922
|
+
}, Symbol.toStringTag, { value: "Module" })), ii = P({
|
|
2943
2923
|
name: "builder-blocks-wrapper",
|
|
2944
2924
|
props: [
|
|
2945
2925
|
"BlocksWrapper",
|
|
@@ -2981,21 +2961,12 @@ const Tr = /* @__PURE__ */ P(oi, [["render", ii], ["__file", "/home/runner/work/
|
|
|
2981
2961
|
},
|
|
2982
2962
|
"*"
|
|
2983
2963
|
));
|
|
2984
|
-
},
|
|
2985
|
-
_classStringToObject(e) {
|
|
2986
|
-
const t = {};
|
|
2987
|
-
if (typeof e != "string")
|
|
2988
|
-
return t;
|
|
2989
|
-
const n = e.trim().split(/\s+/);
|
|
2990
|
-
for (const r of n)
|
|
2991
|
-
t[r] = !0;
|
|
2992
|
-
return t;
|
|
2993
2964
|
}
|
|
2994
2965
|
}
|
|
2995
2966
|
});
|
|
2996
|
-
function
|
|
2997
|
-
return E(),
|
|
2998
|
-
class: e.
|
|
2967
|
+
function si(e, t, n, r, o, i) {
|
|
2968
|
+
return E(), J(vr(e.BlocksWrapper), ee({
|
|
2969
|
+
class: e.className + " component-1k2igrjdg3x",
|
|
2999
2970
|
"builder-path": e.path,
|
|
3000
2971
|
"builder-parent-id": e.parent,
|
|
3001
2972
|
style: e.styleProp,
|
|
@@ -3009,9 +2980,9 @@ function ui(e, t, n, r, o, i) {
|
|
|
3009
2980
|
_: 3
|
|
3010
2981
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
3011
2982
|
}
|
|
3012
|
-
const
|
|
2983
|
+
const ui = /* @__PURE__ */ N(ii, [["render", si], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks-wrapper.vue"]]), ai = P({
|
|
3013
2984
|
name: "builder-blocks",
|
|
3014
|
-
components: { BlocksWrapper:
|
|
2985
|
+
components: { BlocksWrapper: ui, Block: Tr },
|
|
3015
2986
|
props: [
|
|
3016
2987
|
"blocks",
|
|
3017
2988
|
"parent",
|
|
@@ -3025,10 +2996,10 @@ const ai = /* @__PURE__ */ P(si, [["render", ui], ["__scopeId", "data-v-1f8aab9f
|
|
|
3025
2996
|
componentsContext: br.key
|
|
3026
2997
|
}
|
|
3027
2998
|
});
|
|
3028
|
-
function
|
|
2999
|
+
function li(e, t, n, r, o, i) {
|
|
3029
3000
|
var h, m;
|
|
3030
3001
|
const u = V("block"), p = V("blocks-wrapper");
|
|
3031
|
-
return E(),
|
|
3002
|
+
return E(), J(p, {
|
|
3032
3003
|
blocks: e.blocks,
|
|
3033
3004
|
parent: e.parent,
|
|
3034
3005
|
path: e.path,
|
|
@@ -3037,23 +3008,23 @@ function ci(e, t, n, r, o, i) {
|
|
|
3037
3008
|
BlocksWrapperProps: (m = e.context) == null ? void 0 : m.BlocksWrapperProps
|
|
3038
3009
|
}, {
|
|
3039
3010
|
default: at(() => [
|
|
3040
|
-
e.blocks ? (E(!0),
|
|
3041
|
-
key:
|
|
3042
|
-
block:
|
|
3011
|
+
e.blocks ? (E(!0), x(ue, { key: 0 }, ot(e.blocks, (b, A) => (E(), J(u, {
|
|
3012
|
+
key: b.id,
|
|
3013
|
+
block: b,
|
|
3043
3014
|
context: e.context || e.builderContext,
|
|
3044
3015
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
3045
|
-
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) :
|
|
3016
|
+
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) : z("v-if", !0)
|
|
3046
3017
|
]),
|
|
3047
3018
|
_: 1
|
|
3048
3019
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
3049
3020
|
}
|
|
3050
|
-
const Dt = /* @__PURE__ */
|
|
3021
|
+
const Dt = /* @__PURE__ */ N(ai, [["render", li], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks.vue"]]), ci = P({
|
|
3051
3022
|
render() {
|
|
3052
3023
|
return Ar("style", { id: this.id, innerHTML: this.styles });
|
|
3053
3024
|
},
|
|
3054
3025
|
name: "inlined-styles",
|
|
3055
3026
|
props: ["styles", "id"]
|
|
3056
|
-
}), bn = /* @__PURE__ */
|
|
3027
|
+
}), bn = /* @__PURE__ */ N(ci, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-styles.vue"]]), Rr = {
|
|
3057
3028
|
small: {
|
|
3058
3029
|
min: 320,
|
|
3059
3030
|
default: 321,
|
|
@@ -3069,7 +3040,7 @@ const Dt = /* @__PURE__ */ P(li, [["render", ci], ["__file", "/home/runner/work/
|
|
|
3069
3040
|
default: 991,
|
|
3070
3041
|
max: 1200
|
|
3071
3042
|
}
|
|
3072
|
-
}, Pu = (e, t = Rr) => `@media (max-width: ${t[e].max}px)`,
|
|
3043
|
+
}, Pu = (e, t = Rr) => `@media (max-width: ${t[e].max}px)`, pi = ({
|
|
3073
3044
|
small: e,
|
|
3074
3045
|
medium: t
|
|
3075
3046
|
}) => {
|
|
@@ -3094,7 +3065,7 @@ const Dt = /* @__PURE__ */ P(li, [["render", ci], ["__file", "/home/runner/work/
|
|
|
3094
3065
|
min: i,
|
|
3095
3066
|
default: i + 1
|
|
3096
3067
|
}, n;
|
|
3097
|
-
},
|
|
3068
|
+
}, di = P({
|
|
3098
3069
|
name: "builder-columns",
|
|
3099
3070
|
components: { InlinedStyles: bn, Blocks: Dt },
|
|
3100
3071
|
props: [
|
|
@@ -3200,34 +3171,23 @@ const Dt = /* @__PURE__ */ P(li, [["render", ci], ["__file", "/home/runner/work/
|
|
|
3200
3171
|
},
|
|
3201
3172
|
getWidthForBreakpointSize(e) {
|
|
3202
3173
|
var n, r;
|
|
3203
|
-
return
|
|
3174
|
+
return pi(
|
|
3204
3175
|
((r = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : r.breakpoints) || {}
|
|
3205
3176
|
)[e].max;
|
|
3206
|
-
},
|
|
3207
|
-
_classStringToObject(e) {
|
|
3208
|
-
const t = {};
|
|
3209
|
-
if (typeof e != "string")
|
|
3210
|
-
return t;
|
|
3211
|
-
const n = e.trim().split(/\s+/);
|
|
3212
|
-
for (const r of n)
|
|
3213
|
-
t[r] = !0;
|
|
3214
|
-
return t;
|
|
3215
3177
|
}
|
|
3216
3178
|
}
|
|
3217
3179
|
});
|
|
3218
|
-
function
|
|
3180
|
+
function hi(e, t, n, r, o, i) {
|
|
3219
3181
|
const u = V("inlined-styles"), p = V("blocks");
|
|
3220
|
-
return E(),
|
|
3221
|
-
class: e.
|
|
3222
|
-
`builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
|
|
3223
|
-
),
|
|
3182
|
+
return E(), x("div", ee({
|
|
3183
|
+
class: `builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`,
|
|
3224
3184
|
style: e.columnsCssVars
|
|
3225
3185
|
}, {}), [
|
|
3226
|
-
e.TARGET !== "reactNative" ? (E(),
|
|
3186
|
+
e.TARGET !== "reactNative" ? (E(), J(u, {
|
|
3227
3187
|
key: 0,
|
|
3228
3188
|
styles: e.columnsStyles
|
|
3229
|
-
}, null, 8, ["styles"])) :
|
|
3230
|
-
(E(!0),
|
|
3189
|
+
}, null, 8, ["styles"])) : z("v-if", !0),
|
|
3190
|
+
(E(!0), x(ue, null, ot(e.columns, (h, m) => (E(), x("div", ee({
|
|
3231
3191
|
key: m,
|
|
3232
3192
|
class: "builder-column div-16nol0lwi20-2",
|
|
3233
3193
|
style: e.columnCssVars(m)
|
|
@@ -3245,24 +3205,24 @@ function fi(e, t, n, r, o, i) {
|
|
|
3245
3205
|
], 16))), 128))
|
|
3246
3206
|
], 16);
|
|
3247
3207
|
}
|
|
3248
|
-
const
|
|
3208
|
+
const fi = /* @__PURE__ */ N(di, [["render", hi], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/columns/columns.vue"]]), mi = P({
|
|
3249
3209
|
name: "builder-fragment-component",
|
|
3250
3210
|
props: []
|
|
3251
3211
|
});
|
|
3252
|
-
function
|
|
3253
|
-
return E(),
|
|
3212
|
+
function gi(e, t, n, r, o, i) {
|
|
3213
|
+
return E(), x("span", null, [
|
|
3254
3214
|
Ee(e.$slots, "default")
|
|
3255
3215
|
]);
|
|
3256
3216
|
}
|
|
3257
|
-
const
|
|
3217
|
+
const yi = /* @__PURE__ */ N(mi, [["render", gi], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/fragment/fragment.vue"]]);
|
|
3258
3218
|
function ar(e) {
|
|
3259
3219
|
return e.replace(/http(s)?:/, "");
|
|
3260
3220
|
}
|
|
3261
|
-
function
|
|
3221
|
+
function vi(e = "", t, n) {
|
|
3262
3222
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3263
3223
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3264
3224
|
}
|
|
3265
|
-
function
|
|
3225
|
+
function Ai(e, t) {
|
|
3266
3226
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3267
3227
|
return e;
|
|
3268
3228
|
if (t === "master")
|
|
@@ -3281,11 +3241,11 @@ function en(e) {
|
|
|
3281
3241
|
if (e.match(/builder\.io/)) {
|
|
3282
3242
|
let n = e;
|
|
3283
3243
|
const r = Number(e.split("?width=")[1]);
|
|
3284
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3244
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${vi(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3285
3245
|
}
|
|
3286
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3246
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ai(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3287
3247
|
}
|
|
3288
|
-
const
|
|
3248
|
+
const Ci = P({
|
|
3289
3249
|
name: "builder-image",
|
|
3290
3250
|
props: [
|
|
3291
3251
|
"image",
|
|
@@ -3328,32 +3288,21 @@ const bi = $({
|
|
|
3328
3288
|
};
|
|
3329
3289
|
return this.aspectRatio ? e : void 0;
|
|
3330
3290
|
}
|
|
3331
|
-
},
|
|
3332
|
-
methods: {
|
|
3333
|
-
_classStringToObject(e) {
|
|
3334
|
-
const t = {};
|
|
3335
|
-
if (typeof e != "string")
|
|
3336
|
-
return t;
|
|
3337
|
-
const n = e.trim().split(/\s+/);
|
|
3338
|
-
for (const r of n)
|
|
3339
|
-
t[r] = !0;
|
|
3340
|
-
return t;
|
|
3341
|
-
}
|
|
3342
3291
|
}
|
|
3343
3292
|
});
|
|
3344
|
-
const
|
|
3293
|
+
const bi = ["srcset"], ki = ["alt", "role", "src", "srcset", "sizes"], Ei = {
|
|
3345
3294
|
key: 2,
|
|
3346
3295
|
class: "div-1be3j8m9ewb-2"
|
|
3347
3296
|
};
|
|
3348
3297
|
function Fi(e, t, n, r, o, i) {
|
|
3349
3298
|
var u, p, h, m;
|
|
3350
|
-
return E(),
|
|
3299
|
+
return E(), x(ue, null, [
|
|
3351
3300
|
tn("picture", null, [
|
|
3352
|
-
e.webpSrcSet ? (E(),
|
|
3301
|
+
e.webpSrcSet ? (E(), x("source", {
|
|
3353
3302
|
key: 0,
|
|
3354
3303
|
type: "image/webp",
|
|
3355
3304
|
srcset: e.webpSrcSet
|
|
3356
|
-
}, null, 8,
|
|
3305
|
+
}, null, 8, bi)) : z("v-if", !0),
|
|
3357
3306
|
tn("img", {
|
|
3358
3307
|
loading: "lazy",
|
|
3359
3308
|
alt: e.altText,
|
|
@@ -3364,37 +3313,35 @@ function Fi(e, t, n, r, o, i) {
|
|
|
3364
3313
|
...e.aspectRatioCss
|
|
3365
3314
|
}),
|
|
3366
3315
|
class: Cr(
|
|
3367
|
-
e.
|
|
3368
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
|
|
3369
|
-
)
|
|
3316
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
|
|
3370
3317
|
),
|
|
3371
3318
|
src: e.image,
|
|
3372
3319
|
srcset: e.srcSetToUse,
|
|
3373
3320
|
sizes: e.sizes
|
|
3374
|
-
}, null, 14,
|
|
3321
|
+
}, null, 14, ki)
|
|
3375
3322
|
]),
|
|
3376
|
-
e.aspectRatio && !(((p = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : p.length) && e.fitContent) ? (E(),
|
|
3323
|
+
e.aspectRatio && !(((p = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : p.length) && e.fitContent) ? (E(), x("div", {
|
|
3377
3324
|
key: 0,
|
|
3378
3325
|
class: "builder-image-sizer div-1be3j8m9ewb",
|
|
3379
3326
|
style: nn({
|
|
3380
3327
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
3381
3328
|
})
|
|
3382
|
-
}, null, 4)) :
|
|
3383
|
-
((m = (h = e.builderBlock) == null ? void 0 : h.children) == null ? void 0 : m.length) && e.fitContent ? Ee(e.$slots, "default", { key: 1 }, void 0, !0) :
|
|
3384
|
-
!e.fitContent && e.$slots.default ? (E(),
|
|
3329
|
+
}, null, 4)) : z("v-if", !0),
|
|
3330
|
+
((m = (h = e.builderBlock) == null ? void 0 : h.children) == null ? void 0 : m.length) && e.fitContent ? Ee(e.$slots, "default", { key: 1 }, void 0, !0) : z("v-if", !0),
|
|
3331
|
+
!e.fitContent && e.$slots.default ? (E(), x("div", Ei, [
|
|
3385
3332
|
Ee(e.$slots, "default", {}, void 0, !0)
|
|
3386
|
-
])) :
|
|
3333
|
+
])) : z("v-if", !0)
|
|
3387
3334
|
], 64);
|
|
3388
3335
|
}
|
|
3389
|
-
const
|
|
3336
|
+
const Si = /* @__PURE__ */ N(Ci, [["render", Fi], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/image/image.vue"]]), wi = P({
|
|
3390
3337
|
name: "builder-section-component",
|
|
3391
3338
|
props: ["attributes", "maxWidth"],
|
|
3392
3339
|
data() {
|
|
3393
|
-
return { filterAttrs:
|
|
3340
|
+
return { filterAttrs: St };
|
|
3394
3341
|
}
|
|
3395
3342
|
});
|
|
3396
|
-
function
|
|
3397
|
-
return E(),
|
|
3343
|
+
function Bi(e, t, n, r, o, i) {
|
|
3344
|
+
return E(), x("section", ee({
|
|
3398
3345
|
style: {
|
|
3399
3346
|
width: "100%",
|
|
3400
3347
|
alignSelf: "stretch",
|
|
@@ -3411,7 +3358,7 @@ function Di(e, t, n, r, o, i) {
|
|
|
3411
3358
|
Ee(e.$slots, "default")
|
|
3412
3359
|
], 16);
|
|
3413
3360
|
}
|
|
3414
|
-
const
|
|
3361
|
+
const Di = /* @__PURE__ */ N(wi, [["render", Bi], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/section/section.vue"]]), xi = (e) => {
|
|
3415
3362
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3416
3363
|
return e;
|
|
3417
3364
|
const t = e.split(".");
|
|
@@ -3427,13 +3374,13 @@ const Ii = /* @__PURE__ */ P(Bi, [["render", Di], ["__file", "/home/runner/work/
|
|
|
3427
3374
|
te.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3428
3375
|
return;
|
|
3429
3376
|
}
|
|
3430
|
-
}, Or = async (e) => jr(e),
|
|
3377
|
+
}, Or = async (e) => jr(e), Ii = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(Pe).join("; "), Ti = [["secure", ""], ["SameSite", "None"]], Ri = ({
|
|
3431
3378
|
name: e,
|
|
3432
3379
|
value: t,
|
|
3433
3380
|
expires: n
|
|
3434
3381
|
}) => {
|
|
3435
|
-
const o = (
|
|
3436
|
-
return
|
|
3382
|
+
const o = (X() ? location.protocol === "https:" : !0) ? Ti : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], u = [[e, t], ...i, ["path", "/"], ["domain", xi(window.location.hostname)], ...o];
|
|
3383
|
+
return Ii(u);
|
|
3437
3384
|
}, $r = async ({
|
|
3438
3385
|
name: e,
|
|
3439
3386
|
value: t,
|
|
@@ -3443,7 +3390,7 @@ const Ii = /* @__PURE__ */ P(Bi, [["render", Di], ["__file", "/home/runner/work/
|
|
|
3443
3390
|
try {
|
|
3444
3391
|
if (!r)
|
|
3445
3392
|
return;
|
|
3446
|
-
const o =
|
|
3393
|
+
const o = Ri({
|
|
3447
3394
|
name: e,
|
|
3448
3395
|
value: t,
|
|
3449
3396
|
expires: n
|
|
@@ -3452,24 +3399,24 @@ const Ii = /* @__PURE__ */ P(Bi, [["render", Di], ["__file", "/home/runner/work/
|
|
|
3452
3399
|
} catch (o) {
|
|
3453
3400
|
te.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3454
3401
|
}
|
|
3455
|
-
},
|
|
3402
|
+
}, ji = "builder.tests", kn = (e) => `${ji}.${e}`, Oi = ({
|
|
3456
3403
|
contentId: e
|
|
3457
3404
|
}) => Or({
|
|
3458
3405
|
name: kn(e),
|
|
3459
3406
|
canTrack: !0
|
|
3460
|
-
}),
|
|
3407
|
+
}), $i = ({
|
|
3461
3408
|
contentId: e
|
|
3462
3409
|
}) => jr({
|
|
3463
3410
|
name: kn(e),
|
|
3464
3411
|
canTrack: !0
|
|
3465
|
-
}),
|
|
3412
|
+
}), Pi = ({
|
|
3466
3413
|
contentId: e,
|
|
3467
3414
|
value: t
|
|
3468
3415
|
}) => $r({
|
|
3469
3416
|
name: kn(e),
|
|
3470
3417
|
value: t,
|
|
3471
3418
|
canTrack: !0
|
|
3472
|
-
}), Pr = (e) => Pe(e.id) && Pe(e.variations) && Object.keys(e.variations).length > 0,
|
|
3419
|
+
}), Pr = (e) => Pe(e.id) && Pe(e.variations) && Object.keys(e.variations).length > 0, Ni = ({
|
|
3473
3420
|
id: e,
|
|
3474
3421
|
variations: t
|
|
3475
3422
|
}) => {
|
|
@@ -3483,14 +3430,14 @@ const Ii = /* @__PURE__ */ P(Bi, [["render", Di], ["__file", "/home/runner/work/
|
|
|
3483
3430
|
}
|
|
3484
3431
|
return e;
|
|
3485
3432
|
}, Nr = (e) => {
|
|
3486
|
-
const t =
|
|
3487
|
-
return
|
|
3433
|
+
const t = Ni(e);
|
|
3434
|
+
return Pi({
|
|
3488
3435
|
contentId: e.id,
|
|
3489
3436
|
value: t
|
|
3490
3437
|
}).catch((n) => {
|
|
3491
3438
|
te.error("could not store A/B test variation: ", n);
|
|
3492
3439
|
}), t;
|
|
3493
|
-
},
|
|
3440
|
+
}, Ur = ({
|
|
3494
3441
|
item: e,
|
|
3495
3442
|
testGroupId: t
|
|
3496
3443
|
}) => {
|
|
@@ -3513,12 +3460,12 @@ const Ii = /* @__PURE__ */ P(Bi, [["render", Di], ["__file", "/home/runner/work/
|
|
|
3513
3460
|
return;
|
|
3514
3461
|
if (!Pr(e))
|
|
3515
3462
|
return e;
|
|
3516
|
-
const n =
|
|
3463
|
+
const n = $i({
|
|
3517
3464
|
contentId: e.id
|
|
3518
3465
|
}) || Nr({
|
|
3519
3466
|
variations: e.variations,
|
|
3520
3467
|
id: e.id
|
|
3521
|
-
}), r =
|
|
3468
|
+
}), r = Ur({
|
|
3522
3469
|
item: e,
|
|
3523
3470
|
testGroupId: n
|
|
3524
3471
|
});
|
|
@@ -3526,18 +3473,18 @@ const Ii = /* @__PURE__ */ P(Bi, [["render", Di], ["__file", "/home/runner/work/
|
|
|
3526
3473
|
...e,
|
|
3527
3474
|
...r
|
|
3528
3475
|
};
|
|
3529
|
-
},
|
|
3476
|
+
}, _i = async ({
|
|
3530
3477
|
item: e,
|
|
3531
3478
|
canTrack: t
|
|
3532
3479
|
}) => {
|
|
3533
3480
|
if (!t || !Pr(e))
|
|
3534
3481
|
return e;
|
|
3535
|
-
const r = await
|
|
3482
|
+
const r = await Oi({
|
|
3536
3483
|
contentId: e.id
|
|
3537
3484
|
}) || Nr({
|
|
3538
3485
|
variations: e.variations,
|
|
3539
3486
|
id: e.id
|
|
3540
|
-
}), o =
|
|
3487
|
+
}), o = Ur({
|
|
3541
3488
|
item: e,
|
|
3542
3489
|
testGroupId: r
|
|
3543
3490
|
});
|
|
@@ -3545,7 +3492,7 @@ const Ii = /* @__PURE__ */ P(Bi, [["render", Di], ["__file", "/home/runner/work/
|
|
|
3545
3492
|
...e,
|
|
3546
3493
|
...o
|
|
3547
3494
|
};
|
|
3548
|
-
}, ut = (e) => Pe(e) ? e : !0,
|
|
3495
|
+
}, ut = (e) => Pe(e) ? e : !0, Mi = {
|
|
3549
3496
|
name: "Core:Button",
|
|
3550
3497
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3551
3498
|
defaultStyles: {
|
|
@@ -3577,7 +3524,7 @@ const Ii = /* @__PURE__ */ P(Bi, [["render", Di], ["__file", "/home/runner/work/
|
|
|
3577
3524
|
}],
|
|
3578
3525
|
static: !0,
|
|
3579
3526
|
noWrap: !0
|
|
3580
|
-
},
|
|
3527
|
+
}, Wi = {
|
|
3581
3528
|
name: "Columns",
|
|
3582
3529
|
isRSC: !0,
|
|
3583
3530
|
inputs: [{
|
|
@@ -3777,7 +3724,7 @@ const Ii = /* @__PURE__ */ P(Bi, [["render", Di], ["__file", "/home/runner/work/
|
|
|
3777
3724
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3778
3725
|
advanced: !0
|
|
3779
3726
|
}]
|
|
3780
|
-
},
|
|
3727
|
+
}, Vi = {
|
|
3781
3728
|
name: "Custom Code",
|
|
3782
3729
|
static: !0,
|
|
3783
3730
|
requiredPermissions: ["editCode"],
|
|
@@ -3799,7 +3746,7 @@ const Ii = /* @__PURE__ */ P(Bi, [["render", Di], ["__file", "/home/runner/work/
|
|
|
3799
3746
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3800
3747
|
advanced: !0
|
|
3801
3748
|
}]
|
|
3802
|
-
},
|
|
3749
|
+
}, Li = P({
|
|
3803
3750
|
name: "builder-custom-code",
|
|
3804
3751
|
props: ["replaceNodes", "code"],
|
|
3805
3752
|
data() {
|
|
@@ -3832,31 +3779,16 @@ const Ii = /* @__PURE__ */ P(Bi, [["render", Di], ["__file", "/home/runner/work/
|
|
|
3832
3779
|
}
|
|
3833
3780
|
}
|
|
3834
3781
|
}
|
|
3835
|
-
},
|
|
3836
|
-
methods: {
|
|
3837
|
-
_classStringToObject(e) {
|
|
3838
|
-
const t = {};
|
|
3839
|
-
if (typeof e != "string")
|
|
3840
|
-
return t;
|
|
3841
|
-
const n = e.trim().split(/\s+/);
|
|
3842
|
-
for (const r of n)
|
|
3843
|
-
t[r] = !0;
|
|
3844
|
-
return t;
|
|
3845
|
-
}
|
|
3846
3782
|
}
|
|
3847
|
-
}),
|
|
3848
|
-
function
|
|
3849
|
-
return E(),
|
|
3783
|
+
}), Hi = ["innerHTML"];
|
|
3784
|
+
function Ki(e, t, n, r, o, i) {
|
|
3785
|
+
return E(), x("div", {
|
|
3850
3786
|
ref: "elementRef",
|
|
3851
|
-
class: Cr(
|
|
3852
|
-
e._classStringToObject(
|
|
3853
|
-
"builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
|
|
3854
|
-
)
|
|
3855
|
-
),
|
|
3787
|
+
class: Cr("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3856
3788
|
innerHTML: e.code
|
|
3857
|
-
}, null, 10,
|
|
3789
|
+
}, null, 10, Hi);
|
|
3858
3790
|
}
|
|
3859
|
-
const
|
|
3791
|
+
const Gi = /* @__PURE__ */ N(Li, [["render", Ki], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/custom-code/custom-code.vue"]]), zi = {
|
|
3860
3792
|
name: "Embed",
|
|
3861
3793
|
static: !0,
|
|
3862
3794
|
inputs: [{
|
|
@@ -3881,7 +3813,7 @@ const zi = /* @__PURE__ */ P(Hi, [["render", Gi], ["__file", "/home/runner/work/
|
|
|
3881
3813
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3882
3814
|
hideFromUI: !0
|
|
3883
3815
|
}]
|
|
3884
|
-
},
|
|
3816
|
+
}, Xi = ["text/javascript", "application/javascript", "application/ecmascript"], Ji = (e) => Xi.includes(e.type), Yi = P({
|
|
3885
3817
|
name: "builder-embed",
|
|
3886
3818
|
props: ["content"],
|
|
3887
3819
|
data() {
|
|
@@ -3914,7 +3846,7 @@ const zi = /* @__PURE__ */ P(Hi, [["render", Gi], ["__file", "/home/runner/work/
|
|
|
3914
3846
|
this.scriptsInserted.push(n.src);
|
|
3915
3847
|
const r = document.createElement("script");
|
|
3916
3848
|
r.async = !0, r.src = n.src, document.head.appendChild(r);
|
|
3917
|
-
} else if (
|
|
3849
|
+
} else if (Ji(n) && !this.scriptsRun.includes(n.innerText))
|
|
3918
3850
|
try {
|
|
3919
3851
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3920
3852
|
} catch (r) {
|
|
@@ -3923,21 +3855,21 @@ const zi = /* @__PURE__ */ P(Hi, [["render", Gi], ["__file", "/home/runner/work/
|
|
|
3923
3855
|
}
|
|
3924
3856
|
}
|
|
3925
3857
|
}
|
|
3926
|
-
}),
|
|
3927
|
-
function
|
|
3928
|
-
return E(),
|
|
3858
|
+
}), qi = ["innerHTML"];
|
|
3859
|
+
function Qi(e, t, n, r, o, i) {
|
|
3860
|
+
return E(), x("div", {
|
|
3929
3861
|
class: "builder-embed",
|
|
3930
3862
|
ref: "elem",
|
|
3931
3863
|
innerHTML: e.content
|
|
3932
|
-
}, null, 8,
|
|
3864
|
+
}, null, 8, qi);
|
|
3933
3865
|
}
|
|
3934
|
-
const
|
|
3866
|
+
const Zi = /* @__PURE__ */ N(Yi, [["render", Qi], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/embed/embed.vue"]]), es = {
|
|
3935
3867
|
name: "Fragment",
|
|
3936
3868
|
static: !0,
|
|
3937
3869
|
hidden: !0,
|
|
3938
3870
|
canHaveChildren: !0,
|
|
3939
3871
|
noWrap: !0
|
|
3940
|
-
},
|
|
3872
|
+
}, ts = {
|
|
3941
3873
|
name: "Image",
|
|
3942
3874
|
static: !0,
|
|
3943
3875
|
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",
|
|
@@ -3959,14 +3891,14 @@ const es = /* @__PURE__ */ P(qi, [["render", Zi], ["__file", "/home/runner/work/
|
|
|
3959
3891
|
e.delete("srcset"), e.delete("noWebp");
|
|
3960
3892
|
function n(u, p = 6e4) {
|
|
3961
3893
|
return new Promise((h, m) => {
|
|
3962
|
-
const
|
|
3963
|
-
let
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
},
|
|
3967
|
-
console.warn("Image load failed",
|
|
3968
|
-
}),
|
|
3969
|
-
|
|
3894
|
+
const b = document.createElement("img");
|
|
3895
|
+
let A = !1;
|
|
3896
|
+
b.onload = () => {
|
|
3897
|
+
A = !0, h(b);
|
|
3898
|
+
}, b.addEventListener("error", (R) => {
|
|
3899
|
+
console.warn("Image load failed", R.error), m(R.error);
|
|
3900
|
+
}), b.src = u, setTimeout(() => {
|
|
3901
|
+
A || m(new Error("Image load timed out"));
|
|
3970
3902
|
}, p);
|
|
3971
3903
|
});
|
|
3972
3904
|
}
|
|
@@ -4037,7 +3969,7 @@ const es = /* @__PURE__ */ P(qi, [["render", Zi], ["__file", "/home/runner/work/
|
|
|
4037
3969
|
advanced: !0,
|
|
4038
3970
|
defaultValue: 0.7041
|
|
4039
3971
|
}]
|
|
4040
|
-
},
|
|
3972
|
+
}, ns = {
|
|
4041
3973
|
name: "Raw:Img",
|
|
4042
3974
|
hideFromInsertMenu: !0,
|
|
4043
3975
|
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",
|
|
@@ -4050,7 +3982,7 @@ const es = /* @__PURE__ */ P(qi, [["render", Zi], ["__file", "/home/runner/work/
|
|
|
4050
3982
|
}],
|
|
4051
3983
|
noWrap: !0,
|
|
4052
3984
|
static: !0
|
|
4053
|
-
},
|
|
3985
|
+
}, rs = P({
|
|
4054
3986
|
name: "builder-img-component",
|
|
4055
3987
|
props: [
|
|
4056
3988
|
"backgroundSize",
|
|
@@ -4061,11 +3993,11 @@ const es = /* @__PURE__ */ P(qi, [["render", Zi], ["__file", "/home/runner/work/
|
|
|
4061
3993
|
"attributes"
|
|
4062
3994
|
],
|
|
4063
3995
|
data() {
|
|
4064
|
-
return { isEditing: ge, filterAttrs:
|
|
3996
|
+
return { isEditing: ge, filterAttrs: St };
|
|
4065
3997
|
}
|
|
4066
|
-
}),
|
|
4067
|
-
function
|
|
4068
|
-
return E(),
|
|
3998
|
+
}), os = ["alt", "src"];
|
|
3999
|
+
function is(e, t, n, r, o, i) {
|
|
4000
|
+
return E(), x("img", ee({
|
|
4069
4001
|
style: {
|
|
4070
4002
|
objectFit: e.backgroundSize || "cover",
|
|
4071
4003
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -4073,9 +4005,9 @@ function ss(e, t, n, r, o, i) {
|
|
|
4073
4005
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
4074
4006
|
alt: e.altText,
|
|
4075
4007
|
src: e.imgSrc || e.image
|
|
4076
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), rt(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4008
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), rt(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, os);
|
|
4077
4009
|
}
|
|
4078
|
-
const
|
|
4010
|
+
const ss = /* @__PURE__ */ N(rs, [["render", is], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/img/img.vue"]]), us = {
|
|
4079
4011
|
name: "Core:Section",
|
|
4080
4012
|
static: !0,
|
|
4081
4013
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -4114,7 +4046,7 @@ const us = /* @__PURE__ */ P(os, [["render", ss], ["__file", "/home/runner/work/
|
|
|
4114
4046
|
}
|
|
4115
4047
|
}
|
|
4116
4048
|
}]
|
|
4117
|
-
},
|
|
4049
|
+
}, as = {
|
|
4118
4050
|
name: "Slot",
|
|
4119
4051
|
isRSC: !0,
|
|
4120
4052
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -4126,15 +4058,15 @@ const us = /* @__PURE__ */ P(os, [["render", ss], ["__file", "/home/runner/work/
|
|
|
4126
4058
|
required: !0,
|
|
4127
4059
|
defaultValue: "children"
|
|
4128
4060
|
}]
|
|
4129
|
-
},
|
|
4061
|
+
}, ls = P({
|
|
4130
4062
|
name: "builder-slot",
|
|
4131
4063
|
components: { Blocks: Dt },
|
|
4132
4064
|
props: ["builderContext", "name"]
|
|
4133
4065
|
});
|
|
4134
|
-
function
|
|
4066
|
+
function cs(e, t, n, r, o, i) {
|
|
4135
4067
|
var p, h, m;
|
|
4136
4068
|
const u = V("blocks");
|
|
4137
|
-
return E(),
|
|
4069
|
+
return E(), x("div", ee(
|
|
4138
4070
|
{ style: {
|
|
4139
4071
|
pointerEvents: "auto"
|
|
4140
4072
|
} },
|
|
@@ -4150,7 +4082,7 @@ function ps(e, t, n, r, o, i) {
|
|
|
4150
4082
|
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
4151
4083
|
], 16);
|
|
4152
4084
|
}
|
|
4153
|
-
const
|
|
4085
|
+
const ps = /* @__PURE__ */ N(ls, [["render", cs], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/slot/slot.vue"]]), ds = {
|
|
4154
4086
|
name: "Symbol",
|
|
4155
4087
|
noWrap: !0,
|
|
4156
4088
|
static: !0,
|
|
@@ -4183,7 +4115,7 @@ const ds = /* @__PURE__ */ P(cs, [["render", ps], ["__file", "/home/runner/work/
|
|
|
4183
4115
|
hideFromUI: !0,
|
|
4184
4116
|
type: "boolean"
|
|
4185
4117
|
}]
|
|
4186
|
-
},
|
|
4118
|
+
}, hs = {
|
|
4187
4119
|
name: "Text",
|
|
4188
4120
|
static: !0,
|
|
4189
4121
|
isRSC: !0,
|
|
@@ -4201,21 +4133,21 @@ const ds = /* @__PURE__ */ P(cs, [["render", ps], ["__file", "/home/runner/work/
|
|
|
4201
4133
|
height: "auto",
|
|
4202
4134
|
textAlign: "center"
|
|
4203
4135
|
}
|
|
4204
|
-
},
|
|
4136
|
+
}, fs = P({
|
|
4205
4137
|
name: "builder-text",
|
|
4206
4138
|
props: ["text"]
|
|
4207
|
-
}),
|
|
4208
|
-
function
|
|
4139
|
+
}), ms = ["innerHTML"];
|
|
4140
|
+
function gs(e, t, n, r, o, i) {
|
|
4209
4141
|
var u;
|
|
4210
|
-
return E(),
|
|
4142
|
+
return E(), x("div", {
|
|
4211
4143
|
class: "builder-text",
|
|
4212
4144
|
innerHTML: ((u = e.text) == null ? void 0 : u.toString()) || "",
|
|
4213
4145
|
style: {
|
|
4214
4146
|
outline: "none"
|
|
4215
4147
|
}
|
|
4216
|
-
}, null, 8,
|
|
4148
|
+
}, null, 8, ms);
|
|
4217
4149
|
}
|
|
4218
|
-
const
|
|
4150
|
+
const ys = /* @__PURE__ */ N(fs, [["render", gs], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/text/text.vue"]]), vs = {
|
|
4219
4151
|
name: "Video",
|
|
4220
4152
|
canHaveChildren: !0,
|
|
4221
4153
|
defaultStyles: {
|
|
@@ -4296,7 +4228,7 @@ const vs = /* @__PURE__ */ P(ms, [["render", ys], ["__file", "/home/runner/work/
|
|
|
4296
4228
|
defaultValue: !0,
|
|
4297
4229
|
advanced: !0
|
|
4298
4230
|
}]
|
|
4299
|
-
},
|
|
4231
|
+
}, As = P({
|
|
4300
4232
|
name: "builder-video",
|
|
4301
4233
|
props: [
|
|
4302
4234
|
"autoPlay",
|
|
@@ -4341,9 +4273,9 @@ const vs = /* @__PURE__ */ P(ms, [["render", ys], ["__file", "/home/runner/work/
|
|
|
4341
4273
|
};
|
|
4342
4274
|
}
|
|
4343
4275
|
}
|
|
4344
|
-
}),
|
|
4276
|
+
}), Cs = { style: {
|
|
4345
4277
|
position: "relative"
|
|
4346
|
-
} },
|
|
4278
|
+
} }, bs = ["preload", "src", "poster"], ks = ["src"], Es = {
|
|
4347
4279
|
key: 1,
|
|
4348
4280
|
style: {
|
|
4349
4281
|
display: "flex",
|
|
@@ -4364,9 +4296,9 @@ const vs = /* @__PURE__ */ P(ms, [["render", ys], ["__file", "/home/runner/work/
|
|
|
4364
4296
|
height: "100%"
|
|
4365
4297
|
}
|
|
4366
4298
|
};
|
|
4367
|
-
function
|
|
4368
|
-
var u, p, h, m,
|
|
4369
|
-
return E(),
|
|
4299
|
+
function Ss(e, t, n, r, o, i) {
|
|
4300
|
+
var u, p, h, m, b, A, R;
|
|
4301
|
+
return E(), x("div", Cs, [
|
|
4370
4302
|
tn("video", ee({
|
|
4371
4303
|
class: "builder-video",
|
|
4372
4304
|
preload: e.preload || "metadata",
|
|
@@ -4385,13 +4317,13 @@ function ws(e, t, n, r, o, i) {
|
|
|
4385
4317
|
src: e.video || "no-src",
|
|
4386
4318
|
poster: e.posterImage
|
|
4387
4319
|
}, e.spreadProps), [
|
|
4388
|
-
e.lazyLoad ?
|
|
4320
|
+
e.lazyLoad ? z("v-if", !0) : (E(), x("source", {
|
|
4389
4321
|
key: 0,
|
|
4390
4322
|
type: "video/mp4",
|
|
4391
4323
|
src: e.video
|
|
4392
|
-
}, null, 8,
|
|
4393
|
-
], 16,
|
|
4394
|
-
e.aspectRatio && !(e.fitContent && ((h = (p = e.builderBlock) == null ? void 0 : p.children) == null ? void 0 : h.length)) ? (E(),
|
|
4324
|
+
}, null, 8, ks))
|
|
4325
|
+
], 16, bs),
|
|
4326
|
+
e.aspectRatio && !(e.fitContent && ((h = (p = e.builderBlock) == null ? void 0 : p.children) == null ? void 0 : h.length)) ? (E(), x("div", {
|
|
4395
4327
|
key: 0,
|
|
4396
4328
|
style: nn({
|
|
4397
4329
|
width: "100%",
|
|
@@ -4399,58 +4331,58 @@ function ws(e, t, n, r, o, i) {
|
|
|
4399
4331
|
pointerEvents: "none",
|
|
4400
4332
|
fontSize: "0px"
|
|
4401
4333
|
})
|
|
4402
|
-
}, null, 4)) :
|
|
4403
|
-
((
|
|
4334
|
+
}, null, 4)) : z("v-if", !0),
|
|
4335
|
+
((b = (m = e.builderBlock) == null ? void 0 : m.children) == null ? void 0 : b.length) && e.fitContent ? (E(), x("div", Es, [
|
|
4404
4336
|
Ee(e.$slots, "default")
|
|
4405
|
-
])) :
|
|
4406
|
-
((
|
|
4337
|
+
])) : z("v-if", !0),
|
|
4338
|
+
((R = (A = e.builderBlock) == null ? void 0 : A.children) == null ? void 0 : R.length) && !e.fitContent ? (E(), x("div", Fs, [
|
|
4407
4339
|
Ee(e.$slots, "default")
|
|
4408
|
-
])) :
|
|
4340
|
+
])) : z("v-if", !0)
|
|
4409
4341
|
]);
|
|
4410
4342
|
}
|
|
4411
|
-
const
|
|
4412
|
-
component:
|
|
4343
|
+
const ws = /* @__PURE__ */ N(As, [["render", Ss], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/video/video.vue"]]), lr = () => [{
|
|
4344
|
+
component: Co,
|
|
4345
|
+
...Mi
|
|
4346
|
+
}, {
|
|
4347
|
+
component: fi,
|
|
4413
4348
|
...Wi
|
|
4414
4349
|
}, {
|
|
4415
|
-
component:
|
|
4350
|
+
component: Gi,
|
|
4416
4351
|
...Vi
|
|
4417
4352
|
}, {
|
|
4418
|
-
component:
|
|
4419
|
-
...
|
|
4353
|
+
component: Zi,
|
|
4354
|
+
...zi
|
|
4420
4355
|
}, {
|
|
4421
|
-
component:
|
|
4422
|
-
...
|
|
4356
|
+
component: yi,
|
|
4357
|
+
...es
|
|
4423
4358
|
}, {
|
|
4424
|
-
component:
|
|
4359
|
+
component: Si,
|
|
4425
4360
|
...ts
|
|
4426
4361
|
}, {
|
|
4427
|
-
component:
|
|
4362
|
+
component: ss,
|
|
4428
4363
|
...ns
|
|
4429
4364
|
}, {
|
|
4430
|
-
component:
|
|
4431
|
-
...
|
|
4432
|
-
}, {
|
|
4433
|
-
component: Ii,
|
|
4434
|
-
...as
|
|
4365
|
+
component: Di,
|
|
4366
|
+
...us
|
|
4435
4367
|
}, {
|
|
4436
4368
|
component: ju,
|
|
4437
|
-
...
|
|
4369
|
+
...ds
|
|
4438
4370
|
}, {
|
|
4439
|
-
component:
|
|
4440
|
-
...
|
|
4371
|
+
component: ys,
|
|
4372
|
+
...hs
|
|
4441
4373
|
}, {
|
|
4442
|
-
component:
|
|
4443
|
-
...
|
|
4374
|
+
component: ws,
|
|
4375
|
+
...vs
|
|
4444
4376
|
}, {
|
|
4445
|
-
component:
|
|
4446
|
-
...
|
|
4447
|
-
}], cr = [],
|
|
4377
|
+
component: ps,
|
|
4378
|
+
...as
|
|
4379
|
+
}], cr = [], Bs = (e) => ({
|
|
4448
4380
|
type: "builder.registerComponent",
|
|
4449
4381
|
data: an(e)
|
|
4450
|
-
}),
|
|
4382
|
+
}), Ds = (e) => {
|
|
4451
4383
|
const t = e.toString().trim();
|
|
4452
4384
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4453
|
-
}, xs = (e) => typeof e == "function" ?
|
|
4385
|
+
}, xs = (e) => typeof e == "function" ? Ds(e) : pt(e), an = ({
|
|
4454
4386
|
inputs: e,
|
|
4455
4387
|
...t
|
|
4456
4388
|
}) => ({
|
|
@@ -4459,7 +4391,7 @@ const Bs = /* @__PURE__ */ P(Cs, [["render", ws], ["__file", "/home/runner/work/
|
|
|
4459
4391
|
...r,
|
|
4460
4392
|
[o]: xs(i)
|
|
4461
4393
|
}), {}))
|
|
4462
|
-
}),
|
|
4394
|
+
}), Is = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4463
4395
|
function getAndSetVariantId() {
|
|
4464
4396
|
function setCookie(name, value, days) {
|
|
4465
4397
|
let expires = '';
|
|
@@ -4515,7 +4447,7 @@ const Bs = /* @__PURE__ */ P(Cs, [["render", ws], ["__file", "/home/runner/work/
|
|
|
4515
4447
|
}).join('');
|
|
4516
4448
|
styleEl.innerHTML = newStyleStr;
|
|
4517
4449
|
}
|
|
4518
|
-
}`,
|
|
4450
|
+
}`, Ts = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4519
4451
|
if (!navigator.cookieEnabled) {
|
|
4520
4452
|
return;
|
|
4521
4453
|
}
|
|
@@ -4549,42 +4481,42 @@ const Bs = /* @__PURE__ */ P(Cs, [["render", ws], ["__file", "/home/runner/work/
|
|
|
4549
4481
|
thisScriptEl?.remove();
|
|
4550
4482
|
}
|
|
4551
4483
|
return;
|
|
4552
|
-
}`,
|
|
4484
|
+
}`, _r = "builderIoAbTest", Mr = "builderIoRenderContent", kt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4553
4485
|
...t,
|
|
4554
4486
|
testVariationId: t.id,
|
|
4555
4487
|
id: e == null ? void 0 : e.id
|
|
4556
|
-
})),
|
|
4488
|
+
})), Rs = ({
|
|
4557
4489
|
canTrack: e,
|
|
4558
4490
|
content: t
|
|
4559
|
-
}) => !(!(kt(t).length > 0) || !e),
|
|
4560
|
-
window.${
|
|
4561
|
-
window.${Mr} = ${
|
|
4562
|
-
`,
|
|
4563
|
-
window.${
|
|
4491
|
+
}) => !(!(kt(t).length > 0) || !e), js = (e) => e === "react" || e === "reactNative", Wr = js(Ae), Os = () => `
|
|
4492
|
+
window.${_r} = ${Is}
|
|
4493
|
+
window.${Mr} = ${Ts}
|
|
4494
|
+
`, $s = (e, t) => `
|
|
4495
|
+
window.${_r}(
|
|
4564
4496
|
"${t}",${JSON.stringify(e)}, ${Wr}
|
|
4565
|
-
)`,
|
|
4497
|
+
)`, Ps = ({
|
|
4566
4498
|
contentId: e,
|
|
4567
4499
|
variationId: t
|
|
4568
4500
|
}) => `window.${Mr}(
|
|
4569
4501
|
"${t}", "${e}", ${Wr}
|
|
4570
|
-
)`,
|
|
4502
|
+
)`, Ns = P({
|
|
4571
4503
|
render() {
|
|
4572
4504
|
return Ar("script", { id: this.id, innerHTML: this.scriptStr });
|
|
4573
4505
|
},
|
|
4574
4506
|
name: "inlined-script",
|
|
4575
4507
|
props: ["scriptStr", "id"]
|
|
4576
|
-
}), Vr = /* @__PURE__ */
|
|
4508
|
+
}), Vr = /* @__PURE__ */ N(Ns, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-script.vue"]]);
|
|
4577
4509
|
function Us() {
|
|
4578
4510
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4579
4511
|
}
|
|
4580
|
-
function
|
|
4512
|
+
function _s() {
|
|
4581
4513
|
const e = Us().fetch;
|
|
4582
4514
|
if (typeof e > "u")
|
|
4583
4515
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4584
4516
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4585
4517
|
return e;
|
|
4586
4518
|
}
|
|
4587
|
-
const Lr =
|
|
4519
|
+
const Lr = _s();
|
|
4588
4520
|
function Et(e, t = null, n = ".") {
|
|
4589
4521
|
return Object.keys(e).reduce((r, o) => {
|
|
4590
4522
|
const i = e[o], u = [t, o].filter(Boolean).join(n);
|
|
@@ -4597,7 +4529,7 @@ function Et(e, t = null, n = ".") {
|
|
|
4597
4529
|
};
|
|
4598
4530
|
}, {});
|
|
4599
4531
|
}
|
|
4600
|
-
const
|
|
4532
|
+
const Ms = "v3", pr = "builder.", Ws = "options.", Vs = (e) => {
|
|
4601
4533
|
const t = {};
|
|
4602
4534
|
return e.forEach((n, r) => {
|
|
4603
4535
|
t[r] = n;
|
|
@@ -4608,16 +4540,16 @@ const Ws = "v3", pr = "builder.", Vs = "options.", Ls = (e) => {
|
|
|
4608
4540
|
const t = Kr(e), n = {};
|
|
4609
4541
|
return Object.keys(t).forEach((r) => {
|
|
4610
4542
|
if (r.startsWith(pr)) {
|
|
4611
|
-
const o = r.replace(pr, "").replace(
|
|
4543
|
+
const o = r.replace(pr, "").replace(Ws, "");
|
|
4612
4544
|
n[o] = t[r];
|
|
4613
4545
|
}
|
|
4614
4546
|
}), n;
|
|
4615
|
-
},
|
|
4616
|
-
if (!
|
|
4547
|
+
}, Ls = () => {
|
|
4548
|
+
if (!X())
|
|
4617
4549
|
return {};
|
|
4618
4550
|
const e = new URLSearchParams(window.location.search);
|
|
4619
4551
|
return Hr(e);
|
|
4620
|
-
}, Kr = (e) => e instanceof URLSearchParams ?
|
|
4552
|
+
}, Kr = (e) => e instanceof URLSearchParams ? Vs(e) : e, dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, En = (e) => {
|
|
4621
4553
|
let {
|
|
4622
4554
|
noTraverse: t = !1
|
|
4623
4555
|
} = e;
|
|
@@ -4630,22 +4562,22 @@ const Ws = "v3", pr = "builder.", Vs = "options.", Ls = (e) => {
|
|
|
4630
4562
|
includeRefs: p = !0,
|
|
4631
4563
|
enrich: h,
|
|
4632
4564
|
locale: m,
|
|
4633
|
-
apiVersion:
|
|
4634
|
-
fields:
|
|
4635
|
-
omit:
|
|
4636
|
-
offset:
|
|
4637
|
-
cacheSeconds:
|
|
4638
|
-
staleCacheSeconds:
|
|
4565
|
+
apiVersion: b = Ms,
|
|
4566
|
+
fields: A,
|
|
4567
|
+
omit: R,
|
|
4568
|
+
offset: $,
|
|
4569
|
+
cacheSeconds: T,
|
|
4570
|
+
staleCacheSeconds: U,
|
|
4639
4571
|
sort: ne,
|
|
4640
|
-
includeUnpublished:
|
|
4572
|
+
includeUnpublished: Se
|
|
4641
4573
|
} = e;
|
|
4642
4574
|
if (!u)
|
|
4643
4575
|
throw new Error("Missing API key");
|
|
4644
|
-
if (!["v2", "v3"].includes(
|
|
4645
|
-
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${
|
|
4576
|
+
if (!["v2", "v3"].includes(b))
|
|
4577
|
+
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${b}'`);
|
|
4646
4578
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
4647
|
-
const k = new URL(`https://cdn.builder.io/api/${
|
|
4648
|
-
if (k.searchParams.set("omit",
|
|
4579
|
+
const k = new URL(`https://cdn.builder.io/api/${b}/content/${i}?apiKey=${u}&limit=${n}&noTraverse=${t}&includeRefs=${p}${m ? `&locale=${m}` : ""}${h ? `&enrich=${h}` : ""}`);
|
|
4580
|
+
if (k.searchParams.set("omit", R || "meta.componentsUsed"), A && k.searchParams.set("fields", A), Number.isFinite($) && $ > -1 && k.searchParams.set("offset", String(Math.floor($))), typeof Se == "boolean" && k.searchParams.set("includeUnpublished", String(Se)), T && dr(T) && k.searchParams.set("cacheSeconds", String(T)), U && dr(U) && k.searchParams.set("staleCacheSeconds", String(U)), ne) {
|
|
4649
4581
|
const oe = Et({
|
|
4650
4582
|
sort: ne
|
|
4651
4583
|
});
|
|
@@ -4653,7 +4585,7 @@ const Ws = "v3", pr = "builder.", Vs = "options.", Ls = (e) => {
|
|
|
4653
4585
|
k.searchParams.set(j, JSON.stringify(oe[j]));
|
|
4654
4586
|
}
|
|
4655
4587
|
const Me = {
|
|
4656
|
-
...
|
|
4588
|
+
...Ls(),
|
|
4657
4589
|
...Kr(e.options || {})
|
|
4658
4590
|
}, We = Et(Me);
|
|
4659
4591
|
for (const oe in We)
|
|
@@ -4666,25 +4598,25 @@ const Ws = "v3", pr = "builder.", Vs = "options.", Ls = (e) => {
|
|
|
4666
4598
|
k.searchParams.set(j, JSON.stringify(oe[j]));
|
|
4667
4599
|
}
|
|
4668
4600
|
return k;
|
|
4669
|
-
},
|
|
4670
|
-
async function
|
|
4601
|
+
}, Hs = (e) => "results" in e;
|
|
4602
|
+
async function xt(e) {
|
|
4671
4603
|
const t = await Gr({
|
|
4672
4604
|
...e,
|
|
4673
4605
|
limit: 1
|
|
4674
4606
|
});
|
|
4675
4607
|
return t && t[0] || null;
|
|
4676
4608
|
}
|
|
4677
|
-
const Nu =
|
|
4609
|
+
const Nu = xt, Ks = async (e) => {
|
|
4678
4610
|
const t = En(e);
|
|
4679
4611
|
return await (await Lr(t.href)).json();
|
|
4680
|
-
},
|
|
4612
|
+
}, Gs = async (e, t, n = En(e)) => {
|
|
4681
4613
|
const r = ut(e.canTrack);
|
|
4682
|
-
if (n.search.includes("preview="), !r || !(
|
|
4614
|
+
if (n.search.includes("preview="), !r || !(X() || Ae === "reactNative"))
|
|
4683
4615
|
return t.results;
|
|
4684
4616
|
try {
|
|
4685
4617
|
const o = [];
|
|
4686
4618
|
for (const i of t.results)
|
|
4687
|
-
o.push(await
|
|
4619
|
+
o.push(await _i({
|
|
4688
4620
|
item: i,
|
|
4689
4621
|
canTrack: r
|
|
4690
4622
|
}));
|
|
@@ -4696,8 +4628,8 @@ const Nu = It, Gs = async (e) => {
|
|
|
4696
4628
|
};
|
|
4697
4629
|
async function Gr(e) {
|
|
4698
4630
|
try {
|
|
4699
|
-
const t = En(e), n = await
|
|
4700
|
-
return
|
|
4631
|
+
const t = En(e), n = await Ks(e);
|
|
4632
|
+
return Hs(n) ? Gs(e, n) : (te.error("Error fetching data. ", {
|
|
4701
4633
|
url: t,
|
|
4702
4634
|
content: n,
|
|
4703
4635
|
options: e
|
|
@@ -4706,9 +4638,13 @@ async function Gr(e) {
|
|
|
4706
4638
|
return te.error("Error fetching data. ", t), null;
|
|
4707
4639
|
}
|
|
4708
4640
|
}
|
|
4709
|
-
const
|
|
4641
|
+
const Uu = Gr, zs = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4642
|
+
function zr(e, t) {
|
|
4643
|
+
const n = new URL(t.origin), r = n.hostname;
|
|
4644
|
+
return (e || zs).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4645
|
+
}
|
|
4710
4646
|
function Xs() {
|
|
4711
|
-
return !
|
|
4647
|
+
return !X() || ge() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
4712
4648
|
}
|
|
4713
4649
|
function Js() {
|
|
4714
4650
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
@@ -4716,16 +4652,16 @@ function Js() {
|
|
|
4716
4652
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4717
4653
|
});
|
|
4718
4654
|
}
|
|
4719
|
-
function
|
|
4655
|
+
function Xr() {
|
|
4720
4656
|
return Js().replace(/-/g, "");
|
|
4721
4657
|
}
|
|
4722
|
-
const
|
|
4658
|
+
const Jr = "builderSessionId", Ys = async ({
|
|
4723
4659
|
canTrack: e
|
|
4724
4660
|
}) => {
|
|
4725
4661
|
if (!e)
|
|
4726
4662
|
return;
|
|
4727
4663
|
const t = await Or({
|
|
4728
|
-
name:
|
|
4664
|
+
name: Jr,
|
|
4729
4665
|
canTrack: e
|
|
4730
4666
|
});
|
|
4731
4667
|
if (Pe(t))
|
|
@@ -4737,20 +4673,20 @@ const Xr = "builderSessionId", Ys = async ({
|
|
|
4737
4673
|
canTrack: e
|
|
4738
4674
|
}), n;
|
|
4739
4675
|
}
|
|
4740
|
-
}, qs = () =>
|
|
4676
|
+
}, qs = () => Xr(), Qs = ({
|
|
4741
4677
|
id: e,
|
|
4742
4678
|
canTrack: t
|
|
4743
4679
|
}) => $r({
|
|
4744
|
-
name:
|
|
4680
|
+
name: Jr,
|
|
4745
4681
|
value: e,
|
|
4746
4682
|
canTrack: t
|
|
4747
|
-
}),
|
|
4683
|
+
}), Yr = () => X() && typeof localStorage < "u" ? localStorage : void 0, Zs = ({
|
|
4748
4684
|
key: e,
|
|
4749
4685
|
canTrack: t
|
|
4750
4686
|
}) => {
|
|
4751
4687
|
var n;
|
|
4752
4688
|
try {
|
|
4753
|
-
return t ? (n =
|
|
4689
|
+
return t ? (n = Yr()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4754
4690
|
} catch (r) {
|
|
4755
4691
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4756
4692
|
return;
|
|
@@ -4762,17 +4698,17 @@ const Xr = "builderSessionId", Ys = async ({
|
|
|
4762
4698
|
}) => {
|
|
4763
4699
|
var r;
|
|
4764
4700
|
try {
|
|
4765
|
-
t && ((r =
|
|
4701
|
+
t && ((r = Yr()) == null || r.setItem(e, n));
|
|
4766
4702
|
} catch (o) {
|
|
4767
4703
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4768
4704
|
}
|
|
4769
|
-
},
|
|
4705
|
+
}, qr = "builderVisitorId", tu = ({
|
|
4770
4706
|
canTrack: e
|
|
4771
4707
|
}) => {
|
|
4772
4708
|
if (!e)
|
|
4773
4709
|
return;
|
|
4774
4710
|
const t = Zs({
|
|
4775
|
-
key:
|
|
4711
|
+
key: qr,
|
|
4776
4712
|
canTrack: e
|
|
4777
4713
|
});
|
|
4778
4714
|
if (Pe(t))
|
|
@@ -4784,11 +4720,11 @@ const Xr = "builderSessionId", Ys = async ({
|
|
|
4784
4720
|
canTrack: e
|
|
4785
4721
|
}), n;
|
|
4786
4722
|
}
|
|
4787
|
-
}, nu = () =>
|
|
4723
|
+
}, nu = () => Xr(), ru = ({
|
|
4788
4724
|
id: e,
|
|
4789
4725
|
canTrack: t
|
|
4790
4726
|
}) => eu({
|
|
4791
|
-
key:
|
|
4727
|
+
key: qr,
|
|
4792
4728
|
value: e,
|
|
4793
4729
|
canTrack: t
|
|
4794
4730
|
}), ou = async ({
|
|
@@ -4834,7 +4770,7 @@ async function ln(e) {
|
|
|
4834
4770
|
te.error("Missing API key for track call. Please provide your API key.");
|
|
4835
4771
|
return;
|
|
4836
4772
|
}
|
|
4837
|
-
if (!!e.canTrack && !ge() && !!(
|
|
4773
|
+
if (!!e.canTrack && !ge() && !!(X() || Ae === "reactNative"))
|
|
4838
4774
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4839
4775
|
method: "POST",
|
|
4840
4776
|
body: JSON.stringify({
|
|
@@ -4848,7 +4784,7 @@ async function ln(e) {
|
|
|
4848
4784
|
console.error("Failed to track: ", t);
|
|
4849
4785
|
});
|
|
4850
4786
|
}
|
|
4851
|
-
const
|
|
4787
|
+
const _u = (e) => ln({
|
|
4852
4788
|
...e,
|
|
4853
4789
|
canTrack: !0
|
|
4854
4790
|
});
|
|
@@ -4894,10 +4830,10 @@ const su = (e, t, n = !0) => {
|
|
|
4894
4830
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4895
4831
|
}
|
|
4896
4832
|
};
|
|
4897
|
-
}, lu = "0.12.
|
|
4833
|
+
}, lu = "0.12.3", mr = {};
|
|
4898
4834
|
function cu(e, t) {
|
|
4899
4835
|
let n = mr[e];
|
|
4900
|
-
if (n || (n = mr[e] = []), n.push(t),
|
|
4836
|
+
if (n || (n = mr[e] = []), n.push(t), X()) {
|
|
4901
4837
|
const r = {
|
|
4902
4838
|
type: "builder.register",
|
|
4903
4839
|
data: {
|
|
@@ -4938,7 +4874,7 @@ const pu = () => {
|
|
|
4938
4874
|
let gr = !1;
|
|
4939
4875
|
const du = (e = {}) => {
|
|
4940
4876
|
var t, n;
|
|
4941
|
-
gr || (gr = !0,
|
|
4877
|
+
gr || (gr = !0, X() && ((t = window.parent) == null || t.postMessage({
|
|
4942
4878
|
type: "builder.sdkInfo",
|
|
4943
4879
|
data: {
|
|
4944
4880
|
target: Ae,
|
|
@@ -4952,51 +4888,55 @@ const du = (e = {}) => {
|
|
|
4952
4888
|
data: {
|
|
4953
4889
|
options: e
|
|
4954
4890
|
}
|
|
4955
|
-
}, "*"), window.addEventListener("message", ({
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4891
|
+
}, "*"), window.addEventListener("message", (r) => {
|
|
4892
|
+
var i, u;
|
|
4893
|
+
if (!zr(e.trustedHosts, r))
|
|
4894
|
+
return;
|
|
4895
|
+
const {
|
|
4896
|
+
data: o
|
|
4897
|
+
} = r;
|
|
4898
|
+
if (!!(o != null && o.type))
|
|
4899
|
+
switch (o.type) {
|
|
4961
4900
|
case "builder.evaluate": {
|
|
4962
|
-
const
|
|
4963
|
-
let
|
|
4901
|
+
const p = o.data.text, h = o.data.arguments || [], m = o.data.id, b = new Function(p);
|
|
4902
|
+
let A, R = null;
|
|
4964
4903
|
try {
|
|
4965
|
-
|
|
4966
|
-
} catch (
|
|
4967
|
-
|
|
4904
|
+
A = b.apply(null, h);
|
|
4905
|
+
} catch ($) {
|
|
4906
|
+
R = $;
|
|
4968
4907
|
}
|
|
4969
|
-
|
|
4908
|
+
R ? (i = window.parent) == null || i.postMessage({
|
|
4970
4909
|
type: "builder.evaluateError",
|
|
4971
4910
|
data: {
|
|
4972
|
-
id:
|
|
4973
|
-
error:
|
|
4911
|
+
id: m,
|
|
4912
|
+
error: R.message
|
|
4974
4913
|
}
|
|
4975
|
-
}, "*") :
|
|
4976
|
-
var
|
|
4977
|
-
(
|
|
4914
|
+
}, "*") : A && typeof A.then == "function" ? A.then(($) => {
|
|
4915
|
+
var T;
|
|
4916
|
+
(T = window.parent) == null || T.postMessage({
|
|
4978
4917
|
type: "builder.evaluateResult",
|
|
4979
4918
|
data: {
|
|
4980
|
-
id:
|
|
4981
|
-
result:
|
|
4919
|
+
id: m,
|
|
4920
|
+
result: $
|
|
4982
4921
|
}
|
|
4983
4922
|
}, "*");
|
|
4984
|
-
}).catch(console.error) : (
|
|
4923
|
+
}).catch(console.error) : (u = window.parent) == null || u.postMessage({
|
|
4985
4924
|
type: "builder.evaluateResult",
|
|
4986
4925
|
data: {
|
|
4987
|
-
result:
|
|
4988
|
-
id:
|
|
4926
|
+
result: A,
|
|
4927
|
+
id: m
|
|
4989
4928
|
}
|
|
4990
4929
|
}, "*");
|
|
4991
4930
|
break;
|
|
4992
4931
|
}
|
|
4993
4932
|
}
|
|
4994
4933
|
})));
|
|
4995
|
-
}, hu =
|
|
4934
|
+
}, hu = P({
|
|
4996
4935
|
name: "enable-editor",
|
|
4997
4936
|
props: [
|
|
4998
4937
|
"builderContextSignal",
|
|
4999
4938
|
"contentWrapper",
|
|
4939
|
+
"trustedHosts",
|
|
5000
4940
|
"model",
|
|
5001
4941
|
"context",
|
|
5002
4942
|
"canTrack",
|
|
@@ -5030,7 +4970,7 @@ const du = (e = {}) => {
|
|
|
5030
4970
|
mounted() {
|
|
5031
4971
|
(() => {
|
|
5032
4972
|
var n, r;
|
|
5033
|
-
if (
|
|
4973
|
+
if (X()) {
|
|
5034
4974
|
if (ge() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5035
4975
|
new CustomEvent("initeditingbldr")
|
|
5036
4976
|
), this.builderContextSignal.content && ut(this.canTrack)) {
|
|
@@ -5096,7 +5036,7 @@ const du = (e = {}) => {
|
|
|
5096
5036
|
}
|
|
5097
5037
|
},
|
|
5098
5038
|
unmounted() {
|
|
5099
|
-
|
|
5039
|
+
X() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
5100
5040
|
"builder:component:stateChangeListenerActivated",
|
|
5101
5041
|
this.emitStateUpdate
|
|
5102
5042
|
));
|
|
@@ -5169,6 +5109,8 @@ const du = (e = {}) => {
|
|
|
5169
5109
|
},
|
|
5170
5110
|
processMessage(e) {
|
|
5171
5111
|
var n;
|
|
5112
|
+
if (!zr(this.trustedHosts, e))
|
|
5113
|
+
return;
|
|
5172
5114
|
const { data: t } = e;
|
|
5173
5115
|
if (t)
|
|
5174
5116
|
switch (t.type) {
|
|
@@ -5193,7 +5135,7 @@ const du = (e = {}) => {
|
|
|
5193
5135
|
evaluateJsCode() {
|
|
5194
5136
|
var t, n;
|
|
5195
5137
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
5196
|
-
e &&
|
|
5138
|
+
e && Ft({
|
|
5197
5139
|
code: e,
|
|
5198
5140
|
context: this.context || {},
|
|
5199
5141
|
localState: void 0,
|
|
@@ -5220,7 +5162,7 @@ const du = (e = {}) => {
|
|
|
5220
5162
|
evalExpression(e) {
|
|
5221
5163
|
return e.replace(
|
|
5222
5164
|
/{{([^}]+)}}/g,
|
|
5223
|
-
(t, n) =>
|
|
5165
|
+
(t, n) => Ft({
|
|
5224
5166
|
code: n,
|
|
5225
5167
|
context: this.context || {},
|
|
5226
5168
|
localState: void 0,
|
|
@@ -5279,12 +5221,15 @@ const du = (e = {}) => {
|
|
|
5279
5221
|
} : {},
|
|
5280
5222
|
...this.enrich ? {
|
|
5281
5223
|
enrich: this.enrich
|
|
5224
|
+
} : {},
|
|
5225
|
+
...this.trustedHosts ? {
|
|
5226
|
+
trustedHosts: this.trustedHosts
|
|
5282
5227
|
} : {}
|
|
5283
5228
|
}), Object.values(
|
|
5284
5229
|
this.builderContextSignal.componentInfos
|
|
5285
5230
|
).forEach((t) => {
|
|
5286
5231
|
var r;
|
|
5287
|
-
const n =
|
|
5232
|
+
const n = Bs(t);
|
|
5288
5233
|
(r = window.parent) == null || r.postMessage(n, "*");
|
|
5289
5234
|
}), window.addEventListener(
|
|
5290
5235
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -5295,36 +5240,25 @@ const du = (e = {}) => {
|
|
|
5295
5240
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), r = t.get(
|
|
5296
5241
|
`builder.preview.${n}`
|
|
5297
5242
|
), o = t.get("apiKey") || t.get("builder.space");
|
|
5298
|
-
n === this.model && o === this.apiKey && (!this.content || r === this.content.id) &&
|
|
5243
|
+
n === this.model && o === this.apiKey && (!this.content || r === this.content.id) && xt({
|
|
5299
5244
|
model: this.model,
|
|
5300
5245
|
apiKey: this.apiKey,
|
|
5301
5246
|
apiVersion: this.builderContextSignal.apiVersion
|
|
5302
5247
|
}).then((i) => {
|
|
5303
5248
|
i && this.mergeNewContent(i);
|
|
5304
5249
|
});
|
|
5305
|
-
},
|
|
5306
|
-
_classStringToObject(e) {
|
|
5307
|
-
const t = {};
|
|
5308
|
-
if (typeof e != "string")
|
|
5309
|
-
return t;
|
|
5310
|
-
const n = e.trim().split(/\s+/);
|
|
5311
|
-
for (const r of n)
|
|
5312
|
-
t[r] = !0;
|
|
5313
|
-
return t;
|
|
5314
5250
|
}
|
|
5315
5251
|
}
|
|
5316
5252
|
});
|
|
5317
5253
|
function fu(e, t, n, r, o, i) {
|
|
5318
5254
|
var u, p, h;
|
|
5319
|
-
return e.builderContextSignal.content ? (E(),
|
|
5255
|
+
return e.builderContextSignal.content ? (E(), J(vr(e.ContentWrapper), ee({
|
|
5320
5256
|
key: e.forceReRenderCount,
|
|
5321
5257
|
ref: "elementRef",
|
|
5322
5258
|
onClick: (m) => e.onClick(m),
|
|
5323
5259
|
"builder-content-id": (u = e.builderContextSignal.content) == null ? void 0 : u.id,
|
|
5324
5260
|
"builder-model": e.model,
|
|
5325
|
-
class: e.
|
|
5326
|
-
`variant-${((p = e.content) == null ? void 0 : p.testVariationId) || ((h = e.content) == null ? void 0 : h.id)}`
|
|
5327
|
-
),
|
|
5261
|
+
class: `variant-${((p = e.content) == null ? void 0 : p.testVariationId) || ((h = e.content) == null ? void 0 : h.id)}`,
|
|
5328
5262
|
onIniteditingbldr: (m) => e.elementRef_onIniteditingbldr(m),
|
|
5329
5263
|
onInitpreviewingbldr: (m) => e.elementRef_onInitpreviewingbldr(m)
|
|
5330
5264
|
}, {
|
|
@@ -5338,9 +5272,9 @@ function fu(e, t, n, r, o, i) {
|
|
|
5338
5272
|
Ee(e.$slots, "default")
|
|
5339
5273
|
]),
|
|
5340
5274
|
_: 3
|
|
5341
|
-
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) :
|
|
5275
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : z("v-if", !0);
|
|
5342
5276
|
}
|
|
5343
|
-
const mu = /* @__PURE__ */
|
|
5277
|
+
const mu = /* @__PURE__ */ N(hu, [["render", fu], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/enable-editor.vue"]]), gu = (e) => {
|
|
5344
5278
|
var i, u;
|
|
5345
5279
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = (u = e.fileUrl) != null ? u : (i = e == null ? void 0 : e.files) == null ? void 0 : i.regular;
|
|
5346
5280
|
let o = "";
|
|
@@ -5374,7 +5308,7 @@ font-weight: ${p};
|
|
|
5374
5308
|
}, vu = ({
|
|
5375
5309
|
cssCode: e,
|
|
5376
5310
|
contentId: t
|
|
5377
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Au =
|
|
5311
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Au = P({
|
|
5378
5312
|
name: "content-styles",
|
|
5379
5313
|
components: { InlinedStyles: bn },
|
|
5380
5314
|
props: ["cssCode", "contentId", "customFonts"],
|
|
@@ -5389,6 +5323,10 @@ ${yu({
|
|
|
5389
5323
|
customFonts: this.customFonts
|
|
5390
5324
|
})}
|
|
5391
5325
|
|
|
5326
|
+
.builder-button {
|
|
5327
|
+
all: unset;
|
|
5328
|
+
}
|
|
5329
|
+
|
|
5392
5330
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
5393
5331
|
margin: 0;
|
|
5394
5332
|
}
|
|
@@ -5407,9 +5345,9 @@ ${yu({
|
|
|
5407
5345
|
});
|
|
5408
5346
|
function Cu(e, t, n, r, o, i) {
|
|
5409
5347
|
const u = V("inlined-styles");
|
|
5410
|
-
return E(),
|
|
5348
|
+
return E(), J(u, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
5411
5349
|
}
|
|
5412
|
-
const bu = /* @__PURE__ */
|
|
5350
|
+
const bu = /* @__PURE__ */ N(Au, [["render", Cu], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/styles.vue"]]), ku = ({
|
|
5413
5351
|
content: e,
|
|
5414
5352
|
data: t,
|
|
5415
5353
|
locale: n
|
|
@@ -5436,7 +5374,7 @@ const bu = /* @__PURE__ */ P(Au, [["render", Cu], ["__file", "/home/runner/work/
|
|
|
5436
5374
|
...t
|
|
5437
5375
|
},
|
|
5438
5376
|
meta: e == null ? void 0 : e.meta
|
|
5439
|
-
} : void 0,
|
|
5377
|
+
} : void 0, Fu = go, Su = P({
|
|
5440
5378
|
name: "content-component",
|
|
5441
5379
|
components: {
|
|
5442
5380
|
EnableEditor: mu,
|
|
@@ -5461,12 +5399,13 @@ const bu = /* @__PURE__ */ P(Au, [["render", Cu], ["__file", "/home/runner/work/
|
|
|
5461
5399
|
"showContent",
|
|
5462
5400
|
"contentWrapper",
|
|
5463
5401
|
"contentWrapperProps",
|
|
5402
|
+
"trustedHosts",
|
|
5464
5403
|
"isSsrAbTest"
|
|
5465
5404
|
],
|
|
5466
5405
|
data() {
|
|
5467
5406
|
var e, t;
|
|
5468
5407
|
return {
|
|
5469
|
-
scriptStr:
|
|
5408
|
+
scriptStr: Ps({
|
|
5470
5409
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5471
5410
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5472
5411
|
}),
|
|
@@ -5478,7 +5417,7 @@ const bu = /* @__PURE__ */ P(Au, [["render", Cu], ["__file", "/home/runner/work/
|
|
|
5478
5417
|
(n, { component: r, ...o }) => ({
|
|
5479
5418
|
...n,
|
|
5480
5419
|
[o.name]: {
|
|
5481
|
-
component:
|
|
5420
|
+
component: Fu(r),
|
|
5482
5421
|
...an(o)
|
|
5483
5422
|
}
|
|
5484
5423
|
}),
|
|
@@ -5533,7 +5472,7 @@ const bu = /* @__PURE__ */ P(Au, [["render", Cu], ["__file", "/home/runner/work/
|
|
|
5533
5472
|
});
|
|
5534
5473
|
function wu(e, t, n, r, o, i) {
|
|
5535
5474
|
const u = V("inlined-script"), p = V("content-styles"), h = V("blocks"), m = V("enable-editor");
|
|
5536
|
-
return E(),
|
|
5475
|
+
return E(), J(m, ee({
|
|
5537
5476
|
content: e.content,
|
|
5538
5477
|
data: e.data,
|
|
5539
5478
|
model: e.model,
|
|
@@ -5546,32 +5485,33 @@ function wu(e, t, n, r, o, i) {
|
|
|
5546
5485
|
showContent: e.showContent,
|
|
5547
5486
|
builderContextSignal: e.builderContextSignal,
|
|
5548
5487
|
contentWrapper: e.contentWrapper,
|
|
5549
|
-
contentWrapperProps: e.contentWrapperProps
|
|
5488
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
5489
|
+
trustedHosts: e.trustedHosts
|
|
5550
5490
|
}, {}), {
|
|
5551
5491
|
default: at(() => {
|
|
5552
|
-
var
|
|
5492
|
+
var b, A, R, $, T, U, ne;
|
|
5553
5493
|
return [
|
|
5554
|
-
e.isSsrAbTest ? (E(),
|
|
5494
|
+
e.isSsrAbTest ? (E(), J(u, {
|
|
5555
5495
|
key: 0,
|
|
5556
5496
|
scriptStr: e.scriptStr
|
|
5557
|
-
}, null, 8, ["scriptStr"])) :
|
|
5558
|
-
e.TARGET !== "reactNative" ? (E(),
|
|
5497
|
+
}, null, 8, ["scriptStr"])) : z("v-if", !0),
|
|
5498
|
+
e.TARGET !== "reactNative" ? (E(), J(p, {
|
|
5559
5499
|
key: 1,
|
|
5560
|
-
contentId: (
|
|
5561
|
-
cssCode: (
|
|
5562
|
-
customFonts: (
|
|
5563
|
-
}, null, 8, ["contentId", "cssCode", "customFonts"])) :
|
|
5500
|
+
contentId: (b = e.builderContextSignal.content) == null ? void 0 : b.id,
|
|
5501
|
+
cssCode: (R = (A = e.builderContextSignal.content) == null ? void 0 : A.data) == null ? void 0 : R.cssCode,
|
|
5502
|
+
customFonts: (T = ($ = e.builderContextSignal.content) == null ? void 0 : $.data) == null ? void 0 : T.customFonts
|
|
5503
|
+
}, null, 8, ["contentId", "cssCode", "customFonts"])) : z("v-if", !0),
|
|
5564
5504
|
me(h, {
|
|
5565
|
-
blocks: (ne = (
|
|
5505
|
+
blocks: (ne = (U = e.builderContextSignal.content) == null ? void 0 : U.data) == null ? void 0 : ne.blocks,
|
|
5566
5506
|
context: e.builderContextSignal,
|
|
5567
5507
|
registeredComponents: e.registeredComponents
|
|
5568
5508
|
}, null, 8, ["blocks", "context", "registeredComponents"])
|
|
5569
5509
|
];
|
|
5570
5510
|
}),
|
|
5571
5511
|
_: 1
|
|
5572
|
-
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps"]);
|
|
5512
|
+
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
5573
5513
|
}
|
|
5574
|
-
const Bu = /* @__PURE__ */
|
|
5514
|
+
const Bu = /* @__PURE__ */ N(Su, [["render", wu], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/content.vue"]]), Du = P({
|
|
5575
5515
|
name: "content-variants",
|
|
5576
5516
|
components: {
|
|
5577
5517
|
InlinedScript: Vr,
|
|
@@ -5594,16 +5534,17 @@ const Bu = /* @__PURE__ */ P(Fu, [["render", wu], ["__file", "/home/runner/work/
|
|
|
5594
5534
|
"blocksWrapper",
|
|
5595
5535
|
"blocksWrapperProps",
|
|
5596
5536
|
"contentWrapper",
|
|
5597
|
-
"contentWrapperProps"
|
|
5537
|
+
"contentWrapperProps",
|
|
5538
|
+
"trustedHosts"
|
|
5598
5539
|
],
|
|
5599
5540
|
data() {
|
|
5600
5541
|
return {
|
|
5601
|
-
shouldRenderVariants:
|
|
5542
|
+
shouldRenderVariants: Rs({
|
|
5602
5543
|
canTrack: ut(this.canTrack),
|
|
5603
5544
|
content: this.content
|
|
5604
5545
|
}),
|
|
5605
5546
|
TARGET: Ae,
|
|
5606
|
-
getScriptString:
|
|
5547
|
+
getScriptString: Os,
|
|
5607
5548
|
getVariants: kt
|
|
5608
5549
|
};
|
|
5609
5550
|
},
|
|
@@ -5613,7 +5554,7 @@ const Bu = /* @__PURE__ */ P(Fu, [["render", wu], ["__file", "/home/runner/work/
|
|
|
5613
5554
|
computed: {
|
|
5614
5555
|
updateCookieAndStylesScriptStr() {
|
|
5615
5556
|
var e;
|
|
5616
|
-
return
|
|
5557
|
+
return $s(
|
|
5617
5558
|
kt(this.content).map((t) => ({
|
|
5618
5559
|
id: t.testVariationId,
|
|
5619
5560
|
testRatio: t.testRatio
|
|
@@ -5636,23 +5577,23 @@ const Bu = /* @__PURE__ */ P(Fu, [["render", wu], ["__file", "/home/runner/work/
|
|
|
5636
5577
|
}
|
|
5637
5578
|
}
|
|
5638
5579
|
});
|
|
5639
|
-
function
|
|
5580
|
+
function xu(e, t, n, r, o, i) {
|
|
5640
5581
|
var m;
|
|
5641
5582
|
const u = V("inlined-script"), p = V("inlined-styles"), h = V("content-component");
|
|
5642
|
-
return E(),
|
|
5643
|
-
!e.__isNestedRender && e.TARGET !== "reactNative" ? (E(),
|
|
5583
|
+
return E(), x(ue, null, [
|
|
5584
|
+
!e.__isNestedRender && e.TARGET !== "reactNative" ? (E(), J(u, {
|
|
5644
5585
|
key: 0,
|
|
5645
5586
|
scriptStr: e.getScriptString()
|
|
5646
|
-
}, null, 8, ["scriptStr"])) :
|
|
5647
|
-
e.shouldRenderVariants ? (E(),
|
|
5587
|
+
}, null, 8, ["scriptStr"])) : z("v-if", !0),
|
|
5588
|
+
e.shouldRenderVariants ? (E(), x(ue, { key: 1 }, [
|
|
5648
5589
|
me(p, {
|
|
5649
5590
|
id: `variants-styles-${(m = e.content) == null ? void 0 : m.id}`,
|
|
5650
5591
|
styles: e.hideVariantsStyleString
|
|
5651
5592
|
}, null, 8, ["id", "styles"]),
|
|
5652
5593
|
me(u, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
|
|
5653
|
-
(E(!0),
|
|
5654
|
-
key:
|
|
5655
|
-
content:
|
|
5594
|
+
(E(!0), x(ue, null, ot(e.getVariants(e.content), (b, A) => (E(), J(h, {
|
|
5595
|
+
key: b.testVariationId,
|
|
5596
|
+
content: b,
|
|
5656
5597
|
showContent: !1,
|
|
5657
5598
|
model: e.model,
|
|
5658
5599
|
data: e.data,
|
|
@@ -5668,9 +5609,10 @@ function Iu(e, t, n, r, o, i) {
|
|
|
5668
5609
|
blocksWrapper: e.blocksWrapper,
|
|
5669
5610
|
blocksWrapperProps: e.blocksWrapperProps,
|
|
5670
5611
|
contentWrapper: e.contentWrapper,
|
|
5671
|
-
contentWrapperProps: e.contentWrapperProps
|
|
5672
|
-
|
|
5673
|
-
|
|
5612
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
5613
|
+
trustedHosts: e.trustedHosts
|
|
5614
|
+
}, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
5615
|
+
], 64)) : z("v-if", !0),
|
|
5674
5616
|
me(h, ee({
|
|
5675
5617
|
content: e.defaultContent,
|
|
5676
5618
|
showContent: !0,
|
|
@@ -5688,18 +5630,19 @@ function Iu(e, t, n, r, o, i) {
|
|
|
5688
5630
|
blocksWrapper: e.blocksWrapper,
|
|
5689
5631
|
blocksWrapperProps: e.blocksWrapperProps,
|
|
5690
5632
|
contentWrapper: e.contentWrapper,
|
|
5691
|
-
contentWrapperProps: e.contentWrapperProps
|
|
5633
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
5634
|
+
trustedHosts: e.trustedHosts
|
|
5692
5635
|
}, {
|
|
5693
5636
|
key: e.shouldRenderVariants.toString()
|
|
5694
|
-
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps"])
|
|
5637
|
+
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5695
5638
|
], 64);
|
|
5696
5639
|
}
|
|
5697
|
-
const
|
|
5640
|
+
const Qr = /* @__PURE__ */ N(Du, [["render", xu], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content-variants/content-variants.vue"]]), Iu = async ({
|
|
5698
5641
|
builderContextValue: e,
|
|
5699
5642
|
symbol: t
|
|
5700
5643
|
}) => {
|
|
5701
5644
|
if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
|
|
5702
|
-
return
|
|
5645
|
+
return xt({
|
|
5703
5646
|
model: t.model,
|
|
5704
5647
|
apiKey: e.apiKey,
|
|
5705
5648
|
apiVersion: e.apiVersion,
|
|
@@ -5711,9 +5654,9 @@ const qr = /* @__PURE__ */ P(Du, [["render", Iu], ["__file", "/home/runner/work/
|
|
|
5711
5654
|
}).catch((n) => {
|
|
5712
5655
|
te.error("Could not fetch symbol content: ", n);
|
|
5713
5656
|
});
|
|
5714
|
-
}, Tu =
|
|
5657
|
+
}, Tu = P({
|
|
5715
5658
|
name: "builder-symbol",
|
|
5716
|
-
components: { ContentVariants:
|
|
5659
|
+
components: { ContentVariants: Qr },
|
|
5717
5660
|
props: [
|
|
5718
5661
|
"js",
|
|
5719
5662
|
"attributes",
|
|
@@ -5725,7 +5668,7 @@ const qr = /* @__PURE__ */ P(Du, [["render", Iu], ["__file", "/home/runner/work/
|
|
|
5725
5668
|
],
|
|
5726
5669
|
data() {
|
|
5727
5670
|
var e;
|
|
5728
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
5671
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: St };
|
|
5729
5672
|
},
|
|
5730
5673
|
mounted() {
|
|
5731
5674
|
this.setContent();
|
|
@@ -5742,7 +5685,7 @@ const qr = /* @__PURE__ */ P(Du, [["render", Iu], ["__file", "/home/runner/work/
|
|
|
5742
5685
|
className() {
|
|
5743
5686
|
var e, t;
|
|
5744
5687
|
return [
|
|
5745
|
-
|
|
5688
|
+
this.attributes.class,
|
|
5746
5689
|
"builder-symbol",
|
|
5747
5690
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
5748
5691
|
((t = this.symbol) == null ? void 0 : t.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -5756,30 +5699,19 @@ const qr = /* @__PURE__ */ P(Du, [["render", Iu], ["__file", "/home/runner/work/
|
|
|
5756
5699
|
},
|
|
5757
5700
|
methods: {
|
|
5758
5701
|
setContent() {
|
|
5759
|
-
this.contentToUse ||
|
|
5702
|
+
this.contentToUse || Iu({
|
|
5760
5703
|
symbol: this.symbol,
|
|
5761
5704
|
builderContextValue: this.builderContext
|
|
5762
5705
|
}).then((e) => {
|
|
5763
5706
|
e && (this.contentToUse = e);
|
|
5764
5707
|
});
|
|
5765
|
-
},
|
|
5766
|
-
_classStringToObject(e) {
|
|
5767
|
-
const t = {};
|
|
5768
|
-
if (typeof e != "string")
|
|
5769
|
-
return t;
|
|
5770
|
-
const n = e.trim().split(/\s+/);
|
|
5771
|
-
for (const r of n)
|
|
5772
|
-
t[r] = !0;
|
|
5773
|
-
return t;
|
|
5774
5708
|
}
|
|
5775
5709
|
}
|
|
5776
5710
|
});
|
|
5777
5711
|
function Ru(e, t, n, r, o, i) {
|
|
5778
|
-
var p, h, m,
|
|
5712
|
+
var p, h, m, b, A;
|
|
5779
5713
|
const u = V("content-variants");
|
|
5780
|
-
return E(),
|
|
5781
|
-
class: e._classStringToObject(e.className)
|
|
5782
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, rt(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5714
|
+
return E(), x("div", ee({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, rt(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5783
5715
|
me(u, {
|
|
5784
5716
|
__isNestedRender: !0,
|
|
5785
5717
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5792,16 +5724,16 @@ function Ru(e, t, n, r, o, i) {
|
|
|
5792
5724
|
data: {
|
|
5793
5725
|
...(h = e.symbol) == null ? void 0 : h.data,
|
|
5794
5726
|
...e.builderContext.localState,
|
|
5795
|
-
...(
|
|
5727
|
+
...(b = (m = e.contentToUse) == null ? void 0 : m.data) == null ? void 0 : b.state
|
|
5796
5728
|
},
|
|
5797
|
-
model: (
|
|
5729
|
+
model: (A = e.symbol) == null ? void 0 : A.model,
|
|
5798
5730
|
content: e.contentToUse
|
|
5799
5731
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
|
|
5800
5732
|
], 16);
|
|
5801
5733
|
}
|
|
5802
|
-
const ju = /* @__PURE__ */
|
|
5734
|
+
const ju = /* @__PURE__ */ N(Tu, [["render", Ru], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/symbol/symbol.vue"]]), Mu = Dt, Wu = Qr, yr = {};
|
|
5803
5735
|
function Vu(e) {
|
|
5804
|
-
if (
|
|
5736
|
+
if (X()) {
|
|
5805
5737
|
Object.assign(yr, e);
|
|
5806
5738
|
const t = {
|
|
5807
5739
|
type: "builder.settingsChange",
|
|
@@ -5827,45 +5759,45 @@ const Lu = async (e) => {
|
|
|
5827
5759
|
return {
|
|
5828
5760
|
apiKey: n.apiKey,
|
|
5829
5761
|
model: n.model,
|
|
5830
|
-
content: await
|
|
5762
|
+
content: await xt(n)
|
|
5831
5763
|
};
|
|
5832
5764
|
};
|
|
5833
5765
|
export {
|
|
5834
5766
|
Lu as A,
|
|
5835
5767
|
Tr as B,
|
|
5836
|
-
|
|
5768
|
+
Qr as C,
|
|
5837
5769
|
$u as D,
|
|
5838
|
-
|
|
5770
|
+
yi as F,
|
|
5839
5771
|
bn as I,
|
|
5840
5772
|
Mu as R,
|
|
5841
|
-
|
|
5773
|
+
Di as S,
|
|
5842
5774
|
Ae as T,
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5775
|
+
ws as V,
|
|
5776
|
+
N as _,
|
|
5777
|
+
pi as a,
|
|
5846
5778
|
Pu as b,
|
|
5847
5779
|
Pe as c,
|
|
5848
5780
|
rn as d,
|
|
5849
|
-
|
|
5781
|
+
Ft as e,
|
|
5850
5782
|
Dt as f,
|
|
5851
|
-
|
|
5783
|
+
Ir as g,
|
|
5852
5784
|
Wu as h,
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5785
|
+
Co as i,
|
|
5786
|
+
fi as j,
|
|
5787
|
+
Si as k,
|
|
5856
5788
|
ju as l,
|
|
5857
|
-
|
|
5789
|
+
ys as m,
|
|
5858
5790
|
ge as n,
|
|
5859
5791
|
Xs as o,
|
|
5860
|
-
|
|
5861
|
-
|
|
5792
|
+
Bs as p,
|
|
5793
|
+
Gs as q,
|
|
5862
5794
|
cu as r,
|
|
5863
5795
|
Vu as s,
|
|
5864
5796
|
Gr as t,
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5797
|
+
xt as u,
|
|
5798
|
+
Uu as v,
|
|
5799
|
+
Fu as w,
|
|
5868
5800
|
Nu as x,
|
|
5869
5801
|
Hr as y,
|
|
5870
|
-
|
|
5802
|
+
_u as z
|
|
5871
5803
|
};
|