@highstate/designer 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (512) hide show
  1. package/.output/nitro.json +3 -3
  2. package/.output/public/_nuxt/57B6Rca8.js +1 -0
  3. package/.output/public/_nuxt/5X7smno1.js +1 -0
  4. package/.output/public/_nuxt/{Cp2bjttb.js → 83L43bj1.js} +1 -1
  5. package/.output/public/_nuxt/8MSfy8uY.js +1 -0
  6. package/.output/public/_nuxt/9I37tBe7.js +1 -0
  7. package/.output/public/_nuxt/Aopv2gwH.js +1 -0
  8. package/.output/public/_nuxt/B13uiJCv.js +1 -0
  9. package/.output/public/_nuxt/B7c-h3xW.js +1 -0
  10. package/.output/public/_nuxt/B8nw2aST.js +2 -0
  11. package/.output/public/_nuxt/{1DNp92w6.js → B93PlW-d.js} +1 -1
  12. package/.output/public/_nuxt/BA0jw7CM.js +1 -0
  13. package/.output/public/_nuxt/BBf5iR-q.js +1 -0
  14. package/.output/public/_nuxt/BCVaR2pQ.js +1 -0
  15. package/.output/public/_nuxt/BDAHnC4j.js +1 -0
  16. package/.output/public/_nuxt/BDa1f6PF.js +2 -0
  17. package/.output/public/_nuxt/{YB_1Ta41.js → BDs6uo3D.js} +1 -1
  18. package/.output/public/_nuxt/BEEt8Am7.js +1 -0
  19. package/.output/public/_nuxt/BE_Meo09.js +269 -0
  20. package/.output/public/_nuxt/BGHnOYBU.js +1 -0
  21. package/.output/public/_nuxt/BH7IYjvW.js +1 -0
  22. package/.output/public/_nuxt/BJDFO7_C.js +1 -0
  23. package/.output/public/_nuxt/BJK6uMxG.js +1 -0
  24. package/.output/public/_nuxt/BLF3u89x.js +1 -0
  25. package/.output/public/_nuxt/{Xi2tawMN.js → BLmx8bSh.js} +1 -1
  26. package/.output/public/_nuxt/{DlfHMoPT.js → BPQ3VLAy.js} +1 -1
  27. package/.output/public/_nuxt/BPcwi1q2.js +1 -0
  28. package/.output/public/_nuxt/{BBGuKPBd.js → BR5kRUq4.js} +1 -1
  29. package/.output/public/_nuxt/BTifaqeh.js +1 -0
  30. package/.output/public/_nuxt/BUNf2Yb8.js +1 -0
  31. package/.output/public/_nuxt/BUw7H-hv.js +1 -0
  32. package/.output/public/_nuxt/{DRprw4p4.js → BVQ-GDCI.js} +1 -1
  33. package/.output/public/_nuxt/{BbQj0Z2C.js → BYV0-3_D.js} +1 -1
  34. package/.output/public/_nuxt/BZvkOJ9d.js +1 -0
  35. package/.output/public/_nuxt/Ba13S78F.js +1 -0
  36. package/.output/public/_nuxt/BcVCzyr7.js +1 -0
  37. package/.output/public/_nuxt/BhRPY-oY.js +1 -0
  38. package/.output/public/_nuxt/{uMbE6_td.js → Bhrxn6JZ.js} +1 -1
  39. package/.output/public/_nuxt/BkNNRtnm.js +1 -0
  40. package/.output/public/_nuxt/BlfjmxyP.js +1 -0
  41. package/.output/public/_nuxt/Bmn6On1c.js +1 -0
  42. package/.output/public/_nuxt/Bo8jzlL1.js +18 -0
  43. package/.output/public/_nuxt/BpkvlDNi.js +1 -0
  44. package/.output/public/_nuxt/{BIAuTxu3.js → Br6cN0cg.js} +1 -1
  45. package/.output/public/_nuxt/{CUEJCptM.js → BrzmwbiE.js} +1 -1
  46. package/.output/public/_nuxt/{D32k8WzR.js → BtvRca6l.js} +1 -1
  47. package/.output/public/_nuxt/BuJgCY_C.js +1 -0
  48. package/.output/public/_nuxt/Bv_4Rxtq.js +1 -0
  49. package/.output/public/_nuxt/BvzEVeQv.js +1 -0
  50. package/.output/public/_nuxt/BxAss8Tj.js +1 -0
  51. package/.output/public/_nuxt/BxaP9l2T.js +1 -0
  52. package/.output/public/_nuxt/BxgE0vQu.js +1 -0
  53. package/.output/public/_nuxt/ByBNG4eo.js +1 -0
  54. package/.output/public/_nuxt/{COI20M4I.js → BzTr9Aqm.js} +1 -1
  55. package/.output/public/_nuxt/{CXu1NL6O.js → C-HG3fhB.js} +1 -1
  56. package/.output/public/_nuxt/C-sUppwS.js +1 -0
  57. package/.output/public/_nuxt/C1FLL1Qz.js +1 -0
  58. package/.output/public/_nuxt/C3Wv6jpd.js +1 -0
  59. package/.output/public/_nuxt/C47S-Tmv.js +1 -0
  60. package/.output/public/_nuxt/C4EeE6gA.js +1 -0
  61. package/.output/public/_nuxt/{C-Jbm3Hp.js → C4gqWexZ.js} +1 -1
  62. package/.output/public/_nuxt/{DTMYz4Jt.js → C5YyOfLZ.js} +1 -1
  63. package/.output/public/_nuxt/C7zT0LnQ.js +1 -0
  64. package/.output/public/_nuxt/C8lm7lgC.js +1 -0
  65. package/.output/public/_nuxt/C9dUb6Cb.js +1 -0
  66. package/.output/public/_nuxt/{DS1LvVMU.js → C9oPPf7i.js} +1 -1
  67. package/.output/public/_nuxt/{D1uDOp7C.js → CFHQjOhq.js} +1 -1
  68. package/.output/public/_nuxt/{Dtc2v4kS.js → CGscLIrv.js} +1 -1
  69. package/.output/public/_nuxt/{DKzvysjW.js → CH1njM8p.js} +1 -1
  70. package/.output/public/_nuxt/CJWmG4YP.js +12 -0
  71. package/.output/public/_nuxt/CLZrNe3w.js +1 -0
  72. package/.output/public/_nuxt/CMTm3GFP.js +1 -0
  73. package/.output/public/_nuxt/CMjwMIkn.js +1 -0
  74. package/.output/public/_nuxt/COcwbKMJ.js +1 -0
  75. package/.output/public/_nuxt/CPZSvMBB.js +1 -0
  76. package/.output/public/_nuxt/CPpO8vcZ.js +1 -0
  77. package/.output/public/_nuxt/CQ8jqdy-.js +1 -0
  78. package/.output/public/_nuxt/CV5MeYf9.js +1 -0
  79. package/.output/public/_nuxt/{CcyOm34o.js → CVdnzihN.js} +1 -1
  80. package/.output/public/_nuxt/CW8IKDeL.js +1 -0
  81. package/.output/public/_nuxt/{pkIJ47B4.js → CXZktZb0.js} +1 -1
  82. package/.output/public/_nuxt/CYsAdtH9.js +1 -0
  83. package/.output/public/_nuxt/{BUyGWigt.js → CZhp0h8q.js} +1 -1
  84. package/.output/public/_nuxt/CaJ-zn_Z.js +2 -0
  85. package/.output/public/_nuxt/CcOKGYBt.js +1 -0
  86. package/.output/public/_nuxt/{oTG82Wo1.js → CenWIFCC.js} +1 -1
  87. package/.output/public/_nuxt/ChaZkl1J.js +1 -0
  88. package/.output/public/_nuxt/CjoLj4QM.js +1 -0
  89. package/.output/public/_nuxt/{BtsDLbAf.js → Cl0AqbOI.js} +1 -1
  90. package/.output/public/_nuxt/Cm-2nZ05.js +1 -0
  91. package/.output/public/_nuxt/{DUSGQflk.js → Cm3UrAx6.js} +1 -1
  92. package/.output/public/_nuxt/{BGHREFWD.js → CmIQRyeF.js} +1 -1
  93. package/.output/public/_nuxt/{f7oK2omx.js → Cn7AkR1O.js} +1 -1
  94. package/.output/public/_nuxt/{JhPuU2gP.js → CnnebwVN.js} +1 -1
  95. package/.output/public/_nuxt/CnsnAmq5.js +1 -0
  96. package/.output/public/_nuxt/CoDkCxhg.js +1 -0
  97. package/.output/public/_nuxt/{B-hkwWGT.js → CpOuai2O.js} +1 -1
  98. package/.output/public/_nuxt/CudFwYib.js +1 -0
  99. package/.output/public/_nuxt/{BDzgwa52.js → CufHLc7y.js} +1 -1
  100. package/.output/public/_nuxt/CwoSXNpI.js +1 -0
  101. package/.output/public/_nuxt/CxEW7TG8.js +1 -0
  102. package/.output/public/_nuxt/CxLEBnE3.js +1 -0
  103. package/.output/public/_nuxt/{DNrj_gVY.js → CxbxFI8M.js} +1 -1
  104. package/.output/public/_nuxt/CzSiA7V6.js +1 -0
  105. package/.output/public/_nuxt/D-wGZMZP.js +1 -0
  106. package/.output/public/_nuxt/D27ZAKIj.js +1 -0
  107. package/.output/public/_nuxt/D2aToa54.js +1 -0
  108. package/.output/public/_nuxt/D2obegTF.js +1 -0
  109. package/.output/public/_nuxt/{NleAzG8P.js → D4_iv3hh.js} +1 -1
  110. package/.output/public/_nuxt/D53aC0YG.js +1 -0
  111. package/.output/public/_nuxt/D5z-4QVk.js +1 -0
  112. package/.output/public/_nuxt/D6fh7rEe.js +2 -0
  113. package/.output/public/_nuxt/D87Tk5Gz.js +1 -0
  114. package/.output/public/_nuxt/D8_7TLub.js +1 -0
  115. package/.output/public/_nuxt/D91rOou-.js +13 -0
  116. package/.output/public/_nuxt/DCBCRx0O.js +1 -0
  117. package/.output/public/_nuxt/DCR009rv.js +1 -0
  118. package/.output/public/_nuxt/DCinzvm1.js +1 -0
  119. package/.output/public/_nuxt/DEthMvLe.js +1 -0
  120. package/.output/public/_nuxt/DFWUc33u.js +1 -0
  121. package/.output/public/_nuxt/{5bLW0GMw.js → DGP4VlC8.js} +1 -1
  122. package/.output/public/_nuxt/{CnK8MTSM.js → DHQR4-dF.js} +1 -1
  123. package/.output/public/_nuxt/DJN0y8jO.js +1 -0
  124. package/.output/public/_nuxt/DJjDtW9f.js +1 -0
  125. package/.output/public/_nuxt/DKhcu7kD.js +1 -0
  126. package/.output/public/_nuxt/DMwsHuHA.js +1 -0
  127. package/.output/public/_nuxt/{GAB5JH5K.js → DNqd6Nek.js} +1 -1
  128. package/.output/public/_nuxt/DOMRsNpU.js +1 -0
  129. package/.output/public/_nuxt/DOPqH6_T.js +1 -0
  130. package/.output/public/_nuxt/DQHHT9y-.js +1 -0
  131. package/.output/public/_nuxt/{B5ZR69Tn.js → DQwYQDb2.js} +1 -1
  132. package/.output/public/_nuxt/DQyhUUbL.js +1 -0
  133. package/.output/public/_nuxt/DRfxs3PN.js +1 -0
  134. package/.output/public/_nuxt/{DPcUKYIF.js → DRw_LuNl.js} +1 -1
  135. package/.output/public/_nuxt/DV7GczEv.js +1 -0
  136. package/.output/public/_nuxt/DWQRqdcR.js +1 -0
  137. package/.output/public/_nuxt/DWa2aw6r.js +1 -0
  138. package/.output/public/_nuxt/DYoxhk2S.js +1 -0
  139. package/.output/public/_nuxt/DZf3V79B.js +1 -0
  140. package/.output/public/_nuxt/{BPzJO5Oe.js → DZu-aV2c.js} +1 -1
  141. package/.output/public/_nuxt/Dbwml2gB.js +1 -0
  142. package/.output/public/_nuxt/DfvKjH24.js +1 -0
  143. package/.output/public/_nuxt/{Cdx7mHEO.js → DhmSosst.js} +1 -1
  144. package/.output/public/_nuxt/DiTMzCP2.js +1 -0
  145. package/.output/public/_nuxt/{CA7CTBwS.js → Dph4kLrZ.js} +1 -1
  146. package/.output/public/_nuxt/DqQDbK_p.js +1 -0
  147. package/.output/public/_nuxt/DsS90Fp6.js +1 -0
  148. package/.output/public/_nuxt/Dspwwk_N.js +1 -0
  149. package/.output/public/_nuxt/DsumFeuD.js +1 -0
  150. package/.output/public/_nuxt/DxERyYWQ.js +1 -0
  151. package/.output/public/_nuxt/{D7ScPSBf.js → DxNHbxmM.js} +1 -1
  152. package/.output/public/_nuxt/{CLvts2aQ.js → DxSwrfjg.js} +1 -1
  153. package/.output/public/_nuxt/{DcmvOc98.js → DyMmfYiE.js} +1 -1
  154. package/.output/public/_nuxt/DzWdbJvx.js +1 -0
  155. package/.output/public/_nuxt/{COEtLSDF.js → Dzze3sRP.js} +1 -1
  156. package/.output/public/_nuxt/G13IRnB2.js +1 -0
  157. package/.output/public/_nuxt/GDxZ_Nvm.js +14 -0
  158. package/.output/public/_nuxt/GgtqCdye.js +1 -0
  159. package/.output/public/_nuxt/{DkhsQLT2.js → GsRaNv29.js} +1 -1
  160. package/.output/public/_nuxt/IF9eRakj.js +1 -0
  161. package/.output/public/_nuxt/RCBWmVHz.js +1 -0
  162. package/.output/public/_nuxt/{Cb0HU5_O.js → RNghxpo_.js} +1 -1
  163. package/.output/public/_nuxt/{SecretValueField.DcyO8gGc.css → SecretValueField.Dy80RlGP.css} +1 -1
  164. package/.output/public/_nuxt/{B8ROHVmM.js → TsXTqZ29.js} +1 -1
  165. package/.output/public/_nuxt/VCDPK7BO.js +1 -0
  166. package/.output/public/_nuxt/{CU27uY9n.js → W9tJ9s81.js} +1 -1
  167. package/.output/public/_nuxt/{CmALWFRB.js → XEA9GSJd.js} +16 -468
  168. package/.output/public/_nuxt/{DeWFVDHI.js → YqXBG_HV.js} +1 -1
  169. package/.output/public/_nuxt/ZbicA1ry.js +1 -0
  170. package/.output/public/_nuxt/_snapshotId_.ChuSNeNY.css +1 -0
  171. package/.output/public/_nuxt/builds/latest.json +1 -1
  172. package/.output/public/_nuxt/builds/meta/a1fec520-0c95-4ae0-af5e-964780fad341.json +1 -0
  173. package/.output/public/_nuxt/d-NZQb9b.js +1 -0
  174. package/.output/public/_nuxt/edge-router-BdPMCV6u.js +1 -0
  175. package/.output/public/_nuxt/{entry.BAsn-2au.css → entry.Bc0aTA0K.css} +1 -1
  176. package/.output/public/_nuxt/error-404.X7H_YhdC.css +1 -0
  177. package/.output/public/_nuxt/error-500.BOQe1fsk.css +1 -0
  178. package/.output/public/_nuxt/f3TOpYbw.js +1 -0
  179. package/.output/public/_nuxt/{DrZfEa88.js → fKv21gyL.js} +1 -1
  180. package/.output/public/_nuxt/graph-layout-B7wl80r3.js +1 -0
  181. package/.output/public/_nuxt/graph-resolver-DKNtntr2.js +180 -0
  182. package/.output/public/_nuxt/{CGqH5EJj.js → hJgmCMqR.js} +1 -1
  183. package/.output/public/_nuxt/{BoKiGodi.js → k_qm7-4y.js} +1 -1
  184. package/.output/public/_nuxt/{IvJ92aGK.js → m17aaUwq.js} +1 -1
  185. package/.output/public/_nuxt/mUFnM-_q.js +1 -0
  186. package/.output/public/_nuxt/mWjccvbQ.js +1 -0
  187. package/.output/public/_nuxt/{BXY8tDGw.js → mjskCLCv.js} +1 -1
  188. package/.output/public/_nuxt/n0RAZLbO.js +1 -0
  189. package/.output/public/_nuxt/n2N0HUVH.js +1 -0
  190. package/.output/public/_nuxt/o_m1mZtJ.js +6 -0
  191. package/.output/public/_nuxt/pxXmJ8QX.js +1 -0
  192. package/.output/public/_nuxt/{BHrmToEH.js → qdsjHGoJ.js} +1 -1
  193. package/.output/public/_nuxt/{BbcW6ACK.js → rGO070M0.js} +1 -1
  194. package/.output/public/_nuxt/rcFevLEP.js +2 -0
  195. package/.output/public/_nuxt/rgN_MdZl.js +1 -0
  196. package/.output/public/_nuxt/tsyQDnRt.js +5 -0
  197. package/.output/public/_nuxt/u5AG7uiY.js +1 -0
  198. package/.output/public/_nuxt/uYugtg8r.js +1 -0
  199. package/.output/public/_nuxt/vuetify.BzdWZaIq.css +1 -0
  200. package/.output/public/_nuxt/{BMMyXqK5.js → wDzz0qaB.js} +1 -1
  201. package/.output/public/_nuxt/xA6NntuA.js +1 -0
  202. package/.output/public/_nuxt/xdsXwj_J.js +1 -0
  203. package/.output/public/_nuxt/xp27HhqZ.js +1 -0
  204. package/.output/public/_nuxt/xrNU8mHG.js +3 -0
  205. package/.output/public/_nuxt/yaml.worker-C1Cl1y5J.js +399 -0
  206. package/.output/public/_nuxt/ziXKbM2N.js +1 -0
  207. package/.output/public/libavoid.wasm +0 -0
  208. package/.output/server/index.mjs +2218 -6835
  209. package/.output/server/index.mjs.map +1 -1
  210. package/.output/server/node_modules/@babel/parser/lib/index.js +427 -440
  211. package/.output/server/node_modules/@babel/parser/package.json +6 -6
  212. package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/index.mjs +4 -4
  213. package/.output/server/node_modules/@trpc/server/dist/adapters/ws.mjs +10 -10
  214. package/.output/server/node_modules/@trpc/server/dist/{utils-CLZnJdb_.mjs → codes-DagpWZLc.mjs} +66 -66
  215. package/.output/server/node_modules/@trpc/server/dist/{getErrorShape-BH60iMC2.mjs → getErrorShape-vC8mUXJD.mjs} +3 -3
  216. package/.output/server/node_modules/@trpc/server/dist/index.mjs +4 -4
  217. package/.output/server/node_modules/@trpc/server/dist/{initTRPC-CB9uBez5.mjs → initTRPC-RoZMIBeA.mjs} +4 -4
  218. package/.output/server/node_modules/@trpc/server/dist/{node-http-8dtdvMrE.mjs → node-http-DtA2iLK9.mjs} +7 -5
  219. package/.output/server/node_modules/@trpc/server/dist/{parseTRPCMessage-BlZeZ60t.mjs → parseTRPCMessage-CTow-umk.mjs} +2 -2
  220. package/.output/server/node_modules/@trpc/server/dist/{resolveResponse-DngSgha6.mjs → resolveResponse-BVDlNZwN.mjs} +45 -48
  221. package/.output/server/node_modules/@trpc/server/dist/{tracked-Blz8XOf1.mjs → tracked-Bjtgv3wJ.mjs} +11 -9
  222. package/.output/server/node_modules/@trpc/server/dist/{unstable-core-do-not-import-D89CaGtL.mjs → unstable-core-do-not-import-9NNw8uQM.mjs} +5 -3
  223. package/.output/server/node_modules/@trpc/server/dist/{ws-BR20IWki.mjs → ws-CJgZE7Hg.mjs} +60 -20
  224. package/.output/server/node_modules/@trpc/server/package.json +6 -6
  225. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +128 -106
  226. package/.output/server/node_modules/@vue/compiler-core/package.json +5 -5
  227. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +54 -54
  228. package/.output/server/node_modules/@vue/compiler-dom/package.json +3 -3
  229. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +35 -33
  230. package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
  231. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +105 -42
  232. package/.output/server/node_modules/@vue/reactivity/package.json +2 -2
  233. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +2129 -2063
  234. package/.output/server/node_modules/@vue/runtime-core/package.json +3 -3
  235. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +78 -31
  236. package/.output/server/node_modules/@vue/runtime-dom/package.json +5 -5
  237. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +6 -6
  238. package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
  239. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +1 -1
  240. package/.output/server/node_modules/@vue/shared/package.json +1 -1
  241. package/.output/server/node_modules/copy-anything/dist/index.js +47 -31
  242. package/.output/server/node_modules/copy-anything/package.json +19 -72
  243. package/.output/server/node_modules/devalue/index.js +1 -0
  244. package/.output/server/node_modules/devalue/package.json +2 -2
  245. package/.output/server/node_modules/devalue/src/constants.js +1 -0
  246. package/.output/server/node_modules/devalue/src/parse.js +55 -4
  247. package/.output/server/node_modules/devalue/src/stringify.js +101 -12
  248. package/.output/server/node_modules/devalue/src/uneval.js +100 -13
  249. package/.output/server/node_modules/devalue/src/utils.js +35 -1
  250. package/.output/server/node_modules/entities/{lib/decode_codepoint.js → dist/commonjs/decode-codepoint.js} +16 -15
  251. package/.output/server/node_modules/entities/{lib → dist/commonjs}/decode.js +200 -168
  252. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  253. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  254. package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  255. package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  256. package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  257. package/.output/server/node_modules/entities/package.json +99 -69
  258. package/.output/server/node_modules/hookable/dist/index.mjs +244 -268
  259. package/.output/server/node_modules/hookable/package.json +29 -26
  260. package/.output/server/node_modules/is-what/dist/getType.js +4 -0
  261. package/.output/server/node_modules/is-what/dist/index.js +43 -171
  262. package/.output/server/node_modules/is-what/dist/isAnyObject.js +8 -0
  263. package/.output/server/node_modules/is-what/dist/isArray.js +5 -0
  264. package/.output/server/node_modules/is-what/dist/isBigInt.js +5 -0
  265. package/.output/server/node_modules/is-what/dist/isBlob.js +5 -0
  266. package/.output/server/node_modules/is-what/dist/isBoolean.js +5 -0
  267. package/.output/server/node_modules/is-what/dist/isDate.js +5 -0
  268. package/.output/server/node_modules/is-what/dist/isEmptyArray.js +5 -0
  269. package/.output/server/node_modules/is-what/dist/isEmptyObject.js +8 -0
  270. package/.output/server/node_modules/is-what/dist/isEmptyString.js +4 -0
  271. package/.output/server/node_modules/is-what/dist/isError.js +5 -0
  272. package/.output/server/node_modules/is-what/dist/isFile.js +5 -0
  273. package/.output/server/node_modules/is-what/dist/isFullArray.js +5 -0
  274. package/.output/server/node_modules/is-what/dist/isFullObject.js +8 -0
  275. package/.output/server/node_modules/is-what/dist/isFullString.js +5 -0
  276. package/.output/server/node_modules/is-what/dist/isFunction.js +4 -0
  277. package/.output/server/node_modules/is-what/dist/isHexDecimal.js +12 -0
  278. package/.output/server/node_modules/is-what/dist/isInstanceOf.js +19 -0
  279. package/.output/server/node_modules/is-what/dist/isInteger.js +5 -0
  280. package/.output/server/node_modules/is-what/dist/isIterable.js +16 -0
  281. package/.output/server/node_modules/is-what/dist/isMap.js +5 -0
  282. package/.output/server/node_modules/is-what/dist/isNaNValue.js +5 -0
  283. package/.output/server/node_modules/is-what/dist/isNegativeInteger.js +5 -0
  284. package/.output/server/node_modules/is-what/dist/isNegativeNumber.js +5 -0
  285. package/.output/server/node_modules/is-what/dist/isNull.js +5 -0
  286. package/.output/server/node_modules/is-what/dist/isNullOrUndefined.js +5 -0
  287. package/.output/server/node_modules/is-what/dist/isNumber.js +9 -0
  288. package/.output/server/node_modules/is-what/dist/isObject.js +8 -0
  289. package/.output/server/node_modules/is-what/dist/isObjectLike.js +11 -0
  290. package/.output/server/node_modules/is-what/dist/isOneOf.js +15 -0
  291. package/.output/server/node_modules/is-what/dist/isPlainObject.js +11 -0
  292. package/.output/server/node_modules/is-what/dist/isPositiveInteger.js +5 -0
  293. package/.output/server/node_modules/is-what/dist/isPositiveNumber.js +5 -0
  294. package/.output/server/node_modules/is-what/dist/isPrimitive.js +21 -0
  295. package/.output/server/node_modules/is-what/dist/isPromise.js +5 -0
  296. package/.output/server/node_modules/is-what/dist/isRegExp.js +5 -0
  297. package/.output/server/node_modules/is-what/dist/isSet.js +5 -0
  298. package/.output/server/node_modules/is-what/dist/isString.js +5 -0
  299. package/.output/server/node_modules/is-what/dist/isSymbol.js +5 -0
  300. package/.output/server/node_modules/is-what/dist/isType.js +20 -0
  301. package/.output/server/node_modules/is-what/dist/isUndefined.js +5 -0
  302. package/.output/server/node_modules/is-what/dist/isWeakMap.js +5 -0
  303. package/.output/server/node_modules/is-what/dist/isWeakSet.js +5 -0
  304. package/.output/server/node_modules/is-what/package.json +23 -88
  305. package/.output/server/node_modules/superjson/dist/index.js +9 -6
  306. package/.output/server/node_modules/superjson/dist/pathstringifier.js +13 -2
  307. package/.output/server/node_modules/superjson/dist/plainer.js +23 -11
  308. package/.output/server/node_modules/superjson/dist/transformer.js +4 -1
  309. package/.output/server/node_modules/superjson/package.json +5 -21
  310. package/.output/server/node_modules/ufo/dist/index.mjs +16 -9
  311. package/.output/server/node_modules/ufo/package.json +15 -14
  312. package/.output/server/node_modules/unhead/dist/plugins.mjs +2 -2
  313. package/.output/server/node_modules/unhead/dist/server.mjs +4 -6
  314. package/.output/server/node_modules/unhead/dist/shared/{unhead.DH45uomy.mjs → unhead.BFfcxOoW.mjs} +3 -3
  315. package/.output/server/node_modules/unhead/dist/shared/{unhead.DZbvapt-.mjs → unhead.CbpEuj3y.mjs} +3 -2
  316. package/.output/server/node_modules/unhead/dist/shared/{unhead.Djo8ep_Y.mjs → unhead.ckV6dpEQ.mjs} +1 -1
  317. package/.output/server/node_modules/unhead/dist/shared/{unhead.BpRRHAhY.mjs → unhead.eK9_7LaY.mjs} +16 -12
  318. package/.output/server/node_modules/unhead/dist/utils.mjs +2 -2
  319. package/.output/server/node_modules/unhead/package.json +2 -2
  320. package/.output/server/node_modules/vue/dist/vue.cjs.js +1 -1
  321. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +1 -1
  322. package/.output/server/node_modules/vue/package.json +6 -6
  323. package/.output/server/node_modules/ws/lib/constants.js +1 -0
  324. package/.output/server/node_modules/ws/lib/websocket-server.js +5 -1
  325. package/.output/server/node_modules/ws/lib/websocket.js +13 -8
  326. package/.output/server/node_modules/ws/package.json +1 -1
  327. package/.output/server/node_modules/zod/package.json +1 -1
  328. package/.output/server/node_modules/zod/v4/classic/checks.js +1 -1
  329. package/.output/server/node_modules/zod/v4/classic/external.js +3 -1
  330. package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +584 -0
  331. package/.output/server/node_modules/zod/v4/classic/schemas.js +121 -4
  332. package/.output/server/node_modules/zod/v4/core/api.js +157 -0
  333. package/.output/server/node_modules/zod/v4/core/checks.js +8 -2
  334. package/.output/server/node_modules/zod/v4/core/core.js +20 -11
  335. package/.output/server/node_modules/zod/v4/core/index.js +2 -0
  336. package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +95 -0
  337. package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +605 -0
  338. package/.output/server/node_modules/zod/v4/core/regexes.js +8 -2
  339. package/.output/server/node_modules/zod/v4/core/registries.js +3 -4
  340. package/.output/server/node_modules/zod/v4/core/schemas.js +204 -66
  341. package/.output/server/node_modules/zod/v4/core/to-json-schema.js +391 -869
  342. package/.output/server/node_modules/zod/v4/core/util.js +58 -8
  343. package/.output/server/node_modules/zod/v4/core/versions.js +2 -2
  344. package/.output/server/node_modules/zod/v4/locales/ar.js +14 -24
  345. package/.output/server/node_modules/zod/v4/locales/az.js +14 -24
  346. package/.output/server/node_modules/zod/v4/locales/be.js +16 -24
  347. package/.output/server/node_modules/zod/v4/locales/bg.js +16 -24
  348. package/.output/server/node_modules/zod/v4/locales/ca.js +14 -25
  349. package/.output/server/node_modules/zod/v4/locales/cs.js +18 -42
  350. package/.output/server/node_modules/zod/v4/locales/da.js +23 -39
  351. package/.output/server/node_modules/zod/v4/locales/de.js +16 -24
  352. package/.output/server/node_modules/zod/v4/locales/en.js +16 -24
  353. package/.output/server/node_modules/zod/v4/locales/eo.js +17 -24
  354. package/.output/server/node_modules/zod/v4/locales/es.js +42 -59
  355. package/.output/server/node_modules/zod/v4/locales/fa.js +16 -24
  356. package/.output/server/node_modules/zod/v4/locales/fi.js +14 -24
  357. package/.output/server/node_modules/zod/v4/locales/fr-CA.js +14 -24
  358. package/.output/server/node_modules/zod/v4/locales/fr.js +16 -24
  359. package/.output/server/node_modules/zod/v4/locales/he.js +175 -78
  360. package/.output/server/node_modules/zod/v4/locales/hu.js +16 -25
  361. package/.output/server/node_modules/zod/v4/locales/hy.js +147 -0
  362. package/.output/server/node_modules/zod/v4/locales/id.js +14 -24
  363. package/.output/server/node_modules/zod/v4/locales/index.js +2 -0
  364. package/.output/server/node_modules/zod/v4/locales/is.js +16 -24
  365. package/.output/server/node_modules/zod/v4/locales/it.js +16 -25
  366. package/.output/server/node_modules/zod/v4/locales/ja.js +16 -24
  367. package/.output/server/node_modules/zod/v4/locales/ka.js +19 -32
  368. package/.output/server/node_modules/zod/v4/locales/km.js +17 -24
  369. package/.output/server/node_modules/zod/v4/locales/ko.js +14 -24
  370. package/.output/server/node_modules/zod/v4/locales/lt.js +27 -54
  371. package/.output/server/node_modules/zod/v4/locales/mk.js +16 -25
  372. package/.output/server/node_modules/zod/v4/locales/ms.js +15 -24
  373. package/.output/server/node_modules/zod/v4/locales/nl.js +25 -32
  374. package/.output/server/node_modules/zod/v4/locales/no.js +16 -24
  375. package/.output/server/node_modules/zod/v4/locales/ota.js +17 -25
  376. package/.output/server/node_modules/zod/v4/locales/pl.js +16 -24
  377. package/.output/server/node_modules/zod/v4/locales/ps.js +16 -24
  378. package/.output/server/node_modules/zod/v4/locales/pt.js +16 -24
  379. package/.output/server/node_modules/zod/v4/locales/ru.js +16 -24
  380. package/.output/server/node_modules/zod/v4/locales/sl.js +16 -24
  381. package/.output/server/node_modules/zod/v4/locales/sv.js +16 -24
  382. package/.output/server/node_modules/zod/v4/locales/ta.js +17 -24
  383. package/.output/server/node_modules/zod/v4/locales/th.js +17 -24
  384. package/.output/server/node_modules/zod/v4/locales/tr.js +14 -24
  385. package/.output/server/node_modules/zod/v4/locales/uk.js +16 -25
  386. package/.output/server/node_modules/zod/v4/locales/ur.js +17 -24
  387. package/.output/server/node_modules/zod/v4/locales/uz.js +109 -0
  388. package/.output/server/node_modules/zod/v4/locales/vi.js +16 -24
  389. package/.output/server/node_modules/zod/v4/locales/yo.js +16 -24
  390. package/.output/server/node_modules/zod/v4/locales/zh-CN.js +17 -24
  391. package/.output/server/node_modules/zod/v4/locales/zh-TW.js +14 -24
  392. package/.output/server/package.json +22 -22
  393. package/package.json +6 -6
  394. package/.output/public/_nuxt/-oaD50UK.js +0 -1
  395. package/.output/public/_nuxt/0ekw3e2V.js +0 -1
  396. package/.output/public/_nuxt/1f5tAgHw.js +0 -1
  397. package/.output/public/_nuxt/5ggY4uig.js +0 -1
  398. package/.output/public/_nuxt/6nHXG8SA.js +0 -1
  399. package/.output/public/_nuxt/9hmcqHPO.js +0 -1
  400. package/.output/public/_nuxt/BBxmzUt6.js +0 -1
  401. package/.output/public/_nuxt/BE2KfCdU.js +0 -1
  402. package/.output/public/_nuxt/BFNM2w_f.js +0 -1
  403. package/.output/public/_nuxt/BGLu70Yq.js +0 -1
  404. package/.output/public/_nuxt/BIuj43Wh.js +0 -1
  405. package/.output/public/_nuxt/BNGfscqk.js +0 -1
  406. package/.output/public/_nuxt/BQvybpQq.js +0 -1
  407. package/.output/public/_nuxt/BU7Cl-8B.js +0 -1
  408. package/.output/public/_nuxt/BUXOnL59.js +0 -1
  409. package/.output/public/_nuxt/Bbwybh3N.js +0 -2
  410. package/.output/public/_nuxt/BczD6j-v.js +0 -1
  411. package/.output/public/_nuxt/BepWV7mh.js +0 -1
  412. package/.output/public/_nuxt/Bh0qehhp.js +0 -1
  413. package/.output/public/_nuxt/Bl2oy6fF.js +0 -1
  414. package/.output/public/_nuxt/BmDdxTjo.js +0 -1
  415. package/.output/public/_nuxt/BqeRdtD4.js +0 -2
  416. package/.output/public/_nuxt/BvAqAH-y.js +0 -1
  417. package/.output/public/_nuxt/BxZD33h1.js +0 -1
  418. package/.output/public/_nuxt/C7Pw0Ztw.js +0 -1
  419. package/.output/public/_nuxt/C8-UwF3o.js +0 -1
  420. package/.output/public/_nuxt/CCd08HS_.js +0 -1
  421. package/.output/public/_nuxt/CHadp7IV.js +0 -1
  422. package/.output/public/_nuxt/CHh-QcGE.js +0 -1
  423. package/.output/public/_nuxt/CIUZ1G5V.js +0 -1
  424. package/.output/public/_nuxt/CJ6lOLXp.js +0 -1
  425. package/.output/public/_nuxt/CN9dMhDM.js +0 -1
  426. package/.output/public/_nuxt/CQ4fj8p0.js +0 -1
  427. package/.output/public/_nuxt/CTWiQX6C.js +0 -1
  428. package/.output/public/_nuxt/CXxzV4dz.js +0 -1
  429. package/.output/public/_nuxt/CZlF05X6.js +0 -1
  430. package/.output/public/_nuxt/CatV_12G.js +0 -1
  431. package/.output/public/_nuxt/CeMkeBDb.js +0 -1
  432. package/.output/public/_nuxt/CelvVQyk.js +0 -1
  433. package/.output/public/_nuxt/CfV455SO.js +0 -1
  434. package/.output/public/_nuxt/CfeIJUat.js +0 -1
  435. package/.output/public/_nuxt/CfqrF6sE.js +0 -1
  436. package/.output/public/_nuxt/Cfs9EX91.js +0 -1
  437. package/.output/public/_nuxt/ChH_ziBE.js +0 -1
  438. package/.output/public/_nuxt/ChM1GEGa.js +0 -1
  439. package/.output/public/_nuxt/CtwNW5xN.js +0 -1
  440. package/.output/public/_nuxt/Cu8OsqJL.js +0 -1
  441. package/.output/public/_nuxt/CusJppg0.js +0 -1
  442. package/.output/public/_nuxt/Cv9koXgw.js +0 -1
  443. package/.output/public/_nuxt/CvELRi2k.js +0 -5
  444. package/.output/public/_nuxt/Cw6nGM9K.js +0 -1
  445. package/.output/public/_nuxt/CwUT5n6w.js +0 -1
  446. package/.output/public/_nuxt/D-AHKB2i.js +0 -6
  447. package/.output/public/_nuxt/D-kcn2fr.js +0 -1
  448. package/.output/public/_nuxt/D08WgyRC.js +0 -1
  449. package/.output/public/_nuxt/D1Jbgd7O.js +0 -13
  450. package/.output/public/_nuxt/D1ibY74j.js +0 -1
  451. package/.output/public/_nuxt/D22FLkUw.js +0 -1
  452. package/.output/public/_nuxt/D2CYqzqI.js +0 -1
  453. package/.output/public/_nuxt/D34EmFco.js +0 -1
  454. package/.output/public/_nuxt/D4OhWExI.js +0 -1
  455. package/.output/public/_nuxt/DDHikT5j.js +0 -1
  456. package/.output/public/_nuxt/DDTT3lYc.js +0 -1
  457. package/.output/public/_nuxt/DFsBSlE_.js +0 -1
  458. package/.output/public/_nuxt/DHLkt8Yr.js +0 -1
  459. package/.output/public/_nuxt/DHuTDtaT.js +0 -12
  460. package/.output/public/_nuxt/DKYwYmdq.js +0 -1
  461. package/.output/public/_nuxt/DMDPKkZ0.js +0 -1
  462. package/.output/public/_nuxt/DNEoBllO.js +0 -1
  463. package/.output/public/_nuxt/DRzH1pOL.js +0 -1
  464. package/.output/public/_nuxt/DSUF3NDE.js +0 -1
  465. package/.output/public/_nuxt/DWmtspXK.js +0 -1
  466. package/.output/public/_nuxt/DXh9HyqW.js +0 -1
  467. package/.output/public/_nuxt/DXtl0MQI.js +0 -1
  468. package/.output/public/_nuxt/D_zCY0Xl.js +0 -1
  469. package/.output/public/_nuxt/DaZJpzOl.js +0 -1
  470. package/.output/public/_nuxt/Df68jz8_.js +0 -1
  471. package/.output/public/_nuxt/DhQfdAdO.js +0 -1
  472. package/.output/public/_nuxt/DiinP2Uv.js +0 -1
  473. package/.output/public/_nuxt/DljmTZ5-.js +0 -1
  474. package/.output/public/_nuxt/Dm4QKadl.js +0 -26
  475. package/.output/public/_nuxt/DmCK90gL.js +0 -1
  476. package/.output/public/_nuxt/Dn2_MT6a.js +0 -1
  477. package/.output/public/_nuxt/Don94nLk.js +0 -1
  478. package/.output/public/_nuxt/DqRHBxBn.js +0 -1
  479. package/.output/public/_nuxt/Dr8Zlu6v.js +0 -1
  480. package/.output/public/_nuxt/Drp5UXmf.js +0 -1
  481. package/.output/public/_nuxt/DtFoCuZo.js +0 -1
  482. package/.output/public/_nuxt/DxuitVdg.js +0 -2
  483. package/.output/public/_nuxt/DyJlTyXw.js +0 -1
  484. package/.output/public/_nuxt/H72r7nSc.js +0 -280
  485. package/.output/public/_nuxt/Jep7L2Wt.js +0 -1
  486. package/.output/public/_nuxt/LUl67wzp.js +0 -1
  487. package/.output/public/_nuxt/M2rHlmBj.js +0 -1
  488. package/.output/public/_nuxt/N3RVRbLb.js +0 -1
  489. package/.output/public/_nuxt/NBseiqgx.js +0 -1
  490. package/.output/public/_nuxt/PoHY5YXO.js +0 -1
  491. package/.output/public/_nuxt/SdwduGaY.js +0 -1
  492. package/.output/public/_nuxt/U3pqMjXV.js +0 -1
  493. package/.output/public/_nuxt/UInuXPgp.js +0 -1
  494. package/.output/public/_nuxt/XrMy4kkt.js +0 -1
  495. package/.output/public/_nuxt/YXI84j39.js +0 -2
  496. package/.output/public/_nuxt/ZZ6g6dXy.js +0 -2
  497. package/.output/public/_nuxt/builds/meta/67bdb4cb-b70e-4916-9486-0f6cd2f9704f.json +0 -1
  498. package/.output/public/_nuxt/dglhsJpM.js +0 -1
  499. package/.output/public/_nuxt/edge-router-yEORMNQw.js +0 -4
  500. package/.output/public/_nuxt/error-404.CttAF9VE.css +0 -1
  501. package/.output/public/_nuxt/error-500.DXXd6-x4.css +0 -1
  502. package/.output/public/_nuxt/ga9TZ2z5.js +0 -1
  503. package/.output/public/_nuxt/graph-layout-CFj469YF.js +0 -1
  504. package/.output/public/_nuxt/graph-resolver-Cs66Hj63.js +0 -166
  505. package/.output/public/_nuxt/ih8zLb53.js +0 -14
  506. package/.output/public/_nuxt/ov4D99rA.js +0 -1
  507. package/.output/public/_nuxt/qYU5Tabh.js +0 -1
  508. package/.output/public/_nuxt/qliWkHmV.js +0 -1
  509. package/.output/public/_nuxt/vuetify.BrkCt9t5.css +0 -5
  510. package/.output/public/_nuxt/yaml.worker-CQ6dFw39.js +0 -405
  511. package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +0 -9
  512. package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
@@ -350,18 +350,16 @@ function toParseErrorConstructor({
350
350
  syntaxPlugin
351
351
  }) {
352
352
  const hasMissingPlugin = reasonCode === "MissingPlugin" || reasonCode === "MissingOneOfPlugins";
353
- {
354
- const oldReasonCodes = {
355
- AccessorCannotDeclareThisParameter: "AccesorCannotDeclareThisParameter",
356
- AccessorCannotHaveTypeParameters: "AccesorCannotHaveTypeParameters",
357
- ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",
358
- SetAccessorCannotHaveOptionalParameter: "SetAccesorCannotHaveOptionalParameter",
359
- SetAccessorCannotHaveRestParameter: "SetAccesorCannotHaveRestParameter",
360
- SetAccessorCannotHaveReturnType: "SetAccesorCannotHaveReturnType"
361
- };
362
- if (oldReasonCodes[reasonCode]) {
363
- reasonCode = oldReasonCodes[reasonCode];
364
- }
353
+ const oldReasonCodes = {
354
+ AccessorCannotDeclareThisParameter: "AccesorCannotDeclareThisParameter",
355
+ AccessorCannotHaveTypeParameters: "AccesorCannotHaveTypeParameters",
356
+ ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",
357
+ SetAccessorCannotHaveOptionalParameter: "SetAccesorCannotHaveOptionalParameter",
358
+ SetAccessorCannotHaveRestParameter: "SetAccesorCannotHaveRestParameter",
359
+ SetAccessorCannotHaveReturnType: "SetAccesorCannotHaveReturnType"
360
+ };
361
+ if (oldReasonCodes[reasonCode]) {
362
+ reasonCode = oldReasonCodes[reasonCode];
365
363
  }
366
364
  return function constructor(loc, details) {
367
365
  const error = new SyntaxError();
@@ -443,7 +441,7 @@ function createDefaultOptions() {
443
441
  allowUndeclaredExports: false,
444
442
  allowYieldOutsideFunction: false,
445
443
  plugins: [],
446
- strictMode: null,
444
+ strictMode: undefined,
447
445
  ranges: false,
448
446
  tokens: false,
449
447
  createImportExpressions: false,
@@ -622,33 +620,26 @@ var estree = superClass => class ESTreeParserMixin extends superClass {
622
620
  }
623
621
  parsePrivateName() {
624
622
  const node = super.parsePrivateName();
625
- {
626
- if (!this.getPluginOption("estree", "classFeatures")) {
627
- return node;
628
- }
623
+ if (!this.getPluginOption("estree", "classFeatures")) {
624
+ return node;
629
625
  }
630
626
  return this.convertPrivateNameToPrivateIdentifier(node);
631
627
  }
632
628
  convertPrivateNameToPrivateIdentifier(node) {
633
629
  const name = super.getPrivateNameSV(node);
634
- node = node;
635
630
  delete node.id;
636
631
  node.name = name;
637
632
  return this.castNodeTo(node, "PrivateIdentifier");
638
633
  }
639
634
  isPrivateName(node) {
640
- {
641
- if (!this.getPluginOption("estree", "classFeatures")) {
642
- return super.isPrivateName(node);
643
- }
635
+ if (!this.getPluginOption("estree", "classFeatures")) {
636
+ return super.isPrivateName(node);
644
637
  }
645
638
  return node.type === "PrivateIdentifier";
646
639
  }
647
640
  getPrivateNameSV(node) {
648
- {
649
- if (!this.getPluginOption("estree", "classFeatures")) {
650
- return super.getPrivateNameSV(node);
651
- }
641
+ if (!this.getPluginOption("estree", "classFeatures")) {
642
+ return super.getPrivateNameSV(node);
652
643
  }
653
644
  return node.name;
654
645
  }
@@ -696,35 +687,25 @@ var estree = superClass => class ESTreeParserMixin extends superClass {
696
687
  }
697
688
  parseClassProperty(...args) {
698
689
  const propertyNode = super.parseClassProperty(...args);
699
- {
700
- if (!this.getPluginOption("estree", "classFeatures")) {
701
- return propertyNode;
702
- }
703
- }
704
- {
705
- this.castNodeTo(propertyNode, "PropertyDefinition");
690
+ if (!this.getPluginOption("estree", "classFeatures")) {
691
+ return propertyNode;
706
692
  }
693
+ this.castNodeTo(propertyNode, "PropertyDefinition");
707
694
  return propertyNode;
708
695
  }
709
696
  parseClassPrivateProperty(...args) {
710
697
  const propertyNode = super.parseClassPrivateProperty(...args);
711
- {
712
- if (!this.getPluginOption("estree", "classFeatures")) {
713
- return propertyNode;
714
- }
715
- }
716
- {
717
- this.castNodeTo(propertyNode, "PropertyDefinition");
698
+ if (!this.getPluginOption("estree", "classFeatures")) {
699
+ return propertyNode;
718
700
  }
701
+ this.castNodeTo(propertyNode, "PropertyDefinition");
719
702
  propertyNode.computed = false;
720
703
  return propertyNode;
721
704
  }
722
705
  parseClassAccessorProperty(node) {
723
706
  const accessorPropertyNode = super.parseClassAccessorProperty(node);
724
- {
725
- if (!this.getPluginOption("estree", "classFeatures")) {
726
- return accessorPropertyNode;
727
- }
707
+ if (!this.getPluginOption("estree", "classFeatures")) {
708
+ return accessorPropertyNode;
728
709
  }
729
710
  if (accessorPropertyNode.abstract && this.hasPlugin("typescript")) {
730
711
  delete accessorPropertyNode.abstract;
@@ -746,8 +727,8 @@ var estree = superClass => class ESTreeParserMixin extends superClass {
746
727
  node.kind = "init";
747
728
  return this.finishNode(node, "Property");
748
729
  }
749
- isValidLVal(type, isUnparenthesizedInAssign, binding) {
750
- return type === "Property" ? "value" : super.isValidLVal(type, isUnparenthesizedInAssign, binding);
730
+ isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding) {
731
+ return type === "Property" ? "value" : super.isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding);
751
732
  }
752
733
  isAssignable(node, isBinding) {
753
734
  if (node != null && this.isObjectProperty(node)) {
@@ -781,14 +762,11 @@ var estree = superClass => class ESTreeParserMixin extends superClass {
781
762
  finishCallExpression(unfinished, optional) {
782
763
  const node = super.finishCallExpression(unfinished, optional);
783
764
  if (node.callee.type === "Import") {
784
- var _ref;
765
+ var _ref, _ref2;
785
766
  this.castNodeTo(node, "ImportExpression");
786
767
  node.source = node.arguments[0];
787
768
  node.options = (_ref = node.arguments[1]) != null ? _ref : null;
788
- {
789
- var _ref2;
790
- node.attributes = (_ref2 = node.arguments[1]) != null ? _ref2 : null;
791
- }
769
+ node.attributes = (_ref2 = node.arguments[1]) != null ? _ref2 : null;
792
770
  delete node.arguments;
793
771
  delete node.callee;
794
772
  } else if (node.type === "OptionalCallExpression") {
@@ -912,9 +890,7 @@ const types = {
912
890
  j_cTag: new TokContext("</tag"),
913
891
  j_expr: new TokContext("<tag>...</tag>", true)
914
892
  };
915
- {
916
- types.template = new TokContext("`", true);
917
- }
893
+ types.template = new TokContext("`", true);
918
894
  const beforeExpr = true;
919
895
  const startsExpr = true;
920
896
  const isLoop = true;
@@ -943,9 +919,7 @@ class ExportedTokenType {
943
919
  this.prefix = !!conf.prefix;
944
920
  this.postfix = !!conf.postfix;
945
921
  this.binop = conf.binop != null ? conf.binop : null;
946
- {
947
- this.updateContext = null;
948
- }
922
+ this.updateContext = null;
949
923
  }
950
924
  }
951
925
  const keywords$1 = new Map();
@@ -1446,31 +1420,29 @@ function tokenIsTemplate(token) {
1446
1420
  function getExportedToken(token) {
1447
1421
  return tokenTypes[token];
1448
1422
  }
1449
- {
1450
- tokenTypes[8].updateContext = context => {
1423
+ tokenTypes[8].updateContext = context => {
1424
+ context.pop();
1425
+ };
1426
+ tokenTypes[5].updateContext = tokenTypes[7].updateContext = tokenTypes[23].updateContext = context => {
1427
+ context.push(types.brace);
1428
+ };
1429
+ tokenTypes[22].updateContext = context => {
1430
+ if (context[context.length - 1] === types.template) {
1451
1431
  context.pop();
1452
- };
1453
- tokenTypes[5].updateContext = tokenTypes[7].updateContext = tokenTypes[23].updateContext = context => {
1454
- context.push(types.brace);
1455
- };
1456
- tokenTypes[22].updateContext = context => {
1457
- if (context[context.length - 1] === types.template) {
1458
- context.pop();
1459
- } else {
1460
- context.push(types.template);
1461
- }
1462
- };
1463
- tokenTypes[143].updateContext = context => {
1464
- context.push(types.j_expr, types.j_oTag);
1465
- };
1466
- }
1467
- let nonASCIIidentifierStartChars = "\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-\u1c8a\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-\ua7cd\ua7d0\ua7d1\ua7d3\ua7d5-\ua7dc\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";
1468
- let nonASCIIidentifierChars = "\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\u0897-\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\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\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\uff65";
1432
+ } else {
1433
+ context.push(types.template);
1434
+ }
1435
+ };
1436
+ tokenTypes[143].updateContext = context => {
1437
+ context.push(types.j_expr, types.j_oTag);
1438
+ };
1439
+ let nonASCIIidentifierStartChars = "\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-\u088f\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\u0c5c\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdc-\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-\u1c8a\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-\ua7dc\ua7f1-\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";
1440
+ let nonASCIIidentifierChars = "\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\u0897-\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-\u1add\u1ae0-\u1aeb\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\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\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\uff65";
1469
1441
  const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
1470
1442
  const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
1471
1443
  nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
1472
- const astralIdentifierStartCodes = [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, 4, 51, 13, 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, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 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, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 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, 200, 32, 32, 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, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 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, 229, 29, 3, 0, 496, 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, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
1473
- const astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 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, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 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, 343, 9, 54, 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, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 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, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
1444
+ const astralIdentifierStartCodes = [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, 4, 51, 13, 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, 7, 25, 39, 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, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 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, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 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, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 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, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 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, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489];
1445
+ const astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 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, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 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, 199, 7, 137, 9, 54, 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, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 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, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
1474
1446
  function isInAstralSet(code, set) {
1475
1447
  let pos = 0x10000;
1476
1448
  for (let i = 0, length = set.length; i < length; i += 2) {
@@ -1654,7 +1626,7 @@ class ScopeHandler {
1654
1626
  if (bindingType & 8) {
1655
1627
  return scope.names.has(name);
1656
1628
  }
1657
- const type = scope.names.get(name);
1629
+ const type = scope.names.get(name) || 0;
1658
1630
  if (bindingType & 16) {
1659
1631
  return (type & 2) > 0 || !this.treatFunctionsAsVarInScope(scope) && (type & 1) > 0;
1660
1632
  }
@@ -1969,9 +1941,8 @@ var flow = superClass => class FlowParserMixin extends superClass {
1969
1941
  return this.flowParseDeclareInterface(node);
1970
1942
  } else if (this.match(82)) {
1971
1943
  return this.flowParseDeclareExportDeclaration(node, insideModule);
1972
- } else {
1973
- this.unexpected();
1974
1944
  }
1945
+ throw this.unexpected();
1975
1946
  }
1976
1947
  flowParseDeclareVariable(node) {
1977
1948
  this.next();
@@ -1991,18 +1962,17 @@ var flow = superClass => class FlowParserMixin extends superClass {
1991
1962
  const body = bodyNode.body = [];
1992
1963
  this.expect(5);
1993
1964
  while (!this.match(8)) {
1994
- let bodyNode = this.startNode();
1965
+ const bodyNode = this.startNode();
1995
1966
  if (this.match(83)) {
1996
1967
  this.next();
1997
1968
  if (!this.isContextual(130) && !this.match(87)) {
1998
1969
  this.raise(FlowErrors.InvalidNonTypeImportInDeclareModule, this.state.lastTokStartLoc);
1999
1970
  }
2000
- super.parseImport(bodyNode);
1971
+ body.push(super.parseImport(bodyNode));
2001
1972
  } else {
2002
1973
  this.expectContextual(125, FlowErrors.UnsupportedStatementInDeclareModule);
2003
- bodyNode = this.flowParseDeclare(bodyNode, true);
1974
+ body.push(this.flowParseDeclare(bodyNode, true));
2004
1975
  }
2005
- body.push(bodyNode);
2006
1976
  }
2007
1977
  this.scope.exit();
2008
1978
  this.expect(8);
@@ -2063,7 +2033,7 @@ var flow = superClass => class FlowParserMixin extends superClass {
2063
2033
  }
2064
2034
  }
2065
2035
  }
2066
- this.unexpected();
2036
+ throw this.unexpected();
2067
2037
  }
2068
2038
  flowParseDeclareModuleExports(node) {
2069
2039
  this.next();
@@ -2271,7 +2241,7 @@ var flow = superClass => class FlowParserMixin extends superClass {
2271
2241
  return this.finishNode(node, "TypeParameterInstantiation");
2272
2242
  }
2273
2243
  flowParseTypeParameterInstantiationCallOrNew() {
2274
- if (this.reScan_lt() !== 47) return;
2244
+ if (this.reScan_lt() !== 47) return null;
2275
2245
  const node = this.startNode();
2276
2246
  const oldInType = this.state.inType;
2277
2247
  node.params = [];
@@ -2767,8 +2737,7 @@ var flow = superClass => class FlowParserMixin extends superClass {
2767
2737
  }
2768
2738
  throw this.raise(FlowErrors.UnexpectedSubtractionOperand, this.state.startLoc);
2769
2739
  }
2770
- this.unexpected();
2771
- return;
2740
+ throw this.unexpected();
2772
2741
  case 135:
2773
2742
  return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation");
2774
2743
  case 136:
@@ -2799,7 +2768,7 @@ var flow = superClass => class FlowParserMixin extends superClass {
2799
2768
  return this.flowIdentToTypeAnnotation(startLoc, node, this.parseIdentifier());
2800
2769
  }
2801
2770
  }
2802
- this.unexpected();
2771
+ throw this.unexpected();
2803
2772
  }
2804
2773
  flowParsePostfixType() {
2805
2774
  const startLoc = this.state.startLoc;
@@ -3260,15 +3229,15 @@ var flow = superClass => class FlowParserMixin extends superClass {
3260
3229
  }
3261
3230
  return exprList;
3262
3231
  }
3263
- parseArrayLike(close, canBePattern, isTuple, refExpressionErrors) {
3264
- const node = super.parseArrayLike(close, canBePattern, isTuple, refExpressionErrors);
3265
- if (canBePattern && !this.state.maybeInArrowParameters) {
3232
+ parseArrayLike(close, isTuple, refExpressionErrors) {
3233
+ const node = super.parseArrayLike(close, isTuple, refExpressionErrors);
3234
+ if (refExpressionErrors != null && !this.state.maybeInArrowParameters) {
3266
3235
  this.toReferencedList(node.elements);
3267
3236
  }
3268
3237
  return node;
3269
3238
  }
3270
- isValidLVal(type, isParenthesized, binding) {
3271
- return type === "TypeCastExpression" || super.isValidLVal(type, isParenthesized, binding);
3239
+ isValidLVal(type, disallowCallExpression, isParenthesized, binding) {
3240
+ return type === "TypeCastExpression" || super.isValidLVal(type, disallowCallExpression, isParenthesized, binding);
3272
3241
  }
3273
3242
  parseClassProperty(node) {
3274
3243
  if (this.match(14)) {
@@ -3325,9 +3294,7 @@ var flow = superClass => class FlowParserMixin extends superClass {
3325
3294
  parseClassSuper(node) {
3326
3295
  super.parseClassSuper(node);
3327
3296
  if (node.superClass && (this.match(47) || this.match(51))) {
3328
- {
3329
- node.superTypeParameters = this.flowParseTypeParameterInstantiationInExpression();
3330
- }
3297
+ node.superTypeParameters = this.flowParseTypeParameterInstantiationInExpression();
3331
3298
  }
3332
3299
  if (this.isContextual(113)) {
3333
3300
  this.next();
@@ -5117,15 +5084,12 @@ class CommentsParser extends BaseParser {
5117
5084
  setLeadingComments(commentWS.trailingNode, comments);
5118
5085
  }
5119
5086
  } else {
5120
- const {
5121
- containingNode: node,
5122
- start: commentStart
5123
- } = commentWS;
5087
+ const node = commentWS.containingNode;
5088
+ const commentStart = commentWS.start;
5124
5089
  if (this.input.charCodeAt(this.offsetToSourcePos(commentStart) - 1) === 44) {
5125
5090
  switch (node.type) {
5126
5091
  case "ObjectExpression":
5127
5092
  case "ObjectPattern":
5128
- case "RecordExpression":
5129
5093
  adjustInnerComments(node, node.properties, commentWS);
5130
5094
  break;
5131
5095
  case "CallExpression":
@@ -5145,7 +5109,6 @@ class CommentsParser extends BaseParser {
5145
5109
  break;
5146
5110
  case "ArrayExpression":
5147
5111
  case "ArrayPattern":
5148
- case "TupleExpression":
5149
5112
  adjustInnerComments(node, node.elements, commentWS);
5150
5113
  break;
5151
5114
  case "ExportNamedDeclaration":
@@ -5153,15 +5116,21 @@ class CommentsParser extends BaseParser {
5153
5116
  adjustInnerComments(node, node.specifiers, commentWS);
5154
5117
  break;
5155
5118
  case "TSEnumDeclaration":
5156
- {
5157
- adjustInnerComments(node, node.members, commentWS);
5158
- }
5119
+ adjustInnerComments(node, node.members, commentWS);
5159
5120
  break;
5160
5121
  case "TSEnumBody":
5161
5122
  adjustInnerComments(node, node.members, commentWS);
5162
5123
  break;
5163
5124
  default:
5164
5125
  {
5126
+ if (node.type === "RecordExpression") {
5127
+ adjustInnerComments(node, node.properties, commentWS);
5128
+ break;
5129
+ }
5130
+ if (node.type === "TupleExpression") {
5131
+ adjustInnerComments(node, node.elements, commentWS);
5132
+ break;
5133
+ }
5165
5134
  setInnerComments(node, comments);
5166
5135
  }
5167
5136
  }
@@ -5941,7 +5910,7 @@ class Tokenizer extends CommentsParser {
5941
5910
  const commentWhitespace = {
5942
5911
  start: this.sourceToOffsetPos(spaceStart),
5943
5912
  end: this.sourceToOffsetPos(end),
5944
- comments,
5913
+ comments: comments,
5945
5914
  leadingNode: null,
5946
5915
  trailingNode: null,
5947
5916
  containingNode: null
@@ -6952,7 +6921,7 @@ class UtilParser extends Tokenizer {
6952
6921
  };
6953
6922
  }
6954
6923
  return {
6955
- node,
6924
+ node: node,
6956
6925
  error: null,
6957
6926
  thrown: false,
6958
6927
  aborted: false,
@@ -7103,19 +7072,17 @@ class Node {
7103
7072
  }
7104
7073
  }
7105
7074
  const NodePrototype = Node.prototype;
7106
- {
7107
- NodePrototype.__clone = function () {
7108
- const newNode = new Node(undefined, this.start, this.loc.start);
7109
- const keys = Object.keys(this);
7110
- for (let i = 0, length = keys.length; i < length; i++) {
7111
- const key = keys[i];
7112
- if (key !== "leadingComments" && key !== "trailingComments" && key !== "innerComments") {
7113
- newNode[key] = this[key];
7114
- }
7075
+ NodePrototype.__clone = function () {
7076
+ const newNode = new Node(undefined, this.start, this.loc.start);
7077
+ const keys = Object.keys(this);
7078
+ for (let i = 0, length = keys.length; i < length; i++) {
7079
+ const key = keys[i];
7080
+ if (key !== "leadingComments" && key !== "trailingComments" && key !== "innerComments") {
7081
+ newNode[key] = this[key];
7115
7082
  }
7116
- return newNode;
7117
- };
7118
- }
7083
+ }
7084
+ return newNode;
7085
+ };
7119
7086
  class NodeUtils extends UtilParser {
7120
7087
  startNode() {
7121
7088
  const loc = this.state.startLoc;
@@ -7208,7 +7175,7 @@ class LValParser extends NodeUtils {
7208
7175
  if (isLHS) {
7209
7176
  if (parenthesized.type === "Identifier") {
7210
7177
  this.expressionScope.recordArrowParameterBindingError(Errors.InvalidParenthesizedAssignment, node);
7211
- } else if (parenthesized.type !== "MemberExpression" && !this.isOptionalMemberExpression(parenthesized)) {
7178
+ } else if (parenthesized.type !== "CallExpression" && parenthesized.type !== "MemberExpression" && !this.isOptionalMemberExpression(parenthesized)) {
7212
7179
  this.raise(Errors.InvalidParenthesizedAssignment, node);
7213
7180
  }
7214
7181
  } else {
@@ -7484,7 +7451,7 @@ class LValParser extends NodeUtils {
7484
7451
  node.right = this.parseMaybeAssignAllowIn();
7485
7452
  return this.finishNode(node, "AssignmentPattern");
7486
7453
  }
7487
- isValidLVal(type, isUnparenthesizedInAssign, binding) {
7454
+ isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding) {
7488
7455
  switch (type) {
7489
7456
  case "AssignmentPattern":
7490
7457
  return "left";
@@ -7500,13 +7467,17 @@ class LValParser extends NodeUtils {
7500
7467
  return "properties";
7501
7468
  case "VoidPattern":
7502
7469
  return true;
7470
+ case "CallExpression":
7471
+ if (!disallowCallExpression && !this.state.strict && this.optionFlags & 8192) {
7472
+ return true;
7473
+ }
7503
7474
  }
7504
7475
  return false;
7505
7476
  }
7506
7477
  isOptionalMemberExpression(expression) {
7507
7478
  return expression.type === "OptionalMemberExpression";
7508
7479
  }
7509
- checkLVal(expression, ancestor, binding = 64, checkClashes = false, strictModeChanged = false, hasParenthesizedAncestor = false) {
7480
+ checkLVal(expression, ancestor, binding = 64, checkClashes = false, strictModeChanged = false, hasParenthesizedAncestor = false, disallowCallExpression = false) {
7510
7481
  var _expression$extra;
7511
7482
  const type = expression.type;
7512
7483
  if (this.isObjectMethod(expression)) return;
@@ -7541,7 +7512,9 @@ class LValParser extends NodeUtils {
7541
7512
  } else if (type === "VoidPattern" && ancestor.type === "CatchClause") {
7542
7513
  this.raise(Errors.VoidPatternCatchClauseParam, expression);
7543
7514
  }
7544
- const validity = this.isValidLVal(type, !(hasParenthesizedAncestor || (_expression$extra = expression.extra) != null && _expression$extra.parenthesized) && ancestor.type === "AssignmentExpression", binding);
7515
+ const unwrappedExpression = unwrapParenthesizedExpression(expression);
7516
+ disallowCallExpression || (disallowCallExpression = unwrappedExpression.type === "CallExpression" && (unwrappedExpression.callee.type === "Import" || unwrappedExpression.callee.type === "Super"));
7517
+ const validity = this.isValidLVal(type, disallowCallExpression, !(hasParenthesizedAncestor || (_expression$extra = expression.extra) != null && _expression$extra.parenthesized) && ancestor.type === "AssignmentExpression", binding);
7545
7518
  if (validity === true) return;
7546
7519
  if (validity === false) {
7547
7520
  const ParseErrorClass = binding === 64 ? Errors.InvalidLhs : Errors.InvalidLhsBinding;
@@ -7564,11 +7537,11 @@ class LValParser extends NodeUtils {
7564
7537
  if (Array.isArray(val)) {
7565
7538
  for (const child of val) {
7566
7539
  if (child) {
7567
- this.checkLVal(child, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression);
7540
+ this.checkLVal(child, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression, true);
7568
7541
  }
7569
7542
  }
7570
7543
  } else if (val) {
7571
- this.checkLVal(val, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression);
7544
+ this.checkLVal(val, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression, disallowCallExpression);
7572
7545
  }
7573
7546
  }
7574
7547
  checkIdentifier(at, bindingType, strictModeChanged = false) {
@@ -7616,6 +7589,7 @@ class LValParser extends NodeUtils {
7616
7589
  return true;
7617
7590
  }
7618
7591
  }
7592
+ const keywordAndTSRelationalOperator = /in(?:stanceof)?|as|satisfies/y;
7619
7593
  function nonNull(x) {
7620
7594
  if (x == null) {
7621
7595
  throw new Error(`Unexpected ${x} value.`);
@@ -7960,13 +7934,9 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
7960
7934
  this.expect(10);
7961
7935
  if (!this.match(134)) {
7962
7936
  this.raise(TSErrors.UnsupportedImportTypeArgument, this.state.startLoc);
7963
- {
7964
- node.argument = super.parseExprAtom();
7965
- }
7937
+ node.argument = super.parseExprAtom();
7966
7938
  } else {
7967
- {
7968
- node.argument = this.parseStringLiteral(this.state.value);
7969
- }
7939
+ node.argument = this.parseStringLiteral(this.state.value);
7970
7940
  }
7971
7941
  if (this.eat(12)) {
7972
7942
  node.options = this.tsParseImportTypeOptions();
@@ -7978,9 +7948,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
7978
7948
  node.qualifier = this.tsParseEntityName(1 | 2);
7979
7949
  }
7980
7950
  if (this.match(47)) {
7981
- {
7982
- node.typeParameters = this.tsParseTypeArguments();
7983
- }
7951
+ node.typeParameters = this.tsParseTypeArguments();
7984
7952
  }
7985
7953
  return this.finishNode(node, "TSImportType");
7986
7954
  }
@@ -8045,9 +8013,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8045
8013
  const node = this.startNode();
8046
8014
  node.typeName = this.tsParseEntityName(1);
8047
8015
  if (!this.hasPrecedingLineBreak() && this.match(47)) {
8048
- {
8049
- node.typeParameters = this.tsParseTypeArguments();
8050
- }
8016
+ node.typeParameters = this.tsParseTypeArguments();
8051
8017
  }
8052
8018
  return this.finishNode(node, "TSTypeReference");
8053
8019
  }
@@ -8070,14 +8036,10 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8070
8036
  if (this.match(83)) {
8071
8037
  node.exprName = this.tsParseImportType();
8072
8038
  } else {
8073
- {
8074
- node.exprName = this.tsParseEntityName(1 | 2);
8075
- }
8039
+ node.exprName = this.tsParseEntityName(1 | 2);
8076
8040
  }
8077
8041
  if (!this.hasPrecedingLineBreak() && this.match(47)) {
8078
- {
8079
- node.typeParameters = this.tsParseTypeArguments();
8080
- }
8042
+ node.typeParameters = this.tsParseTypeArguments();
8081
8043
  }
8082
8044
  return this.finishNode(node, "TSTypeQuery");
8083
8045
  }
@@ -8298,12 +8260,10 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8298
8260
  node.readonly = true;
8299
8261
  }
8300
8262
  this.expect(0);
8301
- {
8302
- const typeParameter = this.startNode();
8303
- typeParameter.name = this.tsParseTypeParameterName();
8304
- typeParameter.constraint = this.tsExpectThenParseType(58);
8305
- node.typeParameter = this.finishNode(typeParameter, "TSTypeParameter");
8306
- }
8263
+ const typeParameter = this.startNode();
8264
+ typeParameter.name = this.tsParseTypeParameterName();
8265
+ typeParameter.constraint = this.tsExpectThenParseType(58);
8266
+ node.typeParameter = this.finishNode(typeParameter, "TSTypeParameter");
8307
8267
  node.nameType = this.eatContextual(93) ? this.tsParseType() : null;
8308
8268
  this.expect(3);
8309
8269
  if (this.match(53)) {
@@ -8435,11 +8395,9 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8435
8395
  return this.finishNode(node, "TSLiteralType");
8436
8396
  }
8437
8397
  tsParseTemplateLiteralType() {
8438
- {
8439
- const node = this.startNode();
8440
- node.literal = super.parseTemplate(false);
8441
- return this.finishNode(node, "TSLiteralType");
8442
- }
8398
+ const node = this.startNode();
8399
+ node.literal = super.parseTemplate(false);
8400
+ return this.finishNode(node, "TSLiteralType");
8443
8401
  }
8444
8402
  parseTemplateSubstitution() {
8445
8403
  if (this.state.inType) return this.tsParseType();
@@ -8503,7 +8461,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8503
8461
  }
8504
8462
  }
8505
8463
  }
8506
- this.unexpected();
8464
+ throw this.unexpected();
8507
8465
  }
8508
8466
  tsParseArrayTypeOrHigher() {
8509
8467
  const {
@@ -8769,14 +8727,12 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8769
8727
  tsParseHeritageClause(token) {
8770
8728
  const originalStartLoc = this.state.startLoc;
8771
8729
  const delimitedList = this.tsParseDelimitedList("HeritageClauseElement", () => {
8772
- {
8773
- const node = this.startNode();
8774
- node.expression = this.tsParseEntityName(1 | 2);
8775
- if (this.match(47)) {
8776
- node.typeParameters = this.tsParseTypeArguments();
8777
- }
8778
- return this.finishNode(node, "TSExpressionWithTypeArguments");
8730
+ const node = this.startNode();
8731
+ node.expression = this.tsParseEntityName(1 | 2);
8732
+ if (this.match(47)) {
8733
+ node.typeParameters = this.tsParseTypeArguments();
8779
8734
  }
8735
+ return this.finishNode(node, "TSExpressionWithTypeArguments");
8780
8736
  });
8781
8737
  if (!delimitedList.length) {
8782
8738
  this.raise(TSErrors.EmptyHeritageClauseType, originalStartLoc, {
@@ -8892,11 +8848,9 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8892
8848
  this.expectContextual(126);
8893
8849
  node.id = this.parseIdentifier();
8894
8850
  this.checkIdentifier(node.id, node.const ? 8971 : 8459);
8895
- {
8896
- this.expect(5);
8897
- node.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this));
8898
- this.expect(8);
8899
- }
8851
+ this.expect(5);
8852
+ node.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this));
8853
+ this.expect(8);
8900
8854
  return this.finishNode(node, "TSEnumDeclaration");
8901
8855
  }
8902
8856
  tsParseEnumBody() {
@@ -8935,9 +8889,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8935
8889
  tsParseAmbientExternalModuleDeclaration(node) {
8936
8890
  if (this.isContextual(112)) {
8937
8891
  node.kind = "global";
8938
- {
8939
- node.global = true;
8940
- }
8892
+ node.global = true;
8941
8893
  node.id = this.parseIdentifier();
8942
8894
  } else if (this.match(134)) {
8943
8895
  node.kind = "module";
@@ -8957,9 +8909,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
8957
8909
  return this.finishNode(node, "TSModuleDeclaration");
8958
8910
  }
8959
8911
  tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier, isExport) {
8960
- {
8961
- node.isExport = isExport || false;
8962
- }
8912
+ node.isExport = isExport || false;
8963
8913
  node.id = maybeDefaultIdentifier || this.parseIdentifier();
8964
8914
  this.checkIdentifier(node.id, 4096);
8965
8915
  this.expect(29);
@@ -9067,52 +9017,22 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9067
9017
  }
9068
9018
  default:
9069
9019
  if (tokenIsIdentifier(startType)) {
9070
- return this.tsParseDeclaration(node, this.state.value, true, null);
9020
+ return this.tsParseDeclaration(node, this.state.type, true, null);
9071
9021
  }
9072
9022
  }
9073
9023
  });
9074
9024
  }
9075
9025
  tsTryParseExportDeclaration() {
9076
- return this.tsParseDeclaration(this.startNode(), this.state.value, true, null);
9026
+ return this.tsParseDeclaration(this.startNode(), this.state.type, true, null);
9077
9027
  }
9078
- tsParseExpressionStatement(node, expr, decorators) {
9079
- switch (expr.name) {
9080
- case "declare":
9081
- {
9082
- const declaration = this.tsTryParseDeclare(node);
9083
- if (declaration) {
9084
- declaration.declare = true;
9085
- }
9086
- return declaration;
9087
- }
9088
- case "global":
9089
- if (this.match(5)) {
9090
- this.scope.enter(1024);
9091
- this.prodParam.enter(0);
9092
- const mod = node;
9093
- mod.kind = "global";
9094
- {
9095
- node.global = true;
9096
- }
9097
- mod.id = expr;
9098
- mod.body = this.tsParseModuleBlock();
9099
- this.scope.exit();
9100
- this.prodParam.exit();
9101
- return this.finishNode(mod, "TSModuleDeclaration");
9102
- }
9103
- break;
9104
- default:
9105
- return this.tsParseDeclaration(node, expr.name, false, decorators);
9106
- }
9107
- }
9108
- tsParseDeclaration(node, value, next, decorators) {
9109
- switch (value) {
9110
- case "abstract":
9028
+ tsParseDeclaration(node, type, next, decorators) {
9029
+ switch (type) {
9030
+ case 124:
9111
9031
  if (this.tsCheckLineTerminator(next) && (this.match(80) || tokenIsIdentifier(this.state.type))) {
9112
9032
  return this.tsParseAbstractDeclaration(node, decorators);
9113
9033
  }
9114
9034
  break;
9115
- case "module":
9035
+ case 127:
9116
9036
  if (this.tsCheckLineTerminator(next)) {
9117
9037
  if (this.match(134)) {
9118
9038
  return this.tsParseAmbientExternalModuleDeclaration(node);
@@ -9122,13 +9042,13 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9122
9042
  }
9123
9043
  }
9124
9044
  break;
9125
- case "namespace":
9045
+ case 128:
9126
9046
  if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) {
9127
9047
  node.kind = "namespace";
9128
9048
  return this.tsParseModuleOrNamespaceDeclaration(node);
9129
9049
  }
9130
9050
  break;
9131
- case "type":
9051
+ case 130:
9132
9052
  if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) {
9133
9053
  return this.tsParseTypeAliasDeclaration(node);
9134
9054
  }
@@ -9269,8 +9189,8 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9269
9189
  this.tsCheckForInvalidTypeCasts(exprList);
9270
9190
  return exprList;
9271
9191
  }
9272
- parseArrayLike(close, canBePattern, isTuple, refExpressionErrors) {
9273
- const node = super.parseArrayLike(close, canBePattern, isTuple, refExpressionErrors);
9192
+ parseArrayLike(close, isTuple, refExpressionErrors) {
9193
+ const node = super.parseArrayLike(close, isTuple, refExpressionErrors);
9274
9194
  if (node.type === "ArrayExpression") {
9275
9195
  this.tsCheckForInvalidTypeCasts(node.elements);
9276
9196
  }
@@ -9311,9 +9231,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9311
9231
  }
9312
9232
  if (tokenIsTemplate(this.state.type)) {
9313
9233
  const result = super.parseTaggedTemplateExpression(base, startLoc, state);
9314
- {
9315
- result.typeParameters = typeArguments;
9316
- }
9234
+ result.typeParameters = typeArguments;
9317
9235
  return result;
9318
9236
  }
9319
9237
  if (!noCalls && this.eat(10)) {
@@ -9321,23 +9239,19 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9321
9239
  node.callee = base;
9322
9240
  node.arguments = this.parseCallExpressionArguments();
9323
9241
  this.tsCheckForInvalidTypeCasts(node.arguments);
9324
- {
9325
- node.typeParameters = typeArguments;
9326
- }
9242
+ node.typeParameters = typeArguments;
9327
9243
  if (state.optionalChainMember) {
9328
9244
  node.optional = isOptionalCall;
9329
9245
  }
9330
9246
  return this.finishCallExpression(node, state.optionalChainMember);
9331
9247
  }
9332
9248
  const tokenType = this.state.type;
9333
- if (tokenType === 48 || tokenType === 52 || tokenType !== 10 && tokenCanStartExpression(tokenType) && !this.hasPrecedingLineBreak()) {
9249
+ if (tokenType === 48 || tokenType === 52 || tokenType !== 10 && tokenType !== 93 && tokenType !== 120 && tokenCanStartExpression(tokenType) && !this.hasPrecedingLineBreak()) {
9334
9250
  return;
9335
9251
  }
9336
9252
  const node = this.startNodeAt(startLoc);
9337
9253
  node.expression = base;
9338
- {
9339
- node.typeParameters = typeArguments;
9340
- }
9254
+ node.typeParameters = typeArguments;
9341
9255
  return this.finishNode(node, "TSInstantiationExpression");
9342
9256
  });
9343
9257
  if (missingParenErrorLoc) {
@@ -9364,9 +9278,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9364
9278
  callee
9365
9279
  } = node;
9366
9280
  if (callee.type === "TSInstantiationExpression" && !((_callee$extra = callee.extra) != null && _callee$extra.parenthesized)) {
9367
- {
9368
- node.typeParameters = callee.typeParameters;
9369
- }
9281
+ node.typeParameters = callee.typeParameters;
9370
9282
  node.callee = callee.expression;
9371
9283
  }
9372
9284
  }
@@ -9456,9 +9368,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9456
9368
  nodeImportEquals.importKind = "value";
9457
9369
  }
9458
9370
  const declaration = this.tsParseImportEqualsDeclaration(nodeImportEquals, maybeDefaultIdentifier, true);
9459
- {
9460
- return declaration;
9461
- }
9371
+ return declaration;
9462
9372
  } else if (this.eat(29)) {
9463
9373
  const assign = node;
9464
9374
  assign.expression = super.parseExpression();
@@ -9515,19 +9425,85 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9515
9425
  return declaration;
9516
9426
  }
9517
9427
  parseStatementContent(flags, decorators) {
9518
- if (this.match(75) && this.isLookaheadContextual("enum")) {
9519
- const node = this.startNode();
9520
- this.expect(75);
9521
- return this.tsParseEnumDeclaration(node, {
9522
- const: true
9523
- });
9524
- }
9525
- if (this.isContextual(126)) {
9526
- return this.tsParseEnumDeclaration(this.startNode());
9527
- }
9528
- if (this.isContextual(129)) {
9529
- const result = this.tsParseInterfaceDeclaration(this.startNode());
9530
- if (result) return result;
9428
+ if (!this.state.containsEsc) {
9429
+ switch (this.state.type) {
9430
+ case 75:
9431
+ {
9432
+ if (this.isLookaheadContextual("enum")) {
9433
+ const node = this.startNode();
9434
+ this.expect(75);
9435
+ return this.tsParseEnumDeclaration(node, {
9436
+ const: true
9437
+ });
9438
+ }
9439
+ break;
9440
+ }
9441
+ case 124:
9442
+ case 125:
9443
+ {
9444
+ if (this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()) {
9445
+ const token = this.state.type;
9446
+ const node = this.startNode();
9447
+ this.next();
9448
+ const declaration = token === 125 ? this.tsTryParseDeclare(node) : this.tsParseAbstractDeclaration(node, decorators);
9449
+ if (declaration) {
9450
+ if (token === 125) {
9451
+ declaration.declare = true;
9452
+ }
9453
+ return declaration;
9454
+ } else {
9455
+ node.expression = this.createIdentifier(this.startNodeAt(node.loc.start), token === 125 ? "declare" : "abstract");
9456
+ this.semicolon(false);
9457
+ return this.finishNode(node, "ExpressionStatement");
9458
+ }
9459
+ }
9460
+ break;
9461
+ }
9462
+ case 126:
9463
+ return this.tsParseEnumDeclaration(this.startNode());
9464
+ case 112:
9465
+ {
9466
+ const nextCh = this.lookaheadCharCode();
9467
+ if (nextCh === 123) {
9468
+ const node = this.startNode();
9469
+ return this.tsParseAmbientExternalModuleDeclaration(node);
9470
+ }
9471
+ break;
9472
+ }
9473
+ case 129:
9474
+ {
9475
+ const result = this.tsParseInterfaceDeclaration(this.startNode());
9476
+ if (result) return result;
9477
+ break;
9478
+ }
9479
+ case 127:
9480
+ {
9481
+ if (this.nextTokenIsIdentifierOrStringLiteralOnSameLine()) {
9482
+ const node = this.startNode();
9483
+ this.next();
9484
+ return this.tsParseDeclaration(node, 127, false, decorators);
9485
+ }
9486
+ break;
9487
+ }
9488
+ case 128:
9489
+ {
9490
+ if (this.nextTokenIsIdentifierOnSameLine()) {
9491
+ const node = this.startNode();
9492
+ this.next();
9493
+ return this.tsParseDeclaration(node, 128, false, decorators);
9494
+ }
9495
+ break;
9496
+ }
9497
+ case 130:
9498
+ {
9499
+ if (this.nextTokenIsIdentifierOnSameLine()) {
9500
+ const node = this.startNode();
9501
+ this.next();
9502
+ return this.tsParseTypeAliasDeclaration(node);
9503
+ }
9504
+ break;
9505
+ }
9506
+ }
9531
9507
  }
9532
9508
  return super.parseStatementContent(flags, decorators);
9533
9509
  }
@@ -9611,10 +9587,6 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9611
9587
  this.raise(TSErrors.ClassMethodHasDeclare, methodOrProp);
9612
9588
  }
9613
9589
  }
9614
- parseExpressionStatement(node, expr, decorators) {
9615
- const decl = expr.type === "Identifier" ? this.tsParseExpressionStatement(node, expr, decorators) : undefined;
9616
- return decl || super.parseExpressionStatement(node, expr, decorators);
9617
- }
9618
9590
  shouldParseExportDeclaration() {
9619
9591
  if (this.tsIsDeclarationStart()) return true;
9620
9592
  return super.shouldParseExportDeclaration();
@@ -9749,8 +9721,16 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9749
9721
  }
9750
9722
  parseClassSuper(node) {
9751
9723
  super.parseClassSuper(node);
9752
- if (node.superClass && (this.match(47) || this.match(51))) {
9753
- {
9724
+ if (node.superClass) {
9725
+ if (node.superClass.type === "TSInstantiationExpression") {
9726
+ const tsInstantiationExpression = node.superClass;
9727
+ const superClass = tsInstantiationExpression.expression;
9728
+ this.takeSurroundingComments(superClass, superClass.start, superClass.end);
9729
+ const superTypeArguments = tsInstantiationExpression.typeParameters;
9730
+ this.takeSurroundingComments(superTypeArguments, superTypeArguments.start, superTypeArguments.end);
9731
+ node.superClass = superClass;
9732
+ node.superTypeParameters = superTypeArguments;
9733
+ } else if (this.match(47) || this.match(51)) {
9754
9734
  node.superTypeParameters = this.tsParseTypeArgumentsInExpression();
9755
9735
  }
9756
9736
  }
@@ -9939,7 +9919,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9939
9919
  super.checkToRestConversion(node, allowPattern);
9940
9920
  }
9941
9921
  }
9942
- isValidLVal(type, isUnparenthesizedInAssign, binding) {
9922
+ isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding) {
9943
9923
  switch (type) {
9944
9924
  case "TSTypeCastExpression":
9945
9925
  return true;
@@ -9952,7 +9932,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9952
9932
  case "TSTypeAssertion":
9953
9933
  return (binding !== 64 || !isUnparenthesizedInAssign) && ["expression", true];
9954
9934
  default:
9955
- return super.isValidLVal(type, isUnparenthesizedInAssign, binding);
9935
+ return super.isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding);
9956
9936
  }
9957
9937
  }
9958
9938
  parseBindingAtom() {
@@ -9966,9 +9946,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
9966
9946
  const typeArguments = this.tsParseTypeArgumentsInExpression();
9967
9947
  if (this.match(10)) {
9968
9948
  const call = super.parseMaybeDecoratorArguments(expr, startLoc);
9969
- {
9970
- call.typeParameters = typeArguments;
9971
- }
9949
+ call.typeParameters = typeArguments;
9972
9950
  return call;
9973
9951
  }
9974
9952
  this.unexpected(null, 10);
@@ -10059,9 +10037,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
10059
10037
  if (this.match(47) || this.match(51)) {
10060
10038
  const typeArguments = this.tsTryParseAndCatch(() => this.tsParseTypeArgumentsInExpression());
10061
10039
  if (typeArguments) {
10062
- {
10063
- node.typeParameters = typeArguments;
10064
- }
10040
+ node.typeParameters = typeArguments;
10065
10041
  }
10066
10042
  }
10067
10043
  return super.jsxParseOpeningElementAfterName(node);
@@ -10114,10 +10090,11 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
10114
10090
  node.abstract = true;
10115
10091
  this.raise(TSErrors.NonClassMethodPropertyHasAbstractModifier, node);
10116
10092
  return this.tsParseInterfaceDeclaration(node);
10093
+ } else {
10094
+ return null;
10117
10095
  }
10118
- } else {
10119
- this.unexpected(null, 80);
10120
10096
  }
10097
+ throw this.unexpected(null, 80);
10121
10098
  }
10122
10099
  parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope) {
10123
10100
  const method = super.parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope);
@@ -10333,6 +10310,32 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
10333
10310
  return;
10334
10311
  }
10335
10312
  }
10313
+ chStartsBindingIdentifierAndNotRelationalOperator(ch, pos) {
10314
+ if (isIdentifierStart(ch)) {
10315
+ keywordAndTSRelationalOperator.lastIndex = pos;
10316
+ if (keywordAndTSRelationalOperator.test(this.input)) {
10317
+ const endCh = this.codePointAtPos(keywordAndTSRelationalOperator.lastIndex);
10318
+ if (!isIdentifierChar(endCh) && endCh !== 92) {
10319
+ return false;
10320
+ }
10321
+ }
10322
+ return true;
10323
+ } else if (ch === 92) {
10324
+ return true;
10325
+ } else {
10326
+ return false;
10327
+ }
10328
+ }
10329
+ nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine() {
10330
+ const next = this.nextTokenInLineStart();
10331
+ const nextCh = this.codePointAtPos(next);
10332
+ return this.chStartsBindingIdentifierAndNotRelationalOperator(nextCh, next);
10333
+ }
10334
+ nextTokenIsIdentifierOrStringLiteralOnSameLine() {
10335
+ const next = this.nextTokenInLineStart();
10336
+ const nextCh = this.codePointAtPos(next);
10337
+ return this.chStartsBindingIdentifier(nextCh, next) || nextCh === 34 || nextCh === 39;
10338
+ }
10336
10339
  };
10337
10340
  function isPossiblyLiteralEnum(expression) {
10338
10341
  if (expression.type !== "MemberExpression") return false;
@@ -10461,8 +10464,8 @@ var placeholders = superClass => class PlaceholdersParserMixin extends superClas
10461
10464
  parseBindingAtom() {
10462
10465
  return this.parsePlaceholder("Pattern") || super.parseBindingAtom();
10463
10466
  }
10464
- isValidLVal(type, isParenthesized, binding) {
10465
- return type === "Placeholder" || super.isValidLVal(type, isParenthesized, binding);
10467
+ isValidLVal(type, disallowCallExpression, isParenthesized, binding) {
10468
+ return type === "Placeholder" || super.isValidLVal(type, disallowCallExpression, isParenthesized, binding);
10466
10469
  }
10467
10470
  toAssignable(node, isLHS) {
10468
10471
  if (node && node.type === "Placeholder" && node.expectedNode === "Expression") {
@@ -10482,7 +10485,8 @@ var placeholders = superClass => class PlaceholdersParserMixin extends superClas
10482
10485
  return false;
10483
10486
  }
10484
10487
  verifyBreakContinue(node, isBreak) {
10485
- if (node.label && node.label.type === "Placeholder") return;
10488
+ var _node$label;
10489
+ if (((_node$label = node.label) == null ? void 0 : _node$label.type) === "Placeholder") return;
10486
10490
  super.verifyBreakContinue(node, isBreak);
10487
10491
  }
10488
10492
  parseExpressionStatement(node, expr) {
@@ -10655,6 +10659,7 @@ function validatePlugins(pluginsMap) {
10655
10659
  throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${proposalList}.`);
10656
10660
  }
10657
10661
  if (proposal === "hack") {
10662
+ var _pluginsMap$get;
10658
10663
  if (pluginsMap.has("placeholders")) {
10659
10664
  throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");
10660
10665
  }
@@ -10666,25 +10671,20 @@ function validatePlugins(pluginsMap) {
10666
10671
  const tokenList = TOPIC_TOKENS.map(t => `"${t}"`).join(", ");
10667
10672
  throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${tokenList}.`);
10668
10673
  }
10669
- {
10670
- var _pluginsMap$get;
10671
- if (topicToken === "#" && ((_pluginsMap$get = pluginsMap.get("recordAndTuple")) == null ? void 0 : _pluginsMap$get.syntaxType) === "hash") {
10672
- throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple", pluginsMap.get("recordAndTuple")])}\`.`);
10673
- }
10674
+ if (topicToken === "#" && ((_pluginsMap$get = pluginsMap.get("recordAndTuple")) == null ? void 0 : _pluginsMap$get.syntaxType) === "hash") {
10675
+ throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple", pluginsMap.get("recordAndTuple")])}\`.`);
10674
10676
  }
10675
10677
  } else if (proposal === "smart" && ((_pluginsMap$get2 = pluginsMap.get("recordAndTuple")) == null ? void 0 : _pluginsMap$get2.syntaxType) === "hash") {
10676
10678
  throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple", pluginsMap.get("recordAndTuple")])}\`.`);
10677
10679
  }
10678
10680
  }
10679
10681
  if (pluginsMap.has("moduleAttributes")) {
10680
- {
10681
- if (pluginsMap.has("deprecatedImportAssert") || pluginsMap.has("importAssertions")) {
10682
- throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");
10683
- }
10684
- const moduleAttributesVersionPluginOption = pluginsMap.get("moduleAttributes").version;
10685
- if (moduleAttributesVersionPluginOption !== "may-2020") {
10686
- throw new Error("The 'moduleAttributes' plugin requires a 'version' option," + " representing the last proposal update. Currently, the" + " only supported value is 'may-2020'.");
10687
- }
10682
+ if (pluginsMap.has("deprecatedImportAssert") || pluginsMap.has("importAssertions")) {
10683
+ throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");
10684
+ }
10685
+ const moduleAttributesVersionPluginOption = pluginsMap.get("moduleAttributes").version;
10686
+ if (moduleAttributesVersionPluginOption !== "may-2020") {
10687
+ throw new Error("The 'moduleAttributes' plugin requires a 'version' option," + " representing the last proposal update. Currently, the" + " only supported value is 'may-2020'.");
10688
10688
  }
10689
10689
  }
10690
10690
  if (pluginsMap.has("importAssertions")) {
@@ -10692,19 +10692,15 @@ function validatePlugins(pluginsMap) {
10692
10692
  throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");
10693
10693
  }
10694
10694
  }
10695
- if (!pluginsMap.has("deprecatedImportAssert") && pluginsMap.has("importAttributes") && pluginsMap.get("importAttributes").deprecatedAssertSyntax) {
10696
- {
10697
- pluginsMap.set("deprecatedImportAssert", {});
10698
- }
10695
+ if (pluginsMap.has("deprecatedImportAssert")) ;else if (pluginsMap.has("importAttributes") && pluginsMap.get("importAttributes").deprecatedAssertSyntax) {
10696
+ pluginsMap.set("deprecatedImportAssert", {});
10699
10697
  }
10700
10698
  if (pluginsMap.has("recordAndTuple")) {
10701
- {
10702
- const syntaxType = pluginsMap.get("recordAndTuple").syntaxType;
10703
- if (syntaxType != null) {
10704
- const RECORD_AND_TUPLE_SYNTAX_TYPES = ["hash", "bar"];
10705
- if (!RECORD_AND_TUPLE_SYNTAX_TYPES.includes(syntaxType)) {
10706
- throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + RECORD_AND_TUPLE_SYNTAX_TYPES.map(p => `'${p}'`).join(", "));
10707
- }
10699
+ const syntaxType = pluginsMap.get("recordAndTuple").syntaxType;
10700
+ if (syntaxType != null) {
10701
+ const RECORD_AND_TUPLE_SYNTAX_TYPES = ["hash", "bar"];
10702
+ if (!RECORD_AND_TUPLE_SYNTAX_TYPES.includes(syntaxType)) {
10703
+ throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + RECORD_AND_TUPLE_SYNTAX_TYPES.map(p => `'${p}'`).join(", "));
10708
10704
  }
10709
10705
  }
10710
10706
  }
@@ -10862,7 +10858,7 @@ class ExpressionParser extends LValParser {
10862
10858
  }
10863
10859
  this.next();
10864
10860
  node.right = this.parseMaybeAssign();
10865
- this.checkLVal(left, this.finishNode(node, "AssignmentExpression"));
10861
+ this.checkLVal(left, this.finishNode(node, "AssignmentExpression"), undefined, undefined, undefined, undefined, operator === "||=" || operator === "&&=" || operator === "??=");
10866
10862
  return node;
10867
10863
  } else if (ownExpressionErrors) {
10868
10864
  this.checkExpressionErrors(refExpressionErrors, true);
@@ -11336,7 +11332,7 @@ class ExpressionParser extends LValParser {
11336
11332
  }
11337
11333
  case 0:
11338
11334
  {
11339
- return this.parseArrayLike(3, true, false, refExpressionErrors);
11335
+ return this.parseArrayLike(3, false, refExpressionErrors);
11340
11336
  }
11341
11337
  case 5:
11342
11338
  {
@@ -11393,28 +11389,23 @@ class ExpressionParser extends LValParser {
11393
11389
  if (pipeProposal) {
11394
11390
  return this.parseTopicReference(pipeProposal);
11395
11391
  }
11396
- this.unexpected();
11397
- break;
11392
+ throw this.unexpected();
11398
11393
  }
11399
11394
  case 47:
11400
11395
  {
11401
11396
  const lookaheadCh = this.input.codePointAt(this.nextTokenStart());
11402
11397
  if (isIdentifierStart(lookaheadCh) || lookaheadCh === 62) {
11403
- this.expectOnePlugin(["jsx", "flow", "typescript"]);
11404
- } else {
11405
- this.unexpected();
11398
+ throw this.expectOnePlugin(["jsx", "flow", "typescript"]);
11406
11399
  }
11407
- break;
11400
+ throw this.unexpected();
11408
11401
  }
11409
11402
  default:
11410
- {
11411
- if (type === 137) {
11412
- return this.parseDecimalLiteral(this.state.value);
11413
- } else if (type === 2 || type === 1) {
11414
- return this.parseArrayLike(this.state.type === 2 ? 4 : 3, false, true);
11415
- } else if (type === 6 || type === 7) {
11416
- return this.parseObjectLike(this.state.type === 6 ? 9 : 8, false, true);
11417
- }
11403
+ if (type === 137) {
11404
+ return this.parseDecimalLiteral(this.state.value);
11405
+ } else if (type === 2 || type === 1) {
11406
+ return this.parseArrayLike(this.state.type === 2 ? 4 : 3, true);
11407
+ } else if (type === 6 || type === 7) {
11408
+ return this.parseObjectLike(this.state.type === 6 ? 9 : 8, false, true);
11418
11409
  }
11419
11410
  if (tokenIsIdentifier(type)) {
11420
11411
  if (this.isContextual(127) && this.lookaheadInLineCharCode() === 123) {
@@ -11448,7 +11439,7 @@ class ExpressionParser extends LValParser {
11448
11439
  }
11449
11440
  return id;
11450
11441
  } else {
11451
- this.unexpected();
11442
+ throw this.unexpected();
11452
11443
  }
11453
11444
  }
11454
11445
  }
@@ -11461,9 +11452,8 @@ class ExpressionParser extends LValParser {
11461
11452
  this.state.end--;
11462
11453
  this.state.endLoc = createPositionWithColumnOffset(this.state.endLoc, -1);
11463
11454
  return this.parseTopicReference(pipeProposal);
11464
- } else {
11465
- this.unexpected();
11466
11455
  }
11456
+ throw this.unexpected();
11467
11457
  }
11468
11458
  parseTopicReference(pipeProposal) {
11469
11459
  const node = this.startNode();
@@ -11539,10 +11529,14 @@ class ExpressionParser extends LValParser {
11539
11529
  parseSuper() {
11540
11530
  const node = this.startNode();
11541
11531
  this.next();
11542
- if (this.match(10) && !this.scope.allowDirectSuper && !(this.optionFlags & 16)) {
11543
- this.raise(Errors.SuperNotAllowed, node);
11544
- } else if (!this.scope.allowSuper && !(this.optionFlags & 16)) {
11545
- this.raise(Errors.UnexpectedSuper, node);
11532
+ if (this.match(10) && !this.scope.allowDirectSuper) {
11533
+ if (!(this.optionFlags & 16)) {
11534
+ this.raise(Errors.SuperNotAllowed, node);
11535
+ }
11536
+ } else if (!this.scope.allowSuper) {
11537
+ if (!(this.optionFlags & 16)) {
11538
+ this.raise(Errors.UnexpectedSuper, node);
11539
+ }
11546
11540
  }
11547
11541
  if (!this.match(10) && !this.match(0) && !this.match(16)) {
11548
11542
  this.raise(Errors.UnsupportedSuper, node);
@@ -11621,9 +11615,7 @@ class ExpressionParser extends LValParser {
11621
11615
  return this.parseLiteral(value, "NumericLiteral");
11622
11616
  }
11623
11617
  parseBigIntLiteral(value) {
11624
- {
11625
- return this.parseLiteral(value, "BigIntLiteral");
11626
- }
11618
+ return this.parseLiteral(value, "BigIntLiteral");
11627
11619
  }
11628
11620
  parseDecimalLiteral(value) {
11629
11621
  return this.parseLiteral(value, "DecimalLiteral");
@@ -11843,10 +11835,8 @@ class ExpressionParser extends LValParser {
11843
11835
  if (isRecord && !this.isObjectProperty(prop) && prop.type !== "SpreadElement") {
11844
11836
  this.raise(Errors.InvalidRecordProperty, prop);
11845
11837
  }
11846
- {
11847
- if (prop.shorthand) {
11848
- this.addExtra(prop, "shorthand", true);
11849
- }
11838
+ if (prop.shorthand) {
11839
+ this.addExtra(prop, "shorthand", true);
11850
11840
  }
11851
11841
  node.properties.push(prop);
11852
11842
  }
@@ -12056,7 +12046,7 @@ class ExpressionParser extends LValParser {
12056
12046
  this.scope.exit();
12057
12047
  return finishedNode;
12058
12048
  }
12059
- parseArrayLike(close, canBePattern, isTuple, refExpressionErrors) {
12049
+ parseArrayLike(close, isTuple, refExpressionErrors) {
12060
12050
  if (isTuple) {
12061
12051
  this.expectPlugin("recordAndTuple");
12062
12052
  }
@@ -12519,100 +12509,98 @@ function babel7CompatTokens(tokens, input, startIndex) {
12519
12509
  type
12520
12510
  } = token;
12521
12511
  if (typeof type === "number") {
12522
- {
12523
- if (type === 139) {
12524
- const {
12525
- loc,
12526
- start,
12527
- value,
12528
- end
12529
- } = token;
12530
- const hashEndPos = start + 1;
12531
- const hashEndLoc = createPositionWithColumnOffset(loc.start, 1);
12532
- tokens.splice(i, 1, new Token({
12533
- type: getExportedToken(27),
12534
- value: "#",
12512
+ if (type === 139) {
12513
+ const {
12514
+ loc,
12515
+ start,
12516
+ value,
12517
+ end
12518
+ } = token;
12519
+ const hashEndPos = start + 1;
12520
+ const hashEndLoc = createPositionWithColumnOffset(loc.start, 1);
12521
+ tokens.splice(i, 1, new Token({
12522
+ type: getExportedToken(27),
12523
+ value: "#",
12524
+ start: start,
12525
+ end: hashEndPos,
12526
+ startLoc: loc.start,
12527
+ endLoc: hashEndLoc
12528
+ }), new Token({
12529
+ type: getExportedToken(132),
12530
+ value: value,
12531
+ start: hashEndPos,
12532
+ end: end,
12533
+ startLoc: hashEndLoc,
12534
+ endLoc: loc.end
12535
+ }));
12536
+ i++;
12537
+ continue;
12538
+ }
12539
+ if (tokenIsTemplate(type)) {
12540
+ const {
12541
+ loc,
12542
+ start,
12543
+ value,
12544
+ end
12545
+ } = token;
12546
+ const backquoteEnd = start + 1;
12547
+ const backquoteEndLoc = createPositionWithColumnOffset(loc.start, 1);
12548
+ let startToken;
12549
+ if (input.charCodeAt(start - startIndex) === 96) {
12550
+ startToken = new Token({
12551
+ type: getExportedToken(22),
12552
+ value: "`",
12535
12553
  start: start,
12536
- end: hashEndPos,
12554
+ end: backquoteEnd,
12537
12555
  startLoc: loc.start,
12538
- endLoc: hashEndLoc
12539
- }), new Token({
12540
- type: getExportedToken(132),
12541
- value: value,
12542
- start: hashEndPos,
12556
+ endLoc: backquoteEndLoc
12557
+ });
12558
+ } else {
12559
+ startToken = new Token({
12560
+ type: getExportedToken(8),
12561
+ value: "}",
12562
+ start: start,
12563
+ end: backquoteEnd,
12564
+ startLoc: loc.start,
12565
+ endLoc: backquoteEndLoc
12566
+ });
12567
+ }
12568
+ let templateValue, templateElementEnd, templateElementEndLoc, endToken;
12569
+ if (type === 24) {
12570
+ templateElementEnd = end - 1;
12571
+ templateElementEndLoc = createPositionWithColumnOffset(loc.end, -1);
12572
+ templateValue = value === null ? null : value.slice(1, -1);
12573
+ endToken = new Token({
12574
+ type: getExportedToken(22),
12575
+ value: "`",
12576
+ start: templateElementEnd,
12543
12577
  end: end,
12544
- startLoc: hashEndLoc,
12578
+ startLoc: templateElementEndLoc,
12545
12579
  endLoc: loc.end
12546
- }));
12547
- i++;
12548
- continue;
12549
- }
12550
- if (tokenIsTemplate(type)) {
12551
- const {
12552
- loc,
12553
- start,
12554
- value,
12555
- end
12556
- } = token;
12557
- const backquoteEnd = start + 1;
12558
- const backquoteEndLoc = createPositionWithColumnOffset(loc.start, 1);
12559
- let startToken;
12560
- if (input.charCodeAt(start - startIndex) === 96) {
12561
- startToken = new Token({
12562
- type: getExportedToken(22),
12563
- value: "`",
12564
- start: start,
12565
- end: backquoteEnd,
12566
- startLoc: loc.start,
12567
- endLoc: backquoteEndLoc
12568
- });
12569
- } else {
12570
- startToken = new Token({
12571
- type: getExportedToken(8),
12572
- value: "}",
12573
- start: start,
12574
- end: backquoteEnd,
12575
- startLoc: loc.start,
12576
- endLoc: backquoteEndLoc
12577
- });
12578
- }
12579
- let templateValue, templateElementEnd, templateElementEndLoc, endToken;
12580
- if (type === 24) {
12581
- templateElementEnd = end - 1;
12582
- templateElementEndLoc = createPositionWithColumnOffset(loc.end, -1);
12583
- templateValue = value === null ? null : value.slice(1, -1);
12584
- endToken = new Token({
12585
- type: getExportedToken(22),
12586
- value: "`",
12587
- start: templateElementEnd,
12588
- end: end,
12589
- startLoc: templateElementEndLoc,
12590
- endLoc: loc.end
12591
- });
12592
- } else {
12593
- templateElementEnd = end - 2;
12594
- templateElementEndLoc = createPositionWithColumnOffset(loc.end, -2);
12595
- templateValue = value === null ? null : value.slice(1, -2);
12596
- endToken = new Token({
12597
- type: getExportedToken(23),
12598
- value: "${",
12599
- start: templateElementEnd,
12600
- end: end,
12601
- startLoc: templateElementEndLoc,
12602
- endLoc: loc.end
12603
- });
12604
- }
12605
- tokens.splice(i, 1, startToken, new Token({
12606
- type: getExportedToken(20),
12607
- value: templateValue,
12608
- start: backquoteEnd,
12609
- end: templateElementEnd,
12610
- startLoc: backquoteEndLoc,
12611
- endLoc: templateElementEndLoc
12612
- }), endToken);
12613
- i += 2;
12614
- continue;
12580
+ });
12581
+ } else {
12582
+ templateElementEnd = end - 2;
12583
+ templateElementEndLoc = createPositionWithColumnOffset(loc.end, -2);
12584
+ templateValue = value === null ? null : value.slice(1, -2);
12585
+ endToken = new Token({
12586
+ type: getExportedToken(23),
12587
+ value: "${",
12588
+ start: templateElementEnd,
12589
+ end: end,
12590
+ startLoc: templateElementEndLoc,
12591
+ endLoc: loc.end
12592
+ });
12615
12593
  }
12594
+ tokens.splice(i, 1, startToken, new Token({
12595
+ type: getExportedToken(20),
12596
+ value: templateValue,
12597
+ start: backquoteEnd,
12598
+ end: templateElementEnd,
12599
+ startLoc: backquoteEndLoc,
12600
+ endLoc: templateElementEndLoc
12601
+ }), endToken);
12602
+ i += 2;
12603
+ continue;
12616
12604
  }
12617
12605
  token.type = getExportedToken(type);
12618
12606
  }
@@ -12682,9 +12670,7 @@ class StatementParser extends ExpressionParser {
12682
12670
  if (!this.isContextual(107)) {
12683
12671
  return false;
12684
12672
  }
12685
- const next = this.nextTokenInLineStart();
12686
- const nextCh = this.codePointAtPos(next);
12687
- return this.chStartsBindingIdentifier(nextCh, next);
12673
+ return this.nextTokenIsIdentifierOnSameLine();
12688
12674
  }
12689
12675
  isForUsing() {
12690
12676
  if (!this.isContextual(107)) {
@@ -12703,6 +12689,11 @@ class StatementParser extends ExpressionParser {
12703
12689
  }
12704
12690
  return false;
12705
12691
  }
12692
+ nextTokenIsIdentifierOnSameLine() {
12693
+ const next = this.nextTokenInLineStart();
12694
+ const nextCh = this.codePointAtPos(next);
12695
+ return this.chStartsBindingIdentifier(nextCh, next);
12696
+ }
12706
12697
  isAwaitUsing() {
12707
12698
  if (!this.isContextual(96)) {
12708
12699
  return false;
@@ -13845,7 +13836,7 @@ class StatementParser extends ExpressionParser {
13845
13836
  this.sawUnambiguousESM = true;
13846
13837
  return this.finishNode(node2, "ExportDefaultDeclaration");
13847
13838
  }
13848
- this.unexpected(null, 5);
13839
+ throw this.unexpected(null, 5);
13849
13840
  }
13850
13841
  eatExportStar(node) {
13851
13842
  return this.eat(55);
@@ -14334,9 +14325,7 @@ class StatementParser extends ExpressionParser {
14334
14325
  }
14335
14326
  maybeParseImportAttributes(node) {
14336
14327
  let attributes;
14337
- {
14338
- var useWith = false;
14339
- }
14328
+ var useWith = false;
14340
14329
  if (this.match(76)) {
14341
14330
  if (this.hasPrecedingLineBreak() && this.lookaheadCharCode() === 40) {
14342
14331
  return;
@@ -14348,9 +14337,7 @@ class StatementParser extends ExpressionParser {
14348
14337
  } else {
14349
14338
  attributes = this.parseImportAttributes();
14350
14339
  }
14351
- {
14352
- useWith = true;
14353
- }
14340
+ useWith = true;
14354
14341
  } else if (this.isContextual(94) && !this.hasPrecedingLineBreak()) {
14355
14342
  if (!this.hasPlugin("deprecatedImportAssert") && !this.hasPlugin("importAssertions")) {
14356
14343
  this.raise(Errors.ImportAttributesUseAssert, this.state.startLoc);
@@ -14437,54 +14424,54 @@ class StatementParser extends ExpressionParser {
14437
14424
  }
14438
14425
  class Parser extends StatementParser {
14439
14426
  constructor(options, input, pluginsMap) {
14440
- options = getOptions(options);
14441
- super(options, input);
14442
- this.options = options;
14427
+ const normalizedOptions = getOptions(options);
14428
+ super(normalizedOptions, input);
14429
+ this.options = normalizedOptions;
14443
14430
  this.initializeScopes();
14444
14431
  this.plugins = pluginsMap;
14445
- this.filename = options.sourceFilename;
14446
- this.startIndex = options.startIndex;
14432
+ this.filename = normalizedOptions.sourceFilename;
14433
+ this.startIndex = normalizedOptions.startIndex;
14447
14434
  let optionFlags = 0;
14448
- if (options.allowAwaitOutsideFunction) {
14435
+ if (normalizedOptions.allowAwaitOutsideFunction) {
14449
14436
  optionFlags |= 1;
14450
14437
  }
14451
- if (options.allowReturnOutsideFunction) {
14438
+ if (normalizedOptions.allowReturnOutsideFunction) {
14452
14439
  optionFlags |= 2;
14453
14440
  }
14454
- if (options.allowImportExportEverywhere) {
14441
+ if (normalizedOptions.allowImportExportEverywhere) {
14455
14442
  optionFlags |= 8;
14456
14443
  }
14457
- if (options.allowSuperOutsideMethod) {
14444
+ if (normalizedOptions.allowSuperOutsideMethod) {
14458
14445
  optionFlags |= 16;
14459
14446
  }
14460
- if (options.allowUndeclaredExports) {
14447
+ if (normalizedOptions.allowUndeclaredExports) {
14461
14448
  optionFlags |= 64;
14462
14449
  }
14463
- if (options.allowNewTargetOutsideFunction) {
14450
+ if (normalizedOptions.allowNewTargetOutsideFunction) {
14464
14451
  optionFlags |= 4;
14465
14452
  }
14466
- if (options.allowYieldOutsideFunction) {
14453
+ if (normalizedOptions.allowYieldOutsideFunction) {
14467
14454
  optionFlags |= 32;
14468
14455
  }
14469
- if (options.ranges) {
14456
+ if (normalizedOptions.ranges) {
14470
14457
  optionFlags |= 128;
14471
14458
  }
14472
- if (options.tokens) {
14459
+ if (normalizedOptions.tokens) {
14473
14460
  optionFlags |= 256;
14474
14461
  }
14475
- if (options.createImportExpressions) {
14462
+ if (normalizedOptions.createImportExpressions) {
14476
14463
  optionFlags |= 512;
14477
14464
  }
14478
- if (options.createParenthesizedExpressions) {
14465
+ if (normalizedOptions.createParenthesizedExpressions) {
14479
14466
  optionFlags |= 1024;
14480
14467
  }
14481
- if (options.errorRecovery) {
14468
+ if (normalizedOptions.errorRecovery) {
14482
14469
  optionFlags |= 2048;
14483
14470
  }
14484
- if (options.attachComment) {
14471
+ if (normalizedOptions.attachComment) {
14485
14472
  optionFlags |= 4096;
14486
14473
  }
14487
- if (options.annexB) {
14474
+ if (normalizedOptions.annexB) {
14488
14475
  optionFlags |= 8192;
14489
14476
  }
14490
14477
  this.optionFlags = optionFlags;
@@ -14498,10 +14485,10 @@ class Parser extends StatementParser {
14498
14485
  const program = this.startNode();
14499
14486
  this.nextToken();
14500
14487
  file.errors = null;
14501
- this.parseTopLevel(file, program);
14502
- file.errors = this.state.errors;
14503
- file.comments.length = this.state.commentsLen;
14504
- return file;
14488
+ const result = this.parseTopLevel(file, program);
14489
+ result.errors = this.state.errors;
14490
+ result.comments.length = this.state.commentsLen;
14491
+ return result;
14505
14492
  }
14506
14493
  }
14507
14494
  function parse(input, options) {