UNPKG

@builder.io/sdk-vue

Version:
1,278 lines 243 kB
import { defineComponent as j, openBlock as g, createElementBlock as T, Fragment as _, createBlock as D, resolveDynamicComponent as ut, mergeProps as G, toHandlers as pe, withCtx as Te, renderSlot as de, resolveComponent as F, createTextVNode as Wo, toDisplayString as Nt, defineAsyncComponent as rt, createVNode as se, renderList as he, createCommentVNode as L, h as Br, createElementVNode as ft, normalizeStyle as $e, normalizeClass as ht, markRaw as Lo } from "vue"; const Mo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ho = (e) => typeof e == "string" && Mo.has(e.toLowerCase()); function me(e = {}, t, n) { const r = {}; for (const o in e) { if (!e[o] || n && !o.startsWith(t)) continue; const i = n ? o.replace(t, "") : o; r[i] = e[o]; } return r; } const Ko = j({ name: "dynamic-renderer", props: ["TagName", "attributes", "actionAttributes"], data() { return { isEmptyElement: Ho }; } }), N = (e, t) => { const n = e.__vccOpts || e; for (const [r, o] of t) n[r] = o; return n; }; function zo(e, t, n, r, o, i) { return e.isEmptyElement(e.TagName) ? (g(), D(ut(e.TagName), G({ key: 1 }, e.attributes, pe(e.actionAttributes)), null, 16)) : (g(), T(_, { key: 0 }, [ typeof e.TagName == "string" ? (g(), D(ut(e.TagName), G({ key: 0 }, e.attributes, pe(e.actionAttributes)), { default: Te(() => [ de(e.$slots, "default") ]), _: 3 }, 16)) : (g(), D(ut(e.TagName), G({ key: 1 }, e.attributes, pe(e.actionAttributes)), { default: Te(() => [ de(e.$slots, "default") ]), _: 3 }, 16)) ], 64)); } const kn = /* @__PURE__ */ N(Ko, [["render", zo]]), Iu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: kn }, Symbol.toStringTag, { value: "Module" })), re = "vue", Ot = () => { switch (re) { case "react": case "reactNative": case "rsc": return "className"; case "svelte": case "vue": case "solid": case "qwik": case "angular": return "class"; } }, Go = j({ name: "builder-button", components: { DynamicRenderer: kn }, props: [ "attributes", "link", "openLinkInNewTab", "builderLinkComponent", "text" ], data() { return { filterAttrs: me }; }, methods: { attrs() { return { ...me(this.attributes, "v-on:", !1), [Ot()]: `${this.link ? "" : "builder-button"} ${this.attributes[Ot()] || ""}`, ...this.link ? { href: this.link, target: this.openLinkInNewTab ? "_blank" : void 0, role: "link" } : { role: "button" } }; } } }); function qo(e, t, n, r, o, i) { const s = F("DynamicRenderer"); return g(), D(s, { attributes: e.attrs(), TagName: e.link ? e.builderLinkComponent || "a" : "button", actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0) }, { default: Te(() => [ Wo(Nt(e.text), 1) ]), _: 1 }, 8, ["attributes", "TagName", "actionAttributes"]); } const _o = /* @__PURE__ */ N(Go, [["render", qo]]), Jo = Symbol(), fn = { Builder: { content: null, context: {}, localState: void 0, rootSetState() { }, rootState: {}, apiKey: null, apiVersion: void 0, componentInfos: {}, inheritedStyles: {}, BlocksWrapper: "div", BlocksWrapperProps: {}, nonce: "", model: "" }, key: Jo }, Xo = Symbol(), Nr = { Components: { registeredComponents: {} }, key: Xo }; function Yo(e) { var t; return { ...(t = e.component) == null ? void 0 : t.options, ...e.options }; } function Zo(e, ...t) { const n = Object.assign({}, e); for (const r of t) delete n[r]; return n; } const $t = "[Builder.io]: ", ae = { log: (...e) => console.log($t, ...e), error: (...e) => console.error($t, ...e), warn: (...e) => console.warn($t, ...e), debug: (...e) => console.debug($t, ...e) }, Vr = (e, t, n) => { const r = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, i) => o != null ? o[i] : o, e); return r === void 0 || r === e ? n : r; }; function Y() { return typeof window < "u" && typeof document < "u"; } const Qo = (e) => { const t = {}; return e.forEach((n, r) => { t[r] = n; }), t; }, Dr = (e) => e instanceof URLSearchParams ? Qo(e) : e, Fr = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString(); function ei() { return Y() && window.self !== window.top; } function ie(e) { return ei() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser. Fr(e || window.location.search).indexOf("builder.frameEditing=") !== -1; } const ti = () => { if (Y()) { const e = new URL(location.href); return e.pathname === "" && (e.pathname = "/"), e; } else return console.warn("Cannot get location for tracking in non-browser environment"), null; }, ni = () => typeof navigator == "object" && navigator.userAgent || "", Ur = () => { const e = ni(), t = { Android() { return e.match(/Android/i); }, BlackBerry() { return e.match(/BlackBerry/i); }, iOS() { return e.match(/iPhone|iPod/i); }, Opera() { return e.match(/Opera Mini/i); }, Windows() { return e.match(/IEMobile/i) || e.match(/WPDesktop/i); }, any() { return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || re === "reactNative"; } }, n = e.match(/Tablet|iPad/i), r = ti(); return { urlPath: r == null ? void 0 : r.pathname, host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname), device: n ? "tablet" : t.any() ? "mobile" : "desktop" }; }, Wr = ({ builder: e, context: t, event: n, state: r }) => Object.entries({ state: r, Builder: e, // legacy builder: e, context: t, event: n }), ri = () => ({ isEditing: ie(), isBrowser: Y(), isServer: !Y(), getUserAttributes: () => Ur() }), oi = (e, { isExpression: t = !0 }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e; function Sn({ rootState: e, localState: t, rootSetState: n }) { return new Proxy(e, { get: (r, o) => { if (t && o in t) return t[o]; const i = r[o]; return typeof i == "object" && i !== null ? Sn({ rootState: i, localState: void 0, rootSetState: n ? (s) => { r[o] = s, n(r); } : void 0 }) : i; }, set: (r, o, i) => { if (t && o in t) throw new Error("Writing to local state is not allowed as it is read-only."); return r[o] = i, n == null || n(r), !0; } }); } const ii = ({ code: e, builder: t, context: n, event: r, localState: o, rootSetState: i, rootState: s }) => { const u = Wr({ builder: t, context: n, event: r, state: Sn({ rootState: s, localState: o, rootSetState: i }) }); return new Function(...u.map(([p]) => p), e)(...u.map(([, p]) => p)); }; var B, si = function(e) { function t(a) { return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Fo.test(String.fromCharCode(a)); } function n(a) { return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && vr.test(String.fromCharCode(a)); } function r(a, l) { for (var c = k, f = 1, R = 0; ; ) { At.lastIndex = R; var q = At.exec(c); if (q && q.index < a) ++f, R = q.index + q[0].length; else break; } throw c = { line: f, ab: a - R }, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = a, l.X = c, l.o = d, l; } function o(a) { a = a.split(" "); for (var l = /* @__PURE__ */ Object.create(null), c = 0; c < a.length; c++) l[a[c]] = !0; return function(f) { return l[f] || !1; }; } function i() { this.line = Ne, this.ab = d - be; } function s(a, l) { Ue = d, A.C && (Gt = new i()), x = a, p(), le = l, Ze = a.m; } function u() { for (var a = d, l = A.va && A.C && new i(), c = k.charCodeAt(d += 2); d < Fe && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; ) ++d, c = k.charCodeAt(d); A.va && A.va(!1, k.slice(a + 2, d), a, d, l, A.C && new i()); } function p() { for (; d < Fe; ) { var a = k.charCodeAt(d); if (a === 32) ++d; else if (a === 13) ++d, a = k.charCodeAt(d), a === 10 && ++d, A.C && (++Ne, be = d); else if (a === 10 || a === 8232 || a === 8233) ++d, A.C && (++Ne, be = d); else if (8 < a && 14 > a) ++d; else if (a === 47) if (a = k.charCodeAt(d + 1), a === 42) { a = void 0; var l = A.va && A.C && new i(), c = d, f = k.indexOf("*/", d += 2); if (f === -1 && r(d - 2, "Unterminated comment"), d = f + 2, A.C) for (At.lastIndex = c; (a = At.exec(k)) && a.index < d; ) ++Ne, be = a.index + a[0].length; A.va && A.va(!0, k.slice(c + 2, f), c, d, l, A.C && new i()); } else if (a === 47) u(); else break; else if (a === 160) ++d; else if (5760 <= a && Do.test(String.fromCharCode(a))) ++d; else break; } } function m(a) { switch (a) { case 46: a = k.charCodeAt(d + 1), 48 <= a && 57 >= a ? V(!0) : (++d, s(cr)); return; case 40: return ++d, s(ke); case 41: return ++d, s(fe); case 59: return ++d, s(Se); case 44: return ++d, s(Ae); case 91: return ++d, s(nn); case 93: return ++d, s(rn); case 123: return ++d, s(tt); case 125: return ++d, s(Le); case 58: return ++d, s(nt); case 63: return ++d, s(pr); case 48: if (a = k.charCodeAt(d + 1), a === 120 || a === 88) { d += 2, a = I(16), a === null && r(z + 2, "Expected hexadecimal number"), n(k.charCodeAt(d)) && r(d, "Identifier directly after number"), s(et, a); return; } case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: return V(!1); case 34: case 39: d++; for (var l = ""; ; ) { d >= Fe && r(z, "Unterminated string constant"); var c = k.charCodeAt(d); if (c === a) { ++d, s(Tt, l); break; } if (c === 92) { c = k.charCodeAt(++d); var f = /^[0-7]+/.exec(k.slice(d, d + 3)); for (f && (f = f[0]); f && 255 < parseInt(f, 8); ) f = f.slice(0, -1); if (f === "0" && (f = null), ++d, f) oe && r(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(f, 8)), d += f.length - 1; else switch (c) { case 110: l += ` `; break; case 114: l += "\r"; break; case 120: l += String.fromCharCode(O(2)); break; case 117: l += String.fromCharCode(O(4)); break; case 85: l += String.fromCharCode(O(8)); break; case 116: l += " "; break; case 98: l += "\b"; break; case 118: l += "\v"; break; case 102: l += "\f"; break; case 48: l += "\0"; break; case 13: k.charCodeAt(d) === 10 && ++d; case 10: A.C && (be = d, ++Ne); break; default: l += String.fromCharCode(c); } } else c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(z, "Unterminated string constant"), l += String.fromCharCode(c), ++d; } return; case 47: a = k.charCodeAt(d + 1), Ze ? (++d, y()) : a === 61 ? v(Ve, 2) : v(dr, 1); return; case 37: case 42: k.charCodeAt(d + 1) === 61 ? v(Ve, 2) : v(Bo, 1); return; case 124: case 38: l = k.charCodeAt(d + 1), l === a ? v(a === 124 ? mr : gr, 2) : l === 61 ? v(Ve, 2) : v(a === 124 ? xo : Ao, 1); return; case 94: k.charCodeAt(d + 1) === 61 ? v(Ve, 2) : v(Ro, 1); return; case 43: case 45: l = k.charCodeAt(d + 1), l === a ? l === 45 && k.charCodeAt(d + 2) === 62 && Rt.test(k.slice(Re, d)) ? (d += 3, u(), p(), b()) : v(Io, 2) : l === 61 ? v(Ve, 2) : v(jo, 1); return; case 60: case 62: l = k.charCodeAt(d + 1), c = 1, l === a ? (c = a === 62 && k.charCodeAt(d + 2) === 62 ? 3 : 2, k.charCodeAt(d + c) === 61 ? v(Ve, c + 1) : v(Oo, c)) : l === 33 && a === 60 && k.charCodeAt(d + 2) === 45 && k.charCodeAt(d + 3) === 45 ? (d += 4, u(), p(), b()) : (l === 61 && (c = k.charCodeAt(d + 2) === 61 ? 3 : 2), v(Po, c)); return; case 61: case 33: k.charCodeAt(d + 1) === 61 ? v($o, k.charCodeAt(d + 2) === 61 ? 3 : 2) : v(a === 61 ? fr : hr, 1); return; case 126: return v(hr, 1); } return !1; } function b(a) { if (a ? d = z + 1 : z = d, A.C && (zt = new i()), a) return y(); if (d >= Fe) return s(Jt); if (a = k.charCodeAt(d), n(a) || a === 92) return xe(); if (m(a) === !1) { if (a = String.fromCharCode(a), a === "\\" || vr.test(a)) return xe(); r(d, "Unexpected character '" + a + "'"); } } function v(a, l) { var c = k.slice(d, d + l); d += l, s(a, c); } function y() { for (var a, l, c = d; ; ) { d >= Fe && r(c, "Unterminated regexp"); var f = k.charAt(d); if (Rt.test(f) && r(c, "Unterminated regexp"), a) a = !1; else { if (f === "[") l = !0; else if (f === "]" && l) l = !1; else if (f === "/" && !l) break; a = f === "\\"; } ++d; } a = k.slice(c, d), ++d, (l = Z()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag"); try { var R = new RegExp(a, l); } catch (q) { throw q instanceof SyntaxError && r(c, q.message), q; } s(zn, R); } function I(a, l) { for (var c = d, f = 0, R = l === void 0 ? 1 / 0 : l, q = 0; q < R; ++q) { var ee = k.charCodeAt(d); if (ee = 97 <= ee ? ee - 97 + 10 : 65 <= ee ? ee - 65 + 10 : 48 <= ee && 57 >= ee ? ee - 48 : 1 / 0, ee >= a) break; ++d, f = f * a + ee; } return d === c || l !== void 0 && d - c !== l ? null : f; } function V(a) { var l = d, c = !1, f = k.charCodeAt(d) === 48; a || I(10) !== null || r(l, "Invalid number"), k.charCodeAt(d) === 46 && (++d, I(10), c = !0), a = k.charCodeAt(d), (a === 69 || a === 101) && (a = k.charCodeAt(++d), a !== 43 && a !== 45 || ++d, I(10) === null && r(l, "Invalid number"), c = !0), n(k.charCodeAt(d)) && r(d, "Identifier directly after number"), a = k.slice(l, d); var R; c ? R = parseFloat(a) : f && a.length !== 1 ? /[89]/.test(a) || oe ? r(l, "Invalid number") : R = parseInt(a, 8) : R = parseInt(a, 10), s(et, R); } function O(a) { return a = I(16, a), a === null && r(z, "Bad character escape sequence"), a; } function Z() { Me = !1; for (var a, l = !0, c = d; ; ) { var f = k.charCodeAt(d); if (t(f)) Me && (a += k.charAt(d)), ++d; else if (f === 92) { Me || (a = k.slice(c, d)), Me = !0, k.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, f = O(4); var R = String.fromCharCode(f); R || r(d - 1, "Invalid Unicode escape"), (l ? n(f) : t(f)) || r(d - 4, "Invalid Unicode escape"), a += R; } else break; l = !1; } return Me ? a : k.slice(c, d); } function xe() { var a = Z(), l = We; !Me && Vo(a) && (l = To[a]), s(l, a); } function $() { qt = z, Re = Ue, _t = Gt, b(); } function U(a) { if (oe = a, d = z, A.C) for (; d < be; ) be = k.lastIndexOf(` `, be - 2) + 1, --Ne; p(), b(); } function De() { this.type = null, this.start = z, this.end = null; } function je() { this.start = zt, this.end = null, Kt && (this.source = Kt); } function K() { var a = new De(); return A.C && (a.X = new je()), A.vb && (a.sourceFile = A.vb), A.Xa && (a.j = [z, 0]), a; } function ue(a) { var l = new De(); return l.start = a.start, A.C && (l.X = new je(), l.X.start = a.X.start), A.Xa && (l.j = [a.j[0], 0]), l; } function E(a, l) { return a.type = l, a.end = Re, A.C && (a.X.end = _t), A.Xa && (a.j[1] = Re), a; } function ge(a) { return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict"; } function W(a) { return x === a ? ($(), !0) : !1; } function Ct() { return !A.fc && (x === Jt || x === Le || Rt.test(k.slice(Re, z))); } function Be() { W(Se) || Ct() || ye(); } function M(a) { x === a ? $() : ye(); } function ye() { r(z, "Unexpected token"); } function wt(a) { a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), oe && a.type === "Identifier" && xt(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode"); } function ce() { (x === dr || x === Ve && le === "/=") && b(!0); var a = x, l = K(); switch (a) { case Xt: case qn: $(); var c = a === Xt; W(Se) || Ct() ? l.label = null : x !== We ? ye() : (l.label = ve(), Be()); for (var f = 0; f < H.length; ++f) { var R = H[f]; if ((l.label === null || R.name === l.label.name) && (R.kind !== null && (c || R.kind === "loop") || l.label && c)) break; } return f === H.length && r(l.start, "Unsyntactic " + a.l), E(l, c ? "BreakStatement" : "ContinueStatement"); case _n: return $(), Be(), E(l, "DebuggerStatement"); case Xn: return $(), H.push(on), l.body = ce(), H.pop(), M(tn), l.test = Je(), Be(), E(l, "DoWhileStatement"); case Qn: return $(), H.push(on), M(ke), x === Se ? Ft(l, null) : x === en ? (a = K(), $(), Hn(a, !0), E(a, "VariableDeclaration"), a.fa.length === 1 && W(It) ? Mn(l, a) : Ft(l, a)) : (a = Q(!1, !0), W(It) ? (wt(a), Mn(l, a)) : Ft(l, a)); case Zt: return $(), Mt(l, !0); case er: return $(), l.test = Je(), l.da = ce(), l.alternate = W(Yn) ? ce() : null, E(l, "IfStatement"); case tr: return Qe || A.Ib || r(z, "'return' outside of function"), $(), W(Se) || Ct() ? l.K = null : (l.K = Q(), Be()), E(l, "ReturnStatement"); case Qt: for ($(), l.Qb = Je(), l.tb = [], M(tt), H.push(Uo); x !== Le; ) x === Yt || x === Jn ? (a = x === Yt, f && E(f, "SwitchCase"), l.tb.push(f = K()), f.da = [], $(), a ? f.test = Q() : (c && r(qt, "Multiple default clauses"), c = !0, f.test = null), M(nt)) : (f || ye(), f.da.push(ce())); return f && E(f, "SwitchCase"), $(), H.pop(), E(l, "SwitchStatement"); case nr: return $(), Rt.test(k.slice(Re, z)) && r(Re, "Illegal newline after throw"), l.K = Q(), Be(), E(l, "ThrowStatement"); case rr: return $(), l.block = Xe(), l.Ea = null, x === Gn && (a = K(), $(), M(ke), a.Ua = ve(), oe && xt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), M(fe), a.body = Xe(), l.Ea = E(a, "CatchClause")), l.fb = W(Zn) ? Xe() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement"); case en: return $(), Hn(l), Be(), E(l, "VariableDeclaration"); case tn: return $(), l.test = Je(), H.push(on), l.body = ce(), H.pop(), E(l, "WhileStatement"); case or: return oe && r(z, "'with' in strict mode"), $(), l.object = Je(), l.body = ce(), E(l, "WithStatement"); case tt: return Xe(); case Se: return $(), E(l, "EmptyStatement"); default: if (c = le, R = Q(), a === We && R.type === "Identifier" && W(nt)) { for (f = 0; f < H.length; ++f) H[f].name === c && r(R.start, "Label '" + c + "' is already declared"); return H.push({ name: c, kind: x.W ? "loop" : x === Qt ? "switch" : null }), l.body = ce(), H.pop(), l.label = R, E(l, "LabeledStatement"); } return l.la = R, Be(), E(l, "ExpressionStatement"); } } function Je() { M(ke); var a = Q(); return M(fe), a; } function Xe(a) { var l = K(), c = !0, f = !1; for (l.body = [], M(tt); !W(Le); ) { var R = ce(); if (l.body.push(R), c && a && ge(R)) { var q = f; U(f = !0); } c = !1; } return f && !q && U(!1), E(l, "BlockStatement"); } function Ft(a, l) { return a.ua = l, M(Se), a.test = x === Se ? null : Q(), M(Se), a.update = x === fe ? null : Q(), M(fe), a.body = ce(), H.pop(), E(a, "ForStatement"); } function Mn(a, l) { return a.left = l, a.right = Q(), M(fe), a.body = ce(), H.pop(), E(a, "ForInStatement"); } function Hn(a, l) { for (a.fa = [], a.kind = "var"; ; ) { var c = K(); if (c.id = ve(), oe && xt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = W(fr) ? Q(!0, l) : null, a.fa.push(E(c, "VariableDeclarator")), !W(Ae)) break; } } function Q(a, l) { var c = Ut(l); if (!a && x === Ae) { for (a = ue(c), a.xb = [c]; W(Ae); ) a.xb.push(Ut(l)); return E(a, "SequenceExpression"); } return c; } function Ut(a) { var l = Wt(Lt(), -1, a); if (W(pr)) { var c = ue(l); c.test = l, c.da = Q(!0), M(nt), c.alternate = Q(!0, a), l = E(c, "ConditionalExpression"); } return x.Cb ? (c = ue(l), c.operator = le, c.left = l, $(), c.right = Ut(a), wt(l), E(c, "AssignmentExpression")) : l; } function Wt(a, l, c) { var f = x.L; if (f !== null && (!c || x !== It) && f > l) { var R = ue(a); return R.left = a, R.operator = le, a = x, $(), R.right = Wt(Lt(), f, c), f = E(R, a === mr || a === gr ? "LogicalExpression" : "BinaryExpression"), Wt(f, l, c); } return a; } function Lt() { if (x.prefix) { var a = K(), l = x.$b; return a.operator = le, Ze = a.prefix = !0, $(), a.K = Lt(), l ? wt(a.K) : oe && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), E(a, l ? "UpdateExpression" : "UnaryExpression"); } for (l = Ye(Et()); x.cc && !Ct(); ) a = ue(l), a.operator = le, a.prefix = !1, a.K = l, wt(l), $(), l = E(a, "UpdateExpression"); return l; } function Ye(a, l) { if (W(cr)) { var c = ue(a); return c.object = a, c.Wa = ve(!0), c.bb = !1, Ye(E(c, "MemberExpression"), l); } return W(nn) ? (c = ue(a), c.object = a, c.Wa = Q(), c.bb = !0, M(rn), Ye(E(c, "MemberExpression"), l)) : !l && W(ke) ? (c = ue(a), c.callee = a, c.arguments = Ht(fe, !1), Ye(E(c, "CallExpression"), l)) : a; } function Et() { switch (x) { case sr: var a = K(); return $(), E(a, "ThisExpression"); case We: return ve(); case et: case Tt: case zn: return a = K(), a.value = le, a.raw = k.slice(z, Ue), $(), E(a, "Literal"); case ar: case lr: case ur: return a = K(), a.value = x.$a, a.raw = x.l, $(), E(a, "Literal"); case ke: a = zt; var l = z; $(); var c = Q(); return c.start = l, c.end = Ue, A.C && (c.X.start = a, c.X.end = Gt), A.Xa && (c.j = [l, Ue]), M(fe), c; case nn: return a = K(), $(), a.elements = Ht(rn, !0, !0), E(a, "ArrayExpression"); case tt: for (a = K(), l = !0, c = !1, a.h = [], $(); !W(Le); ) { if (l) l = !1; else if (M(Ae), A.sb && W(Le)) break; var f = { key: x === et || x === Tt ? Et() : ve(!0) }, R = !1; if (W(nt)) { f.value = Q(!0); var q = f.kind = "init"; } else f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? ye() : (R = c = !0, q = f.kind = f.key.name, f.key = x === et || x === Tt ? Et() : ve(!0), x !== ke && ye(), f.value = Mt(K(), !1)); if (f.key.type === "Identifier" && (oe || c)) for (var ee = 0; ee < a.h.length; ++ee) { var He = a.h[ee]; if (He.key.name === f.key.name) { var sn = q === He.kind || R && He.kind === "init" || q === "init" && (He.kind === "get" || He.kind === "set"); sn && !oe && q === "init" && He.kind === "init" && (sn = !1), sn && r(f.key.start, "Redefinition of property"); } } a.h.push(f); } return E(a, "ObjectExpression"); case Zt: return a = K(), $(), Mt(a, !1); case ir: return a = K(), $(), a.callee = Ye(Et(), !0), a.arguments = W(ke) ? Ht(fe, !1) : Eo, E(a, "NewExpression"); } ye(); } function Mt(a, l) { x === We ? a.id = ve() : l ? ye() : a.id = null, a.oa = []; var c = !0; for (M(ke); !W(fe); ) c ? c = !1 : M(Ae), a.oa.push(ve()); c = Qe; var f = H; if (Qe = !0, H = [], a.body = Xe(!0), Qe = c, H = f, oe || a.body.body.length && ge(a.body.body[0])) { for (c = a.id ? -1 : 0; c < a.oa.length; ++c) if (f = 0 > c ? a.id : a.oa[c], (yr(f.name) || xt(f.name)) && r(f.start, "Defining '" + f.name + "' in strict mode"), 0 <= c) for (var R = 0; R < c; ++R) f.name === a.oa[R].name && r(f.start, "Argument name clash in strict mode"); } return E(a, l ? "FunctionDeclaration" : "FunctionExpression"); } function Ht(a, l, c) { for (var f = [], R = !0; !W(a); ) { if (R) R = !1; else if (M(Ae), l && A.sb && W(a)) break; f.push(c && x === Ae ? null : Q(!0)); } return f; } function ve(a) { var l = K(); return a && A.yb === "everywhere" && (a = !1), x === We ? (!a && (A.yb && No(le) || oe && yr(le)) && k.slice(z, Ue).indexOf("\\") === -1 && r(z, "The keyword '" + le + "' is reserved"), l.name = le) : a && x.l ? l.name = x.l : ye(), Ze = !1, $(), E(l, "Identifier"); } e.version = "0.5.0"; var A, k = "", Fe, Kt; e.parse = function(a, l) { k = String(a), Fe = k.length, A = l || {}; for (var c in Kn) Object.prototype.hasOwnProperty.call(A, c) || (A[c] = Kn[c]); for (Kt = A.sourceFile, Ne = 1, d = be = 0, Ze = !0, p(), c = A.dc, qt = Re = d, A.C && (_t = new i()), Qe = oe = !1, H = [], b(), a = c || K(), l = !0, c || (a.body = []); x !== Jt; ) c = ce(), a.body.push(c), l && ge(c) && U(!0), l = !1; return E(a, "Program"); }; var Kn = { fc: !1, sb: !0, yb: !1, Ib: !1, C: !1, va: null, Xa: !1, dc: null, sourceFile: null, vb: null }, d = 0, z = 0, Ue = 0, zt, Gt, x, le, Ze, Ne, be, qt = 0, Re = 0, _t, Qe, H, oe, Eo = [], et = { type: "num" }, zn = { type: "regexp" }, Tt = { type: "string" }, We = { type: "name" }, Jt = { type: "eof" }, Xt = { l: "break" }, Yt = { l: "case", m: !0 }, Gn = { l: "catch" }, qn = { l: "continue" }, _n = { l: "debugger" }, Jn = { l: "default" }, Xn = { l: "do", W: !0 }, Yn = { l: "else", m: !0 }, Zn = { l: "finally" }, Qn = { l: "for", W: !0 }, Zt = { l: "function" }, er = { l: "if" }, tr = { l: "return", m: !0 }, Qt = { l: "switch" }, nr = { l: "throw", m: !0 }, rr = { l: "try" }, en = { l: "var" }, tn = { l: "while", W: !0 }, or = { l: "with" }, ir = { l: "new", m: !0 }, sr = { l: "this" }, ar = { l: "null", $a: null }, lr = { l: "true", $a: !0 }, ur = { l: "false", $a: !1 }, It = { l: "in", L: 7, m: !0 }, To = { break: Xt, case: Yt, catch: Gn, continue: qn, debugger: _n, default: Jn, do: Xn, else: Yn, finally: Zn, for: Qn, function: Zt, if: er, return: tr, switch: Qt, throw: nr, try: rr, var: en, while: tn, with: or, null: ar, true: lr, false: ur, new: ir, in: It, instanceof: { l: "instanceof", L: 7, m: !0 }, this: sr, typeof: { l: "typeof", prefix: !0, m: !0 }, void: { l: "void", prefix: !0, m: !0 }, delete: { l: "delete", prefix: !0, m: !0 } }, nn = { type: "[", m: !0 }, rn = { type: "]" }, tt = { type: "{", m: !0 }, Le = { type: "}" }, ke = { type: "(", m: !0 }, fe = { type: ")" }, Ae = { type: ",", m: !0 }, Se = { type: ";", m: !0 }, nt = { type: ":", m: !0 }, cr = { type: "." }, pr = { type: "?", m: !0 }, dr = { L: 10, m: !0 }, fr = { Cb: !0, m: !0 }, Ve = { Cb: !0, m: !0 }, Io = { cc: !0, prefix: !0, $b: !0 }, hr = { prefix: !0, m: !0 }, mr = { L: 1, m: !0 }, gr = { L: 2, m: !0 }, xo = { L: 3, m: !0 }, Ro = { L: 4, m: !0 }, Ao = { L: 5, m: !0 }, $o = { L: 6, m: !0 }, Po = { L: 7, m: !0 }, Oo = { L: 8, m: !0 }, jo = { L: 9, prefix: !0, m: !0 }, Bo = { L: 10, m: !0 }, No = o("class enum extends super const export import"), yr = o("implements interface let package private protected public static yield"), xt = o("eval arguments"), Vo = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Do = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, vr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Fo = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), Rt = /[\n\r\u2028\u2029]/, At = /\r\n|[\n\r\u2028\u2029]/g, Me, on = { kind: "loop" }, Uo = { kind: "switch" }; }, hn = hn = typeof globalThis > "u" ? void 0 : globalThis; si(hn.j || (hn.j = {})); function h(e, t) { typeof e == "string" && (e = ze(e, "code")); var n = e.constructor; this.ya = function() { return new n({ options: {} }); }; var r = this.ya(), o; for (o in e) r[o] = o === "body" ? e[o].slice() : e[o]; this.ra = r, this.ca = [], this.qb = t, this.za = !1, this.ba = [], this.Ya = 0, this.rb = /* @__PURE__ */ Object.create(null), e = /^step([A-Z]\w*)$/; var i, s; for (s in this) typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this)); this.N = gn(this, this.ra, null), this.Na = this.N.object, this.ra = ze(this.ba.join(` `), "polyfills"), this.ba = void 0, Vt(this.ra), i = new C(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new C(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i; } var br = { C: !0, kc: 5 }, Cn = { configurable: !0, enumerable: !0, writable: !1 }, S = { configurable: !0, enumerable: !1, writable: !0 }, ne = { configurable: !0, enumerable: !1, writable: !1 }, ot = { configurable: !1, enumerable: !1, writable: !1 }, kr = { configurable: !1, enumerable: !0, writable: !0 }, Lr = { STEP_ERROR: !0 }, qe = { SCOPE_REFERENCE: !0 }, mt = { VALUE_IN_DESCRIPTOR: !0 }, Ke = { REGEXP_TIMEOUT: !0 }, Sr = [], we = null, ct = null, Pe = typeof globalThis > "u" ? void 0 : globalThis, ai = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"]; function wn(e) { var t = e >>> 0; return t === Number(e) ? t : NaN; } function pt(e) { var t = e >>> 0; return String(t) === String(e) && t !== 4294967295 ? t : NaN; } function Vt(e, t, n) { t ? e.start = t : delete e.start, n ? e.end = n : delete e.end; for (var r in e) if (r !== "loc" && e.hasOwnProperty(r)) { var o = e[r]; o && typeof o == "object" && Vt(o, t, n); } } h.prototype.REGEXP_MODE = 2; h.prototype.REGEXP_THREAD_TIMEOUT = 1e3; h.prototype.POLYFILL_TIMEOUT = 1e3; B = h.prototype; B.P = !1; B.Ka = !1; B.Kb = 0; B.ic = 0; function ze(e, t) { var n = {}, r; for (r in br) n[r] = br[r]; return n.sourceFile = t, Pe.j.parse(e, n); } B.Jb = function(e) { var t = this.o[0]; if (!t || t.node.type !== "Program") throw Error("Expecting original AST to start with a Program node"); if (typeof e == "string" && (e = ze(e, "appendCode" + this.Kb++)), !e || e.type !== "Program") throw Error("Expecting new AST to start with a Program node"); gt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1; }; B.lb = function() { var e = this.o, t; do { var n = e[e.length - 1]; if (this.za) break; if (!n || n.node.type === "Program" && n.done) { if (!this.ca.length) return !1; if (n = this.ca[0], !n || n.time > Date.now()) n = null; else { this.ca.shift(), 0 <= n.interval && Kr(this, n, n.interval); var r = new C(n.node, n.scope); n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r; } if (!n) break; } r = n.node; var o = ct; ct = this; try { var i = this.rb[r.type](e, n, r); } catch (s) { if (s !== Lr) throw this.value !== s && (this.value = void 0), s; } finally { ct = o; } if (i && e.push(i), this.P) throw this.value = void 0, Error("Getter not supported in this context"); if (this.Ka) throw this.value = void 0, Error("Setter not supported in this context"); t || r.end || (t = Date.now() + this.POLYFILL_TIMEOUT); } while (!r.end && t > Date.now()); return !0; }; B.Eb = function() { for (; !this.za && this.lb(); ) ; return this.za; }; function li(e, t) { e.g(t, "NaN", NaN, ot), e.g(t, "Infinity", 1 / 0, ot), e.g(t, "undefined", void 0, ot), e.g(t, "window", t, Cn), e.g(t, "this", t, ot), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), ui(e, t), ci(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), pi(e, t), di(e, t), fi(e, t), hi(e, t), mi(e, t), gi(e, t), yi(e, t), vi(e, t), bi(e, t); var n = e.i(function() { throw EvalError("Can't happen"); }, !1); n.eval = !0, e.g(t, "eval", n, S), e.g(t, "parseInt", e.i(parseInt, !1), S), e.g(t, "parseFloat", e.i(parseFloat, !1), S), e.g(t, "isNaN", e.i(isNaN, !1), S), e.g(t, "isFinite", e.i(isFinite, !1), S); for (var r = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], o = 0; o < r.length; o++) n = /* @__PURE__ */ function(i) { return function(s) { try { return i(s); } catch (u) { w(e, e.Gb, u.message); } }; }(r[o][0]), e.g(t, r[o][1], e.i(n, !1), S); n = function(i) { return Cr(e, !1, arguments); }, e.g(t, "setTimeout", e.i(n, !1), S), n = function(i) { return Cr(e, !0, arguments); }, e.g(t, "setInterval", e.i(n, !1), S), n = function(i) { wr(e, i); }, e.g(t, "clearTimeout", e.i(n, !1), S), n = function(i) { wr(e, i); }, e.g(t, "clearInterval", e.i(n, !1), S), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t); } B.Wb = 0; function ui(e, t) { var n = /^[A-Za-z_$][\w$]*$/, r = function(o) { var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim(); if (s) { s = s.split(/\s*,\s*/); for (var u = 0; u < s.length; u++) { var p = s[u]; n.test(p) || w(e, e.T, "Invalid function argument: " + p); } s = s.join(", "); } try { var m = ze("(function(" + s + ") {" + i + "})", "function" + e.Wb++); } catch (b) { w(e, e.T, "Invalid code: " + b.message); } return m.body.length !== 1 && w(e, e.T, "Invalid code in function body"), In(e, m.body[0].la, e.N, "anonymous"); }; e.O = e.i(r, !0), e.g(t, "Function", e.O, S), e.g(e.O, "prototype", e.Z, S), e.g(e.Z, "constructor", e.O, S), e.Z.Ta = function() { }, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ne), e.Z.H = "Function", r = function(o, i) { var s = e.o[e.o.length - 1]; s.U = this, s.B = o, s.F = [], i != null && (i instanceof P ? s.F = Mr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1; }, J(e, e.O, "apply", r), r = function(o) { var i = e.o[e.o.length - 1]; i.U = this, i.B = o, i.F = []; for (var s = 1; s < arguments.length; s++) i.F.push(arguments[s]); i.eb = !1; }, J(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() { return String(this); }, J(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), S), r = function() { return this.valueOf(); }, J(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), S); } function ci(e, t) { function n(o) { o != null || w(e, e.j, "Cannot convert '" + o + "' to object"); } var r = function(o) { if (o == null) return Ie(e) ? this : e.s(e.M); if (!(o instanceof P)) { var i = e.s(Ee(e, o)); return i.data = o, i; } return o; }; e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, S), e.g(e.M, "constructor", e.v, S), e.g(t, "Object", e.v, S), r = function(o) { return n(o), Ce(e, Object.getOwnPropertyNames(o instanceof P ? o.h : o)); }, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), S), r = function(o) { return n(o), o instanceof P && (o = o.h), Ce(e, Object.keys(o)); }, e.g(e.v, "keys", e.i(r, !1), S), r = function(o) { return o === null ? e.s(null) : (o instanceof P || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o)); }, e.g(e.v, "create", e.i(r, !1), S), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, s) { return i = String(i), o instanceof P || w(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof P || w(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || w(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, mt, s.h), o; }, e.g(e.v, "defineProperty", e.i(r, !1), S), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) { if (o instanceof P || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) { var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i]; return o = o.Y[i], i = e.s(e.M), u || o ? (e.g(i, "get", u), e.g(i, "set", o)) : (e.g(i, "value", s.value), e.g(i, "writable", s.writable)), e.g(i, "configurable", s.configurable), e.g(i, "enumerable", s.enumerable), i; } }, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), S), r = function(o) { return n(o), Ee(e, o); }, e.g(e.v, "getPrototypeOf", e.i(r, !1), S), r = function(o) { return !!o && !o.preventExtensions; }, e.g(e.v, "isExtensible", e.i(r, !1), S), r = function(o) { return o instanceof P && (o.preventExtensions = !0), o; }, e.g(e.v, "preventExtensions", e.i(r, !1), S), J(e, e.v, "toString", P.prototype.toString), J(e, e.v, "toLocaleString", P.prototype.toString), J(e, e.v, "valueOf", P.prototype.valueOf), r = function(o) { return n(this), this instanceof P ? String(o) in this.h : this.hasOwnProperty(o); }, J(e, e.v, "hasOwnProperty", r), r = function(o) { return n(this), this instanceof P ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o); }, J(e, e.v, "propertyIsEnumerable", r), r = function(o) { for (; ; ) { if (o = Ee(e, o), !o) return !1; if (o === this) return !0; } }, J(e, e.v, "isPrototypeOf", r); } function pi(e, t) { var n = function(r) { var o = Ie(e) ? this : Ge(e), i = arguments[0]; if (arguments.length === 1 && typeof i == "number") isNaN(wn(i)) && w(e, e.ob, "Invalid array length: " + i), o.h.length = i; else { for (i = 0; i < arguments.length; i++) o.h[i] = arguments[i]; o.h.length = i; } return o; }; e.qa = e.i(n, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, S), n = function(r) { return r && r.H === "Array"; }, e.g(e.qa, "isArray", e.i(n, !1), S), e.g(e.La, "length", 0, { configurable: !1, enumerable: !1, writable: !0 }), 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 {", "remov