@builder.io/sdk-vue 0.4.5 → 0.5.1

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 (232) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/block-styles.1cc420e2.js +77 -0
  3. package/packages/_vue2/dist/block-styles.2b3d669b.cjs +1 -0
  4. package/packages/_vue2/dist/block-wrapper.563cc17f.cjs +1 -0
  5. package/packages/_vue2/dist/block-wrapper.ea9a7e90.js +66 -0
  6. package/packages/_vue2/dist/block.0f28da5b.cjs +3 -0
  7. package/packages/_vue2/dist/block.7a80ed18.js +178 -0
  8. package/packages/_vue2/dist/blocks-wrapper.9aacce51.js +72 -0
  9. package/packages/_vue2/dist/blocks-wrapper.c53a5f23.cjs +1 -0
  10. package/packages/_vue2/dist/component-ref.a631e3d7.cjs +1 -0
  11. package/packages/_vue2/dist/component-ref.af9c1a83.js +98 -0
  12. package/packages/_vue2/dist/content.2c7fa09f.cjs +1 -0
  13. package/packages/_vue2/dist/content.cb96a18a.js +913 -0
  14. package/packages/_vue2/dist/css.22755cda.js +21 -0
  15. package/packages/_vue2/dist/css.30299cfb.cjs +6 -0
  16. package/packages/_vue2/dist/enable-editor.852e9797.js +427 -0
  17. package/packages/_vue2/dist/enable-editor.c1b99af3.cjs +1 -0
  18. package/packages/_vue2/dist/evaluate.80a7f105.cjs +31 -0
  19. package/packages/_vue2/dist/evaluate.ce05cec9.js +4970 -0
  20. package/packages/_vue2/dist/get-block-actions.93f4e72e.cjs +1 -0
  21. package/packages/_vue2/dist/get-block-actions.c73f00d1.js +36 -0
  22. package/packages/_vue2/dist/get-block-properties.15a37ec1.js +48 -0
  23. package/packages/_vue2/dist/get-block-properties.d0235e56.cjs +1 -0
  24. package/packages/_vue2/dist/get-processed-block.d59ca820.js +52 -0
  25. package/packages/_vue2/dist/get-processed-block.d8938868.cjs +1 -0
  26. package/packages/_vue2/dist/index.1021dd83.cjs +32 -0
  27. package/packages/_vue2/dist/{index.dcd9672f.js → index.ed62d736.js} +565 -575
  28. package/packages/_vue2/dist/inlined-script.3e3c93e8.cjs +1 -0
  29. package/packages/_vue2/dist/{inlined-script.5b4b5fc3.js → inlined-script.cf733bda.js} +1 -1
  30. package/packages/_vue2/dist/{inlined-styles.759d26e8.js → inlined-styles.2709172e.js} +1 -1
  31. package/packages/_vue2/dist/{inlined-styles.9ddda3d7.cjs → inlined-styles.cf1e15e1.cjs} +1 -1
  32. package/packages/_vue2/dist/interactive-element.d51dde5a.js +42 -0
  33. package/packages/_vue2/dist/interactive-element.ea2a7d23.cjs +1 -0
  34. package/packages/_vue2/dist/repeated-block.9a46bc14.js +38 -0
  35. package/packages/_vue2/dist/repeated-block.a299d789.cjs +1 -0
  36. package/packages/_vue2/dist/sdk.cjs +1 -1
  37. package/packages/_vue2/dist/sdk.js +10 -10
  38. package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +9 -18
  39. package/packages/_vue2/dist/src/blocks/button/component-info.d.ts +1 -1
  40. package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +7 -6
  41. package/packages/_vue2/dist/src/blocks/columns/component-info.d.ts +1 -1
  42. package/packages/_vue2/dist/src/blocks/custom-code/component-info.d.ts +1 -1
  43. package/packages/_vue2/dist/src/blocks/embed/component-info.d.ts +1 -1
  44. package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +1 -1
  45. package/packages/_vue2/dist/src/blocks/fragment/component-info.d.ts +1 -1
  46. package/packages/_vue2/dist/src/blocks/helpers.d.ts +13 -0
  47. package/packages/_vue2/dist/src/blocks/image/component-info.d.ts +1 -1
  48. package/packages/_vue2/dist/src/blocks/image/image.vue.d.ts +6 -6
  49. package/packages/_vue2/dist/src/blocks/img/component-info.d.ts +1 -1
  50. package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +27 -6
  51. package/packages/_vue2/dist/src/blocks/section/component-info.d.ts +1 -1
  52. package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +9 -6
  53. package/packages/_vue2/dist/src/blocks/symbol/component-info.d.ts +1 -1
  54. package/packages/_vue2/dist/src/blocks/symbol/symbol.helpers.d.ts +14 -0
  55. package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +11 -7
  56. package/packages/_vue2/dist/src/blocks/text/component-info.d.ts +1 -1
  57. package/packages/_vue2/dist/src/blocks/video/component-info.d.ts +1 -1
  58. package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +7 -3
  59. package/packages/_vue2/dist/src/components/block/block.helpers.d.ts +13 -0
  60. package/packages/{_vue3/dist/src/components/render-block/render-block.vue.d.ts → _vue2/dist/src/components/block/block.vue.d.ts} +3 -2
  61. package/packages/_vue2/dist/src/components/{render-block → block/components}/block-styles.vue.d.ts +4 -4
  62. package/packages/_vue2/dist/src/components/block/components/block-wrapper.vue.d.ts +29 -0
  63. package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
  64. package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.vue.d.ts +2 -0
  65. package/packages/_vue2/dist/src/components/block/components/interactive-element.vue.d.ts +30 -0
  66. package/packages/_vue2/dist/src/components/block/components/repeated-block.vue.d.ts +16 -0
  67. package/packages/_vue2/dist/src/components/{render-blocks.vue.d.ts → blocks/blocks-wrapper.vue.d.ts} +6 -6
  68. package/packages/_vue2/dist/src/components/blocks/blocks.vue.d.ts +29 -0
  69. package/packages/_vue2/dist/src/components/{render-content/render-content.vue.d.ts → content/components/enable-editor.vue.d.ts} +12 -34
  70. package/packages/{_vue3/dist/src/components/render-content/components/render-styles.helpers.d.ts → _vue2/dist/src/components/content/components/styles.helpers.d.ts} +1 -1
  71. package/packages/_vue2/dist/src/components/{render-content/components/render-styles.vue.d.ts → content/components/styles.vue.d.ts} +1 -1
  72. package/packages/_vue2/dist/src/components/content/content.helpers.d.ts +7 -0
  73. package/packages/{_vue3/dist/src/components/render-content/render-content.types.d.ts → _vue2/dist/src/components/content/content.types.d.ts} +4 -4
  74. package/packages/_vue2/dist/src/components/content/content.vue.d.ts +26 -0
  75. package/packages/_vue2/dist/src/components/{render-content-variants/render-content-variants.types.d.ts → content-variants/content-variants.types.d.ts} +5 -5
  76. package/packages/_vue2/dist/src/components/{render-content-variants/render-content-variants.vue.d.ts → content-variants/content-variants.vue.d.ts} +9 -8
  77. package/packages/_vue2/dist/src/components/{render-content-variants → content-variants}/helpers.d.ts +4 -4
  78. package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
  79. package/packages/_vue2/dist/src/constants/target.d.ts +1 -1
  80. package/packages/_vue2/dist/src/context/builder.context.d.ts +1 -1
  81. package/packages/_vue2/dist/src/context/components.context.d.ts +7 -0
  82. package/packages/_vue2/dist/src/context/types.d.ts +1 -1
  83. package/packages/_vue2/dist/src/functions/{evaluate.d.ts → evaluate/evaluate.d.ts} +5 -2
  84. package/packages/_vue2/dist/src/functions/evaluate/index.d.ts +1 -0
  85. package/packages/_vue2/dist/src/functions/evaluate/interpreter.d.ts +2 -0
  86. package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime.d.ts +2 -0
  87. package/packages/_vue2/dist/src/functions/evaluate/types.d.ts +10 -0
  88. package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +1 -0
  89. package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +5 -1
  90. package/packages/_vue2/dist/src/functions/get-content/index.d.ts +2 -6
  91. package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +1 -1
  92. package/packages/_vue2/dist/src/functions/get-react-native-block-styles.d.ts +1 -1
  93. package/packages/_vue2/dist/src/functions/is-non-node-server.d.ts +4 -0
  94. package/packages/_vue2/dist/src/functions/register-component.d.ts +2 -1
  95. package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +2 -2
  96. package/packages/_vue2/dist/src/helpers/cookie.d.ts +2 -2
  97. package/packages/_vue2/dist/src/helpers/css.d.ts +1 -1
  98. package/packages/_vue2/dist/src/helpers/localStorage.d.ts +2 -2
  99. package/packages/_vue2/dist/src/helpers/preview-lru-cache/get.d.ts +1 -0
  100. package/packages/_vue2/dist/src/helpers/preview-lru-cache/helpers.d.ts +1 -0
  101. package/packages/_vue2/dist/src/helpers/preview-lru-cache/init.d.ts +6 -0
  102. package/packages/_vue2/dist/src/helpers/preview-lru-cache/set.d.ts +7 -0
  103. package/packages/_vue2/dist/src/helpers/preview-lru-cache/types.d.ts +12 -0
  104. package/packages/_vue2/dist/src/helpers/sessionId.d.ts +2 -2
  105. package/packages/_vue2/dist/src/helpers/visitorId.d.ts +1 -1
  106. package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +2 -2
  107. package/packages/_vue2/dist/src/index.d.ts +2 -2
  108. package/packages/_vue2/dist/src/types/builder-props.d.ts +9 -0
  109. package/packages/_vue2/dist/src/types/components.d.ts +8 -2
  110. package/packages/_vue2/dist/src/types/enforced-partials.d.ts +1 -1
  111. package/packages/_vue2/dist/src/types/targets.d.ts +1 -3
  112. package/packages/_vue2/dist/src/types/typescript.d.ts +3 -0
  113. package/packages/_vue2/dist/style.css +1 -1
  114. package/packages/_vue2/dist/{render-styles.b41f1309.js → styles.40b9604d.js} +7 -5
  115. package/packages/_vue2/dist/{render-styles.ba0e223a.cjs → styles.f4f6200a.cjs} +4 -4
  116. package/packages/_vue3/dist/block-wrapper.33cc2e78.js +54 -0
  117. package/packages/_vue3/dist/block-wrapper.d1ace9c6.cjs +1 -0
  118. package/packages/_vue3/dist/component-ref.20d41b64.js +111 -0
  119. package/packages/_vue3/dist/component-ref.7c98446d.cjs +1 -0
  120. package/packages/_vue3/dist/get-block-actions.1279eafb.js +79 -0
  121. package/packages/_vue3/dist/get-block-actions.9d2cfc9a.cjs +1 -0
  122. package/packages/_vue3/dist/index.a657fd9d.js +8094 -0
  123. package/packages/_vue3/dist/index.c5eee389.cjs +99 -0
  124. package/packages/_vue3/dist/repeated-block.48916c9e.js +33 -0
  125. package/packages/_vue3/dist/repeated-block.5aa51bc7.cjs +1 -0
  126. package/packages/_vue3/dist/sdk.cjs +1 -72
  127. package/packages/_vue3/dist/sdk.js +22 -3275
  128. package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +10 -6
  129. package/packages/_vue3/dist/src/blocks/button/component-info.d.ts +1 -1
  130. package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +18 -8
  131. package/packages/_vue3/dist/src/blocks/columns/component-info.d.ts +1 -1
  132. package/packages/_vue3/dist/src/blocks/custom-code/component-info.d.ts +1 -1
  133. package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +3 -3
  134. package/packages/_vue3/dist/src/blocks/embed/component-info.d.ts +1 -1
  135. package/packages/_vue3/dist/src/blocks/fragment/component-info.d.ts +1 -1
  136. package/packages/_vue3/dist/src/blocks/helpers.d.ts +13 -0
  137. package/packages/_vue3/dist/src/blocks/image/component-info.d.ts +1 -1
  138. package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +6 -6
  139. package/packages/_vue3/dist/src/blocks/img/component-info.d.ts +1 -1
  140. package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +9 -7
  141. package/packages/_vue3/dist/src/blocks/section/component-info.d.ts +1 -1
  142. package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +9 -6
  143. package/packages/_vue3/dist/src/blocks/symbol/component-info.d.ts +1 -1
  144. package/packages/_vue3/dist/src/blocks/symbol/symbol.helpers.d.ts +14 -0
  145. package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +20 -7
  146. package/packages/_vue3/dist/src/blocks/text/component-info.d.ts +1 -1
  147. package/packages/_vue3/dist/src/blocks/video/component-info.d.ts +1 -1
  148. package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +7 -3
  149. package/packages/_vue3/dist/src/components/block/block.helpers.d.ts +13 -0
  150. package/packages/{_vue2/dist/src/components/render-block/render-block.vue.d.ts → _vue3/dist/src/components/block/block.vue.d.ts} +3 -2
  151. package/packages/_vue3/dist/src/components/{render-block → block/components}/block-styles.vue.d.ts +4 -4
  152. package/packages/_vue3/dist/src/components/block/components/block-wrapper.vue.d.ts +29 -0
  153. package/packages/_vue3/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
  154. package/packages/_vue3/dist/src/components/block/components/component-ref/component-ref.vue.d.ts +2 -0
  155. package/packages/_vue3/dist/src/components/block/components/interactive-element.vue.d.ts +30 -0
  156. package/packages/_vue3/dist/src/components/{render-block/render-repeated-block.vue.d.ts → block/components/repeated-block.vue.d.ts} +3 -0
  157. package/packages/_vue3/dist/src/components/{render-blocks.vue.d.ts → blocks/blocks-wrapper.vue.d.ts} +6 -6
  158. package/packages/_vue3/dist/src/components/blocks/blocks.vue.d.ts +29 -0
  159. package/packages/_vue3/dist/src/components/{render-content/render-content.vue.d.ts → content/components/enable-editor.vue.d.ts} +18 -49
  160. package/packages/{_vue2/dist/src/components/render-content/components/render-styles.helpers.d.ts → _vue3/dist/src/components/content/components/styles.helpers.d.ts} +1 -1
  161. package/packages/_vue3/dist/src/components/content/content.helpers.d.ts +7 -0
  162. package/packages/{_vue2/dist/src/components/render-content/render-content.types.d.ts → _vue3/dist/src/components/content/content.types.d.ts} +4 -4
  163. package/packages/_vue3/dist/src/components/content/content.vue.d.ts +69 -0
  164. package/packages/_vue3/dist/src/components/{render-content-variants/render-content-variants.types.d.ts → content-variants/content-variants.types.d.ts} +5 -5
  165. package/packages/_vue3/dist/src/components/{render-content-variants/render-content-variants.vue.d.ts → content-variants/content-variants.vue.d.ts} +21 -20
  166. package/packages/_vue3/dist/src/components/{render-content-variants → content-variants}/helpers.d.ts +7 -7
  167. package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
  168. package/packages/_vue3/dist/src/constants/target.d.ts +1 -1
  169. package/packages/_vue3/dist/src/context/builder.context.d.ts +1 -1
  170. package/packages/_vue3/dist/src/context/components.context.d.ts +7 -0
  171. package/packages/_vue3/dist/src/context/types.d.ts +1 -1
  172. package/packages/_vue3/dist/src/functions/{evaluate.d.ts → evaluate/evaluate.d.ts} +5 -2
  173. package/packages/_vue3/dist/src/functions/evaluate/index.d.ts +1 -0
  174. package/packages/_vue3/dist/src/functions/evaluate/interpreter.d.ts +2 -0
  175. package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime.d.ts +2 -0
  176. package/packages/_vue3/dist/src/functions/evaluate/types.d.ts +10 -0
  177. package/packages/_vue3/dist/src/functions/get-block-actions.d.ts +1 -0
  178. package/packages/_vue3/dist/src/functions/get-block-properties.d.ts +5 -1
  179. package/packages/_vue3/dist/src/functions/get-content/index.d.ts +2 -6
  180. package/packages/_vue3/dist/src/functions/get-processed-block.d.ts +1 -1
  181. package/packages/_vue3/dist/src/functions/get-react-native-block-styles.d.ts +1 -1
  182. package/packages/_vue3/dist/src/functions/is-non-node-server.d.ts +4 -0
  183. package/packages/_vue3/dist/src/functions/register-component.d.ts +2 -1
  184. package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +2 -2
  185. package/packages/_vue3/dist/src/helpers/cookie.d.ts +2 -2
  186. package/packages/_vue3/dist/src/helpers/css.d.ts +1 -1
  187. package/packages/_vue3/dist/src/helpers/localStorage.d.ts +2 -2
  188. package/packages/_vue3/dist/src/helpers/preview-lru-cache/get.d.ts +1 -0
  189. package/packages/_vue3/dist/src/helpers/preview-lru-cache/helpers.d.ts +1 -0
  190. package/packages/_vue3/dist/src/helpers/preview-lru-cache/init.d.ts +6 -0
  191. package/packages/_vue3/dist/src/helpers/preview-lru-cache/set.d.ts +7 -0
  192. package/packages/_vue3/dist/src/helpers/preview-lru-cache/types.d.ts +12 -0
  193. package/packages/_vue3/dist/src/helpers/sessionId.d.ts +2 -2
  194. package/packages/_vue3/dist/src/helpers/visitorId.d.ts +1 -1
  195. package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +2 -2
  196. package/packages/_vue3/dist/src/index.d.ts +2 -2
  197. package/packages/_vue3/dist/src/types/builder-props.d.ts +9 -0
  198. package/packages/_vue3/dist/src/types/components.d.ts +8 -2
  199. package/packages/_vue3/dist/src/types/enforced-partials.d.ts +1 -1
  200. package/packages/_vue3/dist/src/types/targets.d.ts +1 -3
  201. package/packages/_vue3/dist/src/types/typescript.d.ts +3 -0
  202. package/packages/_vue3/dist/style.css +1 -1
  203. package/packages/_vue2/dist/block-styles.503c2141.cjs +0 -1
  204. package/packages/_vue2/dist/block-styles.76e698a7.js +0 -72
  205. package/packages/_vue2/dist/css.1601c108.js +0 -75
  206. package/packages/_vue2/dist/css.6d92c2ca.cjs +0 -6
  207. package/packages/_vue2/dist/evaluate.5365c739.js +0 -63
  208. package/packages/_vue2/dist/evaluate.97a0f474.cjs +0 -4
  209. package/packages/_vue2/dist/index.4de025de.cjs +0 -32
  210. package/packages/_vue2/dist/inlined-script.6a6ca760.cjs +0 -1
  211. package/packages/_vue2/dist/render-block.844495c0.js +0 -263
  212. package/packages/_vue2/dist/render-block.c0841b5d.cjs +0 -3
  213. package/packages/_vue2/dist/render-component.a3770d92.cjs +0 -1
  214. package/packages/_vue2/dist/render-component.a57a8b32.js +0 -38
  215. package/packages/_vue2/dist/render-content.19fe4991.cjs +0 -1
  216. package/packages/_vue2/dist/render-content.8d297efd.js +0 -1359
  217. package/packages/_vue2/dist/render-repeated-block.be86aae1.cjs +0 -1
  218. package/packages/_vue2/dist/render-repeated-block.f51da3f5.js +0 -38
  219. package/packages/_vue2/dist/src/blocks/util.d.ts +0 -4
  220. package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +0 -12
  221. package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +0 -16
  222. package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +0 -13
  223. package/packages/_vue2/dist/src/components/render-content/render-content.helpers.d.ts +0 -7
  224. package/packages/_vue3/dist/src/blocks/util.d.ts +0 -4
  225. package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +0 -12
  226. package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +0 -16
  227. package/packages/_vue3/dist/src/components/render-content/render-content.helpers.d.ts +0 -7
  228. /package/packages/_vue2/dist/src/components/{render-block → block}/types.d.ts +0 -0
  229. /package/packages/_vue2/dist/src/components/{render-content → content}/wrap-component-ref.d.ts +0 -0
  230. /package/packages/_vue3/dist/src/components/{render-block → block}/types.d.ts +0 -0
  231. /package/packages/_vue3/dist/src/components/{render-content/components/render-styles.vue.d.ts → content/components/styles.vue.d.ts} +0 -0
  232. /package/packages/_vue3/dist/src/components/{render-content → content}/wrap-component-ref.d.ts +0 -0
@@ -0,0 +1,31 @@
1
+ "use strict";const V=require("./index.1021dd83.cjs");function lt(){const e=()=>{var t;return typeof process<"u"&&((t=process==null?void 0:process.versions)==null?void 0:t.node)};return!V.isBrowser()&&!e()}const Ce=(e,t,i)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((s,a,o)=>Object(s[a])===s[a]?s[a]:s[a]=Math.abs(Number(r[o+1]))>>0===+r[o+1]?[]:{},e)[r[r.length-1]]=i,e};var ft=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],we=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],dt="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",Oe="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",ue={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},he="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",vt={5:he,"5module":he+" export import",6:he+" const class extends export import super"},yt=/^in(stanceof)?$/,mt=new RegExp("["+Oe+"]"),gt=new RegExp("["+Oe+dt+"]");function pe(e,t){for(var i=65536,r=0;r<t.length;r+=2){if(i+=t[r],i>e)return!1;if(i+=t[r+1],i>=e)return!0}return!1}function D(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&mt.test(String.fromCharCode(e)):t===!1?!1:pe(e,we)}function W(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&gt.test(String.fromCharCode(e)):t===!1?!1:pe(e,we)||pe(e,ft)}var _=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function O(e,t){return new _(e,{beforeExpr:!0,binop:t})}var T={beforeExpr:!0},C={startsExpr:!0},de={};function x(e,t){return t===void 0&&(t={}),t.keyword=e,de[e]=new _(e,t)}var u={num:new _("num",C),regexp:new _("regexp",C),string:new _("string",C),name:new _("name",C),privateId:new _("privateId",C),eof:new _("eof"),bracketL:new _("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new _("]"),braceL:new _("{",{beforeExpr:!0,startsExpr:!0}),braceR:new _("}"),parenL:new _("(",{beforeExpr:!0,startsExpr:!0}),parenR:new _(")"),comma:new _(",",T),semi:new _(";",T),colon:new _(":",T),dot:new _("."),question:new _("?",T),questionDot:new _("?."),arrow:new _("=>",T),template:new _("template"),invalidTemplate:new _("invalidTemplate"),ellipsis:new _("...",T),backQuote:new _("`",C),dollarBraceL:new _("${",{beforeExpr:!0,startsExpr:!0}),eq:new _("=",{beforeExpr:!0,isAssign:!0}),assign:new _("_=",{beforeExpr:!0,isAssign:!0}),incDec:new _("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new _("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:O("||",1),logicalAND:O("&&",2),bitwiseOR:O("|",3),bitwiseXOR:O("^",4),bitwiseAND:O("&",5),equality:O("==/!=/===/!==",6),relational:O("</>/<=/>=",7),bitShift:O("<</>>/>>>",8),plusMin:new _("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:O("%",10),star:O("*",10),slash:O("/",10),starstar:new _("**",{beforeExpr:!0}),coalesce:O("??",1),_break:x("break"),_case:x("case",T),_catch:x("catch"),_continue:x("continue"),_debugger:x("debugger"),_default:x("default",T),_do:x("do",{isLoop:!0,beforeExpr:!0}),_else:x("else",T),_finally:x("finally"),_for:x("for",{isLoop:!0}),_function:x("function",C),_if:x("if"),_return:x("return",T),_switch:x("switch"),_throw:x("throw",T),_try:x("try"),_var:x("var"),_const:x("const"),_while:x("while",{isLoop:!0}),_with:x("with"),_new:x("new",{beforeExpr:!0,startsExpr:!0}),_this:x("this",C),_super:x("super",C),_class:x("class",C),_extends:x("extends",T),_export:x("export"),_import:x("import",C),_null:x("null",C),_true:x("true",C),_false:x("false",C),_in:x("in",{beforeExpr:!0,binop:7}),_instanceof:x("instanceof",{beforeExpr:!0,binop:7}),_typeof:x("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:x("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:x("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},I=/\r\n?|\n|\u2028|\u2029/,Et=new RegExp(I.source,"g");function q(e){return e===10||e===13||e===8232||e===8233}function Te(e,t,i){i===void 0&&(i=e.length);for(var r=t;r<i;r++){var s=e.charCodeAt(r);if(q(s))return r<i-1&&s===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var Ae=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,A=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ie=Object.prototype,xt=Ie.hasOwnProperty,_t=Ie.toString,Q=Object.hasOwn||function(e,t){return xt.call(e,t)},be=Array.isArray||function(e){return _t.call(e)==="[object Array]"};function Y(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function G(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var bt=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,z=function(t,i){this.line=t,this.column=i};z.prototype.offset=function(t){return new z(this.line,this.column+t)};var se=function(t,i,r){this.start=i,this.end=r,t.sourceFile!==null&&(this.source=t.sourceFile)};function ke(e,t){for(var i=1,r=0;;){var s=Te(e,r,t);if(s<0)return new z(i,t-r);++i,r=s}}var le={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Se=!1;function St(e){var t={};for(var i in le)t[i]=e&&Q(e,i)?e[i]:le[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!Se&&typeof console=="object"&&console.warn&&(Se=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
2
+ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),be(t.onToken)){var r=t.onToken;t.onToken=function(s){return r.push(s)}}return be(t.onComment)&&(t.onComment=Rt(t,t.onComment)),t}function Rt(e,t){return function(i,r,s,a,o,h){var c={type:i?"Block":"Line",value:r,start:s,end:a};e.locations&&(c.loc=new se(this,o,h)),e.ranges&&(c.range=[s,a]),t.push(c)}}var K=1,X=2,ve=4,Le=8,Be=16,Fe=32,ye=64,Ve=128,Z=256,me=K|X|Z;function ge(e,t){return X|(e?ve:0)|(t?Le:0)}var te=0,Ee=1,M=2,Me=3,De=4,Ue=5,N=function(t,i,r){this.options=t=St(t),this.sourceFile=t.sourceFile,this.keywords=Y(vt[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";t.allowReserved!==!0&&(s=ue[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(s+=" await")),this.reservedWords=Y(s);var a=(s?s+" ":"")+ue.strict;this.reservedWordsStrict=Y(a),this.reservedWordsStrictBind=Y(a+" "+ue.strictBind),this.input=String(i),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
3
+ `,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(I).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=u.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(K),this.regexpState=null,this.privateNameStack=[]},F={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};N.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};F.inFunction.get=function(){return(this.currentVarScope().flags&X)>0};F.inGenerator.get=function(){return(this.currentVarScope().flags&Le)>0&&!this.currentVarScope().inClassFieldInit};F.inAsync.get=function(){return(this.currentVarScope().flags&ve)>0&&!this.currentVarScope().inClassFieldInit};F.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Z)return!1;if(t.flags&X)return(t.flags&ve)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};F.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&ye)>0||i||this.options.allowSuperOutsideMethod};F.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ve)>0};F.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};F.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(X|Z))>0||i};F.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Z)>0};N.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var r=this,s=0;s<t.length;s++)r=t[s](r);return r};N.parse=function(t,i){return new this(i,t).parse()};N.parseExpressionAt=function(t,i,r){var s=new this(r,t,i);return s.nextToken(),s.parseExpression()};N.tokenizer=function(t,i){return new this(i,t)};Object.defineProperties(N.prototype,F);var P=N.prototype,Nt=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;P.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){A.lastIndex=e,e+=A.exec(this.input)[0].length;var t=Nt.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){A.lastIndex=e+t[0].length;var i=A.exec(this.input),r=i.index+i[0].length,s=this.input.charAt(r);return s===";"||s==="}"||I.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||s==="!"&&this.input.charAt(r+1)==="=")}e+=t[0].length,A.lastIndex=e,e+=A.exec(this.input)[0].length,this.input[e]===";"&&e++}};P.eat=function(e){return this.type===e?(this.next(),!0):!1};P.isContextual=function(e){return this.type===u.name&&this.value===e&&!this.containsEsc};P.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};P.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};P.canInsertSemicolon=function(){return this.type===u.eof||this.type===u.braceR||I.test(this.input.slice(this.lastTokEnd,this.start))};P.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};P.semicolon=function(){!this.eat(u.semi)&&!this.insertSemicolon()&&this.unexpected()};P.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};P.expect=function(e){this.eat(e)||this.unexpected()};P.unexpected=function(e){this.raise(e!=null?e:this.start,"Unexpected token")};var ae=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};P.checkPatternErrors=function(e,t){if(!!e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}};P.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,r=e.doubleProto;if(!t)return i>=0||r>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")};P.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};P.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var d=N.prototype;d.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==u.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var r=0,s=Object.keys(this.undefinedExports);r<s.length;r+=1){var a=s[r];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var xe={kind:"loop"},Pt={kind:"switch"};d.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;A.lastIndex=this.pos;var t=A.exec(this.input),i=this.pos+t[0].length,r=this.input.charCodeAt(i);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(D(r,!0)){for(var s=i+1;W(r=this.input.charCodeAt(s),!0);)++s;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(i,s);if(!yt.test(a))return!0}return!1};d.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;A.lastIndex=this.pos;var e=A.exec(this.input),t=this.pos+e[0].length,i;return!I.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(W(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))};d.parseStatement=function(e,t,i){var r=this.type,s=this.startNode(),a;switch(this.isLet(e)&&(r=u._var,a="let"),r){case u._break:case u._continue:return this.parseBreakContinueStatement(s,r.keyword);case u._debugger:return this.parseDebuggerStatement(s);case u._do:return this.parseDoStatement(s);case u._for:return this.parseForStatement(s);case u._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case u._class:return e&&this.unexpected(),this.parseClass(s,!0);case u._if:return this.parseIfStatement(s);case u._return:return this.parseReturnStatement(s);case u._switch:return this.parseSwitchStatement(s);case u._throw:return this.parseThrowStatement(s);case u._try:return this.parseTryStatement(s);case u._const:case u._var:return a=a||this.value,e&&a!=="var"&&this.unexpected(),this.parseVarStatement(s,a);case u._while:return this.parseWhileStatement(s);case u._with:return this.parseWithStatement(s);case u.braceL:return this.parseBlock(!0,s);case u.semi:return this.parseEmptyStatement(s);case u._export:case u._import:if(this.options.ecmaVersion>10&&r===u._import){A.lastIndex=this.pos;var o=A.exec(this.input),h=this.pos+o[0].length,c=this.input.charCodeAt(h);if(c===40||c===46)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===u._import?this.parseImport(s):this.parseExport(s,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var p=this.value,l=this.parseExpression();return r===u.name&&l.type==="Identifier"&&this.eat(u.colon)?this.parseLabeledStatement(s,p,l,e):this.parseExpressionStatement(s,l)}};d.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(u.semi)||this.insertSemicolon()?e.label=null:this.type!==u.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var s=this.labels[r];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(i||s.kind==="loop")||e.label&&i))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")};d.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};d.parseDoStatement=function(e){return this.next(),this.labels.push(xe),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(u._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(u.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};d.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(xe),this.enterScope(0),this.expect(u.parenL),this.type===u.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===u._var||this.type===u._const||i){var r=this.startNode(),s=i?"let":this.value;return this.next(),this.parseVar(r,!0,s),this.finishNode(r,"VariableDeclaration"),(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual("let"),o=!1,h=new ae,c=this.parseExpression(t>-1?"await":!0,h);return this.type===u._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),a&&o&&this.raise(c.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(c,!1,h),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(h,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))};d.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,J|(i?0:fe),!1,t)};d.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(u._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};d.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(u.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};d.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(u.braceL),this.labels.push(Pt),this.enterScope(0);for(var t,i=!1;this.type!==u.braceR;)if(this.type===u._case||this.type===u._default){var r=this.type===u._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(u.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};d.parseThrowStatement=function(e){return this.next(),I.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Ct=[];d.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===u._catch){var t=this.startNode();if(this.next(),this.eat(u.parenL)){t.param=this.parseBindingAtom();var i=t.param.type==="Identifier";this.enterScope(i?Fe:0),this.checkLValPattern(t.param,i?De:M),this.expect(u.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(u._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};d.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")};d.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(xe),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};d.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};d.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};d.parseLabeledStatement=function(e,t,i,r){for(var s=0,a=this.labels;s<a.length;s+=1){var o=a[s];o.name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var h=this.type.isLoop?"loop":this.type===u._switch?"switch":null,c=this.labels.length-1;c>=0;c--){var p=this.labels[c];if(p.statementStart===e.start)p.statementStart=this.start,p.kind=h;else break}return this.labels.push({name:t,kind:h,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")};d.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};d.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(u.braceL),e&&this.enterScope(0);this.type!==u.braceR;){var r=this.parseStatement(null);t.body.push(r)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};d.parseFor=function(e,t){return e.init=t,this.expect(u.semi),e.test=this.type===u.semi?null:this.parseExpression(),this.expect(u.semi),e.update=this.type===u.parenR?null:this.parseExpression(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};d.parseForIn=function(e,t){var i=this.type===u._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")};d.parseVar=function(e,t,i){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(u.eq)?r.init=this.parseMaybeAssign(t):i==="const"&&!(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():r.id.type!=="Identifier"&&!(t&&(this.type===u._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(u.comma))break}return e};d.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Ee:M,!1)};var J=1,fe=2,Ge=4;d.parseFunction=function(e,t,i,r,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===u.star&&t&fe&&this.unexpected(),e.generator=this.eat(u.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&J&&(e.id=t&Ge&&this.type!==u.name?null:this.parseIdent(),e.id&&!(t&fe)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Ee:M:Me));var a=this.yieldPos,o=this.awaitPos,h=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ge(e.async,e.generator)),t&J||(e.id=this.type===u.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,s),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=h,this.finishNode(e,t&J?"FunctionDeclaration":"FunctionExpression")};d.parseFunctionParams=function(e){this.expect(u.parenL),e.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};d.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),s=this.startNode(),a=!1;for(s.body=[],this.expect(u.braceL);this.type!==u.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(s.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(a&&this.raise(o.start,"Duplicate constructor in the same class"),a=!0):o.key&&o.key.type==="PrivateIdentifier"&&wt(r,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};d.parseClassElement=function(e){if(this.eat(u.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),r="",s=!1,a=!1,o="method",h=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(u.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===u.star?h=!0:r="static"}if(i.static=h,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===u.star)&&!this.canInsertSemicolon()?a=!0:r="async"),!r&&(t>=9||!a)&&this.eat(u.star)&&(s=!0),!r&&!a&&!s){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=r,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===u.parenL||o!=="method"||s||a){var p=!i.static&&ie(i,"constructor"),l=p&&e;p&&o!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=p?"constructor":o,this.parseClassMethod(i,s,a,l)}else this.parseClassField(i);return i};d.isClassElementNameStart=function(){return this.type===u.name||this.type===u.privateId||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword};d.parseClassElementName=function(e){this.type===u.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};d.parseClassMethod=function(e,t,i,r){var s=e.key;e.kind==="constructor"?(t&&this.raise(s.start,"Constructor can't be a generator"),i&&this.raise(s.start,"Constructor can't be an async method")):e.static&&ie(e,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,i,r);return e.kind==="get"&&a.params.length!==0&&this.raiseRecoverable(a.start,"getter should have no params"),e.kind==="set"&&a.params.length!==1&&this.raiseRecoverable(a.start,"setter should have exactly one param"),e.kind==="set"&&a.params[0].type==="RestElement"&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};d.parseClassField=function(e){if(ie(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&ie(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(u.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};d.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Z|ye);this.type!==u.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};d.parseClassId=function(e,t){this.type===u.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,M,!1)):(t===!0&&this.unexpected(),e.id=null)};d.parseClassSuper=function(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts(null,!1):null};d.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};d.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,i=e.used,r=this.privateNameStack.length,s=r===0?null:this.privateNameStack[r-1],a=0;a<i.length;++a){var o=i[a];Q(t,o.name)||(s?s.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function wt(e,t){var i=t.key.name,r=e[i],s="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(s=(t.static?"s":"i")+t.kind),r==="iget"&&s==="iset"||r==="iset"&&s==="iget"||r==="sget"&&s==="sset"||r==="sset"&&s==="sget"?(e[i]="true",!1):r?!0:(e[i]=s,!1)}function ie(e,t){var i=e.computed,r=e.key;return!i&&(r.type==="Identifier"&&r.name===t||r.type==="Literal"&&r.value===t)}d.parseExport=function(e,t){if(this.next(),this.eat(u.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==u.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(u._default)){this.checkExport(t,"default",this.lastTokStart);var i;if(this.type===u._function||(i=this.isAsyncFunction())){var r=this.startNode();this.next(),i&&this.next(),e.declaration=this.parseFunction(r,J|Ge,!1,i)}else if(this.type===u._class){var s=this.startNode();e.declaration=this.parseClass(s,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==u.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var h=o[a];this.checkUnreserved(h.local),this.checkLocalExport(h.local),h.local.type==="Literal"&&this.raise(h.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};d.checkExport=function(e,t,i){!e||(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Q(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)};d.checkPatternExport=function(e,t){var i=t.type;if(i==="Identifier")this.checkExport(e,t,t.start);else if(i==="ObjectPattern")for(var r=0,s=t.properties;r<s.length;r+=1){var a=s[r];this.checkPatternExport(e,a)}else if(i==="ArrayPattern")for(var o=0,h=t.elements;o<h.length;o+=1){var c=h[o];c&&this.checkPatternExport(e,c)}else i==="Property"?this.checkPatternExport(e,t.value):i==="AssignmentPattern"?this.checkPatternExport(e,t.left):i==="RestElement"?this.checkPatternExport(e,t.argument):i==="ParenthesizedExpression"&&this.checkPatternExport(e,t.expression)};d.checkVariableExport=function(e,t){if(!!e)for(var i=0,r=t;i<r.length;i+=1){var s=r[i];this.checkPatternExport(e,s.id)}};d.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};d.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(u.braceL);!this.eat(u.braceR);){if(i)i=!1;else if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break;var r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local,this.checkExport(e,r.exported,r.exported.start),t.push(this.finishNode(r,"ExportSpecifier"))}return t};d.parseImport=function(e){return this.next(),this.type===u.string?(e.specifiers=Ct,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===u.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};d.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===u.name){var i=this.startNode();if(i.local=this.parseIdent(),this.checkLValSimple(i.local,M),e.push(this.finishNode(i,"ImportDefaultSpecifier")),!this.eat(u.comma))return e}if(this.type===u.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLValSimple(r.local,M),e.push(this.finishNode(r,"ImportNamespaceSpecifier")),e}for(this.expect(u.braceL);!this.eat(u.braceR);){if(t)t=!1;else if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break;var s=this.startNode();s.imported=this.parseModuleExportName(),this.eatContextual("as")?s.local=this.parseIdent():(this.checkUnreserved(s.imported),s.local=s.imported),this.checkLValSimple(s.local,M),e.push(this.finishNode(s,"ImportSpecifier"))}return e};d.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===u.string){var e=this.parseLiteral(this.value);return bt.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};d.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};d.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var B=N.prototype;B.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var r=0,s=e.properties;r<s.length;r+=1){var a=s[r];this.toAssignable(a,t),a.type==="RestElement"&&(a.argument.type==="ArrayPattern"||a.argument.type==="ObjectPattern")&&this.raise(a.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e};B.toAssignableList=function(e,t){for(var i=e.length,r=0;r<i;r++){var s=e[r];s&&this.toAssignable(s,t)}if(i){var a=e[i-1];this.options.ecmaVersion===6&&t&&a&&a.type==="RestElement"&&a.argument.type!=="Identifier"&&this.unexpected(a.argument.start)}return e};B.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};B.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==u.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};B.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case u.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(u.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case u.braceL:return this.parseObj(!0)}return this.parseIdent()};B.parseBindingList=function(e,t,i){for(var r=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(u.comma),t&&this.type===u.comma)r.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===u.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===u.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else{var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}}return r};B.parseBindingListItem=function(e){return e};B.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(u.eq))return i;var r=this.startNodeAt(e,t);return r.left=i,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};B.checkLValSimple=function(e,t,i){t===void 0&&(t=te);var r=t!==te;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(t===M&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(Q(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==Ue&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}};B.checkLValPattern=function(e,t,i){switch(t===void 0&&(t=te),e.type){case"ObjectPattern":for(var r=0,s=e.properties;r<s.length;r+=1){var a=s[r];this.checkLValInnerPattern(a,t,i)}break;case"ArrayPattern":for(var o=0,h=e.elements;o<h.length;o+=1){var c=h[o];c&&this.checkLValInnerPattern(c,t,i)}break;default:this.checkLValSimple(e,t,i)}};B.checkLValInnerPattern=function(e,t,i){switch(t===void 0&&(t=te),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var L=function(t,i,r,s,a){this.token=t,this.isExpr=!!i,this.preserveSpace=!!r,this.override=s,this.generator=!!a},S={b_stat:new L("{",!1),b_expr:new L("{",!0),b_tmpl:new L("${",!1),p_stat:new L("(",!1),p_expr:new L("(",!0),q_tmpl:new L("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new L("function",!1),f_expr:new L("function",!0),f_expr_gen:new L("function",!0,!1,null,!0),f_gen:new L("function",!1,!1,null,!0)},H=N.prototype;H.initialContext=function(){return[S.b_stat]};H.curContext=function(){return this.context[this.context.length-1]};H.braceIsBlock=function(e){var t=this.curContext();return t===S.f_expr||t===S.f_stat?!0:e===u.colon&&(t===S.b_stat||t===S.b_expr)?!t.isExpr:e===u._return||e===u.name&&this.exprAllowed?I.test(this.input.slice(this.lastTokEnd,this.start)):e===u._else||e===u.semi||e===u.eof||e===u.parenR||e===u.arrow?!0:e===u.braceL?t===S.b_stat:e===u._var||e===u._const||e===u.name?!1:!this.exprAllowed};H.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};H.updateContext=function(e){var t,i=this.type;i.keyword&&e===u.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr};H.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};u.parenR.updateContext=u.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===S.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};u.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?S.b_stat:S.b_expr),this.exprAllowed=!0};u.dollarBraceL.updateContext=function(){this.context.push(S.b_tmpl),this.exprAllowed=!0};u.parenL.updateContext=function(e){var t=e===u._if||e===u._for||e===u._with||e===u._while;this.context.push(t?S.p_stat:S.p_expr),this.exprAllowed=!0};u.incDec.updateContext=function(){};u._function.updateContext=u._class.updateContext=function(e){e.beforeExpr&&e!==u._else&&!(e===u.semi&&this.curContext()!==S.p_stat)&&!(e===u._return&&I.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===u.colon||e===u.braceL)&&this.curContext()===S.b_stat)?this.context.push(S.f_expr):this.context.push(S.f_stat),this.exprAllowed=!1};u.backQuote.updateContext=function(){this.curContext()===S.q_tmpl?this.context.pop():this.context.push(S.q_tmpl),this.exprAllowed=!1};u.star.updateContext=function(e){if(e===u._function){var t=this.context.length-1;this.context[t]===S.f_expr?this.context[t]=S.f_expr_gen:this.context[t]=S.f_gen}this.exprAllowed=!0};u.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==u.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var m=N.prototype;m.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,s;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){s==="__proto__"&&a==="init"&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);return}s="$"+s;var o=t[s];if(o){var h;a==="init"?h=this.strict&&o.init||o.get||o.set:h=o.init||o[a],h&&this.raiseRecoverable(r.start,"Redefinition of property")}else o=t[s]={init:!1,get:!1,set:!1};o[a]=!0}};m.parseExpression=function(e,t){var i=this.start,r=this.startLoc,s=this.parseMaybeAssign(e,t);if(this.type===u.comma){var a=this.startNodeAt(i,r);for(a.expressions=[s];this.eat(u.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return s};m.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,s=-1,a=-1,o=-1;t?(s=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ae,r=!0);var h=this.start,c=this.startLoc;(this.type===u.parenL||this.type===u.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var p=this.parseMaybeConditional(e,t);if(i&&(p=i.call(this,p,h,c)),this.type.isAssign){var l=this.startNodeAt(h,c);return l.operator=this.value,this.type===u.eq&&(p=this.toAssignable(p,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=p.start&&(t.shorthandAssign=-1),this.type===u.eq?this.checkLValPattern(p):this.checkLValSimple(p),l.left=p,this.next(),l.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(l,"AssignmentExpression")}else r&&this.checkExpressionErrors(t,!0);return s>-1&&(t.parenthesizedAssign=s),a>-1&&(t.trailingComma=a),p};m.parseMaybeConditional=function(e,t){var i=this.start,r=this.startLoc,s=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return s;if(this.eat(u.question)){var a=this.startNodeAt(i,r);return a.test=s,a.consequent=this.parseMaybeAssign(),this.expect(u.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return s};m.parseExprOps=function(e,t){var i=this.start,r=this.startLoc,s=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||s.start===i&&s.type==="ArrowFunctionExpression"?s:this.parseExprOp(s,i,r,-1,e)};m.parseExprOp=function(e,t,i,r,s){var a=this.type.binop;if(a!=null&&(!s||this.type!==u._in)&&a>r){var o=this.type===u.logicalOR||this.type===u.logicalAND,h=this.type===u.coalesce;h&&(a=u.logicalAND.binop);var c=this.value;this.next();var p=this.start,l=this.startLoc,y=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),p,l,a,s),g=this.buildBinary(t,i,e,y,c,o||h);return(o&&this.type===u.coalesce||h&&(this.type===u.logicalOR||this.type===u.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(g,t,i,r,s)}return e};m.buildBinary=function(e,t,i,r,s,a){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=i,o.operator=s,o.right=r,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")};m.parseMaybeUnary=function(e,t,i,r){var s=this.start,a=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var h=this.startNode(),c=this.type===u.incDec;h.operator=this.value,h.prefix=!0,this.next(),h.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(h.argument):this.strict&&h.operator==="delete"&&h.argument.type==="Identifier"?this.raiseRecoverable(h.start,"Deleting local variable in strict mode"):h.operator==="delete"&&je(h.argument)?this.raiseRecoverable(h.start,"Private fields can not be deleted"):t=!0,o=this.finishNode(h,c?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===u.privateId)(r||this.privateNameStack.length===0)&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==u._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var p=this.startNodeAt(s,a);p.operator=this.value,p.prefix=!1,p.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(p,"UpdateExpression")}}if(!i&&this.eat(u.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(s,a,o,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return o};function je(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&je(e.expression)}m.parseExprSubscripts=function(e,t){var i=this.start,r=this.startLoc,s=this.parseExprAtom(e,t);if(s.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return s;var a=this.parseSubscripts(s,i,r,!1,t);return e&&a.type==="MemberExpression"&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a};m.parseSubscripts=function(e,t,i,r,s){for(var a=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var h=this.parseSubscript(e,t,i,r,a,o,s);if(h.optional&&(o=!0),h===e||h.type==="ArrowFunctionExpression"){if(o){var c=this.startNodeAt(t,i);c.expression=h,h=this.finishNode(c,"ChainExpression")}return h}e=h}};m.parseSubscript=function(e,t,i,r,s,a,o){var h=this.options.ecmaVersion>=11,c=h&&this.eat(u.questionDot);r&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var p=this.eat(u.bracketL);if(p||c&&this.type!==u.parenL&&this.type!==u.backQuote||this.eat(u.dot)){var l=this.startNodeAt(t,i);l.object=e,p?(l.property=this.parseExpression(),this.expect(u.bracketR)):this.type===u.privateId&&e.type!=="Super"?l.property=this.parsePrivateIdent():l.property=this.parseIdent(this.options.allowReserved!=="never"),l.computed=!!p,h&&(l.optional=c),e=this.finishNode(l,"MemberExpression")}else if(!r&&this.eat(u.parenL)){var y=new ae,g=this.yieldPos,b=this.awaitPos,v=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var R=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1,y);if(s&&!c&&!this.canInsertSemicolon()&&this.eat(u.arrow))return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=g,this.awaitPos=b,this.awaitIdentPos=v,this.parseArrowExpression(this.startNodeAt(t,i),R,!0,o);this.checkExpressionErrors(y,!0),this.yieldPos=g||this.yieldPos,this.awaitPos=b||this.awaitPos,this.awaitIdentPos=v||this.awaitIdentPos;var w=this.startNodeAt(t,i);w.callee=e,w.arguments=R,h&&(w.optional=c),e=this.finishNode(w,"CallExpression")}else if(this.type===u.backQuote){(c||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var k=this.startNodeAt(t,i);k.tag=e,k.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(k,"TaggedTemplateExpression")}return e};m.parseExprAtom=function(e,t){this.type===u.slash&&this.readRegexp();var i,r=this.potentialArrowAt===this.start;switch(this.type){case u._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===u.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==u.dot&&this.type!==u.bracketL&&this.type!==u.parenL&&this.unexpected(),this.finishNode(i,"Super");case u._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case u.name:var s=this.start,a=this.startLoc,o=this.containsEsc,h=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&h.name==="async"&&!this.canInsertSemicolon()&&this.eat(u._function))return this.overrideContext(S.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(u.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[h],!1,t);if(this.options.ecmaVersion>=8&&h.name==="async"&&this.type===u.name&&!o&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return h=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(u.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[h],!0,t)}return h;case u.regexp:var c=this.value;return i=this.parseLiteral(c.value),i.regex={pattern:c.pattern,flags:c.flags},i;case u.num:case u.string:return this.parseLiteral(this.value);case u._null:case u._true:case u._false:return i=this.startNode(),i.value=this.type===u._null?null:this.type===u._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case u.parenL:var p=this.start,l=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),l;case u.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(u.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case u.braceL:return this.overrideContext(S.b_expr),this.parseObj(!1,e);case u._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case u._class:return this.parseClass(this.startNode(),!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate();case u._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}};m.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case u.parenL:return this.parseDynamicImport(e);case u.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}};m.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(u.parenR)){var t=this.start;this.eat(u.comma)&&this.eat(u.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};m.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};m.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};m.parseParenExpression=function(){this.expect(u.parenL);var e=this.parseExpression();return this.expect(u.parenR),e};m.parseParenAndDistinguishExpression=function(e,t){var i=this.start,r=this.startLoc,s,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,h=this.startLoc,c=[],p=!0,l=!1,y=new ae,g=this.yieldPos,b=this.awaitPos,v;for(this.yieldPos=0,this.awaitPos=0;this.type!==u.parenR;)if(p?p=!1:this.expect(u.comma),a&&this.afterTrailingComma(u.parenR,!0)){l=!0;break}else if(this.type===u.ellipsis){v=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===u.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else c.push(this.parseMaybeAssign(!1,y,this.parseParenItem));var R=this.lastTokEnd,w=this.lastTokEndLoc;if(this.expect(u.parenR),e&&!this.canInsertSemicolon()&&this.eat(u.arrow))return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=g,this.awaitPos=b,this.parseParenArrowList(i,r,c,t);(!c.length||l)&&this.unexpected(this.lastTokStart),v&&this.unexpected(v),this.checkExpressionErrors(y,!0),this.yieldPos=g||this.yieldPos,this.awaitPos=b||this.awaitPos,c.length>1?(s=this.startNodeAt(o,h),s.expressions=c,this.finishNodeAt(s,"SequenceExpression",R,w)):s=c[0]}else s=this.parseParenExpression();if(this.options.preserveParens){var k=this.startNodeAt(i,r);return k.expression=s,this.finishNode(k,"ParenthesizedExpression")}else return s};m.parseParenItem=function(e){return e};m.parseParenArrowList=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,r)};var Ot=[];m.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(u.dot)){e.meta=t;var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,s=this.startLoc,a=this.type===u._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,s,!0,!1),a&&e.callee.type==="ImportExpression"&&this.raise(r,"Cannot use new with import()"),this.eat(u.parenL)?e.arguments=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Ot,this.finishNode(e,"NewExpression")};m.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===u.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
4
+ `),cooked:this.value},this.next(),i.tail=this.type===u.backQuote,this.finishNode(i,"TemplateElement")};m.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(i.quasis=[r];!r.tail;)this.type===u.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(u.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(u.braceR),i.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")};m.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===u.name||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===u.star)&&!I.test(this.input.slice(this.lastTokEnd,this.start))};m.parseObj=function(e,t){var i=this.startNode(),r=!0,s={};for(i.properties=[],this.next();!this.eat(u.braceR);){if(r)r=!1;else if(this.expect(u.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(u.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,s,t),i.properties.push(a)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")};m.parseProperty=function(e,t){var i=this.startNode(),r,s,a,o;if(this.options.ecmaVersion>=9&&this.eat(u.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===u.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===u.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(u.star)));var h=this.containsEsc;return this.parsePropertyName(i),!e&&!h&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(i)?(s=!0,r=this.options.ecmaVersion>=9&&this.eat(u.star),this.parsePropertyName(i)):s=!1,this.parsePropertyValue(i,e,r,s,a,o,t,h),this.finishNode(i,"Property")};m.parsePropertyValue=function(e,t,i,r,s,a,o,h){if((i||r)&&this.type===u.colon&&this.unexpected(),this.eat(u.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===u.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,r);else if(!t&&!h&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==u.comma&&this.type!==u.braceR&&this.type!==u.eq){(i||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c=e.kind==="get"?0:1;if(e.value.params.length!==c){var p=e.value.start;e.kind==="get"?this.raiseRecoverable(p,"getter should have no params"):this.raiseRecoverable(p,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=s),e.kind="init",t?e.value=this.parseMaybeDefault(s,a,this.copyNode(e.key)):this.type===u.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};m.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(u.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(u.bracketR),e.key;e.computed=!1}return e.key=this.type===u.num||this.type===u.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};m.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};m.parseMethod=function(e,t,i){var r=this.startNode(),s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ge(t,r.generator)|ye|(i?Ve:0)),this.expect(u.parenL),r.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")};m.parseArrowExpression=function(e,t,i,r){var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(ge(i,!1)|Be),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};m.parseFunctionBody=function(e,t,i,r){var s=t&&this.type!==u.braceL,a=this.strict,o=!1;if(s)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var h=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||h)&&(o=this.strictDirective(this.end),o&&h&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Ue),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()};m.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){var r=i[t];if(r.type!=="Identifier")return!1}return!0};m.checkParams=function(e,t){for(var i=Object.create(null),r=0,s=e.params;r<s.length;r+=1){var a=s[r];this.checkLValInnerPattern(a,Ee,t?null:i)}};m.parseExprList=function(e,t,i,r){for(var s=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(u.comma),t&&this.afterTrailingComma(e))break;var o=void 0;i&&this.type===u.comma?o=null:this.type===u.ellipsis?(o=this.parseSpread(r),r&&this.type===u.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),s.push(o)}return s};m.checkUnreserved=function(e){var t=e.start,i=e.end,r=e.name;if(this.inGenerator&&r==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&r==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(r==="arguments"||r==="await")&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,i).indexOf("\\")!==-1)){var s=this.strict?this.reservedWordsStrict:this.reservedWords;s.test(r)&&(!this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))}};m.parseIdent=function(e){var t=this.startNode();return this.type===u.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name==="class"||t.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};m.parsePrivateIdent=function(){var e=this.startNode();return this.type===u.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e};m.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===u.semi||this.canInsertSemicolon()||this.type!==u.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(u.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};m.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var re=N.prototype;re.raise=function(e,t){var i=ke(this.input,e);t+=" ("+i.line+":"+i.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=i,r.raisedAt=this.pos,r};re.raiseRecoverable=re.raise;re.curPosition=function(){if(this.options.locations)return new z(this.curLine,this.pos-this.lineStart)};var j=N.prototype,Tt=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};j.enterScope=function(e){this.scopeStack.push(new Tt(e))};j.exitScope=function(){this.scopeStack.pop()};j.treatFunctionsAsVarInScope=function(e){return e.flags&X||!this.inModule&&e.flags&K};j.declareName=function(e,t,i){var r=!1;if(t===M){var s=this.currentScope();r=s.lexical.indexOf(e)>-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&s.flags&K&&delete this.undefinedExports[e]}else if(t===De){var a=this.currentScope();a.lexical.push(e)}else if(t===Me){var o=this.currentScope();this.treatFunctionsAsVar?r=o.lexical.indexOf(e)>-1:r=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var h=this.scopeStack.length-1;h>=0;--h){var c=this.scopeStack[h];if(c.lexical.indexOf(e)>-1&&!(c.flags&Fe&&c.lexical[0]===e)||!this.treatFunctionsAsVarInScope(c)&&c.functions.indexOf(e)>-1){r=!0;break}if(c.var.push(e),this.inModule&&c.flags&K&&delete this.undefinedExports[e],c.flags&me)break}r&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")};j.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};j.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};j.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&me)return t}};j.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&me&&!(t.flags&Be))return t}};var ne=function(t,i,r){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new se(t,r)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},$=N.prototype;$.startNode=function(){return new ne(this,this.start,this.startLoc)};$.startNodeAt=function(e,t){return new ne(this,e,t)};function Ye(e,t,i,r){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=i),e}$.finishNode=function(e,t){return Ye.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};$.finishNodeAt=function(e,t,i,r){return Ye.call(this,e,t,i,r)};$.copyNode=function(e){var t=new ne(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var We="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",qe=We+" Extended_Pictographic",Xe=qe,He=Xe+" EBase EComp EMod EPres ExtPict",Je=He,At=Je,It={9:We,10:qe,11:Xe,12:He,13:Je,14:At},Re="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ze="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Ke=ze+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Qe=Ke+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ze=Qe+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",$e=Ze+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",kt=$e+" Kawi Nag_Mundari Nagm",Lt={9:ze,10:Ke,11:Qe,12:Ze,13:$e,14:kt},et={};function Bt(e){var t=et[e]={binary:Y(It[e]+" "+Re),nonBinary:{General_Category:Y(Re),Script:Y(Lt[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var ce=0,Ne=[9,10,11,12,13,14];ce<Ne.length;ce+=1){var Ft=Ne[ce];Bt(Ft)}var f=N.prototype,U=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":""),this.unicodeProperties=et[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};U.prototype.reset=function(t,i,r){var s=r.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=r,this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchN=s&&this.parser.options.ecmaVersion>=9};U.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};U.prototype.at=function(t,i){i===void 0&&(i=!1);var r=this.source,s=r.length;if(t>=s)return-1;var a=r.charCodeAt(t);if(!(i||this.switchU)||a<=55295||a>=57344||t+1>=s)return a;var o=r.charCodeAt(t+1);return o>=56320&&o<=57343?(a<<10)+o-56613888:a};U.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var r=this.source,s=r.length;if(t>=s)return s;var a=r.charCodeAt(t),o;return!(i||this.switchU)||a<=55295||a>=57344||t+1>=s||(o=r.charCodeAt(t+1))<56320||o>57343?t+1:t+2};U.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};U.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};U.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};U.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1};f.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,r=0;r<i.length;r++){var s=i.charAt(r);t.indexOf(s)===-1&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(s,r+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}};f.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))};f.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var r=i[t];e.groupNames.indexOf(r)===-1&&e.raise("Invalid named capture referenced")}};f.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};f.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};f.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};f.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1};f.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};f.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};f.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var r=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return s!==-1&&s<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1};f.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};f.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};f.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1};f.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};f.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};f.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};f.regexp_eatSyntaxCharacter=function(e){var t=e.current();return tt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function tt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}f.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!tt(i);)e.advance();return e.pos!==t};f.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};f.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};f.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};f.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=G(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=G(e.lastIntValue);return!0}return!1};f.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),Vt(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Vt(e){return D(e,!0)||e===36||e===95}f.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),Mt(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Mt(e){return W(e,!0)||e===36||e===95||e===8204||e===8205}f.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};f.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1};f.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};f.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};f.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};f.regexp_eatZero=function(e){return e.current()===48&&!oe(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};f.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};f.regexp_eatControlLetter=function(e){var t=e.current();return it(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function it(e){return e>=65&&e<=90||e>=97&&e<=122}f.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(r&&s>=55296&&s<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(s-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=s}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Dt(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function Dt(e){return e>=0&&e<=1114111}f.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};f.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};f.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Ut(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1};function Ut(e){return e===100||e===68||e===115||e===83||e===119||e===87}f.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s),!0}return!1};f.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){Q(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")};f.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")};f.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";rt(t=e.current());)e.lastStringValue+=G(t),e.advance();return e.lastStringValue!==""};function rt(e){return it(e)||e===95}f.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Gt(t=e.current());)e.lastStringValue+=G(t),e.advance();return e.lastStringValue!==""};function Gt(e){return rt(e)||oe(e)}f.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};f.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1};f.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}};f.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||nt(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return r!==93?(e.lastIntValue=r,e.advance(),!0):!1};f.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};f.regexp_eatClassControlLetter=function(e){var t=e.current();return oe(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};f.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};f.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;oe(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function oe(e){return e>=48&&e<=57}f.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;st(i=e.current());)e.lastIntValue=16*e.lastIntValue+at(i),e.advance();return e.pos!==t};function st(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function at(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}f.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1};f.regexp_eatOctalDigit=function(e){var t=e.current();return nt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function nt(e){return e>=48&&e<=55}f.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var s=e.current();if(!st(s))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+at(s),e.advance()}return!0};var _e=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new se(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},E=N.prototype;E.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new _e(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};E.getToken=function(){return this.next(),new _e(this)};typeof Symbol<"u"&&(E[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===u.eof,value:t}}}});E.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(u.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};E.readToken=function(e){return D(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};E.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};E.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var r=void 0,s=t;(r=Te(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())};E.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!q(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())};E.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Ae.test(String.fromCharCode(e)))++this.pos;else break e}}};E.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)};E.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(u.ellipsis)):(++this.pos,this.finishToken(u.dot))};E.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(u.assign,2):this.finishOp(u.slash,1)};E.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,r=e===42?u.star:u.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,r=u.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(u.assign,i+1):this.finishOp(r,i)};E.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(u.assign,3)}return this.finishOp(e===124?u.logicalOR:u.logicalAND,2)}return t===61?this.finishOp(u.assign,2):this.finishOp(e===124?u.bitwiseOR:u.bitwiseAND,1)};E.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(u.assign,2):this.finishOp(u.bitwiseXOR,1)};E.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||I.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(u.incDec,2):t===61?this.finishOp(u.assign,2):this.finishOp(u.plusMin,1)};E.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(u.assign,i+1):this.finishOp(u.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(u.relational,i))};E.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(u.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(u.arrow)):this.finishOp(e===61?u.eq:u.prefix,1)};E.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(u.questionDot,2)}if(t===63){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(u.assign,3)}return this.finishOp(u.coalesce,2)}}return this.finishOp(u.question,1)};E.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),D(t,!0)||t===92))return this.finishToken(u.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+G(t)+"'")};E.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(u.parenL);case 41:return++this.pos,this.finishToken(u.parenR);case 59:return++this.pos,this.finishToken(u.semi);case 44:return++this.pos,this.finishToken(u.comma);case 91:return++this.pos,this.finishToken(u.bracketL);case 93:return++this.pos,this.finishToken(u.bracketR);case 123:return++this.pos,this.finishToken(u.braceL);case 125:return++this.pos,this.finishToken(u.braceR);case 58:return++this.pos,this.finishToken(u.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(u.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(u.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+G(e)+"'")};E.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)};E.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(I.test(r)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(r==="[")t=!0;else if(r==="]"&&t)t=!1;else if(r==="/"&&!t)break;e=r==="\\"}++this.pos}var s=this.input.slice(i,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var h=this.regexpState||(this.regexpState=new U(this));h.reset(i,s,o),this.validateRegExpFlags(h),this.validateRegExpPattern(h);var c=null;try{c=new RegExp(s,o)}catch{}return this.finishToken(u.regexp,{pattern:s,flags:o,value:c})};E.readInt=function(e,t,i){for(var r=this.options.ecmaVersion>=12&&t===void 0,s=i&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,h=0,c=0,p=t==null?1/0:t;c<p;++c,++this.pos){var l=this.input.charCodeAt(this.pos),y=void 0;if(r&&l===95){s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),h===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),c===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),h=l;continue}if(l>=97?y=l-97+10:l>=65?y=l-65+10:l>=48&&l<=57?y=l-48:y=1/0,y>=e)break;h=l,o=o*e+y}return r&&h===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||t!=null&&this.pos-a!==t?null:o};function jt(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function ot(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}E.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=ot(this.input.slice(t,this.pos)),++this.pos):D(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,i)};E.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&r===110){var s=ot(this.input.slice(t,this.pos));return++this.pos,D(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,s)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),r===46&&!i&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!i&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),D(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=jt(this.input.slice(t,this.pos),i);return this.finishToken(u.num,a)};E.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t};E.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(q(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(u.string,t)};var ut={};E.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===ut)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};E.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ut;this.raise(e,t)};E.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===u.template||this.type===u.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(u.dollarBraceL)):(++this.pos,this.finishToken(u.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(u.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(q(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
5
+ `;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};E.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(u.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};E.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
6
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return G(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(r,8);return s>255&&(r=r.slice(0,-1),s=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return q(t)?"":String.fromCharCode(t)}};E.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i};E.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(W(s,r))this.pos+=s<=65535?1:2;else if(s===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?D:W)(o,r)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=G(o),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)};E.readWord=function(){var e=this.readWord1(),t=u.name;return this.keywords.test(e)&&(t=de[e]),this.finishToken(t,e)};var Yt="8.8.2";N.acorn={Parser:N,version:Yt,defaultOptions:le,Position:z,SourceLocation:se,getLineInfo:ke,Node:ne,TokenType:_,tokTypes:u,keywordTypes:de,TokContext:L,tokContexts:S,isIdentifierChar:W,isIdentifierStart:D,Token:_e,isNewLine:q,lineBreak:I,lineBreakG:Et,nonASCIIwhitespace:Ae};function Wt(e,t){return N.parse(e,t)}/**
7
+ * @license
8
+ * Copyright 2013 Google LLC
9
+ * SPDX-License-Identifier: Apache-2.0
10
+ */var n=function(e,t){typeof e=="string"&&(e=this.parse_(e,"code"));var i=e.constructor;this.newNode=function(){return new i({options:{}})};var r=this.newNode();for(var s in e)r[s]=s==="body"?e[s].slice():e[s];this.ast=r,this.initFunc_=t,this.paused_=!1,this.polyfills_=[],this.functionCounter_=0,this.stepFunctions_=Object.create(null);var a=/^step([A-Z]\w*)$/,o;for(var h in this)typeof this[h]=="function"&&(o=h.match(a))&&(this.stepFunctions_[o[1]]=this[h].bind(this));this.globalScope=this.createScope(this.ast,null),this.globalObject=this.globalScope.object,this.ast=this.parse_(this.polyfills_.join(`
11
+ `),"polyfills"),this.polyfills_=void 0,n.stripLocations_(this.ast,void 0,void 0);var c=new n.State(this.ast,this.globalScope);c.done=!1,this.stateStack=[c],this.run(),this.value=void 0,this.ast=r,c=new n.State(this.ast,this.globalScope),c.done=!1,this.stateStack.length=0,this.stateStack[0]=c};n.Completion={NORMAL:0,BREAK:1,CONTINUE:2,RETURN:3,THROW:4};n.PARSE_OPTIONS={locations:!0,ecmaVersion:5};n.READONLY_DESCRIPTOR={configurable:!0,enumerable:!0,writable:!1};n.NONENUMERABLE_DESCRIPTOR={configurable:!0,enumerable:!1,writable:!0};n.READONLY_NONENUMERABLE_DESCRIPTOR={configurable:!0,enumerable:!1,writable:!1};n.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR={configurable:!1,enumerable:!1,writable:!1};n.VARIABLE_DESCRIPTOR={configurable:!1,enumerable:!0,writable:!0};n.STEP_ERROR={STEP_ERROR:!0};n.SCOPE_REFERENCE={SCOPE_REFERENCE:!0};n.VALUE_IN_DESCRIPTOR={VALUE_IN_DESCRIPTOR:!0};n.REGEXP_TIMEOUT={REGEXP_TIMEOUT:!0};n.toStringCycles_=[];n.vm=null;n.currentInterpreter_=null;n.nativeGlobal=typeof globalThis>"u"?void 0:globalThis;n.WORKER_CODE=["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();","};"];n.legalArrayLength=function(e){var t=e>>>0;return t===Number(e)?t:NaN};n.legalArrayIndex=function(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN};n.stripLocations_=function(e,t,i){t?e.start=t:delete e.start,i?e.end=i:delete e.end;for(var r in e)if(r!=="loc"&&e.hasOwnProperty(r)){var s=e[r];s&&typeof s=="object"&&n.stripLocations_(s,t,i)}};n.prototype.REGEXP_MODE=2;n.prototype.REGEXP_THREAD_TIMEOUT=1e3;n.prototype.POLYFILL_TIMEOUT=1e3;n.prototype.getterStep_=!1;n.prototype.setterStep_=!1;n.prototype.appendCodeNumber_=0;n.prototype.parse_=function(e,t){var i={};for(var r in n.PARSE_OPTIONS)i[r]=n.PARSE_OPTIONS[r];return i.sourceFile=t,n.nativeGlobal.acornParse(e,i)};n.prototype.appendCode=function(e){var t=this.stateStack[0];if(!t||t.node.type!=="Program")throw Error("Expecting original AST to start with a Program node");if(typeof e=="string"&&(e=this.parse_(e,"appendCode"+this.appendCodeNumber_++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");this.populateScope_(e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.variableCache_=null,t.done=!1};n.prototype.step=function(){var e=this.stateStack,t;do{var i=e[e.length-1];if(!i)return!1;var r=i.node,s=r.type;if(s==="Program"&&i.done)return!1;if(this.paused_)return!0;var a=n.currentInterpreter_;n.currentInterpreter_=this;try{var o=this.stepFunctions_[s](e,i,r)}catch(h){if(h!==n.STEP_ERROR)throw this.value!==h&&(this.value=void 0),h}finally{n.currentInterpreter_=a}if(o&&e.push(o),this.getterStep_)throw this.value=void 0,Error("Getter not supported in this context");if(this.setterStep_)throw this.value=void 0,Error("Setter not supported in this context");!t&&!r.end&&(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&t>Date.now());return!0};n.prototype.run=function(){for(;!this.paused_&&this.step(););return this.paused_};n.prototype.initGlobal=function(e){this.setProperty(e,"NaN",NaN,n.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"Infinity",1/0,n.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"undefined",void 0,n.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"window",e,n.READONLY_DESCRIPTOR),this.setProperty(e,"this",e,n.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"self",e),this.OBJECT_PROTO=new n.Object(null),this.FUNCTION_PROTO=new n.Object(this.OBJECT_PROTO),this.initFunction(e),this.initObject(e),e.proto=this.OBJECT_PROTO,this.setProperty(e,"constructor",this.OBJECT,n.NONENUMERABLE_DESCRIPTOR),this.initArray(e),this.initString(e),this.initBoolean(e),this.initNumber(e),this.initDate(e),this.initRegExp(e),this.initError(e),this.initMath(e),this.initJSON(e);var t=this,i=this.createNativeFunction(function(o){throw EvalError("Can't happen")},!1);i.eval=!0,this.setProperty(e,"eval",i,n.NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"parseInt",this.createNativeFunction(parseInt,!1),n.NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"parseFloat",this.createNativeFunction(parseFloat,!1),n.NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"isNaN",this.createNativeFunction(isNaN,!1),n.NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"isFinite",this.createNativeFunction(isFinite,!1),n.NONENUMERABLE_DESCRIPTOR);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],s=0;s<r.length;s++){var a=function(o){return function(h){try{return o(h)}catch(c){t.throwException(t.URI_ERROR,c.message)}}}(r[s][0]);this.setProperty(e,r[s][1],this.createNativeFunction(a,!1),n.NONENUMERABLE_DESCRIPTOR)}this.OBJECT=this.OBJECT,this.OBJECT_PROTO=this.OBJECT_PROTO,this.FUNCTION=this.FUNCTION,this.FUNCTION_PROTO=this.FUNCTION_PROTO,this.ARRAY=this.ARRAY,this.ARRAY_PROTO=this.ARRAY_PROTO,this.REGEXP=this.REGEXP,this.REGEXP_PROTO=this.REGEXP_PROTO,this.DATE=this.DATE,this.DATE_PROTO=this.DATE_PROTO,this.initFunc_&&this.initFunc_(this,e)};n.prototype.functionCodeNumber_=0;n.prototype.initFunction=function(e){var t=this,i,r=/^[A-Za-z_$][\w$]*$/;i=function(a){if(arguments.length)var o=String(arguments[arguments.length-1]);else var o="";var h=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(h){for(var c=h.split(/\s*,\s*/),p=0;p<c.length;p++){var l=c[p];r.test(l)||t.throwException(t.SYNTAX_ERROR,"Invalid function argument: "+l)}h=c.join(", ")}try{var y=t.parse_("(function("+h+") {"+o+"})","function"+t.functionCodeNumber_++)}catch(b){t.throwException(t.SYNTAX_ERROR,"Invalid code: "+b.message)}y.body.length!==1&&t.throwException(t.SYNTAX_ERROR,"Invalid code in function body");var g=y.body[0].expression;return t.createFunction(g,t.globalScope,"anonymous")},this.FUNCTION=this.createNativeFunction(i,!0),this.setProperty(e,"Function",this.FUNCTION,n.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.FUNCTION,"prototype",this.FUNCTION_PROTO,n.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.FUNCTION_PROTO,"constructor",this.FUNCTION,n.NONENUMERABLE_DESCRIPTOR),this.FUNCTION_PROTO.nativeFunc=function(){},this.FUNCTION_PROTO.nativeFunc.id=this.functionCounter_++,this.FUNCTION_PROTO.illegalConstructor=!0,this.setProperty(this.FUNCTION_PROTO,"length",0,n.READONLY_NONENUMERABLE_DESCRIPTOR),this.FUNCTION_PROTO.class="Function",i=function(a,o){var h=t.stateStack[t.stateStack.length-1];h.func_=this,h.funcThis_=a,h.arguments_=[],o!=null&&(o instanceof n.Object?h.arguments_=t.arrayPseudoToNative(o):t.throwException(t.TYPE_ERROR,"CreateListFromArrayLike called on non-object")),h.doneExec_=!1},this.setNativeFunctionPrototype(this.FUNCTION,"apply",i),i=function(a){var o=t.stateStack[t.stateStack.length-1];o.func_=this,o.funcThis_=a,o.arguments_=[];for(var h=1;h<arguments.length;h++)o.arguments_.push(arguments[h]);o.doneExec_=!1},this.setNativeFunctionPrototype(this.FUNCTION,"call",i),this.polyfills_.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;","}","});",""),i=function(){return String(this)},this.setNativeFunctionPrototype(this.FUNCTION,"toString",i),this.setProperty(this.FUNCTION,"toString",this.createNativeFunction(i,!1),n.NONENUMERABLE_DESCRIPTOR),i=function(){return this.valueOf()},this.setNativeFunctionPrototype(this.FUNCTION,"valueOf",i),this.setProperty(this.FUNCTION,"valueOf",this.createNativeFunction(i,!1),n.NONENUMERABLE_DESCRIPTOR)};n.prototype.initObject=function(e){var t=this,i;i=function(a){if(a==null)return t.calledWithNew()?this:t.createObjectProto(t.OBJECT_PROTO);if(!(a instanceof n.Object)){var o=t.createObjectProto(t.getPrototype(a));return o.data=a,o}return a},this.OBJECT=this.createNativeFunction(i,!0),this.setProperty(this.OBJECT,"prototype",this.OBJECT_PROTO,n.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.OBJECT_PROTO,"constructor",this.OBJECT,n.NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"Object",this.OBJECT,n.NONENUMERABLE_DESCRIPTOR);var r=function(s){s==null&&t.throwException(t.TYPE_ERROR,"Cannot convert '"+s+"' to object")};i=function(a){r(a);var o=a instanceof n.Object?a.properties:a;return t.arrayNativeToPseudo(Object.getOwnPropertyNames(o))},this.setProperty(this.OBJECT,"getOwnPropertyNames",this.createNativeFunction(i,!1),n.NONENUMERABLE_DESCRIPTOR),i=function(a){return r(a),a instanceof n.Object&&(a=a.properties),t.arrayNativeToPseudo(Object.keys(a))},this.setProperty(this.OBJECT,"keys",this.createNativeFunction(i,!1),n.NONENUMERABLE_DESCRIPTOR),i=function(a){return a===null?t.createObjectProto(null):(a instanceof n.Object||t.throwException(t.TYPE_ERROR,"Object prototype may only be an Object or null, not "+a),t.createObjectProto(a))},this.setProperty(this.OBJECT,"create",this.createNativeFunction(i,!1),n.NONENUMERABLE_DESCRIPTOR),this.polyfills_.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),i=function(a,o,h){return o=String(o),a instanceof n.Object||t.throwException(t.TYPE_ERROR,"Object.defineProperty called on non-object: "+a),h instanceof n.Object||t.throwException(t.TYPE_ERROR,"Property description must be an object"),a.preventExtensions&&!(o in a.properties)&&t.throwException(t.TYPE_ERROR,"Can't define property '"+o+"', object is not extensible"),t.setProperty(a,o,n.VALUE_IN_DESCRIPTOR,h.properties),a},this.setProperty(this.OBJECT,"defineProperty",this.createNativeFunction(i,!1),n.NONENUMERABLE_DESCRIPTOR),this.polyfills_.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;","}","});",""),i=function(a,o){if(a instanceof n.Object||t.throwException(t.TYPE_ERROR,"Object.getOwnPropertyDescriptor called on non-object: "+a),o=String(o),o in a.properties){var h=Object.getOwnPropertyDescriptor(a.properties,o),c=a.getter[o],p=a.setter[o],l=t.createObjectProto(t.OBJECT_PROTO);return c||p?(t.setProperty(l,"get",c),t.setProperty(l,"set",p)):(t.setProperty(l,"value",h.value),t.setProperty(l,"writable",h.writable)),t.setProperty(l,"configurable",h.configurable),t.setProperty(l,"enumerable",h.enumerable),l}},this.setProperty(this.OBJECT,"getOwnPropertyDescriptor",this.createNativeFunction(i,!1),n.NONENUMERABLE_DESCRIPTOR),i=function(a){return r(a),t.getPrototype(a)},this.setProperty(this.OBJECT,"getPrototypeOf",this.createNativeFunction(i,!1),n.NONENUMERABLE_DESCRIPTOR),i=function(a){return Boolean(a)&&!a.preventExtensions},this.setProperty(this.OBJECT,"isExtensible",this.createNativeFunction(i,!1),n.NONENUMERABLE_DESCRIPTOR),i=function(a){return a instanceof n.Object&&(a.preventExtensions=!0),a},this.setProperty(this.OBJECT,"preventExtensions",this.createNativeFunction(i,!1),n.NONENUMERABLE_DESCRIPTOR),this.setNativeFunctionPrototype(this.OBJECT,"toString",n.Object.prototype.toString),this.setNativeFunctionPrototype(this.OBJECT,"toLocaleString",n.Object.prototype.toString),this.setNativeFunctionPrototype(this.OBJECT,"valueOf",n.Object.prototype.valueOf),i=function(a){return r(this),this instanceof n.Object?String(a)in this.properties:this.hasOwnProperty(a)},this.setNativeFunctionPrototype(this.OBJECT,"hasOwnProperty",i),i=function(a){return r(this),this instanceof n.Object?Object.prototype.propertyIsEnumerable.call(this.properties,a):this.propertyIsEnumerable(a)},this.setNativeFunctionPrototype(this.OBJECT,"propertyIsEnumerable",i),i=function(a){for(;;){if(a=t.getPrototype(a),!a)return!1;if(a===this)return!0}},this.setNativeFunctionPrototype(this.OBJECT,"isPrototypeOf",i)};n.prototype.initArray=function(e){var t=this,i;i=function(s){if(t.calledWithNew())var a=this;else var a=t.createArray();var o=arguments[0];if(arguments.length===1&&typeof o=="number")isNaN(n.legalArrayLength(o))&&t.throwException(t.RANGE_ERROR,"Invalid array length: "+o),a.properties.length=o;else{for(var h=0;h<arguments.length;h++)a.properties[h]=arguments[h];a.properties.length=h}return a},this.ARRAY=this.createNativeFunction(i,!0),this.ARRAY_PROTO=this.ARRAY.properties.prototype,this.setProperty(e,"Array",this.ARRAY,n.NONENUMERABLE_DESCRIPTOR),i=function(s){return s&&s.class==="Array"},this.setProperty(this.ARRAY,"isArray",this.createNativeFunction(i,!1),n.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.ARRAY_PROTO,"length",0,{configurable:!1,enumerable:!1,writable:!0}),this.ARRAY_PROTO.class="Array",this.polyfills_.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(',');","}",");","})();","")};n.prototype.initString=function(e){var t=this,i;i=function(o){return o=arguments.length?n.nativeGlobal.String(o):"",t.calledWithNew()?(this.data=o,this):o},this.STRING=this.createNativeFunction(i,!0),this.setProperty(e,"String",this.STRING,n.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.STRING,"fromCharCode",this.createNativeFunction(String.fromCharCode,!1),n.NONENUMERABLE_DESCRIPTOR);for(var r=["charAt","charCodeAt","concat","indexOf","lastIndexOf","slice","substr","substring","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim"],s=0;s<r.length;s++)this.setNativeFunctionPrototype(this.STRING,r[s],String.prototype[r[s]]);i=function(o,h,c){h=t.pseudoToNative(h),c=t.pseudoToNative(c);try{return String(this).localeCompare(o,h,c)}catch(p){t.throwException(t.ERROR,"localeCompare: "+p.message)}},this.setNativeFunctionPrototype(this.STRING,"localeCompare",i),i=function(o,h,c){var p=String(this);if(h=h?Number(h):void 0,t.isa(o,t.REGEXP)&&(o=o.data,t.maybeThrowRegExp(o,c),t.REGEXP_MODE===2)){if(n.vm){var l={string:p,separator:o,limit:h},y="string.split(separator, limit)",v=t.vmCall(y,l,o,c);v!==n.REGEXP_TIMEOUT&&c(t.arrayNativeToPseudo(v))}else{var g=t.createWorker(),b=t.regExpTimeout(o,g,c);g.onmessage=function(R){clearTimeout(b),c(t.arrayNativeToPseudo(R.data))},g.postMessage(["split",p,o,h])}return}var v=p.split(o,h);c(t.arrayNativeToPseudo(v))},this.setAsyncFunctionPrototype(this.STRING,"split",i),i=function(o,h){var c=String(this);if(o=t.isa(o,t.REGEXP)?o.data:new RegExp(o),t.maybeThrowRegExp(o,h),t.REGEXP_MODE===2){if(n.vm){var p={string:c,regexp:o},l="string.match(regexp)",b=t.vmCall(l,p,o,h);b!==n.REGEXP_TIMEOUT&&h(b&&t.arrayNativeToPseudo(b))}else{var y=t.createWorker(),g=t.regExpTimeout(o,y,h);y.onmessage=function(v){clearTimeout(g),h(v.data&&t.arrayNativeToPseudo(v.data))},y.postMessage(["match",c,o])}return}var b=c.match(o);h(b&&t.arrayNativeToPseudo(b))},this.setAsyncFunctionPrototype(this.STRING,"match",i),i=function(o,h){var c=String(this);if(t.isa(o,t.REGEXP)?o=o.data:o=new RegExp(o),t.maybeThrowRegExp(o,h),t.REGEXP_MODE===2){if(n.vm){var p={string:c,regexp:o},l="string.search(regexp)",y=t.vmCall(l,p,o,h);y!==n.REGEXP_TIMEOUT&&h(y)}else{var g=t.createWorker(),b=t.regExpTimeout(o,g,h);g.onmessage=function(v){clearTimeout(b),h(v.data)},g.postMessage(["search",c,o])}return}h(c.search(o))},this.setAsyncFunctionPrototype(this.STRING,"search",i),i=function(o,h,c){var p=String(this);if(h=String(h),t.isa(o,t.REGEXP)&&(o=o.data,t.maybeThrowRegExp(o,c),t.REGEXP_MODE===2)){if(n.vm){var l={string:p,substr:o,newSubstr:h},y="string.replace(substr, newSubstr)",g=t.vmCall(y,l,o,c);g!==n.REGEXP_TIMEOUT&&c(g)}else{var b=t.createWorker(),v=t.regExpTimeout(o,b,c);b.onmessage=function(R){clearTimeout(v),c(R.data)},b.postMessage(["replace",p,o,h])}return}c(p.replace(o,h))},this.setAsyncFunctionPrototype(this.STRING,"replace",i),this.polyfills_.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;","};","})();","")};n.prototype.initBoolean=function(e){var t=this,i;i=function(s){return s=n.nativeGlobal.Boolean(s),t.calledWithNew()?(this.data=s,this):s},this.BOOLEAN=this.createNativeFunction(i,!0),this.setProperty(e,"Boolean",this.BOOLEAN,n.NONENUMERABLE_DESCRIPTOR)};n.prototype.initNumber=function(e){var t=this,i;i=function(o){return o=arguments.length?n.nativeGlobal.Number(o):0,t.calledWithNew()?(this.data=o,this):o},this.NUMBER=this.createNativeFunction(i,!0),this.setProperty(e,"Number",this.NUMBER,n.NONENUMERABLE_DESCRIPTOR);for(var r=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],s=0;s<r.length;s++)this.setProperty(this.NUMBER,r[s],Number[r[s]],n.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR);i=function(o){try{return Number(this).toExponential(o)}catch(h){t.throwException(t.ERROR,h.message)}},this.setNativeFunctionPrototype(this.NUMBER,"toExponential",i),i=function(o){try{return Number(this).toFixed(o)}catch(h){t.throwException(t.ERROR,h.message)}},this.setNativeFunctionPrototype(this.NUMBER,"toFixed",i),i=function(o){try{return Number(this).toPrecision(o)}catch(h){t.throwException(t.ERROR,h.message)}},this.setNativeFunctionPrototype(this.NUMBER,"toPrecision",i),i=function(o){try{return Number(this).toString(o)}catch(h){t.throwException(t.ERROR,h.message)}},this.setNativeFunctionPrototype(this.NUMBER,"toString",i),i=function(o,h){o=o?t.pseudoToNative(o):void 0,h=h?t.pseudoToNative(h):void 0;try{return Number(this).toLocaleString(o,h)}catch(c){t.throwException(t.ERROR,"toLocaleString: "+c.message)}},this.setNativeFunctionPrototype(this.NUMBER,"toLocaleString",i)};n.prototype.initDate=function(e){var t=this,i;i=function(o,h){if(!t.calledWithNew())return n.nativeGlobal.Date();var c=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(n.nativeGlobal.Date,c)),this},this.DATE=this.createNativeFunction(i,!0),this.DATE_PROTO=this.DATE.properties.prototype,this.setProperty(e,"Date",this.DATE,n.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.DATE,"now",this.createNativeFunction(Date.now,!1),n.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.DATE,"parse",this.createNativeFunction(Date.parse,!1),n.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.DATE,"UTC",this.createNativeFunction(Date.UTC,!1),n.NONENUMERABLE_DESCRIPTOR);for(var r=["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"],s=0;s<r.length;s++)i=function(a){return function(o){var h=this.data;h instanceof Date||t.throwException(t.TYPE_ERROR,a+" not called on a Date");for(var c=[],p=0;p<arguments.length;p++)c[p]=t.pseudoToNative(arguments[p]);return h[a].apply(h,c)}}(r[s]),this.setNativeFunctionPrototype(this.DATE,r[s],i)};n.prototype.initRegExp=function(e){var t=this,i;i=function(s,a){if(t.calledWithNew())var o=this;else{if(a===void 0&&t.isa(s,t.REGEXP))return s;var o=t.createObjectProto(t.REGEXP_PROTO)}s=s===void 0?"":String(s),a=a?String(a):"",/^[gmi]*$/.test(a)||t.throwException(t.SYNTAX_ERROR,"Invalid regexp flag: "+a);try{var h=new n.nativeGlobal.RegExp(s,a)}catch(c){t.throwException(t.SYNTAX_ERROR,c.message)}return t.populateRegExp(o,h),o},this.REGEXP=this.createNativeFunction(i,!0),this.REGEXP_PROTO=this.REGEXP.properties.prototype,this.setProperty(e,"RegExp",this.REGEXP,n.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.REGEXP.properties.prototype,"global",void 0,n.READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(this.REGEXP.properties.prototype,"ignoreCase",void 0,n.READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(this.REGEXP.properties.prototype,"multiline",void 0,n.READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(this.REGEXP.properties.prototype,"source","(?:)",n.READONLY_NONENUMERABLE_DESCRIPTOR),this.polyfills_.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),i=function(s,a){var o=this.data;if(s=String(s),o.lastIndex=Number(t.getProperty(this,"lastIndex")),t.maybeThrowRegExp(o,a),t.REGEXP_MODE===2){if(n.vm){var h={string:s,regexp:o},c="regexp.exec(string)",g=t.vmCall(c,h,o,a);g!==n.REGEXP_TIMEOUT&&(t.setProperty(this,"lastIndex",o.lastIndex),a(b(g)))}else{var p=t.createWorker(),l=t.regExpTimeout(o,p,a),y=this;p.onmessage=function(v){clearTimeout(l),t.setProperty(y,"lastIndex",v.data[1]),a(b(v.data[0]))},p.postMessage(["exec",o,o.lastIndex,s])}return}var g=o.exec(s);t.setProperty(this,"lastIndex",o.lastIndex),a(b(g));function b(v){if(v){var R=t.arrayNativeToPseudo(v);return t.setProperty(R,"index",v.index),t.setProperty(R,"input",v.input),R}return null}},this.setAsyncFunctionPrototype(this.REGEXP,"exec",i)};n.prototype.initError=function(e){var t=this;this.ERROR=this.createNativeFunction(function(s){if(t.calledWithNew())var a=this;else var a=t.createObject(t.ERROR);return t.populateError(a,s),a},!0),this.setProperty(e,"Error",this.ERROR,n.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.ERROR.properties.prototype,"message","",n.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.ERROR.properties.prototype,"name","Error",n.NONENUMERABLE_DESCRIPTOR);var i=function(r){var s=t.createNativeFunction(function(a){if(t.calledWithNew())var o=this;else var o=t.createObject(s);return t.populateError(o,a),o},!0);return t.setProperty(s,"prototype",t.createObject(t.ERROR),n.NONENUMERABLE_DESCRIPTOR),t.setProperty(s.properties.prototype,"name",r,n.NONENUMERABLE_DESCRIPTOR),t.setProperty(e,r,s,n.NONENUMERABLE_DESCRIPTOR),s};this.EVAL_ERROR=i("EvalError"),this.RANGE_ERROR=i("RangeError"),this.REFERENCE_ERROR=i("ReferenceError"),this.SYNTAX_ERROR=i("SyntaxError"),this.TYPE_ERROR=i("TypeError"),this.URI_ERROR=i("URIError")};n.prototype.initMath=function(e){var t=this.createObjectProto(this.OBJECT_PROTO);this.setProperty(e,"Math",t,n.NONENUMERABLE_DESCRIPTOR);for(var i=["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],r=0;r<i.length;r++)this.setProperty(t,i[r],Math[i[r]],n.READONLY_NONENUMERABLE_DESCRIPTOR);for(var s=["abs","acos","asin","atan","atan2","ceil","cos","exp","floor","log","max","min","pow","random","round","sin","sqrt","tan"],r=0;r<s.length;r++)this.setProperty(t,s[r],this.createNativeFunction(Math[s[r]],!1),n.NONENUMERABLE_DESCRIPTOR)};n.prototype.initJSON=function(e){var t,i=this,r=i.createObjectProto(this.OBJECT_PROTO);this.setProperty(e,"JSON",r,n.NONENUMERABLE_DESCRIPTOR),t=function(a){try{var o=JSON.parse(String(a))}catch(h){i.throwException(i.SYNTAX_ERROR,h.message)}return i.nativeToPseudo(o)},this.setProperty(r,"parse",this.createNativeFunction(t,!1)),t=function(a,o,h){o&&o.class==="Function"?i.throwException(i.TYPE_ERROR,"Function replacer on JSON.stringify not supported"):o&&o.class==="Array"?(o=i.arrayPseudoToNative(o),o=o.filter(function(l){return typeof l=="string"||typeof l=="number"})):o=null,typeof h!="string"&&typeof h!="number"&&(h=void 0);var c=i.pseudoToNative(a);try{var p=JSON.stringify(c,o,h)}catch(l){i.throwException(i.TYPE_ERROR,l.message)}return p},this.setProperty(r,"stringify",this.createNativeFunction(t,!1))};n.prototype.isa=function(e,t){if(e==null||!t)return!1;var i=t.properties.prototype;if(e===i)return!0;for(e=this.getPrototype(e);e;){if(e===i)return!0;e=e.proto}return!1};n.prototype.populateRegExp=function(e,t){e.data=new RegExp(t.source,t.flags),this.setProperty(e,"lastIndex",t.lastIndex,n.NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"source",t.source,n.READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"global",t.global,n.READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"ignoreCase",t.ignoreCase,n.READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"multiline",t.multiline,n.READONLY_NONENUMERABLE_DESCRIPTOR)};n.prototype.populateError=function(e,t){t&&this.setProperty(e,"message",String(t),n.NONENUMERABLE_DESCRIPTOR);for(var i=[],r=this.stateStack.length-1;r>=0;r--){var s=this.stateStack[r],a=s.node;if(a.type==="CallExpression"){var o=s.func_;o&&i.length&&(i[i.length-1].datumName=this.getProperty(o,"name"))}a.loc&&(!i.length||a.type==="CallExpression")&&i.push({datumLoc:a.loc})}for(var h=String(this.getProperty(e,"name")),c=String(this.getProperty(e,"message")),p=h+": "+c+`
12
+ `,r=0;r<i.length;r++){var l=i[r].datumLoc,y=i[r].datumName,g=l.source+":"+l.start.line+":"+l.start.column;y?p+=" at "+y+" ("+g+`)
13
+ `:p+=" at "+g+`
14
+ `}this.setProperty(e,"stack",p.trim(),n.NONENUMERABLE_DESCRIPTOR)};n.prototype.createWorker=function(){var e=this.createWorker.blob_;return e||(e=new Blob([n.WORKER_CODE.join(`
15
+ `)],{type:"application/javascript"}),this.createWorker.blob_=e),new Worker(URL.createObjectURL(e))};n.prototype.vmCall=function(e,t,i,r){var s={timeout:this.REGEXP_THREAD_TIMEOUT};try{return n.vm.runInNewContext(e,t,s)}catch{r(null),this.throwException(this.ERROR,"RegExp Timeout: "+i)}return n.REGEXP_TIMEOUT};n.prototype.maybeThrowRegExp=function(e,t){var i;if(this.REGEXP_MODE===0)i=!1;else if(this.REGEXP_MODE===1)i=!0;else if(n.vm)i=!0;else if(typeof Worker=="function"&&typeof URL=="function")i=!0;else if(typeof require=="function"){try{n.vm=require("vm")}catch{}i=!!n.vm}else i=!1;i||(t(null),this.throwException(this.ERROR,"Regular expressions not supported: "+e))};n.prototype.regExpTimeout=function(e,t,i){var r=this;return setTimeout(function(){t.terminate(),i(null);try{r.throwException(r.ERROR,"RegExp Timeout: "+e)}catch{}},this.REGEXP_THREAD_TIMEOUT)};n.prototype.createObject=function(e){return this.createObjectProto(e&&e.properties.prototype)};n.prototype.createObjectProto=function(e){if(typeof e!="object")throw Error("Non object prototype");var t=new n.Object(e);return this.isa(t,this.ERROR)&&(t.class="Error"),t};n.prototype.createArray=function(){var e=this.createObjectProto(this.ARRAY_PROTO);return this.setProperty(e,"length",0,{configurable:!1,enumerable:!1,writable:!0}),e.class="Array",e};n.prototype.createFunctionBase_=function(e,t){var i=this.createObjectProto(this.FUNCTION_PROTO);if(t){var r=this.createObjectProto(this.OBJECT_PROTO);this.setProperty(i,"prototype",r,n.NONENUMERABLE_DESCRIPTOR),this.setProperty(r,"constructor",i,n.NONENUMERABLE_DESCRIPTOR)}else i.illegalConstructor=!0;return this.setProperty(i,"length",e,n.READONLY_NONENUMERABLE_DESCRIPTOR),i.class="Function",i};n.prototype.createFunction=function(e,t,i){var r=this.createFunctionBase_(e.params.length,!0);r.parentScope=t,r.node=e;var s=e.id?String(e.id.name):i||"";return this.setProperty(r,"name",s,n.READONLY_NONENUMERABLE_DESCRIPTOR),r};n.prototype.createNativeFunction=function(e,t){var i=this.createFunctionBase_(e.length,t);return i.nativeFunc=e,e.id=this.functionCounter_++,this.setProperty(i,"name",e.name,n.READONLY_NONENUMERABLE_DESCRIPTOR),i};n.prototype.createAsyncFunction=function(e){var t=this.createFunctionBase_(e.length,!0);return t.asyncFunc=e,e.id=this.functionCounter_++,this.setProperty(t,"name",e.name,n.READONLY_NONENUMERABLE_DESCRIPTOR),t};n.prototype.nativeToPseudo=function(e){if(e instanceof n.Object)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.createObjectProto(this.REGEXP_PROTO);return this.populateRegExp(t,e),t}if(e instanceof Date){var i=this.createObjectProto(this.DATE_PROTO);return i.data=new Date(e.valueOf()),i}if(typeof e=="function"){var r=this,s=function(){var l=Array.prototype.slice.call(arguments).map(function(g){return r.pseudoToNative(g)}),y=e.apply(r,l);return r.nativeToPseudo(y)},a=Object.getOwnPropertyDescriptor(e,"prototype");return this.createNativeFunction(s,!!a)}if(Array.isArray(e)){for(var o=this.createArray(),h=0;h<e.length;h++)h in e&&this.setProperty(o,h,this.nativeToPseudo(e[h]));return o}var c=this.createObjectProto(this.OBJECT_PROTO);for(var p in e)this.setProperty(c,p,this.nativeToPseudo(e[p]));return c};n.prototype.pseudoToNative=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof n.Object))throw Error("Object is not pseudo");if(this.isa(e,this.REGEXP)){var i=new RegExp(e.data.source,e.data.flags);return i.lastIndex=e.data.lastIndex,i}if(this.isa(e,this.DATE))return new Date(e.data.valueOf());var r=t||{pseudo:[],native:[]},s=r.pseudo.indexOf(e);if(s!==-1)return r.native[s];r.pseudo.push(e);var a;if(this.isa(e,this.ARRAY)){a=[],r.native.push(a);for(var o=this.getProperty(e,"length"),h=0;h<o;h++)this.hasProperty(e,h)&&(a[h]=this.pseudoToNative(this.getProperty(e,h),r))}else{a={},r.native.push(a);var c;for(var p in e.properties)c=this.pseudoToNative(e.properties[p],r),Object.defineProperty(a,p,{value:c,writable:!0,enumerable:!0,configurable:!0})}return r.pseudo.pop(),r.native.pop(),a};n.prototype.arrayNativeToPseudo=function(e){for(var t=this.createArray(),i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++)this.setProperty(t,i[r],e[i[r]]);return t};n.prototype.arrayPseudoToNative=function(e){var t=[];for(var i in e.properties)t[i]=this.getProperty(e,i);return t.length=n.legalArrayLength(this.getProperty(e,"length"))||0,t};n.prototype.getPrototype=function(e){switch(typeof e){case"number":return this.NUMBER.properties.prototype;case"boolean":return this.BOOLEAN.properties.prototype;case"string":return this.STRING.properties.prototype}return e?e.proto:null};n.prototype.getProperty=function(e,t){if(this.getterStep_)throw Error("Getter not supported in that context");if(t=String(t),e==null&&this.throwException(this.TYPE_ERROR,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof n.Object))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(this.isa(e,this.STRING))return String(e).length}else if(t.charCodeAt(0)<64&&this.isa(e,this.STRING)){var i=n.legalArrayIndex(t);if(!isNaN(i)&&i<String(e).length)return String(e)[i]}do if(e.properties&&t in e.properties){var r=e.getter[t];return r?(this.getterStep_=!0,r):e.properties[t]}while(e=this.getPrototype(e))};n.prototype.hasProperty=function(e,t){if(!(e instanceof n.Object))throw TypeError("Primitive data type has no properties");if(t=String(t),t==="length"&&this.isa(e,this.STRING))return!0;if(this.isa(e,this.STRING)){var i=n.legalArrayIndex(t);if(!isNaN(i)&&i<String(e).length)return!0}do if(e.properties&&t in e.properties)return!0;while(e=this.getPrototype(e));return!1};n.prototype.setProperty=function(e,t,i,r){if(this.setterStep_)throw Error("Setter not supported in that context");if(t=String(t),e==null&&this.throwException(this.TYPE_ERROR,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof n.Object))throw TypeError("Expecting native value or pseudo object");r&&("get"in r||"set"in r)&&("value"in r||"writable"in r)&&this.throwException(this.TYPE_ERROR,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var s=!this.stateStack||this.getScope().strict;if(!(e instanceof n.Object)){s&&this.throwException(this.TYPE_ERROR,"Can't create property '"+t+"' on '"+e+"'");return}if(this.isa(e,this.STRING)){var a=n.legalArrayIndex(t);if(t==="length"||!isNaN(a)&&a<String(e).length){s&&this.throwException(this.TYPE_ERROR,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.class==="Array"){var o=e.properties.length,h;if(t==="length"){if(r){if(!("value"in r))return;i=r.value}if(i=n.legalArrayLength(i),isNaN(i)&&this.throwException(this.RANGE_ERROR,"Invalid array length"),i<o)for(h in e.properties)h=n.legalArrayIndex(h),!isNaN(h)&&i<=h&&delete e.properties[h]}else isNaN(h=n.legalArrayIndex(t))||(e.properties.length=Math.max(o,h+1))}if(e.preventExtensions&&!(t in e.properties)){s&&this.throwException(this.TYPE_ERROR,"Can't add property '"+t+"', object is not extensible");return}if(r){var c={};"get"in r&&r.get&&(e.getter[t]=r.get,c.get=this.setProperty.placeholderGet_),"set"in r&&r.set&&(e.setter[t]=r.set,c.set=this.setProperty.placeholderSet_),"configurable"in r&&(c.configurable=r.configurable),"enumerable"in r&&(c.enumerable=r.enumerable),"writable"in r&&(c.writable=r.writable,delete e.getter[t],delete e.setter[t]),"value"in r?(c.value=r.value,delete e.getter[t],delete e.setter[t]):i!==n.VALUE_IN_DESCRIPTOR&&(c.value=i,delete e.getter[t],delete e.setter[t]);try{Object.defineProperty(e.properties,t,c)}catch{this.throwException(this.TYPE_ERROR,"Cannot redefine property: "+t)}"get"in r&&!r.get&&delete e.getter[t],"set"in r&&!r.set&&delete e.setter[t]}else{if(i===n.VALUE_IN_DESCRIPTOR)throw ReferenceError("Value not specified");for(var p=e;!(t in p.properties);)if(p=this.getPrototype(p),!p){p=e;break}if(p.setter&&p.setter[t])return this.setterStep_=!0,p.setter[t];if(p.getter&&p.getter[t])s&&this.throwException(this.TYPE_ERROR,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.properties[t]=i}catch{s&&this.throwException(this.TYPE_ERROR,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}};n.prototype.setProperty.placeholderGet_=function(){throw Error("Placeholder getter")};n.prototype.setProperty.placeholderSet_=function(){throw Error("Placeholder setter")};n.prototype.setNativeFunctionPrototype=function(e,t,i){this.setProperty(e.properties.prototype,t,this.createNativeFunction(i,!1),n.NONENUMERABLE_DESCRIPTOR)};n.prototype.setAsyncFunctionPrototype=function(e,t,i){this.setProperty(e.properties.prototype,t,this.createAsyncFunction(i),n.NONENUMERABLE_DESCRIPTOR)};n.prototype.getScope=function(){var e=this.stateStack[this.stateStack.length-1].scope;if(!e)throw Error("No scope found");return e};n.prototype.createScope=function(e,t){var i=!1;if(t&&t.strict)i=!0;else{var r=e.body&&e.body[0];r&&r.expression&&r.expression.type==="Literal"&&r.expression.value==="use strict"&&(i=!0)}var s=this.createObjectProto(null),a=new n.Scope(t,i,s);return t||this.initGlobal(a.object),this.populateScope_(e,a),a};n.prototype.createSpecialScope=function(e,t){if(!e)throw Error("parentScope required");var i=t||this.createObjectProto(null);return new n.Scope(e,e.strict,i)};n.prototype.getValueFromScope=function(e){for(var t=this.getScope();t&&t!==this.globalScope;){if(e in t.object.properties)return t.object.properties[e];t=t.parentScope}if(t===this.globalScope&&this.hasProperty(t.object,e))return this.getProperty(t.object,e);var i=this.stateStack[this.stateStack.length-1].node;i.type==="UnaryExpression"&&i.operator==="typeof"||this.throwException(this.REFERENCE_ERROR,e+" is not defined")};n.prototype.setValueToScope=function(e,t){for(var i=this.getScope(),r=i.strict;i&&i!==this.globalScope;){if(e in i.object.properties){try{i.object.properties[e]=t}catch{r&&this.throwException(this.TYPE_ERROR,"Cannot assign to read only variable '"+e+"'")}return}i=i.parentScope}if(i===this.globalScope&&(!r||this.hasProperty(i.object,e)))return this.setProperty(i.object,e,t);this.throwException(this.REFERENCE_ERROR,e+" is not defined")};n.prototype.populateScope_=function(e,t){var i;if(e.variableCache_)i=e.variableCache_;else{switch(i=Object.create(null),e.type){case"VariableDeclaration":for(var r=0;r<e.declarations.length;r++)i[e.declarations[r].id.name]=!0;break;case"FunctionDeclaration":i[e.id.name]=e;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=e.constructor;for(var a in e)if(a!=="loc"){var o=e[a];if(o&&typeof o=="object"){var h;if(Array.isArray(o)){for(var r=0;r<o.length;r++)if(o[r]&&o[r].constructor===s){h=this.populateScope_(o[r],t);for(var a in h)i[a]=h[a]}}else if(o.constructor===s){h=this.populateScope_(o,t);for(var a in h)i[a]=h[a]}}}}e.variableCache_=i}for(var a in i)i[a]===!0?this.setProperty(t.object,a,void 0,n.VARIABLE_DESCRIPTOR):this.setProperty(t.object,a,this.createFunction(i[a],t),n.VARIABLE_DESCRIPTOR);return i};n.prototype.calledWithNew=function(){return this.stateStack[this.stateStack.length-1].isConstructor};n.prototype.getValue=function(e){return e[0]===n.SCOPE_REFERENCE?this.getValueFromScope(e[1]):this.getProperty(e[0],e[1])};n.prototype.setValue=function(e,t){return e[0]===n.SCOPE_REFERENCE?this.setValueToScope(e[1],t):this.setProperty(e[0],e[1],t)};n.prototype.throwException=function(e,t){if(!this.globalScope)throw t===void 0?e:t;if(t===void 0||!(e instanceof n.Object))var i=e;else{var i=this.createObject(e);this.populateError(i,t)}throw this.unwind(n.Completion.THROW,i,void 0),n.STEP_ERROR};n.prototype.unwind=function(e,t,i){if(e===n.Completion.NORMAL)throw TypeError("Should not unwind for NORMAL completions");e:for(var r=this.stateStack;r.length>0;r.pop()){var s=r[r.length-1];switch(s.node.type){case"TryStatement":s.cv={type:e,value:t,label:i};return;case"CallExpression":case"NewExpression":if(e===n.Completion.RETURN){s.value=t;return}else if(e!==n.Completion.THROW)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":s.done=!0;break e}if(e===n.Completion.BREAK){if(i?s.labels&&s.labels.indexOf(i)!==-1:s.isLoop||s.isSwitch){r.pop();return}}else if(e===n.Completion.CONTINUE&&(i?s.labels&&s.labels.indexOf(i)!==-1:s.isLoop))return}var a;if(this.isa(t,this.ERROR)){var o={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},h=String(this.getProperty(t,"name")),c=this.getProperty(t,"message").valueOf(),p=o[h]||Error;a=p(c),a.stack=String(this.getProperty(t,"stack"))}else a=String(t);throw this.value=a,a};n.prototype.nodeSummary=function(e){switch(e.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return this.nodeSummary(e.left)+" "+e.operator+" "+this.nodeSummary(e.right);case"CallExpression":return this.nodeSummary(e.callee)+"(...)";case"ConditionalExpression":return this.nodeSummary(e.test)+" ? "+this.nodeSummary(e.consequent)+" : "+this.nodeSummary(e.alternate);case"Identifier":return e.name;case"Literal":return e.raw;case"MemberExpression":var t=this.nodeSummary(e.object),i=this.nodeSummary(e.property);return e.computed?t+"["+i+"]":t+"."+i;case"NewExpression":return"new "+this.nodeSummary(e.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return e.operator+" "+this.nodeSummary(e.argument);case"UpdateExpression":var r=this.nodeSummary(e.argument);return e.prefix?e.operator+r:r+e.operator}return"???"};n.prototype.createGetter_=function(e,t){if(!this.getterStep_)throw Error("Unexpected call to createGetter");this.getterStep_=!1;var i=Array.isArray(t)?t[0]:t,r=this.newNode();r.type="CallExpression";var s=new n.State(r,this.stateStack[this.stateStack.length-1].scope);return s.doneCallee_=2,s.funcThis_=i,s.func_=e,s.doneArgs_=!0,s.arguments_=[],s};n.prototype.createSetter_=function(e,t,i){if(!this.setterStep_)throw Error("Unexpected call to createSetter");this.setterStep_=!1;var r=Array.isArray(t)?t[0]:this.globalObject,s=this.newNode();s.type="CallExpression";var a=new n.State(s,this.stateStack[this.stateStack.length-1].scope);return a.doneCallee_=2,a.funcThis_=r,a.func_=e,a.doneArgs_=!0,a.arguments_=[i],a};n.prototype.boxThis_=function(e){if(e==null)return this.globalObject;if(!(e instanceof n.Object)){var t=this.createObjectProto(this.getPrototype(e));return t.data=e,t}return e};n.prototype.getGlobalScope=function(){return this.globalScope};n.prototype.getStateStack=function(){return this.stateStack};n.prototype.setStateStack=function(e){this.stateStack=e};n.Value;n.State=function(e,t){this.node=e,this.scope=t};n.Scope=function(e,t,i){this.parentScope=e,this.strict=t,this.object=i};n.Object=function(e){this.getter=Object.create(null),this.setter=Object.create(null),this.properties=Object.create(null),this.proto=e};n.Object.prototype.proto=null;n.Object.prototype.class="Object";n.Object.prototype.data=null;n.Object.prototype.toString=function(){if(!n.currentInterpreter_)return"[object Interpreter.Object]";if(!(this instanceof n.Object))return String(this);if(this.class==="Array"){var e=n.toStringCycles_;e.push(this);try{var t=[],i=this.properties.length,r=!1;i>1024&&(i=1e3,r=!0);for(var s=0;s<i;s++){var a=this.properties[s];t[s]=a instanceof n.Object&&e.indexOf(a)!==-1?"...":a}r&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.class==="Error"){var e=n.toStringCycles_;if(e.indexOf(this)!==-1)return"[object Error]";var o,h,c=this;do if("name"in c.properties){o=c.properties.name;break}while(c=c.proto);c=this;do if("message"in c.properties){h=c.properties.message;break}while(c=c.proto);e.push(this);try{o=o&&String(o),h=h&&String(h)}finally{e.pop()}return h?o+": "+h:String(o)}return this.data!==null?String(this.data):"[object "+this.class+"]"};n.Object.prototype.valueOf=function(){return n.currentInterpreter_?this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data:this};n.prototype.stepArrayExpression=function(e,t,i){var r=i.elements,s=t.n_||0;for(t.array_?(this.setProperty(t.array_,s,t.value),s++):(t.array_=this.createArray(),t.array_.properties.length=r.length);s<r.length;){if(r[s])return t.n_=s,new n.State(r[s],t.scope);s++}e.pop(),e[e.length-1].value=t.array_};n.prototype.stepAssignmentExpression=function(e,t,i){if(!t.doneLeft_){t.doneLeft_=!0;var r=new n.State(i.left,t.scope);return r.components=!0,r}if(!t.doneRight_){if(t.leftReference_||(t.leftReference_=t.value),t.doneGetter_&&(t.leftValue_=t.value),!t.doneGetter_&&i.operator!=="="){var s=this.getValue(t.leftReference_);if(t.leftValue_=s,this.getterStep_){t.doneGetter_=!0;var a=s;return this.createGetter_(a,t.leftReference_)}}return t.doneRight_=!0,i.operator==="="&&i.left.type==="Identifier"&&(t.destinationName=i.left.name),new n.State(i.right,t.scope)}if(t.doneSetter_){e.pop(),e[e.length-1].value=t.setterValue_;return}var o=t.leftValue_,h=t.value;switch(i.operator){case"=":o=h;break;case"+=":o+=h;break;case"-=":o-=h;break;case"*=":o*=h;break;case"/=":o/=h;break;case"%=":o%=h;break;case"<<=":o<<=h;break;case">>=":o>>=h;break;case">>>=":o>>>=h;break;case"&=":o&=h;break;case"^=":o^=h;break;case"|=":o|=h;break;default:throw SyntaxError("Unknown assignment expression: "+i.operator)}var c=this.setValue(t.leftReference_,o);if(c)return t.doneSetter_=!0,t.setterValue_=o,this.createSetter_(c,t.leftReference_,o);e.pop(),e[e.length-1].value=o};n.prototype.stepBinaryExpression=function(e,t,i){if(!t.doneLeft_)return t.doneLeft_=!0,new n.State(i.left,t.scope);if(!t.doneRight_)return t.doneRight_=!0,t.leftValue_=t.value,new n.State(i.right,t.scope);e.pop();var r=t.leftValue_,s=t.value,a;switch(i.operator){case"==":a=r==s;break;case"!=":a=r!=s;break;case"===":a=r===s;break;case"!==":a=r!==s;break;case">":a=r>s;break;case">=":a=r>=s;break;case"<":a=r<s;break;case"<=":a=r<=s;break;case"+":a=r+s;break;case"-":a=r-s;break;case"*":a=r*s;break;case"/":a=r/s;break;case"%":a=r%s;break;case"&":a=r&s;break;case"|":a=r|s;break;case"^":a=r^s;break;case"<<":a=r<<s;break;case">>":a=r>>s;break;case">>>":a=r>>>s;break;case"in":s instanceof n.Object||this.throwException(this.TYPE_ERROR,"'in' expects an object, not '"+s+"'"),a=this.hasProperty(s,r);break;case"instanceof":this.isa(s,this.FUNCTION)||this.throwException(this.TYPE_ERROR,"'instanceof' expects an object, not '"+s+"'"),a=r instanceof n.Object?this.isa(r,s):!1;break;default:throw SyntaxError("Unknown binary operator: "+i.operator)}e[e.length-1].value=a};n.prototype.stepBlockStatement=function(e,t,i){var r=t.n_||0,s=i.body[r];if(s)return t.n_=r+1,new n.State(s,t.scope);e.pop()};n.prototype.stepBreakStatement=function(e,t,i){var r=i.label&&i.label.name;this.unwind(n.Completion.BREAK,void 0,r)};n.prototype.evalCodeNumber_=0;n.prototype.stepCallExpression=function(e,t,i){if(!t.doneCallee_){t.doneCallee_=1;var r=new n.State(i.callee,t.scope);return r.components=!0,r}if(t.doneCallee_===1){t.doneCallee_=2;var s=t.value;if(Array.isArray(s)){if(t.func_=this.getValue(s),s[0]===n.SCOPE_REFERENCE?t.directEval_=s[1]==="eval":t.funcThis_=s[0],s=t.func_,this.getterStep_)return t.doneCallee_=1,this.createGetter_(s,t.value)}else t.func_=s;t.arguments_=[],t.n_=0}var s=t.func_;if(!t.doneArgs_){if(t.n_!==0&&t.arguments_.push(t.value),i.arguments[t.n_])return new n.State(i.arguments[t.n_++],t.scope);if(i.type==="NewExpression"){if((!(s instanceof n.Object)||s.illegalConstructor)&&this.throwException(this.TYPE_ERROR,this.nodeSummary(i.callee)+" is not a constructor"),s===this.ARRAY)t.funcThis_=this.createArray();else{var a=s.properties.prototype;(typeof a!="object"||a===null)&&(a=this.OBJECT_PROTO),t.funcThis_=this.createObjectProto(a)}t.isConstructor=!0}t.doneArgs_=!0}if(t.doneExec_)e.pop(),t.isConstructor&&typeof t.value!="object"?e[e.length-1].value=t.funcThis_:e[e.length-1].value=t.value;else{t.doneExec_=!0,s instanceof n.Object||this.throwException(this.TYPE_ERROR,this.nodeSummary(i.callee)+" is not a function");var o=s.node;if(o){for(var h=this.createScope(o.body,s.parentScope),c=this.createArray(),p=0;p<t.arguments_.length;p++)this.setProperty(c,p,t.arguments_[p]);this.setProperty(h.object,"arguments",c);for(var p=0;p<o.params.length;p++){var l=o.params[p].name,y=t.arguments_.length>p?t.arguments_[p]:void 0;this.setProperty(h.object,l,y)}return h.strict||(t.funcThis_=this.boxThis_(t.funcThis_)),this.setProperty(h.object,"this",t.funcThis_,n.READONLY_DESCRIPTOR),t.value=void 0,new n.State(o.body,h)}else if(s.eval){var g=t.arguments_[0];if(typeof g!="string")t.value=g;else{try{var b=this.parse_(String(g),"eval"+this.evalCodeNumber_++)}catch(pt){this.throwException(this.SYNTAX_ERROR,"Invalid code: "+pt.message)}var v=this.newNode();v.type="EvalProgram_",v.body=b.body,n.stripLocations_(v,i.start,i.end);var h=t.directEval_?t.scope:this.globalScope;return h.strict?h=this.createScope(b,h):this.populateScope_(b,h),this.value=void 0,new n.State(v,h)}}else if(s.nativeFunc)t.scope.strict||(t.funcThis_=this.boxThis_(t.funcThis_)),t.value=s.nativeFunc.apply(t.funcThis_,t.arguments_);else if(s.asyncFunc){var R=this,w=function(ct){t.value=ct,R.paused_=!1},k=s.asyncFunc.length-1,ee=t.arguments_.concat(new Array(k)).slice(0,k);ee.push(w),this.paused_=!0,t.scope.strict||(t.funcThis_=this.boxThis_(t.funcThis_)),s.asyncFunc.apply(t.funcThis_,ee);return}else this.throwException(this.TYPE_ERROR,this.nodeSummary(i.callee)+" is not callable")}};n.prototype.stepConditionalExpression=function(e,t,i){var r=t.mode_||0;if(r===0)return t.mode_=1,new n.State(i.test,t.scope);if(r===1){t.mode_=2;var s=Boolean(t.value);if(s&&i.consequent)return new n.State(i.consequent,t.scope);if(!s&&i.alternate)return new n.State(i.alternate,t.scope);this.value=void 0}e.pop(),i.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};n.prototype.stepContinueStatement=function(e,t,i){var r=i.label&&i.label.name;this.unwind(n.Completion.CONTINUE,void 0,r)};n.prototype.stepDebuggerStatement=function(e,t,i){e.pop()};n.prototype.stepDoWhileStatement=function(e,t,i){if(i.type==="DoWhileStatement"&&t.test_===void 0&&(t.value=!0,t.test_=!0),!t.test_)return t.test_=!0,new n.State(i.test,t.scope);if(!t.value)e.pop();else if(i.body)return t.test_=!1,t.isLoop=!0,new n.State(i.body,t.scope)};n.prototype.stepEmptyStatement=function(e,t,i){e.pop()};n.prototype.stepEvalProgram_=function(e,t,i){var r=t.n_||0,s=i.body[r];if(s)return t.n_=r+1,new n.State(s,t.scope);e.pop(),e[e.length-1].value=this.value};n.prototype.stepExpressionStatement=function(e,t,i){if(!t.done_)return this.value=void 0,t.done_=!0,new n.State(i.expression,t.scope);e.pop(),this.value=t.value};n.prototype.stepForInStatement=function(e,t,i){if(!t.doneInit_&&(t.doneInit_=!0,i.left.declarations&&i.left.declarations[0].init))return t.scope.strict&&this.throwException(this.SYNTAX_ERROR,"for-in loop variable declaration may not have an initializer"),new n.State(i.left,t.scope);if(!t.doneObject_)return t.doneObject_=!0,t.variable_||(t.variable_=t.value),new n.State(i.right,t.scope);if(t.isLoop||(t.isLoop=!0,t.object_=t.value,t.visited_=Object.create(null)),t.name_===void 0){e:for(;;){if(t.object_ instanceof n.Object)for(t.props_||(t.props_=Object.getOwnPropertyNames(t.object_.properties));;){var r=t.props_.shift();if(r===void 0)break;if(!!Object.prototype.hasOwnProperty.call(t.object_.properties,r)&&!t.visited_[r]&&(t.visited_[r]=!0,!!Object.prototype.propertyIsEnumerable.call(t.object_.properties,r))){t.name_=r;break e}}else if(t.object_!==null&&t.object_!==void 0)for(t.props_||(t.props_=Object.getOwnPropertyNames(t.object_));;){var r=t.props_.shift();if(r===void 0)break;if(t.visited_[r]=!0,!!Object.prototype.propertyIsEnumerable.call(t.object_,r)){t.name_=r;break e}}if(t.object_=this.getPrototype(t.object_),t.props_=null,t.object_===null){e.pop();return}}}if(!t.doneVariable_){t.doneVariable_=!0;var s=i.left;if(s.type==="VariableDeclaration")t.variable_=[n.SCOPE_REFERENCE,s.declarations[0].id.name];else{t.variable_=null;var a=new n.State(s,t.scope);return a.components=!0,a}}if(t.variable_||(t.variable_=t.value),!t.doneSetter_){t.doneSetter_=!0;var o=t.name_,h=this.setValue(t.variable_,o);if(h)return this.createSetter_(h,t.variable_,o)}if(t.name_=void 0,t.doneVariable_=!1,t.doneSetter_=!1,i.body)return new n.State(i.body,t.scope)};n.prototype.stepForStatement=function(e,t,i){switch(t.mode_){default:if(t.mode_=1,i.init)return new n.State(i.init,t.scope);break;case 1:if(t.mode_=2,i.test)return new n.State(i.test,t.scope);break;case 2:if(t.mode_=3,i.test&&!t.value)e.pop();else return t.isLoop=!0,new n.State(i.body,t.scope);break;case 3:if(t.mode_=1,i.update)return new n.State(i.update,t.scope);break}};n.prototype.stepFunctionDeclaration=function(e,t,i){e.pop()};n.prototype.stepFunctionExpression=function(e,t,i){e.pop(),t=e[e.length-1];var r=t.scope;i.id&&(r=this.createSpecialScope(r)),t.value=this.createFunction(i,r,t.destinationName),i.id&&this.setProperty(r.object,i.id.name,t.value,n.READONLY_DESCRIPTOR)};n.prototype.stepIdentifier=function(e,t,i){if(e.pop(),t.components){e[e.length-1].value=[n.SCOPE_REFERENCE,i.name];return}var r=this.getValueFromScope(i.name);if(this.getterStep_){var s=r;return this.createGetter_(s,this.globalObject)}e[e.length-1].value=r};n.prototype.stepIfStatement=n.prototype.stepConditionalExpression;n.prototype.stepLabeledStatement=function(e,t,i){e.pop();var r=t.labels||[];r.push(i.label.name);var s=new n.State(i.body,t.scope);return s.labels=r,s};n.prototype.stepLiteral=function(e,t,i){e.pop();var r=i.value;if(r instanceof RegExp){var s=this.createObjectProto(this.REGEXP_PROTO);this.populateRegExp(s,r),r=s}e[e.length-1].value=r};n.prototype.stepLogicalExpression=function(e,t,i){if(i.operator!=="&&"&&i.operator!=="||")throw SyntaxError("Unknown logical operator: "+i.operator);if(!t.doneLeft_)return t.doneLeft_=!0,new n.State(i.left,t.scope);if(t.doneRight_)e.pop(),e[e.length-1].value=t.value;else if(i.operator==="&&"&&!t.value||i.operator==="||"&&t.value)e.pop(),e[e.length-1].value=t.value;else return t.doneRight_=!0,new n.State(i.right,t.scope)};n.prototype.stepMemberExpression=function(e,t,i){if(!t.doneObject_)return t.doneObject_=!0,new n.State(i.object,t.scope);var r;if(!i.computed)t.object_=t.value,r=i.property.name;else if(t.doneProperty_)r=t.value;else return t.object_=t.value,t.doneProperty_=!0,new n.State(i.property,t.scope);if(e.pop(),t.components)e[e.length-1].value=[t.object_,r];else{var s=this.getProperty(t.object_,r);if(this.getterStep_){var a=s;return this.createGetter_(a,t.object_)}e[e.length-1].value=s}};n.prototype.stepNewExpression=n.prototype.stepCallExpression;n.prototype.stepObjectExpression=function(e,t,i){var r=t.n_||0,s=i.properties[r];if(!t.object_)t.object_=this.createObjectProto(this.OBJECT_PROTO),t.properties_=Object.create(null);else{var a=t.destinationName;t.properties_[a]||(t.properties_[a]={}),t.properties_[a][s.kind]=t.value,t.n_=++r,s=i.properties[r]}if(s){var o=s.key;if(o.type==="Identifier")var a=o.name;else if(o.type==="Literal")var a=o.value;else throw SyntaxError("Unknown object structure: "+o.type);return t.destinationName=a,new n.State(s.value,t.scope)}for(var o in t.properties_){var h=t.properties_[o];if("get"in h||"set"in h){var c={configurable:!0,enumerable:!0,get:h.get,set:h.set};this.setProperty(t.object_,o,n.VALUE_IN_DESCRIPTOR,c)}else this.setProperty(t.object_,o,h.init)}e.pop(),e[e.length-1].value=t.object_};n.prototype.stepProgram=function(e,t,i){var r=i.body.shift();if(r)return t.done=!1,new n.State(r,t.scope);t.done=!0};n.prototype.stepReturnStatement=function(e,t,i){if(i.argument&&!t.done_)return t.done_=!0,new n.State(i.argument,t.scope);this.unwind(n.Completion.RETURN,t.value,void 0)};n.prototype.stepSequenceExpression=function(e,t,i){var r=t.n_||0,s=i.expressions[r];if(s)return t.n_=r+1,new n.State(s,t.scope);e.pop(),e[e.length-1].value=t.value};n.prototype.stepSwitchStatement=function(e,t,i){if(!t.test_)return t.test_=1,new n.State(i.discriminant,t.scope);for(t.test_===1&&(t.test_=2,t.switchValue_=t.value,t.defaultCase_=-1);;){var r=t.index_||0,s=i.cases[r];if(!t.matched_&&s&&!s.test){t.defaultCase_=r,t.index_=r+1;continue}if(!s&&!t.matched_&&t.defaultCase_!==-1){t.matched_=!0,t.index_=t.defaultCase_;continue}if(s){if(!t.matched_&&!t.tested_&&s.test)return t.tested_=!0,new n.State(s.test,t.scope);if(t.matched_||t.value===t.switchValue_){t.matched_=!0;var a=t.n_||0;if(s.consequent[a])return t.isSwitch=!0,t.n_=a+1,new n.State(s.consequent[a],t.scope)}t.tested_=!1,t.n_=0,t.index_=r+1}else{e.pop();return}}};n.prototype.stepThisExpression=function(e,t,i){e.pop(),e[e.length-1].value=this.getValueFromScope("this")};n.prototype.stepThrowStatement=function(e,t,i){if(t.done_)this.throwException(t.value);else return t.done_=!0,new n.State(i.argument,t.scope)};n.prototype.stepTryStatement=function(e,t,i){if(!t.doneBlock_)return t.doneBlock_=!0,new n.State(i.block,t.scope);if(t.cv&&t.cv.type===n.Completion.THROW&&!t.doneHandler_&&i.handler){t.doneHandler_=!0;var r=this.createSpecialScope(t.scope);return this.setProperty(r.object,i.handler.param.name,t.cv.value),t.cv=void 0,new n.State(i.handler.body,r)}if(!t.doneFinalizer_&&i.finalizer)return t.doneFinalizer_=!0,new n.State(i.finalizer,t.scope);e.pop(),t.cv&&this.unwind(t.cv.type,t.cv.value,t.cv.label)};n.prototype.stepUnaryExpression=function(e,t,i){if(!t.done_){t.done_=!0;var r=new n.State(i.argument,t.scope);return r.components=i.operator==="delete",r}e.pop();var s=t.value;switch(i.operator){case"-":s=-s;break;case"+":s=+s;break;case"!":s=!s;break;case"~":s=~s;break;case"delete":var a=!0;if(Array.isArray(s)){var o=s[0];o===n.SCOPE_REFERENCE&&(o=t.scope);var h=String(s[1]);try{delete o.properties[h]}catch{t.scope.strict?this.throwException(this.TYPE_ERROR,"Cannot delete property '"+h+"' of '"+o+"'"):a=!1}}s=a;break;case"typeof":s=s&&s.class==="Function"?"function":typeof s;break;case"void":s=void 0;break;default:throw SyntaxError("Unknown unary operator: "+i.operator)}e[e.length-1].value=s};n.prototype.stepUpdateExpression=function(e,t,i){if(!t.doneLeft_){t.doneLeft_=!0;var r=new n.State(i.argument,t.scope);return r.components=!0,r}if(t.leftSide_||(t.leftSide_=t.value),t.doneGetter_&&(t.leftValue_=t.value),!t.doneGetter_){var a=this.getValue(t.leftSide_);if(t.leftValue_=a,this.getterStep_){t.doneGetter_=!0;var s=a;return this.createGetter_(s,t.leftSide_)}}if(t.doneSetter_){e.pop(),e[e.length-1].value=t.setterValue_;return}var a=Number(t.leftValue_),o;if(i.operator==="++")o=a+1;else if(i.operator==="--")o=a-1;else throw SyntaxError("Unknown update expression: "+i.operator);var h=i.prefix?o:a,c=this.setValue(t.leftSide_,o);if(c)return t.doneSetter_=!0,t.setterValue_=h,this.createSetter_(c,t.leftSide_,o);e.pop(),e[e.length-1].value=h};n.prototype.stepVariableDeclaration=function(e,t,i){var r=i.declarations,s=t.n_||0,a=r[s];for(t.init_&&a&&(this.setValueToScope(a.id.name,t.value),t.init_=!1,a=r[++s]);a;){if(a.init)return t.n_=s,t.init_=!0,t.destinationName=a.id.name,new n.State(a.init,t.scope);a=r[++s]}e.pop()};n.prototype.stepWithStatement=function(e,t,i){if(!t.doneObject_)return t.doneObject_=!0,new n.State(i.object,t.scope);e.pop();var r=this.createSpecialScope(t.scope,t.value);return new n.State(i.body,r)};n.prototype.stepWhileStatement=n.prototype.stepDoWhileStatement;n.nativeGlobal.Interpreter=n;n.prototype.step=n.prototype.step;n.prototype.run=n.prototype.run;n.prototype.appendCode=n.prototype.appendCode;n.prototype.createObject=n.prototype.createObject;n.prototype.createObjectProto=n.prototype.createObjectProto;n.prototype.createAsyncFunction=n.prototype.createAsyncFunction;n.prototype.createNativeFunction=n.prototype.createNativeFunction;n.prototype.getProperty=n.prototype.getProperty;n.prototype.setProperty=n.prototype.setProperty;n.prototype.nativeToPseudo=n.prototype.nativeToPseudo;n.prototype.pseudoToNative=n.prototype.pseudoToNative;n.prototype.getGlobalScope=n.prototype.getGlobalScope;n.prototype.getStateStack=n.prototype.getStateStack;n.prototype.setStateStack=n.prototype.setStateStack;n.VALUE_IN_DESCRIPTOR=n.VALUE_IN_DESCRIPTOR;n.nativeGlobal.acornParse=Wt;const qt=e=>e.split(`
16
+ `).map(t=>{const i=t.trim();if(t.includes("__awaiter"))return;if(!i.startsWith("state."))return t;const[s,a]=i.split("="),h=`setRootState('${s.replace("state.","").trim()}', ${a.trim()})`;return`
17
+ ${t}
18
+ ${h}
19
+ `}).filter(Boolean).join(`
20
+ `),Pe=e=>e+"JSON",Xt=({builder:e,context:t,event:i,rootState:r,localState:s,rootSetState:a,useCode:o})=>{const h={...r,...s},c={state:h,Builder:e,builder:e,context:t,event:i},p=Object.keys(c).map(v=>`var ${v} = JSON.parse(${Pe(v)});`).join(`
21
+ `),l=qt(o);if(l===""){V.logger.warn("Skipping evaluation of empty code block.");return}const y=`
22
+ function theFunction() {
23
+ ${p}
24
+
25
+ ${l}
26
+ }
27
+ theFunction();
28
+ `,g=(v,R)=>{const w=Ce(h,v,R);a==null||a(w)},b=function(v,R){Object.keys(c).forEach(w=>{const k=c[w]||{},ee=JSON.stringify(k);v.setProperty(R,Pe(w),ee)}),v.setProperty(R,"setRootState",v.createNativeFunction(g))};try{const v=new n(y,b);return v.run(),v.pseudoToNative(v.value)}catch(v){V.logger.warn("Custom code error in non-node runtime. SDK can only execute ES5 JavaScript.",{e:v});return}};function Ht({code:e,context:t,localState:i,rootState:r,rootSetState:s,event:a,isExpression:o=!0}){if(e===""){V.logger.warn("Skipping evaluation of empty code block.");return}const h={isEditing:V.isEditing(),isBrowser:V.isBrowser(),isServer:!V.isBrowser()},l={useCode:o&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,builder:h,context:t,event:a,rootSetState:s,rootState:r,localState:i};return V.isBrowser()?ht(l):lt()?Xt(l):Jt(l)}const ht=({useCode:e,builder:t,context:i,event:r,localState:s,rootSetState:a,rootState:o})=>{const h=zt(o,s,a);try{return new Function("builder","Builder","state","context","event",e)(t,t,h,i,r)}catch(c){V.logger.warn(`Builder custom code error:
29
+ While Evaluating:
30
+ `,e,`
31
+ `,c)}},Jt=e=>ht(e);function zt(e,t,i){if(e===t)throw new Error("rootState === localState");return new Proxy(e,{get:(r,s)=>t&&s in t?t[s]:e[s],set:(r,s,a)=>{if(t&&s in t)throw new Error("Writing to local state is not allowed as it is read-only.");return e[s]=a,i==null||i(e),!0}})}exports.evaluate=Ht;exports.set=Ce;