@builder.io/sdk-react-nextjs 0.5.9 → 0.6.0
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/USE_CLIENT_BUNDLE-29f9ac5c.js +23 -0
- package/lib/browser/USE_CLIENT_BUNDLE-dfa97c43.mjs +664 -0
- package/lib/browser/USE_SERVER_BUNDLE-25e181fa.js +1 -0
- package/lib/browser/USE_SERVER_BUNDLE-fcd44ecb.mjs +11 -0
- package/lib/browser/bundle-5cab6113.js +76 -0
- package/lib/browser/bundle-babbd573.mjs +2419 -0
- package/lib/browser/index.cjs +1 -0
- package/lib/browser/index.mjs +34 -0
- package/lib/edge/USE_CLIENT_BUNDLE-3cbb02d5.mjs +664 -0
- package/lib/edge/USE_CLIENT_BUNDLE-d0b99f60.js +23 -0
- package/lib/edge/USE_SERVER_BUNDLE-4eeb4634.mjs +11 -0
- package/lib/edge/USE_SERVER_BUNDLE-bbd89085.js +1 -0
- package/lib/edge/bundle-9ed99f98.mjs +4863 -0
- package/lib/edge/bundle-e4764e2a.js +96 -0
- package/lib/edge/index.cjs +1 -0
- package/lib/edge/index.mjs +34 -0
- package/lib/node/USE_CLIENT_BUNDLE-29f9ac5c.js +23 -0
- package/lib/node/USE_CLIENT_BUNDLE-dfa97c43.mjs +664 -0
- package/lib/node/USE_SERVER_BUNDLE-25e181fa.js +1 -0
- package/lib/node/USE_SERVER_BUNDLE-fcd44ecb.mjs +11 -0
- package/lib/node/bundle-5cab6113.js +76 -0
- package/lib/node/bundle-babbd573.mjs +2419 -0
- package/lib/node/index.cjs +1 -0
- package/lib/node/index.mjs +34 -0
- package/package.json +96 -13
- package/types/constants/sdk-version.d.ts +1 -0
- package/types/functions/deopt.d.ts +4 -0
- package/types/functions/evaluate/browser-runtime/index.d.ts +1 -0
- package/{dist → types}/functions/fetch-builder-props.d.ts +2 -1
- package/{dist → types}/functions/get-content/index.d.ts +4 -5
- package/{dist → types}/index-helpers/blocks-exports.d.ts +2 -2
- package/dist/blocks/button/button.js +0 -12
- package/dist/blocks/button/component-info.js +0 -34
- package/dist/blocks/columns/columns.js +0 -119
- package/dist/blocks/columns/component-info.js +0 -219
- package/dist/blocks/custom-code/component-info.js +0 -23
- package/dist/blocks/custom-code/custom-code.js +0 -51
- package/dist/blocks/embed/component-info.js +0 -39
- package/dist/blocks/embed/embed.js +0 -42
- package/dist/blocks/embed/helpers.js +0 -2
- package/dist/blocks/fragment/component-info.js +0 -7
- package/dist/blocks/fragment/fragment.js +0 -6
- package/dist/blocks/helpers.js +0 -40
- package/dist/blocks/image/component-info.js +0 -122
- package/dist/blocks/image/image.helpers.js +0 -47
- package/dist/blocks/image/image.js +0 -82
- package/dist/blocks/img/component-info.js +0 -15
- package/dist/blocks/img/img.js +0 -10
- package/dist/blocks/section/component-info.js +0 -40
- package/dist/blocks/section/section.js +0 -17
- package/dist/blocks/symbol/component-info.js +0 -34
- package/dist/blocks/symbol/symbol.helpers.js +0 -31
- package/dist/blocks/symbol/symbol.js +0 -29
- package/dist/blocks/text/component-info.js +0 -19
- package/dist/blocks/text/text.js +0 -7
- package/dist/blocks/video/component-info.js +0 -82
- package/dist/blocks/video/video.js +0 -50
- package/dist/components/block/block.helpers.js +0 -69
- package/dist/components/block/block.js +0 -92
- package/dist/components/block/components/block-styles.js +0 -65
- package/dist/components/block/components/block-wrapper.js +0 -36
- package/dist/components/block/components/component-ref/component-ref.helpers.js +0 -22
- package/dist/components/block/components/component-ref/component-ref.js +0 -21
- package/dist/components/block/components/interactive-element.js +0 -20
- package/dist/components/block/components/repeated-block.js +0 -7
- package/dist/components/block/types.js +0 -1
- package/dist/components/blocks/blocks-wrapper.js +0 -38
- package/dist/components/blocks/blocks.js +0 -10
- package/dist/components/content/components/enable-editor.js +0 -250
- package/dist/components/content/components/styles.helpers.js +0 -58
- package/dist/components/content/components/styles.js +0 -30
- package/dist/components/content/content.helpers.js +0 -30
- package/dist/components/content/content.js +0 -74
- package/dist/components/content/content.types.js +0 -1
- package/dist/components/content/wrap-component-ref.js +0 -6
- package/dist/components/content-variants/content-variants.js +0 -45
- package/dist/components/content-variants/content-variants.types.js +0 -1
- package/dist/components/content-variants/helpers.js +0 -189
- package/dist/components/inlined-script.js +0 -5
- package/dist/components/inlined-styles.js +0 -5
- package/dist/constants/builder-registered-components.js +0 -60
- package/dist/constants/device-sizes.js +0 -45
- package/dist/constants/sdk-version.d.ts +0 -1
- package/dist/constants/sdk-version.js +0 -1
- package/dist/constants/target.js +0 -2
- package/dist/context/builder.context.js +0 -12
- package/dist/context/components.context.js +0 -2
- package/dist/context/types.js +0 -1
- package/dist/functions/camel-to-kebab-case.js +0 -1
- package/dist/functions/evaluate/browser-runtime/browser.js +0 -31
- package/dist/functions/evaluate/evaluate.js +0 -47
- package/dist/functions/evaluate/helpers.js +0 -10
- package/dist/functions/evaluate/index.js +0 -1
- package/dist/functions/evaluate/non-node-runtime/acorn-interpreter.d.ts +0 -2
- package/dist/functions/evaluate/non-node-runtime/acorn-interpreter.js +0 -3111
- package/dist/functions/evaluate/non-node-runtime/index.d.ts +0 -1
- package/dist/functions/evaluate/non-node-runtime/index.js +0 -2
- package/dist/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +0 -2
- package/dist/functions/evaluate/non-node-runtime/non-node-runtime.js +0 -83
- package/dist/functions/event-handler-name.js +0 -4
- package/dist/functions/extract-text-styles.js +0 -22
- package/dist/functions/fast-clone.js +0 -4
- package/dist/functions/fetch-builder-props.js +0 -25
- package/dist/functions/get-block-actions-handler.js +0 -10
- package/dist/functions/get-block-actions.js +0 -28
- package/dist/functions/get-block-component-options.js +0 -10
- package/dist/functions/get-block-properties.js +0 -72
- package/dist/functions/get-builder-search-params/index.js +0 -38
- package/dist/functions/get-content/generate-content-url.js +0 -33
- package/dist/functions/get-content/index.js +0 -100
- package/dist/functions/get-content/types.js +0 -1
- package/dist/functions/get-fetch.js +0 -11
- package/dist/functions/get-global-this.js +0 -15
- package/dist/functions/get-processed-block.js +0 -46
- package/dist/functions/get-react-native-block-styles.js +0 -17
- package/dist/functions/is-browser.js +0 -3
- package/dist/functions/is-editing.js +0 -5
- package/dist/functions/is-iframe.js +0 -4
- package/dist/functions/is-non-node-server.d.ts +0 -4
- package/dist/functions/is-non-node-server.js +0 -8
- package/dist/functions/is-previewing.js +0 -11
- package/dist/functions/register-component.js +0 -38
- package/dist/functions/register.js +0 -27
- package/dist/functions/sanitize-react-native-block-styles.js +0 -61
- package/dist/functions/set-editor-settings.js +0 -12
- package/dist/functions/set.js +0 -14
- package/dist/functions/track/helpers.js +0 -51
- package/dist/functions/track/index.js +0 -71
- package/dist/functions/track/interaction.js +0 -53
- package/dist/functions/transform-block-properties.js +0 -5
- package/dist/functions/transform-block.js +0 -4
- package/dist/helpers/ab-tests.js +0 -122
- package/dist/helpers/canTrack.js +0 -2
- package/dist/helpers/cookie.js +0 -55
- package/dist/helpers/css.js +0 -27
- package/dist/helpers/flatten.js +0 -19
- package/dist/helpers/localStorage.js +0 -24
- package/dist/helpers/logger.js +0 -7
- package/dist/helpers/nullable.js +0 -1
- package/dist/helpers/preview-lru-cache/get.js +0 -9
- package/dist/helpers/preview-lru-cache/helpers.js +0 -9
- package/dist/helpers/preview-lru-cache/init.js +0 -15
- package/dist/helpers/preview-lru-cache/set.js +0 -7
- package/dist/helpers/preview-lru-cache/types.js +0 -6
- package/dist/helpers/sessionId.js +0 -30
- package/dist/helpers/url.js +0 -15
- package/dist/helpers/uuid.js +0 -15
- package/dist/helpers/visitorId.js +0 -30
- package/dist/index-helpers/blocks-exports.js +0 -19
- package/dist/index-helpers/top-of-file.js +0 -4
- package/dist/index.js +0 -7
- package/dist/scripts/init-editing.js +0 -110
- package/dist/server-index.js +0 -10
- package/dist/types/api-version.js +0 -1
- package/dist/types/builder-block.js +0 -1
- package/dist/types/builder-content.js +0 -1
- package/dist/types/builder-props.js +0 -1
- package/dist/types/can-track.js +0 -1
- package/dist/types/components.js +0 -1
- package/dist/types/deep-partial.js +0 -1
- package/dist/types/element.js +0 -1
- package/dist/types/enforced-partials.js +0 -1
- package/dist/types/input.js +0 -1
- package/dist/types/targets.js +0 -1
- package/dist/types/typescript.js +0 -1
- /package/{dist → types}/blocks/button/button.d.ts +0 -0
- /package/{dist → types}/blocks/button/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/columns/columns.d.ts +0 -0
- /package/{dist → types}/blocks/columns/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/custom-code/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/custom-code/custom-code.d.ts +0 -0
- /package/{dist → types}/blocks/embed/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/embed/embed.d.ts +0 -0
- /package/{dist → types}/blocks/embed/helpers.d.ts +0 -0
- /package/{dist → types}/blocks/fragment/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/fragment/fragment.d.ts +0 -0
- /package/{dist → types}/blocks/helpers.d.ts +0 -0
- /package/{dist → types}/blocks/image/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/image/image.d.ts +0 -0
- /package/{dist → types}/blocks/image/image.helpers.d.ts +0 -0
- /package/{dist → types}/blocks/img/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/img/img.d.ts +0 -0
- /package/{dist → types}/blocks/section/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/section/section.d.ts +0 -0
- /package/{dist → types}/blocks/symbol/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/symbol/symbol.d.ts +0 -0
- /package/{dist → types}/blocks/symbol/symbol.helpers.d.ts +0 -0
- /package/{dist → types}/blocks/text/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/text/text.d.ts +0 -0
- /package/{dist → types}/blocks/video/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/video/video.d.ts +0 -0
- /package/{dist → types}/components/block/block.d.ts +0 -0
- /package/{dist → types}/components/block/block.helpers.d.ts +0 -0
- /package/{dist → types}/components/block/components/block-styles.d.ts +0 -0
- /package/{dist → types}/components/block/components/block-wrapper.d.ts +0 -0
- /package/{dist → types}/components/block/components/component-ref/component-ref.d.ts +0 -0
- /package/{dist → types}/components/block/components/component-ref/component-ref.helpers.d.ts +0 -0
- /package/{dist → types}/components/block/components/interactive-element.d.ts +0 -0
- /package/{dist → types}/components/block/components/repeated-block.d.ts +0 -0
- /package/{dist → types}/components/block/types.d.ts +0 -0
- /package/{dist → types}/components/blocks/blocks-wrapper.d.ts +0 -0
- /package/{dist → types}/components/blocks/blocks.d.ts +0 -0
- /package/{dist → types}/components/content/components/enable-editor.d.ts +0 -0
- /package/{dist → types}/components/content/components/styles.d.ts +0 -0
- /package/{dist → types}/components/content/components/styles.helpers.d.ts +0 -0
- /package/{dist → types}/components/content/content.d.ts +0 -0
- /package/{dist → types}/components/content/content.helpers.d.ts +0 -0
- /package/{dist → types}/components/content/content.types.d.ts +0 -0
- /package/{dist → types}/components/content/wrap-component-ref.d.ts +0 -0
- /package/{dist → types}/components/content-variants/content-variants.d.ts +0 -0
- /package/{dist → types}/components/content-variants/content-variants.types.d.ts +0 -0
- /package/{dist → types}/components/content-variants/helpers.d.ts +0 -0
- /package/{dist → types}/components/inlined-script.d.ts +0 -0
- /package/{dist → types}/components/inlined-styles.d.ts +0 -0
- /package/{dist → types}/constants/builder-registered-components.d.ts +0 -0
- /package/{dist → types}/constants/device-sizes.d.ts +0 -0
- /package/{dist → types}/constants/target.d.ts +0 -0
- /package/{dist → types}/context/builder.context.d.ts +0 -0
- /package/{dist → types}/context/components.context.d.ts +0 -0
- /package/{dist → types}/context/types.d.ts +0 -0
- /package/{dist → types}/functions/camel-to-kebab-case.d.ts +0 -0
- /package/{dist → types}/functions/evaluate/browser-runtime/browser.d.ts +0 -0
- /package/{dist → types}/functions/evaluate/evaluate.d.ts +0 -0
- /package/{dist → types}/functions/evaluate/helpers.d.ts +0 -0
- /package/{dist → types}/functions/evaluate/index.d.ts +0 -0
- /package/{dist → types}/functions/event-handler-name.d.ts +0 -0
- /package/{dist → types}/functions/extract-text-styles.d.ts +0 -0
- /package/{dist → types}/functions/fast-clone.d.ts +0 -0
- /package/{dist → types}/functions/get-block-actions-handler.d.ts +0 -0
- /package/{dist → types}/functions/get-block-actions.d.ts +0 -0
- /package/{dist → types}/functions/get-block-component-options.d.ts +0 -0
- /package/{dist → types}/functions/get-block-properties.d.ts +0 -0
- /package/{dist → types}/functions/get-builder-search-params/index.d.ts +0 -0
- /package/{dist → types}/functions/get-content/generate-content-url.d.ts +0 -0
- /package/{dist → types}/functions/get-content/types.d.ts +0 -0
- /package/{dist → types}/functions/get-fetch.d.ts +0 -0
- /package/{dist → types}/functions/get-global-this.d.ts +0 -0
- /package/{dist → types}/functions/get-processed-block.d.ts +0 -0
- /package/{dist → types}/functions/get-react-native-block-styles.d.ts +0 -0
- /package/{dist → types}/functions/is-browser.d.ts +0 -0
- /package/{dist → types}/functions/is-editing.d.ts +0 -0
- /package/{dist → types}/functions/is-iframe.d.ts +0 -0
- /package/{dist → types}/functions/is-previewing.d.ts +0 -0
- /package/{dist → types}/functions/register-component.d.ts +0 -0
- /package/{dist → types}/functions/register.d.ts +0 -0
- /package/{dist → types}/functions/sanitize-react-native-block-styles.d.ts +0 -0
- /package/{dist → types}/functions/set-editor-settings.d.ts +0 -0
- /package/{dist → types}/functions/set.d.ts +0 -0
- /package/{dist → types}/functions/track/helpers.d.ts +0 -0
- /package/{dist → types}/functions/track/index.d.ts +0 -0
- /package/{dist → types}/functions/track/interaction.d.ts +0 -0
- /package/{dist → types}/functions/transform-block-properties.d.ts +0 -0
- /package/{dist → types}/functions/transform-block.d.ts +0 -0
- /package/{dist → types}/helpers/ab-tests.d.ts +0 -0
- /package/{dist → types}/helpers/canTrack.d.ts +0 -0
- /package/{dist → types}/helpers/cookie.d.ts +0 -0
- /package/{dist → types}/helpers/css.d.ts +0 -0
- /package/{dist → types}/helpers/flatten.d.ts +0 -0
- /package/{dist → types}/helpers/localStorage.d.ts +0 -0
- /package/{dist → types}/helpers/logger.d.ts +0 -0
- /package/{dist → types}/helpers/nullable.d.ts +0 -0
- /package/{dist → types}/helpers/preview-lru-cache/get.d.ts +0 -0
- /package/{dist → types}/helpers/preview-lru-cache/helpers.d.ts +0 -0
- /package/{dist → types}/helpers/preview-lru-cache/init.d.ts +0 -0
- /package/{dist → types}/helpers/preview-lru-cache/set.d.ts +0 -0
- /package/{dist → types}/helpers/preview-lru-cache/types.d.ts +0 -0
- /package/{dist → types}/helpers/sessionId.d.ts +0 -0
- /package/{dist → types}/helpers/url.d.ts +0 -0
- /package/{dist → types}/helpers/uuid.d.ts +0 -0
- /package/{dist → types}/helpers/visitorId.d.ts +0 -0
- /package/{dist → types}/index-helpers/top-of-file.d.ts +0 -0
- /package/{dist → types}/index.d.ts +0 -0
- /package/{dist → types}/scripts/init-editing.d.ts +0 -0
- /package/{dist → types}/server-index.d.ts +0 -0
- /package/{dist → types}/types/api-version.d.ts +0 -0
- /package/{dist → types}/types/builder-block.d.ts +0 -0
- /package/{dist → types}/types/builder-content.d.ts +0 -0
- /package/{dist → types}/types/builder-props.d.ts +0 -0
- /package/{dist → types}/types/can-track.d.ts +0 -0
- /package/{dist → types}/types/components.d.ts +0 -0
- /package/{dist → types}/types/deep-partial.d.ts +0 -0
- /package/{dist → types}/types/element.d.ts +0 -0
- /package/{dist → types}/types/enforced-partials.d.ts +0 -0
- /package/{dist → types}/types/input.d.ts +0 -0
- /package/{dist → types}/types/targets.d.ts +0 -0
- /package/{dist → types}/types/typescript.d.ts +0 -0
|
@@ -0,0 +1,4863 @@
|
|
|
1
|
+
import { LRUCache as Jr } from "lru-cache";
|
|
2
|
+
import { jsx as A, Fragment as $, jsxs as ue } from "react/jsx-runtime";
|
|
3
|
+
import { createElement as zr } from "react";
|
|
4
|
+
import { I as Yr, B as Ht, a as $n, b as qr, c as Zr, C as Qr, E as eo, F as to, d as no, e as ro, S as oo, V as io, f as ao } from "./USE_CLIENT_BUNDLE-3cbb02d5.mjs";
|
|
5
|
+
import "next/navigation";
|
|
6
|
+
const st = (e) => JSON.parse(JSON.stringify(e)), ir = {
|
|
7
|
+
small: {
|
|
8
|
+
min: 320,
|
|
9
|
+
default: 321,
|
|
10
|
+
max: 640
|
|
11
|
+
},
|
|
12
|
+
medium: {
|
|
13
|
+
min: 641,
|
|
14
|
+
default: 642,
|
|
15
|
+
max: 991
|
|
16
|
+
},
|
|
17
|
+
large: {
|
|
18
|
+
min: 990,
|
|
19
|
+
default: 991,
|
|
20
|
+
max: 1200
|
|
21
|
+
}
|
|
22
|
+
}, ya = (e, t = ir) => `@media (max-width: ${t[e].max}px)`, so = ({
|
|
23
|
+
small: e,
|
|
24
|
+
medium: t
|
|
25
|
+
}) => {
|
|
26
|
+
const r = st(ir);
|
|
27
|
+
if (!e || !t)
|
|
28
|
+
return r;
|
|
29
|
+
const n = Math.floor(e / 2);
|
|
30
|
+
r.small = {
|
|
31
|
+
max: e,
|
|
32
|
+
min: n,
|
|
33
|
+
default: n + 1
|
|
34
|
+
};
|
|
35
|
+
const o = r.small.max + 1;
|
|
36
|
+
r.medium = {
|
|
37
|
+
max: t,
|
|
38
|
+
min: o,
|
|
39
|
+
default: o + 1
|
|
40
|
+
};
|
|
41
|
+
const a = r.medium.max + 1;
|
|
42
|
+
return r.large = {
|
|
43
|
+
max: 2e3,
|
|
44
|
+
// TODO: decide upper limit
|
|
45
|
+
min: a,
|
|
46
|
+
default: a + 1
|
|
47
|
+
}, r;
|
|
48
|
+
}, me = "rsc", it = "[Builder.io]: ", q = {
|
|
49
|
+
log: (...e) => console.log(it, ...e),
|
|
50
|
+
error: (...e) => console.error(it, ...e),
|
|
51
|
+
warn: (...e) => console.warn(it, ...e),
|
|
52
|
+
debug: (...e) => console.debug(it, ...e)
|
|
53
|
+
};
|
|
54
|
+
function z() {
|
|
55
|
+
return typeof window < "u" && typeof document < "u";
|
|
56
|
+
}
|
|
57
|
+
function lo() {
|
|
58
|
+
return z() && window.self !== window.top;
|
|
59
|
+
}
|
|
60
|
+
function Kt() {
|
|
61
|
+
return lo() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
62
|
+
}
|
|
63
|
+
const uo = () => {
|
|
64
|
+
if (z()) {
|
|
65
|
+
const e = new URL(location.href);
|
|
66
|
+
return e.pathname === "" && (e.pathname = "/"), e;
|
|
67
|
+
} else
|
|
68
|
+
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
69
|
+
}, co = () => typeof navigator == "object" && navigator.userAgent || "", ar = () => {
|
|
70
|
+
const e = co(), t = {
|
|
71
|
+
Android() {
|
|
72
|
+
return e.match(/Android/i);
|
|
73
|
+
},
|
|
74
|
+
BlackBerry() {
|
|
75
|
+
return e.match(/BlackBerry/i);
|
|
76
|
+
},
|
|
77
|
+
iOS() {
|
|
78
|
+
return e.match(/iPhone|iPod/i);
|
|
79
|
+
},
|
|
80
|
+
Opera() {
|
|
81
|
+
return e.match(/Opera Mini/i);
|
|
82
|
+
},
|
|
83
|
+
Windows() {
|
|
84
|
+
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
85
|
+
},
|
|
86
|
+
any() {
|
|
87
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || me === "reactNative";
|
|
88
|
+
}
|
|
89
|
+
}, r = e.match(/Tablet|iPad/i), n = uo();
|
|
90
|
+
return {
|
|
91
|
+
urlPath: n == null ? void 0 : n.pathname,
|
|
92
|
+
host: (n == null ? void 0 : n.host) || (n == null ? void 0 : n.hostname),
|
|
93
|
+
device: r ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
94
|
+
};
|
|
95
|
+
}, sr = (e, t, r) => {
|
|
96
|
+
if (Object(e) !== e)
|
|
97
|
+
return e;
|
|
98
|
+
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
99
|
+
return n.slice(0, -1).reduce((o, a, s) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(n[s + 1])) >> 0 === +n[s + 1] ? [] : {}, e)[n[n.length - 1]] = r, e;
|
|
100
|
+
};
|
|
101
|
+
var N, fo = function(e) {
|
|
102
|
+
function t(i) {
|
|
103
|
+
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Gr.test(String.fromCharCode(i));
|
|
104
|
+
}
|
|
105
|
+
function r(i) {
|
|
106
|
+
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Ln.test(String.fromCharCode(i));
|
|
107
|
+
}
|
|
108
|
+
function n(i, l) {
|
|
109
|
+
for (var u = y, p = 1, T = 0; ; ) {
|
|
110
|
+
ot.lastIndex = T;
|
|
111
|
+
var L = ot.exec(u);
|
|
112
|
+
if (L && L.index < i)
|
|
113
|
+
++p, T = L.index + L[0].length;
|
|
114
|
+
else
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
throw u = {
|
|
118
|
+
line: p,
|
|
119
|
+
ab: i - T
|
|
120
|
+
}, l += " (" + u.line + ":" + u.ab + ")", l = new SyntaxError(l), l.j = i, l.X = u, l.o = c, l;
|
|
121
|
+
}
|
|
122
|
+
function o(i) {
|
|
123
|
+
i = i.split(" ");
|
|
124
|
+
for (var l = /* @__PURE__ */ Object.create(null), u = 0; u < i.length; u++)
|
|
125
|
+
l[i[u]] = !0;
|
|
126
|
+
return function(p) {
|
|
127
|
+
return l[p] || !1;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function a() {
|
|
131
|
+
this.line = ye, this.ab = c - re;
|
|
132
|
+
}
|
|
133
|
+
function s(i, l) {
|
|
134
|
+
Se = c, O.C && (bt = new a()), I = i, h(), Z = l, Fe = i.m;
|
|
135
|
+
}
|
|
136
|
+
function f() {
|
|
137
|
+
for (var i = c, l = O.va && O.C && new a(), u = y.charCodeAt(c += 2); c < be && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
|
|
138
|
+
++c, u = y.charCodeAt(c);
|
|
139
|
+
O.va && O.va(!1, y.slice(i + 2, c), i, c, l, O.C && new a());
|
|
140
|
+
}
|
|
141
|
+
function h() {
|
|
142
|
+
for (; c < be; ) {
|
|
143
|
+
var i = y.charCodeAt(c);
|
|
144
|
+
if (i === 32)
|
|
145
|
+
++c;
|
|
146
|
+
else if (i === 13)
|
|
147
|
+
++c, i = y.charCodeAt(c), i === 10 && ++c, O.C && (++ye, re = c);
|
|
148
|
+
else if (i === 10 || i === 8232 || i === 8233)
|
|
149
|
+
++c, O.C && (++ye, re = c);
|
|
150
|
+
else if (8 < i && 14 > i)
|
|
151
|
+
++c;
|
|
152
|
+
else if (i === 47)
|
|
153
|
+
if (i = y.charCodeAt(c + 1), i === 42) {
|
|
154
|
+
i = void 0;
|
|
155
|
+
var l = O.va && O.C && new a(), u = c, p = y.indexOf("*/", c += 2);
|
|
156
|
+
if (p === -1 && n(c - 2, "Unterminated comment"), c = p + 2, O.C)
|
|
157
|
+
for (ot.lastIndex = u; (i = ot.exec(y)) && i.index < c; )
|
|
158
|
+
++ye, re = i.index + i[0].length;
|
|
159
|
+
O.va && O.va(!0, y.slice(u + 2, p), u, c, l, O.C && new a());
|
|
160
|
+
} else if (i === 47)
|
|
161
|
+
f();
|
|
162
|
+
else
|
|
163
|
+
break;
|
|
164
|
+
else if (i === 160)
|
|
165
|
+
++c;
|
|
166
|
+
else if (5760 <= i && Kr.test(String.fromCharCode(i)))
|
|
167
|
+
++c;
|
|
168
|
+
else
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
function g(i) {
|
|
173
|
+
switch (i) {
|
|
174
|
+
case 46:
|
|
175
|
+
i = y.charCodeAt(c + 1), 48 <= i && 57 >= i ? S(!0) : (++c, s(Pn));
|
|
176
|
+
return;
|
|
177
|
+
case 40:
|
|
178
|
+
return ++c, s(oe);
|
|
179
|
+
case 41:
|
|
180
|
+
return ++c, s(ee);
|
|
181
|
+
case 59:
|
|
182
|
+
return ++c, s(ie);
|
|
183
|
+
case 44:
|
|
184
|
+
return ++c, s(he);
|
|
185
|
+
case 91:
|
|
186
|
+
return ++c, s(Rt);
|
|
187
|
+
case 93:
|
|
188
|
+
return ++c, s(Pt);
|
|
189
|
+
case 123:
|
|
190
|
+
return ++c, s(Ve);
|
|
191
|
+
case 125:
|
|
192
|
+
return ++c, s(Ce);
|
|
193
|
+
case 58:
|
|
194
|
+
return ++c, s(_e);
|
|
195
|
+
case 63:
|
|
196
|
+
return ++c, s(Nn);
|
|
197
|
+
case 48:
|
|
198
|
+
if (i = y.charCodeAt(c + 1), i === 120 || i === 88) {
|
|
199
|
+
c += 2, i = E(16), i === null && n(_ + 2, "Expected hexadecimal number"), r(y.charCodeAt(c)) && n(c, "Identifier directly after number"), s(Be, i);
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
case 49:
|
|
203
|
+
case 50:
|
|
204
|
+
case 51:
|
|
205
|
+
case 52:
|
|
206
|
+
case 53:
|
|
207
|
+
case 54:
|
|
208
|
+
case 55:
|
|
209
|
+
case 56:
|
|
210
|
+
case 57:
|
|
211
|
+
return S(!1);
|
|
212
|
+
case 34:
|
|
213
|
+
case 39:
|
|
214
|
+
c++;
|
|
215
|
+
for (var l = ""; ; ) {
|
|
216
|
+
c >= be && n(_, "Unterminated string constant");
|
|
217
|
+
var u = y.charCodeAt(c);
|
|
218
|
+
if (u === i) {
|
|
219
|
+
++c, s(et, l);
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
if (u === 92) {
|
|
223
|
+
u = y.charCodeAt(++c);
|
|
224
|
+
var p = /^[0-7]+/.exec(y.slice(c, c + 3));
|
|
225
|
+
for (p && (p = p[0]); p && 255 < parseInt(p, 8); )
|
|
226
|
+
p = p.slice(0, -1);
|
|
227
|
+
if (p === "0" && (p = null), ++c, p)
|
|
228
|
+
Y && n(c - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(p, 8)), c += p.length - 1;
|
|
229
|
+
else
|
|
230
|
+
switch (u) {
|
|
231
|
+
case 110:
|
|
232
|
+
l += `
|
|
233
|
+
`;
|
|
234
|
+
break;
|
|
235
|
+
case 114:
|
|
236
|
+
l += "\r";
|
|
237
|
+
break;
|
|
238
|
+
case 120:
|
|
239
|
+
l += String.fromCharCode(x(2));
|
|
240
|
+
break;
|
|
241
|
+
case 117:
|
|
242
|
+
l += String.fromCharCode(x(4));
|
|
243
|
+
break;
|
|
244
|
+
case 85:
|
|
245
|
+
l += String.fromCharCode(x(8));
|
|
246
|
+
break;
|
|
247
|
+
case 116:
|
|
248
|
+
l += " ";
|
|
249
|
+
break;
|
|
250
|
+
case 98:
|
|
251
|
+
l += "\b";
|
|
252
|
+
break;
|
|
253
|
+
case 118:
|
|
254
|
+
l += "\v";
|
|
255
|
+
break;
|
|
256
|
+
case 102:
|
|
257
|
+
l += "\f";
|
|
258
|
+
break;
|
|
259
|
+
case 48:
|
|
260
|
+
l += "\0";
|
|
261
|
+
break;
|
|
262
|
+
case 13:
|
|
263
|
+
y.charCodeAt(c) === 10 && ++c;
|
|
264
|
+
case 10:
|
|
265
|
+
O.C && (re = c, ++ye);
|
|
266
|
+
break;
|
|
267
|
+
default:
|
|
268
|
+
l += String.fromCharCode(u);
|
|
269
|
+
}
|
|
270
|
+
} else
|
|
271
|
+
u !== 13 && u !== 10 && u !== 8232 && u !== 8233 || n(_, "Unterminated string constant"), l += String.fromCharCode(u), ++c;
|
|
272
|
+
}
|
|
273
|
+
return;
|
|
274
|
+
case 47:
|
|
275
|
+
i = y.charCodeAt(c + 1), Fe ? (++c, M()) : i === 61 ? b(ve, 2) : b(Mn, 1);
|
|
276
|
+
return;
|
|
277
|
+
case 37:
|
|
278
|
+
case 42:
|
|
279
|
+
y.charCodeAt(c + 1) === 61 ? b(ve, 2) : b(Dr, 1);
|
|
280
|
+
return;
|
|
281
|
+
case 124:
|
|
282
|
+
case 38:
|
|
283
|
+
l = y.charCodeAt(c + 1), l === i ? b(i === 124 ? Bn : Vn, 2) : l === 61 ? b(ve, 2) : b(i === 124 ? Fr : Br, 1);
|
|
284
|
+
return;
|
|
285
|
+
case 94:
|
|
286
|
+
y.charCodeAt(c + 1) === 61 ? b(ve, 2) : b(Ur, 1);
|
|
287
|
+
return;
|
|
288
|
+
case 43:
|
|
289
|
+
case 45:
|
|
290
|
+
l = y.charCodeAt(c + 1), l === i ? l === 45 && y.charCodeAt(c + 2) === 62 && rt.test(y.slice(pe, c)) ? (c += 3, f(), h(), v()) : b(Mr, 2) : l === 61 ? b(ve, 2) : b($r, 1);
|
|
291
|
+
return;
|
|
292
|
+
case 60:
|
|
293
|
+
case 62:
|
|
294
|
+
l = y.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && y.charCodeAt(c + 2) === 62 ? 3 : 2, y.charCodeAt(c + u) === 61 ? b(ve, u + 1) : b(Lr, u)) : l === 33 && i === 60 && y.charCodeAt(c + 2) === 45 && y.charCodeAt(c + 3) === 45 ? (c += 4, f(), h(), v()) : (l === 61 && (u = y.charCodeAt(c + 2) === 61 ? 3 : 2), b(_r, u));
|
|
295
|
+
return;
|
|
296
|
+
case 61:
|
|
297
|
+
case 33:
|
|
298
|
+
y.charCodeAt(c + 1) === 61 ? b(Vr, y.charCodeAt(c + 2) === 61 ? 3 : 2) : b(i === 61 ? Fn : Un, 1);
|
|
299
|
+
return;
|
|
300
|
+
case 126:
|
|
301
|
+
return b(Un, 1);
|
|
302
|
+
}
|
|
303
|
+
return !1;
|
|
304
|
+
}
|
|
305
|
+
function v(i) {
|
|
306
|
+
if (i ? c = _ + 1 : _ = c, O.C && (wt = new a()), i)
|
|
307
|
+
return M();
|
|
308
|
+
if (c >= be)
|
|
309
|
+
return s(Ct);
|
|
310
|
+
if (i = y.charCodeAt(c), r(i) || i === 92)
|
|
311
|
+
return U();
|
|
312
|
+
if (g(i) === !1) {
|
|
313
|
+
if (i = String.fromCharCode(i), i === "\\" || Ln.test(i))
|
|
314
|
+
return U();
|
|
315
|
+
n(c, "Unexpected character '" + i + "'");
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
function b(i, l) {
|
|
319
|
+
var u = y.slice(c, c + l);
|
|
320
|
+
c += l, s(i, u);
|
|
321
|
+
}
|
|
322
|
+
function M() {
|
|
323
|
+
for (var i, l, u = c; ; ) {
|
|
324
|
+
c >= be && n(u, "Unterminated regexp");
|
|
325
|
+
var p = y.charAt(c);
|
|
326
|
+
if (rt.test(p) && n(u, "Unterminated regexp"), i)
|
|
327
|
+
i = !1;
|
|
328
|
+
else {
|
|
329
|
+
if (p === "[")
|
|
330
|
+
l = !0;
|
|
331
|
+
else if (p === "]" && l)
|
|
332
|
+
l = !1;
|
|
333
|
+
else if (p === "/" && !l)
|
|
334
|
+
break;
|
|
335
|
+
i = p === "\\";
|
|
336
|
+
}
|
|
337
|
+
++c;
|
|
338
|
+
}
|
|
339
|
+
i = y.slice(u, c), ++c, (l = P()) && !/^[gmi]*$/.test(l) && n(u, "Invalid regexp flag");
|
|
340
|
+
try {
|
|
341
|
+
var T = new RegExp(i, l);
|
|
342
|
+
} catch (L) {
|
|
343
|
+
throw L instanceof SyntaxError && n(u, L.message), L;
|
|
344
|
+
}
|
|
345
|
+
s(hn, T);
|
|
346
|
+
}
|
|
347
|
+
function E(i, l) {
|
|
348
|
+
for (var u = c, p = 0, T = l === void 0 ? 1 / 0 : l, L = 0; L < T; ++L) {
|
|
349
|
+
var G = y.charCodeAt(c);
|
|
350
|
+
if (G = 97 <= G ? G - 97 + 10 : 65 <= G ? G - 65 + 10 : 48 <= G && 57 >= G ? G - 48 : 1 / 0, G >= i)
|
|
351
|
+
break;
|
|
352
|
+
++c, p = p * i + G;
|
|
353
|
+
}
|
|
354
|
+
return c === u || l !== void 0 && c - u !== l ? null : p;
|
|
355
|
+
}
|
|
356
|
+
function S(i) {
|
|
357
|
+
var l = c, u = !1, p = y.charCodeAt(c) === 48;
|
|
358
|
+
i || E(10) !== null || n(l, "Invalid number"), y.charCodeAt(c) === 46 && (++c, E(10), u = !0), i = y.charCodeAt(c), (i === 69 || i === 101) && (i = y.charCodeAt(++c), i !== 43 && i !== 45 || ++c, E(10) === null && n(l, "Invalid number"), u = !0), r(y.charCodeAt(c)) && n(c, "Identifier directly after number"), i = y.slice(l, c);
|
|
359
|
+
var T;
|
|
360
|
+
u ? T = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || Y ? n(l, "Invalid number") : T = parseInt(i, 8) : T = parseInt(i, 10), s(Be, T);
|
|
361
|
+
}
|
|
362
|
+
function x(i) {
|
|
363
|
+
return i = E(16, i), i === null && n(_, "Bad character escape sequence"), i;
|
|
364
|
+
}
|
|
365
|
+
function P() {
|
|
366
|
+
Ee = !1;
|
|
367
|
+
for (var i, l = !0, u = c; ; ) {
|
|
368
|
+
var p = y.charCodeAt(c);
|
|
369
|
+
if (t(p))
|
|
370
|
+
Ee && (i += y.charAt(c)), ++c;
|
|
371
|
+
else if (p === 92) {
|
|
372
|
+
Ee || (i = y.slice(u, c)), Ee = !0, y.charCodeAt(++c) !== 117 && n(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, p = x(4);
|
|
373
|
+
var T = String.fromCharCode(p);
|
|
374
|
+
T || n(c - 1, "Invalid Unicode escape"), (l ? r(p) : t(p)) || n(c - 4, "Invalid Unicode escape"), i += T;
|
|
375
|
+
} else
|
|
376
|
+
break;
|
|
377
|
+
l = !1;
|
|
378
|
+
}
|
|
379
|
+
return Ee ? i : y.slice(u, c);
|
|
380
|
+
}
|
|
381
|
+
function U() {
|
|
382
|
+
var i = P(), l = ke;
|
|
383
|
+
!Ee && Hr(i) && (l = Nr[i]), s(l, i);
|
|
384
|
+
}
|
|
385
|
+
function m() {
|
|
386
|
+
St = _, pe = Se, kt = bt, v();
|
|
387
|
+
}
|
|
388
|
+
function we(i) {
|
|
389
|
+
if (Y = i, c = _, O.C)
|
|
390
|
+
for (; c < re; )
|
|
391
|
+
re = y.lastIndexOf(`
|
|
392
|
+
`, re - 2) + 1, --ye;
|
|
393
|
+
h(), v();
|
|
394
|
+
}
|
|
395
|
+
function Re() {
|
|
396
|
+
this.type = null, this.start = _, this.end = null;
|
|
397
|
+
}
|
|
398
|
+
function ft() {
|
|
399
|
+
this.start = wt, this.end = null, xt && (this.source = xt);
|
|
400
|
+
}
|
|
401
|
+
function W() {
|
|
402
|
+
var i = new Re();
|
|
403
|
+
return O.C && (i.X = new ft()), O.vb && (i.sourceFile = O.vb), O.Xa && (i.j = [_, 0]), i;
|
|
404
|
+
}
|
|
405
|
+
function fe(i) {
|
|
406
|
+
var l = new Re();
|
|
407
|
+
return l.start = i.start, O.C && (l.X = new ft(), l.X.start = i.X.start), O.Xa && (l.j = [i.j[0], 0]), l;
|
|
408
|
+
}
|
|
409
|
+
function j(i, l) {
|
|
410
|
+
return i.type = l, i.end = pe, O.C && (i.X.end = kt), O.Xa && (i.j[1] = pe), i;
|
|
411
|
+
}
|
|
412
|
+
function pt(i) {
|
|
413
|
+
return i.type === "ExpressionStatement" && i.la.type === "Literal" && i.la.value === "use strict";
|
|
414
|
+
}
|
|
415
|
+
function F(i) {
|
|
416
|
+
return I === i ? (m(), !0) : !1;
|
|
417
|
+
}
|
|
418
|
+
function qe() {
|
|
419
|
+
return !O.fc && (I === Ct || I === Ce || rt.test(y.slice(pe, _)));
|
|
420
|
+
}
|
|
421
|
+
function ge() {
|
|
422
|
+
F(ie) || qe() || te();
|
|
423
|
+
}
|
|
424
|
+
function B(i) {
|
|
425
|
+
I === i ? m() : te();
|
|
426
|
+
}
|
|
427
|
+
function te() {
|
|
428
|
+
n(_, "Unexpected token");
|
|
429
|
+
}
|
|
430
|
+
function Ze(i) {
|
|
431
|
+
i.type !== "Identifier" && i.type !== "MemberExpression" && n(i.start, "Assigning to rvalue"), Y && i.type === "Identifier" && nt(i.name) && n(i.start, "Assigning to " + i.name + " in strict mode");
|
|
432
|
+
}
|
|
433
|
+
function Q() {
|
|
434
|
+
(I === Mn || I === ve && Z === "/=") && v(!0);
|
|
435
|
+
var i = I, l = W();
|
|
436
|
+
switch (i) {
|
|
437
|
+
case Et:
|
|
438
|
+
case mn:
|
|
439
|
+
m();
|
|
440
|
+
var u = i === Et;
|
|
441
|
+
F(ie) || qe() ? l.label = null : I !== ke ? te() : (l.label = ne(), ge());
|
|
442
|
+
for (var p = 0; p < V.length; ++p) {
|
|
443
|
+
var T = V[p];
|
|
444
|
+
if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (u || T.kind === "loop") || l.label && u))
|
|
445
|
+
break;
|
|
446
|
+
}
|
|
447
|
+
return p === V.length && n(l.start, "Unsyntactic " + i.l), j(l, u ? "BreakStatement" : "ContinueStatement");
|
|
448
|
+
case gn:
|
|
449
|
+
return m(), ge(), j(l, "DebuggerStatement");
|
|
450
|
+
case vn:
|
|
451
|
+
return m(), V.push(Nt), l.body = Q(), V.pop(), B(Ot), l.test = Pe(), ge(), j(l, "DoWhileStatement");
|
|
452
|
+
case bn:
|
|
453
|
+
return m(), V.push(Nt), B(oe), I === ie ? ht(l, null) : I === jt ? (i = W(), m(), fn(i, !0), j(i, "VariableDeclaration"), i.fa.length === 1 && F(tt) ? cn(l, i) : ht(l, i)) : (i = K(!1, !0), F(tt) ? (Ze(i), cn(l, i)) : ht(l, i));
|
|
454
|
+
case Tt:
|
|
455
|
+
return m(), yt(l, !0);
|
|
456
|
+
case Sn:
|
|
457
|
+
return m(), l.test = Pe(), l.da = Q(), l.alternate = F(xn) ? Q() : null, j(l, "IfStatement");
|
|
458
|
+
case kn:
|
|
459
|
+
return Ue || O.Ib || n(_, "'return' outside of function"), m(), F(ie) || qe() ? l.K = null : (l.K = K(), ge()), j(l, "ReturnStatement");
|
|
460
|
+
case At:
|
|
461
|
+
for (m(), l.Qb = Pe(), l.tb = [], B(Ve), V.push(Xr); I !== Ce; )
|
|
462
|
+
I === It || I === yn ? (i = I === It, p && j(p, "SwitchCase"), l.tb.push(p = W()), p.da = [], m(), i ? p.test = K() : (u && n(St, "Multiple default clauses"), u = !0, p.test = null), B(_e)) : (p || te(), p.da.push(Q()));
|
|
463
|
+
return p && j(p, "SwitchCase"), m(), V.pop(), j(l, "SwitchStatement");
|
|
464
|
+
case Cn:
|
|
465
|
+
return m(), rt.test(y.slice(pe, _)) && n(pe, "Illegal newline after throw"), l.K = K(), ge(), j(l, "ThrowStatement");
|
|
466
|
+
case En:
|
|
467
|
+
return m(), l.block = Ne(), l.Ea = null, I === dn && (i = W(), m(), B(oe), i.Ua = ne(), Y && nt(i.Ua.name) && n(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), B(ee), i.body = Ne(), l.Ea = j(i, "CatchClause")), l.fb = F(wn) ? Ne() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), j(l, "TryStatement");
|
|
468
|
+
case jt:
|
|
469
|
+
return m(), fn(l), ge(), j(l, "VariableDeclaration");
|
|
470
|
+
case Ot:
|
|
471
|
+
return m(), l.test = Pe(), V.push(Nt), l.body = Q(), V.pop(), j(l, "WhileStatement");
|
|
472
|
+
case In:
|
|
473
|
+
return Y && n(_, "'with' in strict mode"), m(), l.object = Pe(), l.body = Q(), j(l, "WithStatement");
|
|
474
|
+
case Ve:
|
|
475
|
+
return Ne();
|
|
476
|
+
case ie:
|
|
477
|
+
return m(), j(l, "EmptyStatement");
|
|
478
|
+
default:
|
|
479
|
+
if (u = Z, T = K(), i === ke && T.type === "Identifier" && F(_e)) {
|
|
480
|
+
for (p = 0; p < V.length; ++p)
|
|
481
|
+
V[p].name === u && n(T.start, "Label '" + u + "' is already declared");
|
|
482
|
+
return V.push({
|
|
483
|
+
name: u,
|
|
484
|
+
kind: I.W ? "loop" : I === At ? "switch" : null
|
|
485
|
+
}), l.body = Q(), V.pop(), l.label = T, j(l, "LabeledStatement");
|
|
486
|
+
}
|
|
487
|
+
return l.la = T, ge(), j(l, "ExpressionStatement");
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
function Pe() {
|
|
491
|
+
B(oe);
|
|
492
|
+
var i = K();
|
|
493
|
+
return B(ee), i;
|
|
494
|
+
}
|
|
495
|
+
function Ne(i) {
|
|
496
|
+
var l = W(), u = !0, p = !1;
|
|
497
|
+
for (l.body = [], B(Ve); !F(Ce); ) {
|
|
498
|
+
var T = Q();
|
|
499
|
+
if (l.body.push(T), u && i && pt(T)) {
|
|
500
|
+
var L = p;
|
|
501
|
+
we(p = !0);
|
|
502
|
+
}
|
|
503
|
+
u = !1;
|
|
504
|
+
}
|
|
505
|
+
return p && !L && we(!1), j(l, "BlockStatement");
|
|
506
|
+
}
|
|
507
|
+
function ht(i, l) {
|
|
508
|
+
return i.ua = l, B(ie), i.test = I === ie ? null : K(), B(ie), i.update = I === ee ? null : K(), B(ee), i.body = Q(), V.pop(), j(i, "ForStatement");
|
|
509
|
+
}
|
|
510
|
+
function cn(i, l) {
|
|
511
|
+
return i.left = l, i.right = K(), B(ee), i.body = Q(), V.pop(), j(i, "ForInStatement");
|
|
512
|
+
}
|
|
513
|
+
function fn(i, l) {
|
|
514
|
+
for (i.fa = [], i.kind = "var"; ; ) {
|
|
515
|
+
var u = W();
|
|
516
|
+
if (u.id = ne(), Y && nt(u.id.name) && n(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = F(Fn) ? K(!0, l) : null, i.fa.push(j(u, "VariableDeclarator")), !F(he))
|
|
517
|
+
break;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
function K(i, l) {
|
|
521
|
+
var u = dt(l);
|
|
522
|
+
if (!i && I === he) {
|
|
523
|
+
for (i = fe(u), i.xb = [u]; F(he); )
|
|
524
|
+
i.xb.push(dt(l));
|
|
525
|
+
return j(i, "SequenceExpression");
|
|
526
|
+
}
|
|
527
|
+
return u;
|
|
528
|
+
}
|
|
529
|
+
function dt(i) {
|
|
530
|
+
var l = mt(gt(), -1, i);
|
|
531
|
+
if (F(Nn)) {
|
|
532
|
+
var u = fe(l);
|
|
533
|
+
u.test = l, u.da = K(!0), B(_e), u.alternate = K(!0, i), l = j(u, "ConditionalExpression");
|
|
534
|
+
}
|
|
535
|
+
return I.Cb ? (u = fe(l), u.operator = Z, u.left = l, m(), u.right = dt(i), Ze(l), j(u, "AssignmentExpression")) : l;
|
|
536
|
+
}
|
|
537
|
+
function mt(i, l, u) {
|
|
538
|
+
var p = I.L;
|
|
539
|
+
if (p !== null && (!u || I !== tt) && p > l) {
|
|
540
|
+
var T = fe(i);
|
|
541
|
+
return T.left = i, T.operator = Z, i = I, m(), T.right = mt(gt(), p, u), p = j(T, i === Bn || i === Vn ? "LogicalExpression" : "BinaryExpression"), mt(p, l, u);
|
|
542
|
+
}
|
|
543
|
+
return i;
|
|
544
|
+
}
|
|
545
|
+
function gt() {
|
|
546
|
+
if (I.prefix) {
|
|
547
|
+
var i = W(), l = I.$b;
|
|
548
|
+
return i.operator = Z, Fe = i.prefix = !0, m(), i.K = gt(), l ? Ze(i.K) : Y && i.operator === "delete" && i.K.type === "Identifier" && n(i.start, "Deleting local variable in strict mode"), j(i, l ? "UpdateExpression" : "UnaryExpression");
|
|
549
|
+
}
|
|
550
|
+
for (l = Me(Qe()); I.cc && !qe(); )
|
|
551
|
+
i = fe(l), i.operator = Z, i.prefix = !1, i.K = l, Ze(l), m(), l = j(i, "UpdateExpression");
|
|
552
|
+
return l;
|
|
553
|
+
}
|
|
554
|
+
function Me(i, l) {
|
|
555
|
+
if (F(Pn)) {
|
|
556
|
+
var u = fe(i);
|
|
557
|
+
return u.object = i, u.Wa = ne(!0), u.bb = !1, Me(j(u, "MemberExpression"), l);
|
|
558
|
+
}
|
|
559
|
+
return F(Rt) ? (u = fe(i), u.object = i, u.Wa = K(), u.bb = !0, B(Pt), Me(j(u, "MemberExpression"), l)) : !l && F(oe) ? (u = fe(i), u.callee = i, u.arguments = vt(ee, !1), Me(j(u, "CallExpression"), l)) : i;
|
|
560
|
+
}
|
|
561
|
+
function Qe() {
|
|
562
|
+
switch (I) {
|
|
563
|
+
case An:
|
|
564
|
+
var i = W();
|
|
565
|
+
return m(), j(i, "ThisExpression");
|
|
566
|
+
case ke:
|
|
567
|
+
return ne();
|
|
568
|
+
case Be:
|
|
569
|
+
case et:
|
|
570
|
+
case hn:
|
|
571
|
+
return i = W(), i.value = Z, i.raw = y.slice(_, Se), m(), j(i, "Literal");
|
|
572
|
+
case jn:
|
|
573
|
+
case On:
|
|
574
|
+
case Rn:
|
|
575
|
+
return i = W(), i.value = I.$a, i.raw = I.l, m(), j(i, "Literal");
|
|
576
|
+
case oe:
|
|
577
|
+
i = wt;
|
|
578
|
+
var l = _;
|
|
579
|
+
m();
|
|
580
|
+
var u = K();
|
|
581
|
+
return u.start = l, u.end = Se, O.C && (u.X.start = i, u.X.end = bt), O.Xa && (u.j = [l, Se]), B(ee), u;
|
|
582
|
+
case Rt:
|
|
583
|
+
return i = W(), m(), i.elements = vt(Pt, !0, !0), j(i, "ArrayExpression");
|
|
584
|
+
case Ve:
|
|
585
|
+
for (i = W(), l = !0, u = !1, i.h = [], m(); !F(Ce); ) {
|
|
586
|
+
if (l)
|
|
587
|
+
l = !1;
|
|
588
|
+
else if (B(he), O.sb && F(Ce))
|
|
589
|
+
break;
|
|
590
|
+
var p = {
|
|
591
|
+
key: I === Be || I === et ? Qe() : ne(!0)
|
|
592
|
+
}, T = !1;
|
|
593
|
+
if (F(_e)) {
|
|
594
|
+
p.value = K(!0);
|
|
595
|
+
var L = p.kind = "init";
|
|
596
|
+
} else
|
|
597
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? te() : (T = u = !0, L = p.kind = p.key.name, p.key = I === Be || I === et ? Qe() : ne(!0), I !== oe && te(), p.value = yt(W(), !1));
|
|
598
|
+
if (p.key.type === "Identifier" && (Y || u))
|
|
599
|
+
for (var G = 0; G < i.h.length; ++G) {
|
|
600
|
+
var Ie = i.h[G];
|
|
601
|
+
if (Ie.key.name === p.key.name) {
|
|
602
|
+
var Mt = L === Ie.kind || T && Ie.kind === "init" || L === "init" && (Ie.kind === "get" || Ie.kind === "set");
|
|
603
|
+
Mt && !Y && L === "init" && Ie.kind === "init" && (Mt = !1), Mt && n(p.key.start, "Redefinition of property");
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
i.h.push(p);
|
|
607
|
+
}
|
|
608
|
+
return j(i, "ObjectExpression");
|
|
609
|
+
case Tt:
|
|
610
|
+
return i = W(), m(), yt(i, !1);
|
|
611
|
+
case Tn:
|
|
612
|
+
return i = W(), m(), i.callee = Me(Qe(), !0), i.arguments = F(oe) ? vt(ee, !1) : Pr, j(i, "NewExpression");
|
|
613
|
+
}
|
|
614
|
+
te();
|
|
615
|
+
}
|
|
616
|
+
function yt(i, l) {
|
|
617
|
+
I === ke ? i.id = ne() : l ? te() : i.id = null, i.oa = [];
|
|
618
|
+
var u = !0;
|
|
619
|
+
for (B(oe); !F(ee); )
|
|
620
|
+
u ? u = !1 : B(he), i.oa.push(ne());
|
|
621
|
+
u = Ue;
|
|
622
|
+
var p = V;
|
|
623
|
+
if (Ue = !0, V = [], i.body = Ne(!0), Ue = u, V = p, Y || i.body.body.length && pt(i.body.body[0])) {
|
|
624
|
+
for (u = i.id ? -1 : 0; u < i.oa.length; ++u)
|
|
625
|
+
if (p = 0 > u ? i.id : i.oa[u], (_n(p.name) || nt(p.name)) && n(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= u)
|
|
626
|
+
for (var T = 0; T < u; ++T)
|
|
627
|
+
p.name === i.oa[T].name && n(p.start, "Argument name clash in strict mode");
|
|
628
|
+
}
|
|
629
|
+
return j(i, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
630
|
+
}
|
|
631
|
+
function vt(i, l, u) {
|
|
632
|
+
for (var p = [], T = !0; !F(i); ) {
|
|
633
|
+
if (T)
|
|
634
|
+
T = !1;
|
|
635
|
+
else if (B(he), l && O.sb && F(i))
|
|
636
|
+
break;
|
|
637
|
+
p.push(u && I === he ? null : K(!0));
|
|
638
|
+
}
|
|
639
|
+
return p;
|
|
640
|
+
}
|
|
641
|
+
function ne(i) {
|
|
642
|
+
var l = W();
|
|
643
|
+
return i && O.yb === "everywhere" && (i = !1), I === ke ? (!i && (O.yb && Wr(Z) || Y && _n(Z)) && y.slice(_, Se).indexOf("\\") === -1 && n(_, "The keyword '" + Z + "' is reserved"), l.name = Z) : i && I.l ? l.name = I.l : te(), Fe = !1, m(), j(l, "Identifier");
|
|
644
|
+
}
|
|
645
|
+
e.version = "0.5.0";
|
|
646
|
+
var O, y = "", be, xt;
|
|
647
|
+
e.parse = function(i, l) {
|
|
648
|
+
y = String(i), be = y.length, O = l || {};
|
|
649
|
+
for (var u in pn)
|
|
650
|
+
Object.prototype.hasOwnProperty.call(O, u) || (O[u] = pn[u]);
|
|
651
|
+
for (xt = O.sourceFile, ye = 1, c = re = 0, Fe = !0, h(), u = O.dc, St = pe = c, O.C && (kt = new a()), Ue = Y = !1, V = [], v(), i = u || W(), l = !0, u || (i.body = []); I !== Ct; )
|
|
652
|
+
u = Q(), i.body.push(u), l && pt(u) && we(!0), l = !1;
|
|
653
|
+
return j(i, "Program");
|
|
654
|
+
};
|
|
655
|
+
var pn = {
|
|
656
|
+
fc: !1,
|
|
657
|
+
sb: !0,
|
|
658
|
+
yb: !1,
|
|
659
|
+
Ib: !1,
|
|
660
|
+
C: !1,
|
|
661
|
+
va: null,
|
|
662
|
+
Xa: !1,
|
|
663
|
+
dc: null,
|
|
664
|
+
sourceFile: null,
|
|
665
|
+
vb: null
|
|
666
|
+
}, c = 0, _ = 0, Se = 0, wt, bt, I, Z, Fe, ye, re, St = 0, pe = 0, kt, Ue, V, Y, Pr = [], Be = {
|
|
667
|
+
type: "num"
|
|
668
|
+
}, hn = {
|
|
669
|
+
type: "regexp"
|
|
670
|
+
}, et = {
|
|
671
|
+
type: "string"
|
|
672
|
+
}, ke = {
|
|
673
|
+
type: "name"
|
|
674
|
+
}, Ct = {
|
|
675
|
+
type: "eof"
|
|
676
|
+
}, Et = {
|
|
677
|
+
l: "break"
|
|
678
|
+
}, It = {
|
|
679
|
+
l: "case",
|
|
680
|
+
m: !0
|
|
681
|
+
}, dn = {
|
|
682
|
+
l: "catch"
|
|
683
|
+
}, mn = {
|
|
684
|
+
l: "continue"
|
|
685
|
+
}, gn = {
|
|
686
|
+
l: "debugger"
|
|
687
|
+
}, yn = {
|
|
688
|
+
l: "default"
|
|
689
|
+
}, vn = {
|
|
690
|
+
l: "do",
|
|
691
|
+
W: !0
|
|
692
|
+
}, xn = {
|
|
693
|
+
l: "else",
|
|
694
|
+
m: !0
|
|
695
|
+
}, wn = {
|
|
696
|
+
l: "finally"
|
|
697
|
+
}, bn = {
|
|
698
|
+
l: "for",
|
|
699
|
+
W: !0
|
|
700
|
+
}, Tt = {
|
|
701
|
+
l: "function"
|
|
702
|
+
}, Sn = {
|
|
703
|
+
l: "if"
|
|
704
|
+
}, kn = {
|
|
705
|
+
l: "return",
|
|
706
|
+
m: !0
|
|
707
|
+
}, At = {
|
|
708
|
+
l: "switch"
|
|
709
|
+
}, Cn = {
|
|
710
|
+
l: "throw",
|
|
711
|
+
m: !0
|
|
712
|
+
}, En = {
|
|
713
|
+
l: "try"
|
|
714
|
+
}, jt = {
|
|
715
|
+
l: "var"
|
|
716
|
+
}, Ot = {
|
|
717
|
+
l: "while",
|
|
718
|
+
W: !0
|
|
719
|
+
}, In = {
|
|
720
|
+
l: "with"
|
|
721
|
+
}, Tn = {
|
|
722
|
+
l: "new",
|
|
723
|
+
m: !0
|
|
724
|
+
}, An = {
|
|
725
|
+
l: "this"
|
|
726
|
+
}, jn = {
|
|
727
|
+
l: "null",
|
|
728
|
+
$a: null
|
|
729
|
+
}, On = {
|
|
730
|
+
l: "true",
|
|
731
|
+
$a: !0
|
|
732
|
+
}, Rn = {
|
|
733
|
+
l: "false",
|
|
734
|
+
$a: !1
|
|
735
|
+
}, tt = {
|
|
736
|
+
l: "in",
|
|
737
|
+
L: 7,
|
|
738
|
+
m: !0
|
|
739
|
+
}, Nr = {
|
|
740
|
+
break: Et,
|
|
741
|
+
case: It,
|
|
742
|
+
catch: dn,
|
|
743
|
+
continue: mn,
|
|
744
|
+
debugger: gn,
|
|
745
|
+
default: yn,
|
|
746
|
+
do: vn,
|
|
747
|
+
else: xn,
|
|
748
|
+
finally: wn,
|
|
749
|
+
for: bn,
|
|
750
|
+
function: Tt,
|
|
751
|
+
if: Sn,
|
|
752
|
+
return: kn,
|
|
753
|
+
switch: At,
|
|
754
|
+
throw: Cn,
|
|
755
|
+
try: En,
|
|
756
|
+
var: jt,
|
|
757
|
+
while: Ot,
|
|
758
|
+
with: In,
|
|
759
|
+
null: jn,
|
|
760
|
+
true: On,
|
|
761
|
+
false: Rn,
|
|
762
|
+
new: Tn,
|
|
763
|
+
in: tt,
|
|
764
|
+
instanceof: {
|
|
765
|
+
l: "instanceof",
|
|
766
|
+
L: 7,
|
|
767
|
+
m: !0
|
|
768
|
+
},
|
|
769
|
+
this: An,
|
|
770
|
+
typeof: {
|
|
771
|
+
l: "typeof",
|
|
772
|
+
prefix: !0,
|
|
773
|
+
m: !0
|
|
774
|
+
},
|
|
775
|
+
void: {
|
|
776
|
+
l: "void",
|
|
777
|
+
prefix: !0,
|
|
778
|
+
m: !0
|
|
779
|
+
},
|
|
780
|
+
delete: {
|
|
781
|
+
l: "delete",
|
|
782
|
+
prefix: !0,
|
|
783
|
+
m: !0
|
|
784
|
+
}
|
|
785
|
+
}, Rt = {
|
|
786
|
+
type: "[",
|
|
787
|
+
m: !0
|
|
788
|
+
}, Pt = {
|
|
789
|
+
type: "]"
|
|
790
|
+
}, Ve = {
|
|
791
|
+
type: "{",
|
|
792
|
+
m: !0
|
|
793
|
+
}, Ce = {
|
|
794
|
+
type: "}"
|
|
795
|
+
}, oe = {
|
|
796
|
+
type: "(",
|
|
797
|
+
m: !0
|
|
798
|
+
}, ee = {
|
|
799
|
+
type: ")"
|
|
800
|
+
}, he = {
|
|
801
|
+
type: ",",
|
|
802
|
+
m: !0
|
|
803
|
+
}, ie = {
|
|
804
|
+
type: ";",
|
|
805
|
+
m: !0
|
|
806
|
+
}, _e = {
|
|
807
|
+
type: ":",
|
|
808
|
+
m: !0
|
|
809
|
+
}, Pn = {
|
|
810
|
+
type: "."
|
|
811
|
+
}, Nn = {
|
|
812
|
+
type: "?",
|
|
813
|
+
m: !0
|
|
814
|
+
}, Mn = {
|
|
815
|
+
L: 10,
|
|
816
|
+
m: !0
|
|
817
|
+
}, Fn = {
|
|
818
|
+
Cb: !0,
|
|
819
|
+
m: !0
|
|
820
|
+
}, ve = {
|
|
821
|
+
Cb: !0,
|
|
822
|
+
m: !0
|
|
823
|
+
}, Mr = {
|
|
824
|
+
cc: !0,
|
|
825
|
+
prefix: !0,
|
|
826
|
+
$b: !0
|
|
827
|
+
}, Un = {
|
|
828
|
+
prefix: !0,
|
|
829
|
+
m: !0
|
|
830
|
+
}, Bn = {
|
|
831
|
+
L: 1,
|
|
832
|
+
m: !0
|
|
833
|
+
}, Vn = {
|
|
834
|
+
L: 2,
|
|
835
|
+
m: !0
|
|
836
|
+
}, Fr = {
|
|
837
|
+
L: 3,
|
|
838
|
+
m: !0
|
|
839
|
+
}, Ur = {
|
|
840
|
+
L: 4,
|
|
841
|
+
m: !0
|
|
842
|
+
}, Br = {
|
|
843
|
+
L: 5,
|
|
844
|
+
m: !0
|
|
845
|
+
}, Vr = {
|
|
846
|
+
L: 6,
|
|
847
|
+
m: !0
|
|
848
|
+
}, _r = {
|
|
849
|
+
L: 7,
|
|
850
|
+
m: !0
|
|
851
|
+
}, Lr = {
|
|
852
|
+
L: 8,
|
|
853
|
+
m: !0
|
|
854
|
+
}, $r = {
|
|
855
|
+
L: 9,
|
|
856
|
+
prefix: !0,
|
|
857
|
+
m: !0
|
|
858
|
+
}, Dr = {
|
|
859
|
+
L: 10,
|
|
860
|
+
m: !0
|
|
861
|
+
}, Wr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), nt = o("eval arguments"), Hr = 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"), Kr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ln = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Gr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), rt = /[\n\r\u2028\u2029]/, ot = /\r\n|[\n\r\u2028\u2029]/g, Ee, Nt = {
|
|
862
|
+
kind: "loop"
|
|
863
|
+
}, Xr = {
|
|
864
|
+
kind: "switch"
|
|
865
|
+
};
|
|
866
|
+
}, Bt = Bt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
867
|
+
fo(Bt.j || (Bt.j = {}));
|
|
868
|
+
function d(e, t) {
|
|
869
|
+
typeof e == "string" && (e = Ae(e, "code"));
|
|
870
|
+
var r = e.constructor;
|
|
871
|
+
this.ya = function() {
|
|
872
|
+
return new r({
|
|
873
|
+
options: {}
|
|
874
|
+
});
|
|
875
|
+
};
|
|
876
|
+
var n = this.ya(), o;
|
|
877
|
+
for (o in e)
|
|
878
|
+
n[o] = o === "body" ? e[o].slice() : e[o];
|
|
879
|
+
this.ra = n, this.ca = [], this.qb = t, this.za = !1, this.ba = [], this.Ya = 0, this.rb = /* @__PURE__ */ Object.create(null), e = /^step([A-Z]\w*)$/;
|
|
880
|
+
var a, s;
|
|
881
|
+
for (s in this)
|
|
882
|
+
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
883
|
+
this.N = _t(this, this.ra, null), this.Na = this.N.object, this.ra = Ae(this.ba.join(`
|
|
884
|
+
`), "polyfills"), this.ba = void 0, lt(this.ra), a = new k(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = n, a = new k(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
885
|
+
}
|
|
886
|
+
var Dn = {
|
|
887
|
+
C: !0,
|
|
888
|
+
kc: 5
|
|
889
|
+
}, Gt = {
|
|
890
|
+
configurable: !0,
|
|
891
|
+
enumerable: !0,
|
|
892
|
+
writable: !1
|
|
893
|
+
}, w = {
|
|
894
|
+
configurable: !0,
|
|
895
|
+
enumerable: !1,
|
|
896
|
+
writable: !0
|
|
897
|
+
}, J = {
|
|
898
|
+
configurable: !0,
|
|
899
|
+
enumerable: !1,
|
|
900
|
+
writable: !1
|
|
901
|
+
}, Le = {
|
|
902
|
+
configurable: !1,
|
|
903
|
+
enumerable: !1,
|
|
904
|
+
writable: !1
|
|
905
|
+
}, Wn = {
|
|
906
|
+
configurable: !1,
|
|
907
|
+
enumerable: !0,
|
|
908
|
+
writable: !0
|
|
909
|
+
}, lr = {
|
|
910
|
+
STEP_ERROR: !0
|
|
911
|
+
}, Oe = {
|
|
912
|
+
SCOPE_REFERENCE: !0
|
|
913
|
+
}, Xe = {
|
|
914
|
+
VALUE_IN_DESCRIPTOR: !0
|
|
915
|
+
}, Te = {
|
|
916
|
+
REGEXP_TIMEOUT: !0
|
|
917
|
+
}, Hn = [], se = null, Ke = null, de = typeof globalThis > "u" ? void 0 : globalThis, po = ["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();", "};"];
|
|
918
|
+
function Xt(e) {
|
|
919
|
+
var t = e >>> 0;
|
|
920
|
+
return t === Number(e) ? t : NaN;
|
|
921
|
+
}
|
|
922
|
+
function Ge(e) {
|
|
923
|
+
var t = e >>> 0;
|
|
924
|
+
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
925
|
+
}
|
|
926
|
+
function lt(e, t, r) {
|
|
927
|
+
t ? e.start = t : delete e.start, r ? e.end = r : delete e.end;
|
|
928
|
+
for (var n in e)
|
|
929
|
+
if (n !== "loc" && e.hasOwnProperty(n)) {
|
|
930
|
+
var o = e[n];
|
|
931
|
+
o && typeof o == "object" && lt(o, t, r);
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
d.prototype.REGEXP_MODE = 2;
|
|
935
|
+
d.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
936
|
+
d.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
937
|
+
N = d.prototype;
|
|
938
|
+
N.P = !1;
|
|
939
|
+
N.Ka = !1;
|
|
940
|
+
N.Kb = 0;
|
|
941
|
+
N.ic = 0;
|
|
942
|
+
function Ae(e, t) {
|
|
943
|
+
var r = {}, n;
|
|
944
|
+
for (n in Dn)
|
|
945
|
+
r[n] = Dn[n];
|
|
946
|
+
return r.sourceFile = t, de.j.parse(e, r);
|
|
947
|
+
}
|
|
948
|
+
N.Jb = function(e) {
|
|
949
|
+
var t = this.o[0];
|
|
950
|
+
if (!t || t.node.type !== "Program")
|
|
951
|
+
throw Error("Expecting original AST to start with a Program node");
|
|
952
|
+
if (typeof e == "string" && (e = Ae(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
953
|
+
throw Error("Expecting new AST to start with a Program node");
|
|
954
|
+
Je(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
955
|
+
};
|
|
956
|
+
N.lb = function() {
|
|
957
|
+
var e = this.o, t;
|
|
958
|
+
do {
|
|
959
|
+
var r = e[e.length - 1];
|
|
960
|
+
if (this.za)
|
|
961
|
+
break;
|
|
962
|
+
if (!r || r.node.type === "Program" && r.done) {
|
|
963
|
+
if (!this.ca.length)
|
|
964
|
+
return !1;
|
|
965
|
+
if (r = this.ca[0], !r || r.time > Date.now())
|
|
966
|
+
r = null;
|
|
967
|
+
else {
|
|
968
|
+
this.ca.shift(), 0 <= r.interval && fr(this, r, r.interval);
|
|
969
|
+
var n = new k(r.node, r.scope);
|
|
970
|
+
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
971
|
+
}
|
|
972
|
+
if (!r)
|
|
973
|
+
break;
|
|
974
|
+
}
|
|
975
|
+
n = r.node;
|
|
976
|
+
var o = Ke;
|
|
977
|
+
Ke = this;
|
|
978
|
+
try {
|
|
979
|
+
var a = this.rb[n.type](e, r, n);
|
|
980
|
+
} catch (s) {
|
|
981
|
+
if (s !== lr)
|
|
982
|
+
throw this.value !== s && (this.value = void 0), s;
|
|
983
|
+
} finally {
|
|
984
|
+
Ke = o;
|
|
985
|
+
}
|
|
986
|
+
if (a && e.push(a), this.P)
|
|
987
|
+
throw this.value = void 0, Error("Getter not supported in this context");
|
|
988
|
+
if (this.Ka)
|
|
989
|
+
throw this.value = void 0, Error("Setter not supported in this context");
|
|
990
|
+
t || n.end || (t = Date.now() + this.POLYFILL_TIMEOUT);
|
|
991
|
+
} while (!n.end && t > Date.now());
|
|
992
|
+
return !0;
|
|
993
|
+
};
|
|
994
|
+
N.Eb = function() {
|
|
995
|
+
for (; !this.za && this.lb(); )
|
|
996
|
+
;
|
|
997
|
+
return this.za;
|
|
998
|
+
};
|
|
999
|
+
function ho(e, t) {
|
|
1000
|
+
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Gt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), mo(e, t), go(e, t), t.xa = e.M, e.g(t, "constructor", e.v, w), yo(e, t), vo(e, t), xo(e, t), wo(e, t), bo(e, t), So(e, t), ko(e, t), Co(e, t), Eo(e, t);
|
|
1001
|
+
var r = e.i(function() {
|
|
1002
|
+
throw EvalError("Can't happen");
|
|
1003
|
+
}, !1);
|
|
1004
|
+
r.eval = !0, e.g(t, "eval", r, w), e.g(t, "parseInt", e.i(parseInt, !1), w), e.g(t, "parseFloat", e.i(parseFloat, !1), w), e.g(t, "isNaN", e.i(isNaN, !1), w), e.g(t, "isFinite", e.i(isFinite, !1), w);
|
|
1005
|
+
for (var n = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], o = 0; o < n.length; o++)
|
|
1006
|
+
r = function(a) {
|
|
1007
|
+
return function(s) {
|
|
1008
|
+
try {
|
|
1009
|
+
return a(s);
|
|
1010
|
+
} catch (f) {
|
|
1011
|
+
C(e, e.Gb, f.message);
|
|
1012
|
+
}
|
|
1013
|
+
};
|
|
1014
|
+
}(n[o][0]), e.g(t, n[o][1], e.i(r, !1), w);
|
|
1015
|
+
r = function(a) {
|
|
1016
|
+
return Kn(e, !1, arguments);
|
|
1017
|
+
}, e.g(t, "setTimeout", e.i(r, !1), w), r = function(a) {
|
|
1018
|
+
return Kn(e, !0, arguments);
|
|
1019
|
+
}, e.g(t, "setInterval", e.i(r, !1), w), r = function(a) {
|
|
1020
|
+
Gn(e, a);
|
|
1021
|
+
}, e.g(t, "clearTimeout", e.i(r, !1), w), r = function(a) {
|
|
1022
|
+
Gn(e, a);
|
|
1023
|
+
}, e.g(t, "clearInterval", e.i(r, !1), w), 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);
|
|
1024
|
+
}
|
|
1025
|
+
N.Wb = 0;
|
|
1026
|
+
function mo(e, t) {
|
|
1027
|
+
var r = /^[A-Za-z_$][\w$]*$/, n = function(o) {
|
|
1028
|
+
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1029
|
+
if (s) {
|
|
1030
|
+
s = s.split(/\s*,\s*/);
|
|
1031
|
+
for (var f = 0; f < s.length; f++) {
|
|
1032
|
+
var h = s[f];
|
|
1033
|
+
r.test(h) || C(e, e.T, "Invalid function argument: " + h);
|
|
1034
|
+
}
|
|
1035
|
+
s = s.join(", ");
|
|
1036
|
+
}
|
|
1037
|
+
try {
|
|
1038
|
+
var g = Ae("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1039
|
+
} catch (v) {
|
|
1040
|
+
C(e, e.T, "Invalid code: " + v.message);
|
|
1041
|
+
}
|
|
1042
|
+
return g.body.length !== 1 && C(e, e.T, "Invalid code in function body"), Yt(e, g.body[0].la, e.N, "anonymous");
|
|
1043
|
+
};
|
|
1044
|
+
e.O = e.i(n, !0), e.g(t, "Function", e.O, w), e.g(e.O, "prototype", e.Z, w), e.g(e.Z, "constructor", e.O, w), e.Z.Ta = function() {
|
|
1045
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, J), e.Z.H = "Function", n = function(o, a) {
|
|
1046
|
+
var s = e.o[e.o.length - 1];
|
|
1047
|
+
s.U = this, s.B = o, s.F = [], a != null && (a instanceof R ? s.F = ur(e, a) : C(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1048
|
+
}, D(e, e.O, "apply", n), n = function(o) {
|
|
1049
|
+
var a = e.o[e.o.length - 1];
|
|
1050
|
+
a.U = this, a.B = o, a.F = [];
|
|
1051
|
+
for (var s = 1; s < arguments.length; s++)
|
|
1052
|
+
a.F.push(arguments[s]);
|
|
1053
|
+
a.eb = !1;
|
|
1054
|
+
}, D(e, e.O, "call", n), 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;", "}", "});", ""), n = function() {
|
|
1055
|
+
return String(this);
|
|
1056
|
+
}, D(e, e.O, "toString", n), e.g(e.O, "toString", e.i(n, !1), w), n = function() {
|
|
1057
|
+
return this.valueOf();
|
|
1058
|
+
}, D(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), w);
|
|
1059
|
+
}
|
|
1060
|
+
function go(e, t) {
|
|
1061
|
+
function r(o) {
|
|
1062
|
+
o != null || C(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1063
|
+
}
|
|
1064
|
+
var n = function(o) {
|
|
1065
|
+
if (o == null)
|
|
1066
|
+
return ce(e) ? this : e.s(e.M);
|
|
1067
|
+
if (!(o instanceof R)) {
|
|
1068
|
+
var a = e.s(le(e, o));
|
|
1069
|
+
return a.data = o, a;
|
|
1070
|
+
}
|
|
1071
|
+
return o;
|
|
1072
|
+
};
|
|
1073
|
+
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M, w), e.g(e.M, "constructor", e.v, w), e.g(t, "Object", e.v, w), n = function(o) {
|
|
1074
|
+
return r(o), ae(e, Object.getOwnPropertyNames(o instanceof R ? o.h : o));
|
|
1075
|
+
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1), w), n = function(o) {
|
|
1076
|
+
return r(o), o instanceof R && (o = o.h), ae(e, Object.keys(o));
|
|
1077
|
+
}, e.g(e.v, "keys", e.i(n, !1), w), n = function(o) {
|
|
1078
|
+
return o === null ? e.s(null) : (o instanceof R || C(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1079
|
+
}, e.g(e.v, "create", e.i(n, !1), w), 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;", "};", "})();", ""), n = function(o, a, s) {
|
|
1080
|
+
return a = String(a), o instanceof R || C(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof R || C(e, e.j, "Property description must be an object"), !o.preventExtensions || a in o.h || C(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(o, a, Xe, s.h), o;
|
|
1081
|
+
}, e.g(e.v, "defineProperty", e.i(n, !1), w), 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;", "}", "});", ""), n = function(o, a) {
|
|
1082
|
+
if (o instanceof R || C(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), a = String(a), a in o.h) {
|
|
1083
|
+
var s = Object.getOwnPropertyDescriptor(o.h, a), f = o.V[a];
|
|
1084
|
+
return o = o.Y[a], a = e.s(e.M), f || o ? (e.g(a, "get", f), e.g(a, "set", o)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1085
|
+
}
|
|
1086
|
+
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1), w), n = function(o) {
|
|
1087
|
+
return r(o), le(e, o);
|
|
1088
|
+
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), w), n = function(o) {
|
|
1089
|
+
return !!o && !o.preventExtensions;
|
|
1090
|
+
}, e.g(e.v, "isExtensible", e.i(n, !1), w), n = function(o) {
|
|
1091
|
+
return o instanceof R && (o.preventExtensions = !0), o;
|
|
1092
|
+
}, e.g(e.v, "preventExtensions", e.i(n, !1), w), D(e, e.v, "toString", R.prototype.toString), D(e, e.v, "toLocaleString", R.prototype.toString), D(e, e.v, "valueOf", R.prototype.valueOf), n = function(o) {
|
|
1093
|
+
return r(this), this instanceof R ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1094
|
+
}, D(e, e.v, "hasOwnProperty", n), n = function(o) {
|
|
1095
|
+
return r(this), this instanceof R ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1096
|
+
}, D(e, e.v, "propertyIsEnumerable", n), n = function(o) {
|
|
1097
|
+
for (; ; ) {
|
|
1098
|
+
if (o = le(e, o), !o)
|
|
1099
|
+
return !1;
|
|
1100
|
+
if (o === this)
|
|
1101
|
+
return !0;
|
|
1102
|
+
}
|
|
1103
|
+
}, D(e, e.v, "isPrototypeOf", n);
|
|
1104
|
+
}
|
|
1105
|
+
function yo(e, t) {
|
|
1106
|
+
var r = function(n) {
|
|
1107
|
+
var o = ce(e) ? this : je(e), a = arguments[0];
|
|
1108
|
+
if (arguments.length === 1 && typeof a == "number")
|
|
1109
|
+
isNaN(Xt(a)) && C(e, e.ob, "Invalid array length: " + a), o.h.length = a;
|
|
1110
|
+
else {
|
|
1111
|
+
for (a = 0; a < arguments.length; a++)
|
|
1112
|
+
o.h[a] = arguments[a];
|
|
1113
|
+
o.h.length = a;
|
|
1114
|
+
}
|
|
1115
|
+
return o;
|
|
1116
|
+
};
|
|
1117
|
+
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, w), r = function(n) {
|
|
1118
|
+
return n && n.H === "Array";
|
|
1119
|
+
}, e.g(e.qa, "isArray", e.i(r, !1), w), e.g(e.La, "length", 0, {
|
|
1120
|
+
configurable: !1,
|
|
1121
|
+
enumerable: !1,
|
|
1122
|
+
writable: !0
|
|
1123
|
+
}), 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(',');", "}", ");", "})();", "");
|
|
1124
|
+
}
|
|
1125
|
+
function vo(e, t) {
|
|
1126
|
+
var r = function(n) {
|
|
1127
|
+
return n = arguments.length ? de.String(n) : "", ce(e) ? (this.data = n, this) : n;
|
|
1128
|
+
};
|
|
1129
|
+
for (e.J = e.i(r, !0), e.g(t, "String", e.J, w), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), w), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), r = 0; r < t.length; r++)
|
|
1130
|
+
D(e, e.J, t[r], String.prototype[t[r]]);
|
|
1131
|
+
r = function(n, o, a) {
|
|
1132
|
+
o = e.R(o), a = e.R(a);
|
|
1133
|
+
try {
|
|
1134
|
+
return String(this).localeCompare(n, o, a);
|
|
1135
|
+
} catch (s) {
|
|
1136
|
+
C(e, e.D, "localeCompare: " + s.message);
|
|
1137
|
+
}
|
|
1138
|
+
}, D(e, e.J, "localeCompare", r), r = function(n, o, a) {
|
|
1139
|
+
var s = String(this);
|
|
1140
|
+
if (o = o ? Number(o) : void 0, H(e, n, e.I) && (n = n.data, De(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1141
|
+
if (se)
|
|
1142
|
+
n = $e(e, "string.split(separator, limit)", {
|
|
1143
|
+
string: s,
|
|
1144
|
+
separator: n,
|
|
1145
|
+
limit: o
|
|
1146
|
+
}, n, a), n !== Te && a(ae(e, n));
|
|
1147
|
+
else {
|
|
1148
|
+
var f = e.ha(), h = We(e, n, f, a);
|
|
1149
|
+
f.onmessage = function(g) {
|
|
1150
|
+
clearTimeout(h), a(ae(e, g.data));
|
|
1151
|
+
}, f.postMessage(["split", s, n, o]);
|
|
1152
|
+
}
|
|
1153
|
+
return;
|
|
1154
|
+
}
|
|
1155
|
+
n = s.split(n, o), a(ae(e, n));
|
|
1156
|
+
}, He(e, e.J, "split", r), r = function(n, o) {
|
|
1157
|
+
var a = String(this);
|
|
1158
|
+
if (n = H(e, n, e.I) ? n.data : new RegExp(n), De(e, n, o), e.REGEXP_MODE === 2)
|
|
1159
|
+
if (se)
|
|
1160
|
+
n = $e(e, "string.match(regexp)", {
|
|
1161
|
+
string: a,
|
|
1162
|
+
regexp: n
|
|
1163
|
+
}, n, o), n !== Te && o(n && ae(e, n));
|
|
1164
|
+
else {
|
|
1165
|
+
var s = e.ha(), f = We(e, n, s, o);
|
|
1166
|
+
s.onmessage = function(h) {
|
|
1167
|
+
clearTimeout(f), o(h.data && ae(e, h.data));
|
|
1168
|
+
}, s.postMessage(["match", a, n]);
|
|
1169
|
+
}
|
|
1170
|
+
else
|
|
1171
|
+
n = a.match(n), o(n && ae(e, n));
|
|
1172
|
+
}, He(e, e.J, "match", r), r = function(n, o) {
|
|
1173
|
+
var a = String(this);
|
|
1174
|
+
if (H(e, n, e.I) ? n = n.data : n = new RegExp(n), De(e, n, o), e.REGEXP_MODE === 2)
|
|
1175
|
+
if (se)
|
|
1176
|
+
n = $e(e, "string.search(regexp)", {
|
|
1177
|
+
string: a,
|
|
1178
|
+
regexp: n
|
|
1179
|
+
}, n, o), n !== Te && o(n);
|
|
1180
|
+
else {
|
|
1181
|
+
var s = e.ha(), f = We(e, n, s, o);
|
|
1182
|
+
s.onmessage = function(h) {
|
|
1183
|
+
clearTimeout(f), o(h.data);
|
|
1184
|
+
}, s.postMessage(["search", a, n]);
|
|
1185
|
+
}
|
|
1186
|
+
else
|
|
1187
|
+
o(a.search(n));
|
|
1188
|
+
}, He(e, e.J, "search", r), r = function(n, o, a) {
|
|
1189
|
+
var s = String(this);
|
|
1190
|
+
if (o = String(o), H(e, n, e.I) && (n = n.data, De(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1191
|
+
if (se)
|
|
1192
|
+
n = $e(e, "string.replace(substr, newSubstr)", {
|
|
1193
|
+
string: s,
|
|
1194
|
+
substr: n,
|
|
1195
|
+
newSubstr: o
|
|
1196
|
+
}, n, a), n !== Te && a(n);
|
|
1197
|
+
else {
|
|
1198
|
+
var f = e.ha(), h = We(e, n, f, a);
|
|
1199
|
+
f.onmessage = function(g) {
|
|
1200
|
+
clearTimeout(h), a(g.data);
|
|
1201
|
+
}, f.postMessage(["replace", s, n, o]);
|
|
1202
|
+
}
|
|
1203
|
+
return;
|
|
1204
|
+
}
|
|
1205
|
+
a(s.replace(n, o));
|
|
1206
|
+
}, He(e, e.J, "replace", r), 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;", "};", "})();", "");
|
|
1207
|
+
}
|
|
1208
|
+
function xo(e, t) {
|
|
1209
|
+
e.mb = e.i(function(r) {
|
|
1210
|
+
return r = de.Boolean(r), ce(e) ? (this.data = r, this) : r;
|
|
1211
|
+
}, !0), e.g(t, "Boolean", e.mb, w);
|
|
1212
|
+
}
|
|
1213
|
+
function wo(e, t) {
|
|
1214
|
+
var r = function(n) {
|
|
1215
|
+
return n = arguments.length ? de.Number(n) : 0, ce(e) ? (this.data = n, this) : n;
|
|
1216
|
+
};
|
|
1217
|
+
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa, w), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], r = 0; r < t.length; r++)
|
|
1218
|
+
e.g(e.aa, t[r], Number[t[r]], Le);
|
|
1219
|
+
r = function(n) {
|
|
1220
|
+
try {
|
|
1221
|
+
return Number(this).toExponential(n);
|
|
1222
|
+
} catch (o) {
|
|
1223
|
+
C(e, e.D, o.message);
|
|
1224
|
+
}
|
|
1225
|
+
}, D(e, e.aa, "toExponential", r), r = function(n) {
|
|
1226
|
+
try {
|
|
1227
|
+
return Number(this).toFixed(n);
|
|
1228
|
+
} catch (o) {
|
|
1229
|
+
C(e, e.D, o.message);
|
|
1230
|
+
}
|
|
1231
|
+
}, D(e, e.aa, "toFixed", r), r = function(n) {
|
|
1232
|
+
try {
|
|
1233
|
+
return Number(this).toPrecision(n);
|
|
1234
|
+
} catch (o) {
|
|
1235
|
+
C(e, e.D, o.message);
|
|
1236
|
+
}
|
|
1237
|
+
}, D(e, e.aa, "toPrecision", r), r = function(n) {
|
|
1238
|
+
try {
|
|
1239
|
+
return Number(this).toString(n);
|
|
1240
|
+
} catch (o) {
|
|
1241
|
+
C(e, e.D, o.message);
|
|
1242
|
+
}
|
|
1243
|
+
}, D(e, e.aa, "toString", r), r = function(n, o) {
|
|
1244
|
+
n = n ? e.R(n) : void 0, o = o ? e.R(o) : void 0;
|
|
1245
|
+
try {
|
|
1246
|
+
return Number(this).toLocaleString(n, o);
|
|
1247
|
+
} catch (a) {
|
|
1248
|
+
C(e, e.D, "toLocaleString: " + a.message);
|
|
1249
|
+
}
|
|
1250
|
+
}, D(e, e.aa, "toLocaleString", r);
|
|
1251
|
+
}
|
|
1252
|
+
function bo(e, t) {
|
|
1253
|
+
var r = function(o, a) {
|
|
1254
|
+
if (!ce(e))
|
|
1255
|
+
return de.Date();
|
|
1256
|
+
var s = [null].concat(Array.from(arguments));
|
|
1257
|
+
return this.data = new (Function.prototype.bind.apply(de.Date, s))(), this;
|
|
1258
|
+
};
|
|
1259
|
+
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, w), e.g(e.$, "now", e.i(Date.now, !1), w), e.g(e.$, "parse", e.i(Date.parse, !1), w), e.g(e.$, "UTC", e.i(Date.UTC, !1), w), 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(" ");
|
|
1260
|
+
for (var n = 0; n < t.length; n++)
|
|
1261
|
+
r = function(o) {
|
|
1262
|
+
return function(a) {
|
|
1263
|
+
var s = this.data;
|
|
1264
|
+
s instanceof Date || C(e, e.j, o + " not called on a Date");
|
|
1265
|
+
for (var f = [], h = 0; h < arguments.length; h++)
|
|
1266
|
+
f[h] = e.R(arguments[h]);
|
|
1267
|
+
return s[o].apply(s, f);
|
|
1268
|
+
};
|
|
1269
|
+
}(t[n]), D(e, e.$, t[n], r);
|
|
1270
|
+
}
|
|
1271
|
+
function So(e, t) {
|
|
1272
|
+
var r = function(n, o) {
|
|
1273
|
+
if (ce(e))
|
|
1274
|
+
var a = this;
|
|
1275
|
+
else {
|
|
1276
|
+
if (o === void 0 && H(e, n, e.I))
|
|
1277
|
+
return n;
|
|
1278
|
+
a = e.s(e.Ma);
|
|
1279
|
+
}
|
|
1280
|
+
n = n === void 0 ? "" : String(n), o = o ? String(o) : "", /^[gmi]*$/.test(o) || C(e, e.T, "Invalid regexp flag: " + o);
|
|
1281
|
+
try {
|
|
1282
|
+
var s = new de.RegExp(n, o);
|
|
1283
|
+
} catch (f) {
|
|
1284
|
+
C(e, e.T, f.message);
|
|
1285
|
+
}
|
|
1286
|
+
return Jt(e, a, s), a;
|
|
1287
|
+
};
|
|
1288
|
+
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, w), e.g(e.I.h.prototype, "global", void 0, J), e.g(e.I.h.prototype, "ignoreCase", void 0, J), e.g(e.I.h.prototype, "multiline", void 0, J), e.g(e.I.h.prototype, "source", "(?:)", J), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, o) {
|
|
1289
|
+
function a(v) {
|
|
1290
|
+
if (v) {
|
|
1291
|
+
var b = ae(e, v);
|
|
1292
|
+
return e.g(b, "index", v.index), e.g(b, "input", v.input), b;
|
|
1293
|
+
}
|
|
1294
|
+
return null;
|
|
1295
|
+
}
|
|
1296
|
+
var s = this.data;
|
|
1297
|
+
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")), De(e, s, o), e.REGEXP_MODE === 2)
|
|
1298
|
+
if (se)
|
|
1299
|
+
n = $e(e, "regexp.exec(string)", {
|
|
1300
|
+
string: n,
|
|
1301
|
+
regexp: s
|
|
1302
|
+
}, s, o), n !== Te && (e.g(this, "lastIndex", s.lastIndex), o(a(n)));
|
|
1303
|
+
else {
|
|
1304
|
+
var f = e.ha(), h = We(e, s, f, o), g = this;
|
|
1305
|
+
f.onmessage = function(v) {
|
|
1306
|
+
clearTimeout(h), e.g(g, "lastIndex", v.data[1]), o(a(v.data[0]));
|
|
1307
|
+
}, f.postMessage(["exec", s, s.lastIndex, n]);
|
|
1308
|
+
}
|
|
1309
|
+
else
|
|
1310
|
+
n = s.exec(n), e.g(this, "lastIndex", s.lastIndex), o(a(n));
|
|
1311
|
+
}, He(e, e.I, "exec", r);
|
|
1312
|
+
}
|
|
1313
|
+
function ko(e, t) {
|
|
1314
|
+
function r(n) {
|
|
1315
|
+
var o = e.i(function(a) {
|
|
1316
|
+
var s = ce(e) ? this : e.Aa(o);
|
|
1317
|
+
return Vt(e, s, a), s;
|
|
1318
|
+
}, !0);
|
|
1319
|
+
return e.g(o, "prototype", e.Aa(e.D), w), e.g(o.h.prototype, "name", n, w), e.g(t, n, o, w), o;
|
|
1320
|
+
}
|
|
1321
|
+
e.D = e.i(function(n) {
|
|
1322
|
+
var o = ce(e) ? this : e.Aa(e.D);
|
|
1323
|
+
return Vt(e, o, n), o;
|
|
1324
|
+
}, !0), e.g(t, "Error", e.D, w), e.g(e.D.h.prototype, "message", "", w), e.g(e.D.h.prototype, "name", "Error", w), r("EvalError"), e.ob = r("RangeError"), e.pb = r("ReferenceError"), e.T = r("SyntaxError"), e.j = r("TypeError"), e.Gb = r("URIError");
|
|
1325
|
+
}
|
|
1326
|
+
function Co(e, t) {
|
|
1327
|
+
var r = e.s(e.M);
|
|
1328
|
+
e.g(t, "Math", r, w);
|
|
1329
|
+
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1330
|
+
for (t = 0; t < n.length; t++)
|
|
1331
|
+
e.g(r, n[t], Math[n[t]], J);
|
|
1332
|
+
for (n = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < n.length; t++)
|
|
1333
|
+
e.g(r, n[t], e.i(Math[n[t]], !1), w);
|
|
1334
|
+
}
|
|
1335
|
+
function Eo(e, t) {
|
|
1336
|
+
var r = e.s(e.M);
|
|
1337
|
+
e.g(t, "JSON", r, w), t = function(n) {
|
|
1338
|
+
try {
|
|
1339
|
+
var o = JSON.parse(String(n));
|
|
1340
|
+
} catch (a) {
|
|
1341
|
+
C(e, e.T, a.message);
|
|
1342
|
+
}
|
|
1343
|
+
return e.Ia(o);
|
|
1344
|
+
}, e.g(r, "parse", e.i(t, !1)), t = function(n, o, a) {
|
|
1345
|
+
o && o.H === "Function" ? C(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = ur(e, o), o = o.filter(function(f) {
|
|
1346
|
+
return typeof f == "string" || typeof f == "number";
|
|
1347
|
+
})) : o = null, typeof a != "string" && typeof a != "number" && (a = void 0), n = e.R(n);
|
|
1348
|
+
try {
|
|
1349
|
+
var s = JSON.stringify(n, o, a);
|
|
1350
|
+
} catch (f) {
|
|
1351
|
+
C(e, e.j, f.message);
|
|
1352
|
+
}
|
|
1353
|
+
return s;
|
|
1354
|
+
}, e.g(r, "stringify", e.i(t, !1));
|
|
1355
|
+
}
|
|
1356
|
+
function H(e, t, r) {
|
|
1357
|
+
if (t == null || !r)
|
|
1358
|
+
return !1;
|
|
1359
|
+
if (r = r.h.prototype, t === r)
|
|
1360
|
+
return !0;
|
|
1361
|
+
for (t = le(e, t); t; ) {
|
|
1362
|
+
if (t === r)
|
|
1363
|
+
return !0;
|
|
1364
|
+
t = t.xa;
|
|
1365
|
+
}
|
|
1366
|
+
return !1;
|
|
1367
|
+
}
|
|
1368
|
+
function Jt(e, t, r) {
|
|
1369
|
+
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, w), e.g(t, "source", r.source, J), e.g(t, "global", r.global, J), e.g(t, "ignoreCase", r.ignoreCase, J), e.g(t, "multiline", r.multiline, J);
|
|
1370
|
+
}
|
|
1371
|
+
function Vt(e, t, r) {
|
|
1372
|
+
r && e.g(t, "message", String(r), w), r = [];
|
|
1373
|
+
for (var n = e.o.length - 1; 0 <= n; n--) {
|
|
1374
|
+
var o = e.o[n], a = o.node;
|
|
1375
|
+
a.type === "CallExpression" && (o = o.U) && r.length && (r[r.length - 1].Ob = e.G(o, "name")), !a.X || r.length && a.type !== "CallExpression" || r.push({
|
|
1376
|
+
Nb: a.X
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
for (n = String(e.G(t, "name")), a = String(e.G(t, "message")), a = n + ": " + a + `
|
|
1380
|
+
`, n = 0; n < r.length; n++) {
|
|
1381
|
+
var s = r[n].Nb;
|
|
1382
|
+
o = r[n].Ob, s = s.source + ":" + s.start.line + ":" + s.start.ab, a = o ? a + (" at " + o + " (" + s + `)
|
|
1383
|
+
`) : a + (" at " + s + `
|
|
1384
|
+
`);
|
|
1385
|
+
}
|
|
1386
|
+
e.g(t, "stack", a.trim(), w);
|
|
1387
|
+
}
|
|
1388
|
+
N.ha = function() {
|
|
1389
|
+
var e = this.ha.Mb;
|
|
1390
|
+
return e || (e = new Blob([po.join(`
|
|
1391
|
+
`)], {
|
|
1392
|
+
type: "application/javascript"
|
|
1393
|
+
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1394
|
+
};
|
|
1395
|
+
function $e(e, t, r, n, o) {
|
|
1396
|
+
var a = {
|
|
1397
|
+
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1398
|
+
};
|
|
1399
|
+
try {
|
|
1400
|
+
return se.runInNewContext(t, r, a);
|
|
1401
|
+
} catch {
|
|
1402
|
+
o(null), C(e, e.D, "RegExp Timeout: " + n);
|
|
1403
|
+
}
|
|
1404
|
+
return Te;
|
|
1405
|
+
}
|
|
1406
|
+
function De(e, t, r) {
|
|
1407
|
+
if (e.REGEXP_MODE === 0)
|
|
1408
|
+
var n = !1;
|
|
1409
|
+
else if (e.REGEXP_MODE === 1)
|
|
1410
|
+
n = !0;
|
|
1411
|
+
else if (se)
|
|
1412
|
+
n = !0;
|
|
1413
|
+
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1414
|
+
n = !0;
|
|
1415
|
+
else if (typeof require == "function") {
|
|
1416
|
+
try {
|
|
1417
|
+
se = require("vm");
|
|
1418
|
+
} catch {
|
|
1419
|
+
}
|
|
1420
|
+
n = !!se;
|
|
1421
|
+
} else
|
|
1422
|
+
n = !1;
|
|
1423
|
+
n || (r(null), C(e, e.D, "Regular expressions not supported: " + t));
|
|
1424
|
+
}
|
|
1425
|
+
function We(e, t, r, n) {
|
|
1426
|
+
return setTimeout(function() {
|
|
1427
|
+
r.terminate(), n(null);
|
|
1428
|
+
try {
|
|
1429
|
+
C(e, e.D, "RegExp Timeout: " + t);
|
|
1430
|
+
} catch {
|
|
1431
|
+
}
|
|
1432
|
+
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1433
|
+
}
|
|
1434
|
+
N.Aa = function(e) {
|
|
1435
|
+
return this.s(e && e.h.prototype);
|
|
1436
|
+
};
|
|
1437
|
+
N.s = function(e) {
|
|
1438
|
+
if (typeof e != "object")
|
|
1439
|
+
throw Error("Non object prototype");
|
|
1440
|
+
return e = new R(e), H(this, e, this.D) && (e.H = "Error"), e;
|
|
1441
|
+
};
|
|
1442
|
+
function je(e) {
|
|
1443
|
+
var t = e.s(e.La);
|
|
1444
|
+
return e.g(t, "length", 0, {
|
|
1445
|
+
configurable: !1,
|
|
1446
|
+
enumerable: !1,
|
|
1447
|
+
writable: !0
|
|
1448
|
+
}), t.H = "Array", t;
|
|
1449
|
+
}
|
|
1450
|
+
function zt(e, t, r) {
|
|
1451
|
+
var n = e.s(e.Z);
|
|
1452
|
+
return r ? (r = e.s(e.M), e.g(n, "prototype", r, w), e.g(r, "constructor", n, w)) : n.Ab = !0, e.g(n, "length", t, J), n.H = "Function", n;
|
|
1453
|
+
}
|
|
1454
|
+
function Yt(e, t, r, n) {
|
|
1455
|
+
var o = zt(e, t.oa.length, !0);
|
|
1456
|
+
return o.Va = r, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : n || "", J), o;
|
|
1457
|
+
}
|
|
1458
|
+
N.i = function(e, t) {
|
|
1459
|
+
return t = zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, J), t;
|
|
1460
|
+
};
|
|
1461
|
+
N.ub = function(e) {
|
|
1462
|
+
var t = zt(this, e.length, !0);
|
|
1463
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, J), t;
|
|
1464
|
+
};
|
|
1465
|
+
N.Ia = function(e) {
|
|
1466
|
+
if (e instanceof R)
|
|
1467
|
+
throw Error("Object is already pseudo");
|
|
1468
|
+
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1469
|
+
return e;
|
|
1470
|
+
if (e instanceof RegExp) {
|
|
1471
|
+
var t = this.s(this.Ma);
|
|
1472
|
+
return Jt(this, t, e), t;
|
|
1473
|
+
}
|
|
1474
|
+
if (e instanceof Date)
|
|
1475
|
+
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
1476
|
+
if (typeof e == "function") {
|
|
1477
|
+
var r = this;
|
|
1478
|
+
return t = Object.getOwnPropertyDescriptor(e, "prototype"), this.i(function() {
|
|
1479
|
+
var o = Array.prototype.slice.call(arguments).map(function(a) {
|
|
1480
|
+
return r.R(a);
|
|
1481
|
+
});
|
|
1482
|
+
return o = e.apply(r, o), r.Ia(o);
|
|
1483
|
+
}, !!t);
|
|
1484
|
+
}
|
|
1485
|
+
if (Array.isArray(e)) {
|
|
1486
|
+
t = je(this);
|
|
1487
|
+
for (var n = 0; n < e.length; n++)
|
|
1488
|
+
n in e && this.g(t, n, this.Ia(e[n]));
|
|
1489
|
+
return t;
|
|
1490
|
+
}
|
|
1491
|
+
t = this.s(this.M);
|
|
1492
|
+
for (n in e)
|
|
1493
|
+
this.g(t, n, this.Ia(e[n]));
|
|
1494
|
+
return t;
|
|
1495
|
+
};
|
|
1496
|
+
N.R = function(e, t) {
|
|
1497
|
+
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1498
|
+
return e;
|
|
1499
|
+
if (!(e instanceof R))
|
|
1500
|
+
throw Error("Object is not pseudo");
|
|
1501
|
+
if (H(this, e, this.I))
|
|
1502
|
+
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
1503
|
+
if (H(this, e, this.$))
|
|
1504
|
+
return new Date(e.data.valueOf());
|
|
1505
|
+
t = t || {
|
|
1506
|
+
hb: [],
|
|
1507
|
+
Sa: []
|
|
1508
|
+
};
|
|
1509
|
+
var r = t.hb.indexOf(e);
|
|
1510
|
+
if (r !== -1)
|
|
1511
|
+
return t.Sa[r];
|
|
1512
|
+
if (t.hb.push(e), H(this, e, this.qa)) {
|
|
1513
|
+
r = [], t.Sa.push(r);
|
|
1514
|
+
for (var n = this.G(e, "length"), o = 0; o < n; o++)
|
|
1515
|
+
ut(this, e, o) && (r[o] = this.R(this.G(e, o), t));
|
|
1516
|
+
} else
|
|
1517
|
+
for (n in r = {}, t.Sa.push(r), e.h)
|
|
1518
|
+
o = this.R(e.h[n], t), Object.defineProperty(r, n, {
|
|
1519
|
+
value: o,
|
|
1520
|
+
writable: !0,
|
|
1521
|
+
enumerable: !0,
|
|
1522
|
+
configurable: !0
|
|
1523
|
+
});
|
|
1524
|
+
return t.hb.pop(), t.Sa.pop(), r;
|
|
1525
|
+
};
|
|
1526
|
+
function ae(e, t) {
|
|
1527
|
+
for (var r = je(e), n = Object.getOwnPropertyNames(t), o = 0; o < n.length; o++)
|
|
1528
|
+
e.g(r, n[o], t[n[o]]);
|
|
1529
|
+
return r;
|
|
1530
|
+
}
|
|
1531
|
+
function ur(e, t) {
|
|
1532
|
+
var r = [], n;
|
|
1533
|
+
for (n in t.h)
|
|
1534
|
+
r[n] = e.G(t, n);
|
|
1535
|
+
return r.length = Xt(e.G(t, "length")) || 0, r;
|
|
1536
|
+
}
|
|
1537
|
+
function le(e, t) {
|
|
1538
|
+
switch (typeof t) {
|
|
1539
|
+
case "number":
|
|
1540
|
+
return e.aa.h.prototype;
|
|
1541
|
+
case "boolean":
|
|
1542
|
+
return e.mb.h.prototype;
|
|
1543
|
+
case "string":
|
|
1544
|
+
return e.J.h.prototype;
|
|
1545
|
+
}
|
|
1546
|
+
return t ? t.xa : null;
|
|
1547
|
+
}
|
|
1548
|
+
N.G = function(e, t) {
|
|
1549
|
+
if (this.P)
|
|
1550
|
+
throw Error("Getter not supported in that context");
|
|
1551
|
+
if (t = String(t), e != null || C(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof R))
|
|
1552
|
+
throw TypeError("Expecting native value or pseudo object");
|
|
1553
|
+
if (t === "length") {
|
|
1554
|
+
if (H(this, e, this.J))
|
|
1555
|
+
return String(e).length;
|
|
1556
|
+
} else if (64 > t.charCodeAt(0) && H(this, e, this.J)) {
|
|
1557
|
+
var r = Ge(t);
|
|
1558
|
+
if (!isNaN(r) && r < String(e).length)
|
|
1559
|
+
return String(e)[r];
|
|
1560
|
+
}
|
|
1561
|
+
do
|
|
1562
|
+
if (e.h && t in e.h)
|
|
1563
|
+
return (r = e.V[t]) ? (this.P = !0, r) : e.h[t];
|
|
1564
|
+
while (e = le(this, e));
|
|
1565
|
+
};
|
|
1566
|
+
function ut(e, t, r) {
|
|
1567
|
+
if (!(t instanceof R))
|
|
1568
|
+
throw TypeError("Primitive data type has no properties");
|
|
1569
|
+
if (r = String(r), r === "length" && H(e, t, e.J))
|
|
1570
|
+
return !0;
|
|
1571
|
+
if (H(e, t, e.J)) {
|
|
1572
|
+
var n = Ge(r);
|
|
1573
|
+
if (!isNaN(n) && n < String(t).length)
|
|
1574
|
+
return !0;
|
|
1575
|
+
}
|
|
1576
|
+
do
|
|
1577
|
+
if (t.h && r in t.h)
|
|
1578
|
+
return !0;
|
|
1579
|
+
while (t = le(e, t));
|
|
1580
|
+
return !1;
|
|
1581
|
+
}
|
|
1582
|
+
N.g = function(e, t, r, n) {
|
|
1583
|
+
if (this.Ka)
|
|
1584
|
+
throw Error("Setter not supported in that context");
|
|
1585
|
+
if (t = String(t), e != null || C(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof R))
|
|
1586
|
+
throw TypeError("Expecting native value or pseudo object");
|
|
1587
|
+
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && C(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1588
|
+
var o = !this.o || qt(this).S;
|
|
1589
|
+
if (e instanceof R) {
|
|
1590
|
+
if (H(this, e, this.J)) {
|
|
1591
|
+
var a = Ge(t);
|
|
1592
|
+
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1593
|
+
o && C(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1594
|
+
return;
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
if (e.H === "Array")
|
|
1598
|
+
if (a = e.h.length, t === "length") {
|
|
1599
|
+
if (n) {
|
|
1600
|
+
if (!("value" in n))
|
|
1601
|
+
return;
|
|
1602
|
+
r = n.value;
|
|
1603
|
+
}
|
|
1604
|
+
if (r = Xt(r), isNaN(r) && C(this, this.ob, "Invalid array length"), r < a)
|
|
1605
|
+
for (s in e.h) {
|
|
1606
|
+
var s = Ge(s);
|
|
1607
|
+
!isNaN(s) && r <= s && delete e.h[s];
|
|
1608
|
+
}
|
|
1609
|
+
} else
|
|
1610
|
+
isNaN(s = Ge(t)) || (e.h.length = Math.max(a, s + 1));
|
|
1611
|
+
if (!e.preventExtensions || t in e.h)
|
|
1612
|
+
if (n) {
|
|
1613
|
+
o = {}, "get" in n && n.get && (e.V[t] = n.get, o.get = this.g.ac), "set" in n && n.set && (e.Y[t] = n.set, o.set = this.g.bc), "configurable" in n && (o.configurable = n.configurable), "enumerable" in n && (o.enumerable = n.enumerable), "writable" in n && (o.writable = n.writable, delete e.V[t], delete e.Y[t]), "value" in n ? (o.value = n.value, delete e.V[t], delete e.Y[t]) : r !== Xe && (o.value = r, delete e.V[t], delete e.Y[t]);
|
|
1614
|
+
try {
|
|
1615
|
+
Object.defineProperty(e.h, t, o);
|
|
1616
|
+
} catch {
|
|
1617
|
+
C(this, this.j, "Cannot redefine property: " + t);
|
|
1618
|
+
}
|
|
1619
|
+
"get" in n && !n.get && delete e.V[t], "set" in n && !n.set && delete e.Y[t];
|
|
1620
|
+
} else {
|
|
1621
|
+
if (r === Xe)
|
|
1622
|
+
throw ReferenceError("Value not specified");
|
|
1623
|
+
for (n = e; !(t in n.h); )
|
|
1624
|
+
if (n = le(this, n), !n) {
|
|
1625
|
+
n = e;
|
|
1626
|
+
break;
|
|
1627
|
+
}
|
|
1628
|
+
if (n.Y && n.Y[t])
|
|
1629
|
+
return this.Ka = !0, n.Y[t];
|
|
1630
|
+
if (n.V && n.V[t])
|
|
1631
|
+
o && C(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1632
|
+
else
|
|
1633
|
+
try {
|
|
1634
|
+
e.h[t] = r;
|
|
1635
|
+
} catch {
|
|
1636
|
+
o && C(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
else
|
|
1640
|
+
o && C(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1641
|
+
} else
|
|
1642
|
+
o && C(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1643
|
+
};
|
|
1644
|
+
N.g.ac = function() {
|
|
1645
|
+
throw Error("Placeholder getter");
|
|
1646
|
+
};
|
|
1647
|
+
N.g.bc = function() {
|
|
1648
|
+
throw Error("Placeholder setter");
|
|
1649
|
+
};
|
|
1650
|
+
function D(e, t, r, n) {
|
|
1651
|
+
e.g(t.h.prototype, r, e.i(n, !1), w);
|
|
1652
|
+
}
|
|
1653
|
+
function He(e, t, r, n) {
|
|
1654
|
+
e.g(t.h.prototype, r, e.ub(n), w);
|
|
1655
|
+
}
|
|
1656
|
+
function qt(e) {
|
|
1657
|
+
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1658
|
+
throw Error("No scope found");
|
|
1659
|
+
return e;
|
|
1660
|
+
}
|
|
1661
|
+
function _t(e, t, r) {
|
|
1662
|
+
var n = !1;
|
|
1663
|
+
if (r && r.S)
|
|
1664
|
+
n = !0;
|
|
1665
|
+
else {
|
|
1666
|
+
var o = t.body && t.body[0];
|
|
1667
|
+
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (n = !0);
|
|
1668
|
+
}
|
|
1669
|
+
return o = e.s(null), n = new pr(r, n, o), r || ho(e, n.object), Je(e, t, n), n;
|
|
1670
|
+
}
|
|
1671
|
+
function Zt(e, t, r) {
|
|
1672
|
+
if (!t)
|
|
1673
|
+
throw Error("parentScope required");
|
|
1674
|
+
return e = r || e.s(null), new pr(t, t.S, e);
|
|
1675
|
+
}
|
|
1676
|
+
function Qt(e, t) {
|
|
1677
|
+
for (var r = qt(e); r && r !== e.N; ) {
|
|
1678
|
+
if (t in r.object.h)
|
|
1679
|
+
return r.object.h[t];
|
|
1680
|
+
r = r.Va;
|
|
1681
|
+
}
|
|
1682
|
+
if (r === e.N && ut(e, r.object, t))
|
|
1683
|
+
return e.G(r.object, t);
|
|
1684
|
+
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || C(e, e.pb, t + " is not defined");
|
|
1685
|
+
}
|
|
1686
|
+
function cr(e, t, r) {
|
|
1687
|
+
for (var n = qt(e), o = n.S; n && n !== e.N; ) {
|
|
1688
|
+
if (t in n.object.h) {
|
|
1689
|
+
try {
|
|
1690
|
+
n.object.h[t] = r;
|
|
1691
|
+
} catch {
|
|
1692
|
+
o && C(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1693
|
+
}
|
|
1694
|
+
return;
|
|
1695
|
+
}
|
|
1696
|
+
n = n.Va;
|
|
1697
|
+
}
|
|
1698
|
+
if (n === e.N && (!o || ut(e, n.object, t)))
|
|
1699
|
+
return e.g(n.object, t, r);
|
|
1700
|
+
C(e, e.pb, t + " is not defined");
|
|
1701
|
+
}
|
|
1702
|
+
function Je(e, t, r) {
|
|
1703
|
+
if (t.jb)
|
|
1704
|
+
var n = t.jb;
|
|
1705
|
+
else {
|
|
1706
|
+
switch (n = /* @__PURE__ */ Object.create(null), t.type) {
|
|
1707
|
+
case "VariableDeclaration":
|
|
1708
|
+
for (var o = 0; o < t.fa.length; o++)
|
|
1709
|
+
n[t.fa[o].id.name] = !0;
|
|
1710
|
+
break;
|
|
1711
|
+
case "FunctionDeclaration":
|
|
1712
|
+
n[t.id.name] = t;
|
|
1713
|
+
break;
|
|
1714
|
+
case "BlockStatement":
|
|
1715
|
+
case "CatchClause":
|
|
1716
|
+
case "DoWhileStatement":
|
|
1717
|
+
case "ForInStatement":
|
|
1718
|
+
case "ForStatement":
|
|
1719
|
+
case "IfStatement":
|
|
1720
|
+
case "LabeledStatement":
|
|
1721
|
+
case "Program":
|
|
1722
|
+
case "SwitchCase":
|
|
1723
|
+
case "SwitchStatement":
|
|
1724
|
+
case "TryStatement":
|
|
1725
|
+
case "WithStatement":
|
|
1726
|
+
case "WhileStatement":
|
|
1727
|
+
var a = t.constructor, s;
|
|
1728
|
+
for (s in t)
|
|
1729
|
+
if (s !== "loc") {
|
|
1730
|
+
var f = t[s];
|
|
1731
|
+
if (f && typeof f == "object") {
|
|
1732
|
+
if (Array.isArray(f)) {
|
|
1733
|
+
for (o = 0; o < f.length; o++)
|
|
1734
|
+
if (f[o] && f[o].constructor === a) {
|
|
1735
|
+
var h = Je(e, f[o], r);
|
|
1736
|
+
for (s in h)
|
|
1737
|
+
n[s] = h[s];
|
|
1738
|
+
}
|
|
1739
|
+
} else if (f.constructor === a)
|
|
1740
|
+
for (s in h = Je(e, f, r), h)
|
|
1741
|
+
n[s] = h[s];
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
t.jb = n;
|
|
1746
|
+
}
|
|
1747
|
+
for (s in n)
|
|
1748
|
+
n[s] === !0 ? e.g(r.object, s, void 0, Wn) : e.g(r.object, s, Yt(e, n[s], r), Wn);
|
|
1749
|
+
return n;
|
|
1750
|
+
}
|
|
1751
|
+
function ce(e) {
|
|
1752
|
+
return e.o[e.o.length - 1].isConstructor;
|
|
1753
|
+
}
|
|
1754
|
+
function en(e, t) {
|
|
1755
|
+
return t[0] === Oe ? Qt(e, t[1]) : e.G(t[0], t[1]);
|
|
1756
|
+
}
|
|
1757
|
+
function tn(e, t, r) {
|
|
1758
|
+
return t[0] === Oe ? cr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1759
|
+
}
|
|
1760
|
+
function C(e, t, r) {
|
|
1761
|
+
throw e.N ? (r !== void 0 && t instanceof R && (t = e.Aa(t), Vt(e, t, r)), ze(e, 4, t), lr) : r === void 0 ? t : r;
|
|
1762
|
+
}
|
|
1763
|
+
function ze(e, t, r, n) {
|
|
1764
|
+
if (t === 0)
|
|
1765
|
+
throw TypeError("Should not unwind for NORMAL completions");
|
|
1766
|
+
var o = e.o;
|
|
1767
|
+
e:
|
|
1768
|
+
for (; 0 < o.length; o.pop()) {
|
|
1769
|
+
var a = o[o.length - 1];
|
|
1770
|
+
switch (a.node.type) {
|
|
1771
|
+
case "TryStatement":
|
|
1772
|
+
a.ea = {
|
|
1773
|
+
type: t,
|
|
1774
|
+
value: r,
|
|
1775
|
+
label: n
|
|
1776
|
+
};
|
|
1777
|
+
return;
|
|
1778
|
+
case "CallExpression":
|
|
1779
|
+
case "NewExpression":
|
|
1780
|
+
if (t === 3) {
|
|
1781
|
+
a.value = r;
|
|
1782
|
+
return;
|
|
1783
|
+
}
|
|
1784
|
+
if (t !== 4)
|
|
1785
|
+
throw Error("Unsynatctic break/continue not rejected by Acorn");
|
|
1786
|
+
break;
|
|
1787
|
+
case "Program":
|
|
1788
|
+
a.done = !0;
|
|
1789
|
+
break e;
|
|
1790
|
+
}
|
|
1791
|
+
if (t === 1) {
|
|
1792
|
+
if (n ? a.labels && a.labels.indexOf(n) !== -1 : a.W || a.Zb) {
|
|
1793
|
+
o.pop();
|
|
1794
|
+
return;
|
|
1795
|
+
}
|
|
1796
|
+
} else if (t === 2 && (n ? a.labels && a.labels.indexOf(n) !== -1 : a.W))
|
|
1797
|
+
return;
|
|
1798
|
+
}
|
|
1799
|
+
throw H(e, r, e.D) ? (t = {
|
|
1800
|
+
EvalError,
|
|
1801
|
+
RangeError,
|
|
1802
|
+
ReferenceError,
|
|
1803
|
+
SyntaxError,
|
|
1804
|
+
TypeError,
|
|
1805
|
+
URIError
|
|
1806
|
+
}, n = String(e.G(r, "name")), o = e.G(r, "message").valueOf(), t = (t[n] || Error)(o), t.stack = String(e.G(r, "stack"))) : t = String(r), e.value = t, t;
|
|
1807
|
+
}
|
|
1808
|
+
function X(e, t) {
|
|
1809
|
+
switch (t.type) {
|
|
1810
|
+
case "ArrayExpression":
|
|
1811
|
+
return "[...]";
|
|
1812
|
+
case "BinaryExpression":
|
|
1813
|
+
case "LogicalExpression":
|
|
1814
|
+
return X(e, t.left) + " " + t.operator + " " + X(e, t.right);
|
|
1815
|
+
case "CallExpression":
|
|
1816
|
+
return X(e, t.callee) + "(...)";
|
|
1817
|
+
case "ConditionalExpression":
|
|
1818
|
+
return X(e, t.test) + " ? " + X(e, t.da) + " : " + X(e, t.alternate);
|
|
1819
|
+
case "Identifier":
|
|
1820
|
+
return t.name;
|
|
1821
|
+
case "Literal":
|
|
1822
|
+
return t.raw;
|
|
1823
|
+
case "MemberExpression":
|
|
1824
|
+
var r = X(e, t.object);
|
|
1825
|
+
return e = X(e, t.Wa), t.bb ? r + "[" + e + "]" : r + "." + e;
|
|
1826
|
+
case "NewExpression":
|
|
1827
|
+
return "new " + X(e, t.callee) + "(...)";
|
|
1828
|
+
case "ObjectExpression":
|
|
1829
|
+
return "{...}";
|
|
1830
|
+
case "ThisExpression":
|
|
1831
|
+
return "this";
|
|
1832
|
+
case "UnaryExpression":
|
|
1833
|
+
return t.operator + " " + X(e, t.K);
|
|
1834
|
+
case "UpdateExpression":
|
|
1835
|
+
return r = X(e, t.K), t.prefix ? t.operator + r : r + t.operator;
|
|
1836
|
+
}
|
|
1837
|
+
return "???";
|
|
1838
|
+
}
|
|
1839
|
+
function Kn(e, t, r) {
|
|
1840
|
+
var n = e.o[e.o.length - 1], o = Array.from(r), a = o.shift();
|
|
1841
|
+
r = Math.max(Number(o.shift() || 0), 0);
|
|
1842
|
+
var s = e.ya();
|
|
1843
|
+
if (a instanceof R && a.H === "Function") {
|
|
1844
|
+
var f = a;
|
|
1845
|
+
s.type = "CallExpression", n = n.scope;
|
|
1846
|
+
} else {
|
|
1847
|
+
try {
|
|
1848
|
+
var h = Ae(String(a), "taskCode" + e.ic++);
|
|
1849
|
+
} catch (g) {
|
|
1850
|
+
C(e, e.T, "Invalid code: " + g.message);
|
|
1851
|
+
}
|
|
1852
|
+
s.type = "EvalProgram_", s.body = h.body, n = n.node.arguments[0], lt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, o.length = 0;
|
|
1853
|
+
}
|
|
1854
|
+
return t = new Io(f, o, n, s, t ? r : -1), fr(e, t, r), t.Db;
|
|
1855
|
+
}
|
|
1856
|
+
function fr(e, t, r) {
|
|
1857
|
+
t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(n, o) {
|
|
1858
|
+
return n.time - o.time;
|
|
1859
|
+
});
|
|
1860
|
+
}
|
|
1861
|
+
function Gn(e, t) {
|
|
1862
|
+
for (var r = 0; r < e.ca.length; r++)
|
|
1863
|
+
if (e.ca[r].Db == t) {
|
|
1864
|
+
e.ca.splice(r, 1);
|
|
1865
|
+
break;
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
function Ye(e, t, r) {
|
|
1869
|
+
if (!e.P)
|
|
1870
|
+
throw Error("Unexpected call to createGetter");
|
|
1871
|
+
e.P = !1, r = Array.isArray(r) ? r[0] : r;
|
|
1872
|
+
var n = e.ya();
|
|
1873
|
+
return n.type = "CallExpression", e = new k(n, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1874
|
+
}
|
|
1875
|
+
function nn(e, t, r, n) {
|
|
1876
|
+
if (!e.Ka)
|
|
1877
|
+
throw Error("Unexpected call to createSetter");
|
|
1878
|
+
e.Ka = !1, r = Array.isArray(r) ? r[0] : e.Na;
|
|
1879
|
+
var o = e.ya();
|
|
1880
|
+
return o.type = "CallExpression", e = new k(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [n], e;
|
|
1881
|
+
}
|
|
1882
|
+
function Ft(e, t) {
|
|
1883
|
+
return t == null ? e.Na : t instanceof R ? t : (e = e.s(le(e, t)), e.data = t, e);
|
|
1884
|
+
}
|
|
1885
|
+
N.Xb = function() {
|
|
1886
|
+
return this.N;
|
|
1887
|
+
};
|
|
1888
|
+
N.Yb = function() {
|
|
1889
|
+
return this.o;
|
|
1890
|
+
};
|
|
1891
|
+
N.ec = function(e) {
|
|
1892
|
+
this.o = e;
|
|
1893
|
+
};
|
|
1894
|
+
function k(e, t) {
|
|
1895
|
+
this.node = e, this.scope = t;
|
|
1896
|
+
}
|
|
1897
|
+
function pr(e, t, r) {
|
|
1898
|
+
this.Va = e, this.S = t, this.object = r;
|
|
1899
|
+
}
|
|
1900
|
+
function R(e) {
|
|
1901
|
+
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1902
|
+
}
|
|
1903
|
+
N = R.prototype;
|
|
1904
|
+
N.xa = null;
|
|
1905
|
+
N.H = "Object";
|
|
1906
|
+
N.data = null;
|
|
1907
|
+
N.toString = function() {
|
|
1908
|
+
if (!Ke)
|
|
1909
|
+
return "[object Interpreter.Object]";
|
|
1910
|
+
if (!(this instanceof R))
|
|
1911
|
+
return String(this);
|
|
1912
|
+
if (this.H === "Array") {
|
|
1913
|
+
var e = Hn;
|
|
1914
|
+
e.push(this);
|
|
1915
|
+
try {
|
|
1916
|
+
var t = [], r = this.h.length, n = !1;
|
|
1917
|
+
1024 < r && (r = 1e3, n = !0);
|
|
1918
|
+
for (var o = 0; o < r; o++) {
|
|
1919
|
+
var a = this.h[o];
|
|
1920
|
+
t[o] = a instanceof R && e.indexOf(a) !== -1 ? "..." : a;
|
|
1921
|
+
}
|
|
1922
|
+
n && t.push("...");
|
|
1923
|
+
} finally {
|
|
1924
|
+
e.pop();
|
|
1925
|
+
}
|
|
1926
|
+
return t.join(",");
|
|
1927
|
+
}
|
|
1928
|
+
if (this.H === "Error") {
|
|
1929
|
+
if (e = Hn, e.indexOf(this) !== -1)
|
|
1930
|
+
return "[object Error]";
|
|
1931
|
+
r = this;
|
|
1932
|
+
do
|
|
1933
|
+
if ("name" in r.h) {
|
|
1934
|
+
t = r.h.name;
|
|
1935
|
+
break;
|
|
1936
|
+
}
|
|
1937
|
+
while (r = r.xa);
|
|
1938
|
+
r = this;
|
|
1939
|
+
do
|
|
1940
|
+
if ("message" in r.h) {
|
|
1941
|
+
n = r.h.message;
|
|
1942
|
+
break;
|
|
1943
|
+
}
|
|
1944
|
+
while (r = r.xa);
|
|
1945
|
+
e.push(this);
|
|
1946
|
+
try {
|
|
1947
|
+
t = t && String(t), n = n && String(n);
|
|
1948
|
+
} finally {
|
|
1949
|
+
e.pop();
|
|
1950
|
+
}
|
|
1951
|
+
return n ? t + ": " + n : String(t);
|
|
1952
|
+
}
|
|
1953
|
+
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1954
|
+
};
|
|
1955
|
+
N.valueOf = function() {
|
|
1956
|
+
return !Ke || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1957
|
+
};
|
|
1958
|
+
function Io(e, t, r, n, o) {
|
|
1959
|
+
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = o, this.Db = ++To, this.time = 0;
|
|
1960
|
+
}
|
|
1961
|
+
var To = 0;
|
|
1962
|
+
d.prototype.stepArrayExpression = function(e, t, r) {
|
|
1963
|
+
r = r.elements;
|
|
1964
|
+
var n = t.A || 0;
|
|
1965
|
+
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa = je(this), t.Oa.h.length = r.length); n < r.length; ) {
|
|
1966
|
+
if (r[n])
|
|
1967
|
+
return t.A = n, new k(r[n], t.scope);
|
|
1968
|
+
n++;
|
|
1969
|
+
}
|
|
1970
|
+
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1971
|
+
};
|
|
1972
|
+
d.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
1973
|
+
if (!t.ja)
|
|
1974
|
+
return t.ja = !0, t = new k(r.left, t.scope), t.sa = !0, t;
|
|
1975
|
+
if (!t.Da)
|
|
1976
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e = en(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ye(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new k(r.right, t.scope));
|
|
1977
|
+
if (t.ta)
|
|
1978
|
+
e.pop(), e[e.length - 1].value = t.ib;
|
|
1979
|
+
else {
|
|
1980
|
+
var n = t.ma, o = t.value;
|
|
1981
|
+
switch (r.operator) {
|
|
1982
|
+
case "=":
|
|
1983
|
+
n = o;
|
|
1984
|
+
break;
|
|
1985
|
+
case "+=":
|
|
1986
|
+
n += o;
|
|
1987
|
+
break;
|
|
1988
|
+
case "-=":
|
|
1989
|
+
n -= o;
|
|
1990
|
+
break;
|
|
1991
|
+
case "*=":
|
|
1992
|
+
n *= o;
|
|
1993
|
+
break;
|
|
1994
|
+
case "/=":
|
|
1995
|
+
n /= o;
|
|
1996
|
+
break;
|
|
1997
|
+
case "%=":
|
|
1998
|
+
n %= o;
|
|
1999
|
+
break;
|
|
2000
|
+
case "<<=":
|
|
2001
|
+
n <<= o;
|
|
2002
|
+
break;
|
|
2003
|
+
case ">>=":
|
|
2004
|
+
n >>= o;
|
|
2005
|
+
break;
|
|
2006
|
+
case ">>>=":
|
|
2007
|
+
n >>>= o;
|
|
2008
|
+
break;
|
|
2009
|
+
case "&=":
|
|
2010
|
+
n &= o;
|
|
2011
|
+
break;
|
|
2012
|
+
case "^=":
|
|
2013
|
+
n ^= o;
|
|
2014
|
+
break;
|
|
2015
|
+
case "|=":
|
|
2016
|
+
n |= o;
|
|
2017
|
+
break;
|
|
2018
|
+
default:
|
|
2019
|
+
throw SyntaxError("Unknown assignment expression: " + r.operator);
|
|
2020
|
+
}
|
|
2021
|
+
if (r = tn(this, t.Fa, n))
|
|
2022
|
+
return t.ta = !0, t.ib = n, nn(this, r, t.Fa, n);
|
|
2023
|
+
e.pop(), e[e.length - 1].value = n;
|
|
2024
|
+
}
|
|
2025
|
+
};
|
|
2026
|
+
d.prototype.stepBinaryExpression = function(e, t, r) {
|
|
2027
|
+
if (!t.ja)
|
|
2028
|
+
return t.ja = !0, new k(r.left, t.scope);
|
|
2029
|
+
if (!t.Da)
|
|
2030
|
+
return t.Da = !0, t.ma = t.value, new k(r.right, t.scope);
|
|
2031
|
+
e.pop();
|
|
2032
|
+
var n = t.ma;
|
|
2033
|
+
switch (t = t.value, r.operator) {
|
|
2034
|
+
case "==":
|
|
2035
|
+
r = n == t;
|
|
2036
|
+
break;
|
|
2037
|
+
case "!=":
|
|
2038
|
+
r = n != t;
|
|
2039
|
+
break;
|
|
2040
|
+
case "===":
|
|
2041
|
+
r = n === t;
|
|
2042
|
+
break;
|
|
2043
|
+
case "!==":
|
|
2044
|
+
r = n !== t;
|
|
2045
|
+
break;
|
|
2046
|
+
case ">":
|
|
2047
|
+
r = n > t;
|
|
2048
|
+
break;
|
|
2049
|
+
case ">=":
|
|
2050
|
+
r = n >= t;
|
|
2051
|
+
break;
|
|
2052
|
+
case "<":
|
|
2053
|
+
r = n < t;
|
|
2054
|
+
break;
|
|
2055
|
+
case "<=":
|
|
2056
|
+
r = n <= t;
|
|
2057
|
+
break;
|
|
2058
|
+
case "+":
|
|
2059
|
+
r = n + t;
|
|
2060
|
+
break;
|
|
2061
|
+
case "-":
|
|
2062
|
+
r = n - t;
|
|
2063
|
+
break;
|
|
2064
|
+
case "*":
|
|
2065
|
+
r = n * t;
|
|
2066
|
+
break;
|
|
2067
|
+
case "/":
|
|
2068
|
+
r = n / t;
|
|
2069
|
+
break;
|
|
2070
|
+
case "%":
|
|
2071
|
+
r = n % t;
|
|
2072
|
+
break;
|
|
2073
|
+
case "&":
|
|
2074
|
+
r = n & t;
|
|
2075
|
+
break;
|
|
2076
|
+
case "|":
|
|
2077
|
+
r = n | t;
|
|
2078
|
+
break;
|
|
2079
|
+
case "^":
|
|
2080
|
+
r = n ^ t;
|
|
2081
|
+
break;
|
|
2082
|
+
case "<<":
|
|
2083
|
+
r = n << t;
|
|
2084
|
+
break;
|
|
2085
|
+
case ">>":
|
|
2086
|
+
r = n >> t;
|
|
2087
|
+
break;
|
|
2088
|
+
case ">>>":
|
|
2089
|
+
r = n >>> t;
|
|
2090
|
+
break;
|
|
2091
|
+
case "in":
|
|
2092
|
+
t instanceof R || C(this, this.j, "'in' expects an object, not '" + t + "'"), r = ut(this, t, n);
|
|
2093
|
+
break;
|
|
2094
|
+
case "instanceof":
|
|
2095
|
+
H(this, t, this.O) || C(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof R ? H(this, n, t) : !1;
|
|
2096
|
+
break;
|
|
2097
|
+
default:
|
|
2098
|
+
throw SyntaxError("Unknown binary operator: " + r.operator);
|
|
2099
|
+
}
|
|
2100
|
+
e[e.length - 1].value = r;
|
|
2101
|
+
};
|
|
2102
|
+
d.prototype.stepBlockStatement = function(e, t, r) {
|
|
2103
|
+
var n = t.A || 0;
|
|
2104
|
+
if (r = r.body[n])
|
|
2105
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2106
|
+
e.pop();
|
|
2107
|
+
};
|
|
2108
|
+
d.prototype.stepBreakStatement = function(e, t, r) {
|
|
2109
|
+
ze(this, 1, void 0, r.label && r.label.name);
|
|
2110
|
+
};
|
|
2111
|
+
d.prototype.Hb = 0;
|
|
2112
|
+
d.prototype.stepCallExpression = function(e, t, r) {
|
|
2113
|
+
if (!t.ia) {
|
|
2114
|
+
t.ia = 1;
|
|
2115
|
+
var n = new k(r.callee, t.scope);
|
|
2116
|
+
return n.sa = !0, n;
|
|
2117
|
+
}
|
|
2118
|
+
if (t.ia === 1) {
|
|
2119
|
+
t.ia = 2;
|
|
2120
|
+
var o = t.value;
|
|
2121
|
+
if (Array.isArray(o)) {
|
|
2122
|
+
if (t.U = en(this, o), o[0] === Oe ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2123
|
+
return t.ia = 1, Ye(this, o, t.value);
|
|
2124
|
+
} else
|
|
2125
|
+
t.U = o;
|
|
2126
|
+
t.F = [], t.A = 0;
|
|
2127
|
+
}
|
|
2128
|
+
if (o = t.U, !t.Qa) {
|
|
2129
|
+
if (t.A !== 0 && t.F.push(t.value), r.arguments[t.A])
|
|
2130
|
+
return new k(r.arguments[t.A++], t.scope);
|
|
2131
|
+
if (r.type === "NewExpression") {
|
|
2132
|
+
if (o instanceof R && !o.Ab || C(this, this.j, X(this, r.callee) + " is not a constructor"), o === this.qa)
|
|
2133
|
+
t.B = je(this);
|
|
2134
|
+
else {
|
|
2135
|
+
var a = o.h.prototype;
|
|
2136
|
+
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
2137
|
+
}
|
|
2138
|
+
t.isConstructor = !0;
|
|
2139
|
+
}
|
|
2140
|
+
t.Qa = !0;
|
|
2141
|
+
}
|
|
2142
|
+
if (t.eb)
|
|
2143
|
+
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2144
|
+
else {
|
|
2145
|
+
if (t.eb = !0, o instanceof R || C(this, this.j, X(this, r.callee) + " is not a function"), e = o.node) {
|
|
2146
|
+
for (r = _t(this, e.body, o.Va), n = je(this), o = 0; o < t.F.length; o++)
|
|
2147
|
+
this.g(n, o, t.F[o]);
|
|
2148
|
+
for (this.g(r.object, "arguments", n), o = 0; o < e.oa.length; o++)
|
|
2149
|
+
this.g(r.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2150
|
+
return r.S || (t.B = Ft(this, t.B)), this.g(r.object, "this", t.B, Gt), t.value = void 0, new k(e.body, r);
|
|
2151
|
+
}
|
|
2152
|
+
if (o.eval)
|
|
2153
|
+
if (o = t.F[0], typeof o != "string")
|
|
2154
|
+
t.value = o;
|
|
2155
|
+
else {
|
|
2156
|
+
try {
|
|
2157
|
+
n = Ae(String(o), "eval" + this.Hb++);
|
|
2158
|
+
} catch (f) {
|
|
2159
|
+
C(this, this.T, "Invalid code: " + f.message);
|
|
2160
|
+
}
|
|
2161
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = n.body, lt(o, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = _t(this, n, r) : Je(this, n, r), this.value = void 0, new k(o, r);
|
|
2162
|
+
}
|
|
2163
|
+
else if (o.Ta)
|
|
2164
|
+
t.scope.S || (t.B = Ft(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2165
|
+
else if (o.Za) {
|
|
2166
|
+
var s = this;
|
|
2167
|
+
n = o.Za.length - 1, n = t.F.concat(Array(n)).slice(0, n), n.push(function(f) {
|
|
2168
|
+
t.value = f, s.za = !1;
|
|
2169
|
+
}), this.za = !0, t.scope.S || (t.B = Ft(this, t.B)), o.Za.apply(t.B, n);
|
|
2170
|
+
} else
|
|
2171
|
+
C(this, this.j, X(this, r.callee) + " is not callable");
|
|
2172
|
+
}
|
|
2173
|
+
};
|
|
2174
|
+
d.prototype.stepConditionalExpression = function(e, t, r) {
|
|
2175
|
+
var n = t.na || 0;
|
|
2176
|
+
if (n === 0)
|
|
2177
|
+
return t.na = 1, new k(r.test, t.scope);
|
|
2178
|
+
if (n === 1) {
|
|
2179
|
+
if (t.na = 2, (n = !!t.value) && r.da)
|
|
2180
|
+
return new k(r.da, t.scope);
|
|
2181
|
+
if (!n && r.alternate)
|
|
2182
|
+
return new k(r.alternate, t.scope);
|
|
2183
|
+
this.value = void 0;
|
|
2184
|
+
}
|
|
2185
|
+
e.pop(), r.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2186
|
+
};
|
|
2187
|
+
d.prototype.stepContinueStatement = function(e, t, r) {
|
|
2188
|
+
ze(this, 2, void 0, r.label && r.label.name);
|
|
2189
|
+
};
|
|
2190
|
+
d.prototype.stepDebuggerStatement = function(e) {
|
|
2191
|
+
e.pop();
|
|
2192
|
+
};
|
|
2193
|
+
d.prototype.stepDoWhileStatement = function(e, t, r) {
|
|
2194
|
+
if (r.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2195
|
+
return t.ga = !0, new k(r.test, t.scope);
|
|
2196
|
+
if (!t.value)
|
|
2197
|
+
e.pop();
|
|
2198
|
+
else if (r.body)
|
|
2199
|
+
return t.ga = !1, t.W = !0, new k(r.body, t.scope);
|
|
2200
|
+
};
|
|
2201
|
+
d.prototype.stepEmptyStatement = function(e) {
|
|
2202
|
+
e.pop();
|
|
2203
|
+
};
|
|
2204
|
+
d.prototype.stepEvalProgram_ = function(e, t, r) {
|
|
2205
|
+
var n = t.A || 0;
|
|
2206
|
+
if (r = r.body[n])
|
|
2207
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2208
|
+
e.pop(), e[e.length - 1].value = this.value;
|
|
2209
|
+
};
|
|
2210
|
+
d.prototype.stepExpressionStatement = function(e, t, r) {
|
|
2211
|
+
if (!t.ka)
|
|
2212
|
+
return this.value = void 0, t.ka = !0, new k(r.la, t.scope);
|
|
2213
|
+
e.pop(), this.value = t.value;
|
|
2214
|
+
};
|
|
2215
|
+
d.prototype.stepForInStatement = function(e, t, r) {
|
|
2216
|
+
if (!t.Ub && (t.Ub = !0, r.left.fa && r.left.fa[0].ua))
|
|
2217
|
+
return t.scope.S && C(this, this.T, "for-in loop variable declaration may not have an initializer"), new k(r.left, t.scope);
|
|
2218
|
+
if (!t.Ca)
|
|
2219
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new k(r.right, t.scope);
|
|
2220
|
+
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2221
|
+
e:
|
|
2222
|
+
for (; ; ) {
|
|
2223
|
+
if (t.u instanceof R)
|
|
2224
|
+
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2225
|
+
var n = t.wa.shift();
|
|
2226
|
+
if (n === void 0)
|
|
2227
|
+
break;
|
|
2228
|
+
if (Object.prototype.hasOwnProperty.call(t.u.h, n) && !t.kb[n] && (t.kb[n] = !0, Object.prototype.propertyIsEnumerable.call(t.u.h, n))) {
|
|
2229
|
+
t.Ra = n;
|
|
2230
|
+
break e;
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
else if (t.u !== null && t.u !== void 0) {
|
|
2234
|
+
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u)); n = t.wa.shift(), n !== void 0; )
|
|
2235
|
+
if (t.kb[n] = !0, Object.prototype.propertyIsEnumerable.call(t.u, n)) {
|
|
2236
|
+
t.Ra = n;
|
|
2237
|
+
break e;
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
if (t.u = le(this, t.u), t.wa = null, t.u === null) {
|
|
2241
|
+
e.pop();
|
|
2242
|
+
return;
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
if (!t.wb)
|
|
2246
|
+
if (t.wb = !0, e = r.left, e.type === "VariableDeclaration")
|
|
2247
|
+
t.pa = [Oe, e.fa[0].id.name];
|
|
2248
|
+
else
|
|
2249
|
+
return t.pa = null, t = new k(e, t.scope), t.sa = !0, t;
|
|
2250
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = tn(this, t.pa, e)))
|
|
2251
|
+
return nn(this, n, t.pa, e);
|
|
2252
|
+
if (t.Ra = void 0, t.wb = !1, t.ta = !1, r.body)
|
|
2253
|
+
return new k(r.body, t.scope);
|
|
2254
|
+
};
|
|
2255
|
+
d.prototype.stepForStatement = function(e, t, r) {
|
|
2256
|
+
switch (t.na) {
|
|
2257
|
+
default:
|
|
2258
|
+
if (t.na = 1, r.ua)
|
|
2259
|
+
return new k(r.ua, t.scope);
|
|
2260
|
+
break;
|
|
2261
|
+
case 1:
|
|
2262
|
+
if (t.na = 2, r.test)
|
|
2263
|
+
return new k(r.test, t.scope);
|
|
2264
|
+
break;
|
|
2265
|
+
case 2:
|
|
2266
|
+
if (t.na = 3, r.test && !t.value)
|
|
2267
|
+
e.pop();
|
|
2268
|
+
else
|
|
2269
|
+
return t.W = !0, new k(r.body, t.scope);
|
|
2270
|
+
break;
|
|
2271
|
+
case 3:
|
|
2272
|
+
if (t.na = 1, r.update)
|
|
2273
|
+
return new k(r.update, t.scope);
|
|
2274
|
+
}
|
|
2275
|
+
};
|
|
2276
|
+
d.prototype.stepFunctionDeclaration = function(e) {
|
|
2277
|
+
e.pop();
|
|
2278
|
+
};
|
|
2279
|
+
d.prototype.stepFunctionExpression = function(e, t, r) {
|
|
2280
|
+
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e = Zt(this, e)), t.value = Yt(this, r, e, t.Pa), r.id && this.g(e.object, r.id.name, t.value, Gt);
|
|
2281
|
+
};
|
|
2282
|
+
d.prototype.stepIdentifier = function(e, t, r) {
|
|
2283
|
+
if (e.pop(), t.sa)
|
|
2284
|
+
e[e.length - 1].value = [Oe, r.name];
|
|
2285
|
+
else {
|
|
2286
|
+
if (t = Qt(this, r.name), this.P)
|
|
2287
|
+
return Ye(this, t, this.Na);
|
|
2288
|
+
e[e.length - 1].value = t;
|
|
2289
|
+
}
|
|
2290
|
+
};
|
|
2291
|
+
d.prototype.stepIfStatement = d.prototype.stepConditionalExpression;
|
|
2292
|
+
d.prototype.stepLabeledStatement = function(e, t, r) {
|
|
2293
|
+
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new k(r.body, t.scope), t.labels = e, t;
|
|
2294
|
+
};
|
|
2295
|
+
d.prototype.stepLiteral = function(e, t, r) {
|
|
2296
|
+
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma), Jt(this, r, t), t = r), e[e.length - 1].value = t;
|
|
2297
|
+
};
|
|
2298
|
+
d.prototype.stepLogicalExpression = function(e, t, r) {
|
|
2299
|
+
if (r.operator !== "&&" && r.operator !== "||")
|
|
2300
|
+
throw SyntaxError("Unknown logical operator: " + r.operator);
|
|
2301
|
+
if (!t.ja)
|
|
2302
|
+
return t.ja = !0, new k(r.left, t.scope);
|
|
2303
|
+
if (t.Da)
|
|
2304
|
+
e.pop(), e[e.length - 1].value = t.value;
|
|
2305
|
+
else if (r.operator === "&&" && !t.value || r.operator === "||" && t.value)
|
|
2306
|
+
e.pop(), e[e.length - 1].value = t.value;
|
|
2307
|
+
else
|
|
2308
|
+
return t.Da = !0, new k(r.right, t.scope);
|
|
2309
|
+
};
|
|
2310
|
+
d.prototype.stepMemberExpression = function(e, t, r) {
|
|
2311
|
+
if (!t.Ca)
|
|
2312
|
+
return t.Ca = !0, new k(r.object, t.scope);
|
|
2313
|
+
if (r.bb)
|
|
2314
|
+
if (t.Vb)
|
|
2315
|
+
r = t.value;
|
|
2316
|
+
else
|
|
2317
|
+
return t.u = t.value, t.Vb = !0, new k(r.Wa, t.scope);
|
|
2318
|
+
else
|
|
2319
|
+
t.u = t.value, r = r.Wa.name;
|
|
2320
|
+
if (e.pop(), t.sa)
|
|
2321
|
+
e[e.length - 1].value = [t.u, r];
|
|
2322
|
+
else {
|
|
2323
|
+
if (r = this.G(t.u, r), this.P)
|
|
2324
|
+
return Ye(this, r, t.u);
|
|
2325
|
+
e[e.length - 1].value = r;
|
|
2326
|
+
}
|
|
2327
|
+
};
|
|
2328
|
+
d.prototype.stepNewExpression = d.prototype.stepCallExpression;
|
|
2329
|
+
d.prototype.stepObjectExpression = function(e, t, r) {
|
|
2330
|
+
var n = t.A || 0, o = r.h[n];
|
|
2331
|
+
if (t.u) {
|
|
2332
|
+
var a = t.Pa;
|
|
2333
|
+
t.Ja[a] || (t.Ja[a] = {}), t.Ja[a][o.kind] = t.value, t.A = ++n, o = r.h[n];
|
|
2334
|
+
} else
|
|
2335
|
+
t.u = this.s(this.M), t.Ja = /* @__PURE__ */ Object.create(null);
|
|
2336
|
+
if (o) {
|
|
2337
|
+
var s = o.key;
|
|
2338
|
+
if (s.type === "Identifier")
|
|
2339
|
+
a = s.name;
|
|
2340
|
+
else if (s.type === "Literal")
|
|
2341
|
+
a = s.value;
|
|
2342
|
+
else
|
|
2343
|
+
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2344
|
+
return t.Pa = a, new k(o.value, t.scope);
|
|
2345
|
+
}
|
|
2346
|
+
for (s in t.Ja)
|
|
2347
|
+
r = t.Ja[s], "get" in r || "set" in r ? this.g(t.u, s, Xe, {
|
|
2348
|
+
configurable: !0,
|
|
2349
|
+
enumerable: !0,
|
|
2350
|
+
get: r.get,
|
|
2351
|
+
set: r.set
|
|
2352
|
+
}) : this.g(t.u, s, r.init);
|
|
2353
|
+
e.pop(), e[e.length - 1].value = t.u;
|
|
2354
|
+
};
|
|
2355
|
+
d.prototype.stepProgram = function(e, t, r) {
|
|
2356
|
+
if (e = r.body.shift())
|
|
2357
|
+
return t.done = !1, new k(e, t.scope);
|
|
2358
|
+
t.done = !0;
|
|
2359
|
+
};
|
|
2360
|
+
d.prototype.stepReturnStatement = function(e, t, r) {
|
|
2361
|
+
if (r.K && !t.ka)
|
|
2362
|
+
return t.ka = !0, new k(r.K, t.scope);
|
|
2363
|
+
ze(this, 3, t.value);
|
|
2364
|
+
};
|
|
2365
|
+
d.prototype.stepSequenceExpression = function(e, t, r) {
|
|
2366
|
+
var n = t.A || 0;
|
|
2367
|
+
if (r = r.xb[n])
|
|
2368
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2369
|
+
e.pop(), e[e.length - 1].value = t.value;
|
|
2370
|
+
};
|
|
2371
|
+
d.prototype.stepSwitchStatement = function(e, t, r) {
|
|
2372
|
+
if (!t.ga)
|
|
2373
|
+
return t.ga = 1, new k(r.Qb, t.scope);
|
|
2374
|
+
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2375
|
+
var n = t.gb || 0, o = r.tb[n];
|
|
2376
|
+
if (t.Ha || !o || o.test)
|
|
2377
|
+
if (o || t.Ha || t.cb === -1)
|
|
2378
|
+
if (o) {
|
|
2379
|
+
if (!t.Ha && !t.Fb && o.test)
|
|
2380
|
+
return t.Fb = !0, new k(o.test, t.scope);
|
|
2381
|
+
if (t.Ha || t.value === t.hc) {
|
|
2382
|
+
t.Ha = !0;
|
|
2383
|
+
var a = t.A || 0;
|
|
2384
|
+
if (o.da[a])
|
|
2385
|
+
return t.Zb = !0, t.A = a + 1, new k(o.da[a], t.scope);
|
|
2386
|
+
}
|
|
2387
|
+
t.Fb = !1, t.A = 0, t.gb = n + 1;
|
|
2388
|
+
} else {
|
|
2389
|
+
e.pop();
|
|
2390
|
+
break;
|
|
2391
|
+
}
|
|
2392
|
+
else
|
|
2393
|
+
t.Ha = !0, t.gb = t.cb;
|
|
2394
|
+
else
|
|
2395
|
+
t.cb = n, t.gb = n + 1;
|
|
2396
|
+
}
|
|
2397
|
+
};
|
|
2398
|
+
d.prototype.stepThisExpression = function(e) {
|
|
2399
|
+
e.pop(), e[e.length - 1].value = Qt(this, "this");
|
|
2400
|
+
};
|
|
2401
|
+
d.prototype.stepThrowStatement = function(e, t, r) {
|
|
2402
|
+
if (t.ka)
|
|
2403
|
+
C(this, t.value);
|
|
2404
|
+
else
|
|
2405
|
+
return t.ka = !0, new k(r.K, t.scope);
|
|
2406
|
+
};
|
|
2407
|
+
d.prototype.stepTryStatement = function(e, t, r) {
|
|
2408
|
+
if (!t.Rb)
|
|
2409
|
+
return t.Rb = !0, new k(r.block, t.scope);
|
|
2410
|
+
if (t.ea && t.ea.type === 4 && !t.Tb && r.Ea)
|
|
2411
|
+
return t.Tb = !0, e = Zt(this, t.scope), this.g(e.object, r.Ea.Ua.name, t.ea.value), t.ea = void 0, new k(r.Ea.body, e);
|
|
2412
|
+
if (!t.Sb && r.fb)
|
|
2413
|
+
return t.Sb = !0, new k(r.fb, t.scope);
|
|
2414
|
+
e.pop(), t.ea && ze(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2415
|
+
};
|
|
2416
|
+
d.prototype.stepUnaryExpression = function(e, t, r) {
|
|
2417
|
+
if (!t.ka)
|
|
2418
|
+
return t.ka = !0, e = new k(r.K, t.scope), e.sa = r.operator === "delete", e;
|
|
2419
|
+
e.pop();
|
|
2420
|
+
var n = t.value;
|
|
2421
|
+
switch (r.operator) {
|
|
2422
|
+
case "-":
|
|
2423
|
+
n = -n;
|
|
2424
|
+
break;
|
|
2425
|
+
case "+":
|
|
2426
|
+
n = +n;
|
|
2427
|
+
break;
|
|
2428
|
+
case "!":
|
|
2429
|
+
n = !n;
|
|
2430
|
+
break;
|
|
2431
|
+
case "~":
|
|
2432
|
+
n = ~n;
|
|
2433
|
+
break;
|
|
2434
|
+
case "delete":
|
|
2435
|
+
if (r = !0, Array.isArray(n)) {
|
|
2436
|
+
var o = n[0];
|
|
2437
|
+
o === Oe && (o = t.scope), n = String(n[1]);
|
|
2438
|
+
try {
|
|
2439
|
+
delete o.h[n];
|
|
2440
|
+
} catch {
|
|
2441
|
+
t.scope.S ? C(this, this.j, "Cannot delete property '" + n + "' of '" + o + "'") : r = !1;
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
n = r;
|
|
2445
|
+
break;
|
|
2446
|
+
case "typeof":
|
|
2447
|
+
n = n && n.H === "Function" ? "function" : typeof n;
|
|
2448
|
+
break;
|
|
2449
|
+
case "void":
|
|
2450
|
+
n = void 0;
|
|
2451
|
+
break;
|
|
2452
|
+
default:
|
|
2453
|
+
throw SyntaxError("Unknown unary operator: " + r.operator);
|
|
2454
|
+
}
|
|
2455
|
+
e[e.length - 1].value = n;
|
|
2456
|
+
};
|
|
2457
|
+
d.prototype.stepUpdateExpression = function(e, t, r) {
|
|
2458
|
+
if (!t.ja)
|
|
2459
|
+
return t.ja = !0, e = new k(r.K, t.scope), e.sa = !0, e;
|
|
2460
|
+
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2461
|
+
var n = en(this, t.Ga);
|
|
2462
|
+
if (t.ma = n, this.P)
|
|
2463
|
+
return t.Ba = !0, Ye(this, n, t.Ga);
|
|
2464
|
+
}
|
|
2465
|
+
if (t.ta)
|
|
2466
|
+
e.pop(), e[e.length - 1].value = t.ib;
|
|
2467
|
+
else {
|
|
2468
|
+
if (n = Number(t.ma), r.operator === "++")
|
|
2469
|
+
var o = n + 1;
|
|
2470
|
+
else if (r.operator === "--")
|
|
2471
|
+
o = n - 1;
|
|
2472
|
+
else
|
|
2473
|
+
throw SyntaxError("Unknown update expression: " + r.operator);
|
|
2474
|
+
if (r = r.prefix ? o : n, n = tn(this, t.Ga, o))
|
|
2475
|
+
return t.ta = !0, t.ib = r, nn(this, n, t.Ga, o);
|
|
2476
|
+
e.pop(), e[e.length - 1].value = r;
|
|
2477
|
+
}
|
|
2478
|
+
};
|
|
2479
|
+
d.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
2480
|
+
r = r.fa;
|
|
2481
|
+
var n = t.A || 0, o = r[n];
|
|
2482
|
+
for (t.Bb && o && (cr(this, o.id.name, t.value), t.Bb = !1, o = r[++n]); o; ) {
|
|
2483
|
+
if (o.ua)
|
|
2484
|
+
return t.A = n, t.Bb = !0, t.Pa = o.id.name, new k(o.ua, t.scope);
|
|
2485
|
+
o = r[++n];
|
|
2486
|
+
}
|
|
2487
|
+
e.pop();
|
|
2488
|
+
};
|
|
2489
|
+
d.prototype.stepWithStatement = function(e, t, r) {
|
|
2490
|
+
return t.Ca ? (e.pop(), e = Zt(this, t.scope, t.value), new k(r.body, e)) : (t.Ca = !0, new k(r.object, t.scope));
|
|
2491
|
+
};
|
|
2492
|
+
d.prototype.stepWhileStatement = d.prototype.stepDoWhileStatement;
|
|
2493
|
+
de.Interpreter = d;
|
|
2494
|
+
d.prototype.step = d.prototype.lb;
|
|
2495
|
+
d.prototype.run = d.prototype.Eb;
|
|
2496
|
+
d.prototype.appendCode = d.prototype.Jb;
|
|
2497
|
+
d.prototype.createObject = d.prototype.Aa;
|
|
2498
|
+
d.prototype.createObjectProto = d.prototype.s;
|
|
2499
|
+
d.prototype.createAsyncFunction = d.prototype.ub;
|
|
2500
|
+
d.prototype.createNativeFunction = d.prototype.i;
|
|
2501
|
+
d.prototype.getProperty = d.prototype.G;
|
|
2502
|
+
d.prototype.setProperty = d.prototype.g;
|
|
2503
|
+
d.prototype.nativeToPseudo = d.prototype.Ia;
|
|
2504
|
+
d.prototype.pseudoToNative = d.prototype.R;
|
|
2505
|
+
d.prototype.getGlobalScope = d.prototype.Xb;
|
|
2506
|
+
d.prototype.getStateStack = d.prototype.Yb;
|
|
2507
|
+
d.prototype.setStateStack = d.prototype.ec;
|
|
2508
|
+
d.VALUE_IN_DESCRIPTOR = Xe;
|
|
2509
|
+
const Ao = ({
|
|
2510
|
+
builder: e,
|
|
2511
|
+
context: t,
|
|
2512
|
+
event: r,
|
|
2513
|
+
state: n
|
|
2514
|
+
}) => Object.entries({
|
|
2515
|
+
state: n,
|
|
2516
|
+
Builder: e,
|
|
2517
|
+
// legacy
|
|
2518
|
+
builder: e,
|
|
2519
|
+
context: t,
|
|
2520
|
+
event: r
|
|
2521
|
+
}), jo = (e) => e.split(`
|
|
2522
|
+
`).map((t) => {
|
|
2523
|
+
const r = t.trim();
|
|
2524
|
+
if (t.includes("__awaiter"))
|
|
2525
|
+
return;
|
|
2526
|
+
if (!r.startsWith("state."))
|
|
2527
|
+
return t;
|
|
2528
|
+
const [o, a] = r.split("="), f = `setRootState('${o.replace("state.", "").trim()}', ${a.trim()})`;
|
|
2529
|
+
return `
|
|
2530
|
+
${t}
|
|
2531
|
+
${f}
|
|
2532
|
+
`;
|
|
2533
|
+
}).filter(Boolean).join(`
|
|
2534
|
+
`), Xn = (e) => e + "JSON", Oo = ({
|
|
2535
|
+
builder: e,
|
|
2536
|
+
context: t,
|
|
2537
|
+
event: r,
|
|
2538
|
+
rootState: n,
|
|
2539
|
+
localState: o,
|
|
2540
|
+
rootSetState: a,
|
|
2541
|
+
code: s
|
|
2542
|
+
}) => {
|
|
2543
|
+
const f = {
|
|
2544
|
+
...n,
|
|
2545
|
+
...o
|
|
2546
|
+
}, h = Ao({
|
|
2547
|
+
builder: e,
|
|
2548
|
+
context: t,
|
|
2549
|
+
event: r,
|
|
2550
|
+
state: f
|
|
2551
|
+
}), g = h.map(([S]) => {
|
|
2552
|
+
const x = Xn(S);
|
|
2553
|
+
return `var ${S} = ${x} === undefined ? undefined : JSON.parse(${x});`;
|
|
2554
|
+
}).join(`
|
|
2555
|
+
`), v = jo(s);
|
|
2556
|
+
if (v === "") {
|
|
2557
|
+
q.warn("Skipping evaluation of empty code block.");
|
|
2558
|
+
return;
|
|
2559
|
+
}
|
|
2560
|
+
const b = `
|
|
2561
|
+
function theFunction() {
|
|
2562
|
+
${g}
|
|
2563
|
+
|
|
2564
|
+
${v}
|
|
2565
|
+
}
|
|
2566
|
+
theFunction();
|
|
2567
|
+
`, M = (S, x) => {
|
|
2568
|
+
const P = sr(f, S, x);
|
|
2569
|
+
a == null || a(P);
|
|
2570
|
+
}, E = function(S, x) {
|
|
2571
|
+
h.forEach(([P, U]) => {
|
|
2572
|
+
const m = JSON.stringify(U);
|
|
2573
|
+
S.setProperty(x, Xn(P), m);
|
|
2574
|
+
}), S.setProperty(x, "setRootState", S.createNativeFunction(M));
|
|
2575
|
+
};
|
|
2576
|
+
try {
|
|
2577
|
+
const S = new d(b, E);
|
|
2578
|
+
return S.run(), S.pseudoToNative(S.value);
|
|
2579
|
+
} catch (S) {
|
|
2580
|
+
q.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2581
|
+
e: S
|
|
2582
|
+
});
|
|
2583
|
+
return;
|
|
2584
|
+
}
|
|
2585
|
+
};
|
|
2586
|
+
function rn({
|
|
2587
|
+
code: e,
|
|
2588
|
+
context: t,
|
|
2589
|
+
localState: r,
|
|
2590
|
+
rootState: n,
|
|
2591
|
+
rootSetState: o,
|
|
2592
|
+
event: a,
|
|
2593
|
+
isExpression: s = !0
|
|
2594
|
+
}) {
|
|
2595
|
+
if (e === "") {
|
|
2596
|
+
q.warn("Skipping evaluation of empty code block.");
|
|
2597
|
+
return;
|
|
2598
|
+
}
|
|
2599
|
+
const f = {
|
|
2600
|
+
isEditing: Kt(),
|
|
2601
|
+
isBrowser: z(),
|
|
2602
|
+
isServer: !z(),
|
|
2603
|
+
getUserAttributes: () => ar()
|
|
2604
|
+
}, v = {
|
|
2605
|
+
code: /* we disable this for cases where we definitely don't want a return */ s && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
2606
|
+
builder: f,
|
|
2607
|
+
context: t,
|
|
2608
|
+
event: a,
|
|
2609
|
+
rootSetState: o,
|
|
2610
|
+
rootState: n,
|
|
2611
|
+
localState: r
|
|
2612
|
+
};
|
|
2613
|
+
try {
|
|
2614
|
+
return Oo(v);
|
|
2615
|
+
} catch (b) {
|
|
2616
|
+
q.error("Failed code evaluation: " + b.message, {
|
|
2617
|
+
code: e
|
|
2618
|
+
});
|
|
2619
|
+
return;
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2622
|
+
const Ro = ({
|
|
2623
|
+
block: e,
|
|
2624
|
+
context: t,
|
|
2625
|
+
localState: r,
|
|
2626
|
+
rootState: n,
|
|
2627
|
+
rootSetState: o
|
|
2628
|
+
}) => {
|
|
2629
|
+
if (!e.bindings)
|
|
2630
|
+
return e;
|
|
2631
|
+
const a = st(e), s = {
|
|
2632
|
+
...a,
|
|
2633
|
+
properties: {
|
|
2634
|
+
...a.properties
|
|
2635
|
+
},
|
|
2636
|
+
actions: {
|
|
2637
|
+
...a.actions
|
|
2638
|
+
}
|
|
2639
|
+
};
|
|
2640
|
+
for (const f in e.bindings) {
|
|
2641
|
+
const h = e.bindings[f], g = rn({
|
|
2642
|
+
code: h,
|
|
2643
|
+
localState: r,
|
|
2644
|
+
rootState: n,
|
|
2645
|
+
rootSetState: o,
|
|
2646
|
+
context: t
|
|
2647
|
+
});
|
|
2648
|
+
sr(s, f, g);
|
|
2649
|
+
}
|
|
2650
|
+
return s;
|
|
2651
|
+
};
|
|
2652
|
+
function hr({
|
|
2653
|
+
block: e,
|
|
2654
|
+
context: t,
|
|
2655
|
+
shouldEvaluateBindings: r,
|
|
2656
|
+
localState: n,
|
|
2657
|
+
rootState: o,
|
|
2658
|
+
rootSetState: a
|
|
2659
|
+
}) {
|
|
2660
|
+
const s = e;
|
|
2661
|
+
return r ? Ro({
|
|
2662
|
+
block: s,
|
|
2663
|
+
localState: n,
|
|
2664
|
+
rootState: o,
|
|
2665
|
+
rootSetState: a,
|
|
2666
|
+
context: t
|
|
2667
|
+
}) : s;
|
|
2668
|
+
}
|
|
2669
|
+
const Po = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), xe = (e) => e != null, dr = (e) => Object.entries(e).map(([r, n]) => {
|
|
2670
|
+
if (typeof n == "string")
|
|
2671
|
+
return `${Po(r)}: ${n};`;
|
|
2672
|
+
}).filter(xe), No = (e) => dr(e).join(`
|
|
2673
|
+
`), va = ({
|
|
2674
|
+
mediaQuery: e,
|
|
2675
|
+
className: t,
|
|
2676
|
+
styles: r
|
|
2677
|
+
}) => {
|
|
2678
|
+
const n = `.${t} {
|
|
2679
|
+
${No(r)}
|
|
2680
|
+
}`;
|
|
2681
|
+
return e ? `${e} {
|
|
2682
|
+
${n}
|
|
2683
|
+
}` : n;
|
|
2684
|
+
};
|
|
2685
|
+
function on(e) {
|
|
2686
|
+
return /* @__PURE__ */ A("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2687
|
+
}
|
|
2688
|
+
function Mo(e) {
|
|
2689
|
+
var t;
|
|
2690
|
+
return {
|
|
2691
|
+
...(t = e.component) == null ? void 0 : t.options,
|
|
2692
|
+
...e.options,
|
|
2693
|
+
/**
|
|
2694
|
+
* Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
|
|
2695
|
+
*/
|
|
2696
|
+
builderBlock: e
|
|
2697
|
+
};
|
|
2698
|
+
}
|
|
2699
|
+
const Fo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], Ut = (e) => typeof e == "string" && Fo.includes(e.toLowerCase()), Uo = ({
|
|
2700
|
+
block: e,
|
|
2701
|
+
context: t,
|
|
2702
|
+
registeredComponents: r
|
|
2703
|
+
}) => {
|
|
2704
|
+
var a;
|
|
2705
|
+
const n = (a = hr({
|
|
2706
|
+
block: e,
|
|
2707
|
+
localState: t.localState,
|
|
2708
|
+
rootState: t.rootState,
|
|
2709
|
+
rootSetState: t.rootSetState,
|
|
2710
|
+
context: t.context,
|
|
2711
|
+
shouldEvaluateBindings: !1
|
|
2712
|
+
}).component) == null ? void 0 : a.name;
|
|
2713
|
+
if (!n)
|
|
2714
|
+
return null;
|
|
2715
|
+
const o = r[n];
|
|
2716
|
+
if (o)
|
|
2717
|
+
return o;
|
|
2718
|
+
console.warn(`
|
|
2719
|
+
Could not find a registered component named "${n}".
|
|
2720
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2721
|
+
}, Bo = ({
|
|
2722
|
+
block: e,
|
|
2723
|
+
context: t
|
|
2724
|
+
}) => {
|
|
2725
|
+
const {
|
|
2726
|
+
repeat: r,
|
|
2727
|
+
...n
|
|
2728
|
+
} = e;
|
|
2729
|
+
if (!(r != null && r.collection))
|
|
2730
|
+
return;
|
|
2731
|
+
const o = rn({
|
|
2732
|
+
code: r.collection,
|
|
2733
|
+
localState: t.localState,
|
|
2734
|
+
rootState: t.rootState,
|
|
2735
|
+
rootSetState: t.rootSetState,
|
|
2736
|
+
context: t.context
|
|
2737
|
+
});
|
|
2738
|
+
if (!Array.isArray(o))
|
|
2739
|
+
return;
|
|
2740
|
+
const a = r.collection.split(".").pop(), s = r.itemName || (a ? a + "Item" : "item");
|
|
2741
|
+
return o.map((h, g) => ({
|
|
2742
|
+
context: {
|
|
2743
|
+
...t,
|
|
2744
|
+
localState: {
|
|
2745
|
+
...t.localState,
|
|
2746
|
+
$index: g,
|
|
2747
|
+
$item: h,
|
|
2748
|
+
[s]: h,
|
|
2749
|
+
[`$${s}Index`]: g
|
|
2750
|
+
}
|
|
2751
|
+
},
|
|
2752
|
+
block: n
|
|
2753
|
+
}));
|
|
2754
|
+
};
|
|
2755
|
+
function Vo(e) {
|
|
2756
|
+
const t = e.repeatContext;
|
|
2757
|
+
return /* @__PURE__ */ A(
|
|
2758
|
+
ct,
|
|
2759
|
+
{
|
|
2760
|
+
block: e.block,
|
|
2761
|
+
context: t,
|
|
2762
|
+
registeredComponents: e.registeredComponents
|
|
2763
|
+
}
|
|
2764
|
+
);
|
|
2765
|
+
}
|
|
2766
|
+
function _o(e) {
|
|
2767
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2768
|
+
}
|
|
2769
|
+
const Lo = (e) => `on${_o(e)}`, $o = (e, t) => (r) => rn({
|
|
2770
|
+
code: e,
|
|
2771
|
+
context: t.context,
|
|
2772
|
+
localState: t.localState,
|
|
2773
|
+
rootState: t.rootState,
|
|
2774
|
+
rootSetState: t.rootSetState,
|
|
2775
|
+
event: r,
|
|
2776
|
+
isExpression: !1
|
|
2777
|
+
});
|
|
2778
|
+
function xa(e) {
|
|
2779
|
+
const t = {}, r = e.block.actions ?? {};
|
|
2780
|
+
for (const n in r) {
|
|
2781
|
+
if (!r.hasOwnProperty(n))
|
|
2782
|
+
continue;
|
|
2783
|
+
const o = r[n];
|
|
2784
|
+
let a = Lo(n);
|
|
2785
|
+
if (e.stripPrefix)
|
|
2786
|
+
switch (me) {
|
|
2787
|
+
case "vue2":
|
|
2788
|
+
case "vue3":
|
|
2789
|
+
a = a.replace("v-on:", "");
|
|
2790
|
+
break;
|
|
2791
|
+
case "svelte":
|
|
2792
|
+
a = a.replace("on:", "");
|
|
2793
|
+
break;
|
|
2794
|
+
}
|
|
2795
|
+
t[a] = $o(o, e);
|
|
2796
|
+
}
|
|
2797
|
+
return t;
|
|
2798
|
+
}
|
|
2799
|
+
function Do(e) {
|
|
2800
|
+
return e.className = e.class, delete e.class, e;
|
|
2801
|
+
}
|
|
2802
|
+
const Wo = (e) => ({
|
|
2803
|
+
href: e.href
|
|
2804
|
+
});
|
|
2805
|
+
function Ho({
|
|
2806
|
+
block: e,
|
|
2807
|
+
context: t
|
|
2808
|
+
}) {
|
|
2809
|
+
var n;
|
|
2810
|
+
const r = {
|
|
2811
|
+
...Wo(e),
|
|
2812
|
+
...e.properties,
|
|
2813
|
+
"builder-id": e.id,
|
|
2814
|
+
style: e.style ? Ko(e.style) : void 0,
|
|
2815
|
+
class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
2816
|
+
};
|
|
2817
|
+
return Do(r);
|
|
2818
|
+
}
|
|
2819
|
+
function Ko(e) {
|
|
2820
|
+
switch (me) {
|
|
2821
|
+
case "svelte":
|
|
2822
|
+
case "vue2":
|
|
2823
|
+
case "vue3":
|
|
2824
|
+
case "solid":
|
|
2825
|
+
return dr(e).join(" ");
|
|
2826
|
+
case "qwik":
|
|
2827
|
+
case "reactNative":
|
|
2828
|
+
case "react":
|
|
2829
|
+
case "rsc":
|
|
2830
|
+
return e;
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
const Go = ({
|
|
2834
|
+
componentOptions: e,
|
|
2835
|
+
builderBlock: t,
|
|
2836
|
+
context: r,
|
|
2837
|
+
componentRef: n,
|
|
2838
|
+
includeBlockProps: o,
|
|
2839
|
+
isInteractive: a,
|
|
2840
|
+
contextValue: s
|
|
2841
|
+
}) => a ? {
|
|
2842
|
+
Wrapper: n,
|
|
2843
|
+
block: t,
|
|
2844
|
+
context: r,
|
|
2845
|
+
wrapperProps: e
|
|
2846
|
+
} : {
|
|
2847
|
+
...e,
|
|
2848
|
+
/**
|
|
2849
|
+
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
2850
|
+
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
2851
|
+
*/
|
|
2852
|
+
...o ? {
|
|
2853
|
+
attributes: Ho({
|
|
2854
|
+
block: t,
|
|
2855
|
+
context: s
|
|
2856
|
+
})
|
|
2857
|
+
} : {}
|
|
2858
|
+
};
|
|
2859
|
+
function Jn(e) {
|
|
2860
|
+
var r, n;
|
|
2861
|
+
const t = e.isInteractive ? Yr : e.componentRef;
|
|
2862
|
+
return /* @__PURE__ */ A($, { children: e.componentRef ? /* @__PURE__ */ A($, { children: /* @__PURE__ */ ue(
|
|
2863
|
+
t,
|
|
2864
|
+
{
|
|
2865
|
+
...Go({
|
|
2866
|
+
componentOptions: e.componentOptions,
|
|
2867
|
+
builderBlock: e.builderBlock,
|
|
2868
|
+
context: e.context,
|
|
2869
|
+
componentRef: e.componentRef,
|
|
2870
|
+
includeBlockProps: e.includeBlockProps,
|
|
2871
|
+
isInteractive: e.isInteractive,
|
|
2872
|
+
contextValue: e.context
|
|
2873
|
+
}),
|
|
2874
|
+
children: [
|
|
2875
|
+
(r = e.blockChildren) == null ? void 0 : r.map((o) => /* @__PURE__ */ A(
|
|
2876
|
+
ct,
|
|
2877
|
+
{
|
|
2878
|
+
block: o,
|
|
2879
|
+
context: e.context,
|
|
2880
|
+
registeredComponents: e.registeredComponents
|
|
2881
|
+
},
|
|
2882
|
+
"block-" + o.id
|
|
2883
|
+
)),
|
|
2884
|
+
(n = e.blockChildren) == null ? void 0 : n.map((o) => /* @__PURE__ */ A(
|
|
2885
|
+
Ht,
|
|
2886
|
+
{
|
|
2887
|
+
block: o,
|
|
2888
|
+
context: e.context
|
|
2889
|
+
},
|
|
2890
|
+
"block-style-" + o.id
|
|
2891
|
+
))
|
|
2892
|
+
]
|
|
2893
|
+
}
|
|
2894
|
+
) }) : null });
|
|
2895
|
+
}
|
|
2896
|
+
function ct(e) {
|
|
2897
|
+
var g, v, b, M;
|
|
2898
|
+
const t = function() {
|
|
2899
|
+
return Uo({
|
|
2900
|
+
block: e.block,
|
|
2901
|
+
context: e.context,
|
|
2902
|
+
registeredComponents: e.registeredComponents
|
|
2903
|
+
});
|
|
2904
|
+
}, r = function() {
|
|
2905
|
+
return Bo({
|
|
2906
|
+
block: e.block,
|
|
2907
|
+
context: e.context
|
|
2908
|
+
});
|
|
2909
|
+
}, n = function() {
|
|
2910
|
+
return r() ? e.block : hr({
|
|
2911
|
+
block: e.block,
|
|
2912
|
+
localState: e.context.localState,
|
|
2913
|
+
rootState: e.context.rootState,
|
|
2914
|
+
rootSetState: e.context.rootSetState,
|
|
2915
|
+
context: e.context.context,
|
|
2916
|
+
shouldEvaluateBindings: !0
|
|
2917
|
+
});
|
|
2918
|
+
}, o = function() {
|
|
2919
|
+
return e.block.tagName || "div";
|
|
2920
|
+
}, a = function() {
|
|
2921
|
+
return "hide" in n() ? !n().hide : "show" in n() ? n().show : !0;
|
|
2922
|
+
}, s = function() {
|
|
2923
|
+
var x;
|
|
2924
|
+
return !((x = t()) != null && x.component) && !r() ? n().children ?? [] : [];
|
|
2925
|
+
}, f = function() {
|
|
2926
|
+
var S, x, P, U, m;
|
|
2927
|
+
return {
|
|
2928
|
+
blockChildren: n().children ?? [],
|
|
2929
|
+
componentRef: (S = t()) == null ? void 0 : S.component,
|
|
2930
|
+
componentOptions: {
|
|
2931
|
+
...Mo(n()),
|
|
2932
|
+
builderContext: e.context,
|
|
2933
|
+
...((x = t()) == null ? void 0 : x.name) === "Symbol" || ((P = t()) == null ? void 0 : P.name) === "Columns" ? {
|
|
2934
|
+
builderComponents: e.registeredComponents
|
|
2935
|
+
} : {}
|
|
2936
|
+
},
|
|
2937
|
+
context: h,
|
|
2938
|
+
registeredComponents: e.registeredComponents,
|
|
2939
|
+
builderBlock: n(),
|
|
2940
|
+
includeBlockProps: ((U = t()) == null ? void 0 : U.noWrap) === !0,
|
|
2941
|
+
isInteractive: !((m = t()) != null && m.isRSC)
|
|
2942
|
+
};
|
|
2943
|
+
}, h = e.context;
|
|
2944
|
+
return /* @__PURE__ */ A($, { children: a() ? /* @__PURE__ */ A($, { children: (g = t()) != null && g.noWrap ? /* @__PURE__ */ A($, { children: /* @__PURE__ */ A(Jn, { ...f() }) }) : /* @__PURE__ */ ue($, { children: [
|
|
2945
|
+
Ut(o()) ? /* @__PURE__ */ A($, { children: /* @__PURE__ */ A(
|
|
2946
|
+
$n,
|
|
2947
|
+
{
|
|
2948
|
+
Wrapper: o(),
|
|
2949
|
+
block: n(),
|
|
2950
|
+
context: e.context,
|
|
2951
|
+
hasChildren: !1
|
|
2952
|
+
}
|
|
2953
|
+
) }) : null,
|
|
2954
|
+
!Ut(o()) && r() ? /* @__PURE__ */ A($, { children: (v = r()) == null ? void 0 : v.map((E, S) => /* @__PURE__ */ A(
|
|
2955
|
+
Vo,
|
|
2956
|
+
{
|
|
2957
|
+
repeatContext: E.context,
|
|
2958
|
+
block: E.block,
|
|
2959
|
+
registeredComponents: e.registeredComponents
|
|
2960
|
+
},
|
|
2961
|
+
S
|
|
2962
|
+
)) }) : null,
|
|
2963
|
+
!Ut(o()) && !r() ? /* @__PURE__ */ A($, { children: /* @__PURE__ */ ue(
|
|
2964
|
+
$n,
|
|
2965
|
+
{
|
|
2966
|
+
Wrapper: o(),
|
|
2967
|
+
block: n(),
|
|
2968
|
+
context: e.context,
|
|
2969
|
+
hasChildren: !0,
|
|
2970
|
+
children: [
|
|
2971
|
+
/* @__PURE__ */ A(Jn, { ...f() }),
|
|
2972
|
+
(b = s()) == null ? void 0 : b.map((E) => /* @__PURE__ */ A(
|
|
2973
|
+
ct,
|
|
2974
|
+
{
|
|
2975
|
+
block: E,
|
|
2976
|
+
context: h,
|
|
2977
|
+
registeredComponents: e.registeredComponents
|
|
2978
|
+
},
|
|
2979
|
+
"block-" + E.id
|
|
2980
|
+
)),
|
|
2981
|
+
(M = s()) == null ? void 0 : M.map((E) => /* @__PURE__ */ A(
|
|
2982
|
+
Ht,
|
|
2983
|
+
{
|
|
2984
|
+
block: E,
|
|
2985
|
+
context: h
|
|
2986
|
+
},
|
|
2987
|
+
"block-style-" + E.id
|
|
2988
|
+
))
|
|
2989
|
+
]
|
|
2990
|
+
}
|
|
2991
|
+
) }) : null
|
|
2992
|
+
] }) }) : null });
|
|
2993
|
+
}
|
|
2994
|
+
function an(e) {
|
|
2995
|
+
var t, r;
|
|
2996
|
+
return /* @__PURE__ */ ue(
|
|
2997
|
+
qr,
|
|
2998
|
+
{
|
|
2999
|
+
blocks: e.blocks,
|
|
3000
|
+
parent: e.parent,
|
|
3001
|
+
path: e.path,
|
|
3002
|
+
styleProp: e.styleProp,
|
|
3003
|
+
children: [
|
|
3004
|
+
e.blocks ? /* @__PURE__ */ A($, { children: (t = e.blocks) == null ? void 0 : t.map((n) => /* @__PURE__ */ A(
|
|
3005
|
+
ct,
|
|
3006
|
+
{
|
|
3007
|
+
block: n,
|
|
3008
|
+
context: e.context,
|
|
3009
|
+
registeredComponents: e.registeredComponents
|
|
3010
|
+
},
|
|
3011
|
+
"render-block-" + n.id
|
|
3012
|
+
)) }) : null,
|
|
3013
|
+
e.blocks ? /* @__PURE__ */ A($, { children: (r = e.blocks) == null ? void 0 : r.map((n) => /* @__PURE__ */ A(
|
|
3014
|
+
Ht,
|
|
3015
|
+
{
|
|
3016
|
+
block: n,
|
|
3017
|
+
context: e.context
|
|
3018
|
+
},
|
|
3019
|
+
"block-style-" + n.id
|
|
3020
|
+
)) }) : null
|
|
3021
|
+
]
|
|
3022
|
+
}
|
|
3023
|
+
);
|
|
3024
|
+
}
|
|
3025
|
+
function Xo(e) {
|
|
3026
|
+
var E;
|
|
3027
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, r = e.columns || [], n = e.stackColumnsAt || "tablet", o = function(x) {
|
|
3028
|
+
var P;
|
|
3029
|
+
return ((P = r[x]) == null ? void 0 : P.width) || 100 / r.length;
|
|
3030
|
+
}, a = function(x) {
|
|
3031
|
+
const P = t * (r.length - 1) / r.length;
|
|
3032
|
+
return `calc(${o(x)}% - ${P}px)`;
|
|
3033
|
+
}, s = function({
|
|
3034
|
+
stackedStyle: x,
|
|
3035
|
+
desktopStyle: P
|
|
3036
|
+
}) {
|
|
3037
|
+
return n === "tablet" ? x : P;
|
|
3038
|
+
}, f = function({
|
|
3039
|
+
stackedStyle: x,
|
|
3040
|
+
desktopStyle: P
|
|
3041
|
+
}) {
|
|
3042
|
+
return n === "never" ? P : x;
|
|
3043
|
+
}, h = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", g = function() {
|
|
3044
|
+
return {
|
|
3045
|
+
"--flex-dir": h,
|
|
3046
|
+
"--flex-dir-tablet": s({
|
|
3047
|
+
stackedStyle: h,
|
|
3048
|
+
desktopStyle: "row"
|
|
3049
|
+
})
|
|
3050
|
+
};
|
|
3051
|
+
}, v = function(x) {
|
|
3052
|
+
const P = x === 0 ? 0 : t, U = a(x), m = `${P}px`, we = "100%", Re = 0;
|
|
3053
|
+
return {
|
|
3054
|
+
width: U,
|
|
3055
|
+
["marginLeft"]: m,
|
|
3056
|
+
"--column-width-mobile": f({
|
|
3057
|
+
stackedStyle: we,
|
|
3058
|
+
desktopStyle: U
|
|
3059
|
+
}),
|
|
3060
|
+
"--column-margin-left-mobile": f({
|
|
3061
|
+
stackedStyle: Re,
|
|
3062
|
+
desktopStyle: m
|
|
3063
|
+
}),
|
|
3064
|
+
"--column-width-tablet": s({
|
|
3065
|
+
stackedStyle: we,
|
|
3066
|
+
desktopStyle: U
|
|
3067
|
+
}),
|
|
3068
|
+
"--column-margin-left-tablet": s({
|
|
3069
|
+
stackedStyle: Re,
|
|
3070
|
+
desktopStyle: m
|
|
3071
|
+
})
|
|
3072
|
+
};
|
|
3073
|
+
}, b = function(x) {
|
|
3074
|
+
var U, m;
|
|
3075
|
+
return so(
|
|
3076
|
+
((m = (U = e.builderContext.content) == null ? void 0 : U.meta) == null ? void 0 : m.breakpoints) || {}
|
|
3077
|
+
)[x].max;
|
|
3078
|
+
}, M = function() {
|
|
3079
|
+
return `
|
|
3080
|
+
@media (max-width: ${b("medium")}px) {
|
|
3081
|
+
.${e.builderBlock.id}-breakpoints {
|
|
3082
|
+
flex-direction: var(--flex-dir-tablet);
|
|
3083
|
+
align-items: stretch;
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
.${e.builderBlock.id}-breakpoints > .builder-column {
|
|
3087
|
+
width: var(--column-width-tablet) !important;
|
|
3088
|
+
margin-left: var(--column-margin-left-tablet) !important;
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
@media (max-width: ${b("small")}px) {
|
|
3093
|
+
.${e.builderBlock.id}-breakpoints {
|
|
3094
|
+
flex-direction: var(--flex-dir);
|
|
3095
|
+
align-items: stretch;
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
.${e.builderBlock.id}-breakpoints > .builder-column {
|
|
3099
|
+
width: var(--column-width-mobile) !important;
|
|
3100
|
+
margin-left: var(--column-margin-left-mobile) !important;
|
|
3101
|
+
}
|
|
3102
|
+
},
|
|
3103
|
+
`;
|
|
3104
|
+
};
|
|
3105
|
+
return /* @__PURE__ */ ue($, { children: [
|
|
3106
|
+
/* @__PURE__ */ ue(
|
|
3107
|
+
"div",
|
|
3108
|
+
{
|
|
3109
|
+
className: `builder-columns ${e.builderBlock.id}-breakpoints div-119431c8`,
|
|
3110
|
+
style: g(),
|
|
3111
|
+
children: [
|
|
3112
|
+
/* @__PURE__ */ A($, { children: /* @__PURE__ */ A(on, { styles: M() }) }),
|
|
3113
|
+
(E = e.columns) == null ? void 0 : E.map((S, x) => /* @__PURE__ */ zr(
|
|
3114
|
+
"div",
|
|
3115
|
+
{
|
|
3116
|
+
className: "builder-column div-119431c8-2",
|
|
3117
|
+
style: v(x),
|
|
3118
|
+
key: x
|
|
3119
|
+
},
|
|
3120
|
+
/* @__PURE__ */ A(
|
|
3121
|
+
an,
|
|
3122
|
+
{
|
|
3123
|
+
path: `component.options.columns.${x}.blocks`,
|
|
3124
|
+
parent: e.builderBlock.id,
|
|
3125
|
+
styleProp: {
|
|
3126
|
+
flexGrow: "1"
|
|
3127
|
+
},
|
|
3128
|
+
context: e.builderContext,
|
|
3129
|
+
registeredComponents: e.builderComponents,
|
|
3130
|
+
blocks: S.blocks
|
|
3131
|
+
}
|
|
3132
|
+
)
|
|
3133
|
+
))
|
|
3134
|
+
]
|
|
3135
|
+
}
|
|
3136
|
+
),
|
|
3137
|
+
/* @__PURE__ */ A("style", { children: `.div-119431c8 {
|
|
3138
|
+
display: flex;
|
|
3139
|
+
line-height: normal;
|
|
3140
|
+
}.div-119431c8-2 {
|
|
3141
|
+
display: flex;
|
|
3142
|
+
flex-direction: column;
|
|
3143
|
+
align-items: stretch;
|
|
3144
|
+
}` })
|
|
3145
|
+
] });
|
|
3146
|
+
}
|
|
3147
|
+
function zn(e) {
|
|
3148
|
+
return e.replace(/http(s)?:/, "");
|
|
3149
|
+
}
|
|
3150
|
+
function Jo(e = "", t, r) {
|
|
3151
|
+
const n = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3152
|
+
return e.match(n) ? e.replace(n, "$1" + t + "=" + encodeURIComponent(r) + "$2") : e + o + t + "=" + encodeURIComponent(r);
|
|
3153
|
+
}
|
|
3154
|
+
function zo(e, t) {
|
|
3155
|
+
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3156
|
+
return e;
|
|
3157
|
+
if (t === "master")
|
|
3158
|
+
return zn(e);
|
|
3159
|
+
const r = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3160
|
+
if (r) {
|
|
3161
|
+
const n = e.split(r[0]), o = r[3], a = t.match("x") ? t : `${t}x`;
|
|
3162
|
+
return zn(`${n[0]}_${a}${o}`);
|
|
3163
|
+
}
|
|
3164
|
+
return null;
|
|
3165
|
+
}
|
|
3166
|
+
function wa(e) {
|
|
3167
|
+
if (!e)
|
|
3168
|
+
return e;
|
|
3169
|
+
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3170
|
+
if (e.match(/builder\.io/)) {
|
|
3171
|
+
let r = e;
|
|
3172
|
+
const n = Number(e.split("?width=")[1]);
|
|
3173
|
+
return isNaN(n) || (r = `${r} ${n}w`), t.filter((o) => o !== n).map((o) => `${Jo(e, "width", o)} ${o}w`).concat([r]).join(", ");
|
|
3174
|
+
}
|
|
3175
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [zo(e, `${r}x${r}`), r]).filter(([r]) => !!r).map(([r, n]) => `${r} ${n}w`).concat([e]).join(", ") : e;
|
|
3176
|
+
}
|
|
3177
|
+
const at = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3178
|
+
...t,
|
|
3179
|
+
testVariationId: t.id,
|
|
3180
|
+
id: e == null ? void 0 : e.id
|
|
3181
|
+
})), Yo = ({
|
|
3182
|
+
canTrack: e,
|
|
3183
|
+
content: t
|
|
3184
|
+
}) => !(!(at(t).length > 0) || !e || z());
|
|
3185
|
+
function qo(e, t, r) {
|
|
3186
|
+
var s;
|
|
3187
|
+
function n() {
|
|
3188
|
+
function f(S, x, P) {
|
|
3189
|
+
let U = "";
|
|
3190
|
+
if (P) {
|
|
3191
|
+
const m = /* @__PURE__ */ new Date();
|
|
3192
|
+
m.setTime(m.getTime() + P * 24 * 60 * 60 * 1e3), U = "; expires=" + m.toUTCString();
|
|
3193
|
+
}
|
|
3194
|
+
document.cookie = S + "=" + (x || "") + U + "; path=/; Secure; SameSite=None";
|
|
3195
|
+
}
|
|
3196
|
+
function h(S) {
|
|
3197
|
+
const x = S + "=", P = document.cookie.split(";");
|
|
3198
|
+
for (let U = 0; U < P.length; U++) {
|
|
3199
|
+
let m = P[U];
|
|
3200
|
+
for (; m.charAt(0) === " "; )
|
|
3201
|
+
m = m.substring(1, m.length);
|
|
3202
|
+
if (m.indexOf(x) === 0)
|
|
3203
|
+
return m.substring(x.length, m.length);
|
|
3204
|
+
}
|
|
3205
|
+
return null;
|
|
3206
|
+
}
|
|
3207
|
+
const g = `builder.tests.${e}`, v = h(g), b = t.map((S) => S.id).concat(e);
|
|
3208
|
+
if (v && b.includes(v))
|
|
3209
|
+
return v;
|
|
3210
|
+
let M = 0;
|
|
3211
|
+
const E = Math.random();
|
|
3212
|
+
for (let S = 0; S < t.length; S++) {
|
|
3213
|
+
const x = t[S], P = x.testRatio;
|
|
3214
|
+
if (M += P, E < M)
|
|
3215
|
+
return f(g, x.id), x.id;
|
|
3216
|
+
}
|
|
3217
|
+
return f(g, e), e;
|
|
3218
|
+
}
|
|
3219
|
+
const o = n(), a = (s = document.currentScript) == null ? void 0 : s.previousElementSibling;
|
|
3220
|
+
if (r) {
|
|
3221
|
+
a.remove();
|
|
3222
|
+
const f = document.currentScript;
|
|
3223
|
+
f == null || f.remove();
|
|
3224
|
+
} else {
|
|
3225
|
+
const f = t.concat({
|
|
3226
|
+
id: e
|
|
3227
|
+
}).filter((h) => h.id !== o).map((h) => `.variant-${h.id} { display: none; }
|
|
3228
|
+
`).join("");
|
|
3229
|
+
a.innerHTML = f;
|
|
3230
|
+
}
|
|
3231
|
+
}
|
|
3232
|
+
function Zo(e, t, r) {
|
|
3233
|
+
var h;
|
|
3234
|
+
if (!navigator.cookieEnabled)
|
|
3235
|
+
return;
|
|
3236
|
+
function n(g) {
|
|
3237
|
+
const v = g + "=", b = document.cookie.split(";");
|
|
3238
|
+
for (let M = 0; M < b.length; M++) {
|
|
3239
|
+
let E = b[M];
|
|
3240
|
+
for (; E.charAt(0) === " "; )
|
|
3241
|
+
E = E.substring(1, E.length);
|
|
3242
|
+
if (E.indexOf(v) === 0)
|
|
3243
|
+
return E.substring(v.length, E.length);
|
|
3244
|
+
}
|
|
3245
|
+
return null;
|
|
3246
|
+
}
|
|
3247
|
+
const o = `builder.tests.${t}`, a = n(o), s = (h = document.currentScript) == null ? void 0 : h.parentElement, f = e === t;
|
|
3248
|
+
if (a === e) {
|
|
3249
|
+
if (f)
|
|
3250
|
+
return;
|
|
3251
|
+
s == null || s.removeAttribute("hidden"), s == null || s.removeAttribute("aria-hidden");
|
|
3252
|
+
} else {
|
|
3253
|
+
f && (r ? s == null || s.remove() : (s == null || s.setAttribute("hidden", "true"), s == null || s.setAttribute("aria-hidden", "true")));
|
|
3254
|
+
return;
|
|
3255
|
+
}
|
|
3256
|
+
}
|
|
3257
|
+
const Qo = (e) => e === "react" || e === "reactNative", mr = Qo(me), gr = "builderIoAbTest", yr = "builderIoRenderContent", ei = () => {
|
|
3258
|
+
const e = qo.toString().replace(/\s+/g, " "), t = Zo.toString().replace(/\s+/g, " ");
|
|
3259
|
+
return `
|
|
3260
|
+
window.${gr} = ${e}
|
|
3261
|
+
window.${yr} = ${t}
|
|
3262
|
+
`;
|
|
3263
|
+
}, ti = (e, t) => `
|
|
3264
|
+
window.${gr}("${t}",${JSON.stringify(e)}, ${mr})`, ni = ({
|
|
3265
|
+
contentId: e,
|
|
3266
|
+
variationId: t
|
|
3267
|
+
}) => `
|
|
3268
|
+
window.${yr}("${t}", "${e}", ${mr})`, ri = {
|
|
3269
|
+
name: "Core:Button",
|
|
3270
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3271
|
+
defaultStyles: {
|
|
3272
|
+
// TODO: make min width more intuitive and set one
|
|
3273
|
+
appearance: "none",
|
|
3274
|
+
paddingTop: "15px",
|
|
3275
|
+
paddingBottom: "15px",
|
|
3276
|
+
paddingLeft: "25px",
|
|
3277
|
+
paddingRight: "25px",
|
|
3278
|
+
backgroundColor: "#000000",
|
|
3279
|
+
color: "white",
|
|
3280
|
+
borderRadius: "4px",
|
|
3281
|
+
textAlign: "center",
|
|
3282
|
+
cursor: "pointer"
|
|
3283
|
+
},
|
|
3284
|
+
inputs: [{
|
|
3285
|
+
name: "text",
|
|
3286
|
+
type: "text",
|
|
3287
|
+
defaultValue: "Click me!",
|
|
3288
|
+
bubble: !0
|
|
3289
|
+
}, {
|
|
3290
|
+
name: "link",
|
|
3291
|
+
type: "url",
|
|
3292
|
+
bubble: !0
|
|
3293
|
+
}, {
|
|
3294
|
+
name: "openLinkInNewTab",
|
|
3295
|
+
type: "boolean",
|
|
3296
|
+
defaultValue: !1,
|
|
3297
|
+
friendlyName: "Open link in new tab"
|
|
3298
|
+
}],
|
|
3299
|
+
static: !0,
|
|
3300
|
+
noWrap: !0
|
|
3301
|
+
}, oi = {
|
|
3302
|
+
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3303
|
+
name: "Columns",
|
|
3304
|
+
isRSC: !0,
|
|
3305
|
+
inputs: [{
|
|
3306
|
+
name: "columns",
|
|
3307
|
+
type: "array",
|
|
3308
|
+
broadcast: !0,
|
|
3309
|
+
subFields: [{
|
|
3310
|
+
name: "blocks",
|
|
3311
|
+
type: "array",
|
|
3312
|
+
hideFromUI: !0,
|
|
3313
|
+
defaultValue: [{
|
|
3314
|
+
"@type": "@builder.io/sdk:Element",
|
|
3315
|
+
responsiveStyles: {
|
|
3316
|
+
large: {
|
|
3317
|
+
display: "flex",
|
|
3318
|
+
flexDirection: "column",
|
|
3319
|
+
alignItems: "stretch",
|
|
3320
|
+
flexShrink: "0",
|
|
3321
|
+
position: "relative",
|
|
3322
|
+
marginTop: "30px",
|
|
3323
|
+
textAlign: "center",
|
|
3324
|
+
lineHeight: "normal",
|
|
3325
|
+
height: "auto",
|
|
3326
|
+
minHeight: "20px",
|
|
3327
|
+
minWidth: "20px",
|
|
3328
|
+
overflow: "hidden"
|
|
3329
|
+
}
|
|
3330
|
+
},
|
|
3331
|
+
component: {
|
|
3332
|
+
name: "Image",
|
|
3333
|
+
options: {
|
|
3334
|
+
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
3335
|
+
backgroundPosition: "center",
|
|
3336
|
+
backgroundSize: "cover",
|
|
3337
|
+
aspectRatio: 0.7004048582995948
|
|
3338
|
+
}
|
|
3339
|
+
}
|
|
3340
|
+
}, {
|
|
3341
|
+
"@type": "@builder.io/sdk:Element",
|
|
3342
|
+
responsiveStyles: {
|
|
3343
|
+
large: {
|
|
3344
|
+
display: "flex",
|
|
3345
|
+
flexDirection: "column",
|
|
3346
|
+
alignItems: "stretch",
|
|
3347
|
+
flexShrink: "0",
|
|
3348
|
+
position: "relative",
|
|
3349
|
+
marginTop: "30px",
|
|
3350
|
+
textAlign: "center",
|
|
3351
|
+
lineHeight: "normal",
|
|
3352
|
+
height: "auto"
|
|
3353
|
+
}
|
|
3354
|
+
},
|
|
3355
|
+
component: {
|
|
3356
|
+
name: "Text",
|
|
3357
|
+
options: {
|
|
3358
|
+
text: "<p>Enter some text...</p>"
|
|
3359
|
+
}
|
|
3360
|
+
}
|
|
3361
|
+
}]
|
|
3362
|
+
}, {
|
|
3363
|
+
name: "width",
|
|
3364
|
+
type: "number",
|
|
3365
|
+
hideFromUI: !0,
|
|
3366
|
+
helperText: "Width %, e.g. set to 50 to fill half of the space"
|
|
3367
|
+
}, {
|
|
3368
|
+
name: "link",
|
|
3369
|
+
type: "url",
|
|
3370
|
+
helperText: "Optionally set a url that clicking this column will link to"
|
|
3371
|
+
}],
|
|
3372
|
+
defaultValue: [{
|
|
3373
|
+
blocks: [{
|
|
3374
|
+
"@type": "@builder.io/sdk:Element",
|
|
3375
|
+
responsiveStyles: {
|
|
3376
|
+
large: {
|
|
3377
|
+
display: "flex",
|
|
3378
|
+
flexDirection: "column",
|
|
3379
|
+
alignItems: "stretch",
|
|
3380
|
+
flexShrink: "0",
|
|
3381
|
+
position: "relative",
|
|
3382
|
+
marginTop: "30px",
|
|
3383
|
+
textAlign: "center",
|
|
3384
|
+
lineHeight: "normal",
|
|
3385
|
+
height: "auto",
|
|
3386
|
+
minHeight: "20px",
|
|
3387
|
+
minWidth: "20px",
|
|
3388
|
+
overflow: "hidden"
|
|
3389
|
+
}
|
|
3390
|
+
},
|
|
3391
|
+
component: {
|
|
3392
|
+
name: "Image",
|
|
3393
|
+
options: {
|
|
3394
|
+
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
3395
|
+
backgroundPosition: "center",
|
|
3396
|
+
backgroundSize: "cover",
|
|
3397
|
+
aspectRatio: 0.7004048582995948
|
|
3398
|
+
}
|
|
3399
|
+
}
|
|
3400
|
+
}, {
|
|
3401
|
+
"@type": "@builder.io/sdk:Element",
|
|
3402
|
+
responsiveStyles: {
|
|
3403
|
+
large: {
|
|
3404
|
+
display: "flex",
|
|
3405
|
+
flexDirection: "column",
|
|
3406
|
+
alignItems: "stretch",
|
|
3407
|
+
flexShrink: "0",
|
|
3408
|
+
position: "relative",
|
|
3409
|
+
marginTop: "30px",
|
|
3410
|
+
textAlign: "center",
|
|
3411
|
+
lineHeight: "normal",
|
|
3412
|
+
height: "auto"
|
|
3413
|
+
}
|
|
3414
|
+
},
|
|
3415
|
+
component: {
|
|
3416
|
+
name: "Text",
|
|
3417
|
+
options: {
|
|
3418
|
+
text: "<p>Enter some text...</p>"
|
|
3419
|
+
}
|
|
3420
|
+
}
|
|
3421
|
+
}]
|
|
3422
|
+
}, {
|
|
3423
|
+
blocks: [{
|
|
3424
|
+
"@type": "@builder.io/sdk:Element",
|
|
3425
|
+
responsiveStyles: {
|
|
3426
|
+
large: {
|
|
3427
|
+
display: "flex",
|
|
3428
|
+
flexDirection: "column",
|
|
3429
|
+
alignItems: "stretch",
|
|
3430
|
+
flexShrink: "0",
|
|
3431
|
+
position: "relative",
|
|
3432
|
+
marginTop: "30px",
|
|
3433
|
+
textAlign: "center",
|
|
3434
|
+
lineHeight: "normal",
|
|
3435
|
+
height: "auto",
|
|
3436
|
+
minHeight: "20px",
|
|
3437
|
+
minWidth: "20px",
|
|
3438
|
+
overflow: "hidden"
|
|
3439
|
+
}
|
|
3440
|
+
},
|
|
3441
|
+
component: {
|
|
3442
|
+
name: "Image",
|
|
3443
|
+
options: {
|
|
3444
|
+
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
3445
|
+
backgroundPosition: "center",
|
|
3446
|
+
backgroundSize: "cover",
|
|
3447
|
+
aspectRatio: 0.7004048582995948
|
|
3448
|
+
}
|
|
3449
|
+
}
|
|
3450
|
+
}, {
|
|
3451
|
+
"@type": "@builder.io/sdk:Element",
|
|
3452
|
+
responsiveStyles: {
|
|
3453
|
+
large: {
|
|
3454
|
+
display: "flex",
|
|
3455
|
+
flexDirection: "column",
|
|
3456
|
+
alignItems: "stretch",
|
|
3457
|
+
flexShrink: "0",
|
|
3458
|
+
position: "relative",
|
|
3459
|
+
marginTop: "30px",
|
|
3460
|
+
textAlign: "center",
|
|
3461
|
+
lineHeight: "normal",
|
|
3462
|
+
height: "auto"
|
|
3463
|
+
}
|
|
3464
|
+
},
|
|
3465
|
+
component: {
|
|
3466
|
+
name: "Text",
|
|
3467
|
+
options: {
|
|
3468
|
+
text: "<p>Enter some text...</p>"
|
|
3469
|
+
}
|
|
3470
|
+
}
|
|
3471
|
+
}]
|
|
3472
|
+
}],
|
|
3473
|
+
onChange: (e) => {
|
|
3474
|
+
function t() {
|
|
3475
|
+
r.forEach((n) => {
|
|
3476
|
+
n.delete("width");
|
|
3477
|
+
});
|
|
3478
|
+
}
|
|
3479
|
+
const r = e.get("columns");
|
|
3480
|
+
Array.isArray(r) && r.find((o) => o.get("width")) && (r.find((a) => !a.get("width")) || r.reduce((f, h) => f + h.get("width"), 0) !== 100) && t();
|
|
3481
|
+
}
|
|
3482
|
+
}, {
|
|
3483
|
+
name: "space",
|
|
3484
|
+
type: "number",
|
|
3485
|
+
defaultValue: 20,
|
|
3486
|
+
helperText: "Size of gap between columns",
|
|
3487
|
+
advanced: !0
|
|
3488
|
+
}, {
|
|
3489
|
+
name: "stackColumnsAt",
|
|
3490
|
+
type: "string",
|
|
3491
|
+
defaultValue: "tablet",
|
|
3492
|
+
helperText: "Convert horizontal columns to vertical at what device size",
|
|
3493
|
+
enum: ["tablet", "mobile", "never"],
|
|
3494
|
+
advanced: !0
|
|
3495
|
+
}, {
|
|
3496
|
+
name: "reverseColumnsWhenStacked",
|
|
3497
|
+
type: "boolean",
|
|
3498
|
+
defaultValue: !1,
|
|
3499
|
+
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3500
|
+
advanced: !0
|
|
3501
|
+
}]
|
|
3502
|
+
}, ii = {
|
|
3503
|
+
name: "Fragment",
|
|
3504
|
+
static: !0,
|
|
3505
|
+
hidden: !0,
|
|
3506
|
+
canHaveChildren: !0,
|
|
3507
|
+
noWrap: !0
|
|
3508
|
+
}, ai = {
|
|
3509
|
+
name: "Image",
|
|
3510
|
+
static: !0,
|
|
3511
|
+
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",
|
|
3512
|
+
defaultStyles: {
|
|
3513
|
+
position: "relative",
|
|
3514
|
+
minHeight: "20px",
|
|
3515
|
+
minWidth: "20px",
|
|
3516
|
+
overflow: "hidden"
|
|
3517
|
+
},
|
|
3518
|
+
canHaveChildren: !0,
|
|
3519
|
+
inputs: [{
|
|
3520
|
+
name: "image",
|
|
3521
|
+
type: "file",
|
|
3522
|
+
bubble: !0,
|
|
3523
|
+
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
3524
|
+
required: !0,
|
|
3525
|
+
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
3526
|
+
onChange: (e) => {
|
|
3527
|
+
e.delete("srcset"), e.delete("noWebp");
|
|
3528
|
+
function r(s, f = 6e4) {
|
|
3529
|
+
return new Promise((h, g) => {
|
|
3530
|
+
const v = document.createElement("img");
|
|
3531
|
+
let b = !1;
|
|
3532
|
+
v.onload = () => {
|
|
3533
|
+
b = !0, h(v);
|
|
3534
|
+
}, v.addEventListener("error", (M) => {
|
|
3535
|
+
console.warn("Image load failed", M.error), g(M.error);
|
|
3536
|
+
}), v.src = s, setTimeout(() => {
|
|
3537
|
+
b || g(new Error("Image load timed out"));
|
|
3538
|
+
}, f);
|
|
3539
|
+
});
|
|
3540
|
+
}
|
|
3541
|
+
function n(s) {
|
|
3542
|
+
return Math.round(s * 1e3) / 1e3;
|
|
3543
|
+
}
|
|
3544
|
+
const o = e.get("image"), a = e.get("aspectRatio");
|
|
3545
|
+
if (fetch(o).then((s) => s.blob()).then((s) => {
|
|
3546
|
+
s.type.includes("svg") && e.set("noWebp", !0);
|
|
3547
|
+
}), o && (!a || a === 0.7041))
|
|
3548
|
+
return r(o).then((s) => {
|
|
3549
|
+
const f = e.get("aspectRatio");
|
|
3550
|
+
e.get("image") === o && (!f || f === 0.7041) && s.width && s.height && (e.set("aspectRatio", n(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
|
|
3551
|
+
});
|
|
3552
|
+
}
|
|
3553
|
+
}, {
|
|
3554
|
+
name: "backgroundSize",
|
|
3555
|
+
type: "text",
|
|
3556
|
+
defaultValue: "cover",
|
|
3557
|
+
enum: [{
|
|
3558
|
+
label: "contain",
|
|
3559
|
+
value: "contain",
|
|
3560
|
+
helperText: "The image should never get cropped"
|
|
3561
|
+
}, {
|
|
3562
|
+
label: "cover",
|
|
3563
|
+
value: "cover",
|
|
3564
|
+
helperText: "The image should fill it's box, cropping when needed"
|
|
3565
|
+
}]
|
|
3566
|
+
}, {
|
|
3567
|
+
name: "backgroundPosition",
|
|
3568
|
+
type: "text",
|
|
3569
|
+
defaultValue: "center",
|
|
3570
|
+
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
3571
|
+
}, {
|
|
3572
|
+
name: "altText",
|
|
3573
|
+
type: "string",
|
|
3574
|
+
helperText: "Text to display when the user has images off"
|
|
3575
|
+
}, {
|
|
3576
|
+
name: "height",
|
|
3577
|
+
type: "number",
|
|
3578
|
+
hideFromUI: !0
|
|
3579
|
+
}, {
|
|
3580
|
+
name: "width",
|
|
3581
|
+
type: "number",
|
|
3582
|
+
hideFromUI: !0
|
|
3583
|
+
}, {
|
|
3584
|
+
name: "sizes",
|
|
3585
|
+
type: "string",
|
|
3586
|
+
hideFromUI: !0
|
|
3587
|
+
}, {
|
|
3588
|
+
name: "srcset",
|
|
3589
|
+
type: "string",
|
|
3590
|
+
hideFromUI: !0
|
|
3591
|
+
}, {
|
|
3592
|
+
name: "lazy",
|
|
3593
|
+
type: "boolean",
|
|
3594
|
+
defaultValue: !0,
|
|
3595
|
+
hideFromUI: !0
|
|
3596
|
+
}, {
|
|
3597
|
+
name: "fitContent",
|
|
3598
|
+
type: "boolean",
|
|
3599
|
+
helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
|
|
3600
|
+
defaultValue: !0
|
|
3601
|
+
}, {
|
|
3602
|
+
name: "aspectRatio",
|
|
3603
|
+
type: "number",
|
|
3604
|
+
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
3605
|
+
advanced: !0,
|
|
3606
|
+
defaultValue: 0.7041
|
|
3607
|
+
}]
|
|
3608
|
+
}, si = {
|
|
3609
|
+
name: "Core:Section",
|
|
3610
|
+
static: !0,
|
|
3611
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
3612
|
+
inputs: [{
|
|
3613
|
+
name: "maxWidth",
|
|
3614
|
+
type: "number",
|
|
3615
|
+
defaultValue: 1200
|
|
3616
|
+
}, {
|
|
3617
|
+
name: "lazyLoad",
|
|
3618
|
+
type: "boolean",
|
|
3619
|
+
defaultValue: !1,
|
|
3620
|
+
advanced: !0,
|
|
3621
|
+
description: "Only render this section when in view"
|
|
3622
|
+
}],
|
|
3623
|
+
defaultStyles: {
|
|
3624
|
+
paddingLeft: "20px",
|
|
3625
|
+
paddingRight: "20px",
|
|
3626
|
+
paddingTop: "50px",
|
|
3627
|
+
paddingBottom: "50px",
|
|
3628
|
+
marginTop: "0px",
|
|
3629
|
+
width: "100vw",
|
|
3630
|
+
marginLeft: "calc(50% - 50vw)"
|
|
3631
|
+
},
|
|
3632
|
+
canHaveChildren: !0,
|
|
3633
|
+
defaultChildren: [{
|
|
3634
|
+
"@type": "@builder.io/sdk:Element",
|
|
3635
|
+
responsiveStyles: {
|
|
3636
|
+
large: {
|
|
3637
|
+
textAlign: "center"
|
|
3638
|
+
}
|
|
3639
|
+
},
|
|
3640
|
+
component: {
|
|
3641
|
+
name: "Text",
|
|
3642
|
+
options: {
|
|
3643
|
+
text: "<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"
|
|
3644
|
+
}
|
|
3645
|
+
}
|
|
3646
|
+
}]
|
|
3647
|
+
}, li = {
|
|
3648
|
+
name: "Symbol",
|
|
3649
|
+
noWrap: !0,
|
|
3650
|
+
static: !0,
|
|
3651
|
+
isRSC: !0,
|
|
3652
|
+
inputs: [{
|
|
3653
|
+
name: "symbol",
|
|
3654
|
+
type: "uiSymbol"
|
|
3655
|
+
}, {
|
|
3656
|
+
name: "dataOnly",
|
|
3657
|
+
helperText: "Make this a data symbol that doesn't display any UI",
|
|
3658
|
+
type: "boolean",
|
|
3659
|
+
defaultValue: !1,
|
|
3660
|
+
advanced: !0,
|
|
3661
|
+
hideFromUI: !0
|
|
3662
|
+
}, {
|
|
3663
|
+
name: "inheritState",
|
|
3664
|
+
helperText: "Inherit the parent component state and data",
|
|
3665
|
+
type: "boolean",
|
|
3666
|
+
defaultValue: !1,
|
|
3667
|
+
advanced: !0
|
|
3668
|
+
}, {
|
|
3669
|
+
name: "renderToLiquid",
|
|
3670
|
+
helperText: "Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",
|
|
3671
|
+
type: "boolean",
|
|
3672
|
+
defaultValue: !1,
|
|
3673
|
+
advanced: !0,
|
|
3674
|
+
hideFromUI: !0
|
|
3675
|
+
}, {
|
|
3676
|
+
name: "useChildren",
|
|
3677
|
+
hideFromUI: !0,
|
|
3678
|
+
type: "boolean"
|
|
3679
|
+
}]
|
|
3680
|
+
}, ui = {
|
|
3681
|
+
name: "Text",
|
|
3682
|
+
static: !0,
|
|
3683
|
+
isRSC: !0,
|
|
3684
|
+
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
3685
|
+
inputs: [{
|
|
3686
|
+
name: "text",
|
|
3687
|
+
type: "html",
|
|
3688
|
+
required: !0,
|
|
3689
|
+
autoFocus: !0,
|
|
3690
|
+
bubble: !0,
|
|
3691
|
+
defaultValue: "Enter some text..."
|
|
3692
|
+
}],
|
|
3693
|
+
defaultStyles: {
|
|
3694
|
+
lineHeight: "normal",
|
|
3695
|
+
height: "auto",
|
|
3696
|
+
textAlign: "center"
|
|
3697
|
+
}
|
|
3698
|
+
};
|
|
3699
|
+
function ci(e) {
|
|
3700
|
+
var t;
|
|
3701
|
+
return /* @__PURE__ */ A(
|
|
3702
|
+
"span",
|
|
3703
|
+
{
|
|
3704
|
+
className: "builder-text",
|
|
3705
|
+
dangerouslySetInnerHTML: { __html: ((t = e.text) == null ? void 0 : t.toString()) || "" },
|
|
3706
|
+
style: {
|
|
3707
|
+
outline: "none"
|
|
3708
|
+
}
|
|
3709
|
+
}
|
|
3710
|
+
);
|
|
3711
|
+
}
|
|
3712
|
+
const fi = {
|
|
3713
|
+
name: "Video",
|
|
3714
|
+
canHaveChildren: !0,
|
|
3715
|
+
defaultStyles: {
|
|
3716
|
+
minHeight: "20px",
|
|
3717
|
+
minWidth: "20px"
|
|
3718
|
+
},
|
|
3719
|
+
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",
|
|
3720
|
+
inputs: [{
|
|
3721
|
+
name: "video",
|
|
3722
|
+
type: "file",
|
|
3723
|
+
allowedFileTypes: ["mp4"],
|
|
3724
|
+
bubble: !0,
|
|
3725
|
+
defaultValue: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",
|
|
3726
|
+
required: !0
|
|
3727
|
+
}, {
|
|
3728
|
+
name: "posterImage",
|
|
3729
|
+
type: "file",
|
|
3730
|
+
allowedFileTypes: ["jpeg", "png"],
|
|
3731
|
+
helperText: "Image to show before the video plays"
|
|
3732
|
+
}, {
|
|
3733
|
+
name: "autoPlay",
|
|
3734
|
+
type: "boolean",
|
|
3735
|
+
defaultValue: !0
|
|
3736
|
+
}, {
|
|
3737
|
+
name: "controls",
|
|
3738
|
+
type: "boolean",
|
|
3739
|
+
defaultValue: !1
|
|
3740
|
+
}, {
|
|
3741
|
+
name: "muted",
|
|
3742
|
+
type: "boolean",
|
|
3743
|
+
defaultValue: !0
|
|
3744
|
+
}, {
|
|
3745
|
+
name: "loop",
|
|
3746
|
+
type: "boolean",
|
|
3747
|
+
defaultValue: !0
|
|
3748
|
+
}, {
|
|
3749
|
+
name: "playsInline",
|
|
3750
|
+
type: "boolean",
|
|
3751
|
+
defaultValue: !0
|
|
3752
|
+
}, {
|
|
3753
|
+
name: "fit",
|
|
3754
|
+
type: "text",
|
|
3755
|
+
defaultValue: "cover",
|
|
3756
|
+
enum: ["contain", "cover", "fill", "auto"]
|
|
3757
|
+
}, {
|
|
3758
|
+
name: "preload",
|
|
3759
|
+
type: "text",
|
|
3760
|
+
defaultValue: "metadata",
|
|
3761
|
+
enum: ["auto", "metadata", "none"]
|
|
3762
|
+
}, {
|
|
3763
|
+
name: "fitContent",
|
|
3764
|
+
type: "boolean",
|
|
3765
|
+
helperText: "When child blocks are provided, fit to them instead of using the aspect ratio",
|
|
3766
|
+
defaultValue: !0,
|
|
3767
|
+
advanced: !0
|
|
3768
|
+
}, {
|
|
3769
|
+
name: "position",
|
|
3770
|
+
type: "text",
|
|
3771
|
+
defaultValue: "center",
|
|
3772
|
+
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
3773
|
+
}, {
|
|
3774
|
+
name: "height",
|
|
3775
|
+
type: "number",
|
|
3776
|
+
advanced: !0
|
|
3777
|
+
}, {
|
|
3778
|
+
name: "width",
|
|
3779
|
+
type: "number",
|
|
3780
|
+
advanced: !0
|
|
3781
|
+
}, {
|
|
3782
|
+
name: "aspectRatio",
|
|
3783
|
+
type: "number",
|
|
3784
|
+
advanced: !0,
|
|
3785
|
+
defaultValue: 0.7004048582995948
|
|
3786
|
+
}, {
|
|
3787
|
+
name: "lazyLoad",
|
|
3788
|
+
type: "boolean",
|
|
3789
|
+
helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
|
|
3790
|
+
defaultValue: !0,
|
|
3791
|
+
advanced: !0
|
|
3792
|
+
}]
|
|
3793
|
+
}, pi = {
|
|
3794
|
+
name: "Embed",
|
|
3795
|
+
static: !0,
|
|
3796
|
+
inputs: [{
|
|
3797
|
+
name: "url",
|
|
3798
|
+
type: "url",
|
|
3799
|
+
required: !0,
|
|
3800
|
+
defaultValue: "",
|
|
3801
|
+
helperText: "e.g. enter a youtube url, google map, etc",
|
|
3802
|
+
onChange: (e) => {
|
|
3803
|
+
const t = e.get("url");
|
|
3804
|
+
if (t)
|
|
3805
|
+
return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((n) => n.json()).then((n) => {
|
|
3806
|
+
e.get("url") === t && (n.html ? e.set("content", n.html) : e.set("content", "Invalid url, please try another"));
|
|
3807
|
+
}).catch((n) => {
|
|
3808
|
+
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
3809
|
+
});
|
|
3810
|
+
e.delete("content");
|
|
3811
|
+
}
|
|
3812
|
+
}, {
|
|
3813
|
+
name: "content",
|
|
3814
|
+
type: "html",
|
|
3815
|
+
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3816
|
+
hideFromUI: !0
|
|
3817
|
+
}]
|
|
3818
|
+
}, hi = ["text/javascript", "application/javascript", "application/ecmascript"], ba = (e) => hi.includes(e.type), di = {
|
|
3819
|
+
// friendlyName?
|
|
3820
|
+
name: "Raw:Img",
|
|
3821
|
+
hideFromInsertMenu: !0,
|
|
3822
|
+
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",
|
|
3823
|
+
inputs: [{
|
|
3824
|
+
name: "image",
|
|
3825
|
+
bubble: !0,
|
|
3826
|
+
type: "file",
|
|
3827
|
+
allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
|
|
3828
|
+
required: !0
|
|
3829
|
+
}],
|
|
3830
|
+
noWrap: !0,
|
|
3831
|
+
static: !0
|
|
3832
|
+
}, mi = {
|
|
3833
|
+
name: "Custom Code",
|
|
3834
|
+
static: !0,
|
|
3835
|
+
requiredPermissions: ["editCode"],
|
|
3836
|
+
inputs: [{
|
|
3837
|
+
name: "code",
|
|
3838
|
+
type: "html",
|
|
3839
|
+
required: !0,
|
|
3840
|
+
defaultValue: "<p>Hello there, I am custom HTML code!</p>",
|
|
3841
|
+
code: !0
|
|
3842
|
+
}, {
|
|
3843
|
+
name: "replaceNodes",
|
|
3844
|
+
type: "boolean",
|
|
3845
|
+
helperText: "Preserve server rendered dom nodes",
|
|
3846
|
+
advanced: !0
|
|
3847
|
+
}, {
|
|
3848
|
+
name: "scriptsClientOnly",
|
|
3849
|
+
type: "boolean",
|
|
3850
|
+
defaultValue: !1,
|
|
3851
|
+
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3852
|
+
advanced: !0
|
|
3853
|
+
}]
|
|
3854
|
+
}, Yn = () => [{
|
|
3855
|
+
component: Zr,
|
|
3856
|
+
...ri
|
|
3857
|
+
}, {
|
|
3858
|
+
component: Xo,
|
|
3859
|
+
...oi
|
|
3860
|
+
}, {
|
|
3861
|
+
component: Qr,
|
|
3862
|
+
...mi
|
|
3863
|
+
}, {
|
|
3864
|
+
component: eo,
|
|
3865
|
+
...pi
|
|
3866
|
+
}, {
|
|
3867
|
+
component: to,
|
|
3868
|
+
...ii
|
|
3869
|
+
}, {
|
|
3870
|
+
component: no,
|
|
3871
|
+
...ai
|
|
3872
|
+
}, {
|
|
3873
|
+
component: ro,
|
|
3874
|
+
...di
|
|
3875
|
+
}, {
|
|
3876
|
+
component: oo,
|
|
3877
|
+
...si
|
|
3878
|
+
}, {
|
|
3879
|
+
component: na,
|
|
3880
|
+
...li
|
|
3881
|
+
}, {
|
|
3882
|
+
component: ci,
|
|
3883
|
+
...ui
|
|
3884
|
+
}, {
|
|
3885
|
+
component: io,
|
|
3886
|
+
...fi
|
|
3887
|
+
}], qn = [], Sa = (e) => ({
|
|
3888
|
+
type: "builder.registerComponent",
|
|
3889
|
+
data: Lt(e)
|
|
3890
|
+
}), gi = (e) => {
|
|
3891
|
+
const t = e.toString().trim();
|
|
3892
|
+
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
3893
|
+
}, yi = (e) => typeof e == "function" ? gi(e) : st(e), Lt = ({
|
|
3894
|
+
inputs: e,
|
|
3895
|
+
...t
|
|
3896
|
+
}) => ({
|
|
3897
|
+
...st(t),
|
|
3898
|
+
inputs: e == null ? void 0 : e.map((r) => Object.entries(r).reduce((n, [o, a]) => ({
|
|
3899
|
+
...n,
|
|
3900
|
+
[o]: yi(a)
|
|
3901
|
+
}), {}))
|
|
3902
|
+
}), vi = (e) => {
|
|
3903
|
+
var a;
|
|
3904
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], n = e.fileUrl ?? ((a = e == null ? void 0 : e.files) == null ? void 0 : a.regular);
|
|
3905
|
+
let o = "";
|
|
3906
|
+
if (n && t && r && (o += `
|
|
3907
|
+
@font-face {
|
|
3908
|
+
font-family: "${t}";
|
|
3909
|
+
src: local("${r}"), url('${n}') format('woff2');
|
|
3910
|
+
font-display: fallback;
|
|
3911
|
+
font-weight: 400;
|
|
3912
|
+
}
|
|
3913
|
+
`.trim()), e.files)
|
|
3914
|
+
for (const s in e.files) {
|
|
3915
|
+
if (!(String(Number(s)) === s))
|
|
3916
|
+
continue;
|
|
3917
|
+
const h = e.files[s];
|
|
3918
|
+
h && h !== n && (o += `
|
|
3919
|
+
@font-face {
|
|
3920
|
+
font-family: "${t}";
|
|
3921
|
+
src: url('${h}') format('woff2');
|
|
3922
|
+
font-display: fallback;
|
|
3923
|
+
font-weight: ${s};
|
|
3924
|
+
}
|
|
3925
|
+
`.trim());
|
|
3926
|
+
}
|
|
3927
|
+
return o;
|
|
3928
|
+
}, xi = ({
|
|
3929
|
+
customFonts: e
|
|
3930
|
+
}) => {
|
|
3931
|
+
var t;
|
|
3932
|
+
return ((t = e == null ? void 0 : e.map((r) => vi(r))) == null ? void 0 : t.join(" ")) || "";
|
|
3933
|
+
}, wi = ({
|
|
3934
|
+
cssCode: e,
|
|
3935
|
+
contentId: t
|
|
3936
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
3937
|
+
function bi(e) {
|
|
3938
|
+
const t = `
|
|
3939
|
+
${wi({
|
|
3940
|
+
cssCode: e.cssCode,
|
|
3941
|
+
contentId: e.contentId
|
|
3942
|
+
})}
|
|
3943
|
+
${xi({
|
|
3944
|
+
customFonts: e.customFonts
|
|
3945
|
+
})}
|
|
3946
|
+
|
|
3947
|
+
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3948
|
+
margin: 0;
|
|
3949
|
+
}
|
|
3950
|
+
.builder-text > p, .builder-text > .builder-paragraph {
|
|
3951
|
+
color: inherit;
|
|
3952
|
+
line-height: inherit;
|
|
3953
|
+
letter-spacing: inherit;
|
|
3954
|
+
font-weight: inherit;
|
|
3955
|
+
font-size: inherit;
|
|
3956
|
+
text-align: inherit;
|
|
3957
|
+
font-family: inherit;
|
|
3958
|
+
}
|
|
3959
|
+
`.trim();
|
|
3960
|
+
return /* @__PURE__ */ A(on, { styles: t });
|
|
3961
|
+
}
|
|
3962
|
+
const Si = ({
|
|
3963
|
+
content: e,
|
|
3964
|
+
data: t,
|
|
3965
|
+
locale: r
|
|
3966
|
+
}) => {
|
|
3967
|
+
var a, s, f;
|
|
3968
|
+
const n = {};
|
|
3969
|
+
(s = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || s.forEach((h) => {
|
|
3970
|
+
var g;
|
|
3971
|
+
h.name && h.defaultValue !== void 0 && ((g = e == null ? void 0 : e.data) != null && g.state) && e.data.state[h.name] === void 0 && (n[h.name] = h.defaultValue);
|
|
3972
|
+
});
|
|
3973
|
+
const o = {
|
|
3974
|
+
...(f = e == null ? void 0 : e.data) == null ? void 0 : f.state,
|
|
3975
|
+
...t,
|
|
3976
|
+
...r ? {
|
|
3977
|
+
locale: r
|
|
3978
|
+
} : {}
|
|
3979
|
+
};
|
|
3980
|
+
return {
|
|
3981
|
+
...n,
|
|
3982
|
+
...o
|
|
3983
|
+
};
|
|
3984
|
+
}, ki = ({
|
|
3985
|
+
content: e,
|
|
3986
|
+
data: t
|
|
3987
|
+
}) => e ? {
|
|
3988
|
+
...e,
|
|
3989
|
+
data: {
|
|
3990
|
+
...e == null ? void 0 : e.data,
|
|
3991
|
+
...t
|
|
3992
|
+
},
|
|
3993
|
+
meta: e == null ? void 0 : e.meta
|
|
3994
|
+
} : void 0;
|
|
3995
|
+
function Ci() {
|
|
3996
|
+
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
3997
|
+
}
|
|
3998
|
+
function Ei() {
|
|
3999
|
+
const e = Ci().fetch;
|
|
4000
|
+
if (typeof e > "u")
|
|
4001
|
+
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4002
|
+
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4003
|
+
return e;
|
|
4004
|
+
}
|
|
4005
|
+
const Ii = Ei(), Ti = (e) => {
|
|
4006
|
+
if (e === "localhost" || e === "127.0.0.1")
|
|
4007
|
+
return e;
|
|
4008
|
+
const t = e.split(".");
|
|
4009
|
+
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
4010
|
+
}, vr = ({
|
|
4011
|
+
name: e,
|
|
4012
|
+
canTrack: t
|
|
4013
|
+
}) => {
|
|
4014
|
+
var r;
|
|
4015
|
+
try {
|
|
4016
|
+
return t ? (r = document.cookie.split("; ").find((n) => n.startsWith(`${e}=`))) == null ? void 0 : r.split("=")[1] : void 0;
|
|
4017
|
+
} catch (n) {
|
|
4018
|
+
q.warn("[COOKIE] GET error: ", (n == null ? void 0 : n.message) || n);
|
|
4019
|
+
return;
|
|
4020
|
+
}
|
|
4021
|
+
}, xr = async (e) => vr(e), Ai = (e) => e.map(([t, r]) => r ? `${t}=${r}` : t).filter(xe).join("; "), ji = [["secure", ""], ["SameSite", "None"]], Oi = ({
|
|
4022
|
+
name: e,
|
|
4023
|
+
value: t,
|
|
4024
|
+
expires: r
|
|
4025
|
+
}) => {
|
|
4026
|
+
const o = (z() ? location.protocol === "https:" : !0) ? ji : [[]], a = r ? [["expires", r.toUTCString()]] : [[]], s = [[e, t], ...a, ["path", "/"], ["domain", Ti(window.location.hostname)], ...o];
|
|
4027
|
+
return Ai(s);
|
|
4028
|
+
}, wr = async ({
|
|
4029
|
+
name: e,
|
|
4030
|
+
value: t,
|
|
4031
|
+
expires: r,
|
|
4032
|
+
canTrack: n
|
|
4033
|
+
}) => {
|
|
4034
|
+
try {
|
|
4035
|
+
if (!n)
|
|
4036
|
+
return;
|
|
4037
|
+
const o = Oi({
|
|
4038
|
+
name: e,
|
|
4039
|
+
value: t,
|
|
4040
|
+
expires: r
|
|
4041
|
+
});
|
|
4042
|
+
document.cookie = o;
|
|
4043
|
+
} catch (o) {
|
|
4044
|
+
q.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
4045
|
+
}
|
|
4046
|
+
};
|
|
4047
|
+
function Ri() {
|
|
4048
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4049
|
+
const t = Math.random() * 16 | 0;
|
|
4050
|
+
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4051
|
+
});
|
|
4052
|
+
}
|
|
4053
|
+
function br() {
|
|
4054
|
+
return Ri().replace(/-/g, "");
|
|
4055
|
+
}
|
|
4056
|
+
const Sr = "builderSessionId", Pi = async ({
|
|
4057
|
+
canTrack: e
|
|
4058
|
+
}) => {
|
|
4059
|
+
if (!e)
|
|
4060
|
+
return;
|
|
4061
|
+
const t = await xr({
|
|
4062
|
+
name: Sr,
|
|
4063
|
+
canTrack: e
|
|
4064
|
+
});
|
|
4065
|
+
if (xe(t))
|
|
4066
|
+
return t;
|
|
4067
|
+
{
|
|
4068
|
+
const r = Ni();
|
|
4069
|
+
return Mi({
|
|
4070
|
+
id: r,
|
|
4071
|
+
canTrack: e
|
|
4072
|
+
}), r;
|
|
4073
|
+
}
|
|
4074
|
+
}, Ni = () => br(), Mi = ({
|
|
4075
|
+
id: e,
|
|
4076
|
+
canTrack: t
|
|
4077
|
+
}) => wr({
|
|
4078
|
+
name: Sr,
|
|
4079
|
+
value: e,
|
|
4080
|
+
canTrack: t
|
|
4081
|
+
}), kr = () => z() && typeof localStorage < "u" ? localStorage : void 0, Fi = ({
|
|
4082
|
+
key: e,
|
|
4083
|
+
canTrack: t
|
|
4084
|
+
}) => {
|
|
4085
|
+
var r;
|
|
4086
|
+
try {
|
|
4087
|
+
return t ? (r = kr()) == null ? void 0 : r.getItem(e) : void 0;
|
|
4088
|
+
} catch (n) {
|
|
4089
|
+
console.debug("[LocalStorage] GET error: ", n);
|
|
4090
|
+
return;
|
|
4091
|
+
}
|
|
4092
|
+
}, Ui = ({
|
|
4093
|
+
key: e,
|
|
4094
|
+
canTrack: t,
|
|
4095
|
+
value: r
|
|
4096
|
+
}) => {
|
|
4097
|
+
var n;
|
|
4098
|
+
try {
|
|
4099
|
+
t && ((n = kr()) == null || n.setItem(e, r));
|
|
4100
|
+
} catch (o) {
|
|
4101
|
+
console.debug("[LocalStorage] SET error: ", o);
|
|
4102
|
+
}
|
|
4103
|
+
}, Cr = "builderVisitorId", Bi = ({
|
|
4104
|
+
canTrack: e
|
|
4105
|
+
}) => {
|
|
4106
|
+
if (!e)
|
|
4107
|
+
return;
|
|
4108
|
+
const t = Fi({
|
|
4109
|
+
key: Cr,
|
|
4110
|
+
canTrack: e
|
|
4111
|
+
});
|
|
4112
|
+
if (xe(t))
|
|
4113
|
+
return t;
|
|
4114
|
+
{
|
|
4115
|
+
const r = Vi();
|
|
4116
|
+
return _i({
|
|
4117
|
+
id: r,
|
|
4118
|
+
canTrack: e
|
|
4119
|
+
}), r;
|
|
4120
|
+
}
|
|
4121
|
+
}, Vi = () => br(), _i = ({
|
|
4122
|
+
id: e,
|
|
4123
|
+
canTrack: t
|
|
4124
|
+
}) => Ui({
|
|
4125
|
+
key: Cr,
|
|
4126
|
+
value: e,
|
|
4127
|
+
canTrack: t
|
|
4128
|
+
}), Li = async ({
|
|
4129
|
+
canTrack: e
|
|
4130
|
+
}) => {
|
|
4131
|
+
if (!e)
|
|
4132
|
+
return {
|
|
4133
|
+
visitorId: void 0,
|
|
4134
|
+
sessionId: void 0
|
|
4135
|
+
};
|
|
4136
|
+
const t = await Pi({
|
|
4137
|
+
canTrack: e
|
|
4138
|
+
}), r = Bi({
|
|
4139
|
+
canTrack: e
|
|
4140
|
+
});
|
|
4141
|
+
return {
|
|
4142
|
+
sessionId: t,
|
|
4143
|
+
visitorId: r
|
|
4144
|
+
};
|
|
4145
|
+
}, $i = async ({
|
|
4146
|
+
type: e,
|
|
4147
|
+
canTrack: t,
|
|
4148
|
+
apiKey: r,
|
|
4149
|
+
metadata: n,
|
|
4150
|
+
...o
|
|
4151
|
+
}) => ({
|
|
4152
|
+
type: e,
|
|
4153
|
+
data: {
|
|
4154
|
+
...o,
|
|
4155
|
+
metadata: {
|
|
4156
|
+
url: location.href,
|
|
4157
|
+
...n
|
|
4158
|
+
},
|
|
4159
|
+
...await Li({
|
|
4160
|
+
canTrack: t
|
|
4161
|
+
}),
|
|
4162
|
+
userAttributes: ar(),
|
|
4163
|
+
ownerId: r
|
|
4164
|
+
}
|
|
4165
|
+
});
|
|
4166
|
+
async function Di(e) {
|
|
4167
|
+
if (!e.apiKey) {
|
|
4168
|
+
q.error("Missing API key for track call. Please provide your API key.");
|
|
4169
|
+
return;
|
|
4170
|
+
}
|
|
4171
|
+
if (e.canTrack && !Kt() && (z() || me === "reactNative"))
|
|
4172
|
+
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4173
|
+
method: "POST",
|
|
4174
|
+
body: JSON.stringify({
|
|
4175
|
+
events: [await $i(e)]
|
|
4176
|
+
}),
|
|
4177
|
+
headers: {
|
|
4178
|
+
"content-type": "application/json"
|
|
4179
|
+
},
|
|
4180
|
+
mode: "cors"
|
|
4181
|
+
}).catch((t) => {
|
|
4182
|
+
console.error("Failed to track: ", t);
|
|
4183
|
+
});
|
|
4184
|
+
}
|
|
4185
|
+
const ka = (e) => Di({
|
|
4186
|
+
...e,
|
|
4187
|
+
canTrack: !0
|
|
4188
|
+
}), Wi = "0.6.0", Zn = {};
|
|
4189
|
+
function Hi(e, t) {
|
|
4190
|
+
let r = Zn[e];
|
|
4191
|
+
if (r || (r = Zn[e] = []), r.push(t), z()) {
|
|
4192
|
+
const n = {
|
|
4193
|
+
type: "builder.register",
|
|
4194
|
+
data: {
|
|
4195
|
+
type: e,
|
|
4196
|
+
info: t
|
|
4197
|
+
}
|
|
4198
|
+
};
|
|
4199
|
+
try {
|
|
4200
|
+
parent.postMessage(n, "*"), parent !== window && window.postMessage(n, "*");
|
|
4201
|
+
} catch (o) {
|
|
4202
|
+
console.debug("Could not postmessage", o);
|
|
4203
|
+
}
|
|
4204
|
+
}
|
|
4205
|
+
}
|
|
4206
|
+
const Ca = () => {
|
|
4207
|
+
Hi("insertMenu", {
|
|
4208
|
+
name: "_default",
|
|
4209
|
+
default: !0,
|
|
4210
|
+
items: [{
|
|
4211
|
+
name: "Box"
|
|
4212
|
+
}, {
|
|
4213
|
+
name: "Text"
|
|
4214
|
+
}, {
|
|
4215
|
+
name: "Image"
|
|
4216
|
+
}, {
|
|
4217
|
+
name: "Columns"
|
|
4218
|
+
}, {
|
|
4219
|
+
name: "Core:Section"
|
|
4220
|
+
}, {
|
|
4221
|
+
name: "Core:Button"
|
|
4222
|
+
}, {
|
|
4223
|
+
name: "Embed"
|
|
4224
|
+
}, {
|
|
4225
|
+
name: "Custom Code"
|
|
4226
|
+
}]
|
|
4227
|
+
});
|
|
4228
|
+
};
|
|
4229
|
+
let Qn = !1;
|
|
4230
|
+
const Ea = (e = {}) => {
|
|
4231
|
+
var t, r;
|
|
4232
|
+
Qn || (Qn = !0, z() && ((t = window.parent) == null || t.postMessage({
|
|
4233
|
+
type: "builder.sdkInfo",
|
|
4234
|
+
data: {
|
|
4235
|
+
target: me,
|
|
4236
|
+
version: Wi,
|
|
4237
|
+
supportsPatchUpdates: !1,
|
|
4238
|
+
// Supports builder-model="..." attribute which is needed to
|
|
4239
|
+
// scope our '+ add block' button styling
|
|
4240
|
+
supportsAddBlockScoping: !0,
|
|
4241
|
+
supportsCustomBreakpoints: !0
|
|
4242
|
+
}
|
|
4243
|
+
}, "*"), (r = window.parent) == null || r.postMessage({
|
|
4244
|
+
type: "builder.updateContent",
|
|
4245
|
+
data: {
|
|
4246
|
+
options: e
|
|
4247
|
+
}
|
|
4248
|
+
}, "*"), window.addEventListener("message", ({
|
|
4249
|
+
data: n
|
|
4250
|
+
}) => {
|
|
4251
|
+
var o, a;
|
|
4252
|
+
if (n != null && n.type)
|
|
4253
|
+
switch (n.type) {
|
|
4254
|
+
case "builder.evaluate": {
|
|
4255
|
+
const s = n.data.text, f = n.data.arguments || [], h = n.data.id, g = new Function(s);
|
|
4256
|
+
let v, b = null;
|
|
4257
|
+
try {
|
|
4258
|
+
v = g.apply(null, f);
|
|
4259
|
+
} catch (M) {
|
|
4260
|
+
b = M;
|
|
4261
|
+
}
|
|
4262
|
+
b ? (o = window.parent) == null || o.postMessage({
|
|
4263
|
+
type: "builder.evaluateError",
|
|
4264
|
+
data: {
|
|
4265
|
+
id: h,
|
|
4266
|
+
error: b.message
|
|
4267
|
+
}
|
|
4268
|
+
}, "*") : v && typeof v.then == "function" ? v.then((M) => {
|
|
4269
|
+
var E;
|
|
4270
|
+
(E = window.parent) == null || E.postMessage({
|
|
4271
|
+
type: "builder.evaluateResult",
|
|
4272
|
+
data: {
|
|
4273
|
+
id: h,
|
|
4274
|
+
result: M
|
|
4275
|
+
}
|
|
4276
|
+
}, "*");
|
|
4277
|
+
}).catch(console.error) : (a = window.parent) == null || a.postMessage({
|
|
4278
|
+
type: "builder.evaluateResult",
|
|
4279
|
+
data: {
|
|
4280
|
+
result: v,
|
|
4281
|
+
id: h
|
|
4282
|
+
}
|
|
4283
|
+
}, "*");
|
|
4284
|
+
break;
|
|
4285
|
+
}
|
|
4286
|
+
}
|
|
4287
|
+
})));
|
|
4288
|
+
};
|
|
4289
|
+
function er(e) {
|
|
4290
|
+
return Math.round(e * 1e3) / 1e3;
|
|
4291
|
+
}
|
|
4292
|
+
const Ki = (e, t, r = !0) => {
|
|
4293
|
+
if (!(e instanceof HTMLElement))
|
|
4294
|
+
return null;
|
|
4295
|
+
let n = r ? e : e.parentElement;
|
|
4296
|
+
do {
|
|
4297
|
+
if (!n)
|
|
4298
|
+
return null;
|
|
4299
|
+
if (t(n))
|
|
4300
|
+
return n;
|
|
4301
|
+
} while (n = n.parentElement);
|
|
4302
|
+
return null;
|
|
4303
|
+
}, Gi = (e) => Ki(e, (t) => {
|
|
4304
|
+
const r = t.getAttribute("builder-id") || t.id;
|
|
4305
|
+
return (r == null ? void 0 : r.indexOf("builder-")) === 0;
|
|
4306
|
+
}), tr = ({
|
|
4307
|
+
event: e,
|
|
4308
|
+
target: t
|
|
4309
|
+
}) => {
|
|
4310
|
+
const r = t.getBoundingClientRect(), n = e.clientX - r.left, o = e.clientY - r.top, a = er(n / r.width), s = er(o / r.height);
|
|
4311
|
+
return {
|
|
4312
|
+
x: a,
|
|
4313
|
+
y: s
|
|
4314
|
+
};
|
|
4315
|
+
}, Ia = (e) => {
|
|
4316
|
+
const t = e.target, r = t && Gi(t), n = (r == null ? void 0 : r.getAttribute("builder-id")) || (r == null ? void 0 : r.id);
|
|
4317
|
+
return {
|
|
4318
|
+
targetBuilderElement: n || void 0,
|
|
4319
|
+
metadata: {
|
|
4320
|
+
targetOffset: t ? tr({
|
|
4321
|
+
event: e,
|
|
4322
|
+
target: t
|
|
4323
|
+
}) : void 0,
|
|
4324
|
+
builderTargetOffset: r ? tr({
|
|
4325
|
+
event: e,
|
|
4326
|
+
target: r
|
|
4327
|
+
}) : void 0,
|
|
4328
|
+
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4329
|
+
}
|
|
4330
|
+
};
|
|
4331
|
+
};
|
|
4332
|
+
function Xi() {
|
|
4333
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Jr({
|
|
4334
|
+
max: 500,
|
|
4335
|
+
// how long to live in ms
|
|
4336
|
+
ttl: 1e3 * 60 * 5
|
|
4337
|
+
}));
|
|
4338
|
+
}
|
|
4339
|
+
function $t(e) {
|
|
4340
|
+
return /* @__PURE__ */ A(
|
|
4341
|
+
"script",
|
|
4342
|
+
{
|
|
4343
|
+
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
4344
|
+
id: e.id
|
|
4345
|
+
}
|
|
4346
|
+
);
|
|
4347
|
+
}
|
|
4348
|
+
function nr(e) {
|
|
4349
|
+
var o, a, s, f, h, g, v, b, M;
|
|
4350
|
+
const t = ni({
|
|
4351
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4352
|
+
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4353
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4354
|
+
contentId: (a = e.content) == null ? void 0 : a.id
|
|
4355
|
+
}), r = [
|
|
4356
|
+
...Yn(),
|
|
4357
|
+
// While this `components` object is deprecated, we must maintain support for it.
|
|
4358
|
+
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
4359
|
+
// existing usage.
|
|
4360
|
+
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
4361
|
+
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
4362
|
+
...qn,
|
|
4363
|
+
...e.customComponents || []
|
|
4364
|
+
].reduce(
|
|
4365
|
+
(E, { component: S, ...x }) => ({
|
|
4366
|
+
...E,
|
|
4367
|
+
[x.name]: {
|
|
4368
|
+
component: S,
|
|
4369
|
+
...Lt(x)
|
|
4370
|
+
}
|
|
4371
|
+
}),
|
|
4372
|
+
{}
|
|
4373
|
+
), n = {
|
|
4374
|
+
content: ki({
|
|
4375
|
+
content: e.content,
|
|
4376
|
+
data: e.data
|
|
4377
|
+
}),
|
|
4378
|
+
localState: void 0,
|
|
4379
|
+
rootState: Si({
|
|
4380
|
+
content: e.content,
|
|
4381
|
+
data: e.data,
|
|
4382
|
+
locale: e.locale
|
|
4383
|
+
}),
|
|
4384
|
+
rootSetState: void 0,
|
|
4385
|
+
context: e.context || {},
|
|
4386
|
+
apiKey: e.apiKey,
|
|
4387
|
+
apiVersion: e.apiVersion,
|
|
4388
|
+
componentInfos: [
|
|
4389
|
+
...Yn(),
|
|
4390
|
+
// While this `components` object is deprecated, we must maintain support for it.
|
|
4391
|
+
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
4392
|
+
// existing usage.
|
|
4393
|
+
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
4394
|
+
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
4395
|
+
...qn,
|
|
4396
|
+
...e.customComponents || []
|
|
4397
|
+
].reduce(
|
|
4398
|
+
(E, { component: S, ...x }) => ({
|
|
4399
|
+
...E,
|
|
4400
|
+
[x.name]: Lt(x)
|
|
4401
|
+
}),
|
|
4402
|
+
{}
|
|
4403
|
+
),
|
|
4404
|
+
inheritedStyles: {}
|
|
4405
|
+
};
|
|
4406
|
+
return /* @__PURE__ */ ue(
|
|
4407
|
+
ao,
|
|
4408
|
+
{
|
|
4409
|
+
content: e.content,
|
|
4410
|
+
model: e.model,
|
|
4411
|
+
context: e.context,
|
|
4412
|
+
apiKey: e.apiKey,
|
|
4413
|
+
canTrack: e.canTrack,
|
|
4414
|
+
locale: e.locale,
|
|
4415
|
+
includeRefs: e.includeRefs,
|
|
4416
|
+
enrich: e.enrich,
|
|
4417
|
+
classNameProp: e.classNameProp,
|
|
4418
|
+
showContent: e.showContent,
|
|
4419
|
+
builderContextSignal: n,
|
|
4420
|
+
children: [
|
|
4421
|
+
e.isSsrAbTest ? /* @__PURE__ */ A($, { children: /* @__PURE__ */ A($t, { scriptStr: t }) }) : null,
|
|
4422
|
+
/* @__PURE__ */ A($, { children: /* @__PURE__ */ A(
|
|
4423
|
+
bi,
|
|
4424
|
+
{
|
|
4425
|
+
contentId: (s = n.content) == null ? void 0 : s.id,
|
|
4426
|
+
cssCode: (h = (f = n.content) == null ? void 0 : f.data) == null ? void 0 : h.cssCode,
|
|
4427
|
+
customFonts: (v = (g = n.content) == null ? void 0 : g.data) == null ? void 0 : v.customFonts
|
|
4428
|
+
}
|
|
4429
|
+
) }),
|
|
4430
|
+
/* @__PURE__ */ A(
|
|
4431
|
+
an,
|
|
4432
|
+
{
|
|
4433
|
+
blocks: (M = (b = n.content) == null ? void 0 : b.data) == null ? void 0 : M.blocks,
|
|
4434
|
+
context: n,
|
|
4435
|
+
registeredComponents: r
|
|
4436
|
+
}
|
|
4437
|
+
)
|
|
4438
|
+
]
|
|
4439
|
+
}
|
|
4440
|
+
);
|
|
4441
|
+
}
|
|
4442
|
+
const Dt = (e) => xe(e) ? e : !0, Ji = "builder.tests", sn = (e) => `${Ji}.${e}`, zi = ({
|
|
4443
|
+
contentId: e
|
|
4444
|
+
}) => xr({
|
|
4445
|
+
name: sn(e),
|
|
4446
|
+
canTrack: !0
|
|
4447
|
+
}), Yi = ({
|
|
4448
|
+
contentId: e
|
|
4449
|
+
}) => vr({
|
|
4450
|
+
name: sn(e),
|
|
4451
|
+
canTrack: !0
|
|
4452
|
+
}), qi = ({
|
|
4453
|
+
contentId: e,
|
|
4454
|
+
value: t
|
|
4455
|
+
}) => wr({
|
|
4456
|
+
name: sn(e),
|
|
4457
|
+
value: t,
|
|
4458
|
+
canTrack: !0
|
|
4459
|
+
}), Er = (e) => xe(e.id) && xe(e.variations) && Object.keys(e.variations).length > 0, Zi = ({
|
|
4460
|
+
id: e,
|
|
4461
|
+
variations: t
|
|
4462
|
+
}) => {
|
|
4463
|
+
var o;
|
|
4464
|
+
let r = 0;
|
|
4465
|
+
const n = Math.random();
|
|
4466
|
+
for (const a in t) {
|
|
4467
|
+
const s = (o = t[a]) == null ? void 0 : o.testRatio;
|
|
4468
|
+
if (r += s, n < r)
|
|
4469
|
+
return a;
|
|
4470
|
+
}
|
|
4471
|
+
return e;
|
|
4472
|
+
}, Ir = (e) => {
|
|
4473
|
+
const t = Zi(e);
|
|
4474
|
+
return qi({
|
|
4475
|
+
contentId: e.id,
|
|
4476
|
+
value: t
|
|
4477
|
+
}).catch((r) => {
|
|
4478
|
+
q.error("could not store A/B test variation: ", r);
|
|
4479
|
+
}), t;
|
|
4480
|
+
}, Tr = ({
|
|
4481
|
+
item: e,
|
|
4482
|
+
testGroupId: t
|
|
4483
|
+
}) => {
|
|
4484
|
+
const r = e.variations[t];
|
|
4485
|
+
return t === e.id || // handle edge-case where `testGroupId` points to non-existing variation
|
|
4486
|
+
!r ? {
|
|
4487
|
+
testVariationId: e.id,
|
|
4488
|
+
testVariationName: "Default"
|
|
4489
|
+
} : {
|
|
4490
|
+
data: r.data,
|
|
4491
|
+
testVariationId: r.id,
|
|
4492
|
+
testVariationName: r.name || (r.id === e.id ? "Default" : "")
|
|
4493
|
+
};
|
|
4494
|
+
}, Qi = ({
|
|
4495
|
+
item: e,
|
|
4496
|
+
canTrack: t
|
|
4497
|
+
}) => {
|
|
4498
|
+
if (!t)
|
|
4499
|
+
return e;
|
|
4500
|
+
if (!e)
|
|
4501
|
+
return;
|
|
4502
|
+
if (!Er(e))
|
|
4503
|
+
return e;
|
|
4504
|
+
const r = Yi({
|
|
4505
|
+
contentId: e.id
|
|
4506
|
+
}) || Ir({
|
|
4507
|
+
variations: e.variations,
|
|
4508
|
+
id: e.id
|
|
4509
|
+
}), n = Tr({
|
|
4510
|
+
item: e,
|
|
4511
|
+
testGroupId: r
|
|
4512
|
+
});
|
|
4513
|
+
return {
|
|
4514
|
+
...e,
|
|
4515
|
+
...n
|
|
4516
|
+
};
|
|
4517
|
+
}, ea = async ({
|
|
4518
|
+
item: e,
|
|
4519
|
+
canTrack: t
|
|
4520
|
+
}) => {
|
|
4521
|
+
if (!t || !Er(e))
|
|
4522
|
+
return e;
|
|
4523
|
+
const n = await zi({
|
|
4524
|
+
contentId: e.id
|
|
4525
|
+
}) || Ir({
|
|
4526
|
+
variations: e.variations,
|
|
4527
|
+
id: e.id
|
|
4528
|
+
}), o = Tr({
|
|
4529
|
+
item: e,
|
|
4530
|
+
testGroupId: n
|
|
4531
|
+
});
|
|
4532
|
+
return {
|
|
4533
|
+
...e,
|
|
4534
|
+
...o
|
|
4535
|
+
};
|
|
4536
|
+
};
|
|
4537
|
+
function Ar(e) {
|
|
4538
|
+
var a, s, f;
|
|
4539
|
+
const t = Yo({
|
|
4540
|
+
canTrack: Dt(e.canTrack),
|
|
4541
|
+
content: e.content
|
|
4542
|
+
}), r = function() {
|
|
4543
|
+
var g;
|
|
4544
|
+
return ti(
|
|
4545
|
+
at(e.content).map((v) => ({
|
|
4546
|
+
id: v.testVariationId,
|
|
4547
|
+
testRatio: v.testRatio
|
|
4548
|
+
})),
|
|
4549
|
+
((g = e.content) == null ? void 0 : g.id) || ""
|
|
4550
|
+
);
|
|
4551
|
+
}, n = function() {
|
|
4552
|
+
return at(e.content).map((g) => `.variant-${g.testVariationId} { display: none; } `).join("");
|
|
4553
|
+
}, o = function() {
|
|
4554
|
+
var g;
|
|
4555
|
+
return t ? {
|
|
4556
|
+
...e.content,
|
|
4557
|
+
testVariationId: (g = e.content) == null ? void 0 : g.id
|
|
4558
|
+
} : Qi({
|
|
4559
|
+
item: e.content,
|
|
4560
|
+
canTrack: Dt(e.canTrack)
|
|
4561
|
+
});
|
|
4562
|
+
};
|
|
4563
|
+
return /* @__PURE__ */ ue($, { children: [
|
|
4564
|
+
!e.__isNestedRender && me !== "reactNative" ? /* @__PURE__ */ A($, { children: /* @__PURE__ */ A($t, { scriptStr: ei() }) }) : null,
|
|
4565
|
+
t ? /* @__PURE__ */ ue($, { children: [
|
|
4566
|
+
/* @__PURE__ */ A(
|
|
4567
|
+
on,
|
|
4568
|
+
{
|
|
4569
|
+
id: `variants-styles-${(a = e.content) == null ? void 0 : a.id}`,
|
|
4570
|
+
styles: n()
|
|
4571
|
+
}
|
|
4572
|
+
),
|
|
4573
|
+
/* @__PURE__ */ A($t, { scriptStr: r() }),
|
|
4574
|
+
(s = at(e.content)) == null ? void 0 : s.map((h) => /* @__PURE__ */ A(
|
|
4575
|
+
nr,
|
|
4576
|
+
{
|
|
4577
|
+
content: h,
|
|
4578
|
+
showContent: !1,
|
|
4579
|
+
classNameProp: void 0,
|
|
4580
|
+
model: e.model,
|
|
4581
|
+
data: e.data,
|
|
4582
|
+
context: e.context,
|
|
4583
|
+
apiKey: e.apiKey,
|
|
4584
|
+
apiVersion: e.apiVersion,
|
|
4585
|
+
customComponents: e.customComponents,
|
|
4586
|
+
canTrack: e.canTrack,
|
|
4587
|
+
locale: e.locale,
|
|
4588
|
+
includeRefs: e.includeRefs,
|
|
4589
|
+
enrich: e.enrich,
|
|
4590
|
+
isSsrAbTest: t
|
|
4591
|
+
},
|
|
4592
|
+
h.testVariationId
|
|
4593
|
+
))
|
|
4594
|
+
] }) : null,
|
|
4595
|
+
/* @__PURE__ */ A(
|
|
4596
|
+
nr,
|
|
4597
|
+
{
|
|
4598
|
+
content: o(),
|
|
4599
|
+
classNameProp: `variant-${(f = e.content) == null ? void 0 : f.id}`,
|
|
4600
|
+
showContent: !0,
|
|
4601
|
+
model: e.model,
|
|
4602
|
+
data: e.data,
|
|
4603
|
+
context: e.context,
|
|
4604
|
+
apiKey: e.apiKey,
|
|
4605
|
+
apiVersion: e.apiVersion,
|
|
4606
|
+
customComponents: e.customComponents,
|
|
4607
|
+
canTrack: e.canTrack,
|
|
4608
|
+
locale: e.locale,
|
|
4609
|
+
includeRefs: e.includeRefs,
|
|
4610
|
+
enrich: e.enrich,
|
|
4611
|
+
isSsrAbTest: t
|
|
4612
|
+
}
|
|
4613
|
+
)
|
|
4614
|
+
] });
|
|
4615
|
+
}
|
|
4616
|
+
const ta = async ({
|
|
4617
|
+
builderContextValue: e,
|
|
4618
|
+
symbol: t
|
|
4619
|
+
}) => {
|
|
4620
|
+
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4621
|
+
(e != null && e.apiKey))
|
|
4622
|
+
return un({
|
|
4623
|
+
model: t.model,
|
|
4624
|
+
apiKey: e.apiKey,
|
|
4625
|
+
apiVersion: e.apiVersion,
|
|
4626
|
+
...(t == null ? void 0 : t.entry) && {
|
|
4627
|
+
query: {
|
|
4628
|
+
id: t.entry
|
|
4629
|
+
}
|
|
4630
|
+
}
|
|
4631
|
+
}).catch((r) => {
|
|
4632
|
+
q.error("Could not fetch symbol content: ", r);
|
|
4633
|
+
});
|
|
4634
|
+
};
|
|
4635
|
+
async function na(e) {
|
|
4636
|
+
var n, o, a, s;
|
|
4637
|
+
const t = function() {
|
|
4638
|
+
var h, g;
|
|
4639
|
+
return [
|
|
4640
|
+
e.attributes.className,
|
|
4641
|
+
"builder-symbol",
|
|
4642
|
+
(h = e.symbol) != null && h.inline ? "builder-inline-symbol" : void 0,
|
|
4643
|
+
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4644
|
+
].filter(Boolean).join(" ");
|
|
4645
|
+
}, r = ((n = e.symbol) == null ? void 0 : n.content) || await ta({
|
|
4646
|
+
symbol: e.symbol,
|
|
4647
|
+
builderContextValue: e.builderContext
|
|
4648
|
+
});
|
|
4649
|
+
return /* @__PURE__ */ A("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ A(
|
|
4650
|
+
Ar,
|
|
4651
|
+
{
|
|
4652
|
+
__isNestedRender: !0,
|
|
4653
|
+
apiVersion: e.builderContext.apiVersion,
|
|
4654
|
+
apiKey: e.builderContext.apiKey,
|
|
4655
|
+
context: e.builderContext.context,
|
|
4656
|
+
customComponents: Object.values(e.builderComponents),
|
|
4657
|
+
data: {
|
|
4658
|
+
...(o = e.symbol) == null ? void 0 : o.data,
|
|
4659
|
+
...e.builderContext.localState,
|
|
4660
|
+
...(a = r == null ? void 0 : r.data) == null ? void 0 : a.state
|
|
4661
|
+
},
|
|
4662
|
+
model: (s = e.symbol) == null ? void 0 : s.model,
|
|
4663
|
+
content: r
|
|
4664
|
+
}
|
|
4665
|
+
) });
|
|
4666
|
+
}
|
|
4667
|
+
const Ta = an, Aa = Ar;
|
|
4668
|
+
function ja() {
|
|
4669
|
+
return !z() || Kt() ? !1 : location.search.indexOf("builder.preview=") !== -1;
|
|
4670
|
+
}
|
|
4671
|
+
const rr = {};
|
|
4672
|
+
function Oa(e) {
|
|
4673
|
+
if (z()) {
|
|
4674
|
+
Object.assign(rr, e);
|
|
4675
|
+
const t = {
|
|
4676
|
+
type: "builder.settingsChange",
|
|
4677
|
+
data: rr
|
|
4678
|
+
};
|
|
4679
|
+
parent.postMessage(t, "*");
|
|
4680
|
+
}
|
|
4681
|
+
}
|
|
4682
|
+
const ra = (e) => {
|
|
4683
|
+
const t = e.get("preview"), r = e.get("overrides." + t);
|
|
4684
|
+
return r || q.warn("No previewed ID found in search params."), r;
|
|
4685
|
+
};
|
|
4686
|
+
function oa(e) {
|
|
4687
|
+
Xi();
|
|
4688
|
+
const t = ra(e);
|
|
4689
|
+
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4690
|
+
}
|
|
4691
|
+
function Wt(e, t = null, r = ".") {
|
|
4692
|
+
return Object.keys(e).reduce((n, o) => {
|
|
4693
|
+
const a = e[o], s = [t, o].filter(Boolean).join(r);
|
|
4694
|
+
return [typeof a == "object", a !== null, !(Array.isArray(a) && a.length === 0)].every(Boolean) ? {
|
|
4695
|
+
...n,
|
|
4696
|
+
...Wt(a, s, r)
|
|
4697
|
+
} : {
|
|
4698
|
+
...n,
|
|
4699
|
+
[s]: a
|
|
4700
|
+
};
|
|
4701
|
+
}, {});
|
|
4702
|
+
}
|
|
4703
|
+
const or = "builder.", ia = "options.", aa = (e) => {
|
|
4704
|
+
const t = {};
|
|
4705
|
+
return e.forEach((r, n) => {
|
|
4706
|
+
t[n] = r;
|
|
4707
|
+
}), t;
|
|
4708
|
+
}, jr = (e) => {
|
|
4709
|
+
if (!e)
|
|
4710
|
+
return {};
|
|
4711
|
+
const t = Or(e), r = {};
|
|
4712
|
+
return Object.keys(t).forEach((n) => {
|
|
4713
|
+
if (n.startsWith(or)) {
|
|
4714
|
+
const o = n.replace(or, "").replace(ia, "");
|
|
4715
|
+
r[o] = t[n];
|
|
4716
|
+
}
|
|
4717
|
+
}), r;
|
|
4718
|
+
}, sa = () => {
|
|
4719
|
+
if (!z())
|
|
4720
|
+
return {};
|
|
4721
|
+
const e = new URLSearchParams(window.location.search);
|
|
4722
|
+
return jr(e);
|
|
4723
|
+
}, Or = (e) => e instanceof URLSearchParams ? aa(e) : e, la = "v3", ln = (e) => {
|
|
4724
|
+
const {
|
|
4725
|
+
limit: t = 30,
|
|
4726
|
+
userAttributes: r,
|
|
4727
|
+
query: n,
|
|
4728
|
+
noTraverse: o = !1,
|
|
4729
|
+
model: a,
|
|
4730
|
+
apiKey: s,
|
|
4731
|
+
includeRefs: f = !0,
|
|
4732
|
+
enrich: h,
|
|
4733
|
+
locale: g,
|
|
4734
|
+
apiVersion: v = la
|
|
4735
|
+
} = e;
|
|
4736
|
+
if (!s)
|
|
4737
|
+
throw new Error("Missing API key");
|
|
4738
|
+
if (!["v2", "v3"].includes(v))
|
|
4739
|
+
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${v}'`);
|
|
4740
|
+
const b = new URL(`https://cdn.builder.io/api/${v}/content/${a}?apiKey=${s}&limit=${t}&noTraverse=${o}&includeRefs=${f}${g ? `&locale=${g}` : ""}${h ? `&enrich=${h}` : ""}`), M = {
|
|
4741
|
+
...sa(),
|
|
4742
|
+
...Or(e.options || {})
|
|
4743
|
+
}, E = Wt(M);
|
|
4744
|
+
for (const S in E)
|
|
4745
|
+
b.searchParams.set(S, String(E[S]));
|
|
4746
|
+
if (r && b.searchParams.set("userAttributes", JSON.stringify(r)), n) {
|
|
4747
|
+
const S = Wt({
|
|
4748
|
+
query: n
|
|
4749
|
+
});
|
|
4750
|
+
for (const x in S)
|
|
4751
|
+
b.searchParams.set(x, JSON.stringify(S[x]));
|
|
4752
|
+
}
|
|
4753
|
+
return b;
|
|
4754
|
+
}, ua = (e) => "results" in e;
|
|
4755
|
+
async function un(e) {
|
|
4756
|
+
const t = await Rr({
|
|
4757
|
+
...e,
|
|
4758
|
+
limit: 1
|
|
4759
|
+
});
|
|
4760
|
+
return t && t.results[0] || null;
|
|
4761
|
+
}
|
|
4762
|
+
const Ra = un, ca = async (e) => {
|
|
4763
|
+
const t = ln(e);
|
|
4764
|
+
return await (await Ii(t.href)).json();
|
|
4765
|
+
}, fa = async (e, t, r = ln(e)) => {
|
|
4766
|
+
const n = Dt(e.canTrack);
|
|
4767
|
+
if (r.search.includes("preview=")) {
|
|
4768
|
+
const a = [];
|
|
4769
|
+
for (const s of t.results) {
|
|
4770
|
+
const f = oa(r.searchParams);
|
|
4771
|
+
a.push(f || s);
|
|
4772
|
+
}
|
|
4773
|
+
t.results = a;
|
|
4774
|
+
}
|
|
4775
|
+
if (!n || !(z() || me === "reactNative"))
|
|
4776
|
+
return t;
|
|
4777
|
+
try {
|
|
4778
|
+
const a = [];
|
|
4779
|
+
for (const s of t.results)
|
|
4780
|
+
a.push(await ea({
|
|
4781
|
+
item: s,
|
|
4782
|
+
canTrack: n
|
|
4783
|
+
}));
|
|
4784
|
+
t.results = a;
|
|
4785
|
+
} catch (a) {
|
|
4786
|
+
q.error("Could not process A/B tests. ", a);
|
|
4787
|
+
}
|
|
4788
|
+
return t;
|
|
4789
|
+
};
|
|
4790
|
+
async function Rr(e) {
|
|
4791
|
+
try {
|
|
4792
|
+
const t = ln(e), r = await ca(e);
|
|
4793
|
+
return ua(r) ? fa(e, r) : (q.error("Error fetching data. ", {
|
|
4794
|
+
url: t,
|
|
4795
|
+
content: r,
|
|
4796
|
+
options: e
|
|
4797
|
+
}), null);
|
|
4798
|
+
} catch (t) {
|
|
4799
|
+
return q.error("Error fetching data. ", t), null;
|
|
4800
|
+
}
|
|
4801
|
+
}
|
|
4802
|
+
const Pa = Rr, Na = async (e) => {
|
|
4803
|
+
var n, o, a;
|
|
4804
|
+
const t = e.path || ((n = e.url) == null ? void 0 : n.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), r = {
|
|
4805
|
+
...e,
|
|
4806
|
+
apiKey: e.apiKey,
|
|
4807
|
+
model: e.model || "page",
|
|
4808
|
+
userAttributes: {
|
|
4809
|
+
...e.userAttributes,
|
|
4810
|
+
...t ? {
|
|
4811
|
+
urlPath: t
|
|
4812
|
+
} : {}
|
|
4813
|
+
},
|
|
4814
|
+
options: jr(e.searchParams || ((a = e.url) == null ? void 0 : a.searchParams) || e.options)
|
|
4815
|
+
};
|
|
4816
|
+
return {
|
|
4817
|
+
apiKey: r.apiKey,
|
|
4818
|
+
model: r.model,
|
|
4819
|
+
content: await un(r)
|
|
4820
|
+
};
|
|
4821
|
+
};
|
|
4822
|
+
export {
|
|
4823
|
+
un as A,
|
|
4824
|
+
an as B,
|
|
4825
|
+
Ar as C,
|
|
4826
|
+
Pa as D,
|
|
4827
|
+
Ra as E,
|
|
4828
|
+
fa as F,
|
|
4829
|
+
jr as G,
|
|
4830
|
+
ka as H,
|
|
4831
|
+
on as I,
|
|
4832
|
+
Na as J,
|
|
4833
|
+
Ta as R,
|
|
4834
|
+
na as S,
|
|
4835
|
+
ci as T,
|
|
4836
|
+
Di as _,
|
|
4837
|
+
so as a,
|
|
4838
|
+
va as b,
|
|
4839
|
+
xe as c,
|
|
4840
|
+
ya as d,
|
|
4841
|
+
Ho as e,
|
|
4842
|
+
xa as f,
|
|
4843
|
+
hr as g,
|
|
4844
|
+
wa as h,
|
|
4845
|
+
Kt as i,
|
|
4846
|
+
ba as j,
|
|
4847
|
+
z as k,
|
|
4848
|
+
q as l,
|
|
4849
|
+
Sa as m,
|
|
4850
|
+
rn as n,
|
|
4851
|
+
Ia as o,
|
|
4852
|
+
st as p,
|
|
4853
|
+
Ii as q,
|
|
4854
|
+
Ca as r,
|
|
4855
|
+
Ea as s,
|
|
4856
|
+
Xi as t,
|
|
4857
|
+
Aa as u,
|
|
4858
|
+
Xo as v,
|
|
4859
|
+
ja as w,
|
|
4860
|
+
Hi as x,
|
|
4861
|
+
Oa as y,
|
|
4862
|
+
Rr as z
|
|
4863
|
+
};
|