@agentscope-ai/chat 1.1.4

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 (476) hide show
  1. package/README.md +88 -0
  2. package/dist/_util/hooks/use-proxy-imperative-handle.d.ts +4 -0
  3. package/dist/_util/hooks/use-proxy-imperative-handle.js +18 -0
  4. package/dist/_util/type.d.ts +1 -0
  5. package/dist/_util/type.js +1 -0
  6. package/dist/_util/warning.d.ts +30 -0
  7. package/dist/_util/warning.js +63 -0
  8. package/dist/accordion/Accordion.d.ts +22 -0
  9. package/dist/accordion/Accordion.js +93 -0
  10. package/dist/accordion/BodyContent.d.ts +8 -0
  11. package/dist/accordion/BodyContent.js +18 -0
  12. package/dist/accordion/DeepThink.d.ts +7 -0
  13. package/dist/accordion/DeepThink.js +35 -0
  14. package/dist/accordion/index.d.ts +2 -0
  15. package/dist/accordion/index.js +1 -0
  16. package/dist/accordion/index.less +170 -0
  17. package/dist/attachments/DropArea.d.ts +8 -0
  18. package/dist/attachments/DropArea.js +87 -0
  19. package/dist/attachments/FileList/AudioIcon.d.ts +2 -0
  20. package/dist/attachments/FileList/AudioIcon.js +19 -0
  21. package/dist/attachments/FileList/FileListCard.d.ts +12 -0
  22. package/dist/attachments/FileList/FileListCard.js +229 -0
  23. package/dist/attachments/FileList/Progress.d.ts +6 -0
  24. package/dist/attachments/FileList/Progress.js +21 -0
  25. package/dist/attachments/FileList/VideoIcon.d.ts +2 -0
  26. package/dist/attachments/FileList/VideoIcon.js +19 -0
  27. package/dist/attachments/FileList/index.d.ts +16 -0
  28. package/dist/attachments/FileList/index.js +132 -0
  29. package/dist/attachments/PlaceholderUploader.d.ts +17 -0
  30. package/dist/attachments/PlaceholderUploader.js +79 -0
  31. package/dist/attachments/SilentUploader.d.ts +9 -0
  32. package/dist/attachments/SilentUploader.js +23 -0
  33. package/dist/attachments/context.d.ts +5 -0
  34. package/dist/attachments/context.js +2 -0
  35. package/dist/attachments/index.d.ts +33 -0
  36. package/dist/attachments/index.js +166 -0
  37. package/dist/attachments/style/fileCard.d.ts +4 -0
  38. package/dist/attachments/style/fileCard.js +124 -0
  39. package/dist/attachments/style/index.d.ts +10 -0
  40. package/dist/attachments/style/index.js +211 -0
  41. package/dist/attachments/util.d.ts +2 -0
  42. package/dist/attachments/util.js +53 -0
  43. package/dist/bubble/Avatar.d.ts +10 -0
  44. package/dist/bubble/Avatar.js +22 -0
  45. package/dist/bubble/Bubble.d.ts +11 -0
  46. package/dist/bubble/Bubble.js +102 -0
  47. package/dist/bubble/BubbleList.d.ts +15 -0
  48. package/dist/bubble/BubbleList.js +44 -0
  49. package/dist/bubble/Cards.d.ts +21 -0
  50. package/dist/bubble/Cards.js +47 -0
  51. package/dist/bubble/ScrollToBottom.d.ts +7 -0
  52. package/dist/bubble/ScrollToBottom.js +45 -0
  53. package/dist/bubble/Spin.d.ts +2 -0
  54. package/dist/bubble/Spin.js +18 -0
  55. package/dist/bubble/hooks/useDisplayData.d.ts +0 -0
  56. package/dist/bubble/hooks/useDisplayData.js +0 -0
  57. package/dist/bubble/hooks/useListData.d.ts +0 -0
  58. package/dist/bubble/hooks/useListData.js +0 -0
  59. package/dist/bubble/index.d.ts +8 -0
  60. package/dist/bubble/index.js +4 -0
  61. package/dist/bubble/interface.d.ts +26 -0
  62. package/dist/bubble/interface.js +1 -0
  63. package/dist/bubble/loading.d.ts +6 -0
  64. package/dist/bubble/loading.js +17 -0
  65. package/dist/bubble/style/avatar.less +40 -0
  66. package/dist/bubble/style/content.d.ts +4 -0
  67. package/dist/bubble/style/content.js +43 -0
  68. package/dist/bubble/style/index.d.ts +9 -0
  69. package/dist/bubble/style/index.js +53 -0
  70. package/dist/bubble/style/list.less +15 -0
  71. package/dist/bubble/style/scrollToBottom.less +174 -0
  72. package/dist/chat-anywhere/Chat/Ref.d.ts +3 -0
  73. package/dist/chat-anywhere/Chat/Ref.js +19 -0
  74. package/dist/chat-anywhere/Chat/index.d.ts +4 -0
  75. package/dist/chat-anywhere/Chat/index.js +65 -0
  76. package/dist/chat-anywhere/Chat/index.less +54 -0
  77. package/dist/chat-anywhere/Header/index.d.ts +3 -0
  78. package/dist/chat-anywhere/Header/index.js +32 -0
  79. package/dist/chat-anywhere/Header/index.less +24 -0
  80. package/dist/chat-anywhere/Input/index.d.ts +3 -0
  81. package/dist/chat-anywhere/Input/index.js +170 -0
  82. package/dist/chat-anywhere/Input/index.less +12 -0
  83. package/dist/chat-anywhere/Layout/index.d.ts +10 -0
  84. package/dist/chat-anywhere/Layout/index.js +73 -0
  85. package/dist/chat-anywhere/Layout/index.less +61 -0
  86. package/dist/chat-anywhere/SessionList/index.d.ts +5 -0
  87. package/dist/chat-anywhere/SessionList/index.js +115 -0
  88. package/dist/chat-anywhere/SessionList/index.less +52 -0
  89. package/dist/chat-anywhere/hooks/ChatAnywhereProvider.d.ts +43 -0
  90. package/dist/chat-anywhere/hooks/ChatAnywhereProvider.js +90 -0
  91. package/dist/chat-anywhere/hooks/types.d.ts +57 -0
  92. package/dist/chat-anywhere/hooks/types.js +1 -0
  93. package/dist/chat-anywhere/hooks/useInput.d.ts +7 -0
  94. package/dist/chat-anywhere/hooks/useInput.js +21 -0
  95. package/dist/chat-anywhere/hooks/useMessages.d.ts +11 -0
  96. package/dist/chat-anywhere/hooks/useMessages.js +56 -0
  97. package/dist/chat-anywhere/hooks/useSessionList.d.ts +24 -0
  98. package/dist/chat-anywhere/hooks/useSessionList.js +120 -0
  99. package/dist/chat-anywhere/index.d.ts +9 -0
  100. package/dist/chat-anywhere/index.js +58 -0
  101. package/dist/conversations/GroupTitle.d.ts +10 -0
  102. package/dist/conversations/GroupTitle.js +15 -0
  103. package/dist/conversations/Item.d.ts +14 -0
  104. package/dist/conversations/Item.js +96 -0
  105. package/dist/conversations/hooks/useGroupable.d.ts +9 -0
  106. package/dist/conversations/hooks/useGroupable.js +72 -0
  107. package/dist/conversations/index.d.ts +62 -0
  108. package/dist/conversations/index.js +124 -0
  109. package/dist/conversations/interface.d.ts +60 -0
  110. package/dist/conversations/interface.js +1 -0
  111. package/dist/conversations/style/index.d.ts +9 -0
  112. package/dist/conversations/style/index.js +80 -0
  113. package/dist/default-cards/Count/index.d.ts +3 -0
  114. package/dist/default-cards/Count/index.js +16 -0
  115. package/dist/default-cards/Count/index.less +19 -0
  116. package/dist/default-cards/DeepThink/index.d.ts +11 -0
  117. package/dist/default-cards/DeepThink/index.js +11 -0
  118. package/dist/default-cards/DeepThink/index.less +0 -0
  119. package/dist/default-cards/Files/index.d.ts +2 -0
  120. package/dist/default-cards/Files/index.js +18 -0
  121. package/dist/default-cards/Footer/index.d.ts +19 -0
  122. package/dist/default-cards/Footer/index.js +50 -0
  123. package/dist/default-cards/Footer/index.less +41 -0
  124. package/dist/default-cards/Images/index.d.ts +3 -0
  125. package/dist/default-cards/Images/index.js +33 -0
  126. package/dist/default-cards/Images/index.less +17 -0
  127. package/dist/default-cards/Interrupted/index.d.ts +11 -0
  128. package/dist/default-cards/Interrupted/index.js +40 -0
  129. package/dist/default-cards/Interrupted/index.less +57 -0
  130. package/dist/default-cards/Text/index.d.ts +2 -0
  131. package/dist/default-cards/Text/index.js +12 -0
  132. package/dist/default-cards/index.d.ts +6 -0
  133. package/dist/default-cards/index.js +6 -0
  134. package/dist/disclaimer/index.d.ts +11 -0
  135. package/dist/disclaimer/index.js +26 -0
  136. package/dist/docs/1896.async.js +457 -0
  137. package/dist/docs/2710.async.js +62 -0
  138. package/dist/docs/2863.async.js +400 -0
  139. package/dist/docs/3057.async.js +46 -0
  140. package/dist/docs/3364.async.js +25 -0
  141. package/dist/docs/404.html +15 -0
  142. package/dist/docs/4820.async.js +1381 -0
  143. package/dist/docs/5623.async.js +60 -0
  144. package/dist/docs/5757.async.js +1 -0
  145. package/dist/docs/5804.async.js +271 -0
  146. package/dist/docs/6198.async.js +18 -0
  147. package/dist/docs/6671.async.js +137 -0
  148. package/dist/docs/7195.async.js +1 -0
  149. package/dist/docs/7485.async.js +29 -0
  150. package/dist/docs/7931.async.js +19 -0
  151. package/dist/docs/7997.async.js +5 -0
  152. package/dist/docs/8156.async.js +110 -0
  153. package/dist/docs/8368.async.js +2 -0
  154. package/dist/docs/8480.async.js +1449 -0
  155. package/dist/docs/8618.async.js +246 -0
  156. package/dist/docs/9016.async.js +32 -0
  157. package/dist/docs/9016.chunk.css +1 -0
  158. package/dist/docs/9335.async.js +11 -0
  159. package/dist/docs/accordion__demos.async.js +9 -0
  160. package/dist/docs/attachments__demos.async.js +1 -0
  161. package/dist/docs/bubble__demos.async.js +50 -0
  162. package/dist/docs/components/accordion/index.html +15 -0
  163. package/dist/docs/components/accordion-cn/index.html +15 -0
  164. package/dist/docs/components/attachments/index.html +15 -0
  165. package/dist/docs/components/attachments-cn/index.html +15 -0
  166. package/dist/docs/components/bubble/index.html +15 -0
  167. package/dist/docs/components/bubble-cn/index.html +15 -0
  168. package/dist/docs/components/bubble-list/index.html +15 -0
  169. package/dist/docs/components/bubble-list-cn/index.html +15 -0
  170. package/dist/docs/components/conversations/index.html +15 -0
  171. package/dist/docs/components/conversations-cn/index.html +15 -0
  172. package/dist/docs/components/disclaimer/index.html +15 -0
  173. package/dist/docs/components/disclaimer-cn/index.html +15 -0
  174. package/dist/docs/components/footer/index.html +15 -0
  175. package/dist/docs/components/footer-cn/index.html +15 -0
  176. package/dist/docs/components/markdown/index.html +15 -0
  177. package/dist/docs/components/markdown-cn/index.html +15 -0
  178. package/dist/docs/components/sender/index.html +15 -0
  179. package/dist/docs/components/sender-cn/index.html +15 -0
  180. package/dist/docs/components/status/index.html +15 -0
  181. package/dist/docs/components/status-cn/index.html +15 -0
  182. package/dist/docs/components/welcome/index.html +15 -0
  183. package/dist/docs/components/welcome-cn/index.html +15 -0
  184. package/dist/docs/components__accordion__index.en-US.md.async.js +6 -0
  185. package/dist/docs/components__accordion__index.en-US.md.chunk.css +1 -0
  186. package/dist/docs/components__accordion__index.zh-CN.md.async.js +6 -0
  187. package/dist/docs/components__accordion__index.zh-CN.md.chunk.css +1 -0
  188. package/dist/docs/components__attachments__index.en-US.md.async.js +1 -0
  189. package/dist/docs/components__attachments__index.en-US.md.chunk.css +1 -0
  190. package/dist/docs/components__attachments__index.zh-CN.md.async.js +1 -0
  191. package/dist/docs/components__attachments__index.zh-CN.md.chunk.css +1 -0
  192. package/dist/docs/components__bubble-list__index.en-US.md.async.js +2 -0
  193. package/dist/docs/components__bubble-list__index.en-US.md.chunk.css +1 -0
  194. package/dist/docs/components__bubble-list__index.zh-CN.md.async.js +2 -0
  195. package/dist/docs/components__bubble-list__index.zh-CN.md.chunk.css +1 -0
  196. package/dist/docs/components__bubble__index.en-US.md.async.js +1 -0
  197. package/dist/docs/components__bubble__index.en-US.md.chunk.css +1 -0
  198. package/dist/docs/components__bubble__index.zh-CN.md.async.js +1 -0
  199. package/dist/docs/components__bubble__index.zh-CN.md.chunk.css +1 -0
  200. package/dist/docs/components__conversations__index.en-US.md.async.js +2 -0
  201. package/dist/docs/components__conversations__index.en-US.md.chunk.css +1 -0
  202. package/dist/docs/components__conversations__index.zh-CN.md.async.js +1 -0
  203. package/dist/docs/components__conversations__index.zh-CN.md.chunk.css +1 -0
  204. package/dist/docs/components__disclaimer__index.en-US.md.async.js +1 -0
  205. package/dist/docs/components__disclaimer__index.en-US.md.chunk.css +1 -0
  206. package/dist/docs/components__disclaimer__index.zh-CN.md.async.js +1 -0
  207. package/dist/docs/components__disclaimer__index.zh-CN.md.chunk.css +1 -0
  208. package/dist/docs/components__footer__index.en-US.md.async.js +1 -0
  209. package/dist/docs/components__footer__index.en-US.md.chunk.css +1 -0
  210. package/dist/docs/components__footer__index.zh-CN.md.async.js +2 -0
  211. package/dist/docs/components__footer__index.zh-CN.md.chunk.css +1 -0
  212. package/dist/docs/components__markdown__index.en-US.md.async.js +1 -0
  213. package/dist/docs/components__markdown__index.en-US.md.chunk.css +1 -0
  214. package/dist/docs/components__markdown__index.zh-CN.md.async.js +1 -0
  215. package/dist/docs/components__markdown__index.zh-CN.md.chunk.css +1 -0
  216. package/dist/docs/components__sender__index.en-US.md.async.js +1 -0
  217. package/dist/docs/components__sender__index.en-US.md.chunk.css +1 -0
  218. package/dist/docs/components__sender__index.zh-CN.md.async.js +1 -0
  219. package/dist/docs/components__sender__index.zh-CN.md.chunk.css +1 -0
  220. package/dist/docs/components__status__index.en-US.md.async.js +1 -0
  221. package/dist/docs/components__status__index.en-US.md.chunk.css +1 -0
  222. package/dist/docs/components__status__index.zh-CN.md.async.js +2 -0
  223. package/dist/docs/components__status__index.zh-CN.md.chunk.css +1 -0
  224. package/dist/docs/components__welcome__index.en-US.md.async.js +2 -0
  225. package/dist/docs/components__welcome__index.en-US.md.chunk.css +1 -0
  226. package/dist/docs/components__welcome__index.zh-CN.md.async.js +2 -0
  227. package/dist/docs/components__welcome__index.zh-CN.md.chunk.css +1 -0
  228. package/dist/docs/conversations__demos.async.js +1 -0
  229. package/dist/docs/demos.async.js +47 -0
  230. package/dist/docs/demos.chunk.css +1 -0
  231. package/dist/docs/disclaimer__demos.async.js +1 -0
  232. package/dist/docs/docs/development/ag-ui/index.html +15 -0
  233. package/dist/docs/docs/development/ag-ui-cn/index.html +15 -0
  234. package/dist/docs/docs/development/backend/index.html +15 -0
  235. package/dist/docs/docs/development/backend-cn/index.html +15 -0
  236. package/dist/docs/docs/development/cards/index.html +15 -0
  237. package/dist/docs/docs/development/cards-cn/index.html +15 -0
  238. package/dist/docs/docs/development/chatanywhere/index.html +15 -0
  239. package/dist/docs/docs/development/chatanywhere-api/index.html +15 -0
  240. package/dist/docs/docs/development/chatanywhere-api-cn/index.html +15 -0
  241. package/dist/docs/docs/development/chatanywhere-cn/index.html +15 -0
  242. package/dist/docs/docs/development/custom/index.html +15 -0
  243. package/dist/docs/docs/development/custom-cn/index.html +15 -0
  244. package/dist/docs/docs/development/overview/index.html +15 -0
  245. package/dist/docs/docs/development/overview-cn/index.html +15 -0
  246. package/dist/docs/docs/development/qwen/index.html +15 -0
  247. package/dist/docs/docs/development/qwen-cn/index.html +15 -0
  248. package/dist/docs/docs/templates/copilot/index.html +15 -0
  249. package/dist/docs/docs/templates/copilot-cn/index.html +15 -0
  250. package/dist/docs/docs/templates/native/index.html +15 -0
  251. package/dist/docs/docs/templates/native-cn/index.html +15 -0
  252. package/dist/docs/docs/templates/voice/index.html +15 -0
  253. package/dist/docs/docs/templates/voice-cn/index.html +15 -0
  254. package/dist/docs/docs__development__ag-ui.en-US.md.async.js +210 -0
  255. package/dist/docs/docs__development__ag-ui.en-US.md.chunk.css +1 -0
  256. package/dist/docs/docs__development__ag-ui.zh-CN.md.async.js +210 -0
  257. package/dist/docs/docs__development__ag-ui.zh-CN.md.chunk.css +1 -0
  258. package/dist/docs/docs__development__backend.en-US.md.async.js +12 -0
  259. package/dist/docs/docs__development__backend.en-US.md.chunk.css +1 -0
  260. package/dist/docs/docs__development__backend.zh-CN.md.async.js +12 -0
  261. package/dist/docs/docs__development__backend.zh-CN.md.chunk.css +1 -0
  262. package/dist/docs/docs__development__cards.en-US.md.async.js +27 -0
  263. package/dist/docs/docs__development__cards.en-US.md.chunk.css +1 -0
  264. package/dist/docs/docs__development__cards.zh-CN.md.async.js +27 -0
  265. package/dist/docs/docs__development__cards.zh-CN.md.chunk.css +1 -0
  266. package/dist/docs/docs__development__chatanywhere-api.en-US.md.async.js +69 -0
  267. package/dist/docs/docs__development__chatanywhere-api.en-US.md.chunk.css +1 -0
  268. package/dist/docs/docs__development__chatanywhere-api.zh-CN.md.async.js +69 -0
  269. package/dist/docs/docs__development__chatanywhere-api.zh-CN.md.chunk.css +1 -0
  270. package/dist/docs/docs__development__chatanywhere.en-US.md.async.js +77 -0
  271. package/dist/docs/docs__development__chatanywhere.en-US.md.chunk.css +1 -0
  272. package/dist/docs/docs__development__chatanywhere.zh-CN.md.async.js +77 -0
  273. package/dist/docs/docs__development__chatanywhere.zh-CN.md.chunk.css +1 -0
  274. package/dist/docs/docs__development__custom.en-US.md.async.js +22 -0
  275. package/dist/docs/docs__development__custom.en-US.md.chunk.css +1 -0
  276. package/dist/docs/docs__development__custom.zh-CN.md.async.js +22 -0
  277. package/dist/docs/docs__development__custom.zh-CN.md.chunk.css +1 -0
  278. package/dist/docs/docs__development__overview.en-US.md.async.js +21 -0
  279. package/dist/docs/docs__development__overview.en-US.md.chunk.css +1 -0
  280. package/dist/docs/docs__development__overview.zh-CN.md.async.js +21 -0
  281. package/dist/docs/docs__development__overview.zh-CN.md.chunk.css +1 -0
  282. package/dist/docs/docs__development__qwen.en-US.md.async.js +25 -0
  283. package/dist/docs/docs__development__qwen.en-US.md.chunk.css +1 -0
  284. package/dist/docs/docs__development__qwen.zh-CN.md.async.js +25 -0
  285. package/dist/docs/docs__development__qwen.zh-CN.md.chunk.css +1 -0
  286. package/dist/docs/docs__templates__copilot.en-US.md.async.js +1 -0
  287. package/dist/docs/docs__templates__copilot.en-US.md.chunk.css +1 -0
  288. package/dist/docs/docs__templates__copilot.zh-CN.md.async.js +1 -0
  289. package/dist/docs/docs__templates__copilot.zh-CN.md.chunk.css +1 -0
  290. package/dist/docs/docs__templates__native.en-US.md.async.js +1 -0
  291. package/dist/docs/docs__templates__native.en-US.md.chunk.css +1 -0
  292. package/dist/docs/docs__templates__native.zh-CN.md.async.js +1 -0
  293. package/dist/docs/docs__templates__native.zh-CN.md.chunk.css +1 -0
  294. package/dist/docs/docs__templates__voice.en-US.md.async.js +20 -0
  295. package/dist/docs/docs__templates__voice.en-US.md.chunk.css +1 -0
  296. package/dist/docs/docs__templates__voice.zh-CN.md.async.js +1 -0
  297. package/dist/docs/docs__templates__voice.zh-CN.md.chunk.css +1 -0
  298. package/dist/docs/dumi__pages__index__index.en-US.async.js +1 -0
  299. package/dist/docs/dumi__pages__index__index.en-US.chunk.css +1 -0
  300. package/dist/docs/dumi__pages__index__index.zh-CN.async.js +1 -0
  301. package/dist/docs/dumi__pages__index__index.zh-CN.chunk.css +1 -0
  302. package/dist/docs/dumi__theme__layouts__DocLayout__index.async.js +1 -0
  303. package/dist/docs/dumi__theme__layouts__DocLayout__index.chunk.css +1 -0
  304. package/dist/docs/dumi__theme__layouts__GlobalLayout__index.async.js +18 -0
  305. package/dist/docs/dumi__theme__layouts__GlobalLayout__index.chunk.css +1 -0
  306. package/dist/docs/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +1 -0
  307. package/dist/docs/index/index.html +15 -0
  308. package/dist/docs/index-cn/index.html +15 -0
  309. package/dist/docs/markdown__demos.async.js +164 -0
  310. package/dist/docs/meta__components__en-US.async.js +9 -0
  311. package/dist/docs/meta__components__zh-CN.async.js +10 -0
  312. package/dist/docs/meta__docs__en-US.async.js +475 -0
  313. package/dist/docs/meta__docs__en-US.chunk.css +1 -0
  314. package/dist/docs/meta__docs__zh-CN.async.js +456 -0
  315. package/dist/docs/meta__docs__zh-CN.chunk.css +1 -0
  316. package/dist/docs/nm__dumi__dist__client__pages__404.async.js +1 -0
  317. package/dist/docs/nm__dumi__dist__client__pages__Demo__index.async.js +1 -0
  318. package/dist/docs/nm__dumi__dist__client__pages__Demo__index.chunk.css +1 -0
  319. package/dist/docs/preload_helper.js +1 -0
  320. package/dist/docs/sender__demos.async.js +1 -0
  321. package/dist/docs/umi.css +1 -0
  322. package/dist/docs/umi.js +107 -0
  323. package/dist/docs/welcome__demos.async.js +1 -0
  324. package/dist/docs/~demos/:id/index.html +15 -0
  325. package/dist/docs/~demos/accordion-demo-inline/index.html +15 -0
  326. package/dist/docs/~demos/accordion-demo-mutisteps/index.html +15 -0
  327. package/dist/docs/~demos/accordion-demo-thinking/index.html +15 -0
  328. package/dist/docs/~demos/attachments-demo-files/index.html +15 -0
  329. package/dist/docs/~demos/bubble-demo-basic/index.html +15 -0
  330. package/dist/docs/~demos/bubble-demo-havestopped/index.html +15 -0
  331. package/dist/docs/~demos/bubble-demo-userwithfile/index.html +15 -0
  332. package/dist/docs/~demos/bubble-demo-userwithimage/index.html +15 -0
  333. package/dist/docs/~demos/bubble-demo-userwithnormal/index.html +15 -0
  334. package/dist/docs/~demos/bubble-demo-withavatar/index.html +15 -0
  335. package/dist/docs/~demos/bubble-demo-withcode/index.html +15 -0
  336. package/dist/docs/~demos/bubble-demo-witherror/index.html +15 -0
  337. package/dist/docs/~demos/bubble-demo-witherrordetail/index.html +15 -0
  338. package/dist/docs/~demos/bubble-demo-withimage/index.html +15 -0
  339. package/dist/docs/~demos/bubble-demo-withusage/index.html +15 -0
  340. package/dist/docs/~demos/bubble-demo-withwaitingmessage/index.html +15 -0
  341. package/dist/docs/~demos/components-bubble-list-demo-basic/index.html +15 -0
  342. package/dist/docs/~demos/components-footer-demo-basic/index.html +15 -0
  343. package/dist/docs/~demos/components-footer-demo-withusage/index.html +15 -0
  344. package/dist/docs/~demos/components-status-demo-basic/index.html +15 -0
  345. package/dist/docs/~demos/conversations-demo-basic/index.html +15 -0
  346. package/dist/docs/~demos/disclaimer-demo-demo/index.html +15 -0
  347. package/dist/docs/~demos/disclaimer-demo-withlink/index.html +15 -0
  348. package/dist/docs/~demos/docs-development-ag-ui-demo-with-copilotkit/index.html +15 -0
  349. package/dist/docs/~demos/docs-development-cards-demo-file/index.html +15 -0
  350. package/dist/docs/~demos/docs-development-cards-demo-footer/index.html +15 -0
  351. package/dist/docs/~demos/docs-development-cards-demo-image/index.html +15 -0
  352. package/dist/docs/~demos/docs-development-cards-demo-text/index.html +15 -0
  353. package/dist/docs/~demos/docs-development-custom-demo-custom/index.html +15 -0
  354. package/dist/docs/~demos/docs-templates-copilot-demo-copilot/index.html +15 -0
  355. package/dist/docs/~demos/docs-templates-native-demo-basic/index.html +15 -0
  356. package/dist/docs/~demos/docs-templates-voice-demo-demo/index.html +15 -0
  357. package/dist/docs/~demos/markdown-demo-citations/index.html +15 -0
  358. package/dist/docs/~demos/markdown-demo-cursor/index.html +15 -0
  359. package/dist/docs/~demos/markdown-demo-mathjax/index.html +15 -0
  360. package/dist/docs/~demos/markdown-demo-md/index.html +15 -0
  361. package/dist/docs/~demos/sender-demo-basic/index.html +15 -0
  362. package/dist/docs/~demos/sender-demo-disabled/index.html +15 -0
  363. package/dist/docs/~demos/sender-demo-loading/index.html +15 -0
  364. package/dist/docs/~demos/sender-demo-moreprefixaction/index.html +15 -0
  365. package/dist/docs/~demos/sender-demo-withfile/index.html +15 -0
  366. package/dist/docs/~demos/welcome-demo-demo0/index.html +15 -0
  367. package/dist/docs/~demos/welcome-demo-demo1/index.html +15 -0
  368. package/dist/docs/~demos/welcome-demo-demo2/index.html +15 -0
  369. package/dist/index.d.ts +26 -0
  370. package/dist/index.js +20 -0
  371. package/dist/index.less +1 -0
  372. package/dist/markdown/Citation.d.ts +16 -0
  373. package/dist/markdown/Citation.js +55 -0
  374. package/dist/markdown/CodeBlock.d.ts +6 -0
  375. package/dist/markdown/CodeBlock.js +88 -0
  376. package/dist/markdown/ImageOrVideo.d.ts +2 -0
  377. package/dist/markdown/ImageOrVideo.js +81 -0
  378. package/dist/markdown/Link.d.ts +3 -0
  379. package/dist/markdown/Link.js +28 -0
  380. package/dist/markdown/Markdown.d.ts +4 -0
  381. package/dist/markdown/Markdown.js +121 -0
  382. package/dist/markdown/cursor/Blur.d.ts +3 -0
  383. package/dist/markdown/cursor/Blur.js +7 -0
  384. package/dist/markdown/cursor/Dot.d.ts +3 -0
  385. package/dist/markdown/cursor/Dot.js +16 -0
  386. package/dist/markdown/cursor/Underline.d.ts +3 -0
  387. package/dist/markdown/cursor/Underline.js +7 -0
  388. package/dist/markdown/cursor/index.less +124 -0
  389. package/dist/markdown/hooks/index.d.ts +1 -0
  390. package/dist/markdown/hooks/index.js +49 -0
  391. package/dist/markdown/hooks/useTypedEffect.d.ts +6 -0
  392. package/dist/markdown/hooks/useTypedEffect.js +56 -0
  393. package/dist/markdown/index.d.ts +16 -0
  394. package/dist/markdown/index.js +37 -0
  395. package/dist/markdown/index.less +204 -0
  396. package/dist/markdown/plugins/footnote.d.ts +2 -0
  397. package/dist/markdown/plugins/footnote.js +89 -0
  398. package/dist/markdown/plugins/katexDir.d.ts +1 -0
  399. package/dist/markdown/plugins/katexDir.js +15 -0
  400. package/dist/markdown/rehype/fadeIn.d.ts +2 -0
  401. package/dist/markdown/rehype/fadeIn.js +43 -0
  402. package/dist/markdown/type.d.ts +46 -0
  403. package/dist/markdown/type.js +1 -0
  404. package/dist/markdown/utils.d.ts +22 -0
  405. package/dist/markdown/utils.js +125 -0
  406. package/dist/provider/CustomCardsProvider.d.ts +15 -0
  407. package/dist/provider/CustomCardsProvider.js +18 -0
  408. package/dist/provider/GlobalProvider.d.ts +5 -0
  409. package/dist/provider/GlobalProvider.js +11 -0
  410. package/dist/provider/index.d.ts +8 -0
  411. package/dist/provider/index.js +20 -0
  412. package/dist/provider/types.d.ts +8 -0
  413. package/dist/provider/types.js +1 -0
  414. package/dist/sender/SenderHeader.d.ts +19 -0
  415. package/dist/sender/SenderHeader.js +79 -0
  416. package/dist/sender/StopLoading.d.ts +5 -0
  417. package/dist/sender/StopLoading.js +20 -0
  418. package/dist/sender/components/ActionButton.d.ts +22 -0
  419. package/dist/sender/components/ActionButton.js +39 -0
  420. package/dist/sender/components/ClearButton.d.ts +4 -0
  421. package/dist/sender/components/ClearButton.js +13 -0
  422. package/dist/sender/components/LoadingButton.d.ts +4 -0
  423. package/dist/sender/components/LoadingButton.js +22 -0
  424. package/dist/sender/components/SendButton.d.ts +4 -0
  425. package/dist/sender/components/SendButton.js +14 -0
  426. package/dist/sender/components/SpeechButton/RecordingIcon.d.ts +5 -0
  427. package/dist/sender/components/SpeechButton/RecordingIcon.js +49 -0
  428. package/dist/sender/components/SpeechButton/index.d.ts +4 -0
  429. package/dist/sender/components/SpeechButton/index.js +30 -0
  430. package/dist/sender/index.d.ts +61 -0
  431. package/dist/sender/index.js +307 -0
  432. package/dist/sender/style/header.d.ts +4 -0
  433. package/dist/sender/style/header.js +46 -0
  434. package/dist/sender/style/index.d.ts +10 -0
  435. package/dist/sender/style/index.js +123 -0
  436. package/dist/sender/useSpeech.d.ts +6 -0
  437. package/dist/sender/useSpeech.js +114 -0
  438. package/dist/stream/index.d.ts +34 -0
  439. package/dist/stream/index.en-US.md.bk +50 -0
  440. package/dist/stream/index.js +197 -0
  441. package/dist/stream/index.zh-CN.md.bk +51 -0
  442. package/dist/theme/components.d.ts +10 -0
  443. package/dist/theme/components.js +1 -0
  444. package/dist/theme/cssinjs-utils.d.ts +14 -0
  445. package/dist/theme/cssinjs-utils.js +1 -0
  446. package/dist/theme/genStyleUtils.d.ts +28 -0
  447. package/dist/theme/genStyleUtils.js +49 -0
  448. package/dist/theme/useToken.d.ts +18 -0
  449. package/dist/theme/useToken.js +110 -0
  450. package/dist/version/index.d.ts +2 -0
  451. package/dist/version/index.js +2 -0
  452. package/dist/voice-chat/Recorder/index.d.ts +26 -0
  453. package/dist/voice-chat/Recorder/index.js +168 -0
  454. package/dist/voice-chat/VoiceChatProvider/context.d.ts +22 -0
  455. package/dist/voice-chat/VoiceChatProvider/context.js +3 -0
  456. package/dist/voice-chat/VoiceChatProvider/hooks/useChatState.d.ts +1 -0
  457. package/dist/voice-chat/VoiceChatProvider/hooks/useChatState.js +5 -0
  458. package/dist/voice-chat/VoiceChatProvider/hooks/useMessages.d.ts +8 -0
  459. package/dist/voice-chat/VoiceChatProvider/hooks/useMessages.js +31 -0
  460. package/dist/voice-chat/VoiceChatProvider/hooks/useRecorder.d.ts +5 -0
  461. package/dist/voice-chat/VoiceChatProvider/hooks/useRecorder.js +48 -0
  462. package/dist/voice-chat/VoiceChatProvider/hooks/useVoiceChat.d.ts +4 -0
  463. package/dist/voice-chat/VoiceChatProvider/hooks/useVoiceChat.js +10 -0
  464. package/dist/voice-chat/VoiceChatProvider/index.d.ts +9 -0
  465. package/dist/voice-chat/VoiceChatProvider/index.js +55 -0
  466. package/dist/voice-chat/VoiceChatService/index.d.ts +34 -0
  467. package/dist/voice-chat/VoiceChatService/index.js +209 -0
  468. package/dist/voice-chat/index.d.ts +2 -0
  469. package/dist/voice-chat/index.js +2 -0
  470. package/dist/voice-chat/types/index.d.ts +12 -0
  471. package/dist/voice-chat/types/index.js +4 -0
  472. package/dist/welcome/icon.d.ts +2 -0
  473. package/dist/welcome/icon.js +38 -0
  474. package/dist/welcome/index.d.ts +9 -0
  475. package/dist/welcome/index.js +57 -0
  476. package/package.json +117 -0
@@ -0,0 +1,137 @@
1
+ !(function(){var xl=Object.defineProperty,wl=Object.defineProperties;var Il=Object.getOwnPropertyDescriptors;var Mn=Object.getOwnPropertySymbols;var Y1=Object.prototype.hasOwnProperty,J1=Object.prototype.propertyIsEnumerable;var Ge=Math.pow,z1=(je,b,K)=>b in je?xl(je,b,{enumerable:!0,configurable:!0,writable:!0,value:K}):je[b]=K,Q1=(je,b)=>{for(var K in b||(b={}))Y1.call(b,K)&&z1(je,K,b[K]);if(Mn)for(var K of Mn(b))J1.call(b,K)&&z1(je,K,b[K]);return je},Z1=(je,b)=>wl(je,Il(b));var Ds=(je,b)=>{var K={};for(var l in je)Y1.call(je,l)&&b.indexOf(l)<0&&(K[l]=je[l]);if(je!=null&&Mn)for(var l of Mn(je))b.indexOf(l)<0&&J1.call(je,l)&&(K[l]=je[l]);return K};(self.webpackChunk_agentscope_ai_chat=self.webpackChunk_agentscope_ai_chat||[]).push([[6671],{37436:function(je,b,K){(function(l,e){e(b,K(10335),K(89285),K(50995))})(this,function(l,e,Ee,q){"use strict";class V{constructor({file:H,sourceRoot:Y}={}){this._names=new e.SetArray,this._sources=new e.SetArray,this._sourcesContent=[],this._mappings=[],this.file=H,this.sourceRoot=Y,this._ignoreList=new e.SetArray}}function r(G){return G}function w(G,H,Y,$,me,he,ie,L){return Ne(!1,G,H,Y,$,me,he,ie,L)}function le(G,H){return _e(!1,G,H)}const W=(G,H,Y,$,me,he,ie,L)=>Ne(!0,G,H,Y,$,me,he,ie,L),oe=(G,H)=>_e(!0,G,H);function ue(G,H,Y){const{_sources:$,_sourcesContent:me}=G,he=e.put($,H);me[he]=Y}function xe(G,H,Y=!0){const{_sources:$,_sourcesContent:me,_ignoreList:he}=G,ie=e.put($,H);ie===me.length&&(me[ie]=null),Y?e.put(he,ie):e.remove(he,ie)}function Re(G){const{_mappings:H,_sources:Y,_sourcesContent:$,_names:me,_ignoreList:he}=G;return te(H),{version:3,file:G.file||void 0,names:me.array,sourceRoot:G.sourceRoot||void 0,sources:Y.array,sourcesContent:$,mappings:H,ignoreList:he.array}}function B(G){const H=Re(G);return Object.assign(Object.assign({},H),{mappings:Ee.encode(H.mappings)})}function Le(G){const H=new q.TraceMap(G),Y=new V({file:H.file,sourceRoot:H.sourceRoot});return F(Y._names,H.names),F(Y._sources,H.sources),Y._sourcesContent=H.sourcesContent||H.sources.map(()=>null),Y._mappings=q.decodedMappings(H),H.ignoreList&&F(Y._ignoreList,H.ignoreList),Y}function ve(G){const H=[],{_mappings:Y,_sources:$,_names:me}=G;for(let he=0;he<Y.length;he++){const ie=Y[he];for(let L=0;L<ie.length;L++){const ce=ie[L],Me={line:he+1,column:ce[0]};let E,N,O;ce.length!==1&&(E=$.array[ce[1]],N={line:ce[2]+1,column:ce[3]},ce.length===5&&(O=me.array[ce[4]])),H.push({generated:Me,source:E,original:N,name:O})}}return H}function Ne(G,H,Y,$,me,he,ie,L,ce){const{_mappings:Me,_sources:E,_sourcesContent:N,_names:O}=H,D=Ue(Me,Y),Q=Xe(D,$);if(!me)return G&&d(D,Q)?void 0:ot(D,Q,[$]);const ae=e.put(E,me),_=L?e.put(O,L):-1;if(ae===N.length&&(N[ae]=ce!=null?ce:null),!(G&&C(D,Q,ae,he,ie,_)))return ot(D,Q,L?[$,ae,he,ie,_]:[$,ae,he,ie])}function Ue(G,H){for(let Y=G.length;Y<=H;Y++)G[Y]=[];return G[H]}function Xe(G,H){let Y=G.length;for(let $=Y-1;$>=0;Y=$--){const me=G[$];if(H>=me[0])break}return Y}function ot(G,H,Y){for(let $=G.length;$>H;$--)G[$]=G[$-1];G[H]=Y}function te(G){const{length:H}=G;let Y=H;for(let $=Y-1;$>=0&&!(G[$].length>0);Y=$,$--);Y<H&&(G.length=Y)}function F(G,H){for(let Y=0;Y<H.length;Y++)e.put(G,H[Y])}function d(G,H){return H===0?!0:G[H-1].length===1}function C(G,H,Y,$,me,he){if(H===0)return!1;const ie=G[H-1];return ie.length===1?!1:Y===ie[1]&&$===ie[2]&&me===ie[3]&&he===(ie.length===5?ie[4]:-1)}function _e(G,H,Y){const{generated:$,source:me,original:he,name:ie,content:L}=Y;return me?Ne(G,H,$.line-1,$.column,me,he.line-1,he.column,ie,L):Ne(G,H,$.line-1,$.column,null,null,null,null,null)}l.GenMapping=V,l.addMapping=le,l.addSegment=w,l.allMappings=ve,l.fromMap=Le,l.maybeAddMapping=oe,l.maybeAddSegment=W,l.setIgnore=xe,l.setSourceContent=ue,l.toDecodedMap=Re,l.toEncodedMap=B,Object.defineProperty(l,"__esModule",{value:!0})})},90326:function(je){(function(b,K){je.exports=K()})(this,function(){"use strict";const b=/^[\w+.-]+:\/\//,K=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,l=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function e(W){return b.test(W)}function Ee(W){return W.startsWith("//")}function q(W){return W.startsWith("/")}function z(W){return W.startsWith("file:")}function P(W){return/^[.?#]/.test(W)}function p(W){const oe=K.exec(W);return A(oe[1],oe[2]||"",oe[3],oe[4]||"",oe[5]||"/",oe[6]||"",oe[7]||"")}function m(W){const oe=l.exec(W),ue=oe[2];return A("file:","",oe[1]||"","",q(ue)?ue:"/"+ue,oe[3]||"",oe[4]||"")}function A(W,oe,ue,xe,Re,B,Le){return{scheme:W,user:oe,host:ue,port:xe,path:Re,query:B,hash:Le,type:7}}function S(W){if(Ee(W)){const ue=p("http:"+W);return ue.scheme="",ue.type=6,ue}if(q(W)){const ue=p("http://foo.com"+W);return ue.scheme="",ue.host="",ue.type=5,ue}if(z(W))return m(W);if(e(W))return p(W);const oe=p("http://foo.com/"+W);return oe.scheme="",oe.host="",oe.type=W?W.startsWith("?")?3:W.startsWith("#")?2:4:1,oe}function V(W){if(W.endsWith("/.."))return W;const oe=W.lastIndexOf("/");return W.slice(0,oe+1)}function r(W,oe){w(oe,oe.type),W.path==="/"?W.path=oe.path:W.path=V(oe.path)+W.path}function w(W,oe){const ue=oe<=4,xe=W.path.split("/");let Re=1,B=0,Le=!1;for(let Ne=1;Ne<xe.length;Ne++){const Ue=xe[Ne];if(!Ue){Le=!0;continue}if(Le=!1,Ue!=="."){if(Ue===".."){B?(Le=!0,B--,Re--):ue&&(xe[Re++]=Ue);continue}xe[Re++]=Ue,B++}}let ve="";for(let Ne=1;Ne<Re;Ne++)ve+="/"+xe[Ne];(!ve||Le&&!ve.endsWith("/.."))&&(ve+="/"),W.path=ve}function le(W,oe){if(!W&&!oe)return"";const ue=S(W);let xe=ue.type;if(oe&&xe!==7){const B=S(oe),Le=B.type;switch(xe){case 1:ue.hash=B.hash;case 2:ue.query=B.query;case 3:case 4:r(ue,B);case 5:ue.user=B.user,ue.host=B.host,ue.port=B.port;case 6:ue.scheme=B.scheme}Le>xe&&(xe=Le)}w(ue,xe);const Re=ue.query+ue.hash;switch(xe){case 2:case 3:return Re;case 4:{const B=ue.path.slice(1);return B?P(oe||W)&&!P(B)?"./"+B+Re:B+Re:Re||"."}case 5:return ue.path+Re;default:return ue.scheme+"//"+ue.user+ue.host+ue.port+ue.path+Re}}return le})},10335:function(je,b){(function(K,l){l(b)})(this,function(K){"use strict";class l{constructor(){this._indexes={__proto__:null},this.array=[]}}function e(p){return p}function Ee(p,m){return p._indexes[m]}function q(p,m){const A=Ee(p,m);if(A!==void 0)return A;const{array:S,_indexes:V}=p,r=S.push(m);return V[m]=r-1}function z(p){const{array:m,_indexes:A}=p;if(m.length===0)return;const S=m.pop();A[S]=void 0}function P(p,m){const A=Ee(p,m);if(A===void 0)return;const{array:S,_indexes:V}=p;for(let r=A+1;r<S.length;r++){const w=S[r];S[r-1]=w,V[w]--}V[m]=void 0,S.pop()}K.SetArray=l,K.get=Ee,K.pop=z,K.put=q,K.remove=P,Object.defineProperty(K,"__esModule",{value:!0})})},89285:function(je,b,K){var l=K(692).lW;(function(e,Ee){Ee(b)})(this,function(e){"use strict";const z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P=new Uint8Array(64),p=new Uint8Array(128);for(let te=0;te<z.length;te++){const F=z.charCodeAt(te);P[te]=F,p[F]=te}function m(te,F){let d=0,C=0,_e=0;do{const H=te.next();_e=p[H],d|=(_e&31)<<C,C+=5}while(_e&32);const G=d&1;return d>>>=1,G&&(d=-2147483648|-d),F+d}function A(te,F,d){let C=F-d;C=C<0?-C<<1|1:C<<1;do{let _e=C&31;C>>>=5,C>0&&(_e|=32),te.write(P[_e])}while(C>0);return F}function S(te,F){return te.pos>=F?!1:te.peek()!==44}const V=1024*16,r=typeof TextDecoder!="undefined"?new TextDecoder:typeof l!="undefined"?{decode(te){return l.from(te.buffer,te.byteOffset,te.byteLength).toString()}}:{decode(te){let F="";for(let d=0;d<te.length;d++)F+=String.fromCharCode(te[d]);return F}};class w{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(V)}write(F){const{buffer:d}=this;d[this.pos++]=F,this.pos===V&&(this.out+=r.decode(d),this.pos=0)}flush(){const{buffer:F,out:d,pos:C}=this;return C>0?d+r.decode(F.subarray(0,C)):d}}class le{constructor(F){this.pos=0,this.buffer=F}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(F){const{buffer:d,pos:C}=this,_e=d.indexOf(F,C);return _e===-1?d.length:_e}}const W=[];function oe(te){const{length:F}=te,d=new le(te),C=[],_e=[];let G=0;for(;d.pos<F;d.pos++){G=m(d,G);const H=m(d,0);if(!S(d,F)){const L=_e.pop();L[2]=G,L[3]=H;continue}const Y=m(d,0),he=m(d,0)&1?[G,H,0,0,Y,m(d,0)]:[G,H,0,0,Y];let ie=W;if(S(d,F)){ie=[];do{const L=m(d,0);ie.push(L)}while(S(d,F))}he.vars=ie,C.push(he),_e.push(he)}return C}function ue(te){const F=new w;for(let d=0;d<te.length;)d=xe(te,d,F,[0]);return F.flush()}function xe(te,F,d,C){const _e=te[F],{0:G,1:H,2:Y,3:$,4:me,vars:he}=_e;F>0&&d.write(44),C[0]=A(d,G,C[0]),A(d,H,0),A(d,me,0);const ie=_e.length===6?1:0;A(d,ie,0),_e.length===6&&A(d,_e[5],0);for(const L of he)A(d,L,0);for(F++;F<te.length;){const L=te[F],{0:ce,1:Me}=L;if(ce>Y||ce===Y&&Me>=$)break;F=xe(te,F,d,C)}return d.write(44),C[0]=A(d,Y,C[0]),A(d,$,0),F}function Re(te){const{length:F}=te,d=new le(te),C=[],_e=[];let G=0,H=0,Y=0,$=0,me=0,he=0,ie=0,L=0;do{const ce=d.indexOf(";");let Me=0;for(;d.pos<ce;d.pos++){if(Me=m(d,Me),!S(d,ce)){const de=_e.pop();de[2]=G,de[3]=Me;continue}const E=m(d,0),N=E&1,O=E&2,D=E&4;let Q=null,ae=W,_;if(N){const de=m(d,H);Y=m(d,H===de?Y:0),H=de,_=[G,Me,0,0,de,Y]}else _=[G,Me,0,0];if(_.isScope=!!D,O){const de=$,Pe=me;$=m(d,$);const J=de===$;me=m(d,J?me:0),he=m(d,J&&Pe===me?he:0),Q=[$,me,he]}if(_.callsite=Q,S(d,ce)){ae=[];do{ie=G,L=Me;const de=m(d,0);let Pe;if(de<-1){Pe=[[m(d,0)]];for(let J=-1;J>de;J--){const se=ie;ie=m(d,ie),L=m(d,ie===se?L:0);const x=m(d,0);Pe.push([x,ie,L])}}else Pe=[[de]];ae.push(Pe)}while(S(d,ce))}_.bindings=ae,C.push(_),_e.push(_)}G++,d.pos=ce+1}while(d.pos<F);return C}function B(te){if(te.length===0)return"";const F=new w;for(let d=0;d<te.length;)d=Le(te,d,F,[0,0,0,0,0,0,0]);return F.flush()}function Le(te,F,d,C){const _e=te[F],{0:G,1:H,2:Y,3:$,isScope:me,callsite:he,bindings:ie}=_e;C[0]<G?(ve(d,C[0],G),C[0]=G,C[1]=0):F>0&&d.write(44),C[1]=A(d,_e[1],C[1]);const L=(_e.length===6?1:0)|(he?2:0)|(me?4:0);if(A(d,L,0),_e.length===6){const{4:ce,5:Me}=_e;ce!==C[2]&&(C[3]=0),C[2]=A(d,ce,C[2]),C[3]=A(d,Me,C[3])}if(he){const{0:ce,1:Me,2:E}=_e.callsite;ce!==C[4]?(C[5]=0,C[6]=0):Me!==C[5]&&(C[6]=0),C[4]=A(d,ce,C[4]),C[5]=A(d,Me,C[5]),C[6]=A(d,E,C[6])}if(ie)for(const ce of ie){ce.length>1&&A(d,-ce.length,0);const Me=ce[0][0];A(d,Me,0);let E=G,N=H;for(let O=1;O<ce.length;O++){const D=ce[O];E=A(d,D[1],E),N=A(d,D[2],N),A(d,D[0],0)}}for(F++;F<te.length;){const ce=te[F],{0:Me,1:E}=ce;if(Me>Y||Me===Y&&E>=$)break;F=Le(te,F,d,C)}return C[0]<Y?(ve(d,C[0],Y),C[0]=Y,C[1]=0):d.write(44),C[1]=A(d,$,C[1]),F}function ve(te,F,d){do te.write(59);while(++F<d)}function Ne(te){const{length:F}=te,d=new le(te),C=[];let _e=0,G=0,H=0,Y=0,$=0;do{const me=d.indexOf(";"),he=[];let ie=!0,L=0;for(_e=0;d.pos<me;){let ce;_e=m(d,_e),_e<L&&(ie=!1),L=_e,S(d,me)?(G=m(d,G),H=m(d,H),Y=m(d,Y),S(d,me)?($=m(d,$),ce=[_e,G,H,Y,$]):ce=[_e,G,H,Y]):ce=[_e],he.push(ce),d.pos++}ie||Ue(he),C.push(he),d.pos=me+1}while(d.pos<=F);return C}function Ue(te){te.sort(Xe)}function Xe(te,F){return te[0]-F[0]}function ot(te){const F=new w;let d=0,C=0,_e=0,G=0;for(let H=0;H<te.length;H++){const Y=te[H];if(H>0&&F.write(59),Y.length===0)continue;let $=0;for(let me=0;me<Y.length;me++){const he=Y[me];me>0&&F.write(44),$=A(F,he[0],$),he.length!==1&&(d=A(F,he[1],d),C=A(F,he[2],C),_e=A(F,he[3],_e),he.length!==4&&(G=A(F,he[4],G)))}}return F.flush()}e.decode=Ne,e.decodeGeneratedRanges=Re,e.decodeOriginalScopes=oe,e.encode=ot,e.encodeGeneratedRanges=B,e.encodeOriginalScopes=ue,Object.defineProperty(e,"__esModule",{value:!0})})},50995:function(je,b,K){(function(l,e){e(b,K(89285),K(90326))})(this,function(l,e,Ee){"use strict";function q(I,R){return R&&!R.endsWith("/")&&(R+="/"),Ee(I,R)}function z(I){if(!I)return"";const R=I.lastIndexOf("/");return I.slice(0,R+1)}const P=0,p=1,m=2,A=3,S=4,V=1,r=2;function w(I,R){const j=le(I,0);if(j===I.length)return I;R||(I=I.slice());for(let Z=j;Z<I.length;Z=le(I,Z+1))I[Z]=oe(I[Z],R);return I}function le(I,R){for(let j=R;j<I.length;j++)if(!W(I[j]))return j;return I.length}function W(I){for(let R=1;R<I.length;R++)if(I[R][P]<I[R-1][P])return!1;return!0}function oe(I,R){return R||(I=I.slice()),I.sort(ue)}function ue(I,R){return I[P]-R[P]}let xe=!1;function Re(I,R,j,Z){for(;j<=Z;){const ke=j+(Z-j>>1),pe=I[ke][P]-R;if(pe===0)return xe=!0,ke;pe<0?j=ke+1:Z=ke-1}return xe=!1,j-1}function B(I,R,j){for(let Z=j+1;Z<I.length&&I[Z][P]===R;j=Z++);return j}function Le(I,R,j){for(let Z=j-1;Z>=0&&I[Z][P]===R;j=Z--);return j}function ve(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Ne(I,R,j,Z){const{lastKey:ke,lastNeedle:pe,lastIndex:c}=j;let o=0,i=I.length-1;if(Z===ke){if(R===pe)return xe=c!==-1&&I[c][P]===R,c;R>=pe?o=c===-1?0:c:i=c}return j.lastKey=Z,j.lastNeedle=R,j.lastIndex=Re(I,R,o,i)}function Ue(I,R){const j=R.map(ot);for(let Z=0;Z<I.length;Z++){const ke=I[Z];for(let pe=0;pe<ke.length;pe++){const c=ke[pe];if(c.length===1)continue;const o=c[p],i=c[m],u=c[A],g=j[o],y=g[i]||(g[i]=[]),T=R[o];let ge=B(y,u,Ne(y,u,T,i));T.lastIndex=++ge,Xe(y,ge,[u,Z,c[P]])}}return j}function Xe(I,R,j){for(let Z=I.length;Z>R;Z--)I[Z]=I[Z-1];I[R]=j}function ot(){return{__proto__:null}}const te=function(I,R){const j=F(I);if(!("sections"in j))return new he(j,R);const Z=[],ke=[],pe=[],c=[],o=[];d(j,R,Z,ke,pe,c,o,0,0,1/0,1/0);const i={version:3,file:j.file,names:c,sources:ke,sourcesContent:pe,mappings:Z,ignoreList:o};return de(i)};function F(I){return typeof I=="string"?JSON.parse(I):I}function d(I,R,j,Z,ke,pe,c,o,i,u,g){const{sections:y}=I;for(let T=0;T<y.length;T++){const{map:ge,offset:De}=y[T];let Be=u,$e=g;if(T+1<y.length){const Fe=y[T+1].offset;Be=Math.min(u,o+Fe.line),Be===u?$e=Math.min(g,i+Fe.column):Be<u&&($e=i+Fe.column)}C(ge,R,j,Z,ke,pe,c,o+De.line,i+De.column,Be,$e)}}function C(I,R,j,Z,ke,pe,c,o,i,u,g){const y=F(I);if("sections"in y)return d(...arguments);const T=new he(y,R),ge=Z.length,De=pe.length,Be=ce(T),{resolvedSources:$e,sourcesContent:Fe,ignoreList:$t}=T;if(_e(Z,$e),_e(pe,T.names),Fe)_e(ke,Fe);else for(let it=0;it<$e.length;it++)ke.push(null);if($t)for(let it=0;it<$t.length;it++)c.push($t[it]+ge);for(let it=0;it<Be.length;it++){const Yt=o+it;if(Yt>u)return;const Jt=G(j,Yt),Oe=it===0?i:0,pn=Be[it];for(let Rt=0;Rt<pn.length;Rt++){const wt=pn[Rt],Pt=Oe+wt[P];if(Yt===u&&Pt>=g)return;if(wt.length===1){Jt.push([Pt]);continue}const mn=ge+wt[p],dn=wt[m],kn=wt[A];Jt.push(wt.length===4?[Pt,mn,dn,kn]:[Pt,mn,dn,kn,De+wt[S]])}}}function _e(I,R){for(let j=0;j<R.length;j++)I.push(R[j])}function G(I,R){for(let j=I.length;j<=R;j++)I[j]=[];return I[R]}const H="`line` must be greater than 0 (lines start at line 1)",Y="`column` must be greater than or equal to 0 (columns start at column 0)",$=-1,me=1;class he{constructor(R,j){const Z=typeof R=="string";if(!Z&&R._decodedMemo)return R;const ke=Z?JSON.parse(R):R,{version:pe,file:c,names:o,sourceRoot:i,sources:u,sourcesContent:g}=ke;this.version=pe,this.file=c,this.names=o||[],this.sourceRoot=i,this.sources=u,this.sourcesContent=g,this.ignoreList=ke.ignoreList||ke.x_google_ignoreList||void 0;const y=q(i||"",z(j));this.resolvedSources=u.map(ge=>q(ge||"",y));const{mappings:T}=ke;typeof T=="string"?(this._encoded=T,this._decoded=void 0):(this._encoded=void 0,this._decoded=w(T,Z)),this._decodedMemo=ve(),this._bySources=void 0,this._bySourceMemos=void 0}}function ie(I){return I}function L(I){var R,j;return(R=(j=I)._encoded)!==null&&R!==void 0?R:j._encoded=e.encode(I._decoded)}function ce(I){var R;return(R=I)._decoded||(R._decoded=e.decode(I._encoded))}function Me(I,R,j){const Z=ce(I);if(R>=Z.length)return null;const ke=Z[R],pe=h(ke,I._decodedMemo,R,j,me);return pe===-1?null:ke[pe]}function E(I,R){let{line:j,column:Z,bias:ke}=R;if(j--,j<0)throw new Error(H);if(Z<0)throw new Error(Y);const pe=ce(I);if(j>=pe.length)return x(null,null,null,null);const c=pe[j],o=h(c,I._decodedMemo,j,Z,ke||me);if(o===-1)return x(null,null,null,null);const i=c[o];if(i.length===1)return x(null,null,null,null);const{names:u,resolvedSources:g}=I;return x(g[i[p]],i[m]+1,i[A],i.length===5?u[i[S]]:null)}function N(I,R){const{source:j,line:Z,column:ke,bias:pe}=R;return pt(I,j,Z,ke,pe||me,!1)}function O(I,R){const{source:j,line:Z,column:ke,bias:pe}=R;return pt(I,j,Z,ke,pe||$,!0)}function D(I,R){const j=ce(I),{names:Z,resolvedSources:ke}=I;for(let pe=0;pe<j.length;pe++){const c=j[pe];for(let o=0;o<c.length;o++){const i=c[o],u=pe+1,g=i[0];let y=null,T=null,ge=null,De=null;i.length!==1&&(y=ke[i[1]],T=i[2]+1,ge=i[3]),i.length===5&&(De=Z[i[4]]),R({generatedLine:u,generatedColumn:g,source:y,originalLine:T,originalColumn:ge,name:De})}}}function Q(I,R){const{sources:j,resolvedSources:Z}=I;let ke=j.indexOf(R);return ke===-1&&(ke=Z.indexOf(R)),ke}function ae(I,R){const{sourcesContent:j}=I;if(j==null)return null;const Z=Q(I,R);return Z===-1?null:j[Z]}function _(I,R){const{ignoreList:j}=I;if(j==null)return!1;const Z=Q(I,R);return Z===-1?!1:j.includes(Z)}function de(I,R){const j=new he(se(I,[]),R);return j._decoded=I.mappings,j}function Pe(I){return se(I,ce(I))}function J(I){return se(I,L(I))}function se(I,R){return{version:I.version,file:I.file,names:I.names,sourceRoot:I.sourceRoot,sources:I.sources,sourcesContent:I.sourcesContent,mappings:R,ignoreList:I.ignoreList||I.x_google_ignoreList}}function x(I,R,j,Z){return{source:I,line:R,column:j,name:Z}}function qe(I,R){return{line:I,column:R}}function h(I,R,j,Z,ke){let pe=Ne(I,Z,R,j);return xe?pe=(ke===$?B:Le)(I,Z,pe):ke===$&&pe++,pe===-1||pe===I.length?-1:pe}function Ce(I,R,j,Z,ke){let pe=h(I,R,j,Z,me);if(!xe&&ke===$&&pe++,pe===-1||pe===I.length)return[];const c=xe?Z:I[pe][P];xe||(pe=Le(I,c,pe));const o=B(I,c,pe),i=[];for(;pe<=o;pe++){const u=I[pe];i.push(qe(u[V]+1,u[r]))}return i}function pt(I,R,j,Z,ke,pe){var c;if(j--,j<0)throw new Error(H);if(Z<0)throw new Error(Y);const{sources:o,resolvedSources:i}=I;let u=o.indexOf(R);if(u===-1&&(u=i.indexOf(R)),u===-1)return pe?[]:qe(null,null);const y=((c=I)._bySources||(c._bySources=Ue(ce(I),I._bySourceMemos=o.map(ve))))[u][j];if(y==null)return pe?[]:qe(null,null);const T=I._bySourceMemos[u];if(pe)return Ce(y,T,j,Z,ke);const ge=h(y,T,j,Z,ke);if(ge===-1)return qe(null,null);const De=y[ge];return qe(De[V]+1,De[r])}l.AnyMap=te,l.GREATEST_LOWER_BOUND=me,l.LEAST_UPPER_BOUND=$,l.TraceMap=he,l.allGeneratedPositionsFor=O,l.decodedMap=Pe,l.decodedMappings=ce,l.eachMapping=D,l.encodedMap=J,l.encodedMappings=L,l.generatedPositionFor=N,l.isIgnored=_,l.originalPositionFor=E,l.presortedDecodedMap=de,l.sourceContentFor=ae,l.traceSegment=Me})},86251:function(je,b){"use strict";b.byteLength=p,b.toByteArray=A,b.fromByteArray=r;for(var K=[],l=[],e=typeof Uint8Array!="undefined"?Uint8Array:Array,Ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",q=0,z=Ee.length;q<z;++q)K[q]=Ee[q],l[Ee.charCodeAt(q)]=q;l[45]=62,l[95]=63;function P(w){var le=w.length;if(le%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var W=w.indexOf("=");W===-1&&(W=le);var oe=W===le?0:4-W%4;return[W,oe]}function p(w){var le=P(w),W=le[0],oe=le[1];return(W+oe)*3/4-oe}function m(w,le,W){return(le+W)*3/4-W}function A(w){var le,W=P(w),oe=W[0],ue=W[1],xe=new e(m(w,oe,ue)),Re=0,B=ue>0?oe-4:oe,Le;for(Le=0;Le<B;Le+=4)le=l[w.charCodeAt(Le)]<<18|l[w.charCodeAt(Le+1)]<<12|l[w.charCodeAt(Le+2)]<<6|l[w.charCodeAt(Le+3)],xe[Re++]=le>>16&255,xe[Re++]=le>>8&255,xe[Re++]=le&255;return ue===2&&(le=l[w.charCodeAt(Le)]<<2|l[w.charCodeAt(Le+1)]>>4,xe[Re++]=le&255),ue===1&&(le=l[w.charCodeAt(Le)]<<10|l[w.charCodeAt(Le+1)]<<4|l[w.charCodeAt(Le+2)]>>2,xe[Re++]=le>>8&255,xe[Re++]=le&255),xe}function S(w){return K[w>>18&63]+K[w>>12&63]+K[w>>6&63]+K[w&63]}function V(w,le,W){for(var oe,ue=[],xe=le;xe<W;xe+=3)oe=(w[xe]<<16&16711680)+(w[xe+1]<<8&65280)+(w[xe+2]&255),ue.push(S(oe));return ue.join("")}function r(w){for(var le,W=w.length,oe=W%3,ue=[],xe=16383,Re=0,B=W-oe;Re<B;Re+=xe)ue.push(V(w,Re,Re+xe>B?B:Re+xe));return oe===1?(le=w[W-1],ue.push(K[le>>2]+K[le<<4&63]+"==")):oe===2&&(le=(w[W-2]<<8)+w[W-1],ue.push(K[le>>10]+K[le>>4&63]+K[le<<2&63]+"=")),ue.join("")}},692:function(je,b,K){"use strict";var l;const e=K(86251),Ee=K(67467),q=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;b.lW=m,l=Re,b.h2=50;const z=2147483647;l=z,m.TYPED_ARRAY_SUPPORT=P(),!m.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function P(){try{const c=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(c,o),c.foo()===42}catch(c){return!1}}Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}});function p(c){if(c>z)throw new RangeError('The value "'+c+'" is invalid for option "size"');const o=new Uint8Array(c);return Object.setPrototypeOf(o,m.prototype),o}function m(c,o,i){if(typeof c=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return r(c)}return A(c,o,i)}m.poolSize=8192;function A(c,o,i){if(typeof c=="string")return w(c,o);if(ArrayBuffer.isView(c))return W(c);if(c==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof c);if(R(c,ArrayBuffer)||c&&R(c.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(R(c,SharedArrayBuffer)||c&&R(c.buffer,SharedArrayBuffer)))return oe(c,o,i);if(typeof c=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const u=c.valueOf&&c.valueOf();if(u!=null&&u!==c)return m.from(u,o,i);const g=ue(c);if(g)return g;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof c[Symbol.toPrimitive]=="function")return m.from(c[Symbol.toPrimitive]("string"),o,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof c)}m.from=function(c,o,i){return A(c,o,i)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array);function S(c){if(typeof c!="number")throw new TypeError('"size" argument must be of type number');if(c<0)throw new RangeError('The value "'+c+'" is invalid for option "size"')}function V(c,o,i){return S(c),c<=0?p(c):o!==void 0?typeof i=="string"?p(c).fill(o,i):p(c).fill(o):p(c)}m.alloc=function(c,o,i){return V(c,o,i)};function r(c){return S(c),p(c<0?0:xe(c)|0)}m.allocUnsafe=function(c){return r(c)},m.allocUnsafeSlow=function(c){return r(c)};function w(c,o){if((typeof o!="string"||o==="")&&(o="utf8"),!m.isEncoding(o))throw new TypeError("Unknown encoding: "+o);const i=B(c,o)|0;let u=p(i);const g=u.write(c,o);return g!==i&&(u=u.slice(0,g)),u}function le(c){const o=c.length<0?0:xe(c.length)|0,i=p(o);for(let u=0;u<o;u+=1)i[u]=c[u]&255;return i}function W(c){if(R(c,Uint8Array)){const o=new Uint8Array(c);return oe(o.buffer,o.byteOffset,o.byteLength)}return le(c)}function oe(c,o,i){if(o<0||c.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(c.byteLength<o+(i||0))throw new RangeError('"length" is outside of buffer bounds');let u;return o===void 0&&i===void 0?u=new Uint8Array(c):i===void 0?u=new Uint8Array(c,o):u=new Uint8Array(c,o,i),Object.setPrototypeOf(u,m.prototype),u}function ue(c){if(m.isBuffer(c)){const o=xe(c.length)|0,i=p(o);return i.length===0||c.copy(i,0,0,o),i}if(c.length!==void 0)return typeof c.length!="number"||j(c.length)?p(0):le(c);if(c.type==="Buffer"&&Array.isArray(c.data))return le(c.data)}function xe(c){if(c>=z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+z.toString(16)+" bytes");return c|0}function Re(c){return+c!=c&&(c=0),m.alloc(+c)}m.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==m.prototype},m.compare=function(o,i){if(R(o,Uint8Array)&&(o=m.from(o,o.offset,o.byteLength)),R(i,Uint8Array)&&(i=m.from(i,i.offset,i.byteLength)),!m.isBuffer(o)||!m.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===i)return 0;let u=o.length,g=i.length;for(let y=0,T=Math.min(u,g);y<T;++y)if(o[y]!==i[y]){u=o[y],g=i[y];break}return u<g?-1:g<u?1:0},m.isEncoding=function(o){switch(String(o).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},m.concat=function(o,i){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return m.alloc(0);let u;if(i===void 0)for(i=0,u=0;u<o.length;++u)i+=o[u].length;const g=m.allocUnsafe(i);let y=0;for(u=0;u<o.length;++u){let T=o[u];if(R(T,Uint8Array))y+T.length>g.length?(m.isBuffer(T)||(T=m.from(T)),T.copy(g,y)):Uint8Array.prototype.set.call(g,T,y);else if(m.isBuffer(T))T.copy(g,y);else throw new TypeError('"list" argument must be an Array of Buffers');y+=T.length}return g};function B(c,o){if(m.isBuffer(c))return c.length;if(ArrayBuffer.isView(c)||R(c,ArrayBuffer))return c.byteLength;if(typeof c!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof c);const i=c.length,u=arguments.length>2&&arguments[2]===!0;if(!u&&i===0)return 0;let g=!1;for(;;)switch(o){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return qe(c).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return pt(c).length;default:if(g)return u?-1:qe(c).length;o=(""+o).toLowerCase(),g=!0}}m.byteLength=B;function Le(c,o,i){let u=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,o>>>=0,i<=o))return"";for(c||(c="utf8");;)switch(c){case"hex":return me(this,o,i);case"utf8":case"utf-8":return _e(this,o,i);case"ascii":return Y(this,o,i);case"latin1":case"binary":return $(this,o,i);case"base64":return C(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,o,i);default:if(u)throw new TypeError("Unknown encoding: "+c);c=(c+"").toLowerCase(),u=!0}}m.prototype._isBuffer=!0;function ve(c,o,i){const u=c[o];c[o]=c[i],c[i]=u}m.prototype.swap16=function(){const o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i=0;i<o;i+=2)ve(this,i,i+1);return this},m.prototype.swap32=function(){const o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let i=0;i<o;i+=4)ve(this,i,i+3),ve(this,i+1,i+2);return this},m.prototype.swap64=function(){const o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let i=0;i<o;i+=8)ve(this,i,i+7),ve(this,i+1,i+6),ve(this,i+2,i+5),ve(this,i+3,i+4);return this},m.prototype.toString=function(){const o=this.length;return o===0?"":arguments.length===0?_e(this,0,o):Le.apply(this,arguments)},m.prototype.toLocaleString=m.prototype.toString,m.prototype.equals=function(o){if(!m.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:m.compare(this,o)===0},m.prototype.inspect=function(){let o="";const i=b.h2;return o=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(o+=" ... "),"<Buffer "+o+">"},q&&(m.prototype[q]=m.prototype.inspect),m.prototype.compare=function(o,i,u,g,y){if(R(o,Uint8Array)&&(o=m.from(o,o.offset,o.byteLength)),!m.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(i===void 0&&(i=0),u===void 0&&(u=o?o.length:0),g===void 0&&(g=0),y===void 0&&(y=this.length),i<0||u>o.length||g<0||y>this.length)throw new RangeError("out of range index");if(g>=y&&i>=u)return 0;if(g>=y)return-1;if(i>=u)return 1;if(i>>>=0,u>>>=0,g>>>=0,y>>>=0,this===o)return 0;let T=y-g,ge=u-i;const De=Math.min(T,ge),Be=this.slice(g,y),$e=o.slice(i,u);for(let Fe=0;Fe<De;++Fe)if(Be[Fe]!==$e[Fe]){T=Be[Fe],ge=$e[Fe];break}return T<ge?-1:ge<T?1:0};function Ne(c,o,i,u,g){if(c.length===0)return-1;if(typeof i=="string"?(u=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,j(i)&&(i=g?0:c.length-1),i<0&&(i=c.length+i),i>=c.length){if(g)return-1;i=c.length-1}else if(i<0)if(g)i=0;else return-1;if(typeof o=="string"&&(o=m.from(o,u)),m.isBuffer(o))return o.length===0?-1:Ue(c,o,i,u,g);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?g?Uint8Array.prototype.indexOf.call(c,o,i):Uint8Array.prototype.lastIndexOf.call(c,o,i):Ue(c,[o],i,u,g);throw new TypeError("val must be string, number or Buffer")}function Ue(c,o,i,u,g){let y=1,T=c.length,ge=o.length;if(u!==void 0&&(u=String(u).toLowerCase(),u==="ucs2"||u==="ucs-2"||u==="utf16le"||u==="utf-16le")){if(c.length<2||o.length<2)return-1;y=2,T/=2,ge/=2,i/=2}function De($e,Fe){return y===1?$e[Fe]:$e.readUInt16BE(Fe*y)}let Be;if(g){let $e=-1;for(Be=i;Be<T;Be++)if(De(c,Be)===De(o,$e===-1?0:Be-$e)){if($e===-1&&($e=Be),Be-$e+1===ge)return $e*y}else $e!==-1&&(Be-=Be-$e),$e=-1}else for(i+ge>T&&(i=T-ge),Be=i;Be>=0;Be--){let $e=!0;for(let Fe=0;Fe<ge;Fe++)if(De(c,Be+Fe)!==De(o,Fe)){$e=!1;break}if($e)return Be}return-1}m.prototype.includes=function(o,i,u){return this.indexOf(o,i,u)!==-1},m.prototype.indexOf=function(o,i,u){return Ne(this,o,i,u,!0)},m.prototype.lastIndexOf=function(o,i,u){return Ne(this,o,i,u,!1)};function Xe(c,o,i,u){i=Number(i)||0;const g=c.length-i;u?(u=Number(u),u>g&&(u=g)):u=g;const y=o.length;u>y/2&&(u=y/2);let T;for(T=0;T<u;++T){const ge=parseInt(o.substr(T*2,2),16);if(j(ge))return T;c[i+T]=ge}return T}function ot(c,o,i,u){return I(qe(o,c.length-i),c,i,u)}function te(c,o,i,u){return I(h(o),c,i,u)}function F(c,o,i,u){return I(pt(o),c,i,u)}function d(c,o,i,u){return I(Ce(o,c.length-i),c,i,u)}m.prototype.write=function(o,i,u,g){if(i===void 0)g="utf8",u=this.length,i=0;else if(u===void 0&&typeof i=="string")g=i,u=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(u)?(u=u>>>0,g===void 0&&(g="utf8")):(g=u,u=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const y=this.length-i;if((u===void 0||u>y)&&(u=y),o.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");let T=!1;for(;;)switch(g){case"hex":return Xe(this,o,i,u);case"utf8":case"utf-8":return ot(this,o,i,u);case"ascii":case"latin1":case"binary":return te(this,o,i,u);case"base64":return F(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d(this,o,i,u);default:if(T)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),T=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(c,o,i){return o===0&&i===c.length?e.fromByteArray(c):e.fromByteArray(c.slice(o,i))}function _e(c,o,i){i=Math.min(c.length,i);const u=[];let g=o;for(;g<i;){const y=c[g];let T=null,ge=y>239?4:y>223?3:y>191?2:1;if(g+ge<=i){let De,Be,$e,Fe;switch(ge){case 1:y<128&&(T=y);break;case 2:De=c[g+1],(De&192)===128&&(Fe=(y&31)<<6|De&63,Fe>127&&(T=Fe));break;case 3:De=c[g+1],Be=c[g+2],(De&192)===128&&(Be&192)===128&&(Fe=(y&15)<<12|(De&63)<<6|Be&63,Fe>2047&&(Fe<55296||Fe>57343)&&(T=Fe));break;case 4:De=c[g+1],Be=c[g+2],$e=c[g+3],(De&192)===128&&(Be&192)===128&&($e&192)===128&&(Fe=(y&15)<<18|(De&63)<<12|(Be&63)<<6|$e&63,Fe>65535&&Fe<1114112&&(T=Fe))}}T===null?(T=65533,ge=1):T>65535&&(T-=65536,u.push(T>>>10&1023|55296),T=56320|T&1023),u.push(T),g+=ge}return H(u)}const G=4096;function H(c){const o=c.length;if(o<=G)return String.fromCharCode.apply(String,c);let i="",u=0;for(;u<o;)i+=String.fromCharCode.apply(String,c.slice(u,u+=G));return i}function Y(c,o,i){let u="";i=Math.min(c.length,i);for(let g=o;g<i;++g)u+=String.fromCharCode(c[g]&127);return u}function $(c,o,i){let u="";i=Math.min(c.length,i);for(let g=o;g<i;++g)u+=String.fromCharCode(c[g]);return u}function me(c,o,i){const u=c.length;(!o||o<0)&&(o=0),(!i||i<0||i>u)&&(i=u);let g="";for(let y=o;y<i;++y)g+=Z[c[y]];return g}function he(c,o,i){const u=c.slice(o,i);let g="";for(let y=0;y<u.length-1;y+=2)g+=String.fromCharCode(u[y]+u[y+1]*256);return g}m.prototype.slice=function(o,i){const u=this.length;o=~~o,i=i===void 0?u:~~i,o<0?(o+=u,o<0&&(o=0)):o>u&&(o=u),i<0?(i+=u,i<0&&(i=0)):i>u&&(i=u),i<o&&(i=o);const g=this.subarray(o,i);return Object.setPrototypeOf(g,m.prototype),g};function ie(c,o,i){if(c%1!==0||c<0)throw new RangeError("offset is not uint");if(c+o>i)throw new RangeError("Trying to access beyond buffer length")}m.prototype.readUintLE=m.prototype.readUIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||ie(o,i,this.length);let g=this[o],y=1,T=0;for(;++T<i&&(y*=256);)g+=this[o+T]*y;return g},m.prototype.readUintBE=m.prototype.readUIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||ie(o,i,this.length);let g=this[o+--i],y=1;for(;i>0&&(y*=256);)g+=this[o+--i]*y;return g},m.prototype.readUint8=m.prototype.readUInt8=function(o,i){return o=o>>>0,i||ie(o,1,this.length),this[o]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(o,i){return o=o>>>0,i||ie(o,2,this.length),this[o]|this[o+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(o,i){return o=o>>>0,i||ie(o,2,this.length),this[o]<<8|this[o+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(o,i){return o=o>>>0,i||ie(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(o,i){return o=o>>>0,i||ie(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])},m.prototype.readBigUInt64LE=ke(function(o){o=o>>>0,Pe(o,"offset");const i=this[o],u=this[o+7];(i===void 0||u===void 0)&&J(o,this.length-8);const g=i+this[++o]*Ge(2,8)+this[++o]*Ge(2,16)+this[++o]*Ge(2,24),y=this[++o]+this[++o]*Ge(2,8)+this[++o]*Ge(2,16)+u*Ge(2,24);return BigInt(g)+(BigInt(y)<<BigInt(32))}),m.prototype.readBigUInt64BE=ke(function(o){o=o>>>0,Pe(o,"offset");const i=this[o],u=this[o+7];(i===void 0||u===void 0)&&J(o,this.length-8);const g=i*Ge(2,24)+this[++o]*Ge(2,16)+this[++o]*Ge(2,8)+this[++o],y=this[++o]*Ge(2,24)+this[++o]*Ge(2,16)+this[++o]*Ge(2,8)+u;return(BigInt(g)<<BigInt(32))+BigInt(y)}),m.prototype.readIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||ie(o,i,this.length);let g=this[o],y=1,T=0;for(;++T<i&&(y*=256);)g+=this[o+T]*y;return y*=128,g>=y&&(g-=Math.pow(2,8*i)),g},m.prototype.readIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||ie(o,i,this.length);let g=i,y=1,T=this[o+--g];for(;g>0&&(y*=256);)T+=this[o+--g]*y;return y*=128,T>=y&&(T-=Math.pow(2,8*i)),T},m.prototype.readInt8=function(o,i){return o=o>>>0,i||ie(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]},m.prototype.readInt16LE=function(o,i){o=o>>>0,i||ie(o,2,this.length);const u=this[o]|this[o+1]<<8;return u&32768?u|4294901760:u},m.prototype.readInt16BE=function(o,i){o=o>>>0,i||ie(o,2,this.length);const u=this[o+1]|this[o]<<8;return u&32768?u|4294901760:u},m.prototype.readInt32LE=function(o,i){return o=o>>>0,i||ie(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24},m.prototype.readInt32BE=function(o,i){return o=o>>>0,i||ie(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]},m.prototype.readBigInt64LE=ke(function(o){o=o>>>0,Pe(o,"offset");const i=this[o],u=this[o+7];(i===void 0||u===void 0)&&J(o,this.length-8);const g=this[o+4]+this[o+5]*Ge(2,8)+this[o+6]*Ge(2,16)+(u<<24);return(BigInt(g)<<BigInt(32))+BigInt(i+this[++o]*Ge(2,8)+this[++o]*Ge(2,16)+this[++o]*Ge(2,24))}),m.prototype.readBigInt64BE=ke(function(o){o=o>>>0,Pe(o,"offset");const i=this[o],u=this[o+7];(i===void 0||u===void 0)&&J(o,this.length-8);const g=(i<<24)+this[++o]*Ge(2,16)+this[++o]*Ge(2,8)+this[++o];return(BigInt(g)<<BigInt(32))+BigInt(this[++o]*Ge(2,24)+this[++o]*Ge(2,16)+this[++o]*Ge(2,8)+u)}),m.prototype.readFloatLE=function(o,i){return o=o>>>0,i||ie(o,4,this.length),Ee.read(this,o,!0,23,4)},m.prototype.readFloatBE=function(o,i){return o=o>>>0,i||ie(o,4,this.length),Ee.read(this,o,!1,23,4)},m.prototype.readDoubleLE=function(o,i){return o=o>>>0,i||ie(o,8,this.length),Ee.read(this,o,!0,52,8)},m.prototype.readDoubleBE=function(o,i){return o=o>>>0,i||ie(o,8,this.length),Ee.read(this,o,!1,52,8)};function L(c,o,i,u,g,y){if(!m.isBuffer(c))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>g||o<y)throw new RangeError('"value" argument is out of bounds');if(i+u>c.length)throw new RangeError("Index out of range")}m.prototype.writeUintLE=m.prototype.writeUIntLE=function(o,i,u,g){if(o=+o,i=i>>>0,u=u>>>0,!g){const ge=Math.pow(2,8*u)-1;L(this,o,i,u,ge,0)}let y=1,T=0;for(this[i]=o&255;++T<u&&(y*=256);)this[i+T]=o/y&255;return i+u},m.prototype.writeUintBE=m.prototype.writeUIntBE=function(o,i,u,g){if(o=+o,i=i>>>0,u=u>>>0,!g){const ge=Math.pow(2,8*u)-1;L(this,o,i,u,ge,0)}let y=u-1,T=1;for(this[i+y]=o&255;--y>=0&&(T*=256);)this[i+y]=o/T&255;return i+u},m.prototype.writeUint8=m.prototype.writeUInt8=function(o,i,u){return o=+o,i=i>>>0,u||L(this,o,i,1,255,0),this[i]=o&255,i+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(o,i,u){return o=+o,i=i>>>0,u||L(this,o,i,2,65535,0),this[i]=o&255,this[i+1]=o>>>8,i+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(o,i,u){return o=+o,i=i>>>0,u||L(this,o,i,2,65535,0),this[i]=o>>>8,this[i+1]=o&255,i+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(o,i,u){return o=+o,i=i>>>0,u||L(this,o,i,4,4294967295,0),this[i+3]=o>>>24,this[i+2]=o>>>16,this[i+1]=o>>>8,this[i]=o&255,i+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(o,i,u){return o=+o,i=i>>>0,u||L(this,o,i,4,4294967295,0),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=o&255,i+4};function ce(c,o,i,u,g){de(o,u,g,c,i,7);let y=Number(o&BigInt(4294967295));c[i++]=y,y=y>>8,c[i++]=y,y=y>>8,c[i++]=y,y=y>>8,c[i++]=y;let T=Number(o>>BigInt(32)&BigInt(4294967295));return c[i++]=T,T=T>>8,c[i++]=T,T=T>>8,c[i++]=T,T=T>>8,c[i++]=T,i}function Me(c,o,i,u,g){de(o,u,g,c,i,7);let y=Number(o&BigInt(4294967295));c[i+7]=y,y=y>>8,c[i+6]=y,y=y>>8,c[i+5]=y,y=y>>8,c[i+4]=y;let T=Number(o>>BigInt(32)&BigInt(4294967295));return c[i+3]=T,T=T>>8,c[i+2]=T,T=T>>8,c[i+1]=T,T=T>>8,c[i]=T,i+8}m.prototype.writeBigUInt64LE=ke(function(o,i=0){return ce(this,o,i,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeBigUInt64BE=ke(function(o,i=0){return Me(this,o,i,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeIntLE=function(o,i,u,g){if(o=+o,i=i>>>0,!g){const De=Math.pow(2,8*u-1);L(this,o,i,u,De-1,-De)}let y=0,T=1,ge=0;for(this[i]=o&255;++y<u&&(T*=256);)o<0&&ge===0&&this[i+y-1]!==0&&(ge=1),this[i+y]=(o/T>>0)-ge&255;return i+u},m.prototype.writeIntBE=function(o,i,u,g){if(o=+o,i=i>>>0,!g){const De=Math.pow(2,8*u-1);L(this,o,i,u,De-1,-De)}let y=u-1,T=1,ge=0;for(this[i+y]=o&255;--y>=0&&(T*=256);)o<0&&ge===0&&this[i+y+1]!==0&&(ge=1),this[i+y]=(o/T>>0)-ge&255;return i+u},m.prototype.writeInt8=function(o,i,u){return o=+o,i=i>>>0,u||L(this,o,i,1,127,-128),o<0&&(o=255+o+1),this[i]=o&255,i+1},m.prototype.writeInt16LE=function(o,i,u){return o=+o,i=i>>>0,u||L(this,o,i,2,32767,-32768),this[i]=o&255,this[i+1]=o>>>8,i+2},m.prototype.writeInt16BE=function(o,i,u){return o=+o,i=i>>>0,u||L(this,o,i,2,32767,-32768),this[i]=o>>>8,this[i+1]=o&255,i+2},m.prototype.writeInt32LE=function(o,i,u){return o=+o,i=i>>>0,u||L(this,o,i,4,2147483647,-2147483648),this[i]=o&255,this[i+1]=o>>>8,this[i+2]=o>>>16,this[i+3]=o>>>24,i+4},m.prototype.writeInt32BE=function(o,i,u){return o=+o,i=i>>>0,u||L(this,o,i,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=o&255,i+4},m.prototype.writeBigInt64LE=ke(function(o,i=0){return ce(this,o,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeBigInt64BE=ke(function(o,i=0){return Me(this,o,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function E(c,o,i,u,g,y){if(i+u>c.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function N(c,o,i,u,g){return o=+o,i=i>>>0,g||E(c,o,i,4,34028234663852886e22,-34028234663852886e22),Ee.write(c,o,i,u,23,4),i+4}m.prototype.writeFloatLE=function(o,i,u){return N(this,o,i,!0,u)},m.prototype.writeFloatBE=function(o,i,u){return N(this,o,i,!1,u)};function O(c,o,i,u,g){return o=+o,i=i>>>0,g||E(c,o,i,8,17976931348623157e292,-17976931348623157e292),Ee.write(c,o,i,u,52,8),i+8}m.prototype.writeDoubleLE=function(o,i,u){return O(this,o,i,!0,u)},m.prototype.writeDoubleBE=function(o,i,u){return O(this,o,i,!1,u)},m.prototype.copy=function(o,i,u,g){if(!m.isBuffer(o))throw new TypeError("argument should be a Buffer");if(u||(u=0),!g&&g!==0&&(g=this.length),i>=o.length&&(i=o.length),i||(i=0),g>0&&g<u&&(g=u),g===u||o.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),o.length-i<g-u&&(g=o.length-i+u);const y=g-u;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,u,g):Uint8Array.prototype.set.call(o,this.subarray(u,g),i),y},m.prototype.fill=function(o,i,u,g){if(typeof o=="string"){if(typeof i=="string"?(g=i,i=0,u=this.length):typeof u=="string"&&(g=u,u=this.length),g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!m.isEncoding(g))throw new TypeError("Unknown encoding: "+g);if(o.length===1){const T=o.charCodeAt(0);(g==="utf8"&&T<128||g==="latin1")&&(o=T)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(i<0||this.length<i||this.length<u)throw new RangeError("Out of range index");if(u<=i)return this;i=i>>>0,u=u===void 0?this.length:u>>>0,o||(o=0);let y;if(typeof o=="number")for(y=i;y<u;++y)this[y]=o;else{const T=m.isBuffer(o)?o:m.from(o,g),ge=T.length;if(ge===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(y=0;y<u-i;++y)this[y+i]=T[y%ge]}return this};const D={};function Q(c,o,i){D[c]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:o.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${c}]`,this.stack,delete this.name}get code(){return c}set code(g){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:g,writable:!0})}toString(){return`${this.name} [${c}]: ${this.message}`}}}Q("ERR_BUFFER_OUT_OF_BOUNDS",function(c){return c?`${c} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Q("ERR_INVALID_ARG_TYPE",function(c,o){return`The "${c}" argument must be of type number. Received type ${typeof o}`},TypeError),Q("ERR_OUT_OF_RANGE",function(c,o,i){let u=`The value of "${c}" is out of range.`,g=i;return Number.isInteger(i)&&Math.abs(i)>Ge(2,32)?g=ae(String(i)):typeof i=="bigint"&&(g=String(i),(i>Ge(BigInt(2),BigInt(32))||i<-Ge(BigInt(2),BigInt(32)))&&(g=ae(g)),g+="n"),u+=` It must be ${o}. Received ${g}`,u},RangeError);function ae(c){let o="",i=c.length;const u=c[0]==="-"?1:0;for(;i>=u+4;i-=3)o=`_${c.slice(i-3,i)}${o}`;return`${c.slice(0,i)}${o}`}function _(c,o,i){Pe(o,"offset"),(c[o]===void 0||c[o+i]===void 0)&&J(o,c.length-(i+1))}function de(c,o,i,u,g,y){if(c>i||c<o){const T=typeof o=="bigint"?"n":"";let ge;throw y>3?o===0||o===BigInt(0)?ge=`>= 0${T} and < 2${T} ** ${(y+1)*8}${T}`:ge=`>= -(2${T} ** ${(y+1)*8-1}${T}) and < 2 ** ${(y+1)*8-1}${T}`:ge=`>= ${o}${T} and <= ${i}${T}`,new D.ERR_OUT_OF_RANGE("value",ge,c)}_(u,g,y)}function Pe(c,o){if(typeof c!="number")throw new D.ERR_INVALID_ARG_TYPE(o,"number",c)}function J(c,o,i){throw Math.floor(c)!==c?(Pe(c,i),new D.ERR_OUT_OF_RANGE(i||"offset","an integer",c)):o<0?new D.ERR_BUFFER_OUT_OF_BOUNDS:new D.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${o}`,c)}const se=/[^+/0-9A-Za-z-_]/g;function x(c){if(c=c.split("=")[0],c=c.trim().replace(se,""),c.length<2)return"";for(;c.length%4!==0;)c=c+"=";return c}function qe(c,o){o=o||1/0;let i;const u=c.length;let g=null;const y=[];for(let T=0;T<u;++T){if(i=c.charCodeAt(T),i>55295&&i<57344){if(!g){if(i>56319){(o-=3)>-1&&y.push(239,191,189);continue}else if(T+1===u){(o-=3)>-1&&y.push(239,191,189);continue}g=i;continue}if(i<56320){(o-=3)>-1&&y.push(239,191,189),g=i;continue}i=(g-55296<<10|i-56320)+65536}else g&&(o-=3)>-1&&y.push(239,191,189);if(g=null,i<128){if((o-=1)<0)break;y.push(i)}else if(i<2048){if((o-=2)<0)break;y.push(i>>6|192,i&63|128)}else if(i<65536){if((o-=3)<0)break;y.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((o-=4)<0)break;y.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return y}function h(c){const o=[];for(let i=0;i<c.length;++i)o.push(c.charCodeAt(i)&255);return o}function Ce(c,o){let i,u,g;const y=[];for(let T=0;T<c.length&&!((o-=2)<0);++T)i=c.charCodeAt(T),u=i>>8,g=i%256,y.push(g),y.push(u);return y}function pt(c){return e.toByteArray(x(c))}function I(c,o,i,u){let g;for(g=0;g<u&&!(g+i>=o.length||g>=c.length);++g)o[g+i]=c[g];return g}function R(c,o){return c instanceof o||c!=null&&c.constructor!=null&&c.constructor.name!=null&&c.constructor.name===o.name}function j(c){return c!==c}const Z=function(){const c="0123456789abcdef",o=new Array(256);for(let i=0;i<16;++i){const u=i*16;for(let g=0;g<16;++g)o[u+g]=c[i]+c[g]}return o}();function ke(c){return typeof BigInt=="undefined"?pe:c}function pe(){throw new Error("BigInt not supported")}},46671:function(je,b,K){"use strict";K.r(b),K.d(b,{default:function(){return rl}});var l;(function(t){t[t.NONE=0]="NONE";const s=1;t[t._abstract=s]="_abstract";const a=s+1;t[t._accessor=a]="_accessor";const f=a+1;t[t._as=f]="_as";const k=f+1;t[t._assert=k]="_assert";const v=k+1;t[t._asserts=v]="_asserts";const U=v+1;t[t._async=U]="_async";const ne=U+1;t[t._await=ne]="_await";const fe=ne+1;t[t._checks=fe]="_checks";const Ae=fe+1;t[t._constructor=Ae]="_constructor";const we=Ae+1;t[t._declare=we]="_declare";const re=we+1;t[t._enum=re]="_enum";const Te=re+1;t[t._exports=Te]="_exports";const Ve=Te+1;t[t._from=Ve]="_from";const nt=Ve+1;t[t._get=nt]="_get";const Qe=nt+1;t[t._global=Qe]="_global";const rt=Qe+1;t[t._implements=rt]="_implements";const et=rt+1;t[t._infer=et]="_infer";const ft=et+1;t[t._interface=ft]="_interface";const tt=ft+1;t[t._is=tt]="_is";const Nt=tt+1;t[t._keyof=Nt]="_keyof";const bt=Nt+1;t[t._mixins=bt]="_mixins";const Ct=bt+1;t[t._module=Ct]="_module";const _t=Ct+1;t[t._namespace=_t]="_namespace";const yt=_t+1;t[t._of=yt]="_of";const xt=yt+1;t[t._opaque=xt]="_opaque";const Tt=xt+1;t[t._out=Tt]="_out";const ee=Tt+1;t[t._override=ee]="_override";const M=ee+1;t[t._private=M]="_private";const X=M+1;t[t._protected=X]="_protected";const ye=X+1;t[t._proto=ye]="_proto";const Se=ye+1;t[t._public=Se]="_public";const Ie=Se+1;t[t._readonly=Ie]="_readonly";const He=Ie+1;t[t._require=He]="_require";const Ye=He+1;t[t._satisfies=Ye]="_satisfies";const Je=Ye+1;t[t._set=Je]="_set";const ct=Je+1;t[t._static=ct]="_static";const st=ct+1;t[t._symbol=st]="_symbol";const lt=st+1;t[t._type=lt]="_type";const zt=lt+1;t[t._unique=zt]="_unique";const fn=zt+1;t[t._using=fn]="_using"})(l||(l={}));var e;(function(t){t[t.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const s=16;t[t.IS_KEYWORD=s]="IS_KEYWORD";const a=32;t[t.IS_ASSIGN=a]="IS_ASSIGN";const f=64;t[t.IS_RIGHT_ASSOCIATIVE=f]="IS_RIGHT_ASSOCIATIVE";const k=128;t[t.IS_PREFIX=k]="IS_PREFIX";const v=256;t[t.IS_POSTFIX=v]="IS_POSTFIX";const U=512;t[t.IS_EXPRESSION_START=U]="IS_EXPRESSION_START";const ne=512;t[t.num=ne]="num";const fe=1536;t[t.bigint=fe]="bigint";const Ae=2560;t[t.decimal=Ae]="decimal";const we=3584;t[t.regexp=we]="regexp";const re=4608;t[t.string=re]="string";const Te=5632;t[t.name=Te]="name";const Ve=6144;t[t.eof=Ve]="eof";const nt=7680;t[t.bracketL=nt]="bracketL";const Qe=8192;t[t.bracketR=Qe]="bracketR";const rt=9728;t[t.braceL=rt]="braceL";const et=10752;t[t.braceBarL=et]="braceBarL";const ft=11264;t[t.braceR=ft]="braceR";const tt=12288;t[t.braceBarR=tt]="braceBarR";const Nt=13824;t[t.parenL=Nt]="parenL";const bt=14336;t[t.parenR=bt]="parenR";const Ct=15360;t[t.comma=Ct]="comma";const _t=16384;t[t.semi=_t]="semi";const yt=17408;t[t.colon=yt]="colon";const xt=18432;t[t.doubleColon=xt]="doubleColon";const Tt=19456;t[t.dot=Tt]="dot";const ee=20480;t[t.question=ee]="question";const M=21504;t[t.questionDot=M]="questionDot";const X=22528;t[t.arrow=X]="arrow";const ye=23552;t[t.template=ye]="template";const Se=24576;t[t.ellipsis=Se]="ellipsis";const Ie=25600;t[t.backQuote=Ie]="backQuote";const He=27136;t[t.dollarBraceL=He]="dollarBraceL";const Ye=27648;t[t.at=Ye]="at";const Je=29184;t[t.hash=Je]="hash";const ct=29728;t[t.eq=ct]="eq";const st=30752;t[t.assign=st]="assign";const lt=32640;t[t.preIncDec=lt]="preIncDec";const zt=33664;t[t.postIncDec=zt]="postIncDec";const fn=34432;t[t.bang=fn]="bang";const Ar=35456;t[t.tilde=Ar]="tilde";const Sr=35841;t[t.pipeline=Sr]="pipeline";const vr=36866;t[t.nullishCoalescing=vr]="nullishCoalescing";const Nr=37890;t[t.logicalOR=Nr]="logicalOR";const Cr=38915;t[t.logicalAND=Cr]="logicalAND";const Rr=39940;t[t.bitwiseOR=Rr]="bitwiseOR";const Pr=40965;t[t.bitwiseXOR=Pr]="bitwiseXOR";const Lr=41990;t[t.bitwiseAND=Lr]="bitwiseAND";const Fr=43015;t[t.equality=Fr]="equality";const Dr=44040;t[t.lessThan=Dr]="lessThan";const Br=45064;t[t.greaterThan=Br]="greaterThan";const Or=46088;t[t.relationalOrEqual=Or]="relationalOrEqual";const Mr=47113;t[t.bitShiftL=Mr]="bitShiftL";const jr=48137;t[t.bitShiftR=jr]="bitShiftR";const qr=49802;t[t.plus=qr]="plus";const $r=50826;t[t.minus=$r]="minus";const Ur=51723;t[t.modulo=Ur]="modulo";const Vr=52235;t[t.star=Vr]="star";const Wr=53259;t[t.slash=Wr]="slash";const Hr=54348;t[t.exponent=Hr]="exponent";const Gr=55296;t[t.jsxName=Gr]="jsxName";const Xr=56320;t[t.jsxText=Xr]="jsxText";const zr=57344;t[t.jsxEmptyText=zr]="jsxEmptyText";const Yr=58880;t[t.jsxTagStart=Yr]="jsxTagStart";const Jr=59392;t[t.jsxTagEnd=Jr]="jsxTagEnd";const Qr=60928;t[t.typeParameterStart=Qr]="typeParameterStart";const Zr=61440;t[t.nonNullAssertion=Zr]="nonNullAssertion";const Kr=62480;t[t._break=Kr]="_break";const es=63504;t[t._case=es]="_case";const ts=64528;t[t._catch=ts]="_catch";const ns=65552;t[t._continue=ns]="_continue";const rs=66576;t[t._debugger=rs]="_debugger";const ss=67600;t[t._default=ss]="_default";const os=68624;t[t._do=os]="_do";const is=69648;t[t._else=is]="_else";const as=70672;t[t._finally=as]="_finally";const cs=71696;t[t._for=cs]="_for";const ls=73232;t[t._function=ls]="_function";const us=73744;t[t._if=us]="_if";const hs=74768;t[t._return=hs]="_return";const fs=75792;t[t._switch=fs]="_switch";const ps=77456;t[t._throw=ps]="_throw";const ms=77840;t[t._try=ms]="_try";const ds=78864;t[t._var=ds]="_var";const ks=79888;t[t._let=ks]="_let";const gs=80912;t[t._const=gs]="_const";const _s=81936;t[t._while=_s]="_while";const ys=82960;t[t._with=ys]="_with";const xs=84496;t[t._new=xs]="_new";const ws=85520;t[t._this=ws]="_this";const Is=86544;t[t._super=Is]="_super";const bs=87568;t[t._class=bs]="_class";const Ts=88080;t[t._extends=Ts]="_extends";const Es=89104;t[t._export=Es]="_export";const As=90640;t[t._import=As]="_import";const Ss=91664;t[t._yield=Ss]="_yield";const vs=92688;t[t._null=vs]="_null";const Ns=93712;t[t._true=Ns]="_true";const Cs=94736;t[t._false=Cs]="_false";const Rs=95256;t[t._in=Rs]="_in";const Ps=96280;t[t._instanceof=Ps]="_instanceof";const Ls=97936;t[t._typeof=Ls]="_typeof";const Fs=98960;t[t._void=Fs]="_void";const sl=99984;t[t._delete=sl]="_delete";const ol=100880;t[t._async=ol]="_async";const il=101904;t[t._get=il]="_get";const al=102928;t[t._set=al]="_set";const cl=103952;t[t._declare=cl]="_declare";const ll=104976;t[t._readonly=ll]="_readonly";const ul=106e3;t[t._abstract=ul]="_abstract";const hl=107024;t[t._static=hl]="_static";const fl=107536;t[t._public=fl]="_public";const pl=108560;t[t._private=pl]="_private";const ml=109584;t[t._protected=ml]="_protected";const dl=110608;t[t._override=dl]="_override";const kl=112144;t[t._as=kl]="_as";const gl=113168;t[t._enum=gl]="_enum";const _l=114192;t[t._type=_l]="_type";const yl=115216;t[t._implements=yl]="_implements"})(e||(e={}));function Ee(t){switch(t){case e.num:return"num";case e.bigint:return"bigint";case e.decimal:return"decimal";case e.regexp:return"regexp";case e.string:return"string";case e.name:return"name";case e.eof:return"eof";case e.bracketL:return"[";case e.bracketR:return"]";case e.braceL:return"{";case e.braceBarL:return"{|";case e.braceR:return"}";case e.braceBarR:return"|}";case e.parenL:return"(";case e.parenR:return")";case e.comma:return",";case e.semi:return";";case e.colon:return":";case e.doubleColon:return"::";case e.dot:return".";case e.question:return"?";case e.questionDot:return"?.";case e.arrow:return"=>";case e.template:return"template";case e.ellipsis:return"...";case e.backQuote:return"`";case e.dollarBraceL:return"${";case e.at:return"@";case e.hash:return"#";case e.eq:return"=";case e.assign:return"_=";case e.preIncDec:return"++/--";case e.postIncDec:return"++/--";case e.bang:return"!";case e.tilde:return"~";case e.pipeline:return"|>";case e.nullishCoalescing:return"??";case e.logicalOR:return"||";case e.logicalAND:return"&&";case e.bitwiseOR:return"|";case e.bitwiseXOR:return"^";case e.bitwiseAND:return"&";case e.equality:return"==/!=";case e.lessThan:return"<";case e.greaterThan:return">";case e.relationalOrEqual:return"<=/>=";case e.bitShiftL:return"<<";case e.bitShiftR:return">>/>>>";case e.plus:return"+";case e.minus:return"-";case e.modulo:return"%";case e.star:return"*";case e.slash:return"/";case e.exponent:return"**";case e.jsxName:return"jsxName";case e.jsxText:return"jsxText";case e.jsxEmptyText:return"jsxEmptyText";case e.jsxTagStart:return"jsxTagStart";case e.jsxTagEnd:return"jsxTagEnd";case e.typeParameterStart:return"typeParameterStart";case e.nonNullAssertion:return"nonNullAssertion";case e._break:return"break";case e._case:return"case";case e._catch:return"catch";case e._continue:return"continue";case e._debugger:return"debugger";case e._default:return"default";case e._do:return"do";case e._else:return"else";case e._finally:return"finally";case e._for:return"for";case e._function:return"function";case e._if:return"if";case e._return:return"return";case e._switch:return"switch";case e._throw:return"throw";case e._try:return"try";case e._var:return"var";case e._let:return"let";case e._const:return"const";case e._while:return"while";case e._with:return"with";case e._new:return"new";case e._this:return"this";case e._super:return"super";case e._class:return"class";case e._extends:return"extends";case e._export:return"export";case e._import:return"import";case e._yield:return"yield";case e._null:return"null";case e._true:return"true";case e._false:return"false";case e._in:return"in";case e._instanceof:return"instanceof";case e._typeof:return"typeof";case e._void:return"void";case e._delete:return"delete";case e._async:return"async";case e._get:return"get";case e._set:return"set";case e._declare:return"declare";case e._readonly:return"readonly";case e._abstract:return"abstract";case e._static:return"static";case e._public:return"public";case e._private:return"private";case e._protected:return"protected";case e._override:return"override";case e._as:return"as";case e._enum:return"enum";case e._type:return"type";case e._implements:return"implements";default:return""}}class q{constructor(n,s,a){this.startTokenIndex=n,this.endTokenIndex=s,this.isFunctionScope=a}}class z{constructor(n,s,a,f,k,v,U,ne,fe,Ae,we,re,Te){this.potentialArrowAt=n,this.noAnonFunctionType=s,this.inDisallowConditionalTypesContext=a,this.tokensLength=f,this.scopesLength=k,this.pos=v,this.type=U,this.contextualKeyword=ne,this.start=fe,this.end=Ae,this.isType=we,this.scopeDepth=re,this.error=Te}}class P{constructor(){P.prototype.__init.call(this),P.prototype.__init2.call(this),P.prototype.__init3.call(this),P.prototype.__init4.call(this),P.prototype.__init5.call(this),P.prototype.__init6.call(this),P.prototype.__init7.call(this),P.prototype.__init8.call(this),P.prototype.__init9.call(this),P.prototype.__init10.call(this),P.prototype.__init11.call(this),P.prototype.__init12.call(this),P.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=e.eof}__init8(){this.contextualKeyword=l.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new z(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(n){this.potentialArrowAt=n.potentialArrowAt,this.noAnonFunctionType=n.noAnonFunctionType,this.inDisallowConditionalTypesContext=n.inDisallowConditionalTypesContext,this.tokens.length=n.tokensLength,this.scopes.length=n.scopesLength,this.pos=n.pos,this.type=n.type,this.contextualKeyword=n.contextualKeyword,this.start=n.start,this.end=n.end,this.isType=n.isType,this.scopeDepth=n.scopeDepth,this.error=n.error}}var p;(function(t){t[t.backSpace=8]="backSpace";const s=10;t[t.lineFeed=s]="lineFeed";const a=9;t[t.tab=a]="tab";const f=13;t[t.carriageReturn=f]="carriageReturn";const k=14;t[t.shiftOut=k]="shiftOut";const v=32;t[t.space=v]="space";const U=33;t[t.exclamationMark=U]="exclamationMark";const ne=34;t[t.quotationMark=ne]="quotationMark";const fe=35;t[t.numberSign=fe]="numberSign";const Ae=36;t[t.dollarSign=Ae]="dollarSign";const we=37;t[t.percentSign=we]="percentSign";const re=38;t[t.ampersand=re]="ampersand";const Te=39;t[t.apostrophe=Te]="apostrophe";const Ve=40;t[t.leftParenthesis=Ve]="leftParenthesis";const nt=41;t[t.rightParenthesis=nt]="rightParenthesis";const Qe=42;t[t.asterisk=Qe]="asterisk";const rt=43;t[t.plusSign=rt]="plusSign";const et=44;t[t.comma=et]="comma";const ft=45;t[t.dash=ft]="dash";const tt=46;t[t.dot=tt]="dot";const Nt=47;t[t.slash=Nt]="slash";const bt=48;t[t.digit0=bt]="digit0";const Ct=49;t[t.digit1=Ct]="digit1";const _t=50;t[t.digit2=_t]="digit2";const yt=51;t[t.digit3=yt]="digit3";const xt=52;t[t.digit4=xt]="digit4";const Tt=53;t[t.digit5=Tt]="digit5";const ee=54;t[t.digit6=ee]="digit6";const M=55;t[t.digit7=M]="digit7";const X=56;t[t.digit8=X]="digit8";const ye=57;t[t.digit9=ye]="digit9";const Se=58;t[t.colon=Se]="colon";const Ie=59;t[t.semicolon=Ie]="semicolon";const He=60;t[t.lessThan=He]="lessThan";const Ye=61;t[t.equalsTo=Ye]="equalsTo";const Je=62;t[t.greaterThan=Je]="greaterThan";const ct=63;t[t.questionMark=ct]="questionMark";const st=64;t[t.atSign=st]="atSign";const lt=65;t[t.uppercaseA=lt]="uppercaseA";const zt=66;t[t.uppercaseB=zt]="uppercaseB";const fn=67;t[t.uppercaseC=fn]="uppercaseC";const Ar=68;t[t.uppercaseD=Ar]="uppercaseD";const Sr=69;t[t.uppercaseE=Sr]="uppercaseE";const vr=70;t[t.uppercaseF=vr]="uppercaseF";const Nr=71;t[t.uppercaseG=Nr]="uppercaseG";const Cr=72;t[t.uppercaseH=Cr]="uppercaseH";const Rr=73;t[t.uppercaseI=Rr]="uppercaseI";const Pr=74;t[t.uppercaseJ=Pr]="uppercaseJ";const Lr=75;t[t.uppercaseK=Lr]="uppercaseK";const Fr=76;t[t.uppercaseL=Fr]="uppercaseL";const Dr=77;t[t.uppercaseM=Dr]="uppercaseM";const Br=78;t[t.uppercaseN=Br]="uppercaseN";const Or=79;t[t.uppercaseO=Or]="uppercaseO";const Mr=80;t[t.uppercaseP=Mr]="uppercaseP";const jr=81;t[t.uppercaseQ=jr]="uppercaseQ";const qr=82;t[t.uppercaseR=qr]="uppercaseR";const $r=83;t[t.uppercaseS=$r]="uppercaseS";const Ur=84;t[t.uppercaseT=Ur]="uppercaseT";const Vr=85;t[t.uppercaseU=Vr]="uppercaseU";const Wr=86;t[t.uppercaseV=Wr]="uppercaseV";const Hr=87;t[t.uppercaseW=Hr]="uppercaseW";const Gr=88;t[t.uppercaseX=Gr]="uppercaseX";const Xr=89;t[t.uppercaseY=Xr]="uppercaseY";const zr=90;t[t.uppercaseZ=zr]="uppercaseZ";const Yr=91;t[t.leftSquareBracket=Yr]="leftSquareBracket";const Jr=92;t[t.backslash=Jr]="backslash";const Qr=93;t[t.rightSquareBracket=Qr]="rightSquareBracket";const Zr=94;t[t.caret=Zr]="caret";const Kr=95;t[t.underscore=Kr]="underscore";const es=96;t[t.graveAccent=es]="graveAccent";const ts=97;t[t.lowercaseA=ts]="lowercaseA";const ns=98;t[t.lowercaseB=ns]="lowercaseB";const rs=99;t[t.lowercaseC=rs]="lowercaseC";const ss=100;t[t.lowercaseD=ss]="lowercaseD";const os=101;t[t.lowercaseE=os]="lowercaseE";const is=102;t[t.lowercaseF=is]="lowercaseF";const as=103;t[t.lowercaseG=as]="lowercaseG";const cs=104;t[t.lowercaseH=cs]="lowercaseH";const ls=105;t[t.lowercaseI=ls]="lowercaseI";const us=106;t[t.lowercaseJ=us]="lowercaseJ";const hs=107;t[t.lowercaseK=hs]="lowercaseK";const fs=108;t[t.lowercaseL=fs]="lowercaseL";const ps=109;t[t.lowercaseM=ps]="lowercaseM";const ms=110;t[t.lowercaseN=ms]="lowercaseN";const ds=111;t[t.lowercaseO=ds]="lowercaseO";const ks=112;t[t.lowercaseP=ks]="lowercaseP";const gs=113;t[t.lowercaseQ=gs]="lowercaseQ";const _s=114;t[t.lowercaseR=_s]="lowercaseR";const ys=115;t[t.lowercaseS=ys]="lowercaseS";const xs=116;t[t.lowercaseT=xs]="lowercaseT";const ws=117;t[t.lowercaseU=ws]="lowercaseU";const Is=118;t[t.lowercaseV=Is]="lowercaseV";const bs=119;t[t.lowercaseW=bs]="lowercaseW";const Ts=120;t[t.lowercaseX=Ts]="lowercaseX";const Es=121;t[t.lowercaseY=Es]="lowercaseY";const As=122;t[t.lowercaseZ=As]="lowercaseZ";const Ss=123;t[t.leftCurlyBrace=Ss]="leftCurlyBrace";const vs=124;t[t.verticalBar=vs]="verticalBar";const Ns=125;t[t.rightCurlyBrace=Ns]="rightCurlyBrace";const Cs=126;t[t.tilde=Cs]="tilde";const Rs=160;t[t.nonBreakingSpace=Rs]="nonBreakingSpace";const Ps=5760;t[t.oghamSpaceMark=Ps]="oghamSpaceMark";const Ls=8232;t[t.lineSeparator=Ls]="lineSeparator";const Fs=8233;t[t.paragraphSeparator=Fs]="paragraphSeparator"})(p||(p={}));function m(t){return t>=p.digit0&&t<=p.digit9||t>=p.lowercaseA&&t<=p.lowercaseF||t>=p.uppercaseA&&t<=p.uppercaseF}let A,S,V,r,w,le;function W(){return le++}function oe(t){if("pos"in t){const n=xe(t.pos);t.message+=` (${n.line}:${n.column})`,t.loc=n}return t}class ue{constructor(n,s){this.line=n,this.column=s}}function xe(t){let n=1,s=1;for(let a=0;a<t;a++)w.charCodeAt(a)===p.lineFeed?(n++,s=1):s++;return new ue(n,s)}function Re(t,n,s,a){w=t,r=new P,le=1,A=n,S=s,V=a}function B(t){return r.contextualKeyword===t}function Le(t){const n=I();return n.type===e.name&&n.contextualKeyword===t}function ve(t){return r.contextualKeyword===t&&x(e.name)}function Ne(t){ve(t)||C()}function Ue(){return h(e.eof)||h(e.braceR)||Xe()}function Xe(){const t=r.tokens[r.tokens.length-1],n=t?t.end:0;for(let s=n;s<r.start;s++){const a=w.charCodeAt(s);if(a===p.lineFeed||a===p.carriageReturn||a===8232||a===8233)return!0}return!1}function ot(){const t=R();for(let n=r.end;n<t;n++){const s=w.charCodeAt(n);if(s===p.lineFeed||s===p.carriageReturn||s===8232||s===8233)return!0}return!1}function te(){return x(e.semi)||Ue()}function F(){te()||C('Unexpected token, expected ";"')}function d(t){x(t)||C(`Unexpected token, expected "${Ee(t)}"`)}function C(t="Unexpected token",n=r.start){if(r.error)return;const s=new SyntaxError(t);s.pos=n,r.error=s,r.pos=w.length,u(e.eof)}const _e=[9,11,12,p.space,p.nonBreakingSpace,p.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],G=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,H=new Uint8Array(65536);for(const t of _e)H[t]=1;function Y(t){if(t<48)return t===36;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const $=new Uint8Array(65536);for(let t=0;t<128;t++)$[t]=Y(t)?1:0;for(let t=128;t<65536;t++)$[t]=1;for(const t of _e)$[t]=0;$[8232]=0,$[8233]=0;const me=$.slice();for(let t=p.digit0;t<=p.digit9;t++)me[t]=0;const he=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-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1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(e._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function ie(){let t=0,n=0,s=r.pos;for(;s<w.length&&(n=w.charCodeAt(s),!(n<p.lowercaseA||n>p.lowercaseZ));){const f=he[t+(n-p.lowercaseA)+1];if(f===-1)break;t=f,s++}const a=he[t];if(a>-1&&!$[n]){r.pos=s,a&1?u(a>>>1):u(e.name,a>>>1);return}for(;s<w.length;){const f=w.charCodeAt(s);if($[f])s++;else if(f===p.backslash){if(s+=2,w.charCodeAt(s)===p.leftCurlyBrace){for(;s<w.length&&w.charCodeAt(s)!==p.rightCurlyBrace;)s++;s++}}else if(f===p.atSign&&w.charCodeAt(s+1)===p.atSign)s+=2;else break}r.pos=s,u(e.name)}var L;(function(t){t[t.Access=0]="Access";const s=1;t[t.ExportAccess=s]="ExportAccess";const a=s+1;t[t.TopLevelDeclaration=a]="TopLevelDeclaration";const f=a+1;t[t.FunctionScopedDeclaration=f]="FunctionScopedDeclaration";const k=f+1;t[t.BlockScopedDeclaration=k]="BlockScopedDeclaration";const v=k+1;t[t.ObjectShorthandTopLevelDeclaration=v]="ObjectShorthandTopLevelDeclaration";const U=v+1;t[t.ObjectShorthandFunctionScopedDeclaration=U]="ObjectShorthandFunctionScopedDeclaration";const ne=U+1;t[t.ObjectShorthandBlockScopedDeclaration=ne]="ObjectShorthandBlockScopedDeclaration";const fe=ne+1;t[t.ObjectShorthand=fe]="ObjectShorthand";const Ae=fe+1;t[t.ImportDeclaration=Ae]="ImportDeclaration";const we=Ae+1;t[t.ObjectKey=we]="ObjectKey";const re=we+1;t[t.ImportAccess=re]="ImportAccess"})(L||(L={}));var ce;(function(t){t[t.NoChildren=0]="NoChildren";const s=1;t[t.OneChild=s]="OneChild";const a=s+1;t[t.StaticChildren=a]="StaticChildren";const f=a+1;t[t.KeyAfterPropSpread=f]="KeyAfterPropSpread"})(ce||(ce={}));function Me(t){const n=t.identifierRole;return n===L.TopLevelDeclaration||n===L.FunctionScopedDeclaration||n===L.BlockScopedDeclaration||n===L.ObjectShorthandTopLevelDeclaration||n===L.ObjectShorthandFunctionScopedDeclaration||n===L.ObjectShorthandBlockScopedDeclaration}function E(t){const n=t.identifierRole;return n===L.FunctionScopedDeclaration||n===L.BlockScopedDeclaration||n===L.ObjectShorthandFunctionScopedDeclaration||n===L.ObjectShorthandBlockScopedDeclaration}function N(t){const n=t.identifierRole;return n===L.TopLevelDeclaration||n===L.ObjectShorthandTopLevelDeclaration||n===L.ImportDeclaration}function O(t){const n=t.identifierRole;return n===L.TopLevelDeclaration||n===L.BlockScopedDeclaration||n===L.ObjectShorthandTopLevelDeclaration||n===L.ObjectShorthandBlockScopedDeclaration}function D(t){const n=t.identifierRole;return n===L.FunctionScopedDeclaration||n===L.ObjectShorthandFunctionScopedDeclaration}function Q(t){return t.identifierRole===L.ObjectShorthandTopLevelDeclaration||t.identifierRole===L.ObjectShorthandBlockScopedDeclaration||t.identifierRole===L.ObjectShorthandFunctionScopedDeclaration}class ae{constructor(){this.type=r.type,this.contextualKeyword=r.contextualKeyword,this.start=r.start,this.end=r.end,this.scopeDepth=r.scopeDepth,this.isType=r.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function _(){r.tokens.push(new ae),ke()}function de(){r.tokens.push(new ae),r.start=r.pos,dn()}function Pe(){r.type===e.assign&&--r.pos,pn()}function J(t){for(let s=r.tokens.length-t;s<r.tokens.length;s++)r.tokens[s].isType=!0;const n=r.isType;return r.isType=!0,n}function se(t){r.isType=t}function x(t){return h(t)?(_(),!0):!1}function qe(t){const n=r.isType;r.isType=!0,x(t),r.isType=n}function h(t){return r.type===t}function Ce(){const t=r.snapshot();_();const n=r.type;return r.restoreFromSnapshot(t),n}class pt{constructor(n,s){this.type=n,this.contextualKeyword=s}}function I(){const t=r.snapshot();_();const n=r.type,s=r.contextualKeyword;return r.restoreFromSnapshot(t),new pt(n,s)}function R(){return j(r.pos)}function j(t){G.lastIndex=t;const n=G.exec(w);return t+n[0].length}function Z(){return w.charCodeAt(R())}function ke(){if(i(),r.start=r.pos,r.pos>=w.length){const t=r.tokens;t.length>=2&&t[t.length-1].start>=w.length&&t[t.length-2].start>=w.length&&C("Unexpectedly reached the end of input."),u(e.eof);return}pe(w.charCodeAt(r.pos))}function pe(t){me[t]||t===p.backslash||t===p.atSign&&w.charCodeAt(r.pos+1)===p.atSign?ie():Jt(t)}function c(){for(;w.charCodeAt(r.pos)!==p.asterisk||w.charCodeAt(r.pos+1)!==p.slash;)if(r.pos++,r.pos>w.length){C("Unterminated comment",r.pos-2);return}r.pos+=2}function o(t){let n=w.charCodeAt(r.pos+=t);if(r.pos<w.length)for(;n!==p.lineFeed&&n!==p.carriageReturn&&n!==p.lineSeparator&&n!==p.paragraphSeparator&&++r.pos<w.length;)n=w.charCodeAt(r.pos)}function i(){for(;r.pos<w.length;){const t=w.charCodeAt(r.pos);switch(t){case p.carriageReturn:w.charCodeAt(r.pos+1)===p.lineFeed&&++r.pos;case p.lineFeed:case p.lineSeparator:case p.paragraphSeparator:++r.pos;break;case p.slash:switch(w.charCodeAt(r.pos+1)){case p.asterisk:r.pos+=2,c();break;case p.slash:o(2);break;default:return}break;default:if(H[t])++r.pos;else return}}}function u(t,n=l.NONE){r.end=r.pos,r.type=t,r.contextualKeyword=n}function g(){const t=w.charCodeAt(r.pos+1);if(t>=p.digit0&&t<=p.digit9){Pt(!0);return}t===p.dot&&w.charCodeAt(r.pos+2)===p.dot?(r.pos+=3,u(e.ellipsis)):(++r.pos,u(e.dot))}function y(){w.charCodeAt(r.pos+1)===p.equalsTo?Oe(e.assign,2):Oe(e.slash,1)}function T(t){let n=t===p.asterisk?e.star:e.modulo,s=1,a=w.charCodeAt(r.pos+1);t===p.asterisk&&a===p.asterisk&&(s++,a=w.charCodeAt(r.pos+2),n=e.exponent),a===p.equalsTo&&w.charCodeAt(r.pos+2)!==p.greaterThan&&(s++,n=e.assign),Oe(n,s)}function ge(t){const n=w.charCodeAt(r.pos+1);if(n===t){w.charCodeAt(r.pos+2)===p.equalsTo?Oe(e.assign,3):Oe(t===p.verticalBar?e.logicalOR:e.logicalAND,2);return}if(t===p.verticalBar){if(n===p.greaterThan){Oe(e.pipeline,2);return}else if(n===p.rightCurlyBrace&&V){Oe(e.braceBarR,2);return}}if(n===p.equalsTo){Oe(e.assign,2);return}Oe(t===p.verticalBar?e.bitwiseOR:e.bitwiseAND,1)}function De(){w.charCodeAt(r.pos+1)===p.equalsTo?Oe(e.assign,2):Oe(e.bitwiseXOR,1)}function Be(t){const n=w.charCodeAt(r.pos+1);if(n===t){Oe(e.preIncDec,2);return}n===p.equalsTo?Oe(e.assign,2):t===p.plusSign?Oe(e.plus,1):Oe(e.minus,1)}function $e(){const t=w.charCodeAt(r.pos+1);if(t===p.lessThan){if(w.charCodeAt(r.pos+2)===p.equalsTo){Oe(e.assign,3);return}r.isType?Oe(e.lessThan,1):Oe(e.bitShiftL,2);return}t===p.equalsTo?Oe(e.relationalOrEqual,2):Oe(e.lessThan,1)}function Fe(){if(r.isType){Oe(e.greaterThan,1);return}const t=w.charCodeAt(r.pos+1);if(t===p.greaterThan){const n=w.charCodeAt(r.pos+2)===p.greaterThan?3:2;if(w.charCodeAt(r.pos+n)===p.equalsTo){Oe(e.assign,n+1);return}Oe(e.bitShiftR,n);return}t===p.equalsTo?Oe(e.relationalOrEqual,2):Oe(e.greaterThan,1)}function $t(){r.type===e.greaterThan&&(r.pos-=1,Fe())}function it(t){const n=w.charCodeAt(r.pos+1);if(n===p.equalsTo){Oe(e.equality,w.charCodeAt(r.pos+2)===p.equalsTo?3:2);return}if(t===p.equalsTo&&n===p.greaterThan){r.pos+=2,u(e.arrow);return}Oe(t===p.equalsTo?e.eq:e.bang,1)}function Yt(){const t=w.charCodeAt(r.pos+1),n=w.charCodeAt(r.pos+2);t===p.questionMark&&!(V&&r.isType)?n===p.equalsTo?Oe(e.assign,3):Oe(e.nullishCoalescing,2):t===p.dot&&!(n>=p.digit0&&n<=p.digit9)?(r.pos+=2,u(e.questionDot)):(++r.pos,u(e.question))}function Jt(t){switch(t){case p.numberSign:++r.pos,u(e.hash);return;case p.dot:g();return;case p.leftParenthesis:++r.pos,u(e.parenL);return;case p.rightParenthesis:++r.pos,u(e.parenR);return;case p.semicolon:++r.pos,u(e.semi);return;case p.comma:++r.pos,u(e.comma);return;case p.leftSquareBracket:++r.pos,u(e.bracketL);return;case p.rightSquareBracket:++r.pos,u(e.bracketR);return;case p.leftCurlyBrace:V&&w.charCodeAt(r.pos+1)===p.verticalBar?Oe(e.braceBarL,2):(++r.pos,u(e.braceL));return;case p.rightCurlyBrace:++r.pos,u(e.braceR);return;case p.colon:w.charCodeAt(r.pos+1)===p.colon?Oe(e.doubleColon,2):(++r.pos,u(e.colon));return;case p.questionMark:Yt();return;case p.atSign:++r.pos,u(e.at);return;case p.graveAccent:++r.pos,u(e.backQuote);return;case p.digit0:{const n=w.charCodeAt(r.pos+1);if(n===p.lowercaseX||n===p.uppercaseX||n===p.lowercaseO||n===p.uppercaseO||n===p.lowercaseB||n===p.uppercaseB){wt();return}}case p.digit1:case p.digit2:case p.digit3:case p.digit4:case p.digit5:case p.digit6:case p.digit7:case p.digit8:case p.digit9:Pt(!1);return;case p.quotationMark:case p.apostrophe:mn(t);return;case p.slash:y();return;case p.percentSign:case p.asterisk:T(t);return;case p.verticalBar:case p.ampersand:ge(t);return;case p.caret:De();return;case p.plusSign:case p.dash:Be(t);return;case p.lessThan:$e();return;case p.greaterThan:Fe();return;case p.equalsTo:case p.exclamationMark:it(t);return;case p.tilde:Oe(e.tilde,1);return;default:break}C(`Unexpected character '${String.fromCharCode(t)}'`,r.pos)}function Oe(t,n){r.pos+=n,u(t)}function pn(){const t=r.pos;let n=!1,s=!1;for(;;){if(r.pos>=w.length){C("Unterminated regular expression",t);return}const a=w.charCodeAt(r.pos);if(n)n=!1;else{if(a===p.leftSquareBracket)s=!0;else if(a===p.rightSquareBracket&&s)s=!1;else if(a===p.slash&&!s)break;n=a===p.backslash}++r.pos}++r.pos,kn(),u(e.regexp)}function Rt(){for(;;){const t=w.charCodeAt(r.pos);if(t>=p.digit0&&t<=p.digit9||t===p.underscore)r.pos++;else break}}function wt(){for(r.pos+=2;;){const n=w.charCodeAt(r.pos);if(n>=p.digit0&&n<=p.digit9||n>=p.lowercaseA&&n<=p.lowercaseF||n>=p.uppercaseA&&n<=p.uppercaseF||n===p.underscore)r.pos++;else break}w.charCodeAt(r.pos)===p.lowercaseN?(++r.pos,u(e.bigint)):u(e.num)}function Pt(t){let n=!1,s=!1;t||Rt();let a=w.charCodeAt(r.pos);if(a===p.dot&&(++r.pos,Rt(),a=w.charCodeAt(r.pos)),(a===p.uppercaseE||a===p.lowercaseE)&&(a=w.charCodeAt(++r.pos),(a===p.plusSign||a===p.dash)&&++r.pos,Rt(),a=w.charCodeAt(r.pos)),a===p.lowercaseN?(++r.pos,n=!0):a===p.lowercaseM&&(++r.pos,s=!0),n){u(e.bigint);return}if(s){u(e.decimal);return}u(e.num)}function mn(t){for(r.pos++;;){if(r.pos>=w.length){C("Unterminated string constant");return}const n=w.charCodeAt(r.pos);if(n===p.backslash)r.pos++;else if(n===t)break;r.pos++}r.pos++,u(e.string)}function dn(){for(;;){if(r.pos>=w.length){C("Unterminated template");return}const t=w.charCodeAt(r.pos);if(t===p.graveAccent||t===p.dollarSign&&w.charCodeAt(r.pos+1)===p.leftCurlyBrace){if(r.pos===r.start&&h(e.template))if(t===p.dollarSign){r.pos+=2,u(e.dollarBraceL);return}else{++r.pos,u(e.backQuote);return}u(e.template);return}t===p.backslash&&r.pos++,r.pos++}}function kn(){for(;r.pos<w.length;){const t=w.charCodeAt(r.pos);if($[t])r.pos++;else if(t===p.backslash){if(r.pos+=2,w.charCodeAt(r.pos)===p.leftCurlyBrace){for(;r.pos<w.length&&w.charCodeAt(r.pos)!==p.rightCurlyBrace;)r.pos++;r.pos++}}else break}}function Qt(t,n=t.currentIndex()){let s=n+1;if(gn(t,s)){const a=t.identifierNameAtIndex(n);return{isType:!1,leftName:a,rightName:a,endIndex:s}}if(s++,gn(t,s))return{isType:!0,leftName:null,rightName:null,endIndex:s};if(s++,gn(t,s))return{isType:!1,leftName:t.identifierNameAtIndex(n),rightName:t.identifierNameAtIndex(n+2),endIndex:s};if(s++,gn(t,s))return{isType:!0,leftName:null,rightName:null,endIndex:s};throw new Error(`Unexpected import/export specifier at ${n}`)}function gn(t,n){const s=t.tokens[n];return s.type===e.braceR||s.type===e.comma}var K1=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp","\xA0"],["iexcl","\xA1"],["cent","\xA2"],["pound","\xA3"],["curren","\xA4"],["yen","\xA5"],["brvbar","\xA6"],["sect","\xA7"],["uml","\xA8"],["copy","\xA9"],["ordf","\xAA"],["laquo","\xAB"],["not","\xAC"],["shy","\xAD"],["reg","\xAE"],["macr","\xAF"],["deg","\xB0"],["plusmn","\xB1"],["sup2","\xB2"],["sup3","\xB3"],["acute","\xB4"],["micro","\xB5"],["para","\xB6"],["middot","\xB7"],["cedil","\xB8"],["sup1","\xB9"],["ordm","\xBA"],["raquo","\xBB"],["frac14","\xBC"],["frac12","\xBD"],["frac34","\xBE"],["iquest","\xBF"],["Agrave","\xC0"],["Aacute","\xC1"],["Acirc","\xC2"],["Atilde","\xC3"],["Auml","\xC4"],["Aring","\xC5"],["AElig","\xC6"],["Ccedil","\xC7"],["Egrave","\xC8"],["Eacute","\xC9"],["Ecirc","\xCA"],["Euml","\xCB"],["Igrave","\xCC"],["Iacute","\xCD"],["Icirc","\xCE"],["Iuml","\xCF"],["ETH","\xD0"],["Ntilde","\xD1"],["Ograve","\xD2"],["Oacute","\xD3"],["Ocirc","\xD4"],["Otilde","\xD5"],["Ouml","\xD6"],["times","\xD7"],["Oslash","\xD8"],["Ugrave","\xD9"],["Uacute","\xDA"],["Ucirc","\xDB"],["Uuml","\xDC"],["Yacute","\xDD"],["THORN","\xDE"],["szlig","\xDF"],["agrave","\xE0"],["aacute","\xE1"],["acirc","\xE2"],["atilde","\xE3"],["auml","\xE4"],["aring","\xE5"],["aelig","\xE6"],["ccedil","\xE7"],["egrave","\xE8"],["eacute","\xE9"],["ecirc","\xEA"],["euml","\xEB"],["igrave","\xEC"],["iacute","\xED"],["icirc","\xEE"],["iuml","\xEF"],["eth","\xF0"],["ntilde","\xF1"],["ograve","\xF2"],["oacute","\xF3"],["ocirc","\xF4"],["otilde","\xF5"],["ouml","\xF6"],["divide","\xF7"],["oslash","\xF8"],["ugrave","\xF9"],["uacute","\xFA"],["ucirc","\xFB"],["uuml","\xFC"],["yacute","\xFD"],["thorn","\xFE"],["yuml","\xFF"],["OElig","\u0152"],["oelig","\u0153"],["Scaron","\u0160"],["scaron","\u0161"],["Yuml","\u0178"],["fnof","\u0192"],["circ","\u02C6"],["tilde","\u02DC"],["Alpha","\u0391"],["Beta","\u0392"],["Gamma","\u0393"],["Delta","\u0394"],["Epsilon","\u0395"],["Zeta","\u0396"],["Eta","\u0397"],["Theta","\u0398"],["Iota","\u0399"],["Kappa","\u039A"],["Lambda","\u039B"],["Mu","\u039C"],["Nu","\u039D"],["Xi","\u039E"],["Omicron","\u039F"],["Pi","\u03A0"],["Rho","\u03A1"],["Sigma","\u03A3"],["Tau","\u03A4"],["Upsilon","\u03A5"],["Phi","\u03A6"],["Chi","\u03A7"],["Psi","\u03A8"],["Omega","\u03A9"],["alpha","\u03B1"],["beta","\u03B2"],["gamma","\u03B3"],["delta","\u03B4"],["epsilon","\u03B5"],["zeta","\u03B6"],["eta","\u03B7"],["theta","\u03B8"],["iota","\u03B9"],["kappa","\u03BA"],["lambda","\u03BB"],["mu","\u03BC"],["nu","\u03BD"],["xi","\u03BE"],["omicron","\u03BF"],["pi","\u03C0"],["rho","\u03C1"],["sigmaf","\u03C2"],["sigma","\u03C3"],["tau","\u03C4"],["upsilon","\u03C5"],["phi","\u03C6"],["chi","\u03C7"],["psi","\u03C8"],["omega","\u03C9"],["thetasym","\u03D1"],["upsih","\u03D2"],["piv","\u03D6"],["ensp","\u2002"],["emsp","\u2003"],["thinsp","\u2009"],["zwnj","\u200C"],["zwj","\u200D"],["lrm","\u200E"],["rlm","\u200F"],["ndash","\u2013"],["mdash","\u2014"],["lsquo","\u2018"],["rsquo","\u2019"],["sbquo","\u201A"],["ldquo","\u201C"],["rdquo","\u201D"],["bdquo","\u201E"],["dagger","\u2020"],["Dagger","\u2021"],["bull","\u2022"],["hellip","\u2026"],["permil","\u2030"],["prime","\u2032"],["Prime","\u2033"],["lsaquo","\u2039"],["rsaquo","\u203A"],["oline","\u203E"],["frasl","\u2044"],["euro","\u20AC"],["image","\u2111"],["weierp","\u2118"],["real","\u211C"],["trade","\u2122"],["alefsym","\u2135"],["larr","\u2190"],["uarr","\u2191"],["rarr","\u2192"],["darr","\u2193"],["harr","\u2194"],["crarr","\u21B5"],["lArr","\u21D0"],["uArr","\u21D1"],["rArr","\u21D2"],["dArr","\u21D3"],["hArr","\u21D4"],["forall","\u2200"],["part","\u2202"],["exist","\u2203"],["empty","\u2205"],["nabla","\u2207"],["isin","\u2208"],["notin","\u2209"],["ni","\u220B"],["prod","\u220F"],["sum","\u2211"],["minus","\u2212"],["lowast","\u2217"],["radic","\u221A"],["prop","\u221D"],["infin","\u221E"],["ang","\u2220"],["and","\u2227"],["or","\u2228"],["cap","\u2229"],["cup","\u222A"],["int","\u222B"],["there4","\u2234"],["sim","\u223C"],["cong","\u2245"],["asymp","\u2248"],["ne","\u2260"],["equiv","\u2261"],["le","\u2264"],["ge","\u2265"],["sub","\u2282"],["sup","\u2283"],["nsub","\u2284"],["sube","\u2286"],["supe","\u2287"],["oplus","\u2295"],["otimes","\u2297"],["perp","\u22A5"],["sdot","\u22C5"],["lceil","\u2308"],["rceil","\u2309"],["lfloor","\u230A"],["rfloor","\u230B"],["lang","\u2329"],["rang","\u232A"],["loz","\u25CA"],["spades","\u2660"],["clubs","\u2663"],["hearts","\u2665"],["diams","\u2666"]]);function Bs(t){const[n,s]=Os(t.jsxPragma||"React.createElement"),[a,f]=Os(t.jsxFragmentPragma||"React.Fragment");return{base:n,suffix:s,fragmentBase:a,fragmentSuffix:f}}function Os(t){let n=t.indexOf(".");return n===-1&&(n=t.length),[t.slice(0,n),t.slice(n)]}class mt{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class Lt extends mt{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(n,s,a,f,k){super(),this.rootTransformer=n,this.tokens=s,this.importProcessor=a,this.nameManager=f,this.options=k,Lt.prototype.__init.call(this),Lt.prototype.__init2.call(this),Lt.prototype.__init3.call(this),Lt.prototype.__init4.call(this),Lt.prototype.__init5.call(this),this.jsxPragmaInfo=Bs(k),this.isAutomaticRuntime=k.jsxRuntime==="automatic",this.jsxImportSource=k.jsxImportSource||"react"}process(){return this.tokens.matches1(e.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let n="";if(this.filenameVarName&&(n+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[a,f]of Object.entries(this.cjsAutomaticModuleNameResolutions))n+=`var ${f} = require("${a}");`;else{const s=this.esmAutomaticImportNameResolutions,{createElement:a}=s,f=Ds(s,["createElement"]);a&&(n+=`import {createElement as ${a}} from "${this.jsxImportSource}";`);const k=Object.entries(f).map(([v,U])=>`${v} as ${U}`).join(", ");if(k){const v=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");n+=`import {${k}} from "${v}";`}}return n}processJSXTag(){const{jsxRole:n,start:s}=this.tokens.currentToken(),a=this.options.production?null:this.getElementLocationCode(s);this.isAutomaticRuntime&&n!==ce.KeyAfterPropSpread?this.transformTagToJSXFunc(a,n):this.transformTagToCreateElement(a)}getElementLocationCode(n){return`lineNumber: ${this.getLineNumberForIndex(n)}`}getLineNumberForIndex(n){const s=this.tokens.code;for(;this.lastIndex<n&&this.lastIndex<s.length;)s[this.lastIndex]===`
2
+ `&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(n,s){const a=s===ce.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(a));let f=null;if(this.tokens.matches1(e.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(s);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),f=this.processProps(!0),this.tokens.matches2(e.slash,e.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(e.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(s);else throw new Error("Expected either /> or > at the end of the tag.");f&&this.tokens.appendCode(`, ${f}`)}for(this.options.production||(f===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${a}, ${this.getDevSource(n)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(e.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(n){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(e.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(n),!this.tokens.matches2(e.slash,e.jsxTagEnd))if(this.tokens.matches1(e.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(e.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(n){return this.options.production?n?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:n}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(n.base)||n.base}${n.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:n}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(n.fragmentBase)||n.fragmentBase)+n.fragmentSuffix}}claimAutoImportedFuncInvocation(n,s){const a=this.claimAutoImportedName(n,s);return this.importProcessor?`${a}.call(void 0, `:`${a}(`}claimAutoImportedName(n,s){if(this.importProcessor){const a=this.jsxImportSource+s;return this.cjsAutomaticModuleNameResolutions[a]||(this.cjsAutomaticModuleNameResolutions[a]=this.importProcessor.getFreeIdentifierForPath(a)),`${this.cjsAutomaticModuleNameResolutions[a]}.${n}`}else return this.esmAutomaticImportNameResolutions[n]||(this.esmAutomaticImportNameResolutions[n]=this.nameManager.claimFreeName(`_${n}`)),this.esmAutomaticImportNameResolutions[n]}processTagIntro(){let n=this.tokens.currentIndex()+1;for(;this.tokens.tokens[n].isType||!this.tokens.matches2AtIndex(n-1,e.jsxName,e.jsxName)&&!this.tokens.matches2AtIndex(n-1,e.greaterThan,e.jsxName)&&!this.tokens.matches1AtIndex(n,e.braceL)&&!this.tokens.matches1AtIndex(n,e.jsxTagEnd)&&!this.tokens.matches2AtIndex(n,e.slash,e.jsxTagEnd);)n++;if(n===this.tokens.currentIndex()+1){const s=this.tokens.identifierName();Ms(s)&&this.tokens.replaceToken(`'${s}'`)}for(;this.tokens.currentIndex()<n;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(n){const s=this.options.production?"":`__self: this, __source: ${this.getDevSource(n)}`;if(!this.tokens.matches1(e.jsxName)&&!this.tokens.matches1(e.braceL)){s?this.tokens.appendCode(`, {${s}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),s?this.tokens.appendCode(` ${s}}`):this.tokens.appendCode("}")}processProps(n){let s=null;for(;;){if(this.tokens.matches2(e.jsxName,e.eq)){const a=this.tokens.identifierName();if(n&&a==="key"){s!==null&&this.tokens.appendCode(s.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const f=this.tokens.snapshot();this.processPropValue(),s=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(f);continue}else this.processPropName(a),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(e.jsxName)){const a=this.tokens.identifierName();this.processPropName(a),this.tokens.appendCode(": true")}else if(this.tokens.matches1(e.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return s}processPropName(n){n.includes("-")?this.tokens.replaceToken(`'${n}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(e.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(e.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const n=this.tokens.currentToken(),s=this.tokens.code.slice(n.start+1,n.end-1),a=js(s),f=to(s);this.tokens.replaceToken(f+a)}processAutomaticChildrenAndEndProps(n){n===ce.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(n===ce.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(n){let s=n;for(;;){if(this.tokens.matches2(e.jsxTagStart,e.slash))return;let a=!1;if(this.tokens.matches1(e.braceL))this.tokens.matches2(e.braceL,e.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(s?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),a=!0);else if(this.tokens.matches1(e.jsxTagStart))this.tokens.appendCode(s?", ":""),this.processJSXTag(),a=!0;else if(this.tokens.matches1(e.jsxText)||this.tokens.matches1(e.jsxEmptyText))a=this.processChildTextElement(s);else throw new Error("Unexpected token when processing JSX children.");a&&(s=!0)}}processChildTextElement(n){const s=this.tokens.currentToken(),a=this.tokens.code.slice(s.start,s.end),f=js(a),k=eo(a);return k==='""'?(this.tokens.replaceToken(f),!1):(this.tokens.replaceToken(`${n?", ":""}${k}${f}`),!0)}getDevSource(n){return`{fileName: ${this.getFilenameVarName()}, ${n}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function Ms(t){const n=t.charCodeAt(0);return n>=p.lowercaseA&&n<=p.lowercaseZ}function eo(t){let n="",s="",a=!1,f=!1;for(let k=0;k<t.length;k++){const v=t[k];if(v===" "||v===" "||v==="\r")a||(s+=v);else if(v===`
3
+ `)s="",a=!0;else{if(f&&a&&(n+=" "),n+=s,s="",v==="&"){const{entity:U,newI:ne}=qs(t,k+1);k=ne-1,n+=U}else n+=v;f=!0,a=!1}}return a||(n+=s),JSON.stringify(n)}function js(t){let n=0,s=0;for(const a of t)a===`
4
+ `?(n++,s=0):a===" "&&s++;return`
5
+ `.repeat(n)+" ".repeat(s)}function to(t){let n="";for(let s=0;s<t.length;s++){const a=t[s];if(a===`
6
+ `)if(/\s/.test(t[s+1]))for(n+=" ";s<t.length&&/\s/.test(t[s+1]);)s++;else n+=`
7
+ `;else if(a==="&"){const{entity:f,newI:k}=qs(t,s+1);n+=f,s=k-1}else n+=a}return JSON.stringify(n)}function qs(t,n){let s="",a=0,f,k=n;if(t[k]==="#"){let v=10;k++;let U;if(t[k]==="x")for(v=16,k++,U=k;k<t.length&&ro(t.charCodeAt(k));)k++;else for(U=k;k<t.length&&no(t.charCodeAt(k));)k++;if(t[k]===";"){const ne=t.slice(U,k);ne&&(k++,f=String.fromCodePoint(parseInt(ne,v)))}}else for(;k<t.length&&a++<10;){const v=t[k];if(k++,v===";"){f=K1.get(s);break}s+=v}return f?{entity:f,newI:k}:{entity:"&",newI:n}}function no(t){return t>=p.digit0&&t<=p.digit9}function ro(t){return t>=p.digit0&&t<=p.digit9||t>=p.lowercaseA&&t<=p.lowercaseF||t>=p.uppercaseA&&t<=p.uppercaseF}function $s(t,n){const s=Bs(n),a=new Set;for(let f=0;f<t.tokens.length;f++){const k=t.tokens[f];if(k.type===e.name&&!k.isType&&(k.identifierRole===L.Access||k.identifierRole===L.ObjectShorthand||k.identifierRole===L.ExportAccess)&&!k.shadowsGlobal&&a.add(t.identifierNameForToken(k)),k.type===e.jsxTagStart&&a.add(s.base),k.type===e.jsxTagStart&&f+1<t.tokens.length&&t.tokens[f+1].type===e.jsxTagEnd&&(a.add(s.base),a.add(s.fragmentBase)),k.type===e.jsxName&&k.identifierRole===L.Access){const v=t.identifierNameForToken(k);(!Ms(v)||t.tokens[f+1].type===e.dot)&&a.add(t.identifierNameForToken(k))}}return a}class Ft{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(n,s,a,f,k,v,U){this.nameManager=n,this.tokens=s,this.enableLegacyTypeScriptModuleInterop=a,this.options=f,this.isTypeScriptTransformEnabled=k,this.keepUnusedImports=v,this.helperManager=U,Ft.prototype.__init.call(this),Ft.prototype.__init2.call(this),Ft.prototype.__init3.call(this),Ft.prototype.__init4.call(this),Ft.prototype.__init5.call(this)}preprocessTokens(){for(let n=0;n<this.tokens.tokens.length;n++)this.tokens.matches1AtIndex(n,e._import)&&!this.tokens.matches3AtIndex(n,e._import,e.name,e.eq)&&this.preprocessImportAtIndex(n),this.tokens.matches1AtIndex(n,e._export)&&!this.tokens.matches2AtIndex(n,e._export,e.eq)&&this.preprocessExportAtIndex(n);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=$s(this.tokens,this.options);for(const[n,s]of this.importInfoByPath.entries()){if(s.hasBareImport||s.hasStarExport||s.exportStarNames.length>0||s.namedExports.length>0)continue;[...s.defaultNames,...s.wildcardNames,...s.namedImports.map(({localName:f})=>f)].every(f=>this.shouldAutomaticallyElideImportedName(f))&&this.importsToReplace.set(n,"")}}shouldAutomaticallyElideImportedName(n){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(n)}generateImportReplacements(){for(const[n,s]of this.importInfoByPath.entries()){const{defaultNames:a,wildcardNames:f,namedImports:k,namedExports:v,exportStarNames:U,hasStarExport:ne}=s;if(a.length===0&&f.length===0&&k.length===0&&v.length===0&&U.length===0&&!ne){this.importsToReplace.set(n,`require('${n}');`);continue}const fe=this.getFreeIdentifierForPath(n);let Ae;this.enableLegacyTypeScriptModuleInterop?Ae=fe:Ae=f.length>0?f[0]:this.getFreeIdentifierForPath(n);let we=`var ${fe} = require('${n}');`;if(f.length>0)for(const re of f){const Te=this.enableLegacyTypeScriptModuleInterop?fe:`${this.helperManager.getHelperName("interopRequireWildcard")}(${fe})`;we+=` var ${re} = ${Te};`}else U.length>0&&Ae!==fe?we+=` var ${Ae} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${fe});`:a.length>0&&Ae!==fe&&(we+=` var ${Ae} = ${this.helperManager.getHelperName("interopRequireDefault")}(${fe});`);for(const{importedName:re,localName:Te}of v)we+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${fe}, '${Te}', '${re}');`;for(const re of U)we+=` exports.${re} = ${Ae};`;ne&&(we+=` ${this.helperManager.getHelperName("createStarExport")}(${fe});`),this.importsToReplace.set(n,we);for(const re of a)this.identifierReplacements.set(re,`${Ae}.default`);for(const{importedName:re,localName:Te}of k)this.identifierReplacements.set(Te,`${fe}.${re}`)}}getFreeIdentifierForPath(n){const s=n.split("/"),f=s[s.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${f}`)}preprocessImportAtIndex(n){const s=[],a=[],f=[];if(n++,(this.tokens.matchesContextualAtIndex(n,l._type)||this.tokens.matches1AtIndex(n,e._typeof))&&!this.tokens.matches1AtIndex(n+1,e.comma)&&!this.tokens.matchesContextualAtIndex(n+1,l._from)||this.tokens.matches1AtIndex(n,e.parenL))return;if(this.tokens.matches1AtIndex(n,e.name)&&(s.push(this.tokens.identifierNameAtIndex(n)),n++,this.tokens.matches1AtIndex(n,e.comma)&&n++),this.tokens.matches1AtIndex(n,e.star)&&(n+=2,a.push(this.tokens.identifierNameAtIndex(n)),n++),this.tokens.matches1AtIndex(n,e.braceL)){const U=this.getNamedImports(n+1);n=U.newIndex;for(const ne of U.namedImports)ne.importedName==="default"?s.push(ne.localName):f.push(ne)}if(this.tokens.matchesContextualAtIndex(n,l._from)&&n++,!this.tokens.matches1AtIndex(n,e.string))throw new Error("Expected string token at the end of import statement.");const k=this.tokens.stringValueAtIndex(n),v=this.getImportInfo(k);v.defaultNames.push(...s),v.wildcardNames.push(...a),v.namedImports.push(...f),s.length===0&&a.length===0&&f.length===0&&(v.hasBareImport=!0)}preprocessExportAtIndex(n){if(this.tokens.matches2AtIndex(n,e._export,e._var)||this.tokens.matches2AtIndex(n,e._export,e._let)||this.tokens.matches2AtIndex(n,e._export,e._const))this.preprocessVarExportAtIndex(n);else if(this.tokens.matches2AtIndex(n,e._export,e._function)||this.tokens.matches2AtIndex(n,e._export,e._class)){const s=this.tokens.identifierNameAtIndex(n+2);this.addExportBinding(s,s)}else if(this.tokens.matches3AtIndex(n,e._export,e.name,e._function)){const s=this.tokens.identifierNameAtIndex(n+3);this.addExportBinding(s,s)}else this.tokens.matches2AtIndex(n,e._export,e.braceL)?this.preprocessNamedExportAtIndex(n):this.tokens.matches2AtIndex(n,e._export,e.star)&&this.preprocessExportStarAtIndex(n)}preprocessVarExportAtIndex(n){let s=0;for(let a=n+2;;a++)if(this.tokens.matches1AtIndex(a,e.braceL)||this.tokens.matches1AtIndex(a,e.dollarBraceL)||this.tokens.matches1AtIndex(a,e.bracketL))s++;else if(this.tokens.matches1AtIndex(a,e.braceR)||this.tokens.matches1AtIndex(a,e.bracketR))s--;else{if(s===0&&!this.tokens.matches1AtIndex(a,e.name))break;if(this.tokens.matches1AtIndex(1,e.eq)){const f=this.tokens.currentToken().rhsEndIndex;if(f==null)throw new Error("Expected = token with an end index.");a=f-1}else{const f=this.tokens.tokens[a];if(Me(f)){const k=this.tokens.identifierNameAtIndex(a);this.identifierReplacements.set(k,`exports.${k}`)}}}}preprocessNamedExportAtIndex(n){n+=2;const{newIndex:s,namedImports:a}=this.getNamedImports(n);if(n=s,this.tokens.matchesContextualAtIndex(n,l._from))n++;else{for(const{importedName:v,localName:U}of a)this.addExportBinding(v,U);return}if(!this.tokens.matches1AtIndex(n,e.string))throw new Error("Expected string token at the end of import statement.");const f=this.tokens.stringValueAtIndex(n);this.getImportInfo(f).namedExports.push(...a)}preprocessExportStarAtIndex(n){let s=null;if(this.tokens.matches3AtIndex(n,e._export,e.star,e._as)?(n+=3,s=this.tokens.identifierNameAtIndex(n),n+=2):n+=3,!this.tokens.matches1AtIndex(n,e.string))throw new Error("Expected string token at the end of star export statement.");const a=this.tokens.stringValueAtIndex(n),f=this.getImportInfo(a);s!==null?f.exportStarNames.push(s):f.hasStarExport=!0}getNamedImports(n){const s=[];for(;;){if(this.tokens.matches1AtIndex(n,e.braceR)){n++;break}const a=Qt(this.tokens,n);if(n=a.endIndex,a.isType||s.push({importedName:a.leftName,localName:a.rightName}),this.tokens.matches2AtIndex(n,e.comma,e.braceR)){n+=2;break}else if(this.tokens.matches1AtIndex(n,e.braceR)){n++;break}else if(this.tokens.matches1AtIndex(n,e.comma))n++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[n])}`)}return{newIndex:n,namedImports:s}}getImportInfo(n){const s=this.importInfoByPath.get(n);if(s)return s;const a={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(n,a),a}addExportBinding(n,s){this.exportBindingsByLocalName.has(n)||this.exportBindingsByLocalName.set(n,[]),this.exportBindingsByLocalName.get(n).push(s)}claimImportCode(n){const s=this.importsToReplace.get(n);return this.importsToReplace.set(n,""),s||""}getIdentifierReplacement(n){return this.identifierReplacements.get(n)||null}resolveExportBinding(n){const s=this.exportBindingsByLocalName.get(n);return!s||s.length===0?null:s.map(a=>`exports.${a}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var Zt=K(37436);function so({code:t,mappings:n},s,a,f,k){const v=oo(f,k),U=new Zt.GenMapping({file:a.compiledFilename});let ne=0,fe=n[0];for(;fe===void 0&&ne<n.length-1;)ne++,fe=n[ne];let Ae=0,we=0;fe!==we&&(0,Zt.maybeAddSegment)(U,Ae,0,s,Ae,0);for(let Qe=0;Qe<t.length;Qe++){if(Qe===fe){const rt=fe-we,et=v[ne];for((0,Zt.maybeAddSegment)(U,Ae,rt,s,Ae,et);(fe===Qe||fe===void 0)&&ne<n.length-1;)ne++,fe=n[ne]}t.charCodeAt(Qe)===p.lineFeed&&(Ae++,we=Qe+1,fe!==we&&(0,Zt.maybeAddSegment)(U,Ae,0,s,Ae,0))}const nt=(0,Zt.toEncodedMap)(U),{sourceRoot:re,sourcesContent:Te}=nt;return Ds(nt,["sourceRoot","sourcesContent"])}function oo(t,n){const s=new Array(n.length);let a=0,f=n[a].start,k=0;for(let v=0;v<t.length;v++)v===f&&(s[a]=f-k,a++,f=n[a].start),t.charCodeAt(v)===p.lineFeed&&(k=v+1);return s}const io={require:`
8
+ import {createRequire as CREATE_REQUIRE_NAME} from "module";
9
+ const require = CREATE_REQUIRE_NAME(import.meta.url);
10
+ `,interopRequireWildcard:`
11
+ function interopRequireWildcard(obj) {
12
+ if (obj && obj.__esModule) {
13
+ return obj;
14
+ } else {
15
+ var newObj = {};
16
+ if (obj != null) {
17
+ for (var key in obj) {
18
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
19
+ newObj[key] = obj[key];
20
+ }
21
+ }
22
+ }
23
+ newObj.default = obj;
24
+ return newObj;
25
+ }
26
+ }
27
+ `,interopRequireDefault:`
28
+ function interopRequireDefault(obj) {
29
+ return obj && obj.__esModule ? obj : { default: obj };
30
+ }
31
+ `,createNamedExportFrom:`
32
+ function createNamedExportFrom(obj, localName, importedName) {
33
+ Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});
34
+ }
35
+ `,createStarExport:`
36
+ function createStarExport(obj) {
37
+ Object.keys(obj)
38
+ .filter((key) => key !== "default" && key !== "__esModule")
39
+ .forEach((key) => {
40
+ if (exports.hasOwnProperty(key)) {
41
+ return;
42
+ }
43
+ Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});
44
+ });
45
+ }
46
+ `,nullishCoalesce:`
47
+ function nullishCoalesce(lhs, rhsFn) {
48
+ if (lhs != null) {
49
+ return lhs;
50
+ } else {
51
+ return rhsFn();
52
+ }
53
+ }
54
+ `,asyncNullishCoalesce:`
55
+ async function asyncNullishCoalesce(lhs, rhsFn) {
56
+ if (lhs != null) {
57
+ return lhs;
58
+ } else {
59
+ return await rhsFn();
60
+ }
61
+ }
62
+ `,optionalChain:`
63
+ function optionalChain(ops) {
64
+ let lastAccessLHS = undefined;
65
+ let value = ops[0];
66
+ let i = 1;
67
+ while (i < ops.length) {
68
+ const op = ops[i];
69
+ const fn = ops[i + 1];
70
+ i += 2;
71
+ if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
72
+ return undefined;
73
+ }
74
+ if (op === 'access' || op === 'optionalAccess') {
75
+ lastAccessLHS = value;
76
+ value = fn(value);
77
+ } else if (op === 'call' || op === 'optionalCall') {
78
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
79
+ lastAccessLHS = undefined;
80
+ }
81
+ }
82
+ return value;
83
+ }
84
+ `,asyncOptionalChain:`
85
+ async function asyncOptionalChain(ops) {
86
+ let lastAccessLHS = undefined;
87
+ let value = ops[0];
88
+ let i = 1;
89
+ while (i < ops.length) {
90
+ const op = ops[i];
91
+ const fn = ops[i + 1];
92
+ i += 2;
93
+ if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
94
+ return undefined;
95
+ }
96
+ if (op === 'access' || op === 'optionalAccess') {
97
+ lastAccessLHS = value;
98
+ value = await fn(value);
99
+ } else if (op === 'call' || op === 'optionalCall') {
100
+ value = await fn((...args) => value.call(lastAccessLHS, ...args));
101
+ lastAccessLHS = undefined;
102
+ }
103
+ }
104
+ return value;
105
+ }
106
+ `,optionalChainDelete:`
107
+ function optionalChainDelete(ops) {
108
+ const result = OPTIONAL_CHAIN_NAME(ops);
109
+ return result == null ? true : result;
110
+ }
111
+ `,asyncOptionalChainDelete:`
112
+ async function asyncOptionalChainDelete(ops) {
113
+ const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
114
+ return result == null ? true : result;
115
+ }
116
+ `};class _n{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(n){this.nameManager=n,_n.prototype.__init.call(this),_n.prototype.__init2.call(this)}getHelperName(n){let s=this.helperNames[n];return s||(s=this.nameManager.claimFreeName(`_${n}`),this.helperNames[n]=s,s)}emitHelpers(){let n="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[s,a]of Object.entries(io)){const f=this.helperNames[s];let k=a;s==="optionalChainDelete"?k=k.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):s==="asyncOptionalChainDelete"?k=k.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):s==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),k=k.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),f&&(n+=" ",n+=k.replace(s,f).replace(/\s+/g," ").trim())}return n}}function Us(t,n,s){ao(t,s)&&co(t,n,s)}function ao(t,n){for(const s of t.tokens)if(s.type===e.name&&!s.isType&&E(s)&&n.has(t.identifierNameForToken(s)))return!0;return!1}function co(t,n,s){const a=[];let f=n.length-1;for(let k=t.tokens.length-1;;k--){for(;a.length>0&&a[a.length-1].startTokenIndex===k+1;)a.pop();for(;f>=0&&n[f].endTokenIndex===k+1;)a.push(n[f]),f--;if(k<0)break;const v=t.tokens[k],U=t.identifierNameForToken(v);if(a.length>1&&!v.isType&&v.type===e.name&&s.has(U)){if(O(v))Vs(a[a.length-1],t,U);else if(D(v)){let ne=a.length-1;for(;ne>0&&!a[ne].isFunctionScope;)ne--;if(ne<0)throw new Error("Did not find parent function scope.");Vs(a[ne],t,U)}}}if(a.length>0)throw new Error("Expected empty scope stack after processing file.")}function Vs(t,n,s){for(let a=t.startTokenIndex;a<t.endTokenIndex;a++){const f=n.tokens[a];(f.type===e.name||f.type===e.jsxName)&&n.identifierNameForToken(f)===s&&(f.shadowsGlobal=!0)}}function lo(t,n){const s=[];for(const a of n)a.type===e.name&&s.push(t.slice(a.start,a.end));return s}class jn{__init(){this.usedNames=new Set}constructor(n,s){jn.prototype.__init.call(this),this.usedNames=new Set(lo(n,s))}claimFreeName(n){const s=this.findFreeName(n);return this.usedNames.add(s),s}findFreeName(n){if(!this.usedNames.has(n))return n;let s=2;for(;this.usedNames.has(n+String(s));)s++;return n+String(s)}}var We=K(7139);const uo=We.union(We.lit("jsx"),We.lit("typescript"),We.lit("flow"),We.lit("imports"),We.lit("react-hot-loader"),We.lit("jest")),ho=We.iface([],{compiledFilename:"string"}),fo=We.iface([],{transforms:We.array("Transform"),disableESTransforms:We.opt("boolean"),jsxRuntime:We.opt(We.union(We.lit("classic"),We.lit("automatic"),We.lit("preserve"))),production:We.opt("boolean"),jsxImportSource:We.opt("string"),jsxPragma:We.opt("string"),jsxFragmentPragma:We.opt("string"),keepUnusedImports:We.opt("boolean"),preserveDynamicImport:We.opt("boolean"),injectCreateRequireForImportRequire:We.opt("boolean"),enableLegacyTypeScriptModuleInterop:We.opt("boolean"),enableLegacyBabel5ModuleInterop:We.opt("boolean"),sourceMapOptions:We.opt("SourceMapOptions"),filePath:We.opt("string")});var po={Transform:uo,SourceMapOptions:ho,Options:fo};const{Options:mo}=(0,We.createCheckers)(po);function ko(t){mo.strictCheck(t)}function Ws(){_(),Ke(!1)}function Hs(t){_(),xn(t)}function Et(t){be(),qn(t)}function yn(){be(),r.tokens[r.tokens.length-1].identifierRole=L.ImportDeclaration}function qn(t){let n;r.scopeDepth===0?n=L.TopLevelDeclaration:t?n=L.BlockScopedDeclaration:n=L.FunctionScopedDeclaration,r.tokens[r.tokens.length-1].identifierRole=n}function xn(t){switch(r.type){case e._this:{const n=J(0);_(),se(n);return}case e._yield:case e.name:{r.type=e.name,Et(t);return}case e.bracketL:{_(),$n(e.bracketR,t,!0);return}case e.braceL:or(!0,t);return;default:C()}}function $n(t,n,s=!1,a=!1,f=0){let k=!0,v=!1;const U=r.tokens.length;for(;!x(t)&&!r.error;)if(k?k=!1:(d(e.comma),r.tokens[r.tokens.length-1].contextId=f,!v&&r.tokens[U].isType&&(r.tokens[r.tokens.length-1].isType=!0,v=!0)),!(s&&h(e.comma))){if(x(t))break;if(h(e.ellipsis)){Hs(n),Gs(),x(e.comma),d(t);break}else go(a,n)}}function go(t,n){t&&Vn([l._public,l._protected,l._private,l._readonly,l._override]),wn(n),Gs(),wn(n,!0)}function Gs(){V?Da():S&&Ei()}function wn(t,n=!1){if(n||xn(t),!x(e.eq))return;const s=r.tokens.length-1;Ke(),r.tokens[s].rhsEndIndex=r.tokens.length}function Un(){return h(e.name)}function _o(){return h(e.name)||!!(r.type&e.IS_KEYWORD)||h(e.string)||h(e.num)||h(e.bigint)||h(e.decimal)}function Xs(){const t=r.snapshot();return _(),(h(e.bracketL)||h(e.braceL)||h(e.star)||h(e.ellipsis)||h(e.hash)||_o())&&!Xe()?!0:(r.restoreFromSnapshot(t),!1)}function Vn(t){for(;zs(t)!==null;);}function zs(t){if(!h(e.name))return null;const n=r.contextualKeyword;if(t.indexOf(n)!==-1&&Xs()){switch(n){case l._readonly:r.tokens[r.tokens.length-1].type=e._readonly;break;case l._abstract:r.tokens[r.tokens.length-1].type=e._abstract;break;case l._static:r.tokens[r.tokens.length-1].type=e._static;break;case l._public:r.tokens[r.tokens.length-1].type=e._public;break;case l._private:r.tokens[r.tokens.length-1].type=e._private;break;case l._protected:r.tokens[r.tokens.length-1].type=e._protected;break;case l._override:r.tokens[r.tokens.length-1].type=e._override;break;case l._declare:r.tokens[r.tokens.length-1].type=e._declare;break;default:break}return n}return null}function Kt(){for(be();x(e.dot);)be()}function yo(){Kt(),!Xe()&&h(e.lessThan)&&Wt()}function xo(){_(),tn()}function wo(){_()}function Io(){d(e._typeof),h(e._import)?Ys():Kt(),!Xe()&&h(e.lessThan)&&Wt()}function Ys(){d(e._import),d(e.parenL),d(e.string),d(e.parenR),x(e.dot)&&Kt(),h(e.lessThan)&&Wt()}function bo(){x(e._const);const t=x(e._in),n=ve(l._out);x(e._const),(t||n)&&!h(e.name)?r.tokens[r.tokens.length-1].type=e.name:be(),x(e._extends)&&ze(),x(e.eq)&&ze()}function Dt(){h(e.lessThan)&&In()}function In(){const t=J(0);for(h(e.lessThan)||h(e.typeParameterStart)?_():C();!x(e.greaterThan)&&!r.error;)bo(),x(e.comma);se(t)}function Wn(t){const n=t===e.arrow;Dt(),d(e.parenL),r.scopeDepth++,To(!1),r.scopeDepth--,(n||h(t))&&en(t)}function To(t){$n(e.parenR,t)}function bn(){x(e.comma)||F()}function Js(){Wn(e.colon),bn()}function Eo(){const t=r.snapshot();_();const n=x(e.name)&&h(e.colon);return r.restoreFromSnapshot(t),n}function Qs(){if(!(h(e.bracketL)&&Eo()))return!1;const t=J(0);return d(e.bracketL),be(),tn(),d(e.bracketR),Ut(),bn(),se(t),!0}function Zs(t){x(e.question),!t&&(h(e.parenL)||h(e.lessThan))?(Wn(e.colon),bn()):(Ut(),bn())}function Ao(){if(h(e.parenL)||h(e.lessThan)){Js();return}if(h(e._new)){_(),h(e.parenL)||h(e.lessThan)?Js():Zs(!1);return}const t=!!zs([l._readonly]);Qs()||((B(l._get)||B(l._set))&&Xs(),rn(-1),Zs(t))}function So(){Ks()}function Ks(){for(d(e.braceL);!x(e.braceR)&&!r.error;)Ao()}function vo(){const t=r.snapshot(),n=No();return r.restoreFromSnapshot(t),n}function No(){return _(),x(e.plus)||x(e.minus)?B(l._readonly):(B(l._readonly)&&_(),!h(e.bracketL)||(_(),!Un())?!1:(_(),h(e._in)))}function Co(){be(),d(e._in),ze()}function Ro(){d(e.braceL),h(e.plus)||h(e.minus)?(_(),Ne(l._readonly)):ve(l._readonly),d(e.bracketL),Co(),ve(l._as)&&ze(),d(e.bracketR),h(e.plus)||h(e.minus)?(_(),d(e.question)):x(e.question),Ho(),F(),d(e.braceR)}function Po(){for(d(e.bracketL);!x(e.bracketR)&&!r.error;)Lo(),x(e.comma)}function Lo(){x(e.ellipsis)?ze():(ze(),x(e.question)),x(e.colon)&&ze()}function Fo(){d(e.parenL),ze(),d(e.parenR)}function Do(){for(de(),de();!h(e.backQuote)&&!r.error;)d(e.dollarBraceL),ze(),de(),de();_()}var At;(function(t){t[t.TSFunctionType=0]="TSFunctionType";const s=1;t[t.TSConstructorType=s]="TSConstructorType";const a=s+1;t[t.TSAbstractConstructorType=a]="TSAbstractConstructorType"})(At||(At={}));function Hn(t){t===At.TSAbstractConstructorType&&Ne(l._abstract),(t===At.TSConstructorType||t===At.TSAbstractConstructorType)&&d(e._new);const n=r.inDisallowConditionalTypesContext;r.inDisallowConditionalTypesContext=!1,Wn(e.arrow),r.inDisallowConditionalTypesContext=n}function Bo(){switch(r.type){case e.name:yo();return;case e._void:case e._null:_();return;case e.string:case e.num:case e.bigint:case e.decimal:case e._true:case e._false:Gt();return;case e.minus:_(),Gt();return;case e._this:{wo(),B(l._is)&&!Xe()&&xo();return}case e._typeof:Io();return;case e._import:Ys();return;case e.braceL:vo()?Ro():So();return;case e.bracketL:Po();return;case e.parenL:Fo();return;case e.backQuote:Do();return;default:if(r.type&e.IS_KEYWORD){_(),r.tokens[r.tokens.length-1].type=e.name;return}break}C()}function Oo(){for(Bo();!Xe()&&x(e.bracketL);)x(e.bracketR)||(ze(),d(e.bracketR))}function Mo(){if(Ne(l._infer),be(),h(e._extends)){const t=r.snapshot();d(e._extends);const n=r.inDisallowConditionalTypesContext;r.inDisallowConditionalTypesContext=!0,ze(),r.inDisallowConditionalTypesContext=n,(r.error||!r.inDisallowConditionalTypesContext&&h(e.question))&&r.restoreFromSnapshot(t)}}function Gn(){if(B(l._keyof)||B(l._unique)||B(l._readonly))_(),Gn();else if(B(l._infer))Mo();else{const t=r.inDisallowConditionalTypesContext;r.inDisallowConditionalTypesContext=!1,Oo(),r.inDisallowConditionalTypesContext=t}}function e1(){if(x(e.bitwiseAND),Gn(),h(e.bitwiseAND))for(;x(e.bitwiseAND);)Gn()}function jo(){if(x(e.bitwiseOR),e1(),h(e.bitwiseOR))for(;x(e.bitwiseOR);)e1()}function qo(){return h(e.lessThan)?!0:h(e.parenL)&&Uo()}function $o(){if(h(e.name)||h(e._this))return _(),!0;if(h(e.braceL)||h(e.bracketL)){let t=1;for(_();t>0&&!r.error;)h(e.braceL)||h(e.bracketL)?t++:(h(e.braceR)||h(e.bracketR))&&t--,_();return!0}return!1}function Uo(){const t=r.snapshot(),n=Vo();return r.restoreFromSnapshot(t),n}function Vo(){return _(),!!(h(e.parenR)||h(e.ellipsis)||$o()&&(h(e.colon)||h(e.comma)||h(e.question)||h(e.eq)||h(e.parenR)&&(_(),h(e.arrow))))}function en(t){const n=J(0);d(t),Go()||ze(),se(n)}function Wo(){h(e.colon)&&en(e.colon)}function Ut(){h(e.colon)&&tn()}function Ho(){x(e.colon)&&ze()}function Go(){const t=r.snapshot();return B(l._asserts)?(_(),ve(l._is)?(ze(),!0):Un()||h(e._this)?(_(),ve(l._is)&&ze(),!0):(r.restoreFromSnapshot(t),!1)):Un()||h(e._this)?(_(),B(l._is)&&!Xe()?(_(),ze(),!0):(r.restoreFromSnapshot(t),!1)):!1}function tn(){const t=J(0);d(e.colon),ze(),se(t)}function ze(){if(t1(),r.inDisallowConditionalTypesContext||Xe()||!x(e._extends))return;const t=r.inDisallowConditionalTypesContext;r.inDisallowConditionalTypesContext=!0,t1(),r.inDisallowConditionalTypesContext=t,d(e.question),ze(),d(e.colon),ze()}function Xo(){return B(l._abstract)&&Ce()===e._new}function t1(){if(qo()){Hn(At.TSFunctionType);return}if(h(e._new)){Hn(At.TSConstructorType);return}else if(Xo()){Hn(At.TSAbstractConstructorType);return}jo()}function zo(){const t=J(1);ze(),d(e.greaterThan),se(t),nn()}function Yo(){if(x(e.jsxTagStart)){r.tokens[r.tokens.length-1].type=e.typeParameterStart;const t=J(1);for(;!h(e.greaterThan)&&!r.error;)ze(),x(e.comma);ht(),se(t)}}function n1(){for(;!h(e.braceL)&&!r.error;)Jo(),x(e.comma)}function Jo(){Kt(),h(e.lessThan)&&Wt()}function Qo(){Et(!1),Dt(),x(e._extends)&&n1(),Ks()}function Zo(){Et(!1),Dt(),d(e.eq),ze(),F()}function Ko(){if(h(e.string)?Gt():be(),x(e.eq)){const t=r.tokens.length-1;Ke(),r.tokens[t].rhsEndIndex=r.tokens.length}}function Xn(){for(Et(!1),d(e.braceL);!x(e.braceR)&&!r.error;)Ko(),x(e.comma)}function zn(){d(e.braceL),Ln(e.braceR)}function Yn(){Et(!1),x(e.dot)?Yn():zn()}function r1(){B(l._global)?be():h(e.string)?It():C(),h(e.braceL)?zn():F()}function Jn(){yn(),d(e.eq),ti(),F()}function ei(){return B(l._require)&&Ce()===e.parenL}function ti(){ei()?ni():Kt()}function ni(){Ne(l._require),d(e.parenL),h(e.string)||C(),Gt(),d(e.parenR)}function ri(){if(te())return!1;switch(r.type){case e._function:{const t=J(1);_();const n=r.start;return Mt(n,!0),se(t),!0}case e._class:{const t=J(1);return jt(!0,!1),se(t),!0}case e._const:if(h(e._const)&&Le(l._enum)){const t=J(1);return d(e._const),Ne(l._enum),r.tokens[r.tokens.length-1].type=e._enum,Xn(),se(t),!0}case e._var:case e._let:{const t=J(1);return Pn(r.type!==e._var),se(t),!0}case e.name:{const t=J(1),n=r.contextualKeyword;let s=!1;return n===l._global?(r1(),s=!0):s=Tn(n,!0),se(t),s}default:return!1}}function s1(){return Tn(r.contextualKeyword,!0)}function si(t){switch(t){case l._declare:{const n=r.tokens.length-1;if(ri())return r.tokens[n].type=e._declare,!0;break}case l._global:if(h(e.braceL))return zn(),!0;break;default:return Tn(t,!1)}return!1}function Tn(t,n){switch(t){case l._abstract:if(Vt(n)&&h(e._class))return r.tokens[r.tokens.length-1].type=e._abstract,jt(!0,!1),!0;break;case l._enum:if(Vt(n)&&h(e.name))return r.tokens[r.tokens.length-1].type=e._enum,Xn(),!0;break;case l._interface:if(Vt(n)&&h(e.name)){const s=J(n?2:1);return Qo(),se(s),!0}break;case l._module:if(Vt(n)){if(h(e.string)){const s=J(n?2:1);return r1(),se(s),!0}else if(h(e.name)){const s=J(n?2:1);return Yn(),se(s),!0}}break;case l._namespace:if(Vt(n)&&h(e.name)){const s=J(n?2:1);return Yn(),se(s),!0}break;case l._type:if(Vt(n)&&h(e.name)){const s=J(n?2:1);return Zo(),se(s),!0}break;default:break}return!1}function Vt(t){return t?(_(),!0):!te()}function oi(){const t=r.snapshot();return In(),Xt(),Wo(),d(e.arrow),r.error?(r.restoreFromSnapshot(t),!1):(on(!0),!0)}function Qn(){r.type===e.bitShiftL&&(r.pos-=1,u(e.lessThan)),Wt()}function Wt(){const t=J(0);for(d(e.lessThan);!h(e.greaterThan)&&!r.error;)ze(),x(e.comma);t?(d(e.greaterThan),se(t)):(se(t),$t(),d(e.greaterThan),r.tokens[r.tokens.length-1].isType=!0)}function o1(){if(h(e.name))switch(r.contextualKeyword){case l._abstract:case l._declare:case l._enum:case l._interface:case l._module:case l._namespace:case l._type:return!0;default:break}return!1}function ii(t,n){if(h(e.colon)&&en(e.colon),!h(e.braceL)&&te()){let s=r.tokens.length-1;for(;s>=0&&(r.tokens[s].start>=t||r.tokens[s].type===e._default||r.tokens[s].type===e._export);)r.tokens[s].isType=!0,s--;return}on(!1,n)}function ai(t,n,s){if(!Xe()&&x(e.bang)){r.tokens[r.tokens.length-1].type=e.nonNullAssertion;return}if(h(e.lessThan)||h(e.bitShiftL)){const a=r.snapshot();if(!n&&p1()&&oi())return;if(Qn(),!n&&x(e.parenL)?(r.tokens[r.tokens.length-1].subscriptStartIndex=t,St()):h(e.backQuote)?sr():(r.type===e.greaterThan||r.type!==e.parenL&&r.type&e.IS_EXPRESSION_START&&!Xe())&&C(),r.error)r.restoreFromSnapshot(a);else return}else!n&&h(e.questionDot)&&Ce()===e.lessThan&&(_(),r.tokens[t].isOptionalChainStart=!0,r.tokens[r.tokens.length-1].subscriptStartIndex=t,Wt(),d(e.parenL),St());er(t,n,s)}function ci(){if(x(e._import))return B(l._type)&&Ce()!==e.eq&&Ne(l._type),Jn(),!0;if(x(e.eq))return Ze(),F(),!0;if(ve(l._as))return Ne(l._namespace),be(),F(),!0;if(B(l._type)){const t=Ce();(t===e.braceL||t===e.star)&&_()}return!1}function li(){if(be(),h(e.comma)||h(e.braceR)){r.tokens[r.tokens.length-1].identifierRole=L.ImportDeclaration;return}if(be(),h(e.comma)||h(e.braceR)){r.tokens[r.tokens.length-1].identifierRole=L.ImportDeclaration,r.tokens[r.tokens.length-2].isType=!0,r.tokens[r.tokens.length-1].isType=!0;return}if(be(),h(e.comma)||h(e.braceR)){r.tokens[r.tokens.length-3].identifierRole=L.ImportAccess,r.tokens[r.tokens.length-1].identifierRole=L.ImportDeclaration;return}be(),r.tokens[r.tokens.length-3].identifierRole=L.ImportAccess,r.tokens[r.tokens.length-1].identifierRole=L.ImportDeclaration,r.tokens[r.tokens.length-4].isType=!0,r.tokens[r.tokens.length-3].isType=!0,r.tokens[r.tokens.length-2].isType=!0,r.tokens[r.tokens.length-1].isType=!0}function ui(){if(be(),h(e.comma)||h(e.braceR)){r.tokens[r.tokens.length-1].identifierRole=L.ExportAccess;return}if(be(),h(e.comma)||h(e.braceR)){r.tokens[r.tokens.length-1].identifierRole=L.ExportAccess,r.tokens[r.tokens.length-2].isType=!0,r.tokens[r.tokens.length-1].isType=!0;return}if(be(),h(e.comma)||h(e.braceR)){r.tokens[r.tokens.length-3].identifierRole=L.ExportAccess;return}be(),r.tokens[r.tokens.length-3].identifierRole=L.ExportAccess,r.tokens[r.tokens.length-4].isType=!0,r.tokens[r.tokens.length-3].isType=!0,r.tokens[r.tokens.length-2].isType=!0,r.tokens[r.tokens.length-1].isType=!0}function hi(){if(B(l._abstract)&&Ce()===e._class)return r.type=e._abstract,_(),jt(!0,!0),!0;if(B(l._interface)){const t=J(2);return Tn(l._interface,!0),se(t),!0}return!1}function fi(){if(r.type===e._const){const t=I();if(t.type===e.name&&t.contextualKeyword===l._enum)return d(e._const),Ne(l._enum),r.tokens[r.tokens.length-1].type=e._enum,Xn(),!0}return!1}function pi(t){const n=r.tokens.length;Vn([l._abstract,l._readonly,l._declare,l._static,l._override]);const s=r.tokens.length;if(Qs()){const f=t?n-1:n;for(let k=f;k<s;k++)r.tokens[k].isType=!0;return!0}return!1}function mi(t){si(t)||F()}function di(){const t=ve(l._declare);t&&(r.tokens[r.tokens.length-1].type=e._declare);let n=!1;if(h(e.name))if(t){const s=J(2);n=s1(),se(s)}else n=s1();if(!n)if(t){const s=J(2);ut(!0),se(s)}else ut(!0)}function ki(t){if(t&&(h(e.lessThan)||h(e.bitShiftL))&&Qn(),ve(l._implements)){r.tokens[r.tokens.length-1].type=e._implements;const n=J(1);n1(),se(n)}}function gi(){Dt()}function _i(){Dt()}function yi(){const t=J(0);Xe()||x(e.bang),Ut(),se(t)}function xi(){h(e.colon)&&tn()}function wi(t,n){return A?Ii(t,n):bi(t,n)}function Ii(t,n){if(!h(e.lessThan))return kt(t,n);const s=r.snapshot();let a=kt(t,n);if(r.error)r.restoreFromSnapshot(s);else return a;return r.type=e.typeParameterStart,In(),a=kt(t,n),a||C(),a}function bi(t,n){if(!h(e.lessThan))return kt(t,n);const s=r.snapshot();In();const a=kt(t,n);if(a||C(),r.error)r.restoreFromSnapshot(s);else return a;return kt(t,n)}function Ti(){if(h(e.colon)){const t=r.snapshot();en(e.colon),Ue()&&C(),h(e.arrow)||C(),r.error&&r.restoreFromSnapshot(t)}return x(e.arrow)}function Ei(){const t=J(0);x(e.question),Ut(),se(t)}function Ai(){(h(e.lessThan)||h(e.bitShiftL))&&Qn(),v1()}function Si(){let t=!1,n=!1;for(;;){if(r.pos>=w.length){C("Unterminated JSX contents");return}const s=w.charCodeAt(r.pos);if(s===p.lessThan||s===p.leftCurlyBrace){if(r.pos===r.start){if(s===p.lessThan){r.pos++,u(e.jsxTagStart);return}Jt(s);return}u(t&&!n?e.jsxEmptyText:e.jsxText);return}s===p.lineFeed?t=!0:s!==p.space&&s!==p.carriageReturn&&s!==p.tab&&(n=!0),r.pos++}}function vi(t){for(r.pos++;;){if(r.pos>=w.length){C("Unterminated string constant");return}if(w.charCodeAt(r.pos)===t){r.pos++;break}r.pos++}u(e.string)}function Ni(){let t;do{if(r.pos>w.length){C("Unexpectedly reached the end of input.");return}t=w.charCodeAt(++r.pos)}while($[t]||t===p.dash);u(e.jsxName)}function Zn(){ht()}function i1(t){if(Zn(),!x(e.colon)){r.tokens[r.tokens.length-1].identifierRole=t;return}Zn()}function a1(){const t=r.tokens.length;i1(L.Access);let n=!1;for(;h(e.dot);)n=!0,ht(),Zn();if(!n){const s=r.tokens[t],a=w.charCodeAt(s.start);a>=p.lowercaseA&&a<=p.lowercaseZ&&(s.identifierRole=null)}}function Ci(){switch(r.type){case e.braceL:_(),Ze(),ht();return;case e.jsxTagStart:l1(),ht();return;case e.string:ht();return;default:C("JSX value should be either an expression or a quoted JSX text")}}function Ri(){d(e.ellipsis),Ze()}function Pi(t){if(h(e.jsxTagEnd))return!1;a1(),S&&Yo();let n=!1;for(;!h(e.slash)&&!h(e.jsxTagEnd)&&!r.error;){if(x(e.braceL)){n=!0,d(e.ellipsis),Ke(),ht();continue}n&&r.end-r.start===3&&w.charCodeAt(r.start)===p.lowercaseK&&w.charCodeAt(r.start+1)===p.lowercaseE&&w.charCodeAt(r.start+2)===p.lowercaseY&&(r.tokens[t].jsxRole=ce.KeyAfterPropSpread),i1(L.ObjectKey),h(e.eq)&&(ht(),Ci())}const s=h(e.slash);return s&&ht(),s}function Li(){h(e.jsxTagEnd)||a1()}function c1(){const t=r.tokens.length-1;r.tokens[t].jsxRole=ce.NoChildren;let n=0;if(!Pi(t))for(Ht();;)switch(r.type){case e.jsxTagStart:if(ht(),h(e.slash)){ht(),Li(),r.tokens[t].jsxRole!==ce.KeyAfterPropSpread&&(n===1?r.tokens[t].jsxRole=ce.OneChild:n>1&&(r.tokens[t].jsxRole=ce.StaticChildren));return}n++,c1(),Ht();break;case e.jsxText:n++,Ht();break;case e.jsxEmptyText:Ht();break;case e.braceL:_(),h(e.ellipsis)?(Ri(),Ht(),n+=2):(h(e.braceR)||(n++,Ze()),Ht());break;default:C();return}}function l1(){ht(),c1()}function ht(){r.tokens.push(new ae),i(),r.start=r.pos;const t=w.charCodeAt(r.pos);if(me[t])Ni();else if(t===p.quotationMark||t===p.apostrophe)vi(t);else switch(++r.pos,t){case p.greaterThan:u(e.jsxTagEnd);break;case p.lessThan:u(e.jsxTagStart);break;case p.slash:u(e.slash);break;case p.equalsTo:u(e.eq);break;case p.leftCurlyBrace:u(e.braceL);break;case p.dot:u(e.dot);break;case p.colon:u(e.colon);break;default:C()}}function Ht(){r.tokens.push(new ae),r.start=r.pos,Si()}function Fi(t){if(h(e.question)){const n=Ce();if(n===e.colon||n===e.comma||n===e.parenR)return}u1(t)}function Di(){qe(e.question),h(e.colon)&&(S?tn():V&&Ot())}class Bi{constructor(n){this.stop=n}}function Ze(t=!1){if(Ke(t),h(e.comma))for(;x(e.comma);)Ke(t)}function Ke(t=!1,n=!1){return S?wi(t,n):V?$a(t,n):kt(t,n)}function kt(t,n){if(h(e._yield))return Zi(),!1;(h(e.parenL)||h(e.name)||h(e._yield))&&(r.potentialArrowAt=r.start);const s=Oi(t);return n&&rr(),r.type&e.IS_ASSIGN?(_(),Ke(t),!1):s}function Oi(t){return ji(t)?!0:(Mi(t),!1)}function Mi(t){S||V?Fi(t):u1(t)}function u1(t){x(e.question)&&(Ke(),d(e.colon),Ke(t))}function ji(t){const n=r.tokens.length;return nn()?!0:(En(n,-1,t),!1)}function En(t,n,s){if(S&&(e._in&e.PRECEDENCE_MASK)>n&&!Xe()&&(ve(l._as)||ve(l._satisfies))){const f=J(1);ze(),se(f),$t(),En(t,n,s);return}const a=r.type&e.PRECEDENCE_MASK;if(a>0&&(!s||!h(e._in))&&a>n){const f=r.type;_(),f===e.nullishCoalescing&&(r.tokens[r.tokens.length-1].nullishStartIndex=t);const k=r.tokens.length;nn(),En(k,f&e.IS_RIGHT_ASSOCIATIVE?a-1:a,s),f===e.nullishCoalescing&&(r.tokens[t].numNullishCoalesceStarts++,r.tokens[r.tokens.length-1].numNullishCoalesceEnds++),En(t,n,s)}}function nn(){if(S&&!A&&x(e.lessThan))return zo(),!1;if(B(l._module)&&Z()===p.leftCurlyBrace&&!ot())return Ki(),!1;if(r.type&e.IS_PREFIX)return _(),nn(),!1;if(h1())return!0;for(;r.type&e.IS_POSTFIX&&!Ue();)r.type===e.preIncDec&&(r.type=e.postIncDec),_();return!1}function h1(){const t=r.tokens.length;return It()?!0:(Kn(t),r.tokens.length>t&&r.tokens[t].isOptionalChainStart&&(r.tokens[r.tokens.length-1].isOptionalChainEnd=!0),!1)}function Kn(t,n=!1){V?Va(t,n):f1(t,n)}function f1(t,n=!1){const s=new Bi(!1);do qi(t,n,s);while(!s.stop&&!r.error)}function qi(t,n,s){S?ai(t,n,s):V?ba(t,n,s):er(t,n,s)}function er(t,n,s){if(!n&&x(e.doubleColon))tr(),s.stop=!0,Kn(t,n);else if(h(e.questionDot)){if(r.tokens[t].isOptionalChainStart=!0,n&&Ce()===e.parenL){s.stop=!0;return}_(),r.tokens[r.tokens.length-1].subscriptStartIndex=t,x(e.bracketL)?(Ze(),d(e.bracketR)):x(e.parenL)?St():An()}else if(x(e.dot))r.tokens[r.tokens.length-1].subscriptStartIndex=t,An();else if(x(e.bracketL))r.tokens[r.tokens.length-1].subscriptStartIndex=t,Ze(),d(e.bracketR);else if(!n&&h(e.parenL))if(p1()){const a=r.snapshot(),f=r.tokens.length;_(),r.tokens[r.tokens.length-1].subscriptStartIndex=t;const k=W();r.tokens[r.tokens.length-1].contextId=k,St(),r.tokens[r.tokens.length-1].contextId=k,$i()&&(r.restoreFromSnapshot(a),s.stop=!0,r.scopeDepth++,Xt(),Ui(f))}else{_(),r.tokens[r.tokens.length-1].subscriptStartIndex=t;const a=W();r.tokens[r.tokens.length-1].contextId=a,St(),r.tokens[r.tokens.length-1].contextId=a}else h(e.backQuote)?sr():s.stop=!0}function p1(){return r.tokens[r.tokens.length-1].contextualKeyword===l._async&&!Ue()}function St(){let t=!0;for(;!x(e.parenR)&&!r.error;){if(t)t=!1;else if(d(e.comma),x(e.parenR))break;g1(!1)}}function $i(){return h(e.colon)||h(e.arrow)}function Ui(t){S?xi():V&&qa(),d(e.arrow),sn(t)}function tr(){const t=r.tokens.length;It(),Kn(t,!0)}function It(){if(x(e.modulo))return be(),!1;if(h(e.jsxText)||h(e.jsxEmptyText))return Gt(),!1;if(h(e.lessThan)&&A)return r.type=e.jsxTagStart,l1(),_(),!1;const t=r.potentialArrowAt===r.start;switch(r.type){case e.slash:case e.assign:Pe();case e._super:case e._this:case e.regexp:case e.num:case e.bigint:case e.decimal:case e.string:case e._null:case e._true:case e._false:return _(),!1;case e._import:return _(),h(e.dot)&&(r.tokens[r.tokens.length-1].type=e.name,_(),be()),!1;case e.name:{const n=r.tokens.length,s=r.start,a=r.contextualKeyword;return be(),a===l._await?(Qi(),!1):a===l._async&&h(e._function)&&!Ue()?(_(),Mt(s,!1),!1):t&&a===l._async&&!Ue()&&h(e.name)?(r.scopeDepth++,Et(!1),d(e.arrow),sn(n),!0):h(e._do)&&!Ue()?(_(),vt(),!1):t&&!Ue()&&h(e.arrow)?(r.scopeDepth++,qn(!1),d(e.arrow),sn(n),!0):(r.tokens[r.tokens.length-1].identifierRole=L.Access,!1)}case e._do:return _(),vt(),!1;case e.parenL:return m1(t);case e.bracketL:return _(),k1(e.bracketR,!0),!1;case e.braceL:return or(!1,!1),!1;case e._function:return Vi(),!1;case e.at:gr();case e._class:return jt(!1),!1;case e._new:return Hi(),!1;case e.backQuote:return sr(),!1;case e.doubleColon:return _(),tr(),!1;case e.hash:{const n=Z();return me[n]||n===p.backslash?An():_(),!1}default:return C(),!1}}function An(){x(e.hash),be()}function Vi(){const t=r.start;be(),x(e.dot)&&be(),Mt(t,!1)}function Gt(){_()}function Sn(){d(e.parenL),Ze(),d(e.parenR)}function m1(t){const n=r.snapshot(),s=r.tokens.length;d(e.parenL);let a=!0;for(;!h(e.parenR)&&!r.error;){if(a)a=!1;else if(d(e.comma),h(e.parenR))break;if(h(e.ellipsis)){Hs(!1),rr();break}else Ke(!1,!0)}return d(e.parenR),t&&Wi()&&nr()?(r.restoreFromSnapshot(n),r.scopeDepth++,Xt(),nr(),sn(s),r.error?(r.restoreFromSnapshot(n),m1(!1),!1):!0):!1}function Wi(){return h(e.colon)||!Ue()}function nr(){return S?Ti():V?Ua():x(e.arrow)}function rr(){(S||V)&&Di()}function Hi(){if(d(e._new),x(e.dot)){be();return}Gi(),V&&Ta(),x(e.parenL)&&k1(e.parenR)}function Gi(){tr(),x(e.questionDot)}function sr(){for(de(),de();!h(e.backQuote)&&!r.error;)d(e.dollarBraceL),Ze(),de(),de();_()}function or(t,n){const s=W();let a=!0;for(_(),r.tokens[r.tokens.length-1].contextId=s;!x(e.braceR)&&!r.error;){if(a)a=!1;else if(d(e.comma),x(e.braceR))break;let f=!1;if(h(e.ellipsis)){const k=r.tokens.length;if(Ws(),t&&(r.tokens.length===k+2&&qn(n),x(e.braceR)))break;continue}t||(f=x(e.star)),!t&&B(l._async)?(f&&C(),be(),h(e.colon)||h(e.parenL)||h(e.braceR)||h(e.eq)||h(e.comma)||(h(e.star)&&(_(),f=!0),rn(s))):rn(s),Ji(t,n,s)}r.tokens[r.tokens.length-1].contextId=s}function Xi(t){return!t&&(h(e.string)||h(e.num)||h(e.bracketL)||h(e.name)||!!(r.type&e.IS_KEYWORD))}function zi(t,n){const s=r.start;return h(e.parenL)?(t&&C(),ir(s,!1),!0):Xi(t)?(rn(n),ir(s,!1),!0):!1}function Yi(t,n){if(x(e.colon)){t?wn(n):Ke(!1);return}let s;t?r.scopeDepth===0?s=L.ObjectShorthandTopLevelDeclaration:n?s=L.ObjectShorthandBlockScopedDeclaration:s=L.ObjectShorthandFunctionScopedDeclaration:s=L.ObjectShorthand,r.tokens[r.tokens.length-1].identifierRole=s,wn(n,!0)}function Ji(t,n,s){S?gi():V&&Fa(),zi(t,s)||Yi(t,n)}function rn(t){V&&kr(),x(e.bracketL)?(r.tokens[r.tokens.length-1].contextId=t,Ke(),d(e.bracketR),r.tokens[r.tokens.length-1].contextId=t):(h(e.num)||h(e.string)||h(e.bigint)||h(e.decimal)?It():An(),r.tokens[r.tokens.length-1].identifierRole=L.ObjectKey,r.tokens[r.tokens.length-1].contextId=t)}function ir(t,n){const s=W();r.scopeDepth++;const a=r.tokens.length;Xt(n,s),d1(t,s);const k=r.tokens.length;r.scopes.push(new q(a,k,!0)),r.scopeDepth--}function sn(t){on(!0);const n=r.tokens.length;r.scopes.push(new q(t,n,!0)),r.scopeDepth--}function d1(t,n=0){S?ii(t,n):V?Ia(n):on(!1,n)}function on(t,n=0){t&&!h(e.braceL)?Ke():vt(!0,n)}function k1(t,n=!1){let s=!0;for(;!x(t)&&!r.error;){if(s)s=!1;else if(d(e.comma),x(t))break;g1(n)}}function g1(t){t&&h(e.comma)||(h(e.ellipsis)?(Ws(),rr()):h(e.question)?_():Ke(!1,!0))}function be(){_(),r.tokens[r.tokens.length-1].type=e.name}function Qi(){nn()}function Zi(){_(),!h(e.semi)&&!Ue()&&(x(e.star),Ke())}function Ki(){Ne(l._module),d(e.braceL),Ln(e.braceR)}function ea(t){return(t.type===e.name||!!(t.type&e.IS_KEYWORD))&&t.contextualKeyword!==l._from}function gt(t){const n=J(0);d(t||e.colon),at(),se(n)}function _1(){d(e.modulo),Ne(l._checks),x(e.parenL)&&(Ze(),d(e.parenR))}function ar(){const t=J(0);d(e.colon),h(e.modulo)?_1():(at(),h(e.modulo)&&_1()),se(t)}function ta(){_(),lr(!0)}function na(){_(),be(),h(e.lessThan)&&dt(),d(e.parenL),dr(),d(e.parenR),ar(),F()}function cr(){h(e._class)?ta():h(e._function)?na():h(e._var)?ra():ve(l._module)?x(e.dot)?ia():sa():B(l._type)?aa():B(l._opaque)?ca():B(l._interface)?la():h(e._export)?oa():C()}function ra(){_(),T1(),F()}function sa(){for(h(e.string)?It():be(),d(e.braceL);!h(e.braceR)&&!r.error;)h(e._import)?(_(),B1()):C();d(e.braceR)}function oa(){d(e._export),x(e._default)?h(e._function)||h(e._class)?cr():(at(),F()):h(e._var)||h(e._function)||h(e._class)||B(l._opaque)?cr():h(e.star)||h(e.braceL)||B(l._interface)||B(l._type)||B(l._opaque)?F1():C()}function ia(){Ne(l._exports),Ot(),F()}function aa(){_(),hr()}function ca(){_(),fr(!0)}function la(){_(),lr()}function lr(t=!1){if(Nn(),h(e.lessThan)&&dt(),x(e._extends))do vn();while(!t&&x(e.comma));if(B(l._mixins)){_();do vn();while(x(e.comma))}if(B(l._implements)){_();do vn();while(x(e.comma))}Cn(t,!1,t)}function vn(){y1(!1),h(e.lessThan)&&Bt()}function ur(){lr()}function Nn(){be()}function hr(){Nn(),h(e.lessThan)&&dt(),gt(e.eq),F()}function fr(t){Ne(l._type),Nn(),h(e.lessThan)&&dt(),h(e.colon)&&gt(e.colon),t||gt(e.eq),F()}function ua(){kr(),T1(),x(e.eq)&&at()}function dt(){const t=J(0);h(e.lessThan)||h(e.typeParameterStart)?_():C();do ua(),h(e.greaterThan)||d(e.comma);while(!h(e.greaterThan)&&!r.error);d(e.greaterThan),se(t)}function Bt(){const t=J(0);for(d(e.lessThan);!h(e.greaterThan)&&!r.error;)at(),h(e.greaterThan)||d(e.comma);d(e.greaterThan),se(t)}function ha(){if(Ne(l._interface),x(e._extends))do vn();while(x(e.comma));Cn(!1,!1,!1)}function pr(){h(e.num)||h(e.string)?It():be()}function fa(){Ce()===e.colon?(pr(),gt()):at(),d(e.bracketR),gt()}function pa(){pr(),d(e.bracketR),d(e.bracketR),h(e.lessThan)||h(e.parenL)?mr():(x(e.question),gt())}function mr(){for(h(e.lessThan)&&dt(),d(e.parenL);!h(e.parenR)&&!h(e.ellipsis)&&!r.error;)Rn(),h(e.parenR)||d(e.comma);x(e.ellipsis)&&Rn(),d(e.parenR),gt()}function ma(){mr()}function Cn(t,n,s){let a;for(n&&h(e.braceBarL)?(d(e.braceBarL),a=e.braceBarR):(d(e.braceL),a=e.braceR);!h(a)&&!r.error;){if(s&&B(l._proto)){const f=Ce();f!==e.colon&&f!==e.question&&(_(),t=!1)}if(t&&B(l._static)){const f=Ce();f!==e.colon&&f!==e.question&&_()}if(kr(),x(e.bracketL))x(e.bracketL)?pa():fa();else if(h(e.parenL)||h(e.lessThan))ma();else{if(B(l._get)||B(l._set)){const f=Ce();(f===e.name||f===e.string||f===e.num)&&_()}da()}ka()}d(a)}function da(){if(h(e.ellipsis)){if(d(e.ellipsis),x(e.comma)||x(e.semi),h(e.braceR))return;at()}else pr(),h(e.lessThan)||h(e.parenL)?mr():(x(e.question),gt())}function ka(){!x(e.semi)&&!x(e.comma)&&!h(e.braceR)&&!h(e.braceBarR)&&C()}function y1(t){for(t||be();x(e.dot);)be()}function ga(){y1(!0),h(e.lessThan)&&Bt()}function _a(){d(e._typeof),x1()}function ya(){for(d(e.bracketL);r.pos<w.length&&!h(e.bracketR)&&(at(),!h(e.bracketR));)d(e.comma);d(e.bracketR)}function Rn(){const t=Ce();t===e.colon||t===e.question?(be(),x(e.question),gt()):at()}function dr(){for(;!h(e.parenR)&&!h(e.ellipsis)&&!r.error;)Rn(),h(e.parenR)||d(e.comma);x(e.ellipsis)&&Rn()}function x1(){let t=!1;const n=r.noAnonFunctionType;switch(r.type){case e.name:{if(B(l._interface)){ha();return}be(),ga();return}case e.braceL:Cn(!1,!1,!1);return;case e.braceBarL:Cn(!1,!0,!1);return;case e.bracketL:ya();return;case e.lessThan:dt(),d(e.parenL),dr(),d(e.parenR),d(e.arrow),at();return;case e.parenL:if(_(),!h(e.parenR)&&!h(e.ellipsis))if(h(e.name)){const s=Ce();t=s!==e.question&&s!==e.colon}else t=!0;if(t)if(r.noAnonFunctionType=!1,at(),r.noAnonFunctionType=n,r.noAnonFunctionType||!(h(e.comma)||h(e.parenR)&&Ce()===e.arrow)){d(e.parenR);return}else x(e.comma);dr(),d(e.parenR),d(e.arrow),at();return;case e.minus:_(),Gt();return;case e.string:case e.num:case e._true:case e._false:case e._null:case e._this:case e._void:case e.star:_();return;default:if(r.type===e._typeof){_a();return}else if(r.type&e.IS_KEYWORD){_(),r.tokens[r.tokens.length-1].type=e.name;return}}C()}function xa(){for(x1();!Ue()&&(h(e.bracketL)||h(e.questionDot));)x(e.questionDot),d(e.bracketL),x(e.bracketR)||(at(),d(e.bracketR))}function w1(){x(e.question)?w1():xa()}function I1(){w1(),!r.noAnonFunctionType&&x(e.arrow)&&at()}function b1(){for(x(e.bitwiseAND),I1();x(e.bitwiseAND);)I1()}function wa(){for(x(e.bitwiseOR),b1();x(e.bitwiseOR);)b1()}function at(){wa()}function Ot(){gt()}function T1(){be(),h(e.colon)&&Ot()}function kr(){(h(e.plus)||h(e.minus))&&(_(),r.tokens[r.tokens.length-1].isType=!0)}function Ia(t){h(e.colon)&&ar(),on(!1,t)}function ba(t,n,s){if(h(e.questionDot)&&Ce()===e.lessThan){if(n){s.stop=!0;return}_(),Bt(),d(e.parenL),St();return}else if(!n&&h(e.lessThan)){const a=r.snapshot();if(Bt(),d(e.parenL),St(),r.error)r.restoreFromSnapshot(a);else return}er(t,n,s)}function Ta(){if(h(e.lessThan)){const t=r.snapshot();Bt(),r.error&&r.restoreFromSnapshot(t)}}function Ea(){if(h(e.name)&&r.contextualKeyword===l._interface){const t=J(0);return _(),ur(),se(t),!0}else if(B(l._enum))return E1(),!0;return!1}function Aa(){return B(l._enum)?(E1(),!0):!1}function Sa(t){if(t===l._declare){if(h(e._class)||h(e.name)||h(e._function)||h(e._var)||h(e._export)){const n=J(1);cr(),se(n)}}else if(h(e.name)){if(t===l._interface){const n=J(1);ur(),se(n)}else if(t===l._type){const n=J(1);hr(),se(n)}else if(t===l._opaque){const n=J(1);fr(!1),se(n)}}F()}function va(){return B(l._type)||B(l._interface)||B(l._opaque)||B(l._enum)}function Na(){return h(e.name)&&(r.contextualKeyword===l._type||r.contextualKeyword===l._interface||r.contextualKeyword===l._opaque||r.contextualKeyword===l._enum)}function Ca(){if(B(l._type)){const t=J(1);_(),h(e.braceL)?(xr(),ln()):hr(),se(t)}else if(B(l._opaque)){const t=J(1);_(),fr(!1),se(t)}else if(B(l._interface)){const t=J(1);_(),ur(),se(t)}else ut(!0)}function Ra(){return h(e.star)||B(l._type)&&Ce()===e.star}function Pa(){if(ve(l._type)){const t=J(2);yr(),se(t)}else yr()}function La(t){if(t&&h(e.lessThan)&&Bt(),B(l._implements)){const n=J(0);_(),r.tokens[r.tokens.length-1].type=e._implements;do Nn(),h(e.lessThan)&&Bt();while(x(e.comma));se(n)}}function Fa(){h(e.lessThan)&&(dt(),h(e.parenL)||C())}function Da(){const t=J(0);x(e.question),h(e.colon)&&Ot(),se(t)}function Ba(){if(h(e._typeof)||B(l._type)){const t=I();(ea(t)||t.type===e.braceL||t.type===e.star)&&_()}}function Oa(){const t=r.contextualKeyword===l._type||r.type===e._typeof;t?_():be(),B(l._as)&&!Le(l._as)?(be(),t&&!h(e.name)&&!(r.type&e.IS_KEYWORD)||be()):(t&&(h(e.name)||r.type&e.IS_KEYWORD)&&be(),ve(l._as)&&be())}function Ma(){if(h(e.lessThan)){const t=J(0);dt(),se(t)}}function ja(){h(e.colon)&&Ot()}function qa(){if(h(e.colon)){const t=r.noAnonFunctionType;r.noAnonFunctionType=!0,Ot(),r.noAnonFunctionType=t}}function $a(t,n){if(h(e.lessThan)){const s=r.snapshot();let a=kt(t,n);if(r.error)r.restoreFromSnapshot(s),r.type=e.typeParameterStart;else return a;const f=J(0);if(dt(),se(f),a=kt(t,n),a)return!0;C()}return kt(t,n)}function Ua(){if(h(e.colon)){const t=J(0),n=r.snapshot(),s=r.noAnonFunctionType;r.noAnonFunctionType=!0,ar(),r.noAnonFunctionType=s,Ue()&&C(),h(e.arrow)||C(),r.error&&r.restoreFromSnapshot(n),se(t)}return x(e.arrow)}function Va(t,n=!1){if(r.tokens[r.tokens.length-1].contextualKeyword===l._async&&h(e.lessThan)){const s=r.snapshot();if(Wa()&&!r.error)return;r.restoreFromSnapshot(s)}f1(t,n)}function Wa(){r.scopeDepth++;const t=r.tokens.length;return Xt(),nr()?(sn(t),!0):!1}function E1(){Ne(l._enum),r.tokens[r.tokens.length-1].type=e._enum,be(),Ha()}function Ha(){ve(l._of)&&_(),d(e.braceL),Ga(),d(e.braceR)}function Ga(){for(;!h(e.braceR)&&!r.error&&!x(e.ellipsis);)Xa(),h(e.braceR)||d(e.comma)}function Xa(){be(),x(e.eq)&&_()}function za(){if(Ln(e.eof),r.scopes.push(new q(0,r.tokens.length,!0)),r.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${r.scopeDepth}`);return new Fc(r.tokens,r.scopes)}function ut(t){V&&Ea()||(h(e.at)&&gr(),Ya(t))}function Ya(t){if(S&&fi())return;const n=r.type;switch(n){case e._break:case e._continue:Qa();return;case e._debugger:Za();return;case e._do:Ka();return;case e._for:ec();return;case e._function:if(Ce()===e.dot)break;t||C(),rc();return;case e._class:t||C(),jt(!0);return;case e._if:sc();return;case e._return:oc();return;case e._switch:ic();return;case e._throw:ac();return;case e._try:lc();return;case e._let:case e._const:t||C();case e._var:Pn(n!==e._var);return;case e._while:uc();return;case e.braceL:vt();return;case e.semi:hc();return;case e._export:case e._import:{const f=Ce();if(f===e.parenL||f===e.dot)break;_(),n===e._import?B1():F1();return}case e.name:if(r.contextualKeyword===l._async){const f=r.start,k=r.snapshot();if(_(),h(e._function)&&!Ue()){d(e._function),Mt(f,!0);return}else r.restoreFromSnapshot(k)}else if(r.contextualKeyword===l._using&&!ot()&&Ce()===e.name){Pn(!0);return}else if(A1()){Ne(l._await),Pn(!0);return}default:break}const s=r.tokens.length;Ze();let a=null;if(r.tokens.length===s+1){const f=r.tokens[r.tokens.length-1];f.type===e.name&&(a=f.contextualKeyword)}if(a==null){F();return}x(e.colon)?fc():pc(a)}function A1(){if(!B(l._await))return!1;const t=r.snapshot();return _(),!B(l._using)||Xe()||(_(),!h(e.name)||Xe())?(r.restoreFromSnapshot(t),!1):(r.restoreFromSnapshot(t),!0)}function gr(){for(;h(e.at);)S1()}function S1(){if(_(),x(e.parenL))Ze(),d(e.parenR);else{for(be();x(e.dot);)be();Ja()}}function Ja(){S?Ai():v1()}function v1(){x(e.parenL)&&St()}function Qa(){_(),te()||(be(),F())}function Za(){_(),F()}function Ka(){_(),ut(!1),d(e._while),Sn(),x(e.semi)}function ec(){r.scopeDepth++;const t=r.tokens.length;nc();const n=r.tokens.length;r.scopes.push(new q(t,n,!1)),r.scopeDepth--}function tc(){return!(!B(l._using)||Le(l._of))}function nc(){_();let t=!1;if(B(l._await)&&(t=!0,_()),d(e.parenL),h(e.semi)){t&&C(),_r();return}const n=A1();if(n||h(e._var)||h(e._let)||h(e._const)||tc()){if(n&&Ne(l._await),_(),C1(!0,r.type!==e._var),h(e._in)||B(l._of)){N1(t);return}_r();return}if(Ze(!0),h(e._in)||B(l._of)){N1(t);return}t&&C(),_r()}function rc(){const t=r.start;_(),Mt(t,!0)}function sc(){_(),Sn(),ut(!1),x(e._else)&&ut(!1)}function oc(){_(),te()||(Ze(),F())}function ic(){_(),Sn(),r.scopeDepth++;const t=r.tokens.length;for(d(e.braceL);!h(e.braceR)&&!r.error;)if(h(e._case)||h(e._default)){const s=h(e._case);_(),s&&Ze(),d(e.colon)}else ut(!0);_();const n=r.tokens.length;r.scopes.push(new q(t,n,!1)),r.scopeDepth--}function ac(){_(),Ze(),F()}function cc(){xn(!0),S&&Ut()}function lc(){if(_(),vt(),h(e._catch)){_();let t=null;if(h(e.parenL)&&(r.scopeDepth++,t=r.tokens.length,d(e.parenL),cc(),d(e.parenR)),vt(),t!=null){const n=r.tokens.length;r.scopes.push(new q(t,n,!1)),r.scopeDepth--}}x(e._finally)&&vt()}function Pn(t){_(),C1(!1,t),F()}function uc(){_(),Sn(),ut(!1)}function hc(){_()}function fc(){ut(!0)}function pc(t){S?mi(t):V?Sa(t):F()}function vt(t=!1,n=0){const s=r.tokens.length;r.scopeDepth++,d(e.braceL),n&&(r.tokens[r.tokens.length-1].contextId=n),Ln(e.braceR),n&&(r.tokens[r.tokens.length-1].contextId=n);const a=r.tokens.length;r.scopes.push(new q(s,a,t)),r.scopeDepth--}function Ln(t){for(;!x(t)&&!r.error;)ut(!0)}function _r(){d(e.semi),h(e.semi)||Ze(),d(e.semi),h(e.parenR)||Ze(),d(e.parenR),ut(!1)}function N1(t){t?ve(l._of):_(),Ze(),d(e.parenR),ut(!1)}function C1(t,n){for(;;){if(mc(n),x(e.eq)){const s=r.tokens.length-1;Ke(t),r.tokens[s].rhsEndIndex=r.tokens.length}if(!x(e.comma))break}}function mc(t){xn(t),S?yi():V&&ja()}function Mt(t,n,s=!1){h(e.star)&&_(),n&&!s&&!h(e.name)&&!h(e._yield)&&C();let a=null;h(e.name)&&(n||(a=r.tokens.length,r.scopeDepth++),Et(!1));const f=r.tokens.length;r.scopeDepth++,Xt(),d1(t);const k=r.tokens.length;r.scopes.push(new q(f,k,!0)),r.scopeDepth--,a!==null&&(r.scopes.push(new q(a,k,!0)),r.scopeDepth--)}function Xt(t=!1,n=0){S?_i():V&&Ma(),d(e.parenL),n&&(r.tokens[r.tokens.length-1].contextId=n),$n(e.parenR,!1,!1,t,n),n&&(r.tokens[r.tokens.length-1].contextId=n)}function jt(t,n=!1){const s=W();_(),r.tokens[r.tokens.length-1].contextId=s,r.tokens[r.tokens.length-1].isExpression=!t;let a=null;t||(a=r.tokens.length,r.scopeDepth++),_c(t,n),yc();const f=r.tokens.length;if(dc(s),!r.error&&(r.tokens[f].contextId=s,r.tokens[r.tokens.length-1].contextId=s,a!==null)){const k=r.tokens.length;r.scopes.push(new q(a,k,!1)),r.scopeDepth--}}function R1(){return h(e.eq)||h(e.semi)||h(e.braceR)||h(e.bang)||h(e.colon)}function P1(){return h(e.parenL)||h(e.lessThan)}function dc(t){for(d(e.braceL);!x(e.braceR)&&!r.error;){if(x(e.semi))continue;if(h(e.at)){S1();continue}const n=r.start;kc(n,t)}}function kc(t,n){S&&Vn([l._declare,l._public,l._protected,l._private,l._override]);let s=!1;if(h(e.name)&&r.contextualKeyword===l._static){if(be(),P1()){an(t,!1);return}else if(R1()){Fn();return}if(r.tokens[r.tokens.length-1].type=e._static,s=!0,h(e.braceL)){r.tokens[r.tokens.length-1].contextId=n,vt();return}}gc(t,s,n)}function gc(t,n,s){if(S&&pi(n))return;if(x(e.star)){cn(s),an(t,!1);return}cn(s);let a=!1;const f=r.tokens[r.tokens.length-1];f.contextualKeyword===l._constructor&&(a=!0),L1(),P1()?an(t,a):R1()?Fn():f.contextualKeyword===l._async&&!te()?(r.tokens[r.tokens.length-1].type=e._async,h(e.star)&&_(),cn(s),L1(),an(t,!1)):(f.contextualKeyword===l._get||f.contextualKeyword===l._set)&&!(te()&&h(e.star))?(f.contextualKeyword===l._get?r.tokens[r.tokens.length-1].type=e._get:r.tokens[r.tokens.length-1].type=e._set,cn(s),an(t,!1)):f.contextualKeyword===l._accessor&&!te()?(cn(s),Fn()):te()?Fn():C()}function an(t,n){S?Dt():V&&h(e.lessThan)&&dt(),ir(t,n)}function cn(t){rn(t)}function L1(){if(S){const t=J(0);x(e.question),se(t)}}function Fn(){if(S?(qe(e.bang),Ut()):V&&h(e.colon)&&Ot(),h(e.eq)){const t=r.tokens.length;_(),Ke(),r.tokens[t].rhsEndIndex=r.tokens.length}F()}function _c(t,n=!1){S&&(!t||n)&&B(l._implements)||(h(e.name)&&Et(!0),S?Dt():V&&h(e.lessThan)&&dt())}function yc(){let t=!1;x(e._extends)?(h1(),t=!0):t=!1,S?ki(t):V&&La(t)}function F1(){const t=r.tokens.length-1;S&&ci()||(bc()?Tc():Ic()?(be(),h(e.comma)&&Ce()===e.star?(d(e.comma),d(e.star),Ne(l._as),be()):D1(),ln()):x(e._default)?xc():Ac()?wc():(xr(),ln()),r.tokens[t].rhsEndIndex=r.tokens.length)}function xc(){if(S&&hi()||V&&Aa())return;const t=r.start;x(e._function)?Mt(t,!0,!0):B(l._async)&&Ce()===e._function?(ve(l._async),x(e._function),Mt(t,!0,!0)):h(e._class)?jt(!0,!0):h(e.at)?(gr(),jt(!0,!0)):(Ke(),F())}function wc(){S?di():V?Ca():ut(!0)}function Ic(){if(S&&o1())return!1;if(V&&Na())return!1;if(h(e.name))return r.contextualKeyword!==l._async;if(!h(e._default))return!1;const t=R(),n=I(),s=n.type===e.name&&n.contextualKeyword===l._from;if(n.type===e.comma)return!0;if(s){const a=w.charCodeAt(j(t+4));return a===p.quotationMark||a===p.apostrophe}return!1}function D1(){x(e.comma)&&xr()}function ln(){ve(l._from)&&(It(),M1()),F()}function bc(){return V?Ra():h(e.star)}function Tc(){V?Pa():yr()}function yr(){d(e.star),B(l._as)?Ec():ln()}function Ec(){_(),r.tokens[r.tokens.length-1].type=e._as,be(),D1(),ln()}function Ac(){return S&&o1()||V&&va()||r.type===e._var||r.type===e._const||r.type===e._let||r.type===e._function||r.type===e._class||B(l._async)||h(e.at)}function xr(){let t=!0;for(d(e.braceL);!x(e.braceR)&&!r.error;){if(t)t=!1;else if(d(e.comma),x(e.braceR))break;Sc()}}function Sc(){if(S){ui();return}be(),r.tokens[r.tokens.length-1].identifierRole=L.ExportAccess,ve(l._as)&&be()}function vc(){const t=r.snapshot();return Ne(l._module),ve(l._from)?B(l._from)?(r.restoreFromSnapshot(t),!0):(r.restoreFromSnapshot(t),!1):h(e.comma)?(r.restoreFromSnapshot(t),!1):(r.restoreFromSnapshot(t),!0)}function Nc(){B(l._module)&&vc()&&_()}function B1(){if(S&&h(e.name)&&Ce()===e.eq){Jn();return}if(S&&B(l._type)){const t=I();if(t.type===e.name&&t.contextualKeyword!==l._from){if(Ne(l._type),Ce()===e.eq){Jn();return}}else(t.type===e.star||t.type===e.braceL)&&Ne(l._type)}h(e.string)||(Nc(),Rc(),Ne(l._from)),It(),M1(),F()}function Cc(){return h(e.name)}function O1(){yn()}function Rc(){V&&Ba();let t=!0;if(!(Cc()&&(O1(),!x(e.comma)))){if(h(e.star)){_(),Ne(l._as),O1();return}for(d(e.braceL);!x(e.braceR)&&!r.error;){if(t)t=!1;else if(x(e.colon)&&C("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),d(e.comma),x(e.braceR))break;Pc()}}}function Pc(){if(S){li();return}if(V){Oa();return}yn(),B(l._as)&&(r.tokens[r.tokens.length-1].identifierRole=L.ImportAccess,_(),yn())}function M1(){(h(e._with)||B(l._assert)&&!Xe())&&(_(),or(!1,!1))}function Lc(){return r.pos===0&&w.charCodeAt(0)===p.numberSign&&w.charCodeAt(1)===p.exclamationMark&&o(2),ke(),za()}class Fc{constructor(n,s){this.tokens=n,this.scopes=s}}function Dc(t,n,s,a){if(a&&s)throw new Error("Cannot combine flow and typescript plugins.");Re(t,n,s,a);const f=Lc();if(r.error)throw oe(r.error);return f}function Bc(t){let n=t.currentIndex(),s=0;const a=t.currentToken();do{const f=t.tokens[n];if(f.isOptionalChainStart&&s++,f.isOptionalChainEnd&&s--,s+=f.numNullishCoalesceStarts,s-=f.numNullishCoalesceEnds,f.contextualKeyword===l._await&&f.identifierRole==null&&f.scopeDepth===a.scopeDepth)return!0;n+=1}while(s>0&&n<t.tokens.length);return!1}class un{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(n,s,a,f,k){this.code=n,this.tokens=s,this.isFlowEnabled=a,this.disableESTransforms=f,this.helperManager=k,un.prototype.__init.call(this),un.prototype.__init2.call(this),un.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(n){this.resultCode=n.resultCode,this.tokenIndex=n.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(n){const s=this.resultCode.slice(n.resultCode.length);return this.resultCode=n.resultCode,s}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(n,s){return this.matches1AtIndex(n,e.name)&&this.tokens[n].contextualKeyword===s}identifierNameAtIndex(n){return this.identifierNameForToken(this.tokens[n])}identifierNameAtRelativeIndex(n){return this.identifierNameForToken(this.tokenAtRelativeIndex(n))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(n){return this.code.slice(n.start,n.end)}rawCodeForToken(n){return this.code.slice(n.start,n.end)}stringValueAtIndex(n){return this.stringValueForToken(this.tokens[n])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(n){return this.code.slice(n.start+1,n.end-1)}matches1AtIndex(n,s){return this.tokens[n].type===s}matches2AtIndex(n,s,a){return this.tokens[n].type===s&&this.tokens[n+1].type===a}matches3AtIndex(n,s,a,f){return this.tokens[n].type===s&&this.tokens[n+1].type===a&&this.tokens[n+2].type===f}matches1(n){return this.tokens[this.tokenIndex].type===n}matches2(n,s){return this.tokens[this.tokenIndex].type===n&&this.tokens[this.tokenIndex+1].type===s}matches3(n,s,a){return this.tokens[this.tokenIndex].type===n&&this.tokens[this.tokenIndex+1].type===s&&this.tokens[this.tokenIndex+2].type===a}matches4(n,s,a,f){return this.tokens[this.tokenIndex].type===n&&this.tokens[this.tokenIndex+1].type===s&&this.tokens[this.tokenIndex+2].type===a&&this.tokens[this.tokenIndex+3].type===f}matches5(n,s,a,f,k){return this.tokens[this.tokenIndex].type===n&&this.tokens[this.tokenIndex+1].type===s&&this.tokens[this.tokenIndex+2].type===a&&this.tokens[this.tokenIndex+3].type===f&&this.tokens[this.tokenIndex+4].type===k}matchesContextual(n){return this.matchesContextualAtIndex(this.tokenIndex,n)}matchesContextIdAndLabel(n,s){return this.matches1(n)&&this.currentToken().contextId===s}previousWhitespaceAndComments(){let n=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(n=n.replace(/@flow/g,"")),n}replaceToken(n){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=n,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(n){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=n,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let n=0;for(;!this.isAtEnd();){if(this.matches1(e.braceL))n++;else if(this.matches1(e.braceR)){if(n===0)return;n--}this.removeToken()}}copyExpectedToken(n){if(this.tokens[this.tokenIndex].type!==n)throw new Error(`Expected token ${n}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(n){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=n,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const n=this.currentToken();if((n.numNullishCoalesceStarts||n.isOptionalChainStart)&&(n.isAsyncOperation=Bc(this)),!this.disableESTransforms){if(n.numNullishCoalesceStarts)for(let s=0;s<n.numNullishCoalesceStarts;s++)n.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";n.isOptionalChainStart&&(n.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===e._delete?n.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):n.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const n=this.currentToken();if(n.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),n.numNullishCoalesceEnds&&!this.disableESTransforms)for(let s=0;s<n.numNullishCoalesceEnds;s++)this.resultCode+="))"}appendCode(n){this.resultCode+=n}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const n=this.currentToken();return this.code.slice(n.start,n.end)}tokenAtRelativeIndex(n){return this.tokens[this.tokenIndex+n]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function Oc(t,n,s,a){const f=n.snapshot(),k=Mc(n);let v=[];const U=[],ne=[];let fe=null;const Ae=[],we=[],re=n.currentToken().contextId;if(re==null)throw new Error("Expected non-null class context ID on class open-brace.");for(n.nextToken();!n.matchesContextIdAndLabel(e.braceR,re);)if(n.matchesContextual(l._constructor)&&!n.currentToken().isType)({constructorInitializerStatements:v,constructorInsertPos:fe}=j1(n));else if(n.matches1(e.semi))a||we.push({start:n.currentIndex(),end:n.currentIndex()+1}),n.nextToken();else if(n.currentToken().isType)n.nextToken();else{const Te=n.currentIndex();let Ve=!1,nt=!1,Qe=!1;for(;Dn(n.currentToken());)n.matches1(e._static)&&(Ve=!0),n.matches1(e.hash)&&(nt=!0),(n.matches1(e._declare)||n.matches1(e._abstract))&&(Qe=!0),n.nextToken();if(Ve&&n.matches1(e.braceL)){wr(n,re);continue}if(nt){wr(n,re);continue}if(n.matchesContextual(l._constructor)&&!n.currentToken().isType){({constructorInitializerStatements:v,constructorInsertPos:fe}=j1(n));continue}const rt=n.currentIndex();if(jc(n),n.matches1(e.lessThan)||n.matches1(e.parenL)){wr(n,re);continue}for(;n.currentToken().isType;)n.nextToken();if(n.matches1(e.eq)){const et=n.currentIndex(),ft=n.currentToken().rhsEndIndex;if(ft==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(n.nextToken();n.currentIndex()<ft;)t.processToken();let tt;Ve?(tt=s.claimFreeName("__initStatic"),ne.push(tt)):(tt=s.claimFreeName("__init"),U.push(tt)),Ae.push({initializerName:tt,equalsIndex:et,start:rt,end:n.currentIndex()})}else(!a||Qe)&&we.push({start:Te,end:n.currentIndex()})}return n.restoreToSnapshot(f),a?{headerInfo:k,constructorInitializerStatements:v,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:fe,fields:[],rangesToRemove:we}:{headerInfo:k,constructorInitializerStatements:v,instanceInitializerNames:U,staticInitializerNames:ne,constructorInsertPos:fe,fields:Ae,rangesToRemove:we}}function wr(t,n){for(t.nextToken();t.currentToken().contextId!==n;)t.nextToken();for(;Dn(t.tokenAtRelativeIndex(-1));)t.previousToken()}function Mc(t){const n=t.currentToken(),s=n.contextId;if(s==null)throw new Error("Expected context ID on class token.");const a=n.isExpression;if(a==null)throw new Error("Expected isExpression on class token.");let f=null,k=!1;for(t.nextToken(),t.matches1(e.name)&&(f=t.identifierName());!t.matchesContextIdAndLabel(e.braceL,s);)t.matches1(e._extends)&&!t.currentToken().isType&&(k=!0),t.nextToken();return{isExpression:a,className:f,hasSuperclass:k}}function j1(t){const n=[];t.nextToken();const s=t.currentToken().contextId;if(s==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!t.matchesContextIdAndLabel(e.parenR,s);)if(t.currentToken().contextId===s){if(t.nextToken(),Dn(t.currentToken())){for(t.nextToken();Dn(t.currentToken());)t.nextToken();const k=t.currentToken();if(k.type!==e.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const v=t.identifierNameForToken(k);n.push(`this.${v} = ${v}`)}}else t.nextToken();for(t.nextToken();t.currentToken().isType;)t.nextToken();let a=t.currentIndex(),f=!1;for(;!t.matchesContextIdAndLabel(e.braceR,s);){if(!f&&t.matches2(e._super,e.parenL)){t.nextToken();const k=t.currentToken().contextId;if(k==null)throw new Error("Expected a context ID on the super call");for(;!t.matchesContextIdAndLabel(e.parenR,k);)t.nextToken();a=t.currentIndex(),f=!0}t.nextToken()}return t.nextToken(),{constructorInitializerStatements:n,constructorInsertPos:a}}function Dn(t){return[e._async,e._get,e._set,e.plus,e.minus,e._readonly,e._static,e._public,e._private,e._protected,e._override,e._abstract,e.star,e._declare,e.hash].includes(t.type)}function jc(t){if(t.matches1(e.bracketL)){const s=t.currentToken().contextId;if(s==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!t.matchesContextIdAndLabel(e.bracketR,s);)t.nextToken();t.nextToken()}else t.nextToken()}function q1(t){if(t.removeInitialToken(),t.removeToken(),t.removeToken(),t.removeToken(),t.matches1(e.parenL))t.removeToken(),t.removeToken(),t.removeToken();else for(;t.matches1(e.dot);)t.removeToken(),t.removeToken()}const $1={typeDeclarations:new Set,valueDeclarations:new Set};function U1(t){const n=new Set,s=new Set;for(let a=0;a<t.tokens.length;a++){const f=t.tokens[a];f.type===e.name&&N(f)&&(f.isType?n.add(t.identifierNameForToken(f)):s.add(t.identifierNameForToken(f)))}return{typeDeclarations:n,valueDeclarations:s}}function V1(t){let n=t.currentIndex();for(;!t.matches1AtIndex(n,e.braceR);)n++;return t.matchesContextualAtIndex(n+1,l._from)&&t.matches1AtIndex(n+2,e.string)}function qt(t){(t.matches2(e._with,e.braceL)||t.matches2(e.name,e.braceL)&&t.matchesContextual(l._assert))&&(t.removeToken(),t.removeToken(),t.removeBalancedCode(),t.removeToken())}function W1(t,n,s,a){if(!t||n)return!1;const f=s.currentToken();if(f.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const k=f.rhsEndIndex-s.currentIndex();if(k!==3&&!(k===4&&s.matches1AtIndex(f.rhsEndIndex-1,e.semi)))return!1;const v=s.tokenAtRelativeIndex(2);if(v.type!==e.name)return!1;const U=s.identifierNameForToken(v);return a.typeDeclarations.has(U)&&!a.valueDeclarations.has(U)}class hn extends mt{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(n,s,a,f,k,v,U,ne,fe,Ae,we,re){super(),this.rootTransformer=n,this.tokens=s,this.importProcessor=a,this.nameManager=f,this.helperManager=k,this.reactHotLoaderTransformer=v,this.enableLegacyBabel5ModuleInterop=U,this.enableLegacyTypeScriptModuleInterop=ne,this.isTypeScriptTransformEnabled=fe,this.isFlowTransformEnabled=Ae,this.preserveDynamicImport=we,this.keepUnusedImports=re,hn.prototype.__init.call(this),hn.prototype.__init2.call(this),hn.prototype.__init3.call(this),this.declarationInfo=fe?U1(s):$1}getPrefixCode(){let n="";return this.hadExport&&(n+='Object.defineProperty(exports, "__esModule", {value: true});'),n}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
117
+ module.exports = exports.default;
118
+ `:""}process(){return this.tokens.matches3(e._import,e.name,e.eq)?this.processImportEquals():this.tokens.matches1(e._import)?(this.processImport(),!0):this.tokens.matches2(e._export,e.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(e._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(e.name,e.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(e.name)||this.tokens.matches1(e.jsxName)?this.processIdentifier():this.tokens.matches1(e.eq)?this.processAssignment():this.tokens.matches1(e.assign)?this.processComplexAssignment():this.tokens.matches1(e.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const n=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(n)?q1(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(e._import,e.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}const s=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${s}require`);const a=this.tokens.currentToken().contextId;if(a==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(e.parenR,a);)this.rootTransformer.processToken();this.tokens.replaceToken(s?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const s=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(s)),this.tokens.appendCode(this.importProcessor.claimImportCode(s))}qt(this.tokens),this.tokens.matches1(e.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(l._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,e.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,l._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(e.name)||this.tokens.matches1(e.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(e.string))return!1;let n=!1,s=!1;for(;!this.tokens.matches1(e.string);)(!n&&this.tokens.matches1(e.braceL)||this.tokens.matches1(e.comma))&&(this.tokens.removeToken(),this.tokens.matches1(e.braceR)||(s=!0),(this.tokens.matches2(e.name,e.comma)||this.tokens.matches2(e.name,e.braceR)||this.tokens.matches4(e.name,e.name,e.name,e.comma)||this.tokens.matches4(e.name,e.name,e.name,e.braceR))&&(n=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!n:this.isFlowTransformEnabled?s&&!n:!1}removeRemainingImport(){for(;!this.tokens.matches1(e.string);)this.tokens.removeToken()}processIdentifier(){const n=this.tokens.currentToken();if(n.shadowsGlobal)return!1;if(n.identifierRole===L.ObjectShorthand)return this.processObjectShorthand();if(n.identifierRole!==L.Access)return!1;const s=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(n));if(!s)return!1;let a=this.tokens.currentIndex()+1;for(;a<this.tokens.tokens.length&&this.tokens.tokens[a].type===e.parenR;)a++;return this.tokens.tokens[a].type===e.parenL?this.tokens.tokenAtRelativeIndex(1).type===e.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==e._new?(this.tokens.replaceToken(`${s}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.parenR)):this.tokens.replaceToken(`(0, ${s})`):this.tokens.replaceToken(s),!0}processObjectShorthand(){const n=this.tokens.identifierName(),s=this.importProcessor.getIdentifierReplacement(n);return s?(this.tokens.replaceToken(`${n}: ${s}`),!0):!1}processExport(){if(this.tokens.matches2(e._export,e._enum)||this.tokens.matches3(e._export,e._const,e._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(e._export,e._default))return this.tokens.matches3(e._export,e._default,e._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(e._export,e.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(e._export,e.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,l._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(e.braceL)){for(;!this.tokens.matches1(e.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(e._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(l._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,e.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),qt(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(e._export,e._var)||this.tokens.matches2(e._export,e._let)||this.tokens.matches2(e._export,e._const))return this.processExportVar(),!0;if(this.tokens.matches2(e._export,e._function)||this.tokens.matches3(e._export,e.name,e._function))return this.processExportFunction(),!0;if(this.tokens.matches2(e._export,e._class)||this.tokens.matches3(e._export,e._abstract,e._class)||this.tokens.matches2(e._export,e.at))return this.processExportClass(),!0;if(this.tokens.matches2(e._export,e.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const n=this.tokens.currentIndex(),s=this.tokens.tokens[n-1];if(s.isType||s.type!==e.name||s.shadowsGlobal||n>=2&&this.tokens.matches1AtIndex(n-2,e.dot)||n>=2&&[e._var,e._let,e._const].includes(this.tokens.tokens[n-2].type))return!1;const a=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(s));return a?(this.tokens.copyToken(),this.tokens.appendCode(` ${a} =`),!0):!1}processComplexAssignment(){const n=this.tokens.currentIndex(),s=this.tokens.tokens[n-1];if(s.type!==e.name||s.shadowsGlobal||n>=2&&this.tokens.matches1AtIndex(n-2,e.dot))return!1;const a=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(s));return a?(this.tokens.appendCode(` = ${a}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){const n=this.tokens.currentIndex(),s=this.tokens.tokens[n+1];if(s.type!==e.name||s.shadowsGlobal||n+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(n+2,e.dot)||this.tokens.matches1AtIndex(n+2,e.bracketL)||this.tokens.matches1AtIndex(n+2,e.parenL)))return!1;const a=this.tokens.identifierNameForToken(s),f=this.importProcessor.resolveExportBinding(a);return f?(this.tokens.appendCode(`${f} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){const n=this.tokens.currentIndex(),s=this.tokens.tokens[n],a=this.tokens.tokens[n+1];if(s.type!==e.name||s.shadowsGlobal||n>=1&&this.tokens.matches1AtIndex(n-1,e.dot))return!1;const f=this.tokens.identifierNameForToken(s),k=this.importProcessor.resolveExportBinding(f);if(!k)return!1;const v=this.tokens.rawCodeForToken(a),U=this.importProcessor.getIdentifierReplacement(f)||f;if(v==="++")this.tokens.replaceToken(`(${U} = ${k} = ${U} + 1, ${U} - 1)`);else if(v==="--")this.tokens.replaceToken(`(${U} = ${k} = ${U} - 1, ${U} + 1)`);else throw new Error(`Unexpected operator: ${v}`);return this.tokens.removeToken(),!0}processExportDefault(){let n=!0;if(this.tokens.matches4(e._export,e._default,e._function,e.name)||this.tokens.matches5(e._export,e._default,e.name,e._function,e.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,l._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const s=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${s};`)}else if(this.tokens.matches4(e._export,e._default,e._class,e.name)||this.tokens.matches5(e._export,e._default,e._abstract,e._class,e.name)||this.tokens.matches3(e._export,e._default,e.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(e._abstract)&&this.tokens.removeToken();const s=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${s};`)}else if(W1(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))n=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const s=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${s}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${s} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(s)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");n&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(e.at);)if(this.tokens.copyToken(),this.tokens.matches1(e.parenL))this.tokens.copyExpectedToken(e.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.parenR);else{for(this.tokens.copyExpectedToken(e.name);this.tokens.matches1(e.dot);)this.tokens.copyExpectedToken(e.dot),this.tokens.copyExpectedToken(e.name);this.tokens.matches1(e.parenL)&&(this.tokens.copyExpectedToken(e.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let n=this.tokens.currentIndex();if(n++,n++,!this.tokens.matches1AtIndex(n,e.name))return!1;for(n++;n<this.tokens.tokens.length&&this.tokens.tokens[n].isType;)n++;return!!this.tokens.matches1AtIndex(n,e.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const n=this.tokens.identifierName();for(;!this.tokens.matches1(e.eq);)this.rootTransformer.processToken();const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${n} = ${n}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const n=this.tokens.matches1(e.braceL);n&&this.tokens.appendCode("(");let s=0;for(;;)if(this.tokens.matches1(e.braceL)||this.tokens.matches1(e.dollarBraceL)||this.tokens.matches1(e.bracketL))s++,this.tokens.copyToken();else if(this.tokens.matches1(e.braceR)||this.tokens.matches1(e.bracketR))s--,this.tokens.copyToken();else{if(s===0&&!this.tokens.matches1(e.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(e.eq)){const a=this.tokens.currentToken().rhsEndIndex;if(a==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<a;)this.rootTransformer.processToken()}else{const a=this.tokens.currentToken();if(Me(a)){const f=this.tokens.identifierName();let k=this.importProcessor.getIdentifierReplacement(f);if(k===null)throw new Error(`Expected a replacement for ${f} in \`export var\` syntax.`);Q(a)&&(k=`${f}: ${k}`),this.tokens.replaceToken(k)}else this.rootTransformer.processToken()}}if(n){const a=this.tokens.currentToken().rhsEndIndex;if(a==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<a;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const n=this.processNamedFunction();this.tokens.appendCode(` exports.${n} = ${n};`)}processNamedFunction(){if(this.tokens.matches1(e._function))this.tokens.copyToken();else if(this.tokens.matches2(e.name,e._function)){if(!this.tokens.matchesContextual(l._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(e.star)&&this.tokens.copyToken(),!this.tokens.matches1(e.name))throw new Error("Expected identifier for exported function name.");const n=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(e.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(e.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.braceR),n}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(e._abstract)&&this.tokens.removeToken();const n=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${n} = ${n};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const n=V1(this.tokens),s=[];for(;;){if(this.tokens.matches1(e.braceR)){this.tokens.removeToken();break}const a=Qt(this.tokens);for(;this.tokens.currentIndex()<a.endIndex;)this.tokens.removeToken();if(!(a.isType||!n&&this.shouldElideExportedIdentifier(a.leftName))){const k=a.rightName;k==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;const v=a.leftName,U=this.importProcessor.getIdentifierReplacement(v);s.push(`exports.${k} = ${U||v};`)}if(this.tokens.matches1(e.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(e.comma,e.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(e.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(l._from)){this.tokens.removeToken();const a=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(a)),qt(this.tokens)}else this.tokens.appendCode(s.join(" "));this.tokens.matches1(e.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(e.string);)this.tokens.removeToken();const n=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(n)),qt(this.tokens),this.tokens.matches1(e.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(n){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(n)}}class qc extends mt{constructor(n,s,a,f,k,v,U,ne){super(),this.tokens=n,this.nameManager=s,this.helperManager=a,this.reactHotLoaderTransformer=f,this.isTypeScriptTransformEnabled=k,this.isFlowTransformEnabled=v,this.keepUnusedImports=U,this.nonTypeIdentifiers=k&&!U?$s(n,ne):new Set,this.declarationInfo=k&&!U?U1(n):$1,this.injectCreateRequireForImportRequire=!!ne.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(e._import,e.name,e.eq))return this.processImportEquals();if(this.tokens.matches4(e._import,e.name,e.name,e.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,l._type)){this.tokens.removeInitialToken();for(let n=0;n<7;n++)this.tokens.removeToken();return!0}if(this.tokens.matches2(e._export,e.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(e._export,e._import,e.name,e.name,e.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,l._type)){this.tokens.removeInitialToken();for(let n=0;n<8;n++)this.tokens.removeToken();return!0}if(this.tokens.matches1(e._import))return this.processImport();if(this.tokens.matches2(e._export,e._default))return this.processExportDefault();if(this.tokens.matches2(e._export,e.braceL))return this.processNamedExports();if(this.tokens.matches2(e._export,e.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,l._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(e.braceL)){for(;!this.tokens.matches1(e.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(e._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(l._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,e.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),qt(this.tokens)),!0}return!1}processImportEquals(){const n=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(n)?q1(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(e._import,e.parenL))return!1;const n=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(n);!this.tokens.matches1(e.string);)this.tokens.removeToken();this.tokens.removeToken(),qt(this.tokens),this.tokens.matches1(e.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(e._import),this.tokens.matchesContextual(l._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,e.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,l._from))return!0;if(this.tokens.matches1(e.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(l._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,l._from)&&this.tokens.copyToken();let n=!1,s=!1,a=!1;if(this.tokens.matches1(e.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(e.comma)&&this.tokens.removeToken()):(n=!0,this.tokens.copyToken(),this.tokens.matches1(e.comma)&&(a=!0,this.tokens.removeToken()))),this.tokens.matches1(e.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(a&&this.tokens.appendCode(","),n=!0,this.tokens.copyExpectedToken(e.star),this.tokens.copyExpectedToken(e.name),this.tokens.copyExpectedToken(e.name));else if(this.tokens.matches1(e.braceL)){for(a&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(e.braceR);){s=!0;const f=Qt(this.tokens);if(f.isType||this.shouldAutomaticallyElideImportedName(f.rightName)){for(;this.tokens.currentIndex()<f.endIndex;)this.tokens.removeToken();this.tokens.matches1(e.comma)&&this.tokens.removeToken()}else{for(n=!0;this.tokens.currentIndex()<f.endIndex;)this.tokens.copyToken();this.tokens.matches1(e.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(e.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!n:this.isFlowTransformEnabled?s&&!n:!1}shouldAutomaticallyElideImportedName(n){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(n)}processExportDefault(){if(W1(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(e._export,e._default,e._function,e.name)||this.tokens.matches5(e._export,e._default,e.name,e._function,e.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,l._async)||this.tokens.matches4(e._export,e._default,e._class,e.name)||this.tokens.matches5(e._export,e._default,e._abstract,e._class,e.name))&&this.reactHotLoaderTransformer){const s=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${s}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${s} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(s),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(e._export),this.tokens.copyExpectedToken(e.braceL);const n=V1(this.tokens);let s=!1;for(;!this.tokens.matches1(e.braceR);){const a=Qt(this.tokens);if(a.isType||!n&&this.shouldElideExportedName(a.leftName)){for(;this.tokens.currentIndex()<a.endIndex;)this.tokens.removeToken();this.tokens.matches1(e.comma)&&this.tokens.removeToken()}else{for(s=!0;this.tokens.currentIndex()<a.endIndex;)this.tokens.copyToken();this.tokens.matches1(e.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(e.braceR),!this.keepUnusedImports&&n&&!s&&(this.tokens.removeToken(),this.tokens.removeToken(),qt(this.tokens)),!0}shouldElideExportedName(n){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(n)&&!this.declarationInfo.valueDeclarations.has(n)}}class $c extends mt{constructor(n,s,a){super(),this.rootTransformer=n,this.tokens=s,this.isImportsTransformEnabled=a}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(e._enum)?(this.processEnum(),!0):this.tokens.matches2(e._export,e._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(e._export,e._default,e._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const n=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${n} = ${n};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const n=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${n};`):this.tokens.appendCode(` export default ${n};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(e.name);let n=!1;this.tokens.matchesContextual(l._of)&&(this.tokens.removeToken(),n=this.tokens.matchesContextual(l._symbol),this.tokens.removeToken());const s=this.tokens.matches3(e.braceL,e.name,e.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const a=!n&&!s;for(this.tokens.replaceTokenTrimmingLeftWhitespace(a?".Mirrored([":"({");!this.tokens.matches1(e.braceR);){if(this.tokens.matches1(e.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(n,s),this.tokens.matches1(e.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(a?"]);":"});")}processEnumElement(n,s){if(n){const a=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${a}")`)}else s?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}function Uc(t){let n,s=t[0],a=1;for(;a<t.length;){const f=t[a],k=t[a+1];if(a+=2,(f==="optionalAccess"||f==="optionalCall")&&s==null)return;f==="access"||f==="optionalAccess"?(n=s,s=k(s)):(f==="call"||f==="optionalCall")&&(s=k((...v)=>s.call(n,...v)),n=void 0)}return s}const Bn="jest",Vc=["mock","unmock","enableAutomock","disableAutomock"];class Ir extends mt{__init(){this.hoistedFunctionNames=[]}constructor(n,s,a,f){super(),this.rootTransformer=n,this.tokens=s,this.nameManager=a,this.importProcessor=f,Ir.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(e.name,e.dot,e.name,e.parenL)&&this.tokens.identifierName()===Bn?Uc([this,"access",n=>n.importProcessor,"optionalAccess",n=>n.getGlobalNames,"call",n=>n(),"optionalAccess",n=>n.has,"call",n=>n(Bn)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(n=>`${n}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let n=!1;for(;this.tokens.matches3(e.dot,e.name,e.parenL);){const s=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Vc.includes(s)){const f=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(f),this.tokens.replaceToken(`function ${f}(){${Bn}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.parenR),this.tokens.appendCode(";}"),n=!1}else n?this.tokens.copyToken():this.tokens.replaceToken(`${Bn}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.parenR),n=!0}return!0}}class Wc extends mt{constructor(n){super(),this.tokens=n}process(){if(this.tokens.matches1(e.num)){const n=this.tokens.currentTokenCode();if(n.includes("_"))return this.tokens.replaceToken(n.replace(/_/g,"")),!0}return!1}}class Hc extends mt{constructor(n,s){super(),this.tokens=n,this.nameManager=s}process(){return this.tokens.matches2(e._catch,e.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}}class Gc extends mt{constructor(n,s){super(),this.tokens=n,this.nameManager=s}process(){if(this.tokens.matches1(e.nullishCoalescing)){const a=this.tokens.currentToken();return this.tokens.tokens[a.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(e._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;const s=this.tokens.currentToken().subscriptStartIndex;if(s!=null&&this.tokens.tokens[s].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==e._super){const a=this.nameManager.claimFreeName("_");let f;if(s>0&&this.tokens.matches1AtIndex(s-1,e._delete)&&this.isLastSubscriptInChain()?f=`${a} => delete ${a}`:f=`${a} => ${a}`,this.tokens.tokens[s].isAsyncOperation&&(f=`async ${f}`),this.tokens.matches2(e.questionDot,e.parenL)||this.tokens.matches2(e.questionDot,e.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${f}`);else if(this.tokens.matches2(e.questionDot,e.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${f}`);else if(this.tokens.matches1(e.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${f}.`);else if(this.tokens.matches1(e.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${f}.`);else if(this.tokens.matches1(e.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${f}[`);else if(this.tokens.matches1(e.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${f}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let n=0;for(let s=this.tokens.currentIndex()+1;;s++){if(s>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[s].isOptionalChainStart?n++:this.tokens.tokens[s].isOptionalChainEnd&&n--,n<0)return!0;if(n===0&&this.tokens.tokens[s].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let n=0,s=this.tokens.currentIndex()-1;for(;;){if(s<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[s].isOptionalChainStart?n--:this.tokens.tokens[s].isOptionalChainEnd&&n++,n<0)return!1;if(n===0&&this.tokens.tokens[s].subscriptStartIndex!=null)return this.tokens.tokens[s-1].type===e._super;s--}}}class Xc extends mt{constructor(n,s,a,f){super(),this.rootTransformer=n,this.tokens=s,this.importProcessor=a,this.options=f}process(){const n=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const s=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return s?this.tokens.replaceToken(`(0, ${s})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(n),!0}if(this.tokens.matches3(e.name,e.dot,e.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const s=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return s?(this.tokens.replaceToken(s),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(n),!0}return!1}tryProcessCreateClassCall(n){const s=this.findDisplayName(n);s&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(e.parenL),this.tokens.copyExpectedToken(e.braceL),this.tokens.appendCode(`displayName: '${s}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(e.braceR),this.tokens.copyExpectedToken(e.parenR))}findDisplayName(n){return n<2?null:this.tokens.matches2AtIndex(n-2,e.name,e.eq)?this.tokens.identifierNameAtIndex(n-2):n>=2&&this.tokens.tokens[n-2].identifierRole===L.ObjectKey?this.tokens.identifierNameAtIndex(n-2):this.tokens.matches2AtIndex(n-2,e._export,e._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const s=(this.options.filePath||"unknown").split("/"),a=s[s.length-1],f=a.lastIndexOf("."),k=f===-1?a:a.slice(0,f);return k==="index"&&s[s.length-2]?s[s.length-2]:k}classNeedsDisplayName(){let n=this.tokens.currentIndex();if(!this.tokens.matches2(e.parenL,e.braceL))return!1;const s=n+1,a=this.tokens.tokens[s].contextId;if(a==null)throw new Error("Expected non-null context ID on object open-brace.");for(;n<this.tokens.tokens.length;n++){const f=this.tokens.tokens[n];if(f.type===e.braceR&&f.contextId===a){n++;break}if(this.tokens.identifierNameAtIndex(n)==="displayName"&&this.tokens.tokens[n].identifierRole===L.ObjectKey&&f.contextId===a)return!1}if(n===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(n,e.parenR)||this.tokens.matches2AtIndex(n,e.comma,e.parenR)}}class br extends mt{__init(){this.extractedDefaultExportName=null}constructor(n,s){super(),this.tokens=n,this.filePath=s,br.prototype.__init.call(this)}setExtractedDefaultExportName(n){this.extractedDefaultExportName=n}getPrefixCode(){return`
119
+ (function () {
120
+ var enterModule = require('react-hot-loader').enterModule;
121
+ enterModule && enterModule(module);
122
+ })();`.replace(/\s+/g," ").trim()}getSuffixCode(){const n=new Set;for(const a of this.tokens.tokens)!a.isType&&N(a)&&a.identifierRole!==L.ImportDeclaration&&n.add(this.tokens.identifierNameForToken(a));const s=Array.from(n).map(a=>({variableName:a,uniqueLocalName:a}));return this.extractedDefaultExportName&&s.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`
123
+ ;(function () {
124
+ var reactHotLoader = require('react-hot-loader').default;
125
+ var leaveModule = require('react-hot-loader').leaveModule;
126
+ if (!reactHotLoader) {
127
+ return;
128
+ }
129
+ ${s.map(({variableName:a,uniqueLocalName:f})=>` reactHotLoader.register(${a}, "${f}", ${JSON.stringify(this.filePath||"")});`).join(`
130
+ `)}
131
+ leaveModule(module);
132
+ })();`}process(){return!1}}const zc=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function H1(t){if(t.length===0||!me[t.charCodeAt(0)])return!1;for(let n=1;n<t.length;n++)if(!$[t.charCodeAt(n)])return!1;return!zc.has(t)}class Yc extends mt{constructor(n,s,a){super(),this.rootTransformer=n,this.tokens=s,this.isImportsTransformEnabled=a}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(e._public)||this.tokens.matches1(e._protected)||this.tokens.matches1(e._private)||this.tokens.matches1(e._abstract)||this.tokens.matches1(e._readonly)||this.tokens.matches1(e._override)||this.tokens.matches1(e.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(e._enum)||this.tokens.matches2(e._const,e._enum)?(this.processEnum(),!0):this.tokens.matches2(e._export,e._enum)||this.tokens.matches3(e._export,e._const,e._enum)?(this.processEnum(!0),!0):!1}processEnum(n=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(e._const)||this.tokens.matches1(e._enum);)this.tokens.removeToken();const s=this.tokens.identifierName();this.tokens.removeToken(),n&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${s}; (function (${s})`),this.tokens.copyExpectedToken(e.braceL),this.processEnumBody(s),this.tokens.copyExpectedToken(e.braceR),n&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${s} || (exports.${s} = ${s} = {}));`):this.tokens.appendCode(`)(${s} || (${s} = {}));`)}processEnumBody(n){let s=null;for(;!this.tokens.matches1(e.braceR);){const{nameStringCode:a,variableName:f}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(e.eq,e.string,e.comma)||this.tokens.matches3(e.eq,e.string,e.braceR)?this.processStringLiteralEnumMember(n,a,f):this.tokens.matches1(e.eq)?this.processExplicitValueEnumMember(n,a,f):this.processImplicitValueEnumMember(n,a,f,s),this.tokens.matches1(e.comma)&&this.tokens.removeToken(),f!=null?s=f:s=`${n}[${a}]`}}extractEnumKeyInfo(n){if(n.type===e.name){const s=this.tokens.identifierNameForToken(n);return{nameStringCode:`"${s}"`,variableName:H1(s)?s:null}}else if(n.type===e.string){const s=this.tokens.stringValueForToken(n);return{nameStringCode:this.tokens.code.slice(n.start,n.end),variableName:H1(s)?s:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(n,s,a){a!=null?(this.tokens.appendCode(`const ${a}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${n}[${s}] = ${a};`)):(this.tokens.appendCode(`${n}[${s}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(n,s,a){const f=this.tokens.currentToken().rhsEndIndex;if(f==null)throw new Error("Expected rhsEndIndex on enum assign.");if(a!=null){for(this.tokens.appendCode(`const ${a}`),this.tokens.copyToken();this.tokens.currentIndex()<f;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${n}[${n}[${s}] = ${a}] = ${s};`)}else{for(this.tokens.appendCode(`${n}[${n}[${s}]`),this.tokens.copyToken();this.tokens.currentIndex()<f;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${s};`)}}processImplicitValueEnumMember(n,s,a,f){let k=f!=null?`${f} + 1`:"0";a!=null&&(this.tokens.appendCode(`const ${a} = ${k}; `),k=a),this.tokens.appendCode(`${n}[${n}[${s}] = ${k}] = ${s};`)}}class On{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(n,s,a,f){On.prototype.__init.call(this),On.prototype.__init2.call(this),this.nameManager=n.nameManager,this.helperManager=n.helperManager;const{tokenProcessor:k,importProcessor:v}=n;this.tokens=k,this.isImportsTransformEnabled=s.includes("imports"),this.isReactHotLoaderTransformEnabled=s.includes("react-hot-loader"),this.disableESTransforms=!!f.disableESTransforms,f.disableESTransforms||(this.transformers.push(new Gc(k,this.nameManager)),this.transformers.push(new Wc(k)),this.transformers.push(new Hc(k,this.nameManager))),s.includes("jsx")&&(f.jsxRuntime!=="preserve"&&this.transformers.push(new Lt(this,k,v,this.nameManager,f)),this.transformers.push(new Xc(this,k,v,f)));let U=null;if(s.includes("react-hot-loader")){if(!f.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");U=new br(k,f.filePath),this.transformers.push(U)}if(s.includes("imports")){if(v===null)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new hn(this,k,v,this.nameManager,this.helperManager,U,a,!!f.enableLegacyTypeScriptModuleInterop,s.includes("typescript"),s.includes("flow"),!!f.preserveDynamicImport,!!f.keepUnusedImports))}else this.transformers.push(new qc(k,this.nameManager,this.helperManager,U,s.includes("typescript"),s.includes("flow"),!!f.keepUnusedImports,f));s.includes("flow")&&this.transformers.push(new $c(this,k,s.includes("imports"))),s.includes("typescript")&&this.transformers.push(new Yc(this,k,s.includes("imports"))),s.includes("jest")&&this.transformers.push(new Ir(this,k,this.nameManager,v))}transform(){this.tokens.reset(),this.processBalancedCode();let s=this.isImportsTransformEnabled?'"use strict";':"";for(const v of this.transformers)s+=v.getPrefixCode();s+=this.helperManager.emitHelpers(),s+=this.generatedVariables.map(v=>` var ${v};`).join("");for(const v of this.transformers)s+=v.getHoistedCode();let a="";for(const v of this.transformers)a+=v.getSuffixCode();const f=this.tokens.finish();let{code:k}=f;if(k.startsWith("#!")){let v=k.indexOf(`
133
+ `);return v===-1&&(v=k.length,k+=`
134
+ `),{code:k.slice(0,v+1)+s+k.slice(v+1)+a,mappings:this.shiftMappings(f.mappings,s.length)}}else return{code:s+k+a,mappings:this.shiftMappings(f.mappings,s.length)}}processBalancedCode(){let n=0,s=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(e.braceL)||this.tokens.matches1(e.dollarBraceL))n++;else if(this.tokens.matches1(e.braceR)){if(n===0)return;n--}if(this.tokens.matches1(e.parenL))s++;else if(this.tokens.matches1(e.parenR)){if(s===0)return;s--}this.processToken()}}processToken(){if(this.tokens.matches1(e._class)){this.processClass();return}for(const n of this.transformers)if(n.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(e._class,e.name))throw new Error("Expected identifier for exported class name.");const n=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),n}processClass(){const n=Oc(this,this.tokens,this.nameManager,this.disableESTransforms),s=(n.headerInfo.isExpression||!n.headerInfo.className)&&n.staticInitializerNames.length+n.instanceInitializerNames.length>0;let a=n.headerInfo.className;s&&(a=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(a),this.tokens.appendCode(` (${a} =`));const k=this.tokens.currentToken().contextId;if(k==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(e._class);!this.tokens.matchesContextIdAndLabel(e.braceL,k);)this.processToken();this.processClassBody(n,a);const v=n.staticInitializerNames.map(U=>`${a}.${U}()`);s?this.tokens.appendCode(`, ${v.map(U=>`${U}, `).join("")}${a})`):n.staticInitializerNames.length>0&&this.tokens.appendCode(` ${v.map(U=>`${U};`).join(" ")}`)}processClassBody(n,s){const{headerInfo:a,constructorInsertPos:f,constructorInitializerStatements:k,fields:v,instanceInitializerNames:U,rangesToRemove:ne}=n;let fe=0,Ae=0;const we=this.tokens.currentToken().contextId;if(we==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(e.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const re=k.length+U.length>0;if(f===null&&re){const Te=this.makeConstructorInitCode(k,U,s);if(a.hasSuperclass){const Ve=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${Ve}) { super(...${Ve}); ${Te}; }`)}else this.tokens.appendCode(`constructor() { ${Te}; }`)}for(;!this.tokens.matchesContextIdAndLabel(e.braceR,we);)if(fe<v.length&&this.tokens.currentIndex()===v[fe].start){let Te=!1;for(this.tokens.matches1(e.bracketL)?this.tokens.copyTokenWithPrefix(`${v[fe].initializerName}() {this`):this.tokens.matches1(e.string)||this.tokens.matches1(e.num)?(this.tokens.copyTokenWithPrefix(`${v[fe].initializerName}() {this[`),Te=!0):this.tokens.copyTokenWithPrefix(`${v[fe].initializerName}() {this.`);this.tokens.currentIndex()<v[fe].end;)Te&&this.tokens.currentIndex()===v[fe].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),fe++}else if(Ae<ne.length&&this.tokens.currentIndex()>=ne[Ae].start){for(this.tokens.currentIndex()<ne[Ae].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<ne[Ae].end;)this.tokens.removeToken();Ae++}else this.tokens.currentIndex()===f?(this.tokens.copyToken(),re&&this.tokens.appendCode(`;${this.makeConstructorInitCode(k,U,s)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(e.braceR)}makeConstructorInitCode(n,s,a){return[...n,...s.map(f=>`${a}.prototype.${f}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(e.parenR,e.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let n=this.tokens.currentIndex()+1;for(;this.tokens.tokens[n].isType;)n++;if(this.tokens.matches1AtIndex(n,e.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<n;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(l._async)&&!this.tokens.matches1(e._async))return!1;const n=this.tokens.tokenAtRelativeIndex(1);if(n.type!==e.lessThan||!n.isType)return!1;let s=this.tokens.currentIndex()+1;for(;this.tokens.tokens[s].isType;)s++;if(this.tokens.matches1AtIndex(s,e.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<s;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(n,s){for(let a=0;a<n.length;a++){const f=n[a];f!==void 0&&(n[a]=f+s)}return n}}var Tl=K(81236);function El(t,n){if(n.length===0)return"";const s=Object.keys(n[0]).filter(re=>re!=="type"&&re!=="value"&&re!=="start"&&re!=="end"&&re!=="loc"),a=Object.keys(n[0].type).filter(re=>re!=="label"&&re!=="keyword"),f=["Location","Label","Raw",...s,...a],k=new LinesAndColumns(t),v=[f,...n.map(ne)],U=f.map(()=>0);for(const re of v)for(let Te=0;Te<re.length;Te++)U[Te]=Math.max(U[Te],re[Te].length);return v.map(re=>re.map((Te,Ve)=>Te.padEnd(U[Ve])).join(" ")).join(`
135
+ `);function ne(re){const Te=t.slice(re.start,re.end);return[Ae(re.start,re.end),formatTokenType(re.type),Jc(String(Te),14),...s.map(Ve=>fe(re[Ve],Ve)),...a.map(Ve=>fe(re.type[Ve],Ve))]}function fe(re,Te){return re===!0?Te:re===!1||re===null?"":String(re)}function Ae(re,Te){return`${we(re)}-${we(Te)}`}function we(re){const Te=k.locationForIndex(re);return Te?`${Te.line+1}:${Te.column+1}`:"Unknown"}}function Jc(t,n){return t.length>n?`${t.slice(0,n-3)}...`:t}function Qc(t){const n=new Set;for(let s=0;s<t.tokens.length;s++)t.matches1AtIndex(s,e._import)&&!t.matches3AtIndex(s,e._import,e.name,e.eq)&&Zc(t,s,n);return n}function Zc(t,n,s){n++,!t.matches1AtIndex(n,e.parenL)&&(t.matches1AtIndex(n,e.name)&&(s.add(t.identifierNameAtIndex(n)),n++,t.matches1AtIndex(n,e.comma)&&n++),t.matches1AtIndex(n,e.star)&&(n+=2,s.add(t.identifierNameAtIndex(n)),n++),t.matches1AtIndex(n,e.braceL)&&(n++,Kc(t,n,s)))}function Kc(t,n,s){for(;;){if(t.matches1AtIndex(n,e.braceR))return;const a=Qt(t,n);if(n=a.endIndex,a.isType||s.add(a.rightName),t.matches2AtIndex(n,e.comma,e.braceR))return;if(t.matches1AtIndex(n,e.braceR))return;if(t.matches1AtIndex(n,e.comma))n++;else throw new Error(`Unexpected token: ${JSON.stringify(t.tokens[n])}`)}}function Al(){return"3.35.0"}function el(t,n){ko(n);try{const s=G1(t,n),f=new On(s,n.transforms,!!n.enableLegacyBabel5ModuleInterop,n).transform();let k={code:f.code};if(n.sourceMapOptions){if(!n.filePath)throw new Error("filePath must be specified when generating a source map.");k=Z1(Q1({},k),{sourceMap:so(f,n.filePath,n.sourceMapOptions,t,s.tokenProcessor.tokens)})}return k}catch(s){throw n.filePath&&(s.message=`Error transforming ${n.filePath}: ${s.message}`),s}}function Sl(t,n){const s=G1(t,n).tokenProcessor.tokens;return formatTokens(t,s)}function G1(t,n){const s=n.transforms.includes("jsx"),a=n.transforms.includes("typescript"),f=n.transforms.includes("flow"),k=n.disableESTransforms===!0,v=Dc(t,s,a,f),U=v.tokens,ne=v.scopes,fe=new jn(t,U),Ae=new _n(fe),we=new un(t,U,f,k,Ae),re=!!n.enableLegacyTypeScriptModuleInterop;let Te=null;return n.transforms.includes("imports")?(Te=new Ft(fe,we,re,n,n.transforms.includes("typescript"),!!n.keepUnusedImports,Ae),Te.preprocessTokens(),Us(we,ne,Te.getGlobalNames()),n.transforms.includes("typescript")&&!n.keepUnusedImports&&Te.pruneTypeOnlyImports()):n.transforms.includes("typescript")&&!n.keepUnusedImports&&Us(we,ne,Qc(we)),{tokenProcessor:we,scopes:ne,nameManager:fe,importProcessor:Te,helperManager:Ae}}function Tr(t){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tr(t)}function Er(){"use strict";Er=function(){return t};var t={},n=Object.prototype,s=n.hasOwnProperty,a=Object.defineProperty||function(ee,M,X){ee[M]=X.value},f=typeof Symbol=="function"?Symbol:{},k=f.iterator||"@@iterator",v=f.asyncIterator||"@@asyncIterator",U=f.toStringTag||"@@toStringTag";function ne(ee,M,X){return Object.defineProperty(ee,M,{value:X,enumerable:!0,configurable:!0,writable:!0}),ee[M]}try{ne({},"")}catch(ee){ne=function(X,ye,Se){return X[ye]=Se}}function fe(ee,M,X,ye){var Se=M&&M.prototype instanceof re?M:re,Ie=Object.create(Se.prototype),He=new yt(ye||[]);return a(Ie,"_invoke",{value:Nt(ee,X,He)}),Ie}function Ae(ee,M,X){try{return{type:"normal",arg:ee.call(M,X)}}catch(ye){return{type:"throw",arg:ye}}}t.wrap=fe;var we={};function re(){}function Te(){}function Ve(){}var nt={};ne(nt,k,function(){return this});var Qe=Object.getPrototypeOf,rt=Qe&&Qe(Qe(xt([])));rt&&rt!==n&&s.call(rt,k)&&(nt=rt);var et=Ve.prototype=re.prototype=Object.create(nt);function ft(ee){["next","throw","return"].forEach(function(M){ne(ee,M,function(X){return this._invoke(M,X)})})}function tt(ee,M){function X(Se,Ie,He,Ye){var Je=Ae(ee[Se],ee,Ie);if(Je.type!=="throw"){var ct=Je.arg,st=ct.value;return st&&Tr(st)=="object"&&s.call(st,"__await")?M.resolve(st.__await).then(function(lt){X("next",lt,He,Ye)},function(lt){X("throw",lt,He,Ye)}):M.resolve(st).then(function(lt){ct.value=lt,He(ct)},function(lt){return X("throw",lt,He,Ye)})}Ye(Je.arg)}var ye;a(this,"_invoke",{value:function(Ie,He){function Ye(){return new M(function(Je,ct){X(Ie,He,Je,ct)})}return ye=ye?ye.then(Ye,Ye):Ye()}})}function Nt(ee,M,X){var ye="suspendedStart";return function(Se,Ie){if(ye==="executing")throw new Error("Generator is already running");if(ye==="completed"){if(Se==="throw")throw Ie;return Tt()}for(X.method=Se,X.arg=Ie;;){var He=X.delegate;if(He){var Ye=bt(He,X);if(Ye){if(Ye===we)continue;return Ye}}if(X.method==="next")X.sent=X._sent=X.arg;else if(X.method==="throw"){if(ye==="suspendedStart")throw ye="completed",X.arg;X.dispatchException(X.arg)}else X.method==="return"&&X.abrupt("return",X.arg);ye="executing";var Je=Ae(ee,M,X);if(Je.type==="normal"){if(ye=X.done?"completed":"suspendedYield",Je.arg===we)continue;return{value:Je.arg,done:X.done}}Je.type==="throw"&&(ye="completed",X.method="throw",X.arg=Je.arg)}}}function bt(ee,M){var X=M.method,ye=ee.iterator[X];if(ye===void 0)return M.delegate=null,X==="throw"&&ee.iterator.return&&(M.method="return",M.arg=void 0,bt(ee,M),M.method==="throw")||X!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+X+"' method")),we;var Se=Ae(ye,ee.iterator,M.arg);if(Se.type==="throw")return M.method="throw",M.arg=Se.arg,M.delegate=null,we;var Ie=Se.arg;return Ie?Ie.done?(M[ee.resultName]=Ie.value,M.next=ee.nextLoc,M.method!=="return"&&(M.method="next",M.arg=void 0),M.delegate=null,we):Ie:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,we)}function Ct(ee){var M={tryLoc:ee[0]};1 in ee&&(M.catchLoc=ee[1]),2 in ee&&(M.finallyLoc=ee[2],M.afterLoc=ee[3]),this.tryEntries.push(M)}function _t(ee){var M=ee.completion||{};M.type="normal",delete M.arg,ee.completion=M}function yt(ee){this.tryEntries=[{tryLoc:"root"}],ee.forEach(Ct,this),this.reset(!0)}function xt(ee){if(ee){var M=ee[k];if(M)return M.call(ee);if(typeof ee.next=="function")return ee;if(!isNaN(ee.length)){var X=-1,ye=function Se(){for(;++X<ee.length;)if(s.call(ee,X))return Se.value=ee[X],Se.done=!1,Se;return Se.value=void 0,Se.done=!0,Se};return ye.next=ye}}return{next:Tt}}function Tt(){return{value:void 0,done:!0}}return Te.prototype=Ve,a(et,"constructor",{value:Ve,configurable:!0}),a(Ve,"constructor",{value:Te,configurable:!0}),Te.displayName=ne(Ve,U,"GeneratorFunction"),t.isGeneratorFunction=function(ee){var M=typeof ee=="function"&&ee.constructor;return!!M&&(M===Te||(M.displayName||M.name)==="GeneratorFunction")},t.mark=function(ee){return Object.setPrototypeOf?Object.setPrototypeOf(ee,Ve):(ee.__proto__=Ve,ne(ee,U,"GeneratorFunction")),ee.prototype=Object.create(et),ee},t.awrap=function(ee){return{__await:ee}},ft(tt.prototype),ne(tt.prototype,v,function(){return this}),t.AsyncIterator=tt,t.async=function(ee,M,X,ye,Se){Se===void 0&&(Se=Promise);var Ie=new tt(fe(ee,M,X,ye),Se);return t.isGeneratorFunction(M)?Ie:Ie.next().then(function(He){return He.done?He.value:Ie.next()})},ft(et),ne(et,U,"Generator"),ne(et,k,function(){return this}),ne(et,"toString",function(){return"[object Generator]"}),t.keys=function(ee){var M=Object(ee),X=[];for(var ye in M)X.push(ye);return X.reverse(),function Se(){for(;X.length;){var Ie=X.pop();if(Ie in M)return Se.value=Ie,Se.done=!1,Se}return Se.done=!0,Se}},t.values=xt,yt.prototype={constructor:yt,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_t),!M)for(var X in this)X.charAt(0)==="t"&&s.call(this,X)&&!isNaN(+X.slice(1))&&(this[X]=void 0)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var X=this;function ye(ct,st){return He.type="throw",He.arg=M,X.next=ct,st&&(X.method="next",X.arg=void 0),!!st}for(var Se=this.tryEntries.length-1;Se>=0;--Se){var Ie=this.tryEntries[Se],He=Ie.completion;if(Ie.tryLoc==="root")return ye("end");if(Ie.tryLoc<=this.prev){var Ye=s.call(Ie,"catchLoc"),Je=s.call(Ie,"finallyLoc");if(Ye&&Je){if(this.prev<Ie.catchLoc)return ye(Ie.catchLoc,!0);if(this.prev<Ie.finallyLoc)return ye(Ie.finallyLoc)}else if(Ye){if(this.prev<Ie.catchLoc)return ye(Ie.catchLoc,!0)}else{if(!Je)throw new Error("try statement without catch or finally");if(this.prev<Ie.finallyLoc)return ye(Ie.finallyLoc)}}}},abrupt:function(M,X){for(var ye=this.tryEntries.length-1;ye>=0;--ye){var Se=this.tryEntries[ye];if(Se.tryLoc<=this.prev&&s.call(Se,"finallyLoc")&&this.prev<Se.finallyLoc){var Ie=Se;break}}Ie&&(M==="break"||M==="continue")&&Ie.tryLoc<=X&&X<=Ie.finallyLoc&&(Ie=null);var He=Ie?Ie.completion:{};return He.type=M,He.arg=X,Ie?(this.method="next",this.next=Ie.finallyLoc,we):this.complete(He)},complete:function(M,X){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&X&&(this.next=X),we},finish:function(M){for(var X=this.tryEntries.length-1;X>=0;--X){var ye=this.tryEntries[X];if(ye.finallyLoc===M)return this.complete(ye.completion,ye.afterLoc),_t(ye),we}},catch:function(M){for(var X=this.tryEntries.length-1;X>=0;--X){var ye=this.tryEntries[X];if(ye.tryLoc===M){var Se=ye.completion;if(Se.type==="throw"){var Ie=Se.arg;_t(ye)}return Ie}}throw new Error("illegal catch attempt")},delegateYield:function(M,X,ye){return this.delegate={iterator:xt(M),resultName:X,nextLoc:ye},this.method==="next"&&(this.arg=void 0),we}},t}function X1(t,n,s,a,f,k,v){try{var U=t[k](v),ne=U.value}catch(fe){s(fe);return}U.done?n(ne):Promise.resolve(ne).then(a,f)}function tl(t){return function(){var n=this,s=arguments;return new Promise(function(a,f){var k=t.apply(n,s);function v(ne){X1(k,a,f,v,U,"next",ne)}function U(ne){X1(k,a,f,v,U,"throw",ne)}v(void 0)})}}var nl=function(){var t=tl(Er().mark(function n(s){return Er().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",el(s,{transforms:["typescript","jsx","imports"]}).code);case 1:case"end":return f.stop()}},n)}));return function(s){return t.apply(this,arguments)}}(),rl=nl},67467:function(je,b){b.read=function(K,l,e,Ee,q){var z,P,p=q*8-Ee-1,m=(1<<p)-1,A=m>>1,S=-7,V=e?q-1:0,r=e?-1:1,w=K[l+V];for(V+=r,z=w&(1<<-S)-1,w>>=-S,S+=p;S>0;z=z*256+K[l+V],V+=r,S-=8);for(P=z&(1<<-S)-1,z>>=-S,S+=Ee;S>0;P=P*256+K[l+V],V+=r,S-=8);if(z===0)z=1-A;else{if(z===m)return P?NaN:(w?-1:1)*(1/0);P=P+Math.pow(2,Ee),z=z-A}return(w?-1:1)*P*Math.pow(2,z-Ee)},b.write=function(K,l,e,Ee,q,z){var P,p,m,A=z*8-q-1,S=(1<<A)-1,V=S>>1,r=q===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=Ee?0:z-1,le=Ee?1:-1,W=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(p=isNaN(l)?1:0,P=S):(P=Math.floor(Math.log(l)/Math.LN2),l*(m=Math.pow(2,-P))<1&&(P--,m*=2),P+V>=1?l+=r/m:l+=r*Math.pow(2,1-V),l*m>=2&&(P++,m/=2),P+V>=S?(p=0,P=S):P+V>=1?(p=(l*m-1)*Math.pow(2,q),P=P+V):(p=l*Math.pow(2,V-1)*Math.pow(2,q),P=0));q>=8;K[e+w]=p&255,w+=le,p/=256,q-=8);for(P=P<<q|p,A+=q;A>0;K[e+w]=P&255,w+=le,P/=256,A-=8);K[e+w-le]|=W*128}},81236:function(je,b){"use strict";var K;K=!0,K=void 0;var l=`
136
+ `,e="\r",Ee=function(){function q(z){this.string=z;for(var P=[0],p=0;p<z.length;)switch(z[p]){case l:p+=l.length,P.push(p);break;case e:p+=e.length,z[p]===l&&(p+=l.length),P.push(p);break;default:p++;break}this.offsets=P}return q.prototype.locationForIndex=function(z){if(z<0||z>this.string.length)return null;for(var P=0,p=this.offsets;p[P+1]<=z;)P++;var m=z-p[P];return{line:P,column:m}},q.prototype.indexForLocation=function(z){var P=z.line,p=z.column;return P<0||P>=this.offsets.length||p<0||p>this.lengthOfLine(P)?null:this.offsets[P]+p},q.prototype.lengthOfLine=function(z){var P=this.offsets[z],p=z===this.offsets.length-1?this.string.length:this.offsets[z+1];return p-P},q}();K=Ee,K=Ee},7139:function(je,b,K){"use strict";var l=this&&this.__spreadArrays||function(){for(var m=0,A=0,S=arguments.length;A<S;A++)m+=arguments[A].length;for(var V=Array(m),r=0,A=0;A<S;A++)for(var w=arguments[A],le=0,W=w.length;le<W;le++,r++)V[r]=w[le];return V};Object.defineProperty(b,"__esModule",{value:!0}),b.Checker=b.createCheckers=void 0;var e=K(68706),Ee=K(56661),q=K(68706);Object.defineProperty(b,"TArray",{enumerable:!0,get:function(){return q.TArray}}),Object.defineProperty(b,"TEnumType",{enumerable:!0,get:function(){return q.TEnumType}}),Object.defineProperty(b,"TEnumLiteral",{enumerable:!0,get:function(){return q.TEnumLiteral}}),Object.defineProperty(b,"TFunc",{enumerable:!0,get:function(){return q.TFunc}}),Object.defineProperty(b,"TIface",{enumerable:!0,get:function(){return q.TIface}}),Object.defineProperty(b,"TLiteral",{enumerable:!0,get:function(){return q.TLiteral}}),Object.defineProperty(b,"TName",{enumerable:!0,get:function(){return q.TName}}),Object.defineProperty(b,"TOptional",{enumerable:!0,get:function(){return q.TOptional}}),Object.defineProperty(b,"TParam",{enumerable:!0,get:function(){return q.TParam}}),Object.defineProperty(b,"TParamList",{enumerable:!0,get:function(){return q.TParamList}}),Object.defineProperty(b,"TProp",{enumerable:!0,get:function(){return q.TProp}}),Object.defineProperty(b,"TTuple",{enumerable:!0,get:function(){return q.TTuple}}),Object.defineProperty(b,"TType",{enumerable:!0,get:function(){return q.TType}}),Object.defineProperty(b,"TUnion",{enumerable:!0,get:function(){return q.TUnion}}),Object.defineProperty(b,"TIntersection",{enumerable:!0,get:function(){return q.TIntersection}}),Object.defineProperty(b,"array",{enumerable:!0,get:function(){return q.array}}),Object.defineProperty(b,"enumlit",{enumerable:!0,get:function(){return q.enumlit}}),Object.defineProperty(b,"enumtype",{enumerable:!0,get:function(){return q.enumtype}}),Object.defineProperty(b,"func",{enumerable:!0,get:function(){return q.func}}),Object.defineProperty(b,"iface",{enumerable:!0,get:function(){return q.iface}}),Object.defineProperty(b,"lit",{enumerable:!0,get:function(){return q.lit}}),Object.defineProperty(b,"name",{enumerable:!0,get:function(){return q.name}}),Object.defineProperty(b,"opt",{enumerable:!0,get:function(){return q.opt}}),Object.defineProperty(b,"param",{enumerable:!0,get:function(){return q.param}}),Object.defineProperty(b,"tuple",{enumerable:!0,get:function(){return q.tuple}}),Object.defineProperty(b,"union",{enumerable:!0,get:function(){return q.union}}),Object.defineProperty(b,"intersection",{enumerable:!0,get:function(){return q.intersection}}),Object.defineProperty(b,"BasicType",{enumerable:!0,get:function(){return q.BasicType}});var z=K(56661);Object.defineProperty(b,"VError",{enumerable:!0,get:function(){return z.VError}});function P(){for(var m=[],A=0;A<arguments.length;A++)m[A]=arguments[A];for(var S=Object.assign.apply(Object,l([{},e.basicTypes],m)),V={},r=0,w=m;r<w.length;r++)for(var le=w[r],W=0,oe=Object.keys(le);W<oe.length;W++){var ue=oe[W];V[ue]=new p(S,le[ue])}return V}b.createCheckers=P;var p=function(){function m(A,S,V){if(V===void 0&&(V="value"),this.suite=A,this.ttype=S,this._path=V,this.props=new Map,S instanceof e.TIface)for(var r=0,w=S.props;r<w.length;r++){var le=w[r];this.props.set(le.name,le.ttype)}this.checkerPlain=this.ttype.getChecker(A,!1),this.checkerStrict=this.ttype.getChecker(A,!0)}return m.prototype.setReportedPath=function(A){this._path=A},m.prototype.check=function(A){return this._doCheck(this.checkerPlain,A)},m.prototype.test=function(A){return this.checkerPlain(A,new Ee.NoopContext)},m.prototype.validate=function(A){return this._doValidate(this.checkerPlain,A)},m.prototype.strictCheck=function(A){return this._doCheck(this.checkerStrict,A)},m.prototype.strictTest=function(A){return this.checkerStrict(A,new Ee.NoopContext)},m.prototype.strictValidate=function(A){return this._doValidate(this.checkerStrict,A)},m.prototype.getProp=function(A){var S=this.props.get(A);if(!S)throw new Error("Type has no property "+A);return new m(this.suite,S,this._path+"."+A)},m.prototype.methodArgs=function(A){var S=this._getMethod(A);return new m(this.suite,S.paramList)},m.prototype.methodResult=function(A){var S=this._getMethod(A);return new m(this.suite,S.result)},m.prototype.getArgs=function(){if(!(this.ttype instanceof e.TFunc))throw new Error("getArgs() applied to non-function");return new m(this.suite,this.ttype.paramList)},m.prototype.getResult=function(){if(!(this.ttype instanceof e.TFunc))throw new Error("getResult() applied to non-function");return new m(this.suite,this.ttype.result)},m.prototype.getType=function(){return this.ttype},m.prototype._doCheck=function(A,S){var V=new Ee.NoopContext;if(!A(S,V)){var r=new Ee.DetailContext;throw A(S,r),r.getError(this._path)}},m.prototype._doValidate=function(A,S){var V=new Ee.NoopContext;if(A(S,V))return null;var r=new Ee.DetailContext;return A(S,r),r.getErrorDetail(this._path)},m.prototype._getMethod=function(A){var S=this.props.get(A);if(!S)throw new Error("Type has no property "+A);if(!(S instanceof e.TFunc))throw new Error("Property "+A+" is not a method");return S},m}();b.Checker=p},68706:function(je,b,K){"use strict";var l=K(692).lW,e=this&&this.__extends||function(){var E=function(N,O){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,Q){D.__proto__=Q}||function(D,Q){for(var ae in Q)Q.hasOwnProperty(ae)&&(D[ae]=Q[ae])},E(N,O)};return function(N,O){E(N,O);function D(){this.constructor=N}N.prototype=O===null?Object.create(O):(D.prototype=O.prototype,new D)}}();Object.defineProperty(b,"__esModule",{value:!0}),b.basicTypes=b.BasicType=b.TParamList=b.TParam=b.param=b.TFunc=b.func=b.TProp=b.TOptional=b.opt=b.TIface=b.iface=b.TEnumLiteral=b.enumlit=b.TEnumType=b.enumtype=b.TIntersection=b.intersection=b.TUnion=b.union=b.TTuple=b.tuple=b.TArray=b.array=b.TLiteral=b.lit=b.TName=b.name=b.TType=void 0;var Ee=K(56661),q=function(){function E(){}return E}();b.TType=q;function z(E){return typeof E=="string"?p(E):E}function P(E,N){var O=E[N];if(!O)throw new Error("Unknown type "+N);return O}function p(E){return new m(E)}b.name=p;var m=function(E){e(N,E);function N(O){var D=E.call(this)||this;return D.name=O,D._failMsg="is not a "+O,D}return N.prototype.getChecker=function(O,D,Q){var ae=this,_=P(O,this.name),de=_.getChecker(O,D,Q);return _ instanceof $||_ instanceof N?de:function(Pe,J){return de(Pe,J)?!0:J.fail(null,ae._failMsg,0)}},N}(q);b.TName=m;function A(E){return new S(E)}b.lit=A;var S=function(E){e(N,E);function N(O){var D=E.call(this)||this;return D.value=O,D.name=JSON.stringify(O),D._failMsg="is not "+D.name,D}return N.prototype.getChecker=function(O,D){var Q=this;return function(ae,_){return ae===Q.value?!0:_.fail(null,Q._failMsg,-1)}},N}(q);b.TLiteral=S;function V(E){return new r(z(E))}b.array=V;var r=function(E){e(N,E);function N(O){var D=E.call(this)||this;return D.ttype=O,D}return N.prototype.getChecker=function(O,D){var Q=this.ttype.getChecker(O,D);return function(ae,_){if(!Array.isArray(ae))return _.fail(null,"is not an array",0);for(var de=0;de<ae.length;de++){var Pe=Q(ae[de],_);if(!Pe)return _.fail(de,null,1)}return!0}},N}(q);b.TArray=r;function w(){for(var E=[],N=0;N<arguments.length;N++)E[N]=arguments[N];return new le(E.map(function(O){return z(O)}))}b.tuple=w;var le=function(E){e(N,E);function N(O){var D=E.call(this)||this;return D.ttypes=O,D}return N.prototype.getChecker=function(O,D){var Q=this.ttypes.map(function(_){return _.getChecker(O,D)}),ae=function(_,de){if(!Array.isArray(_))return de.fail(null,"is not an array",0);for(var Pe=0;Pe<Q.length;Pe++){var J=Q[Pe](_[Pe],de);if(!J)return de.fail(Pe,null,1)}return!0};return D?function(_,de){return ae(_,de)?_.length<=Q.length?!0:de.fail(Q.length,"is extraneous",2):!1}:ae},N}(q);b.TTuple=le;function W(){for(var E=[],N=0;N<arguments.length;N++)E[N]=arguments[N];return new oe(E.map(function(O){return z(O)}))}b.union=W;var oe=function(E){e(N,E);function N(O){var D=E.call(this)||this;D.ttypes=O;var Q=O.map(function(_){return _ instanceof m||_ instanceof S?_.name:null}).filter(function(_){return _}),ae=O.length-Q.length;return Q.length?(ae>0&&Q.push(ae+" more"),D._failMsg="is none of "+Q.join(", ")):D._failMsg="is none of "+ae+" types",D}return N.prototype.getChecker=function(O,D){var Q=this,ae=this.ttypes.map(function(_){return _.getChecker(O,D)});return function(_,de){for(var Pe=de.unionResolver(),J=0;J<ae.length;J++){var se=ae[J](_,Pe.createContext());if(se)return!0}return de.resolveUnion(Pe),de.fail(null,Q._failMsg,0)}},N}(q);b.TUnion=oe;function ue(){for(var E=[],N=0;N<arguments.length;N++)E[N]=arguments[N];return new xe(E.map(function(O){return z(O)}))}b.intersection=ue;var xe=function(E){e(N,E);function N(O){var D=E.call(this)||this;return D.ttypes=O,D}return N.prototype.getChecker=function(O,D){var Q=new Set,ae=this.ttypes.map(function(_){return _.getChecker(O,D,Q)});return function(_,de){var Pe=ae.every(function(J){return J(_,de)});return Pe?!0:de.fail(null,null,0)}},N}(q);b.TIntersection=xe;function Re(E){return new B(E)}b.enumtype=Re;var B=function(E){e(N,E);function N(O){var D=E.call(this)||this;return D.members=O,D.validValues=new Set,D._failMsg="is not a valid enum value",D.validValues=new Set(Object.keys(O).map(function(Q){return O[Q]})),D}return N.prototype.getChecker=function(O,D){var Q=this;return function(ae,_){return Q.validValues.has(ae)?!0:_.fail(null,Q._failMsg,0)}},N}(q);b.TEnumType=B;function Le(E,N){return new ve(E,N)}b.enumlit=Le;var ve=function(E){e(N,E);function N(O,D){var Q=E.call(this)||this;return Q.enumName=O,Q.prop=D,Q._failMsg="is not "+O+"."+D,Q}return N.prototype.getChecker=function(O,D){var Q=this,ae=P(O,this.enumName);if(!(ae instanceof B))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var _=ae.members[this.prop];if(!ae.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(de,Pe){return de===_?!0:Pe.fail(null,Q._failMsg,-1)}},N}(q);b.TEnumLiteral=ve;function Ne(E){return Object.keys(E).map(function(N){return Ue(N,E[N])})}function Ue(E,N){return N instanceof F?new d(E,N.ttype,!0):new d(E,z(N),!1)}function Xe(E,N){return new ot(E,Ne(N))}b.iface=Xe;var ot=function(E){e(N,E);function N(O,D){var Q=E.call(this)||this;return Q.bases=O,Q.props=D,Q.propSet=new Set(D.map(function(ae){return ae.name})),Q}return N.prototype.getChecker=function(O,D,Q){var ae=this,_=this.bases.map(function(qe){return P(O,qe).getChecker(O,D)}),de=this.props.map(function(qe){return qe.ttype.getChecker(O,D)}),Pe=new Ee.NoopContext,J=this.props.map(function(qe,h){return!qe.isOpt&&!de[h](void 0,Pe)}),se=function(qe,h){if(typeof qe!="object"||qe===null)return h.fail(null,"is not an object",0);for(var Ce=0;Ce<_.length;Ce++)if(!_[Ce](qe,h))return!1;for(var Ce=0;Ce<de.length;Ce++){var pt=ae.props[Ce].name,I=qe[pt];if(I===void 0){if(J[Ce])return h.fail(pt,"is missing",1)}else{var R=de[Ce](I,h);if(!R)return h.fail(pt,null,1)}}return!0};if(!D)return se;var x=this.propSet;return Q&&(this.propSet.forEach(function(qe){return Q.add(qe)}),x=Q),function(qe,h){if(!se(qe,h))return!1;for(var Ce in qe)if(!x.has(Ce))return h.fail(Ce,"is extraneous",2);return!0}},N}(q);b.TIface=ot;function te(E){return new F(z(E))}b.opt=te;var F=function(E){e(N,E);function N(O){var D=E.call(this)||this;return D.ttype=O,D}return N.prototype.getChecker=function(O,D){var Q=this.ttype.getChecker(O,D);return function(ae,_){return ae===void 0||Q(ae,_)}},N}(q);b.TOptional=F;var d=function(){function E(N,O,D){this.name=N,this.ttype=O,this.isOpt=D}return E}();b.TProp=d;function C(E){for(var N=[],O=1;O<arguments.length;O++)N[O-1]=arguments[O];return new _e(new Y(N),z(E))}b.func=C;var _e=function(E){e(N,E);function N(O,D){var Q=E.call(this)||this;return Q.paramList=O,Q.result=D,Q}return N.prototype.getChecker=function(O,D){return function(Q,ae){return typeof Q=="function"?!0:ae.fail(null,"is not a function",0)}},N}(q);b.TFunc=_e;function G(E,N,O){return new H(E,z(N),!!O)}b.param=G;var H=function(){function E(N,O,D){this.name=N,this.ttype=O,this.isOpt=D}return E}();b.TParam=H;var Y=function(E){e(N,E);function N(O){var D=E.call(this)||this;return D.params=O,D}return N.prototype.getChecker=function(O,D){var Q=this,ae=this.params.map(function(J){return J.ttype.getChecker(O,D)}),_=new Ee.NoopContext,de=this.params.map(function(J,se){return!J.isOpt&&!ae[se](void 0,_)}),Pe=function(J,se){if(!Array.isArray(J))return se.fail(null,"is not an array",0);for(var x=0;x<ae.length;x++){var qe=Q.params[x];if(J[x]===void 0){if(de[x])return se.fail(qe.name,"is missing",1)}else{var h=ae[x](J[x],se);if(!h)return se.fail(qe.name,null,1)}}return!0};return D?function(J,se){return Pe(J,se)?J.length<=ae.length?!0:se.fail(ae.length,"is extraneous",2):!1}:Pe},N}(q);b.TParamList=Y;var $=function(E){e(N,E);function N(O,D){var Q=E.call(this)||this;return Q.validator=O,Q.message=D,Q}return N.prototype.getChecker=function(O,D){var Q=this;return function(ae,_){return Q.validator(ae)?!0:_.fail(null,Q.message,0)}},N}(q);b.BasicType=$,b.basicTypes={any:new $(function(E){return!0},"is invalid"),number:new $(function(E){return typeof E=="number"},"is not a number"),object:new $(function(E){return typeof E=="object"&&E},"is not an object"),boolean:new $(function(E){return typeof E=="boolean"},"is not a boolean"),string:new $(function(E){return typeof E=="string"},"is not a string"),symbol:new $(function(E){return typeof E=="symbol"},"is not a symbol"),void:new $(function(E){return E==null},"is not void"),undefined:new $(function(E){return E===void 0},"is not undefined"),null:new $(function(E){return E===null},"is not null"),never:new $(function(E){return!1},"is unexpected"),Date:new $(he("[object Date]"),"is not a Date"),RegExp:new $(he("[object RegExp]"),"is not a RegExp")};var me=Object.prototype.toString;function he(E){return function(N){return typeof N=="object"&&N&&me.call(N)===E}}typeof l!="undefined"&&(b.basicTypes.Buffer=new $(function(E){return l.isBuffer(E)},"is not a Buffer"));for(var ie=function(E){b.basicTypes[E.name]=new $(function(N){return N instanceof E},"is not a "+E.name)},L=0,ce=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];L<ce.length;L++){var Me=ce[L];ie(Me)}},56661:function(je,b){"use strict";var K=this&&this.__extends||function(){var z=function(P,p){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,A){m.__proto__=A}||function(m,A){for(var S in A)A.hasOwnProperty(S)&&(m[S]=A[S])},z(P,p)};return function(P,p){z(P,p);function m(){this.constructor=P}P.prototype=p===null?Object.create(p):(m.prototype=p.prototype,new m)}}();Object.defineProperty(b,"__esModule",{value:!0}),b.DetailContext=b.NoopContext=b.VError=void 0;var l=function(z){K(P,z);function P(p,m){var A=z.call(this,m)||this;return A.path=p,Object.setPrototypeOf(A,P.prototype),A}return P}(Error);b.VError=l;var e=function(){function z(){}return z.prototype.fail=function(P,p,m){return!1},z.prototype.unionResolver=function(){return this},z.prototype.createContext=function(){return this},z.prototype.resolveUnion=function(P){},z}();b.NoopContext=e;var Ee=function(){function z(){this._propNames=[""],this._messages=[null],this._score=0}return z.prototype.fail=function(P,p,m){return this._propNames.push(P),this._messages.push(p),this._score+=m,!1},z.prototype.unionResolver=function(){return new q},z.prototype.resolveUnion=function(P){for(var p,m,A=P,S=null,V=0,r=A.contexts;V<r.length;V++){var w=r[V];(!S||w._score>=S._score)&&(S=w)}S&&S._score>0&&((p=this._propNames).push.apply(p,S._propNames),(m=this._messages).push.apply(m,S._messages))},z.prototype.getError=function(P){for(var p=[],m=this._propNames.length-1;m>=0;m--){var A=this._propNames[m];P+=typeof A=="number"?"["+A+"]":A?"."+A:"";var S=this._messages[m];S&&p.push(P+" "+S)}return new l(P,p.join("; "))},z.prototype.getErrorDetail=function(P){for(var p=[],m=this._propNames.length-1;m>=0;m--){var A=this._propNames[m];P+=typeof A=="number"?"["+A+"]":A?"."+A:"";var S=this._messages[m];S&&p.push({path:P,message:S})}for(var V=null,m=p.length-1;m>=0;m--)V&&(p[m].nested=[V]),V=p[m];return V},z}();b.DetailContext=Ee;var q=function(){function z(){this.contexts=[]}return z.prototype.createContext=function(){var P=new Ee;return this.contexts.push(P),P},z}()}}]);
137
+ }());