@builder.io/sdk-react 3.0.5 → 3.0.7

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.
Files changed (81) hide show
  1. package/lib/browser/blocks-exports.cjs +167 -30
  2. package/lib/browser/blocks-exports.mjs +1370 -931
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +17 -16
  5. package/lib/{edge/server-entry-67bfc740.js → browser/server-entry-20c79b90.js} +319 -274
  6. package/lib/browser/server-entry-762e29e0.cjs +2 -0
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-190c4426.cjs → accordion-071aa4f9.cjs} +1 -1
  10. package/lib/edge/{accordion-cd6e0363.js → accordion-22c2c037.js} +1 -1
  11. package/lib/edge/{blocks-fe2d7c1a.js → blocks-2989e629.js} +1343 -1318
  12. package/lib/edge/blocks-d3f37507.cjs +30 -0
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +13 -12
  15. package/lib/edge/{button-6a27481c.js → button-2b5270c4.js} +2 -2
  16. package/lib/edge/{button-694fcd4f.cjs → button-a2cc6565.cjs} +1 -1
  17. package/lib/edge/{columns-90e6407e.js → columns-21b9be25.js} +3 -3
  18. package/lib/edge/{columns-b38bf0f7.cjs → columns-b7240242.cjs} +1 -1
  19. package/lib/edge/{content-variants-cbb89349.js → content-variants-88f4dc64.js} +165 -124
  20. package/lib/edge/content-variants-fdd5ee50.cjs +134 -0
  21. package/lib/edge/dynamic-blocks-exports.cjs +3 -1
  22. package/lib/edge/dynamic-blocks-exports.mjs +5 -2
  23. package/lib/edge/{form-547645eb.cjs → form-77687883.cjs} +1 -1
  24. package/lib/edge/{form-16bbf874.js → form-d29f3cc0.js} +3 -3
  25. package/lib/edge/{get-class-prop-name-8b719c6b.js → get-class-prop-name-dbc5d99c.js} +1 -1
  26. package/lib/edge/{get-class-prop-name-58770197.cjs → get-class-prop-name-f597545d.cjs} +1 -1
  27. package/lib/edge/{img-8859c851.cjs → img-03f9002b.cjs} +1 -1
  28. package/lib/edge/{img-d3351743.js → img-fed70928.js} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +18 -17
  31. package/lib/edge/{input-24c601b4.js → input-083c3c35.js} +1 -1
  32. package/lib/edge/{input-4fe0fc6d.cjs → input-1e548fd0.cjs} +1 -1
  33. package/lib/edge/personalization-container-bcff3433.js +384 -0
  34. package/lib/edge/personalization-container-dde10a09.cjs +138 -0
  35. package/lib/edge/{select-c73bd418.cjs → select-21e33225.cjs} +1 -1
  36. package/lib/edge/{select-af05377b.js → select-9f22c2ba.js} +1 -1
  37. package/lib/{browser/server-entry-785c0408.js → edge/server-entry-43a6f5be.js} +339 -298
  38. package/lib/edge/server-entry-ac35a5c8.cjs +2 -0
  39. package/lib/edge/server-entry.cjs +1 -1
  40. package/lib/edge/server-entry.mjs +1 -1
  41. package/lib/edge/{slot-759c8dd9.cjs → slot-a9f5d6c0.cjs} +1 -1
  42. package/lib/edge/{slot-32a4df0c.js → slot-ca171e8c.js} +3 -3
  43. package/lib/edge/{symbol-50360a37.js → symbol-8f6ff028.js} +2 -2
  44. package/lib/edge/{symbol-8d63aa7d.cjs → symbol-a2015c7e.cjs} +1 -1
  45. package/lib/edge/{tabs-6535c934.js → tabs-6b67fca2.js} +3 -3
  46. package/lib/edge/{tabs-fc6c1700.cjs → tabs-880c9088.cjs} +1 -1
  47. package/lib/node/blocks-exports.cjs +168 -31
  48. package/lib/node/blocks-exports.mjs +1343 -904
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +17 -16
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +3 -3
  53. package/lib/node/server-entry-0b433783.cjs +2 -0
  54. package/lib/node/{server-entry-ffc70868.js → server-entry-6626257d.js} +280 -237
  55. package/lib/node/server-entry.cjs +1 -1
  56. package/lib/node/server-entry.mjs +1 -1
  57. package/lib/node/{setIvm-4ce0db03.cjs → setIvm-49abbae6.cjs} +1 -1
  58. package/lib/node/{setIvm-2cea7252.js → setIvm-5cb298bf.js} +1 -1
  59. package/lib/node/setIvm.cjs +1 -1
  60. package/lib/node/setIvm.mjs +2 -2
  61. package/lib/node/{should-force-browser-runtime-in-node-d3e6df07.cjs → should-force-browser-runtime-in-node-11e8399e.cjs} +1 -1
  62. package/lib/node/{should-force-browser-runtime-in-node-c0d50009.js → should-force-browser-runtime-in-node-94f1a5b3.js} +1 -1
  63. package/package.json +1 -1
  64. package/types/blocks/personalization-container/component-info.d.ts +2 -0
  65. package/types/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -0
  66. package/types/blocks/personalization-container/helpers.d.ts +27 -0
  67. package/types/blocks/personalization-container/index.d.ts +1 -0
  68. package/types/blocks/personalization-container/personalization-container.d.ts +4 -0
  69. package/types/blocks/personalization-container/personalization-container.types.d.ts +14 -0
  70. package/types/constants/device-sizes.d.ts +3 -2
  71. package/types/constants/sdk-version.d.ts +1 -1
  72. package/types/helpers/user-attributes.d.ts +17 -0
  73. package/types/index-helpers/blocks-exports.d.ts +1 -0
  74. package/types/types/builder-block.d.ts +0 -1
  75. package/types/types/builder-content.d.ts +1 -0
  76. package/types/types/input.d.ts +1 -0
  77. package/lib/browser/server-entry-101d66b8.cjs +0 -2
  78. package/lib/edge/blocks-766e8d45.cjs +0 -30
  79. package/lib/edge/content-variants-4e385c19.cjs +0 -134
  80. package/lib/edge/server-entry-3c7fa63a.cjs +0 -2
  81. package/lib/node/server-entry-95273908.cjs +0 -2
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./server-entry-95273908.cjs");exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./server-entry-0b433783.cjs");exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
@@ -1,4 +1,4 @@
1
- import { _processContentResult as r, createRegisterComponentMessage as s, fetchBuilderProps as i, fetchEntries as n, fetchOneEntry as o, getBuilderSearchParams as c, isEditing as g, isPreviewing as a, register as d, setEditorSettings as E, subscribeToEditor as f, track as h } from "./server-entry-ffc70868.js";
1
+ import { _processContentResult as r, createRegisterComponentMessage as s, fetchBuilderProps as i, fetchEntries as n, fetchOneEntry as o, getBuilderSearchParams as c, isEditing as g, isPreviewing as a, register as d, setEditorSettings as E, subscribeToEditor as f, track as h } from "./server-entry-6626257d.js";
2
2
  export {
3
3
  r as _processContentResult,
4
4
  s as createRegisterComponentMessage,
@@ -1,4 +1,4 @@
1
- "use strict";const serverEntry=require("./server-entry-95273908.cjs"),getFunctionArguments=({builder:e,context:t,event:s,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:s}),getBuilderGlobals=()=>({isEditing:serverEntry.isEditing(),isBrowser:serverEntry.isBrowser(),isServer:!serverEntry.isBrowser(),getUserAttributes:()=>serverEntry.getUserAttributes()}),parseCode=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;function flattenState({rootState:e,localState:t,rootSetState:s}){return new Proxy(e,{get:(r,n)=>{if(t&&n in t)return t[n];const o=r[n];return typeof o=="object"&&o!==null?flattenState({rootState:o,localState:void 0,rootSetState:s?i=>{r[n]=i,s(r)}:void 0}):o},set:(r,n,o)=>{if(t&&n in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[n]=o,s==null||s(r),!0}})}const SDK_NAME_FOR_TARGET=(()=>{switch(serverEntry.TARGET){case"rsc":return"react-nextjs";case"reactNative":return"react-native";default:return serverEntry.TARGET}})(),SDK_NAME=`@builder.io/sdk-${SDK_NAME_FOR_TARGET}`,fastClone=e=>JSON.parse(JSON.stringify(e)),set=(e,t,s)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((n,o,i)=>Object(n[o])===n[o]?n[o]:n[o]=Math.abs(Number(r[i+1]))>>0===+r[i+1]?[]:{},e)[r[r.length-1]]=s,e},noop=()=>{};let safeDynamicRequire=noop;try{safeDynamicRequire=eval("require")}catch(e){}const getSyncValName=e=>`bldr_${e}_sync`,BUILDER_SET_STATE_NAME="BUILDER_SET_STATE",INJECTED_IVM_GLOBAL="BUILDER_IVM",REF_TO_PROXY_FN=`
1
+ "use strict";const serverEntry=require("./server-entry-0b433783.cjs"),getFunctionArguments=({builder:e,context:t,event:s,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:s}),getBuilderGlobals=()=>({isEditing:serverEntry.isEditing(),isBrowser:serverEntry.isBrowser(),isServer:!serverEntry.isBrowser(),getUserAttributes:()=>serverEntry.getUserAttributes()}),parseCode=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;function flattenState({rootState:e,localState:t,rootSetState:s}){return new Proxy(e,{get:(r,n)=>{if(t&&n in t)return t[n];const o=r[n];return typeof o=="object"&&o!==null?flattenState({rootState:o,localState:void 0,rootSetState:s?i=>{r[n]=i,s(r)}:void 0}):o},set:(r,n,o)=>{if(t&&n in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[n]=o,s==null||s(r),!0}})}const SDK_NAME_FOR_TARGET=(()=>{switch(serverEntry.TARGET){case"rsc":return"react-nextjs";case"reactNative":return"react-native";default:return serverEntry.TARGET}})(),SDK_NAME=`@builder.io/sdk-${SDK_NAME_FOR_TARGET}`,fastClone=e=>JSON.parse(JSON.stringify(e)),set=(e,t,s)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((n,o,i)=>Object(n[o])===n[o]?n[o]:n[o]=Math.abs(Number(r[i+1]))>>0===+r[i+1]?[]:{},e)[r[r.length-1]]=s,e},noop=()=>{};let safeDynamicRequire=noop;try{safeDynamicRequire=eval("require")}catch(e){}const getSyncValName=e=>`bldr_${e}_sync`,BUILDER_SET_STATE_NAME="BUILDER_SET_STATE",INJECTED_IVM_GLOBAL="BUILDER_IVM",REF_TO_PROXY_FN=`
2
2
  var refToProxy = (obj) => {
3
3
  if (typeof obj !== 'object' || obj === null) {
4
4
  return obj;
@@ -1,4 +1,4 @@
1
- import { isEditing, isBrowser, getUserAttributes, TARGET, logger, MSG_PREFIX } from "./server-entry-ffc70868.js";
1
+ import { isEditing, isBrowser, getUserAttributes, TARGET, logger, MSG_PREFIX } from "./server-entry-6626257d.js";
2
2
  const getFunctionArguments = ({
3
3
  builder: e,
4
4
  context: t,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./setIvm-4ce0db03.cjs");require("./server-entry-95273908.cjs");exports.setIvm=e.setIvm;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./setIvm-49abbae6.cjs");require("./server-entry-0b433783.cjs");exports.setIvm=e.setIvm;
@@ -1,5 +1,5 @@
1
- import { setIvm as t } from "./setIvm-2cea7252.js";
2
- import "./server-entry-ffc70868.js";
1
+ import { setIvm as t } from "./setIvm-5cb298bf.js";
2
+ import "./server-entry-6626257d.js";
3
3
  export {
4
4
  t as setIvm
5
5
  };
@@ -1 +1 @@
1
- "use strict";const s=require("./server-entry-95273908.cjs");function t(){var e;return typeof process!="undefined"&&s.checkIsDefined((e=process==null?void 0:process.versions)==null?void 0:e.node)}const c=({shouldLogWarning:e})=>{var o;if(!t())return!1;const n=process.arch==="arm64",r=process.version.startsWith("v20"),i=(o=process.env.NODE_OPTIONS)==null?void 0:o.includes("--no-node-snapshot");return n&&r&&!i?(e&&s.logger.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "),!0):!1};exports.shouldForceBrowserRuntimeInNode=c;
1
+ "use strict";const s=require("./server-entry-0b433783.cjs");function t(){var e;return typeof process!="undefined"&&s.checkIsDefined((e=process==null?void 0:process.versions)==null?void 0:e.node)}const c=({shouldLogWarning:e})=>{var o;if(!t())return!1;const n=process.arch==="arm64",r=process.version.startsWith("v20"),i=(o=process.env.NODE_OPTIONS)==null?void 0:o.includes("--no-node-snapshot");return n&&r&&!i?(e&&s.logger.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "),!0):!1};exports.shouldForceBrowserRuntimeInNode=c;
@@ -1,4 +1,4 @@
1
- import { checkIsDefined as i, logger as t } from "./server-entry-ffc70868.js";
1
+ import { checkIsDefined as i, logger as t } from "./server-entry-6626257d.js";
2
2
  function a() {
3
3
  var o;
4
4
  return typeof process != "undefined" && i((o = process == null ? void 0 : process.versions) == null ? void 0 : o.node);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-react",
3
3
  "description": "Builder.io SDK for React",
4
- "version": "3.0.5",
4
+ "version": "3.0.7",
5
5
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/react",
6
6
  "type": "module",
7
7
  "repository": {
@@ -0,0 +1,2 @@
1
+ import type { ComponentInfo } from '../../types/components';
2
+ export declare const componentInfo: ComponentInfo;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * WARNING: This file contains functions that get stringified and inlined into the HTML at build-time.
3
+ * They cannot import anything.
4
+ */
5
+ import type { Query, UserAttributes } from '../helpers';
6
+ export declare function filterWithCustomTargeting(userAttributes: UserAttributes, query: Query[], startDate?: string, endDate?: string): boolean;
7
+ export declare const PERSONALIZATION_SCRIPT = "function getPersonalizedVariant(variants, blockId, locale) {\n if (!navigator.cookieEnabled) {\n return;\n }\n function getCookie(name) {\n const nameEQ = name + '=';\n const ca = document.cookie.split(';');\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) == ' ') c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);\n }\n return null;\n }\n function removeVariants() {\n variants?.forEach(function (_, index) {\n document.querySelector('template[data-variant-id=\"' + blockId + '-' + index + '\"]')?.remove();\n });\n document.querySelector('script[data-id=\"variants-script-' + blockId + '\"]')?.remove();\n document.querySelector('style[data-id=\"variants-styles-' + blockId + '\"]')?.remove();\n }\n const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');\n if (locale) {\n attributes.locale = locale;\n }\n const winningVariantIndex = variants?.findIndex(function (variant) {\n return filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);\n });\n const isDebug = location.href.includes('builder.debug=true');\n if (isDebug) {\n console.debug('PersonalizationContainer', {\n attributes,\n variants,\n winningVariantIndex\n });\n }\n if (winningVariantIndex !== -1) {\n const winningVariant = document.querySelector('template[data-variant-id=\"' + blockId + '-' + winningVariantIndex + '\"]');\n if (winningVariant) {\n const parentNode = winningVariant.parentNode;\n if (parentNode) {\n const newParent = parentNode.cloneNode(false);\n newParent.appendChild(winningVariant.content.firstChild);\n newParent.appendChild(winningVariant.content.lastChild);\n parentNode.parentNode?.replaceChild(newParent, parentNode);\n }\n if (isDebug) {\n console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);\n }\n }\n } else if (variants && variants.length > 0) {\n removeVariants();\n }\n}";
8
+ export declare const FILTER_WITH_CUSTOM_TARGETING_SCRIPT = "function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {\n function isString(val) {\n return typeof val === 'string';\n }\n function isNumber(val) {\n return typeof val === 'number';\n }\n function objectMatchesQuery(userattr, query) {\n const result = (() => {\n const property = query.property;\n const operator = query.operator;\n let testValue = query.value;\n if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {\n testValue = query.value.slice(0, -1);\n }\n if (!(property && operator)) {\n return true;\n }\n if (Array.isArray(testValue)) {\n if (operator === 'isNot') {\n return testValue.every(val => objectMatchesQuery(userattr, {\n property,\n operator,\n value: val\n }));\n }\n return !!testValue.find(val => objectMatchesQuery(userattr, {\n property,\n operator,\n value: val\n }));\n }\n const value = userattr[property];\n if (Array.isArray(value)) {\n return value.includes(testValue);\n }\n switch (operator) {\n case 'is':\n return value === testValue;\n case 'isNot':\n return value !== testValue;\n case 'contains':\n return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));\n case 'startsWith':\n return isString(value) && value.startsWith(String(testValue));\n case 'endsWith':\n return isString(value) && value.endsWith(String(testValue));\n case 'greaterThan':\n return isNumber(value) && isNumber(testValue) && value > testValue;\n case 'lessThan':\n return isNumber(value) && isNumber(testValue) && value < testValue;\n case 'greaterThanOrEqualTo':\n return isNumber(value) && isNumber(testValue) && value >= testValue;\n case 'lessThanOrEqualTo':\n return isNumber(value) && isNumber(testValue) && value <= testValue;\n default:\n return false;\n }\n })();\n return result;\n }\n const item = {\n query,\n startDate,\n endDate\n };\n const now = userAttributes.date && new Date(userAttributes.date) || new Date();\n if (item.startDate && new Date(item.startDate) > now) {\n return false;\n } else if (item.endDate && new Date(item.endDate) < now) {\n return false;\n }\n if (!item.query || !item.query.length) {\n return true;\n }\n return item.query.every(filter => {\n return objectMatchesQuery(userAttributes, filter);\n });\n}";
@@ -0,0 +1,27 @@
1
+ import type { BuilderBlock } from '../../types/builder-block';
2
+ import type { PersonalizationContainerProps } from './personalization-container.types';
3
+ export type UserAttributes = {
4
+ date?: string | Date;
5
+ urlPath?: string;
6
+ [key: string]: any;
7
+ };
8
+ type QueryOperator = 'is' | 'isNot' | 'contains' | 'startsWith' | 'endsWith' | 'greaterThan' | 'lessThan' | 'greaterThanOrEqualTo' | 'lessThanOrEqualTo';
9
+ type QueryValue = string | number | boolean | Array<string | number | boolean>;
10
+ export type Query = {
11
+ property: string;
12
+ operator: QueryOperator;
13
+ value: QueryValue;
14
+ };
15
+ export declare function checkShouldRenderVariants(variants: PersonalizationContainerProps['variants'], canTrack: boolean): boolean;
16
+ export declare function getBlocksToRender({ variants, previewingIndex, isHydrated, filteredVariants, fallbackBlocks }: {
17
+ variants: PersonalizationContainerProps['variants'];
18
+ previewingIndex?: number | null;
19
+ isHydrated: boolean;
20
+ filteredVariants: PersonalizationContainerProps['variants'];
21
+ fallbackBlocks?: BuilderBlock[];
22
+ }): {
23
+ blocks: BuilderBlock[];
24
+ path: string | undefined;
25
+ };
26
+ export declare const getPersonalizationScript: (variants: PersonalizationContainerProps['variants'], blockId: string, locale?: string) => string;
27
+ export { filterWithCustomTargeting } from './helpers/inlined-fns';
@@ -0,0 +1 @@
1
+ export { default } from './personalization-container';
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { PersonalizationContainerProps } from "./personalization-container.types";
3
+ declare function PersonalizationContainer(props: PersonalizationContainerProps): React.JSX.Element;
4
+ export default PersonalizationContainer;
@@ -0,0 +1,14 @@
1
+ import type { BuilderBlock } from '../../types/builder-block';
2
+ import type { BuilderDataProps } from '../../types/builder-props';
3
+ import type { Query } from './helpers';
4
+ export type PersonalizationContainerProps = {
5
+ children?: any;
6
+ attributes?: any;
7
+ previewingIndex?: number | null;
8
+ variants?: Array<{
9
+ blocks: BuilderBlock[];
10
+ query: Query[];
11
+ startDate?: string;
12
+ endDate?: string;
13
+ }>;
14
+ } & BuilderDataProps;
@@ -1,4 +1,4 @@
1
- export type SizeName = 'large' | 'medium' | 'small';
1
+ export type SizeName = 'large' | 'medium' | 'small' | 'xsmall';
2
2
  interface Size {
3
3
  min: number;
4
4
  default: number;
@@ -6,8 +6,9 @@ interface Size {
6
6
  }
7
7
  export declare const getMaxWidthQueryForSize: (size: SizeName, sizeValues?: Record<SizeName, Size>) => string;
8
8
  interface Breakpoints {
9
+ xsmall?: number;
9
10
  small?: number;
10
11
  medium?: number;
11
12
  }
12
- export declare const getSizesForBreakpoints: ({ small, medium }: Breakpoints) => Record<SizeName, Size>;
13
+ export declare const getSizesForBreakpoints: (breakpoints: Breakpoints) => Record<SizeName, Size>;
13
14
  export {};
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.0.5";
1
+ export declare const SDK_VERSION = "3.0.7";
@@ -0,0 +1,17 @@
1
+ export interface UserAttributes {
2
+ [key: string]: any;
3
+ }
4
+ export declare const USER_ATTRIBUTES_COOKIE_NAME = "builder.userAttributes";
5
+ export declare function createUserAttributesService(): {
6
+ setUserAttributes(newAttrs: UserAttributes): void;
7
+ getUserAttributes(): any;
8
+ subscribeOnUserAttributesChange(callback: (attrs: UserAttributes) => void): () => void;
9
+ setCanTrack(value: boolean): void;
10
+ };
11
+ export declare const userAttributesService: {
12
+ setUserAttributes(newAttrs: UserAttributes): void;
13
+ getUserAttributes(): any;
14
+ subscribeOnUserAttributesChange(callback: (attrs: UserAttributes) => void): () => void;
15
+ setCanTrack(value: boolean): void;
16
+ };
17
+ export declare const setClientUserAttributes: (attributes: UserAttributes) => void;
@@ -12,3 +12,4 @@ export { default as Content } from '../components/content-variants/index';
12
12
  * Builder Context
13
13
  */
14
14
  export { BuilderContext } from '../context/index';
15
+ export { setClientUserAttributes } from '../helpers/user-attributes';
@@ -37,7 +37,6 @@ export interface BuilderBlock {
37
37
  large?: Partial<CSSStyleDeclaration>;
38
38
  medium?: Partial<CSSStyleDeclaration>;
39
39
  small?: Partial<CSSStyleDeclaration>;
40
- /** @deprecated */
41
40
  xsmall?: Partial<CSSStyleDeclaration>;
42
41
  };
43
42
  component?: {
@@ -2,6 +2,7 @@ import type { BuilderBlock } from './builder-block';
2
2
  import type { Input } from './input';
3
3
  import type { Nullable } from './typescript';
4
4
  export interface Breakpoints {
5
+ xsmall?: number;
5
6
  small: number;
6
7
  medium: number;
7
8
  }
@@ -124,6 +124,7 @@ export interface Input {
124
124
  * Use optionally with inputs of type `reference`. Restricts the content entry picker to a specific model by name.
125
125
  */
126
126
  model?: string;
127
+ behavior?: string;
127
128
  valueType?: {
128
129
  type?: string;
129
130
  };
@@ -1,2 +0,0 @@
1
- "use strict";const w="react",I="[Builder.io]: ",d={log:(...t)=>console.log(I,...t),error:(...t)=>console.error(I,...t),warn:(...t)=>console.warn(I,...t),debug:(...t)=>console.debug(I,...t)};function c(){return typeof window!="undefined"&&typeof document!="undefined"}const gt=t=>{const e={};return t.forEach((n,r)=>{e[r]=n}),e},M=t=>t instanceof URLSearchParams?gt(t):t,N=t=>typeof t=="string"?t:t instanceof URLSearchParams?t.toString():new URLSearchParams(t).toString();function pt(){return c()&&window.self!==window.top}function K(t){return pt()&&N(t||window.location.search).indexOf("builder.frameEditing=")!==-1}const mt=()=>{if(c()){const t=new URL(location.href);return t.pathname===""&&(t.pathname="/"),t}else return console.warn("Cannot get location for tracking in non-browser environment"),null},yt=()=>typeof navigator=="object"&&navigator.userAgent||"",j=()=>{const t=yt(),e={Android(){return t.match(/Android/i)},BlackBerry(){return t.match(/BlackBerry/i)},iOS(){return t.match(/iPhone|iPod/i)},Opera(){return t.match(/Opera Mini/i)},Windows(){return t.match(/IEMobile/i)||t.match(/WPDesktop/i)},any(){return e.Android()||e.BlackBerry()||e.iOS()||e.Opera()||e.Windows()||w==="reactNative"}},n=t.match(/Tablet|iPad/i),r=mt();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":e.any()?"mobile":"desktop"}},p=t=>t!=null;function wt(t){const e=t||(c()?window.location.search:void 0);return e?N(e).indexOf("builder.preview=")!==-1:!1}const St=t=>({type:"builder.registerComponent",data:P(t)}),bt=t=>{const e=t.toString().trim(),n=/^[a-zA-Z0-9_]+\s*=>/i.test(e);return`return (${!e.startsWith("function")&&!e.startsWith("async")&&!e.startsWith("(")&&!n?"function ":""}${e}).apply(this, arguments)`};function P(t){return JSON.parse(JSON.stringify(t,(e,n)=>typeof n=="function"?bt(n):n))}const U={};function W(t,e){t==="plugin"&&(e=P(e));let n=U[t];if(n||(n=U[t]=[]),n.push(e),c()){const r={type:"builder.register",data:{type:t,info:e}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(s){console.debug("Could not postmessage",s)}}}const L={};function vt(t){if(c()){Object.assign(L,t);const e={type:"builder.settingsChange",data:L};parent.postMessage(e,"*")}}const F="builder.",It="options.",O=t=>{if(!t)return{};const e=M(t),n={};return Object.keys(e).forEach(r=>{if(r.startsWith(F)){const s=r.replace(F,"").replace(It,"");n[s]=e[r]}}),n},kt=()=>{if(!c())return{};const t=new URLSearchParams(window.location.search);return O(t)},_="3.0.5",$=()=>({"X-Builder-SDK":w,"X-Builder-SDK-GEN":"2","X-Builder-SDK-Version":_}),Et=t=>{if(t==="localhost"||t==="127.0.0.1")return t;const e=t.split(".");return e.length>2?e.slice(1).join("."):t},G=({name:t,canTrack:e})=>{var n;try{return e?(n=document.cookie.split("; ").find(r=>r.startsWith(`${t}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){d.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},z=async t=>G(t),At=t=>t.map(([e,n])=>n?`${e}=${n}`:e).filter(p).join("; "),Pt=[["secure",""],["SameSite","None"]],Ot=({name:t,value:e,expires:n})=>{const s=(c()?location.protocol==="https:":!0)?Pt:[[]],o=n?[["expires",n.toUTCString()]]:[[]],i=[[t,e],...o,["path","/"],["domain",Et(window.location.hostname)],...s];return At(i)},H=async({name:t,value:e,expires:n,canTrack:r})=>{try{if(!r)return;const s=Ot({name:t,value:e,expires:n});document.cookie=s}catch(s){d.warn("[COOKIE] SET error: ",(s==null?void 0:s.message)||s)}};function Ct(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}function J(){return Ct().replace(/-/g,"")}const X="builderSessionId",Tt=async({canTrack:t})=>{if(!t)return;const e=await z({name:X,canTrack:t});if(p(e))return e;{const n=xt();return Bt({id:n,canTrack:t}),n}},xt=()=>J(),Bt=({id:t,canTrack:e})=>H({name:X,value:t,canTrack:e}),Q=()=>c()&&typeof localStorage!="undefined"?localStorage:void 0,Rt=({key:t,canTrack:e})=>{var n;try{return e?(n=Q())==null?void 0:n.getItem(t):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},Ut=({key:t,canTrack:e,value:n})=>{var r;try{e&&((r=Q())==null||r.setItem(t,n))}catch(s){console.debug("[LocalStorage] SET error: ",s)}},Y="builderVisitorId",Lt=({canTrack:t})=>{if(!t)return;const e=Rt({key:Y,canTrack:t});if(p(e))return e;{const n=Ft();return Vt({id:n,canTrack:t}),n}},Ft=()=>J(),Vt=({id:t,canTrack:e})=>Ut({key:Y,value:t,canTrack:e});function Z(t){var e;typeof process!="undefined"&&((e=process.env)!=null&&e.DEBUG)&&String(process.env.DEBUG)=="true"&&d.log(t)}const Dt=async({canTrack:t})=>{if(!t)return{visitorId:void 0,sessionId:void 0};const e=await Tt({canTrack:t}),n=Lt({canTrack:t});return{sessionId:e,visitorId:n}},Mt=async({type:t,canTrack:e,apiKey:n,metadata:r,...s})=>({type:t,data:{...s,metadata:{url:location.href,...r},...await Dt({canTrack:e}),userAttributes:j(),ownerId:n}});async function q({apiHost:t,...e}){if(!e.apiKey){d.error("Missing API key for track call. Please provide your API key.");return}if(!e.canTrack||K()||!(c()||w==="reactNative"))return;const r=`${t||"https://cdn.builder.io"}/api/v1/track`;return Z(r),fetch(r,{method:"POST",body:JSON.stringify({events:[await Mt(e)]}),headers:{"content-type":"application/json",...$()},mode:"cors"}).catch(s=>{console.error("Failed to track: ",s)})}const Nt=t=>q({...t,canTrack:!0}),Kt=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function tt(t,e){if(!e.origin.startsWith("http")&&!e.origin.startsWith("https"))return!1;const n=new URL(e.origin),r=n.hostname;return(t||Kt).findIndex(s=>s.startsWith("*.")?r.endsWith(s.slice(1)):s===r)>-1}const jt=()=>{W("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let V=!1;const et=(t={})=>{var e,n;V||(V=!0,c()&&((e=window.parent)==null||e.postMessage({type:"builder.sdkInfo",data:{target:w,version:_,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:t}},"*"),window.addEventListener("message",r=>{var o,i;if(!tt(t.trustedHosts,r))return;const{data:s}=r;if(s!=null&&s.type)switch(s.type){case"builder.evaluate":{const u=s.data.text,S=s.data.arguments||[],m=s.data.id,k=new Function(u);let l,h=null;try{l=k.apply(null,S)}catch(g){h=g}h?(o=window.parent)==null||o.postMessage({type:"builder.evaluateError",data:{id:m,error:h.message}},"*"):l&&typeof l.then=="function"?l.then(g=>{var b;(b=window.parent)==null||b.postMessage({type:"builder.evaluateResult",data:{id:m,result:g}},"*")}).catch(console.error):(i=window.parent)==null||i.postMessage({type:"builder.evaluateResult",data:{result:l,id:m}},"*");break}}})))},nt=({model:t,trustedHosts:e,callbacks:n})=>r=>{if(!tt(e,r))return;const{data:s}=r;if(s)switch(s.type){case"builder.configureSdk":{n.configureSdk(s.data);break}case"builder.triggerAnimation":{n.animation(s.data);break}case"builder.contentUpdate":{const o=s.data,i=o.key||o.alias||o.entry||o.modelName,u=o.data;i===t&&n.contentUpdate(u);break}}},Wt=(t,e,n)=>{if(!c)return d.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};et();const r=nt({callbacks:{contentUpdate:e,animation:()=>{},configureSdk:()=>{}},model:t,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},_t="builder.tests",C=t=>`${_t}.${t}`,$t=({contentId:t})=>z({name:C(t),canTrack:!0}),Gt=({contentId:t})=>G({name:C(t),canTrack:!0}),zt=({contentId:t,value:e})=>H({name:C(t),value:e,canTrack:!0}),rt=t=>p(t.id)&&p(t.variations)&&Object.keys(t.variations).length>0,Ht=({id:t,variations:e})=>{var s;let n=0;const r=Math.random();for(const o in e){const i=(s=e[o])==null?void 0:s.testRatio;if(n+=i,r<n)return o}return t},st=t=>{const e=Ht(t);return zt({contentId:t.id,value:e}).catch(n=>{d.error("could not store A/B test variation: ",n)}),e},ot=({item:t,testGroupId:e})=>{const n=t.variations[e];return e===t.id||!n?{testVariationId:t.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===t.id?"Default":"")}},Jt=({item:t,canTrack:e})=>{if(!e)return t;if(!t)return;if(!rt(t))return t;const n=Gt({contentId:t.id})||st({variations:t.variations,id:t.id}),r=ot({item:t,testGroupId:n});return{...t,...r}},Xt=async({item:t,canTrack:e})=>{if(!e||!rt(t))return t;const r=await $t({contentId:t.id})||st({variations:t.variations,id:t.id}),s=ot({item:t,testGroupId:r});return{...t,...s}},it=t=>p(t)?t:!0;function Qt(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:globalThis}function Yt(){const t=Qt().fetch;if(typeof t=="undefined")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
2
- For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return t}const Zt=Yt();function A(t,e=null,n="."){return Object.keys(t).reduce((r,s)=>{const o=t[s],i=[e,s].filter(Boolean).join(n);return[typeof o=="object",o!==null,!(Array.isArray(o)&&o.length===0)].every(Boolean)?{...r,...A(o,i,n)}:{...r,[i]:o}},{})}function at(t,e,n={}){for(const r in t){const s=t[r],o=e?e+"."+r:r;s&&typeof s=="object"&&!Array.isArray(s)&&!Object.keys(s).find(i=>i.startsWith("$"))?at(s,o,n):n[o]=s}return n}function qt(t){const e={};for(const n in t){const r=n.split(".");let s=e;for(let o=0;o<r.length;o++){const i=r[o];o===r.length-1?s[i]=t[n]:(s[i]=s[i]||{},s=s[i])}}return e}const te="v3",D=t=>typeof t=="number"&&!isNaN(t)&&t>=0,T=t=>{const{limit:e=30,userAttributes:n,query:r,model:s,apiKey:o,enrich:i,locale:u,apiVersion:S=te,fields:m,omit:k,offset:l,cacheSeconds:h,staleCacheSeconds:g,sort:b,includeUnpublished:x,apiHost:dt}=t;if(!o)throw new Error("Missing API key");if(!["v3"].includes(S))throw new Error(`Invalid apiVersion: expected 'v3', received '${S}'`);const ft=e!==1,ht=dt||"https://cdn.builder.io",a=new URL(`${ht}/api/${S}/content/${s}`);a.searchParams.set("apiKey",o),a.searchParams.set("limit",String(e)),a.searchParams.set("noTraverse",String(ft)),a.searchParams.set("includeRefs",String(!0));const E=u||(n==null?void 0:n.locale);let y=n||{};if(E&&(a.searchParams.set("locale",E),y={locale:E,...y}),i&&a.searchParams.set("enrich",String(i)),a.searchParams.set("omit",k||"meta.componentsUsed"),m&&a.searchParams.set("fields",m),Number.isFinite(l)&&l>-1&&a.searchParams.set("offset",String(Math.floor(l))),typeof x=="boolean"&&a.searchParams.set("includeUnpublished",String(x)),h&&D(h)&&a.searchParams.set("cacheSeconds",String(h)),g&&D(g)&&a.searchParams.set("staleCacheSeconds",String(g)),b){const f=A({sort:b});for(const v in f)a.searchParams.set(v,JSON.stringify(f[v]))}const B={...kt(),...M(t.options||{})};y={...y,...ne(B)};const R=A(B);for(const f in R)a.searchParams.set(f,String(R[f]));if(Object.keys(y).length>0&&a.searchParams.set("userAttributes",JSON.stringify(y)),r){const f=at({query:r});for(const v in f)a.searchParams.set(v,JSON.stringify(f[v]))}return a},ee=t=>{const e={};for(const n in t)n.startsWith("userAttributes.")&&(e[n]=t[n],delete t[n]);return e},ne=t=>{if(c()&&t.preview==="BUILDER_STUDIO"){t["userAttributes.urlPath"]=window.location.pathname,t["userAttributes.host"]=window.location.host;const e=ee(t),{userAttributes:n}=qt(e);return n}return{}},re=t=>"results"in t;async function ct(t){const e=await lt({...t,limit:1});return e&&e[0]||null}const se=async t=>{var i,u;const e=T(t),n=(i=t.fetch)!=null?i:Zt,r={...t.fetchOptions,headers:{...(u=t.fetchOptions)==null?void 0:u.headers,...$()}};return await(await n(e.href,r)).json()},ut=async(t,e,n=T(t))=>{const r=it(t.canTrack);if(n.search.includes("preview="),!r||!(c()||w==="reactNative"))return e.results;try{const s=[];for(const o of e.results)s.push(await Xt({item:o,canTrack:r}));e.results=s}catch(s){d.error("Could not process A/B tests. ",s)}return e.results};async function lt(t){const e=T(t),n=await se(t);if(!re(n))throw d.error("Error fetching data. ",{url:e,content:n,options:t}),n;return ut(t,n)}const oe=async t=>{var r,s,o;const e=t.path||((r=t.url)==null?void 0:r.pathname)||((s=t.userAttributes)==null?void 0:s.urlPath),n={...t,apiKey:t.apiKey,model:t.model||"page",userAttributes:{...t.userAttributes,...e?{urlPath:e}:{}},options:O(t.searchParams||((o=t.url)==null?void 0:o.searchParams)||t.options)};return{apiKey:n.apiKey,model:n.model,content:await ct(n)}};exports.TARGET=w;exports._processContentResult=ut;exports._track=q;exports.checkIsDefined=p;exports.createEditorListener=nt;exports.createRegisterComponentMessage=St;exports.fetchBuilderProps=oe;exports.fetchEntries=lt;exports.fetchOneEntry=ct;exports.getBuilderSearchParams=O;exports.getDefaultCanTrack=it;exports.getUserAttributes=j;exports.handleABTestingSync=Jt;exports.isBrowser=c;exports.isEditing=K;exports.isPreviewing=wt;exports.logFetch=Z;exports.logger=d;exports.register=W;exports.registerInsertMenu=jt;exports.serializeIncludingFunctions=P;exports.setEditorSettings=vt;exports.setupBrowserForEditing=et;exports.subscribeToEditor=Wt;exports.track=Nt;
@@ -1,30 +0,0 @@
1
- "use strict";const w=require("react/jsx-runtime"),q=require("react"),Ur=require("./blocks-exports.cjs"),F=require("./server-entry-3c7fa63a.cjs"),kn=require("./get-class-prop-name-58770197.cjs"),Cn=require("./dynamic-renderer-b29b45ca.cjs"),Fr=q.createContext({registeredComponents:{}}),Lr=(e,t,r)=>{const n=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((o,s)=>o!=null?o[s]:o,e);return n===void 0||n===e?r:n},Wr=({builder:e,context:t,event:r,state:n})=>Object.entries({state:n,Builder:e,builder:e,context:t,event:r}),jn=()=>({isEditing:F.isEditing(),isBrowser:F.isBrowser(),isServer:!F.isBrowser(),getUserAttributes:()=>F.getUserAttributes()}),On=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;function Dt({rootState:e,localState:t,rootSetState:r}){return new Proxy(e,{get:(n,o)=>{if(t&&o in t)return t[o];const s=n[o];return typeof s=="object"&&s!==null?Dt({rootState:s,localState:void 0,rootSetState:r?a=>{n[o]=a,r(n)}:void 0}):s},set:(n,o,s)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return n[o]=s,r==null||r(n),!0}})}const An=({code:e,builder:t,context:r,event:n,localState:o,rootSetState:s,rootState:a})=>{const f=Wr({builder:t,context:r,event:n,state:Dt({rootState:a,localState:o,rootSetState:s})});return new Function(...f.map(([d])=>d),e)(...f.map(([,d])=>d))};var R,In=function(e){function t(i){return 48>i?i===36:58>i?!0:65>i?!1:91>i?!0:97>i?i===95:123>i?!0:170<=i&&Sn.test(String.fromCharCode(i))}function r(i){return 65>i?i===36:91>i?!0:97>i?i===95:123>i?!0:170<=i&&Ir.test(String.fromCharCode(i))}function n(i,l){for(var u=g,p=1,E=0;;){tt.lastIndex=E;var _=tt.exec(u);if(_&&_.index<i)++p,E=_.index+_[0].length;else break}throw u={line:p,ab:i-E},l+=" ("+u.line+":"+u.ab+")",l=new SyntaxError(l),l.j=i,l.X=u,l.o=c,l}function o(i){i=i.split(" ");for(var l=Object.create(null),u=0;u<i.length;u++)l[i[u]]=!0;return function(p){return l[p]||!1}}function s(){this.line=ge,this.ab=c-ne}function a(i,l){ve=c,j.C&&(mt=new s),S=i,d(),Y=l,Pe=i.m}function f(){for(var i=c,l=j.va&&j.C&&new s,u=g.charCodeAt(c+=2);c<me&&u!==10&&u!==13&&u!==8232&&u!==8233;)++c,u=g.charCodeAt(c);j.va&&j.va(!1,g.slice(i+2,c),i,c,l,j.C&&new s)}function d(){for(;c<me;){var i=g.charCodeAt(c);if(i===32)++c;else if(i===13)++c,i=g.charCodeAt(c),i===10&&++c,j.C&&(++ge,ne=c);else if(i===10||i===8232||i===8233)++c,j.C&&(++ge,ne=c);else if(8<i&&14>i)++c;else if(i===47)if(i=g.charCodeAt(c+1),i===42){i=void 0;var l=j.va&&j.C&&new s,u=c,p=g.indexOf("*/",c+=2);if(p===-1&&n(c-2,"Unterminated comment"),c=p+2,j.C)for(tt.lastIndex=u;(i=tt.exec(g))&&i.index<c;)++ge,ne=i.index+i[0].length;j.va&&j.va(!0,g.slice(u+2,p),u,c,l,j.C&&new s)}else if(i===47)f();else break;else if(i===160)++c;else if(5760<=i&&wn.test(String.fromCharCode(i)))++c;else break}}function v(i){switch(i){case 46:i=g.charCodeAt(c+1),48<=i&&57>=i?A(!0):(++c,a(wr));return;case 40:return++c,a(oe);case 41:return++c,a(Q);case 59:return++c,a(ie);case 44:return++c,a(pe);case 91:return++c,a(At);case 93:return++c,a(It);case 123:return++c,a(be);case 125:return++c,a(we);case 58:return++c,a(Be);case 63:return++c,a(Sr);case 48:if(i=g.charCodeAt(c+1),i===120||i===88){c+=2,i=$(16),i===null&&n(D+2,"Expected hexadecimal number"),r(g.charCodeAt(c))&&n(c,"Identifier directly after number"),a(Ne,i);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return A(!1);case 34:case 39:c++;for(var l="";;){c>=me&&n(D,"Unterminated string constant");var u=g.charCodeAt(c);if(u===i){++c,a(Ze,l);break}if(u===92){u=g.charCodeAt(++c);var p=/^[0-7]+/.exec(g.slice(c,c+3));for(p&&(p=p[0]);p&&255<parseInt(p,8);)p=p.slice(0,-1);if(p==="0"&&(p=null),++c,p)J&&n(c-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(p,8)),c+=p.length-1;else switch(u){case 110:l+=`
2
- `;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(O(2));break;case 117:l+=String.fromCharCode(O(4));break;case 85:l+=String.fromCharCode(O(8));break;case 116:l+=" ";break;case 98:l+="\b";break;case 118:l+="\v";break;case 102:l+="\f";break;case 48:l+="\0";break;case 13:g.charCodeAt(c)===10&&++c;case 10:j.C&&(ne=c,++ge);break;default:l+=String.fromCharCode(u)}}else u!==13&&u!==10&&u!==8232&&u!==8233||n(D,"Unterminated string constant"),l+=String.fromCharCode(u),++c}return;case 47:i=g.charCodeAt(c+1),Pe?(++c,K()):i===61?P(ye,2):P(Er,1);return;case 37:case 42:g.charCodeAt(c+1)===61?P(ye,2):P(mn,1);return;case 124:case 38:l=g.charCodeAt(c+1),l===i?P(i===124?jr:Or,2):l===61?P(ye,2):P(i===124?cn:pn,1);return;case 94:g.charCodeAt(c+1)===61?P(ye,2):P(fn,1);return;case 43:case 45:l=g.charCodeAt(c+1),l===i?l===45&&g.charCodeAt(c+2)===62&&et.test(g.slice(fe,c))?(c+=3,f(),d(),I()):P(un,2):l===61?P(ye,2):P(yn,1);return;case 60:case 62:l=g.charCodeAt(c+1),u=1,l===i?(u=i===62&&g.charCodeAt(c+2)===62?3:2,g.charCodeAt(c+u)===61?P(ye,u+1):P(gn,u)):l===33&&i===60&&g.charCodeAt(c+2)===45&&g.charCodeAt(c+3)===45?(c+=4,f(),d(),I()):(l===61&&(u=g.charCodeAt(c+2)===61?3:2),P(dn,u));return;case 61:case 33:g.charCodeAt(c+1)===61?P(hn,g.charCodeAt(c+2)===61?3:2):P(i===61?kr:Cr,1);return;case 126:return P(Cr,1)}return!1}function I(i){if(i?c=D+1:D=c,j.C&&(yt=new s),i)return K();if(c>=me)return a(wt);if(i=g.charCodeAt(c),r(i)||i===92)return V();if(v(i)===!1){if(i=String.fromCharCode(i),i==="\\"||Ir.test(i))return V();n(c,"Unexpected character '"+i+"'")}}function P(i,l){var u=g.slice(c,c+l);c+=l,a(i,u)}function K(){for(var i,l,u=c;;){c>=me&&n(u,"Unterminated regexp");var p=g.charAt(c);if(et.test(p)&&n(u,"Unterminated regexp"),i)i=!1;else{if(p==="[")l=!0;else if(p==="]"&&l)l=!1;else if(p==="/"&&!l)break;i=p==="\\"}++c}i=g.slice(u,c),++c,(l=b())&&!/^[gmi]*$/.test(l)&&n(u,"Invalid regexp flag");try{var E=new RegExp(i,l)}catch(_){throw _ instanceof SyntaxError&&n(u,_.message),_}a(tr,E)}function $(i,l){for(var u=c,p=0,E=l===void 0?1/0:l,_=0;_<E;++_){var X=g.charCodeAt(c);if(X=97<=X?X-97+10:65<=X?X-65+10:48<=X&&57>=X?X-48:1/0,X>=i)break;++c,p=p*i+X}return c===u||l!==void 0&&c-u!==l?null:p}function A(i){var l=c,u=!1,p=g.charCodeAt(c)===48;i||$(10)!==null||n(l,"Invalid number"),g.charCodeAt(c)===46&&(++c,$(10),u=!0),i=g.charCodeAt(c),(i===69||i===101)&&(i=g.charCodeAt(++c),i!==43&&i!==45||++c,$(10)===null&&n(l,"Invalid number"),u=!0),r(g.charCodeAt(c))&&n(c,"Identifier directly after number"),i=g.slice(l,c);var E;u?E=parseFloat(i):p&&i.length!==1?/[89]/.test(i)||J?n(l,"Invalid number"):E=parseInt(i,8):E=parseInt(i,10),a(Ne,E)}function O(i){return i=$(16,i),i===null&&n(D,"Bad character escape sequence"),i}function b(){Se=!1;for(var i,l=!0,u=c;;){var p=g.charCodeAt(c);if(t(p))Se&&(i+=g.charAt(c)),++c;else if(p===92){Se||(i=g.slice(u,c)),Se=!0,g.charCodeAt(++c)!==117&&n(c,"Expecting Unicode escape sequence \\uXXXX"),++c,p=O(4);var E=String.fromCharCode(p);E||n(c-1,"Invalid Unicode escape"),(l?r(p):t(p))||n(c-4,"Invalid Unicode escape"),i+=E}else break;l=!1}return Se?i:g.slice(u,c)}function V(){var i=b(),l=xe;!Se&&xn(i)&&(l=ln[i]),a(l,i)}function C(){vt=D,fe=ve,xt=mt,I()}function ee(i){if(J=i,c=D,j.C)for(;c<ne;)ne=g.lastIndexOf(`
3
- `,ne-2)+1,--ge;d(),I()}function Yt(){this.type=null,this.start=D,this.end=null}function Zt(){this.start=yt,this.end=null,gt&&(this.source=gt)}function L(){var i=new Yt;return j.C&&(i.X=new Zt),j.vb&&(i.sourceFile=j.vb),j.Xa&&(i.j=[D,0]),i}function ce(i){var l=new Yt;return l.start=i.start,j.C&&(l.X=new Zt,l.X.start=i.X.start),j.Xa&&(l.j=[i.j[0],0]),l}function k(i,l){return i.type=l,i.end=fe,j.C&&(i.X.end=xt),j.Xa&&(i.j[1]=fe),i}function lt(i){return i.type==="ExpressionStatement"&&i.la.type==="Literal"&&i.la.value==="use strict"}function N(i){return S===i?(C(),!0):!1}function Je(){return!j.fc&&(S===wt||S===we||et.test(g.slice(fe,D)))}function de(){N(ie)||Je()||te()}function B(i){S===i?C():te()}function te(){n(D,"Unexpected token")}function Ke(i){i.type!=="Identifier"&&i.type!=="MemberExpression"&&n(i.start,"Assigning to rvalue"),J&&i.type==="Identifier"&&Qe(i.name)&&n(i.start,"Assigning to "+i.name+" in strict mode")}function Z(){(S===Er||S===ye&&Y==="/=")&&I(!0);var i=S,l=L();switch(i){case St:case nr:C();var u=i===St;N(ie)||Je()?l.label=null:S!==xe?te():(l.label=re(),de());for(var p=0;p<M.length;++p){var E=M[p];if((l.label===null||E.name===l.label.name)&&(E.kind!==null&&(u||E.kind==="loop")||l.label&&u))break}return p===M.length&&n(l.start,"Unsyntactic "+i.l),k(l,u?"BreakStatement":"ContinueStatement");case or:return C(),de(),k(l,"DebuggerStatement");case sr:return C(),M.push(Tt),l.body=Z(),M.pop(),B(Ot),l.test=Ae(),de(),k(l,"DoWhileStatement");case ur:return C(),M.push(Tt),B(oe),S===ie?ut(l,null):S===jt?(i=L(),C(),Qt(i,!0),k(i,"VariableDeclaration"),i.fa.length===1&&N(qe)?qt(l,i):ut(l,i)):(i=G(!1,!0),N(qe)?(Ke(i),qt(l,i)):ut(l,i));case kt:return C(),ht(l,!0);case cr:return C(),l.test=Ae(),l.da=Z(),l.alternate=N(ar)?Z():null,k(l,"IfStatement");case fr:return Re||j.Ib||n(D,"'return' outside of function"),C(),N(ie)||Je()?l.K=null:(l.K=G(),de()),k(l,"ReturnStatement");case Ct:for(C(),l.Qb=Ae(),l.tb=[],B(be),M.push(En);S!==we;)S===Et||S===ir?(i=S===Et,p&&k(p,"SwitchCase"),l.tb.push(p=L()),p.da=[],C(),i?p.test=G():(u&&n(vt,"Multiple default clauses"),u=!0,p.test=null),B(Be)):(p||te(),p.da.push(Z()));return p&&k(p,"SwitchCase"),C(),M.pop(),k(l,"SwitchStatement");case pr:return C(),et.test(g.slice(fe,D))&&n(fe,"Illegal newline after throw"),l.K=G(),de(),k(l,"ThrowStatement");case hr:return C(),l.block=Ie(),l.Ea=null,S===rr&&(i=L(),C(),B(oe),i.Ua=re(),J&&Qe(i.Ua.name)&&n(i.Ua.start,"Binding "+i.Ua.name+" in strict mode"),B(Q),i.body=Ie(),l.Ea=k(i,"CatchClause")),l.fb=N(lr)?Ie():null,l.Ea||l.fb||n(l.start,"Missing catch or finally clause"),k(l,"TryStatement");case jt:return C(),Qt(l),de(),k(l,"VariableDeclaration");case Ot:return C(),l.test=Ae(),M.push(Tt),l.body=Z(),M.pop(),k(l,"WhileStatement");case dr:return J&&n(D,"'with' in strict mode"),C(),l.object=Ae(),l.body=Z(),k(l,"WithStatement");case be:return Ie();case ie:return C(),k(l,"EmptyStatement");default:if(u=Y,E=G(),i===xe&&E.type==="Identifier"&&N(Be)){for(p=0;p<M.length;++p)M[p].name===u&&n(E.start,"Label '"+u+"' is already declared");return M.push({name:u,kind:S.W?"loop":S===Ct?"switch":null}),l.body=Z(),M.pop(),l.label=E,k(l,"LabeledStatement")}return l.la=E,de(),k(l,"ExpressionStatement")}}function Ae(){B(oe);var i=G();return B(Q),i}function Ie(i){var l=L(),u=!0,p=!1;for(l.body=[],B(be);!N(we);){var E=Z();if(l.body.push(E),u&&i&&lt(E)){var _=p;ee(p=!0)}u=!1}return p&&!_&&ee(!1),k(l,"BlockStatement")}function ut(i,l){return i.ua=l,B(ie),i.test=S===ie?null:G(),B(ie),i.update=S===Q?null:G(),B(Q),i.body=Z(),M.pop(),k(i,"ForStatement")}function qt(i,l){return i.left=l,i.right=G(),B(Q),i.body=Z(),M.pop(),k(i,"ForInStatement")}function Qt(i,l){for(i.fa=[],i.kind="var";;){var u=L();if(u.id=re(),J&&Qe(u.id.name)&&n(u.id.start,"Binding "+u.id.name+" in strict mode"),u.ua=N(kr)?G(!0,l):null,i.fa.push(k(u,"VariableDeclarator")),!N(pe))break}}function G(i,l){var u=ct(l);if(!i&&S===pe){for(i=ce(u),i.xb=[u];N(pe);)i.xb.push(ct(l));return k(i,"SequenceExpression")}return u}function ct(i){var l=ft(pt(),-1,i);if(N(Sr)){var u=ce(l);u.test=l,u.da=G(!0),B(Be),u.alternate=G(!0,i),l=k(u,"ConditionalExpression")}return S.Cb?(u=ce(l),u.operator=Y,u.left=l,C(),u.right=ct(i),Ke(l),k(u,"AssignmentExpression")):l}function ft(i,l,u){var p=S.L;if(p!==null&&(!u||S!==qe)&&p>l){var E=ce(i);return E.left=i,E.operator=Y,i=S,C(),E.right=ft(pt(),p,u),p=k(E,i===jr||i===Or?"LogicalExpression":"BinaryExpression"),ft(p,l,u)}return i}function pt(){if(S.prefix){var i=L(),l=S.$b;return i.operator=Y,Pe=i.prefix=!0,C(),i.K=pt(),l?Ke(i.K):J&&i.operator==="delete"&&i.K.type==="Identifier"&&n(i.start,"Deleting local variable in strict mode"),k(i,l?"UpdateExpression":"UnaryExpression")}for(l=Te(Ye());S.cc&&!Je();)i=ce(l),i.operator=Y,i.prefix=!1,i.K=l,Ke(l),C(),l=k(i,"UpdateExpression");return l}function Te(i,l){if(N(wr)){var u=ce(i);return u.object=i,u.Wa=re(!0),u.bb=!1,Te(k(u,"MemberExpression"),l)}return N(At)?(u=ce(i),u.object=i,u.Wa=G(),u.bb=!0,B(It),Te(k(u,"MemberExpression"),l)):!l&&N(oe)?(u=ce(i),u.callee=i,u.arguments=dt(Q,!1),Te(k(u,"CallExpression"),l)):i}function Ye(){switch(S){case yr:var i=L();return C(),k(i,"ThisExpression");case xe:return re();case Ne:case Ze:case tr:return i=L(),i.value=Y,i.raw=g.slice(D,ve),C(),k(i,"Literal");case mr:case vr:case xr:return i=L(),i.value=S.$a,i.raw=S.l,C(),k(i,"Literal");case oe:i=yt;var l=D;C();var u=G();return u.start=l,u.end=ve,j.C&&(u.X.start=i,u.X.end=mt),j.Xa&&(u.j=[l,ve]),B(Q),u;case At:return i=L(),C(),i.elements=dt(It,!0,!0),k(i,"ArrayExpression");case be:for(i=L(),l=!0,u=!1,i.h=[],C();!N(we);){if(l)l=!1;else if(B(pe),j.sb&&N(we))break;var p={key:S===Ne||S===Ze?Ye():re(!0)},E=!1;if(N(Be)){p.value=G(!0);var _=p.kind="init"}else p.key.type!=="Identifier"||p.key.name!=="get"&&p.key.name!=="set"?te():(E=u=!0,_=p.kind=p.key.name,p.key=S===Ne||S===Ze?Ye():re(!0),S!==oe&&te(),p.value=ht(L(),!1));if(p.key.type==="Identifier"&&(J||u))for(var X=0;X<i.h.length;++X){var Ee=i.h[X];if(Ee.key.name===p.key.name){var Pt=_===Ee.kind||E&&Ee.kind==="init"||_==="init"&&(Ee.kind==="get"||Ee.kind==="set");Pt&&!J&&_==="init"&&Ee.kind==="init"&&(Pt=!1),Pt&&n(p.key.start,"Redefinition of property")}}i.h.push(p)}return k(i,"ObjectExpression");case kt:return i=L(),C(),ht(i,!1);case gr:return i=L(),C(),i.callee=Te(Ye(),!0),i.arguments=N(oe)?dt(Q,!1):an,k(i,"NewExpression")}te()}function ht(i,l){S===xe?i.id=re():l?te():i.id=null,i.oa=[];var u=!0;for(B(oe);!N(Q);)u?u=!1:B(pe),i.oa.push(re());u=Re;var p=M;if(Re=!0,M=[],i.body=Ie(!0),Re=u,M=p,J||i.body.body.length&&lt(i.body.body[0])){for(u=i.id?-1:0;u<i.oa.length;++u)if(p=0>u?i.id:i.oa[u],(Ar(p.name)||Qe(p.name))&&n(p.start,"Defining '"+p.name+"' in strict mode"),0<=u)for(var E=0;E<u;++E)p.name===i.oa[E].name&&n(p.start,"Argument name clash in strict mode")}return k(i,l?"FunctionDeclaration":"FunctionExpression")}function dt(i,l,u){for(var p=[],E=!0;!N(i);){if(E)E=!1;else if(B(pe),l&&j.sb&&N(i))break;p.push(u&&S===pe?null:G(!0))}return p}function re(i){var l=L();return i&&j.yb==="everywhere"&&(i=!1),S===xe?(!i&&(j.yb&&vn(Y)||J&&Ar(Y))&&g.slice(D,ve).indexOf("\\")===-1&&n(D,"The keyword '"+Y+"' is reserved"),l.name=Y):i&&S.l?l.name=S.l:te(),Pe=!1,C(),k(l,"Identifier")}e.version="0.5.0";var j,g="",me,gt;e.parse=function(i,l){g=String(i),me=g.length,j=l||{};for(var u in er)Object.prototype.hasOwnProperty.call(j,u)||(j[u]=er[u]);for(gt=j.sourceFile,ge=1,c=ne=0,Pe=!0,d(),u=j.dc,vt=fe=c,j.C&&(xt=new s),Re=J=!1,M=[],I(),i=u||L(),l=!0,u||(i.body=[]);S!==wt;)u=Z(),i.body.push(u),l&&lt(u)&&ee(!0),l=!1;return k(i,"Program")};var er={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},c=0,D=0,ve=0,yt,mt,S,Y,Pe,ge,ne,vt=0,fe=0,xt,Re,M,J,an=[],Ne={type:"num"},tr={type:"regexp"},Ze={type:"string"},xe={type:"name"},wt={type:"eof"},St={l:"break"},Et={l:"case",m:!0},rr={l:"catch"},nr={l:"continue"},or={l:"debugger"},ir={l:"default"},sr={l:"do",W:!0},ar={l:"else",m:!0},lr={l:"finally"},ur={l:"for",W:!0},kt={l:"function"},cr={l:"if"},fr={l:"return",m:!0},Ct={l:"switch"},pr={l:"throw",m:!0},hr={l:"try"},jt={l:"var"},Ot={l:"while",W:!0},dr={l:"with"},gr={l:"new",m:!0},yr={l:"this"},mr={l:"null",$a:null},vr={l:"true",$a:!0},xr={l:"false",$a:!1},qe={l:"in",L:7,m:!0},ln={break:St,case:Et,catch:rr,continue:nr,debugger:or,default:ir,do:sr,else:ar,finally:lr,for:ur,function:kt,if:cr,return:fr,switch:Ct,throw:pr,try:hr,var:jt,while:Ot,with:dr,null:mr,true:vr,false:xr,new:gr,in:qe,instanceof:{l:"instanceof",L:7,m:!0},this:yr,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},At={type:"[",m:!0},It={type:"]"},be={type:"{",m:!0},we={type:"}"},oe={type:"(",m:!0},Q={type:")"},pe={type:",",m:!0},ie={type:";",m:!0},Be={type:":",m:!0},wr={type:"."},Sr={type:"?",m:!0},Er={L:10,m:!0},kr={Cb:!0,m:!0},ye={Cb:!0,m:!0},un={cc:!0,prefix:!0,$b:!0},Cr={prefix:!0,m:!0},jr={L:1,m:!0},Or={L:2,m:!0},cn={L:3,m:!0},fn={L:4,m:!0},pn={L:5,m:!0},hn={L:6,m:!0},dn={L:7,m:!0},gn={L:8,m:!0},yn={L:9,prefix:!0,m:!0},mn={L:10,m:!0},vn=o("class enum extends super const export import"),Ar=o("implements interface let package private protected public static yield"),Qe=o("eval arguments"),xn=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"),wn=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ir=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),Sn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),et=/[\n\r\u2028\u2029]/,tt=/\r\n|[\n\r\u2028\u2029]/g,Se,Tt={kind:"loop"},En={kind:"switch"}},Nt=Nt=typeof globalThis=="undefined"?void 0:globalThis;In(Nt.j||(Nt.j={}));function h(e,t){typeof e=="string"&&(e=Ce(e,"code"));var r=e.constructor;this.ya=function(){return new r({options:{}})};var n=this.ya(),o;for(o in e)n[o]=o==="body"?e[o].slice():e[o];this.ra=n,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var s,a;for(a in this)typeof this[a]=="function"&&(s=a.match(e))&&(this.rb[s[1]]=this[a].bind(this));this.N=Bt(this,this.ra,null),this.Na=this.N.object,this.ra=Ce(this.ba.join(`
4
- `),"polyfills"),this.ba=void 0,ot(this.ra),s=new m(this.ra,this.N),s.done=!1,this.o=[s],this.Eb(),this.value=void 0,this.ra=n,s=new m(this.ra,this.N),s.done=!1,this.o.length=0,this.o[0]=s}var Tr={C:!0,kc:5},_t={configurable:!0,enumerable:!0,writable:!1},y={configurable:!0,enumerable:!1,writable:!0},z={configurable:!0,enumerable:!1,writable:!1},Me={configurable:!1,enumerable:!1,writable:!1},Pr={configurable:!1,enumerable:!0,writable:!0},Gr={STEP_ERROR:!0},Oe={SCOPE_REFERENCE:!0},$e={VALUE_IN_DESCRIPTOR:!0},ke={REGEXP_TIMEOUT:!0},Rr=[],ae=null,Le=null,he=typeof globalThis=="undefined"?void 0:globalThis,Tn=["onmessage = function(e) {","var result;","var data = e.data;","switch (data[0]) {","case 'split':","result = data[1].split(data[2], data[3]);","break;","case 'match':","result = data[1].match(data[2]);","break;","case 'search':","result = data[1].search(data[2]);","break;","case 'replace':","result = data[1].replace(data[2], data[3]);","break;","case 'exec':","var regexp = data[1];","regexp.lastIndex = data[2];","result = [regexp.exec(data[3]), data[1].lastIndex];","break;","default:","throw Error('Unknown RegExp operation: ' + data[0]);","}","postMessage(result);","close();","};"];function Ut(e){var t=e>>>0;return t===Number(e)?t:NaN}function We(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function ot(e,t,r){t?e.start=t:delete e.start,r?e.end=r:delete e.end;for(var n in e)if(n!=="loc"&&e.hasOwnProperty(n)){var o=e[n];o&&typeof o=="object"&&ot(o,t,r)}}h.prototype.REGEXP_MODE=2;h.prototype.REGEXP_THREAD_TIMEOUT=1e3;h.prototype.POLYFILL_TIMEOUT=1e3;R=h.prototype;R.P=!1;R.Ka=!1;R.Kb=0;R.ic=0;function Ce(e,t){var r={},n;for(n in Tr)r[n]=Tr[n];return r.sourceFile=t,he.j.parse(e,r)}R.Jb=function(e){var t=this.o[0];if(!t||t.node.type!=="Program")throw Error("Expecting original AST to start with a Program node");if(typeof e=="string"&&(e=Ce(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Ve(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};R.lb=function(){var e=this.o,t;do{var r=e[e.length-1];if(this.za)break;if(!r||r.node.type==="Program"&&r.done){if(!this.ca.length)return!1;if(r=this.ca[0],!r||r.time>Date.now())r=null;else{this.ca.shift(),0<=r.interval&&Xr(this,r,r.interval);var n=new m(r.node,r.scope);r.zb&&(n.ia=2,n.B=this.Na,n.U=r.zb,n.Qa=!0,n.F=r.Lb),r=n}if(!r)break}n=r.node;var o=Le;Le=this;try{var s=this.rb[n.type](e,r,n)}catch(a){if(a!==Gr)throw this.value!==a&&(this.value=void 0),a}finally{Le=o}if(s&&e.push(s),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||n.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!n.end&&t>Date.now());return!0};R.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Pn(e,t){e.g(t,"NaN",NaN,Me),e.g(t,"Infinity",1/0,Me),e.g(t,"undefined",void 0,Me),e.g(t,"window",t,_t),e.g(t,"this",t,Me),e.g(t,"self",t),e.M=new T(null),e.Z=new T(e.M),Rn(e,t),Nn(e,t),t.xa=e.M,e.g(t,"constructor",e.v,y),bn(e,t),Bn(e,t),Mn(e,t),Dn(e,t),_n(e,t),Un(e,t),Fn(e,t),Ln(e,t),Wn(e,t);var r=e.i(function(){throw EvalError("Can't happen")},!1);r.eval=!0,e.g(t,"eval",r,y),e.g(t,"parseInt",e.i(parseInt,!1),y),e.g(t,"parseFloat",e.i(parseFloat,!1),y),e.g(t,"isNaN",e.i(isNaN,!1),y),e.g(t,"isFinite",e.i(isFinite,!1),y);for(var n=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<n.length;o++)r=function(s){return function(a){try{return s(a)}catch(f){x(e,e.Gb,f.message)}}}(n[o][0]),e.g(t,n[o][1],e.i(r,!1),y);r=function(s){return Nr(e,!1,arguments)},e.g(t,"setTimeout",e.i(r,!1),y),r=function(s){return Nr(e,!0,arguments)},e.g(t,"setInterval",e.i(r,!1),y),r=function(s){br(e,s)},e.g(t,"clearTimeout",e.i(r,!1),y),r=function(s){br(e,s)},e.g(t,"clearInterval",e.i(r,!1),y),e.OBJECT=e.v,e.OBJECT_PROTO=e.M,e.FUNCTION=e.O,e.FUNCTION_PROTO=e.Z,e.ARRAY=e.qa,e.ARRAY_PROTO=e.La,e.REGEXP=e.I,e.REGEXP_PROTO=e.Ma,e.DATE=e.$,e.DATE_PROTO=e.nb,e.qb&&e.qb(e,t)}R.Wb=0;function Rn(e,t){var r=/^[A-Za-z_$][\w$]*$/,n=function(o){var s=arguments.length?String(arguments[arguments.length-1]):"",a=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(a){a=a.split(/\s*,\s*/);for(var f=0;f<a.length;f++){var d=a[f];r.test(d)||x(e,e.T,"Invalid function argument: "+d)}a=a.join(", ")}try{var v=Ce("(function("+a+") {"+s+"})","function"+e.Wb++)}catch(I){x(e,e.T,"Invalid code: "+I.message)}return v.body.length!==1&&x(e,e.T,"Invalid code in function body"),Wt(e,v.body[0].la,e.N,"anonymous")};e.O=e.i(n,!0),e.g(t,"Function",e.O,y),e.g(e.O,"prototype",e.Z,y),e.g(e.Z,"constructor",e.O,y),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,z),e.Z.H="Function",n=function(o,s){var a=e.o[e.o.length-1];a.U=this,a.B=o,a.F=[],s!=null&&(s instanceof T?a.F=$r(e,s):x(e,e.j,"CreateListFromArrayLike called on non-object")),a.eb=!1},U(e,e.O,"apply",n),n=function(o){var s=e.o[e.o.length-1];s.U=this,s.B=o,s.F=[];for(var a=1;a<arguments.length;a++)s.F.push(arguments[a]);s.eb=!1},U(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(){return String(this)},U(e,e.O,"toString",n),e.g(e.O,"toString",e.i(n,!1),y),n=function(){return this.valueOf()},U(e,e.O,"valueOf",n),e.g(e.O,"valueOf",e.i(n,!1),y)}function Nn(e,t){function r(o){o!=null||x(e,e.j,"Cannot convert '"+o+"' to object")}var n=function(o){if(o==null)return ue(e)?this:e.s(e.M);if(!(o instanceof T)){var s=e.s(le(e,o));return s.data=o,s}return o};e.v=e.i(n,!0),e.g(e.v,"prototype",e.M,y),e.g(e.M,"constructor",e.v,y),e.g(t,"Object",e.v,y),n=function(o){return r(o),se(e,Object.getOwnPropertyNames(o instanceof T?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(n,!1),y),n=function(o){return r(o),o instanceof T&&(o=o.h),se(e,Object.keys(o))},e.g(e.v,"keys",e.i(n,!1),y),n=function(o){return o===null?e.s(null):(o instanceof T||x(e,e.j,"Object prototype may only be an Object or null, not "+o),e.s(o))},e.g(e.v,"create",e.i(n,!1),y),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,s,a){return s=String(s),o instanceof T||x(e,e.j,"Object.defineProperty called on non-object: "+o),a instanceof T||x(e,e.j,"Property description must be an object"),!o.preventExtensions||s in o.h||x(e,e.j,"Can't define property '"+s+"', object is not extensible"),e.g(o,s,$e,a.h),o},e.g(e.v,"defineProperty",e.i(n,!1),y),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,s){if(o instanceof T||x(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),s=String(s),s in o.h){var a=Object.getOwnPropertyDescriptor(o.h,s),f=o.V[s];return o=o.Y[s],s=e.s(e.M),f||o?(e.g(s,"get",f),e.g(s,"set",o)):(e.g(s,"value",a.value),e.g(s,"writable",a.writable)),e.g(s,"configurable",a.configurable),e.g(s,"enumerable",a.enumerable),s}},e.g(e.v,"getOwnPropertyDescriptor",e.i(n,!1),y),n=function(o){return r(o),le(e,o)},e.g(e.v,"getPrototypeOf",e.i(n,!1),y),n=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(n,!1),y),n=function(o){return o instanceof T&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(n,!1),y),U(e,e.v,"toString",T.prototype.toString),U(e,e.v,"toLocaleString",T.prototype.toString),U(e,e.v,"valueOf",T.prototype.valueOf),n=function(o){return r(this),this instanceof T?String(o)in this.h:this.hasOwnProperty(o)},U(e,e.v,"hasOwnProperty",n),n=function(o){return r(this),this instanceof T?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},U(e,e.v,"propertyIsEnumerable",n),n=function(o){for(;;){if(o=le(e,o),!o)return!1;if(o===this)return!0}},U(e,e.v,"isPrototypeOf",n)}function bn(e,t){var r=function(n){var o=ue(e)?this:je(e),s=arguments[0];if(arguments.length===1&&typeof s=="number")isNaN(Ut(s))&&x(e,e.ob,"Invalid array length: "+s),o.h.length=s;else{for(s=0;s<arguments.length;s++)o.h[s]=arguments[s];o.h.length=s}return o};e.qa=e.i(r,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,y),r=function(n){return n&&n.H==="Array"},e.g(e.qa,"isArray",e.i(r,!1),y),e.g(e.La,"length",0,{configurable:!1,enumerable:!1,writable:!0}),e.La.H="Array",e.ba.push("(function() {","function createArrayMethod_(f) {","Object.defineProperty(Array.prototype, f.name,","{configurable: true, writable: true, value: f});","}","createArrayMethod_(","function pop() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","len--;","var x = o[len];","delete o[len];","o.length = len;","return x;","}",");","createArrayMethod_(","function push(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","for (var i = 0; i < arguments.length; i++) {","o[len] = arguments[i];","len++;","}","o.length = len;","return len;","}",");","createArrayMethod_(","function shift() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","var value = o[0];","for (var i = 0; i < len - 1; i++) {","if ((i + 1) in o) {","o[i] = o[i + 1];","} else {","delete o[i];","}","}","delete o[i];","o.length = len - 1;","return value;","}",");","createArrayMethod_(","function unshift(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","len = 0;","}","for (var i = len - 1; i >= 0; i--) {","if (i in o) {","o[i + arguments.length] = o[i];","} else {","delete o[i + arguments.length];","}","}","for (var i = 0; i < arguments.length; i++) {","o[i] = arguments[i];","}","return (o.length = len + arguments.length);","}",");","createArrayMethod_(","function reverse() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 2) {","return o;","}","for (var i = 0; i < len / 2 - 0.5; i++) {","var x = o[i];","var hasX = i in o;","if ((len - i - 1) in o) {","o[i] = o[len - i - 1];","} else {","delete o[i];","}","if (hasX) {","o[len - i - 1] = x;","} else {","delete o[len - i - 1];","}","}","return o;","}",");","createArrayMethod_(","function indexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var n = fromIndex | 0;","if (!len || n >= len) {","return -1;","}","var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","while (i < len) {","if (i in o && o[i] === searchElement) {","return i;","}","i++;","}","return -1;","}",");","createArrayMethod_(","function lastIndexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len) {","return -1;","}","var n = len - 1;","if (arguments.length > 1) {","n = fromIndex | 0;","if (n) {","n = (n > 0 || -1) * Math.floor(Math.abs(n));","}","}","var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);","while (i >= 0) {","if (i in o && o[i] === searchElement) {","return i;","}","i--;","}","return -1;","}",");","createArrayMethod_(","function slice(start, end) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","start = (start >= 0) ? start : Math.max(0, len + start);","if (typeof end !== 'undefined') {","if (end !== Infinity) {","end |= 0;","}","if (end < 0) {","end = len + end;","} else {","end = Math.min(end, len);","}","} else {","end = len;","}","var size = end - start;","var cloned = new Array(size);","for (var i = 0; i < size; i++) {","if ((start + i) in o) {","cloned[i] = o[start + i];","}","}","return cloned;","}",");","createArrayMethod_(","function splice(start, deleteCount, var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","if (start < 0) {","start = Math.max(len + start, 0);","} else {","start = Math.min(start, len);","}","if (arguments.length < 1) {","deleteCount = len - start;","} else {","deleteCount |= 0;","deleteCount = Math.max(0, Math.min(deleteCount, len - start));","}","var removed = [];","for (var i = start; i < start + deleteCount; i++) {","if (i in o) {","removed.push(o[i]);","} else {","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(',');","}",");","})();","")}function Bn(e,t){var r=function(n){return n=arguments.length?he.String(n):"",ue(e)?(this.data=n,this):n};for(e.J=e.i(r,!0),e.g(t,"String",e.J,y),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),y),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),r=0;r<t.length;r++)U(e,e.J,t[r],String.prototype[t[r]]);r=function(n,o,s){o=e.R(o),s=e.R(s);try{return String(this).localeCompare(n,o,s)}catch(a){x(e,e.D,"localeCompare: "+a.message)}},U(e,e.J,"localeCompare",r),r=function(n,o,s){var a=String(this);if(o=o?Number(o):void 0,W(e,n,e.I)&&(n=n.data,_e(e,n,s),e.REGEXP_MODE===2)){if(ae)n=De(e,"string.split(separator, limit)",{string:a,separator:n,limit:o},n,s),n!==ke&&s(se(e,n));else{var f=e.ha(),d=Ue(e,n,f,s);f.onmessage=function(v){clearTimeout(d),s(se(e,v.data))},f.postMessage(["split",a,n,o])}return}n=a.split(n,o),s(se(e,n))},Fe(e,e.J,"split",r),r=function(n,o){var s=String(this);if(n=W(e,n,e.I)?n.data:new RegExp(n),_e(e,n,o),e.REGEXP_MODE===2)if(ae)n=De(e,"string.match(regexp)",{string:s,regexp:n},n,o),n!==ke&&o(n&&se(e,n));else{var a=e.ha(),f=Ue(e,n,a,o);a.onmessage=function(d){clearTimeout(f),o(d.data&&se(e,d.data))},a.postMessage(["match",s,n])}else n=s.match(n),o(n&&se(e,n))},Fe(e,e.J,"match",r),r=function(n,o){var s=String(this);if(W(e,n,e.I)?n=n.data:n=new RegExp(n),_e(e,n,o),e.REGEXP_MODE===2)if(ae)n=De(e,"string.search(regexp)",{string:s,regexp:n},n,o),n!==ke&&o(n);else{var a=e.ha(),f=Ue(e,n,a,o);a.onmessage=function(d){clearTimeout(f),o(d.data)},a.postMessage(["search",s,n])}else o(s.search(n))},Fe(e,e.J,"search",r),r=function(n,o,s){var a=String(this);if(o=String(o),W(e,n,e.I)&&(n=n.data,_e(e,n,s),e.REGEXP_MODE===2)){if(ae)n=De(e,"string.replace(substr, newSubstr)",{string:a,substr:n,newSubstr:o},n,s),n!==ke&&s(n);else{var f=e.ha(),d=Ue(e,n,f,s);f.onmessage=function(v){clearTimeout(d),s(v.data)},f.postMessage(["replace",a,n,o])}return}s(a.replace(n,o))},Fe(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;","};","})();","")}function Mn(e,t){e.mb=e.i(function(r){return r=he.Boolean(r),ue(e)?(this.data=r,this):r},!0),e.g(t,"Boolean",e.mb,y)}function Dn(e,t){var r=function(n){return n=arguments.length?he.Number(n):0,ue(e)?(this.data=n,this):n};for(e.aa=e.i(r,!0),e.g(t,"Number",e.aa,y),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],r=0;r<t.length;r++)e.g(e.aa,t[r],Number[t[r]],Me);r=function(n){try{return Number(this).toExponential(n)}catch(o){x(e,e.D,o.message)}},U(e,e.aa,"toExponential",r),r=function(n){try{return Number(this).toFixed(n)}catch(o){x(e,e.D,o.message)}},U(e,e.aa,"toFixed",r),r=function(n){try{return Number(this).toPrecision(n)}catch(o){x(e,e.D,o.message)}},U(e,e.aa,"toPrecision",r),r=function(n){try{return Number(this).toString(n)}catch(o){x(e,e.D,o.message)}},U(e,e.aa,"toString",r),r=function(n,o){n=n?e.R(n):void 0,o=o?e.R(o):void 0;try{return Number(this).toLocaleString(n,o)}catch(s){x(e,e.D,"toLocaleString: "+s.message)}},U(e,e.aa,"toLocaleString",r)}function _n(e,t){var r=function(o,s){if(!ue(e))return he.Date();var a=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(he.Date,a)),this};e.$=e.i(r,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,y),e.g(e.$,"now",e.i(Date.now,!1),y),e.g(e.$,"parse",e.i(Date.parse,!1),y),e.g(e.$,"UTC",e.i(Date.UTC,!1),y),t="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var n=0;n<t.length;n++)r=function(o){return function(s){var a=this.data;a instanceof Date||x(e,e.j,o+" not called on a Date");for(var f=[],d=0;d<arguments.length;d++)f[d]=e.R(arguments[d]);return a[o].apply(a,f)}}(t[n]),U(e,e.$,t[n],r)}function Un(e,t){var r=function(n,o){if(ue(e))var s=this;else{if(o===void 0&&W(e,n,e.I))return n;s=e.s(e.Ma)}n=n===void 0?"":String(n),o=o?String(o):"",/^[gmi]*$/.test(o)||x(e,e.T,"Invalid regexp flag: "+o);try{var a=new he.RegExp(n,o)}catch(f){x(e,e.T,f.message)}return Ft(e,s,a),s};e.I=e.i(r,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,y),e.g(e.I.h.prototype,"global",void 0,z),e.g(e.I.h.prototype,"ignoreCase",void 0,z),e.g(e.I.h.prototype,"multiline",void 0,z),e.g(e.I.h.prototype,"source","(?:)",z),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),r=function(n,o){function s(I){if(I){var P=se(e,I);return e.g(P,"index",I.index),e.g(P,"input",I.input),P}return null}var a=this.data;if(n=String(n),a.lastIndex=Number(e.G(this,"lastIndex")),_e(e,a,o),e.REGEXP_MODE===2)if(ae)n=De(e,"regexp.exec(string)",{string:n,regexp:a},a,o),n!==ke&&(e.g(this,"lastIndex",a.lastIndex),o(s(n)));else{var f=e.ha(),d=Ue(e,a,f,o),v=this;f.onmessage=function(I){clearTimeout(d),e.g(v,"lastIndex",I.data[1]),o(s(I.data[0]))},f.postMessage(["exec",a,a.lastIndex,n])}else n=a.exec(n),e.g(this,"lastIndex",a.lastIndex),o(s(n))},Fe(e,e.I,"exec",r)}function Fn(e,t){function r(n){var o=e.i(function(s){var a=ue(e)?this:e.Aa(o);return bt(e,a,s),a},!0);return e.g(o,"prototype",e.Aa(e.D),y),e.g(o.h.prototype,"name",n,y),e.g(t,n,o,y),o}e.D=e.i(function(n){var o=ue(e)?this:e.Aa(e.D);return bt(e,o,n),o},!0),e.g(t,"Error",e.D,y),e.g(e.D.h.prototype,"message","",y),e.g(e.D.h.prototype,"name","Error",y),r("EvalError"),e.ob=r("RangeError"),e.pb=r("ReferenceError"),e.T=r("SyntaxError"),e.j=r("TypeError"),e.Gb=r("URIError")}function Ln(e,t){var r=e.s(e.M);e.g(t,"Math",r,y);var n="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<n.length;t++)e.g(r,n[t],Math[n[t]],z);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++)e.g(r,n[t],e.i(Math[n[t]],!1),y)}function Wn(e,t){var r=e.s(e.M);e.g(t,"JSON",r,y),t=function(n){try{var o=JSON.parse(String(n))}catch(s){x(e,e.T,s.message)}return e.Ia(o)},e.g(r,"parse",e.i(t,!1)),t=function(n,o,s){o&&o.H==="Function"?x(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=$r(e,o),o=o.filter(function(f){return typeof f=="string"||typeof f=="number"})):o=null,typeof s!="string"&&typeof s!="number"&&(s=void 0),n=e.R(n);try{var a=JSON.stringify(n,o,s)}catch(f){x(e,e.j,f.message)}return a},e.g(r,"stringify",e.i(t,!1))}function W(e,t,r){if(t==null||!r)return!1;if(r=r.h.prototype,t===r)return!0;for(t=le(e,t);t;){if(t===r)return!0;t=t.xa}return!1}function Ft(e,t,r){t.data=new RegExp(r.source,r.flags),e.g(t,"lastIndex",r.lastIndex,y),e.g(t,"source",r.source,z),e.g(t,"global",r.global,z),e.g(t,"ignoreCase",r.ignoreCase,z),e.g(t,"multiline",r.multiline,z)}function bt(e,t,r){r&&e.g(t,"message",String(r),y),r=[];for(var n=e.o.length-1;0<=n;n--){var o=e.o[n],s=o.node;s.type==="CallExpression"&&(o=o.U)&&r.length&&(r[r.length-1].Ob=e.G(o,"name")),!s.X||r.length&&s.type!=="CallExpression"||r.push({Nb:s.X})}for(n=String(e.G(t,"name")),s=String(e.G(t,"message")),s=n+": "+s+`
5
- `,n=0;n<r.length;n++){var a=r[n].Nb;o=r[n].Ob,a=a.source+":"+a.start.line+":"+a.start.ab,s=o?s+(" at "+o+" ("+a+`)
6
- `):s+(" at "+a+`
7
- `)}e.g(t,"stack",s.trim(),y)}R.ha=function(){var e=this.ha.Mb;return e||(e=new Blob([Tn.join(`
8
- `)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function De(e,t,r,n,o){var s={timeout:e.REGEXP_THREAD_TIMEOUT};try{return ae.runInNewContext(t,r,s)}catch{o(null),x(e,e.D,"RegExp Timeout: "+n)}return ke}function _e(e,t,r){if(e.REGEXP_MODE===0)var n=!1;else if(e.REGEXP_MODE===1)n=!0;else if(ae)n=!0;else if(typeof Worker=="function"&&typeof URL=="function")n=!0;else if(typeof require=="function"){try{ae=require("vm")}catch{}n=!!ae}else n=!1;n||(r(null),x(e,e.D,"Regular expressions not supported: "+t))}function Ue(e,t,r,n){return setTimeout(function(){r.terminate(),n(null);try{x(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}R.Aa=function(e){return this.s(e&&e.h.prototype)};R.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new T(e),W(this,e,this.D)&&(e.H="Error"),e};function je(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function Lt(e,t,r){var n=e.s(e.Z);return r?(r=e.s(e.M),e.g(n,"prototype",r,y),e.g(r,"constructor",n,y)):n.Ab=!0,e.g(n,"length",t,z),n.H="Function",n}function Wt(e,t,r,n){var o=Lt(e,t.oa.length,!0);return o.Va=r,o.node=t,e.g(o,"name",t.id?String(t.id.name):n||"",z),o}R.i=function(e,t){return t=Lt(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,z),t};R.ub=function(e){var t=Lt(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,z),t};R.Ia=function(e){if(e instanceof T)throw Error("Object is already pseudo");if(e==null||e===!0||e===!1||typeof e=="string"||typeof e=="number")return e;if(e instanceof RegExp){var t=this.s(this.Ma);return Ft(this,t,e),t}if(e instanceof Date)return t=this.s(this.nb),t.data=new Date(e.valueOf()),t;if(typeof e=="function"){var r=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var o=Array.prototype.slice.call(arguments).map(function(s){return r.R(s)});return o=e.apply(r,o),r.Ia(o)},!!t)}if(Array.isArray(e)){t=je(this);for(var n=0;n<e.length;n++)n in e&&this.g(t,n,this.Ia(e[n]));return t}t=this.s(this.M);for(n in e)this.g(t,n,this.Ia(e[n]));return t};R.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof T))throw Error("Object is not pseudo");if(W(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(W(this,e,this.$))return new Date(e.data.valueOf());t=t||{hb:[],Sa:[]};var r=t.hb.indexOf(e);if(r!==-1)return t.Sa[r];if(t.hb.push(e),W(this,e,this.qa)){r=[],t.Sa.push(r);for(var n=this.G(e,"length"),o=0;o<n;o++)it(this,e,o)&&(r[o]=this.R(this.G(e,o),t))}else for(n in r={},t.Sa.push(r),e.h)o=this.R(e.h[n],t),Object.defineProperty(r,n,{value:o,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),r};function se(e,t){for(var r=je(e),n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++)e.g(r,n[o],t[n[o]]);return r}function $r(e,t){var r=[],n;for(n in t.h)r[n]=e.G(t,n);return r.length=Ut(e.G(t,"length"))||0,r}function le(e,t){switch(typeof t){case"number":return e.aa.h.prototype;case"boolean":return e.mb.h.prototype;case"string":return e.J.h.prototype}return t?t.xa:null}R.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||x(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof T))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(W(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&W(this,e,this.J)){var r=We(t);if(!isNaN(r)&&r<String(e).length)return String(e)[r]}do if(e.h&&t in e.h)return(r=e.V[t])?(this.P=!0,r):e.h[t];while(e=le(this,e))};function it(e,t,r){if(!(t instanceof T))throw TypeError("Primitive data type has no properties");if(r=String(r),r==="length"&&W(e,t,e.J))return!0;if(W(e,t,e.J)){var n=We(r);if(!isNaN(n)&&n<String(t).length)return!0}do if(t.h&&r in t.h)return!0;while(t=le(e,t));return!1}R.g=function(e,t,r,n){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||x(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof T))throw TypeError("Expecting native value or pseudo object");n&&("get"in n||"set"in n)&&("value"in n||"writable"in n)&&x(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var o=!this.o||Gt(this).S;if(e instanceof T){if(W(this,e,this.J)){var s=We(t);if(t==="length"||!isNaN(s)&&s<String(e).length){o&&x(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(s=e.h.length,t==="length"){if(n){if(!("value"in n))return;r=n.value}if(r=Ut(r),isNaN(r)&&x(this,this.ob,"Invalid array length"),r<s)for(a in e.h){var a=We(a);!isNaN(a)&&r<=a&&delete e.h[a]}}else isNaN(a=We(t))||(e.h.length=Math.max(s,a+1));if(!e.preventExtensions||t in e.h)if(n){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!==$e&&(o.value=r,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,o)}catch{x(this,this.j,"Cannot redefine property: "+t)}"get"in n&&!n.get&&delete e.V[t],"set"in n&&!n.set&&delete e.Y[t]}else{if(r===$e)throw ReferenceError("Value not specified");for(n=e;!(t in n.h);)if(n=le(this,n),!n){n=e;break}if(n.Y&&n.Y[t])return this.Ka=!0,n.Y[t];if(n.V&&n.V[t])o&&x(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=r}catch{o&&x(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else o&&x(this,this.j,"Can't add property '"+t+"', object is not extensible")}else o&&x(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};R.g.ac=function(){throw Error("Placeholder getter")};R.g.bc=function(){throw Error("Placeholder setter")};function U(e,t,r,n){e.g(t.h.prototype,r,e.i(n,!1),y)}function Fe(e,t,r,n){e.g(t.h.prototype,r,e.ub(n),y)}function Gt(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Bt(e,t,r){var n=!1;if(r&&r.S)n=!0;else{var o=t.body&&t.body[0];o&&o.la&&o.la.type==="Literal"&&o.la.value==="use strict"&&(n=!0)}return o=e.s(null),n=new Hr(r,n,o),r||Pn(e,n.object),Ve(e,t,n),n}function $t(e,t,r){if(!t)throw Error("parentScope required");return e=r||e.s(null),new Hr(t,t.S,e)}function Vt(e,t){for(var r=Gt(e);r&&r!==e.N;){if(t in r.object.h)return r.object.h[t];r=r.Va}if(r===e.N&&it(e,r.object,t))return e.G(r.object,t);r=e.o[e.o.length-1].node,r.type==="UnaryExpression"&&r.operator==="typeof"||x(e,e.pb,t+" is not defined")}function Vr(e,t,r){for(var n=Gt(e),o=n.S;n&&n!==e.N;){if(t in n.object.h){try{n.object.h[t]=r}catch{o&&x(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}n=n.Va}if(n===e.N&&(!o||it(e,n.object,t)))return e.g(n.object,t,r);x(e,e.pb,t+" is not defined")}function Ve(e,t,r){if(t.jb)var n=t.jb;else{switch(n=Object.create(null),t.type){case"VariableDeclaration":for(var o=0;o<t.fa.length;o++)n[t.fa[o].id.name]=!0;break;case"FunctionDeclaration":n[t.id.name]=t;break;case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"Program":case"SwitchCase":case"SwitchStatement":case"TryStatement":case"WithStatement":case"WhileStatement":var s=t.constructor,a;for(a in t)if(a!=="loc"){var f=t[a];if(f&&typeof f=="object"){if(Array.isArray(f)){for(o=0;o<f.length;o++)if(f[o]&&f[o].constructor===s){var d=Ve(e,f[o],r);for(a in d)n[a]=d[a]}}else if(f.constructor===s)for(a in d=Ve(e,f,r),d)n[a]=d[a]}}}t.jb=n}for(a in n)n[a]===!0?e.g(r.object,a,void 0,Pr):e.g(r.object,a,Wt(e,n[a],r),Pr);return n}function ue(e){return e.o[e.o.length-1].isConstructor}function Xt(e,t){return t[0]===Oe?Vt(e,t[1]):e.G(t[0],t[1])}function Ht(e,t,r){return t[0]===Oe?Vr(e,t[1],r):e.g(t[0],t[1],r)}function x(e,t,r){throw e.N?(r!==void 0&&t instanceof T&&(t=e.Aa(t),bt(e,t,r)),Xe(e,4,t),Gr):r===void 0?t:r}function Xe(e,t,r,n){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var o=e.o;e:for(;0<o.length;o.pop()){var s=o[o.length-1];switch(s.node.type){case"TryStatement":s.ea={type:t,value:r,label:n};return;case"CallExpression":case"NewExpression":if(t===3){s.value=r;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":s.done=!0;break e}if(t===1){if(n?s.labels&&s.labels.indexOf(n)!==-1:s.W||s.Zb){o.pop();return}}else if(t===2&&(n?s.labels&&s.labels.indexOf(n)!==-1:s.W))return}throw W(e,r,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},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}function H(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return H(e,t.left)+" "+t.operator+" "+H(e,t.right);case"CallExpression":return H(e,t.callee)+"(...)";case"ConditionalExpression":return H(e,t.test)+" ? "+H(e,t.da)+" : "+H(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var r=H(e,t.object);return e=H(e,t.Wa),t.bb?r+"["+e+"]":r+"."+e;case"NewExpression":return"new "+H(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+H(e,t.K);case"UpdateExpression":return r=H(e,t.K),t.prefix?t.operator+r:r+t.operator}return"???"}function Nr(e,t,r){var n=e.o[e.o.length-1],o=Array.from(r),s=o.shift();r=Math.max(Number(o.shift()||0),0);var a=e.ya();if(s instanceof T&&s.H==="Function"){var f=s;a.type="CallExpression",n=n.scope}else{try{var d=Ce(String(s),"taskCode"+e.ic++)}catch(v){x(e,e.T,"Invalid code: "+v.message)}a.type="EvalProgram_",a.body=d.body,n=n.node.arguments[0],ot(a,n?n.start:void 0,n?n.end:void 0),n=e.N,o.length=0}return t=new Gn(f,o,n,a,t?r:-1),Xr(e,t,r),t.Db}function Xr(e,t,r){t.time=Date.now()+r,e.ca.push(t),e.ca.sort(function(n,o){return n.time-o.time})}function br(e,t){for(var r=0;r<e.ca.length;r++)if(e.ca[r].Db==t){e.ca.splice(r,1);break}}function He(e,t,r){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,r=Array.isArray(r)?r[0]:r;var n=e.ya();return n.type="CallExpression",e=new m(n,e.o[e.o.length-1].scope),e.ia=2,e.B=r,e.U=t,e.Qa=!0,e.F=[],e}function zt(e,t,r,n){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,r=Array.isArray(r)?r[0]:e.Na;var o=e.ya();return o.type="CallExpression",e=new m(o,e.o[e.o.length-1].scope),e.ia=2,e.B=r,e.U=t,e.Qa=!0,e.F=[n],e}function Rt(e,t){return t==null?e.Na:t instanceof T?t:(e=e.s(le(e,t)),e.data=t,e)}R.Xb=function(){return this.N};R.Yb=function(){return this.o};R.ec=function(e){this.o=e};function m(e,t){this.node=e,this.scope=t}function Hr(e,t,r){this.Va=e,this.S=t,this.object=r}function T(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}R=T.prototype;R.xa=null;R.H="Object";R.data=null;R.toString=function(){if(!Le)return"[object Interpreter.Object]";if(!(this instanceof T))return String(this);if(this.H==="Array"){var e=Rr;e.push(this);try{var t=[],r=this.h.length,n=!1;1024<r&&(r=1e3,n=!0);for(var o=0;o<r;o++){var s=this.h[o];t[o]=s instanceof T&&e.indexOf(s)!==-1?"...":s}n&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=Rr,e.indexOf(this)!==-1)return"[object Error]";r=this;do if("name"in r.h){t=r.h.name;break}while(r=r.xa);r=this;do if("message"in r.h){n=r.h.message;break}while(r=r.xa);e.push(this);try{t=t&&String(t),n=n&&String(n)}finally{e.pop()}return n?t+": "+n:String(t)}return this.data!==null?String(this.data):"[object "+this.H+"]"};R.valueOf=function(){return!Le||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function Gn(e,t,r,n,o){this.zb=e,this.Lb=t,this.scope=r,this.node=n,this.interval=o,this.Db=++$n,this.time=0}var $n=0;h.prototype.stepArrayExpression=function(e,t,r){r=r.elements;var n=t.A||0;for(t.Oa?(this.g(t.Oa,n,t.value),n++):(t.Oa=je(this),t.Oa.h.length=r.length);n<r.length;){if(r[n])return t.A=n,new m(r[n],t.scope);n++}e.pop(),e[e.length-1].value=t.Oa};h.prototype.stepAssignmentExpression=function(e,t,r){if(!t.ja)return t.ja=!0,t=new m(r.left,t.scope),t.sa=!0,t;if(!t.Da)return t.Fa||(t.Fa=t.value),t.Ba&&(t.ma=t.value),!t.Ba&&r.operator!=="="&&(e=Xt(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,He(this,e,t.Fa)):(t.Da=!0,r.operator==="="&&r.left.type==="Identifier"&&(t.Pa=r.left.name),new m(r.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var n=t.ma,o=t.value;switch(r.operator){case"=":n=o;break;case"+=":n+=o;break;case"-=":n-=o;break;case"*=":n*=o;break;case"/=":n/=o;break;case"%=":n%=o;break;case"<<=":n<<=o;break;case">>=":n>>=o;break;case">>>=":n>>>=o;break;case"&=":n&=o;break;case"^=":n^=o;break;case"|=":n|=o;break;default:throw SyntaxError("Unknown assignment expression: "+r.operator)}if(r=Ht(this,t.Fa,n))return t.ta=!0,t.ib=n,zt(this,r,t.Fa,n);e.pop(),e[e.length-1].value=n}};h.prototype.stepBinaryExpression=function(e,t,r){if(!t.ja)return t.ja=!0,new m(r.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new m(r.right,t.scope);e.pop();var n=t.ma;switch(t=t.value,r.operator){case"==":r=n==t;break;case"!=":r=n!=t;break;case"===":r=n===t;break;case"!==":r=n!==t;break;case">":r=n>t;break;case">=":r=n>=t;break;case"<":r=n<t;break;case"<=":r=n<=t;break;case"+":r=n+t;break;case"-":r=n-t;break;case"*":r=n*t;break;case"/":r=n/t;break;case"%":r=n%t;break;case"&":r=n&t;break;case"|":r=n|t;break;case"^":r=n^t;break;case"<<":r=n<<t;break;case">>":r=n>>t;break;case">>>":r=n>>>t;break;case"in":t instanceof T||x(this,this.j,"'in' expects an object, not '"+t+"'"),r=it(this,t,n);break;case"instanceof":W(this,t,this.O)||x(this,this.j,"'instanceof' expects an object, not '"+t+"'"),r=n instanceof T?W(this,n,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+r.operator)}e[e.length-1].value=r};h.prototype.stepBlockStatement=function(e,t,r){var n=t.A||0;if(r=r.body[n])return t.A=n+1,new m(r,t.scope);e.pop()};h.prototype.stepBreakStatement=function(e,t,r){Xe(this,1,void 0,r.label&&r.label.name)};h.prototype.Hb=0;h.prototype.stepCallExpression=function(e,t,r){if(!t.ia){t.ia=1;var n=new m(r.callee,t.scope);return n.sa=!0,n}if(t.ia===1){t.ia=2;var o=t.value;if(Array.isArray(o)){if(t.U=Xt(this,o),o[0]===Oe?t.Pb=o[1]==="eval":t.B=o[0],o=t.U,this.P)return t.ia=1,He(this,o,t.value)}else t.U=o;t.F=[],t.A=0}if(o=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),r.arguments[t.A])return new m(r.arguments[t.A++],t.scope);if(r.type==="NewExpression"){if(o instanceof T&&!o.Ab||x(this,this.j,H(this,r.callee)+" is not a constructor"),o===this.qa)t.B=je(this);else{var s=o.h.prototype;(typeof s!="object"||s===null)&&(s=this.M),t.B=this.s(s)}t.isConstructor=!0}t.Qa=!0}if(t.eb)e.pop(),e[e.length-1].value=t.isConstructor&&typeof t.value!="object"?t.B:t.value;else{if(t.eb=!0,o instanceof T||x(this,this.j,H(this,r.callee)+" is not a function"),e=o.node){for(r=Bt(this,e.body,o.Va),n=je(this),o=0;o<t.F.length;o++)this.g(n,o,t.F[o]);for(this.g(r.object,"arguments",n),o=0;o<e.oa.length;o++)this.g(r.object,e.oa[o].name,t.F.length>o?t.F[o]:void 0);return r.S||(t.B=Rt(this,t.B)),this.g(r.object,"this",t.B,_t),t.value=void 0,new m(e.body,r)}if(o.eval)if(o=t.F[0],typeof o!="string")t.value=o;else{try{n=Ce(String(o),"eval"+this.Hb++)}catch(f){x(this,this.T,"Invalid code: "+f.message)}return o=this.ya(),o.type="EvalProgram_",o.body=n.body,ot(o,r.start,r.end),r=t.Pb?t.scope:this.N,r.S?r=Bt(this,n,r):Ve(this,n,r),this.value=void 0,new m(o,r)}else if(o.Ta)t.scope.S||(t.B=Rt(this,t.B)),t.value=o.Ta.apply(t.B,t.F);else if(o.Za){var a=this;n=o.Za.length-1,n=t.F.concat(Array(n)).slice(0,n),n.push(function(f){t.value=f,a.za=!1}),this.za=!0,t.scope.S||(t.B=Rt(this,t.B)),o.Za.apply(t.B,n)}else x(this,this.j,H(this,r.callee)+" is not callable")}};h.prototype.stepConditionalExpression=function(e,t,r){var n=t.na||0;if(n===0)return t.na=1,new m(r.test,t.scope);if(n===1){if(t.na=2,(n=!!t.value)&&r.da)return new m(r.da,t.scope);if(!n&&r.alternate)return new m(r.alternate,t.scope);this.value=void 0}e.pop(),r.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};h.prototype.stepContinueStatement=function(e,t,r){Xe(this,2,void 0,r.label&&r.label.name)};h.prototype.stepDebuggerStatement=function(e){e.pop()};h.prototype.stepDoWhileStatement=function(e,t,r){if(r.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new m(r.test,t.scope);if(!t.value)e.pop();else if(r.body)return t.ga=!1,t.W=!0,new m(r.body,t.scope)};h.prototype.stepEmptyStatement=function(e){e.pop()};h.prototype.stepEvalProgram_=function(e,t,r){var n=t.A||0;if(r=r.body[n])return t.A=n+1,new m(r,t.scope);e.pop(),e[e.length-1].value=this.value};h.prototype.stepExpressionStatement=function(e,t,r){if(!t.ka)return this.value=void 0,t.ka=!0,new m(r.la,t.scope);e.pop(),this.value=t.value};h.prototype.stepForInStatement=function(e,t,r){if(!t.Ub&&(t.Ub=!0,r.left.fa&&r.left.fa[0].ua))return t.scope.S&&x(this,this.T,"for-in loop variable declaration may not have an initializer"),new m(r.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new m(r.right,t.scope);if(t.W||(t.W=!0,t.u=t.value,t.kb=Object.create(null)),t.Ra===void 0)e:for(;;){if(t.u instanceof T)for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u.h));;){var n=t.wa.shift();if(n===void 0)break;if(Object.prototype.hasOwnProperty.call(t.u.h,n)&&!t.kb[n]&&(t.kb[n]=!0,Object.prototype.propertyIsEnumerable.call(t.u.h,n))){t.Ra=n;break e}}else if(t.u!==null&&t.u!==void 0){for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u));n=t.wa.shift(),n!==void 0;)if(t.kb[n]=!0,Object.prototype.propertyIsEnumerable.call(t.u,n)){t.Ra=n;break e}}if(t.u=le(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=r.left,e.type==="VariableDeclaration")t.pa=[Oe,e.fa[0].id.name];else return t.pa=null,t=new m(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,n=Ht(this,t.pa,e)))return zt(this,n,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,r.body)return new m(r.body,t.scope)};h.prototype.stepForStatement=function(e,t,r){switch(t.na){default:if(t.na=1,r.ua)return new m(r.ua,t.scope);break;case 1:if(t.na=2,r.test)return new m(r.test,t.scope);break;case 2:if(t.na=3,r.test&&!t.value)e.pop();else return t.W=!0,new m(r.body,t.scope);break;case 3:if(t.na=1,r.update)return new m(r.update,t.scope)}};h.prototype.stepFunctionDeclaration=function(e){e.pop()};h.prototype.stepFunctionExpression=function(e,t,r){e.pop(),t=e[e.length-1],e=t.scope,r.id&&(e=$t(this,e)),t.value=Wt(this,r,e,t.Pa),r.id&&this.g(e.object,r.id.name,t.value,_t)};h.prototype.stepIdentifier=function(e,t,r){if(e.pop(),t.sa)e[e.length-1].value=[Oe,r.name];else{if(t=Vt(this,r.name),this.P)return He(this,t,this.Na);e[e.length-1].value=t}};h.prototype.stepIfStatement=h.prototype.stepConditionalExpression;h.prototype.stepLabeledStatement=function(e,t,r){return e.pop(),e=t.labels||[],e.push(r.label.name),t=new m(r.body,t.scope),t.labels=e,t};h.prototype.stepLiteral=function(e,t,r){e.pop(),t=r.value,t instanceof RegExp&&(r=this.s(this.Ma),Ft(this,r,t),t=r),e[e.length-1].value=t};h.prototype.stepLogicalExpression=function(e,t,r){if(r.operator!=="&&"&&r.operator!=="||")throw SyntaxError("Unknown logical operator: "+r.operator);if(!t.ja)return t.ja=!0,new m(r.left,t.scope);if(t.Da)e.pop(),e[e.length-1].value=t.value;else if(r.operator==="&&"&&!t.value||r.operator==="||"&&t.value)e.pop(),e[e.length-1].value=t.value;else return t.Da=!0,new m(r.right,t.scope)};h.prototype.stepMemberExpression=function(e,t,r){if(!t.Ca)return t.Ca=!0,new m(r.object,t.scope);if(r.bb)if(t.Vb)r=t.value;else return t.u=t.value,t.Vb=!0,new m(r.Wa,t.scope);else t.u=t.value,r=r.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,r];else{if(r=this.G(t.u,r),this.P)return He(this,r,t.u);e[e.length-1].value=r}};h.prototype.stepNewExpression=h.prototype.stepCallExpression;h.prototype.stepObjectExpression=function(e,t,r){var n=t.A||0,o=r.h[n];if(t.u){var s=t.Pa;t.Ja[s]||(t.Ja[s]={}),t.Ja[s][o.kind]=t.value,t.A=++n,o=r.h[n]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(o){var a=o.key;if(a.type==="Identifier")s=a.name;else if(a.type==="Literal")s=a.value;else throw SyntaxError("Unknown object structure: "+a.type);return t.Pa=s,new m(o.value,t.scope)}for(a in t.Ja)r=t.Ja[a],"get"in r||"set"in r?this.g(t.u,a,$e,{configurable:!0,enumerable:!0,get:r.get,set:r.set}):this.g(t.u,a,r.init);e.pop(),e[e.length-1].value=t.u};h.prototype.stepProgram=function(e,t,r){if(e=r.body.shift())return t.done=!1,new m(e,t.scope);t.done=!0};h.prototype.stepReturnStatement=function(e,t,r){if(r.K&&!t.ka)return t.ka=!0,new m(r.K,t.scope);Xe(this,3,t.value)};h.prototype.stepSequenceExpression=function(e,t,r){var n=t.A||0;if(r=r.xb[n])return t.A=n+1,new m(r,t.scope);e.pop(),e[e.length-1].value=t.value};h.prototype.stepSwitchStatement=function(e,t,r){if(!t.ga)return t.ga=1,new m(r.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var n=t.gb||0,o=r.tb[n];if(t.Ha||!o||o.test)if(o||t.Ha||t.cb===-1)if(o){if(!t.Ha&&!t.Fb&&o.test)return t.Fb=!0,new m(o.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var s=t.A||0;if(o.da[s])return t.Zb=!0,t.A=s+1,new m(o.da[s],t.scope)}t.Fb=!1,t.A=0,t.gb=n+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=n,t.gb=n+1}};h.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=Vt(this,"this")};h.prototype.stepThrowStatement=function(e,t,r){if(t.ka)x(this,t.value);else return t.ka=!0,new m(r.K,t.scope)};h.prototype.stepTryStatement=function(e,t,r){if(!t.Rb)return t.Rb=!0,new m(r.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&r.Ea)return t.Tb=!0,e=$t(this,t.scope),this.g(e.object,r.Ea.Ua.name,t.ea.value),t.ea=void 0,new m(r.Ea.body,e);if(!t.Sb&&r.fb)return t.Sb=!0,new m(r.fb,t.scope);e.pop(),t.ea&&Xe(this,t.ea.type,t.ea.value,t.ea.label)};h.prototype.stepUnaryExpression=function(e,t,r){if(!t.ka)return t.ka=!0,e=new m(r.K,t.scope),e.sa=r.operator==="delete",e;e.pop();var n=t.value;switch(r.operator){case"-":n=-n;break;case"+":n=+n;break;case"!":n=!n;break;case"~":n=~n;break;case"delete":if(r=!0,Array.isArray(n)){var o=n[0];o===Oe&&(o=t.scope),n=String(n[1]);try{delete o.h[n]}catch{t.scope.S?x(this,this.j,"Cannot delete property '"+n+"' of '"+o+"'"):r=!1}}n=r;break;case"typeof":n=n&&n.H==="Function"?"function":typeof n;break;case"void":n=void 0;break;default:throw SyntaxError("Unknown unary operator: "+r.operator)}e[e.length-1].value=n};h.prototype.stepUpdateExpression=function(e,t,r){if(!t.ja)return t.ja=!0,e=new m(r.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var n=Xt(this,t.Ga);if(t.ma=n,this.P)return t.Ba=!0,He(this,n,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(n=Number(t.ma),r.operator==="++")var o=n+1;else if(r.operator==="--")o=n-1;else throw SyntaxError("Unknown update expression: "+r.operator);if(r=r.prefix?o:n,n=Ht(this,t.Ga,o))return t.ta=!0,t.ib=r,zt(this,n,t.Ga,o);e.pop(),e[e.length-1].value=r}};h.prototype.stepVariableDeclaration=function(e,t,r){r=r.fa;var n=t.A||0,o=r[n];for(t.Bb&&o&&(Vr(this,o.id.name,t.value),t.Bb=!1,o=r[++n]);o;){if(o.ua)return t.A=n,t.Bb=!0,t.Pa=o.id.name,new m(o.ua,t.scope);o=r[++n]}e.pop()};h.prototype.stepWithStatement=function(e,t,r){return t.Ca?(e.pop(),e=$t(this,t.scope,t.value),new m(r.body,e)):(t.Ca=!0,new m(r.object,t.scope))};h.prototype.stepWhileStatement=h.prototype.stepDoWhileStatement;he.Interpreter=h;h.prototype.step=h.prototype.lb;h.prototype.run=h.prototype.Eb;h.prototype.appendCode=h.prototype.Jb;h.prototype.createObject=h.prototype.Aa;h.prototype.createObjectProto=h.prototype.s;h.prototype.createAsyncFunction=h.prototype.ub;h.prototype.createNativeFunction=h.prototype.i;h.prototype.getProperty=h.prototype.G;h.prototype.setProperty=h.prototype.g;h.prototype.nativeToPseudo=h.prototype.Ia;h.prototype.pseudoToNative=h.prototype.R;h.prototype.getGlobalScope=h.prototype.Xb;h.prototype.getStateStack=h.prototype.Yb;h.prototype.setStateStack=h.prototype.ec;h.VALUE_IN_DESCRIPTOR=$e;function Vn(){const e=h.prototype.getProperty,t=h.prototype.setProperty;function r(a,f){if(a==null||!a._connected)return e.call(this,a,f);const d=a._connected[f];return Array.isArray(d)?this.nativeToPseudo(d):typeof d=="object"?this.createConnectedObject(d):d}function n(a,f,d,v){if(a==null||!a._connected)return t.call(this,a,f,d,v);a._connected[f]=this.pseudoToNative(d)}const o=[],s=[];for(const a of Object.keys(h.prototype))h.prototype[a]===e&&o.push(a),h.prototype[a]===t&&s.push(a);for(const a of o)h.prototype[a]=r;for(const a of s)h.prototype[a]=n;h.prototype.createConnectedObject=function(a){const f=this.createObject(this.OBJECT);return f._connected=a,f}}Vn();const Xn=e=>e.replace(/^.*?function main\(\)/,`
9
- var __awaiter = function (e, t, n, r) {return r()},
10
- __generator = function (e, t) { return t() };
11
- function main()`).replace(/\?\./g,"."),Br=e=>e+"JSON",Hn=({builder:e,context:t,event:r,rootState:n,localState:o,rootSetState:s,code:a})=>{const f=Dt({rootState:n,localState:o,rootSetState:s}),d=Wr({builder:e,context:t,event:r,state:f}),v=d.map(([O])=>{const b=Br(O);return O==="state"?"":`var ${O} = ${b} === undefined ? undefined : JSON.parse(${b});`}).join(`
12
- `),I=Xn(a);if(I==="")return;const P=`
13
- function theFunction() {
14
- ${v}
15
-
16
- ${I}
17
- }
18
- theFunction();
19
- `,K=function(O,b){d.forEach(([V,C])=>{if(V==="state")O.setProperty(b,V,O.createConnectedObject(C),O.READONLY_DESCRIPTOR);else{const ee=JSON.stringify(C);O.setProperty(b,Br(V),ee)}})},$=new h(P,K);return $.run(),$.pseudoToNative($.value)};function zn(){var e;return typeof process!="undefined"&&F.checkIsDefined((e=process==null?void 0:process.versions)==null?void 0:e.node)}const Jn=({shouldLogWarning:e})=>{var o;if(!zn())return!1;const t=process.arch==="arm64",r=process.version.startsWith("v20"),n=(o=process.env.NODE_OPTIONS)==null?void 0:o.includes("--no-node-snapshot");return t&&r&&!n?(e&&F.logger.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "),!0):!1},Kn=e=>F.isBrowser()||Jn({shouldLogWarning:!0})?An(e):Hn(e),Yn=/^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/,Zn=/(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/,qn=e=>{var t,r,n,o,s,a;return((n=(r=(t=Yn.exec(e.trim()))==null?void 0:t.groups)==null?void 0:r.getPath)==null?void 0:n.slice(1))||((a=(s=(o=Zn.exec(e.trim()))==null?void 0:o.groups)==null?void 0:s.getPath)==null?void 0:a.slice(1))};function ze({code:e,context:t,localState:r,rootState:n,rootSetState:o,event:s,isExpression:a=!0}){if(e.trim()==="")return;const f=qn(e.trim());if(f)return Lr({...n,...r},f);const d={code:On(e,{isExpression:a}),builder:jn(),context:t,event:s,rootSetState:o,rootState:n,localState:r};try{return Kn(d)}catch(v){F.logger.error("Failed code evaluation: "+v.message,{code:e});return}}function Qn(e,t){var r;return{...(r=e.component)==null?void 0:r.options,...e.options,...eo(e,t)}}const eo=(e,t)=>{var r,n;if(((r=e.component)==null?void 0:r.name)==="Text"&&((n=e.component.options)!=null&&n.text)&&typeof e.component.options.text=="string")return{...e.component.options,text:e.component.options.text.replace(/{{([^}]+)}}/g,(o,s)=>ze({code:s,context:t,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState}))}};function to(e,...t){const r=Object.assign({},e);for(const n of t)delete r[n];return r}function nt(e,t,r=null,n=null,o=new WeakSet){if(e==null||typeof e!="object"){t(e,s=>{r!==null&&n!==null&&(r[n]=s)});return}o.has(e)||(o.add(e),Array.isArray(e)?e.forEach((s,a)=>{t(s,d=>{e[a]=d}),nt(s,t,e,a,o)}):Object.entries(e).forEach(([s,a])=>{t(a,d=>{e[s]=d}),nt(a,t,e,s,o)}))}function zr(e){return e&&typeof e=="object"&&e["@type"]==="@builder.io/core:LocalizedValue"}function ro(e){if(!e||!Object.getOwnPropertyNames(e).length)return!1;let t=!1;return nt(e,r=>{if(zr(r)){t=!0;return}}),t}function no(e,t){return!e||!Object.getOwnPropertyNames(e).length?{}:(nt(e,(r,n)=>{var o;zr(r)&&n((o=r[t])!=null?o:void 0)}),e)}function oo(e,t){var r,n;return(r=e.component)!=null&&r.options&&ro((n=e.component)==null?void 0:n.options)&&(t||console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"),e.component.options=no(e.component.options,t!=null?t:"Default")),e}const Jt=e=>JSON.parse(JSON.stringify(e)),Jr=(e,t,r)=>{if(Object(e)!==e)return e;const n=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((o,s,a)=>Object(o[s])===o[s]?o[s]:o[s]=Math.abs(Number(n[a+1]))>>0===+n[a+1]?[]:{},e)[n[n.length-1]]=r,e};function Mt(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>Mt(r));if(e["@type"]==="@builder.io/sdk:Element")return e;const t={};for(const r in e)r!=="meta"&&Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Mt(e[r]));return t}const io=["svelte","vue","angular","qwik","solid"].includes(F.TARGET),so=e=>{if(io){const t=Jt(e);return{...t,properties:{...t.properties},actions:{...t.actions}}}else{const t=Mt(to(e,"children","meta"));return{...t,properties:{...t.properties},actions:{...t.actions},children:e.children,meta:e.meta}}},ao=({block:e,context:t,localState:r,rootState:n,rootSetState:o})=>{if(!e.bindings)return e;const s=so(e);for(const a in e.bindings){const f=e.bindings[a],d=ze({code:f,localState:r,rootState:n,rootSetState:o,context:t});Jr(s,a,d)}return s};function lo({block:e,context:t,localState:r,rootState:n,rootSetState:o}){let s=oo(e,n.locale);return s=s,ao({block:s,localState:r,rootState:n,rootSetState:o,context:t})}const st=e=>e?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():"";function uo(e,t,r={}){let n,o,s,a=null,f=0;const d=function(){f=r.leading===!1?0:Date.now(),a=null,s=e.apply(n,o),a||(n=o=null)};return function(){const v=Date.now();!f&&r.leading===!1&&(f=v);const I=t-(v-f);return n=this,o=arguments,I<=0||I>t?(a&&(clearTimeout(a),a=null),f=v,s=e.apply(n,o),a||(n=o=null)):!a&&r.trailing!==!1&&(a=setTimeout(d,I)),s}}function Ge(e,...t){const r=Object(e);for(let n=1;n<arguments.length;n++){const o=arguments[n];if(o!=null)for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])}return r}function co(e){for(const t of e)switch(t.trigger){case"pageLoad":Zr(t);break;case"scrollInView":po(t);break}}function Kr(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function Yr(e,t){const r=fo(e),n=getComputedStyle(t),o=e.steps[0].styles,s=e.steps[e.steps.length-1].styles,a=[o,s];for(const f of a)for(const d of r)d in f||(f[d]=n[d])}function fo(e){const t=[];for(const r of e.steps)for(const n in r.styles)t.indexOf(n)===-1&&t.push(n);return t}function Zr(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Kr(e.elementId||e.id||"");return}Array.from(t).forEach(r=>{Yr(e,r),r.style.transition="none",r.style.transitionDelay="0",Ge(r.style,e.steps[0].styles),setTimeout(()=>{r.style.transition=`all ${e.duration}s ${st(e.easing)}`,e.delay&&(r.style.transitionDelay=e.delay+"s"),Ge(r.style,e.steps[1].styles),setTimeout(()=>{r.style.transition="",r.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}function po(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Kr(e.elementId||e.id||"");return}Array.from(t).forEach(r=>{Yr(e,r);let n=!1,o=!1;function s(){!n&&f(r)?(n=!0,o=!0,setTimeout(()=>{Ge(r.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",a),setTimeout(()=>{o=!1,e.repeat||(r.style.transition="",r.style.transitionDelay="")},(e.duration+(e.delay||0))*1e3+100)})):e.repeat&&n&&!o&&!f(r)&&(n=!1,Ge(r.style,e.steps[0].styles))}const a=uo(s,200,{leading:!1});function f(I){const P=I.getBoundingClientRect(),K=window.innerHeight,A=(e.thresholdPercent||0)/100*K;return P.bottom>A&&P.top<K-A}const d=e.steps[0].styles;function v(){Ge(r.style,d)}v(),setTimeout(()=>{r.style.transition=`all ${e.duration}s ${st(e.easing)}`,e.delay&&(r.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",a,{capture:!0,passive:!0}),s()})}const qr=e=>Object.entries(e).map(([r,n])=>{if(typeof n=="string")return`${st(r)}: ${n};`}).filter(F.checkIsDefined),ho=e=>qr(e).join(`
20
- `),rt=({mediaQuery:e,className:t,styles:r})=>{const n=`.${t} {
21
- ${ho(r)}
22
- }`;return e?`${e} {
23
- ${n}
24
- }`:n};function go({style:e}){return e}const yo=({block:e,context:t})=>Qr(go({style:e.style||{},context:t,block:e}));function Qr(e){switch(F.TARGET){case"svelte":case"vue":case"solid":case"angular":return qr(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const en=(e,t)=>e?t?e.models&&e.models.length>0&&!e.models.includes(t):!1:!0,mo=({block:e,registeredComponents:t,model:r})=>{var s;const n=(s=e.component)==null?void 0:s.name;if(!n)return null;const o=t[n];if(!o||en(o,r)){console.warn(`
25
- Could not find a registered component named "${n}".
26
- If you registered it, is the file that registered it imported by the file that needs to render it?`);return}else return o},vo=({block:e,context:t})=>{const{repeat:r,...n}=e;if(!(r!=null&&r.collection))return;const o=ze({code:r.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(o))return;const s=r.collection.split(".").pop(),a=r.itemName||(s?s+"Item":"item");return o.map((d,v)=>({context:{...t,localState:{...t.localState,$index:v,$item:d,[a]:d,[`$${a}Index`]:v}},block:n}))},xo=(e,t)=>{var r;return(r=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&r.builderLinkComponent?{builderLinkComponent:t}:{}},wo=(e,t,r)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderComponents?{builderComponents:Object.fromEntries(Object.entries(t).filter(([s,a])=>!en(a,r)))}:{}},So=(e,t)=>{var r;return(r=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&r.builderBlock?{builderBlock:t}:{}},Eo=(e,t)=>{var r;return(r=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&r.builderContext?{builderContext:t}:{}},tn={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Mr=(e,t=tn)=>`@media (max-width: ${t[e].max}px)`,rn=({small:e,medium:t})=>{const r=Jt(tn);if(!e||!t)return r;const n=Math.floor(e/2);r.small={max:e,min:n,default:n+1};const o=r.small.max+1;r.medium={max:t,min:o,default:o+1};const s=r.medium.max+1;return r.large={max:2e3,min:s,default:s+1},r};function nn(e){return w.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},"data-id":e.id,nonce:e.nonce})}function ko(e){function t(){const n=e.block;return F.checkIsDefined(n.hide)?!n.hide:F.checkIsDefined(n.show)?n.show:!0}function r(){var b,V,C;const n=e.block,o=n.responsiveStyles,s=e.context.content,a=rn(((b=s==null?void 0:s.meta)==null?void 0:b.breakpoints)||{}),f=o==null?void 0:o.large,d=o==null?void 0:o.medium,v=o==null?void 0:o.small,I=n.id;if(!I)return"";const P=f?rt({className:I,styles:f}):"",K=d?rt({className:I,styles:d,mediaQuery:Mr("medium",a)}):"",$=v?rt({className:I,styles:v,mediaQuery:Mr("small",a)}):"",A=n.animations&&n.animations.find(ee=>ee.trigger==="hover");let O="";if(A){const ee=((C=(V=A.steps)==null?void 0:V[1])==null?void 0:C.styles)||{};O=rt({className:`${I}:hover`,styles:{...ee,transition:`all ${A.duration}s ${st(A.easing)}`,transitionDelay:A.delay?`${A.delay}s`:"0s"}})||""}return[P,K,$,O].join(" ")}return w.jsx(w.Fragment,{children:r()&&t()?w.jsx(w.Fragment,{children:w.jsx(nn,{id:"builderio-block",styles:r(),nonce:e.context.nonce})}):null})}function Co(e){return e.charAt(0).toUpperCase()+e.slice(1)}const jo=e=>`on${Co(e)}`,Oo=(e,t)=>r=>ze({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function on(e){var n;const t={},r=(n=e.block.actions)!=null?n:{};for(const o in r){if(!r.hasOwnProperty(o))continue;const s=r[o];let a=jo(o);if(e.stripPrefix)switch(F.TARGET){case"vue":a=a.replace("v-on:","");break;case"svelte":a=a.replace("on:","");break}t[a]=Oo(s,e)}return t}function Ao({properties:e}){return e}const Io=e=>({href:e.href});function Kt({block:e,context:t}){var n;const r={...Io(e),...e.properties,"builder-id":e.id,style:yo({block:e,context:t}),[kn.getClassPropName()]:[e.id,"builder-block",e.class,(n=e.properties)==null?void 0:n.class].filter(Boolean).join(" ")};return Ao({properties:r,context:t,block:e})}function To(e){return w.jsx(Cn.DynamicRenderer,{TagName:e.Wrapper,attributes:Kt({block:e.block,context:e.context}),actionAttributes:on({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function Po(e){return q.useEffect(()=>{},[]),w.jsx(w.Fragment,{children:e.children})}function Ro(e){function t(){return e.includeBlockProps?{...Kt({block:e.block,context:e.context}),...on({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}}return w.jsx(w.Fragment,{children:e.Wrapper.load?w.jsx(w.Fragment,{children:w.jsx(Po,{load:e.Wrapper.load,fallback:e.Wrapper.fallback,props:e.wrapperProps,attributes:t(),children:e.children})}):w.jsx(e.Wrapper,{...e.wrapperProps,attributes:t(),children:e.children})})}const No=({componentOptions:e,builderBlock:t,context:r,componentRef:n,includeBlockProps:o,isInteractive:s,contextValue:a})=>{const f={...e,...o?{attributes:Kt({block:t,context:a})}:{}};return s?{Wrapper:n,block:t,context:r,wrapperProps:e,includeBlockProps:o}:f};function Dr(e){var n;const[t,r]=q.useState(()=>e.isInteractive?Ro:e.componentRef);return w.jsx(w.Fragment,{children:e.componentRef?w.jsx(w.Fragment,{children:w.jsx(t,{...No({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(n=e.blockChildren)==null?void 0:n.map(o=>w.jsx(at,{block:o,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},o.id))})}):null})}function _r(e){const[t,r]=q.useState(()=>e.repeatContext);return w.jsx(Ur.BuilderContext.Provider,{value:t,children:w.jsx(at,{block:e.block,context:t,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent})})}function at(e){var I,P,K,$;function t(){return vo({block:e.block,context:e.context})}const[r,n]=q.useState(()=>({value:null,update:!1}));function o(){var O;if(r.value&&!r.update&&!F.isPreviewing())return r.value;const A=(O=e.block.repeat)!=null&&O.collection?e.block:lo({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context});return r.value=A,r.update=!1,A}function s(){return mo({block:o(),registeredComponents:e.registeredComponents,model:e.context.model})}function a(){var O;return e.block.tagName==="a"||((O=o().properties)==null?void 0:O.href)||o().href?e.linkComponent||"a":e.block.tagName||"div"}function f(){var b,V;if((b=e.block.repeat)!=null&&b.collection)return!!((V=t==null?void 0:t())!=null&&V.length);const A="hide"in o()?o().hide:!1;return("show"in o()?o().show:!0)&&!A}function d(){var O,b;return!((O=s==null?void 0:s())!=null&&O.component)&&!t()?(b=o().children)!=null?b:[]:[]}function v(){var A,O,b,V;return{blockChildren:(A=o().children)!=null?A:[],componentRef:(O=s==null?void 0:s())==null?void 0:O.component,componentOptions:{...Qn(o(),e.context),...So(s(),o()),...Eo(s(),e.context),...xo(s(),e.linkComponent),...wo(s(),e.registeredComponents,e.context.model)},context:e.context,linkComponent:e.linkComponent,registeredComponents:e.registeredComponents,builderBlock:o(),includeBlockProps:((b=s==null?void 0:s())==null?void 0:b.noWrap)===!0,isInteractive:!((V=s==null?void 0:s())!=null&&V.isRSC&&F.TARGET==="rsc")}}return q.useEffect(()=>{const A=o().id,O=o().animations;O&&A&&co(O.map(b=>({...b,elementId:A})))},[]),q.useEffect(()=>{r.update=!0}),w.jsx(w.Fragment,{children:f()?w.jsxs(w.Fragment,{children:[w.jsx(ko,{block:o(),context:e.context}),(I=s==null?void 0:s())!=null&&I.noWrap?t()?w.jsx(w.Fragment,{children:($=t())==null?void 0:$.map((A,O)=>w.jsx(_r,{repeatContext:A.context,block:A.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},O))}):w.jsx(Dr,{componentRef:v().componentRef,componentOptions:v().componentOptions,blockChildren:v().blockChildren,context:v().context,registeredComponents:v().registeredComponents,linkComponent:v().linkComponent,builderBlock:v().builderBlock,includeBlockProps:v().includeBlockProps,isInteractive:v().isInteractive}):w.jsx(w.Fragment,{children:t()?w.jsx(w.Fragment,{children:(K=t())==null?void 0:K.map((A,O)=>w.jsx(_r,{repeatContext:A.context,block:A.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},O))}):w.jsxs(To,{Wrapper:a(),block:o(),context:e.context,children:[w.jsx(Dr,{componentRef:v().componentRef,componentOptions:v().componentOptions,blockChildren:v().blockChildren,context:v().context,registeredComponents:v().registeredComponents,linkComponent:v().linkComponent,builderBlock:v().builderBlock,includeBlockProps:v().includeBlockProps,isInteractive:v().isInteractive}),(P=d())==null?void 0:P.map(A=>w.jsx(at,{block:A,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},A.id))]})})]}):null})}function bo(e){const t=q.useRef(null);function r(){var a;return["builder-blocks",(a=e.blocks)!=null&&a.length?"":"no-blocks",e.classNameProp].filter(Boolean).join(" ")}function n(){if(!e.path)return;const a="component.options.";return e.path.startsWith(a)?e.path:`${a}${e.path||""}`}function o(){var a,f;F.isEditing()&&!((a=e.blocks)!=null&&a.length)&&((f=window.parent)==null||f.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:n()}},"*"))}function s(){var a,f;F.isEditing()&&!((a=e.blocks)!=null&&a.length)&&((f=window.parent)==null||f.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:n()}},"*"))}return q.useEffect(()=>{},[]),w.jsxs(w.Fragment,{children:[w.jsx(e.BlocksWrapper,{ref:t,className:r()+" props-blocks-wrapper-2c6a6d88","builder-path":n(),"builder-parent-id":e.parent,style:e.styleProp,onClick:a=>o(),onMouseEnter:a=>s(),onKeyPress:a=>o(),...e.BlocksWrapperProps,children:e.children}),w.jsx("style",{children:`.props-blocks-wrapper-2c6a6d88 {
27
- display: flex;
28
- flex-direction: column;
29
- align-items: stretch;
30
- }`})]})}function sn(e){var n,o,s;const t=q.useContext(Ur.BuilderContext),r=q.useContext(Fr);return w.jsx(bo,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,classNameProp:e.className,BlocksWrapper:((n=e.context)==null?void 0:n.BlocksWrapper)||(t==null?void 0:t.BlocksWrapper),BlocksWrapperProps:((o=e.context)==null?void 0:o.BlocksWrapperProps)||(t==null?void 0:t.BlocksWrapperProps),children:e.blocks?w.jsx(w.Fragment,{children:(s=e.blocks)==null?void 0:s.map(a=>w.jsx(at,{block:a,linkComponent:e.linkComponent,context:e.context||t,registeredComponents:e.registeredComponents||(r==null?void 0:r.registeredComponents)},a.id))}):null})}const Bo=Object.freeze(Object.defineProperty({__proto__:null,default:sn},Symbol.toStringTag,{value:"Module"}));exports.Blocks=sn;exports.ComponentsContext=Fr;exports.InlinedStyles=nn;exports.blocks=Bo;exports.evaluate=ze;exports.fastClone=Jt;exports.get=Lr;exports.getSizesForBreakpoints=rn;exports.mapStyleObjToStrIfNeeded=Qr;exports.set=Jr;exports.triggerAnimation=Zr;