@juki-team/base-ui 1.4.135 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (749) hide show
  1. package/dist/esm/ArrowForwardIcon-B6qJaqxW.js +1 -0
  2. package/dist/esm/BarChart-D74BtmuY.js +1 -0
  3. package/dist/esm/CartesianChart-CW5O6vne.js +47 -0
  4. package/dist/esm/ChangePasswordModal-BjmZ4w-n.js +1 -0
  5. package/dist/esm/CodeEditor-DHSwOQl_.js +1 -0
  6. package/dist/esm/CodeViewer-BgcqqnsU.js +1 -0
  7. package/dist/esm/Collapse-CJGjLO29.js +1 -0
  8. package/dist/esm/DataGrid-B2ZsmTQN.js +272 -0
  9. package/dist/esm/DataViewer-C7cqe5jJ.js +1 -0
  10. package/dist/esm/DrawerView-CBLVa95i.js +1 -0
  11. package/dist/esm/ExcalidrawButton-Gtzt3GBc.js +1 -0
  12. package/dist/esm/GraphvizViewer-Dyqijdc9.js +1 -0
  13. package/dist/esm/ImageLoaderCropper-DhWDuHK1.js +1 -0
  14. package/dist/esm/InputCellPhoneNumber-BgKCDHLv.js +1 -0
  15. package/dist/esm/InputColor-DeeYpvdA.js +14 -0
  16. package/dist/esm/LineChart-D2VT5Aos.js +1 -0
  17. package/dist/esm/LoaderLayer-D9O7WqFD.js +1 -0
  18. package/dist/esm/MdMath-PFhigRVS.js +1 -0
  19. package/dist/esm/MdMathEditor-CNn23WdZ.js +28 -0
  20. package/dist/esm/{Popover-CIsKcwr_.js → Popover-kYKitQai.js} +2 -2
  21. package/dist/esm/ReplyIcon-CPGYEALJ.js +1 -0
  22. package/dist/esm/SettingsIcon-Dk27Vz1G.js +1 -0
  23. package/dist/esm/SlideDeck-DMd0LgxX.js +1 -0
  24. package/dist/esm/TableEyeIcon-D74isCSR.js +1 -0
  25. package/dist/esm/TableOfContents-zzI7FQbW.js +1 -0
  26. package/dist/esm/Tooltip-B8AobPsl.js +13 -0
  27. package/dist/esm/UserCodeEditor-CbgpE94F.js +28 -0
  28. package/dist/esm/VirtualizedRowsFixed-Cau69yw0.js +1 -0
  29. package/dist/esm/WorksheetAsSlides-cYn12ViE.js +1 -0
  30. package/dist/esm/WorksheetBodies-oAHNxEoL.js +1 -0
  31. package/dist/esm/WorksheetContents-m3z1cSCO.js +1 -0
  32. package/dist/esm/WorksheetEditor-DL9l5iCM.js +1 -0
  33. package/dist/esm/WorksheetNode-D6tMtEqC.js +1 -0
  34. package/dist/esm/WorksheetViewer-tctJbZIu.js +1 -0
  35. package/dist/esm/_baseIteratee-DJNkOVK7.js +1 -0
  36. package/dist/esm/_baseUniq-BJKKUJ6e.js +1 -0
  37. package/dist/esm/arc-BqJSq9Se.js +1 -0
  38. package/dist/esm/architecture-YZFGNWBL-rccIGhXm.js +1 -0
  39. package/dist/esm/architectureDiagram-Q4EWVU46-D4BxMEG7.js +1 -0
  40. package/dist/esm/{band-sgKLmfhd.js → band-D2afako6.js} +1 -1
  41. package/dist/esm/basic-setup-UGhpl5jF.js +1 -0
  42. package/dist/esm/blockDiagram-DXYQGD6D-z0-_xhoI.js +1 -0
  43. package/dist/esm/c4Diagram-AHTNJAMY-BoabvxgU.js +1 -0
  44. package/dist/esm/channel-B33C1-lx.js +1 -0
  45. package/dist/esm/{chunk-4BX2VUAB-DLCx-_ir.js → chunk-4BX2VUAB-BD59bCvh.js} +1 -1
  46. package/dist/esm/chunk-4TB4RGXK-bRIvkE2u.js +1 -0
  47. package/dist/esm/chunk-55IACEB6-B9SJqSMu.js +1 -0
  48. package/dist/esm/chunk-EDXVE4YY-DO0UVobI.js +1 -0
  49. package/dist/esm/{chunk-FMBD7UC4-BGLWSSaQ.js → chunk-FMBD7UC4-B0l_pK7G.js} +1 -1
  50. package/dist/esm/chunk-OYMX7WX6-ChpTvaWt.js +1 -0
  51. package/dist/esm/{chunk-QZHKN3VN-aadBLkdn.js → chunk-QZHKN3VN-9SrlxM-A.js} +1 -1
  52. package/dist/esm/chunk-YZCP3GAM-B9nB-mZv.js +1 -0
  53. package/dist/esm/classDiagram-6PBFFD2Q-BsMMZhRG.js +1 -0
  54. package/dist/esm/classDiagram-v2-HSJHXN6E-BsMMZhRG.js +1 -0
  55. package/dist/esm/clone-BDf6Yet-.js +1 -0
  56. package/dist/esm/commons-B_OozOv-.js +1 -0
  57. package/dist/esm/constants.js +1 -1
  58. package/dist/esm/cose-bilkent-S5V4N54A-DOOhcKZn.js +1 -0
  59. package/dist/esm/cytoscape.esm-D5qQrGhU.js +9 -0
  60. package/dist/esm/dagre-KV5264BT-DNQuzBru.js +1 -0
  61. package/dist/esm/{defaultLocale-BAKTrQtR.js → defaultLocale-HOdfsG1x.js} +1 -1
  62. package/dist/esm/diagram-5BDNPKRD-BuDsbwIH.js +1 -0
  63. package/dist/esm/diagram-G4DWMVQ6-Dqe6ehne.js +1 -0
  64. package/dist/esm/diagram-MMDJMWI5-DutUl44V.js +1 -0
  65. package/dist/esm/diagram-TYMM5635-Dg8R_BVT.js +1 -0
  66. package/dist/esm/erDiagram-SMLLAGMA-Z9rnwC7z.js +1 -0
  67. package/dist/esm/{floating-ui.dom-D1Wb0QDy.js → floating-ui.dom-BKnkJW47.js} +1 -1
  68. package/dist/esm/flowDiagram-DWJPFMVM-DlD4QYIw.js +1 -0
  69. package/dist/esm/ganttDiagram-T4ZO3ILL-DCyjcGXR.js +1 -0
  70. package/dist/esm/gitGraph-7Q5UKJZL-B-fw09HA.js +1 -0
  71. package/dist/esm/gitGraphDiagram-UUTBAWPF-CdYpB5kl.js +1 -0
  72. package/dist/esm/graph-BuAvWT_r.js +1 -0
  73. package/dist/esm/helpers.js +1 -1
  74. package/dist/esm/index--PWk-3Ol.js +1 -0
  75. package/dist/esm/index-A0sdG_JC.js +1 -0
  76. package/dist/esm/index-B3fb7Ita.js +1 -0
  77. package/dist/esm/index-BR16hIbn.js +1 -0
  78. package/dist/esm/index-BoA3EjMr.js +1 -0
  79. package/dist/esm/index-Bp7rYslS.js +1 -0
  80. package/dist/esm/index-Bw2EofiE.js +1 -0
  81. package/dist/esm/index-BzjjAmh3.js +1 -0
  82. package/dist/esm/{index-XKEYn2Wr.js → index-C9_5xd3V.js} +1 -1
  83. package/dist/esm/index-CB1_GL3t.js +1 -0
  84. package/dist/esm/index-CODLgwqm.js +1 -0
  85. package/dist/esm/index-CQbc3KUq.js +1 -0
  86. package/dist/esm/index-CRfRlH9U.js +1 -0
  87. package/dist/esm/index-Ccq-5wm6.js +1 -0
  88. package/dist/esm/index-Cj5SSv5l.js +1 -0
  89. package/dist/esm/index-Ck9BxS1f.js +1 -0
  90. package/dist/esm/index-CpRfyO85.js +1 -0
  91. package/dist/esm/index-CtTbnbzM.js +1 -0
  92. package/dist/esm/index-CtWPxOcn.js +1 -0
  93. package/dist/esm/index-D2mDsVm5.js +1 -0
  94. package/dist/esm/index-D5NvcxPc.js +1 -0
  95. package/dist/esm/index-D8zPYs0m.js +1 -0
  96. package/dist/esm/index-DAJdettS.js +1 -0
  97. package/dist/esm/index-DSGuayJy.js +1 -0
  98. package/dist/esm/index-DVFv6Eth.js +1 -0
  99. package/dist/esm/index-D_AOS7Yx.js +1 -0
  100. package/dist/esm/index-GoUUn3QE.js +1 -0
  101. package/dist/esm/index-QhLowdpF.js +1 -0
  102. package/dist/esm/index-Y09lLL_e.js +1 -0
  103. package/dist/esm/index-rYUgz1LC.js +1 -0
  104. package/dist/esm/index-xaEdDd13.js +1 -0
  105. package/dist/esm/info-OMHHGYJF-fbv9Xw4D.js +1 -0
  106. package/dist/esm/infoDiagram-42DDH7IO-Ce56qzjb.js +1 -0
  107. package/dist/esm/{init-DWDD0M30.js → init-DLRA0X12.js} +1 -1
  108. package/dist/esm/isSymbol-CATEdeai.js +1 -0
  109. package/dist/esm/isUndefined-DgmxjSXK.js +1 -0
  110. package/dist/esm/ishikawaDiagram-UXIWVN3A-Cc0AgO_R.js +1 -0
  111. package/dist/esm/journeyDiagram-VCZTEJTY-BQAuB_0y.js +1 -0
  112. package/dist/esm/kanban-definition-6JOO6SKY-CFfdKxrM.js +1 -0
  113. package/dist/esm/layout-C9Uq7X58.js +1 -0
  114. package/dist/esm/{lib-mG56Y3Rb.js → lib-DdKR2uQv.js} +1 -1
  115. package/dist/esm/{linear-L30X52KW.js → linear-BnXjbO66.js} +1 -1
  116. package/dist/esm/{lua-BvgfYBhq.js → lua-8DXOpKDz.js} +1 -1
  117. package/dist/esm/main.js +1 -1
  118. package/dist/esm/map-BvlAjF4J.js +1 -0
  119. package/dist/esm/memoize-CPUrcYQl.js +1 -0
  120. package/dist/esm/mermaid-parser.core-B9BVFPAN.js +1 -0
  121. package/dist/esm/mermaid.core-Ch6a1N6x.js +1 -0
  122. package/dist/esm/min-Dc9VrJ6M.js +1 -0
  123. package/dist/esm/mindmap-definition-QFDTVHPH-BwtZAHVe.js +1 -0
  124. package/dist/esm/{ordinal-UuA5o140.js → ordinal-zwWoQKz9.js} +1 -1
  125. package/dist/esm/packet-4T2RLAQJ-BGTrXSHu.js +1 -0
  126. package/dist/esm/pie-ZZUOXDRM-Dx3xGYkv.js +1 -0
  127. package/dist/esm/pieDiagram-DEJITSTG-ChBY2XYY.js +1 -0
  128. package/dist/esm/purify.es-DBOWJxv3.js +2 -0
  129. package/dist/esm/quadrantDiagram-34T5L4WZ-CRGLfMnt.js +1 -0
  130. package/dist/esm/radar-PYXPWWZC-BYId5clz.js +1 -0
  131. package/dist/esm/requirementDiagram-MS252O5E-qmbcV6Kf.js +1 -0
  132. package/dist/esm/sankeyDiagram-XADWPNL6-DaL42Ehn.js +1 -0
  133. package/dist/esm/sequenceDiagram-FGHM5R23-D28F9BbZ.js +1 -0
  134. package/dist/esm/server.js +1 -1
  135. package/dist/esm/settings-BIQ7IqJl.js +1 -0
  136. package/dist/esm/settings.js +1 -1
  137. package/dist/esm/stateDiagram-FHFEXIEX-RgoWlW1V.js +1 -0
  138. package/dist/esm/stateDiagram-v2-QKLJ7IA2-DuyT41He.js +1 -0
  139. package/dist/esm/{string-CQk_HvWX.js → string-LeDn2fkG.js} +1 -1
  140. package/dist/esm/throttle-BsCMUG1-.js +1 -0
  141. package/dist/esm/time-PiK_t_Re.js +1 -0
  142. package/dist/esm/timeline-definition-GMOUNBTQ-BcOvpU4t.js +1 -0
  143. package/dist/esm/toNumber-Bh_HTlSx.js +1 -0
  144. package/dist/esm/treeView-SZITEDCU-BjLEV1yZ.js +1 -0
  145. package/dist/esm/treemap-W4RFUUIX-Cuo2Y8dN.js +1 -0
  146. package/dist/esm/types-DI2OON_b.js +1 -0
  147. package/dist/esm/vennDiagram-DHZGUBPP-CZrtDTUB.js +1 -0
  148. package/dist/esm/viz-CFEjElvl.js +9 -0
  149. package/dist/esm/wardley-RL74JXVD-d0LkVT8_.js +1 -0
  150. package/dist/esm/wardleyDiagram-NUSXRM2D-vlFiIB8t.js +1 -0
  151. package/dist/esm/websocket-CxbYBjHT.js +1 -0
  152. package/dist/esm/worksheet-CQgex79V.js +1 -0
  153. package/dist/esm/xychartDiagram-5P7HB3ND-DsCQdXVH.js +1 -0
  154. package/dist/module-types/src/components/atoms/Button/Button.d.ts +3 -3
  155. package/dist/module-types/src/components/atoms/Client/types.d.ts +1 -1
  156. package/dist/module-types/src/components/atoms/CopyToClipboard/types.d.ts +2 -2
  157. package/dist/module-types/src/components/atoms/{server/DateLiteral → DateLiteral}/types.d.ts +2 -2
  158. package/dist/module-types/src/components/atoms/DetectRequestAnimationFrame/DetectRequestAnimationFrame.d.ts +1 -1
  159. package/dist/module-types/src/components/atoms/Div/Div.d.ts +1 -1
  160. package/dist/module-types/src/components/atoms/Div/types.d.ts +1 -1
  161. package/dist/module-types/src/components/atoms/Input/Input.d.ts +6 -8
  162. package/dist/module-types/src/components/atoms/Input/types.d.ts +4 -4
  163. package/dist/module-types/src/components/atoms/Modal/types.d.ts +3 -3
  164. package/dist/module-types/src/components/atoms/Portal/Portal.d.ts +1 -1
  165. package/dist/module-types/src/components/atoms/Portal/types.d.ts +1 -1
  166. package/dist/module-types/src/components/atoms/T/types.d.ts +1 -12
  167. package/dist/module-types/src/components/atoms/TextArea/TextArea.d.ts +4 -4
  168. package/dist/module-types/src/components/atoms/_lazy_/Collapse/types.d.ts +2 -2
  169. package/dist/module-types/src/components/atoms/_lazy_/InputCellPhoneNumber/types.d.ts +1 -1
  170. package/dist/module-types/src/components/atoms/_lazy_/Popover/types.d.ts +2 -2
  171. package/dist/module-types/src/components/atoms/_lazy_/VirtualizedRowsFixed/types.d.ts +1 -1
  172. package/dist/module-types/src/components/atoms/index.d.ts +6 -6
  173. package/dist/module-types/src/components/atoms/server/icons/SpinIcon/Spin.d.ts +1 -1
  174. package/dist/module-types/src/components/atoms/server/icons/SpinIcon/types.d.ts +2 -2
  175. package/dist/module-types/src/components/atoms/server/icons/google/_group.d.ts +1 -1
  176. package/dist/module-types/src/components/atoms/server/icons/google/index.d.ts +1 -1
  177. package/dist/module-types/src/components/atoms/server/icons/index.d.ts +1 -1
  178. package/dist/module-types/src/components/atoms/server/icons/specials/BalloonIcon/index.d.ts +1 -1
  179. package/dist/module-types/src/components/atoms/server/icons/specials/BalloonIcon/types.d.ts +2 -2
  180. package/dist/module-types/src/components/atoms/server/icons/specials/FacebookIcon/types.d.ts +2 -2
  181. package/dist/module-types/src/components/atoms/server/icons/specials/GmailIcon/types.d.ts +2 -2
  182. package/dist/module-types/src/components/atoms/server/icons/specials/SortIcon/types.d.ts +2 -2
  183. package/dist/module-types/src/components/atoms/server/icons/specials/TelegramIcon/types.d.ts +2 -2
  184. package/dist/module-types/src/components/atoms/server/icons/specials/types.d.ts +6 -5
  185. package/dist/module-types/src/components/atoms/server/icons/types.d.ts +16 -16
  186. package/dist/module-types/src/components/atoms/server/icons/utils/CircleFilledFrame.d.ts +1 -1
  187. package/dist/module-types/src/components/atoms/server/icons/utils/CirclePath.d.ts +1 -1
  188. package/dist/module-types/src/components/atoms/server/icons/utils/functions.d.ts +3 -3
  189. package/dist/module-types/src/components/atoms/server/icons/utils/index.d.ts +2 -2
  190. package/dist/module-types/src/components/atoms/server/icons/utils/renderBasicIcon.d.ts +1 -1
  191. package/dist/module-types/src/components/atoms/server/icons/utils/renderSignIcon.d.ts +2 -2
  192. package/dist/module-types/src/components/atoms/server/index.d.ts +0 -2
  193. package/dist/module-types/src/components/atoms/server/loaders/LoaderLayer.d.ts +2 -2
  194. package/dist/module-types/src/components/atoms/server/loaders/index.d.ts +1 -1
  195. package/dist/module-types/src/components/atoms/server/loaders/line-loader/LineLoader.d.ts +1 -1
  196. package/dist/module-types/src/components/atoms/types.d.ts +11 -10
  197. package/dist/module-types/src/components/helpers/commons.d.ts +4 -4
  198. package/dist/module-types/src/components/helpers/contest.d.ts +1 -1
  199. package/dist/module-types/src/components/helpers/date.d.ts +4 -3
  200. package/dist/module-types/src/components/helpers/fetch.d.ts +7 -7
  201. package/dist/module-types/src/components/helpers/layout.d.ts +2 -2
  202. package/dist/module-types/src/components/helpers/problem.d.ts +4 -15
  203. package/dist/module-types/src/components/helpers/render.d.ts +1 -1
  204. package/dist/module-types/src/components/helpers/router.d.ts +1 -1
  205. package/dist/module-types/src/components/helpers/submission.d.ts +2 -2
  206. package/dist/module-types/src/components/helpers/time.d.ts +1 -1
  207. package/dist/module-types/src/components/helpers/websocket.d.ts +40 -2
  208. package/dist/module-types/src/components/hooks/useClickOutside.d.ts +1 -1
  209. package/dist/module-types/src/components/hooks/useDataViewerRequester.d.ts +3 -3
  210. package/dist/module-types/src/components/hooks/useFetcher.d.ts +4 -4
  211. package/dist/module-types/src/components/hooks/useHandleState.d.ts +1 -1
  212. package/dist/module-types/src/components/hooks/useInjectTheme.d.ts +1 -1
  213. package/dist/module-types/src/components/hooks/useJudge.d.ts +3 -4
  214. package/dist/module-types/src/components/hooks/useJukiNotification.d.ts +1 -1
  215. package/dist/module-types/src/components/hooks/useJukiUser.d.ts +13 -12
  216. package/dist/module-types/src/components/hooks/useLoaderStatusSync.d.ts +1 -1
  217. package/dist/module-types/src/components/hooks/useOverflowDetector.d.ts +1 -1
  218. package/dist/module-types/src/components/hooks/useSubscribe.d.ts +2 -2
  219. package/dist/module-types/src/components/hooks/useSyncedState.d.ts +1 -1
  220. package/dist/module-types/src/components/hooks/useTrackCursor.d.ts +1 -1
  221. package/dist/module-types/src/components/index.d.ts +1 -1
  222. package/dist/module-types/src/components/mockup/MockupJukiProvider.d.ts +1 -1
  223. package/dist/module-types/src/components/mockup/index.d.ts +4 -0
  224. package/dist/module-types/src/components/molecules/Breadcrumbs/types.d.ts +1 -1
  225. package/dist/module-types/src/components/molecules/ButtonLoader/types.d.ts +1 -1
  226. package/dist/module-types/src/components/molecules/CheckboxList/types.d.ts +1 -1
  227. package/dist/module-types/src/components/molecules/{server/CircularProgress → CircularProgress}/CircularProgress.d.ts +1 -1
  228. package/dist/module-types/src/components/molecules/DatePicker/DatePicker.d.ts +1 -4
  229. package/dist/module-types/src/components/molecules/DatePicker/types.d.ts +17 -17
  230. package/dist/module-types/src/components/molecules/Drawer/types.d.ts +1 -1
  231. package/dist/module-types/src/components/molecules/FetcherLayer/FetcherLayer.d.ts +2 -2
  232. package/dist/module-types/src/components/molecules/FetcherLayer/types.d.ts +8 -8
  233. package/dist/module-types/src/components/molecules/FirstLoginWrapper/types.d.ts +1 -1
  234. package/dist/module-types/src/components/molecules/FloatToolbar/types.d.ts +2 -2
  235. package/dist/module-types/src/components/molecules/HomeLink/types.d.ts +2 -0
  236. package/dist/module-types/src/components/molecules/InformationPopover/FrozenInformation.d.ts +1 -1
  237. package/dist/module-types/src/components/molecules/InformationPopover/InformationPopover.d.ts +2 -2
  238. package/dist/module-types/src/components/molecules/InformationPopover/NewlineInfo.d.ts +3 -0
  239. package/dist/module-types/src/components/molecules/InformationPopover/QuietInformation.d.ts +1 -1
  240. package/dist/module-types/src/components/molecules/InformationPopover/UpsolvingInformation.d.ts +1 -1
  241. package/dist/module-types/src/components/molecules/InformationPopover/types.d.ts +1 -1
  242. package/dist/module-types/src/components/molecules/LinkLastPath/types.d.ts +2 -2
  243. package/dist/module-types/src/components/molecules/MultiSelectSearchable/types.d.ts +1 -1
  244. package/dist/module-types/src/components/molecules/Pagination/Pagination.d.ts +1 -1
  245. package/dist/module-types/src/components/molecules/ProgressMultiBar/types.d.ts +5 -1
  246. package/dist/module-types/src/components/molecules/ProgressSlide/ProgressSlide.d.ts +1 -1
  247. package/dist/module-types/src/components/molecules/SplitModal/types.d.ts +1 -1
  248. package/dist/module-types/src/components/molecules/SplitPane/types.d.ts +1 -1
  249. package/dist/module-types/src/components/molecules/Tabs/types.d.ts +1 -1
  250. package/dist/module-types/src/components/molecules/TabsInline/TabsInline.deprecated.d.ts +2 -0
  251. package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButton.d.ts +1 -1
  252. package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButtonLoader.d.ts +1 -1
  253. package/dist/module-types/src/components/molecules/TabsInlineBody/TabsInlineBody.deprecated.d.ts +2 -0
  254. package/dist/module-types/src/components/molecules/ThemeColorPalette/types.d.ts +2 -0
  255. package/dist/module-types/src/components/molecules/{server/TimerDisplay → Timer}/TimerDisplay.d.ts +1 -1
  256. package/dist/module-types/src/components/molecules/Timer/types.d.ts +13 -2
  257. package/dist/module-types/src/components/molecules/TimerLabeled/types.d.ts +2 -2
  258. package/dist/module-types/src/components/molecules/TwoActionModal/types.d.ts +1 -1
  259. package/dist/module-types/src/components/molecules/TwoContentSection/types.d.ts +1 -1
  260. package/dist/module-types/src/components/molecules/_lazy_/BarChart/types.d.ts +3 -3
  261. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/CodeEditor.d.ts +1 -1
  262. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/codemirror/ReactCodeMirror.d.ts +2 -8
  263. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/codemirror/extensions/basic-setup.d.ts +1 -1
  264. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/codemirror/timeoutLatch.d.ts +1 -1
  265. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/codemirror/types.d.ts +1 -1
  266. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/codemirror/useCodeMirror.d.ts +1 -1
  267. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/index.d.ts +1 -1
  268. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/types.d.ts +1 -1
  269. package/dist/module-types/src/components/molecules/_lazy_/CodeViewer/types.d.ts +2 -2
  270. package/dist/module-types/src/components/molecules/_lazy_/DataGrid/DataGrid.d.ts +1 -1
  271. package/dist/module-types/src/components/molecules/_lazy_/DrawerView/DrawerView.d.ts +1 -1
  272. package/dist/module-types/src/components/molecules/_lazy_/DrawerView/types.d.ts +1 -1
  273. package/dist/module-types/src/components/molecules/_lazy_/ImageLoaderCropper/canvasPreview.d.ts +1 -1
  274. package/dist/module-types/src/components/molecules/_lazy_/InputColor/types.d.ts +1 -1
  275. package/dist/module-types/src/components/molecules/_lazy_/LineChart/types.d.ts +4 -4
  276. package/dist/module-types/src/components/molecules/_lazy_/SlideDeck/pdfexport.d.ts +1 -1
  277. package/dist/module-types/src/components/molecules/_lazy_/SlideDeck/types.d.ts +2 -2
  278. package/dist/module-types/src/components/molecules/_lazy_/SortableItems/SortableItems.d.ts +1 -1
  279. package/dist/module-types/src/components/molecules/_lazy_/SortableItems/types.d.ts +5 -5
  280. package/dist/module-types/src/components/molecules/index.d.ts +22 -17
  281. package/dist/module-types/src/components/molecules/layouts/types.d.ts +1 -1
  282. package/dist/module-types/src/components/molecules/types.d.ts +14 -12
  283. package/dist/module-types/src/components/organisms/AiChatPanel/types.d.ts +2 -2
  284. package/dist/module-types/src/components/organisms/CardNotification/types.d.ts +2 -2
  285. package/dist/module-types/src/components/organisms/CheckUnsavedChanges/types.d.ts +1 -1
  286. package/dist/module-types/src/components/organisms/HorizontalMenu/types.d.ts +1 -1
  287. package/dist/module-types/src/components/organisms/LoginUser/types.d.ts +1 -1
  288. package/dist/module-types/src/components/organisms/MdMathViewer/MemoMdMath.deprecated.d.ts +3 -0
  289. package/dist/module-types/src/components/organisms/MdMathViewer/MemoMdMathViewer.deprecated.d.ts +2 -0
  290. package/dist/module-types/src/components/organisms/MdMathViewer/types.d.ts +10 -2
  291. package/dist/module-types/src/components/organisms/PageNotFound/types.d.ts +1 -1
  292. package/dist/module-types/src/components/organisms/PresentationToolButtons/PresentationToolButtons.d.ts +1 -1
  293. package/dist/module-types/src/components/organisms/PresentationToolButtons/buttons/Pencil.deprecated.d.ts +0 -0
  294. package/dist/module-types/src/components/organisms/PresentationToolButtons/types.d.ts +2 -0
  295. package/dist/module-types/src/components/organisms/ProblemSelector/ProblemSelector.d.ts +1 -1
  296. package/dist/module-types/src/components/organisms/ProblemSelector/types.d.ts +2 -2
  297. package/dist/module-types/src/components/organisms/ProblemVerdictTag/types.d.ts +1 -1
  298. package/dist/module-types/src/components/organisms/SubmitView/SubmitView.d.ts +1 -1
  299. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionGroupInfo.d.ts +1 -2
  300. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionListenerVerdict.d.ts +1 -1
  301. package/dist/module-types/src/components/organisms/{server/SubmissionMemory → SubmitView/commons}/SubmissionMemory.d.ts +1 -1
  302. package/dist/module-types/src/components/organisms/{server/SubmissionTime → SubmitView/commons}/SubmissionTime.d.ts +1 -1
  303. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionVerdict.d.ts +1 -2
  304. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmitViewContent.d.ts +1 -1
  305. package/dist/module-types/src/components/organisms/SubmitView/types.d.ts +1 -1
  306. package/dist/module-types/src/components/organisms/{server/TextHeadCell → TextHeadCell}/TextHeadCell.d.ts +1 -1
  307. package/dist/module-types/src/components/organisms/UserChip/UserChip.d.ts +2 -5
  308. package/dist/module-types/src/components/organisms/UserChip/types.d.ts +3 -3
  309. package/dist/module-types/src/components/organisms/UserNicknameLink/UserNicknameLink.d.ts +1 -1
  310. package/dist/module-types/src/components/organisms/UsersSelector/types.d.ts +2 -2
  311. package/dist/module-types/src/components/organisms/VerticalMenu/types.d.ts +1 -1
  312. package/dist/module-types/src/components/organisms/_layz_/ChangePasswordModal/index.d.ts +1 -1
  313. package/dist/module-types/src/components/organisms/_layz_/ChangePasswordModal/types.d.ts +1 -1
  314. package/dist/module-types/src/components/organisms/_layz_/DataViewer/CardList/types.d.ts +1 -1
  315. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkContestTableTest/MockJkContestTable.d.ts +1 -1
  316. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkProblemTableTest/MockJkProblemTable.d.ts +1 -1
  317. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkSubmissionsTableTest/MockJkSubmissionTable.d.ts +1 -1
  318. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkUserTableTest/MockJkUserTable.d.ts +1 -1
  319. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/Filter.d.ts +1 -1
  320. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/TableHeadFilterDate.d.ts +1 -1
  321. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/TableHeadFilterDateRange.d.ts +1 -1
  322. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/TableHeadFilterText.d.ts +1 -1
  323. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/index.d.ts +2 -2
  324. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/types.d.ts +2 -2
  325. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/ViewContainerRows.d.ts +1 -1
  326. package/dist/module-types/src/components/organisms/_layz_/DataViewer/commons/DisplayDataViewer.d.ts +1 -1
  327. package/dist/module-types/src/components/organisms/_layz_/DataViewer/commons/utils.d.ts +6 -5
  328. package/dist/module-types/src/components/organisms/_layz_/DataViewer/types.d.ts +11 -10
  329. package/dist/module-types/src/components/organisms/_layz_/GraphvizViewer/GraphvizViewer.d.ts +1 -1
  330. package/dist/module-types/src/components/organisms/_layz_/GraphvizViewer/index.d.ts +1 -1
  331. package/dist/module-types/src/components/organisms/_layz_/MdMath/MdMath.d.ts +1 -1
  332. package/dist/module-types/src/components/organisms/_layz_/MdMath/index.d.ts +1 -1
  333. package/dist/module-types/src/components/organisms/_layz_/MdMath/types.d.ts +1 -1
  334. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/MdMathEditor.d.ts +1 -4
  335. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/MdMathEditor.deprecated.d.ts +2 -0
  336. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/MdMathEditor.tiptap.deprecated.d.ts +0 -0
  337. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/MilkdownEditorContent/MilkdownEditorContent.d.ts +4 -5
  338. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/index.d.ts +2 -5
  339. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/TiptapEditorContent.d.ts +0 -0
  340. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/BlockImage.d.ts +0 -0
  341. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/ClearMarksOnEnter.d.ts +0 -0
  342. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/CurrentNodeHighlighter.d.ts +0 -0
  343. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/CustomCodeBlockLowlight.d.ts +0 -0
  344. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/CustomLink.d.ts +0 -0
  345. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/SmartHeadingBackspace.d.ts +0 -0
  346. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/SmartPasteMarkdown.d.ts +0 -0
  347. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/index.d.ts +0 -0
  348. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/CodeRunnerEditor.d.ts +1 -1
  349. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/FileTreePanel/types.d.ts +2 -2
  350. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/FirstPane.d.ts +3 -4
  351. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/Header/RunCodeButton.d.ts +3 -3
  352. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/MermaidViewer/MermaidViewer.d.ts +1 -1
  353. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/SettingsModal/index.d.ts +1 -1
  354. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/types.d.ts +8 -9
  355. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/UserCodeEditor.d.ts +4 -5
  356. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/code-editor-file.d.ts +7 -0
  357. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/index.d.ts +2 -4
  358. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/types.d.ts +4 -4
  359. package/dist/module-types/src/components/organisms/_layz_/WorksheetAsSlides/index.d.ts +1 -1
  360. package/dist/module-types/src/components/organisms/_layz_/WorksheetAsSlides/types.d.ts +1 -1
  361. package/dist/module-types/src/components/organisms/_layz_/WorksheetContents/index.d.ts +1 -1
  362. package/dist/module-types/src/components/organisms/_layz_/WorksheetContents/types.d.ts +2 -2
  363. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/index.d.ts +1 -1
  364. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/AddNewChild.d.ts +3 -3
  365. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ChunkTitle.d.ts +1 -1
  366. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSection.d.ts +2 -2
  367. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSectionEditor.d.ts +2 -2
  368. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSectionEditorModal.d.ts +10 -0
  369. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSectionView.d.ts +2 -2
  370. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/EditSheetModal.d.ts +2 -2
  371. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSection.d.ts +2 -2
  372. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSectionEditor.d.ts +2 -2
  373. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSectionEditorModal.d.ts +10 -0
  374. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSectionView.d.ts +2 -2
  375. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSection.d.ts +2 -2
  376. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSection.old.d.ts +6 -0
  377. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSectionEditor.d.ts +2 -2
  378. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSectionEditorModal.d.ts +10 -0
  379. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ListSheetSection/ListSheetRecursiveSection.d.ts +9 -0
  380. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ListSheetSection/ListSheetSection.d.ts +7 -0
  381. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ListSheetSection/index.d.ts +1 -0
  382. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSection.d.ts +2 -2
  383. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSectionEditor.d.ts +1 -1
  384. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSectionEditorModal.d.ts +10 -0
  385. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSectionView.d.ts +2 -2
  386. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSection.d.ts +2 -2
  387. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionEditor.d.ts +2 -2
  388. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionEditorModal.d.ts +10 -0
  389. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionEditorModal.old.d.ts +0 -0
  390. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionView.d.ts +1 -1
  391. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionView.old.d.ts +0 -0
  392. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ResultHeader.d.ts +2 -2
  393. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/TableOfContents.d.ts +2 -2
  394. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/TableOfContentsModal.d.ts +3 -3
  395. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/UpRemoveDownButtons.d.ts +7 -0
  396. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/WorksheetBody.d.ts +4 -5
  397. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/WorksheetNode.d.ts +1 -1
  398. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/getActionButtons.d.ts +5 -6
  399. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/logos.d.ts +4 -4
  400. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/types.d.ts +2 -2
  401. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/upRemoveDownActions.d.ts +2 -2
  402. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/types.d.ts +3 -3
  403. package/dist/module-types/src/components/organisms/_layz_/WorksheetViewer/WorksheetViewer.d.ts +1 -1
  404. package/dist/module-types/src/components/organisms/_layz_/WorksheetViewer/types.d.ts +2 -2
  405. package/dist/module-types/src/components/organisms/index.d.ts +14 -13
  406. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/PublicImagesTab/PublicImages.d.ts +3 -3
  407. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/PublicImagesTab/index.d.ts +2 -2
  408. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/UploadNewImageTab/index.d.ts +2 -2
  409. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/types.d.ts +5 -5
  410. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModal.d.ts +2 -2
  411. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/ForgotPassword/types.d.ts +1 -1
  412. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/index.d.ts +1 -1
  413. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/types.d.ts +4 -4
  414. package/dist/module-types/src/components/organisms/modals/LoginModal/types.d.ts +2 -2
  415. package/dist/module-types/src/components/organisms/modals/SignUpModal/SignUpModalTemplate/types.d.ts +2 -2
  416. package/dist/module-types/src/components/organisms/modals/UserPreviewModal/UserPreviewContentModal.d.ts +4 -4
  417. package/dist/module-types/src/components/organisms/modals/UserPreviewModal/types.d.ts +2 -0
  418. package/dist/module-types/src/components/organisms/modals/WelcomeModal/types.d.ts +1 -1
  419. package/dist/module-types/src/components/organisms/modals/index.d.ts +1 -1
  420. package/dist/module-types/src/components/organisms/types.d.ts +10 -9
  421. package/dist/module-types/src/components/providers/JukiAblyInitializer/JukiAblyInitializer.d.ts +1 -1
  422. package/dist/module-types/src/components/providers/JukiI18nInitializer/JukiI18nInitializer.d.ts +1 -0
  423. package/dist/module-types/src/components/providers/JukiI18nInitializer/index.d.ts +1 -0
  424. package/dist/module-types/src/components/providers/JukiLastPathInitializer/types.d.ts +1 -1
  425. package/dist/module-types/src/components/providers/JukiPageInitializer/useMouseInsidePage.d.ts +1 -0
  426. package/dist/module-types/src/components/providers/JukiProviders.d.ts +2 -2
  427. package/dist/module-types/src/components/providers/JukiRouterInitializer/JukiRouterInitializer.d.ts +1 -1
  428. package/dist/module-types/src/components/providers/JukiRouterInitializer/types.d.ts +2 -2
  429. package/dist/module-types/src/components/providers/{server/Image → JukiUIProvider}/Image.d.ts +1 -1
  430. package/dist/module-types/src/components/providers/JukiUIProvider/JukiUIProvider.d.ts +1 -1
  431. package/dist/module-types/src/components/providers/JukiUIProvider/Link.d.ts +1 -1
  432. package/dist/module-types/src/components/providers/JukiUIProvider/types.d.ts +24 -6
  433. package/dist/module-types/src/components/providers/JukiUserProvider/types.d.ts +9 -8
  434. package/dist/module-types/src/components/providers/NotificationProvider/NotificationProvider.d.ts +1 -1
  435. package/dist/module-types/src/components/providers/index.d.ts +1 -1
  436. package/dist/module-types/src/components/providers/types.d.ts +3 -2
  437. package/dist/module-types/src/components/server/index.d.ts +0 -4
  438. package/dist/module-types/src/components/server/types.d.ts +0 -4
  439. package/dist/module-types/src/components/templates/ContestNameLinkField/types.d.ts +2 -2
  440. package/dist/module-types/src/components/templates/EditProfileModal/ImageProfileModal.d.ts +1 -1
  441. package/dist/module-types/src/components/templates/EditProfileModal/types.d.ts +4 -5
  442. package/dist/module-types/src/components/templates/EntityCreateLayout/types.d.ts +1 -1
  443. package/dist/module-types/src/components/templates/EntityUpdateLayout/types.d.ts +1 -1
  444. package/dist/module-types/src/components/templates/ErrorBoundary/types.d.ts +1 -1
  445. package/dist/module-types/src/components/templates/HelpSection/types.d.ts +2 -0
  446. package/dist/module-types/src/components/templates/MainMenu/DrawerViewMenuMobile/DrawerViewMenuMobile.d.ts +2 -2
  447. package/dist/module-types/src/components/templates/MainMenu/DrawerViewMenuMobile/index.d.ts +1 -0
  448. package/dist/module-types/src/components/templates/MainMenu/SettingsSection/index.d.ts +1 -1
  449. package/dist/module-types/src/components/templates/MainMenu/types.d.ts +5 -5
  450. package/dist/module-types/src/components/templates/ProblemView/ProblemInfo.d.ts +1 -1
  451. package/dist/module-types/src/components/templates/ProblemView/ProblemView.d.ts +1 -1
  452. package/dist/module-types/src/components/templates/ProblemView/commons/ProblemCodeEditor.d.ts +2 -2
  453. package/dist/module-types/src/components/templates/ProblemView/commons/SampleTest.d.ts +1 -1
  454. package/dist/module-types/src/components/templates/ProblemView/types.d.ts +4 -4
  455. package/dist/module-types/src/components/templates/ResetPasswordModal/ResetPasswordModal.d.ts +1 -1
  456. package/dist/module-types/src/components/templates/ResetPasswordModal/types.d.ts +2 -2
  457. package/dist/module-types/src/components/templates/UserActiveSessions/UserMyActiveSessions.d.ts +2 -1
  458. package/dist/module-types/src/components/templates/UserActiveSessions/types.d.ts +2 -0
  459. package/dist/module-types/src/components/templates/UserProfile/types.d.ts +1 -1
  460. package/dist/module-types/src/components/templates/UserProfileSettings/types.d.ts +1 -1
  461. package/dist/module-types/src/components/templates/UserViewLayout/ProfileSubmissions.d.ts +2 -1
  462. package/dist/module-types/src/components/templates/UserViewLayout/types.d.ts +5 -3
  463. package/dist/module-types/src/components/templates/columns/contest-columns/getContestContestantsHeader.d.ts +3 -0
  464. package/dist/module-types/src/components/templates/columns/contest-columns/getContestDateHeader.d.ts +3 -0
  465. package/dist/module-types/src/components/templates/columns/contest-columns/getContestNameHeader.d.ts +1 -1
  466. package/dist/module-types/src/components/templates/columns/contest-columns/getContestStatusHeader.d.ts +1 -1
  467. package/dist/module-types/src/components/templates/columns/contest-columns/getContestTagsHeader.d.ts +1 -1
  468. package/dist/module-types/src/components/templates/columns/contest-columns/index.d.ts +2 -2
  469. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemAdminActionsHeader.d.ts +1 -1
  470. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemKeyHeader.d.ts +1 -1
  471. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemModeHeader.d.ts +1 -1
  472. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemNameHeader.d.ts +1 -1
  473. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemOwnerHeader.d.ts +1 -1
  474. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemTagsHeader.d.ts +1 -1
  475. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemTypeHeader.d.ts +1 -1
  476. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionContestHeader.d.ts +1 -1
  477. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionContestProblemHeader.d.ts +1 -1
  478. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionDateHeader.d.ts +1 -1
  479. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionLanguageHeader.d.ts +1 -2
  480. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionMemoryHeader.d.ts +1 -1
  481. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionNicknameHeader.d.ts +2 -2
  482. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionProblemHeader.d.ts +1 -1
  483. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionRejudgeHeader.d.ts +1 -1
  484. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionTimeHeader.d.ts +1 -1
  485. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionVerdictHeader.d.ts +1 -1
  486. package/dist/module-types/src/components/templates/index.d.ts +17 -14
  487. package/dist/module-types/src/components/templates/members/DocumentMembersButton.d.ts +1 -1
  488. package/dist/module-types/src/components/templates/members/DocumentMembersModal/DocumentMembersModal.d.ts +1 -1
  489. package/dist/module-types/src/components/templates/members/types.d.ts +5 -6
  490. package/dist/module-types/src/components/templates/problem/ProblemCrawlerField.d.ts +1 -1
  491. package/dist/module-types/src/components/templates/problem/ProblemModeField.d.ts +1 -1
  492. package/dist/module-types/src/components/templates/problem/ProblemOwnerField.d.ts +1 -1
  493. package/dist/module-types/src/components/templates/problem/ProblemTypeField.d.ts +1 -1
  494. package/dist/module-types/src/components/templates/{server/problem → problem}/TagsField.d.ts +1 -1
  495. package/dist/module-types/src/components/templates/problem/types.d.ts +8 -2
  496. package/dist/module-types/src/components/templates/{server/submission → submission}/SubmissionDateField.d.ts +1 -1
  497. package/dist/module-types/src/components/templates/submission/SubmissionLanguageField.d.ts +1 -1
  498. package/dist/module-types/src/components/templates/submission/SubmissionNicknameField.d.ts +1 -1
  499. package/dist/module-types/src/components/templates/submission/types.d.ts +2 -2
  500. package/dist/module-types/src/components/templates/types.d.ts +15 -12
  501. package/dist/module-types/src/components/types/index.d.ts +10 -12
  502. package/dist/module-types/src/constants/index.d.ts +3 -3
  503. package/dist/module-types/src/constants/settings.d.ts +1 -1
  504. package/dist/module-types/src/constants/worksheet.d.ts +1 -1
  505. package/dist/module-types/src/helpers/index.d.ts +1 -1
  506. package/dist/module-types/src/hooks/index.d.ts +13 -12
  507. package/dist/module-types/src/settings/ApiManager.d.ts +249 -370
  508. package/dist/module-types/src/settings/AppRoutes.d.ts +4 -4
  509. package/dist/module-types/src/stores/ably/useAblyStore.d.ts +2 -2
  510. package/dist/module-types/src/stores/i18n/i18n.d.ts +2 -0
  511. package/dist/module-types/src/stores/i18n/i18nConfig.d.ts +7 -0
  512. package/dist/module-types/src/stores/i18n/useI18nStore.d.ts +8 -0
  513. package/dist/module-types/src/stores/lastPath/useLastPath.d.ts +1 -1
  514. package/dist/module-types/src/stores/router/useRouterStore.d.ts +2 -2
  515. package/dist/module-types/src/stores/sound/useSoundStore.d.ts +1 -1
  516. package/dist/module-types/src/stores/ui/useUIStore.d.ts +2 -2
  517. package/dist/module-types/src/stores/user/useUserStore.d.ts +2 -2
  518. package/dist/module-types/src/stores/websocket/types.d.ts +2 -2
  519. package/dist/module-types/src/stores/websocket/useWebsocketStore.d.ts +1 -1
  520. package/dist/module-types/src/types/index.d.ts +1 -1
  521. package/package.json +70 -76
  522. package/src/styles/components/atoms/_button.scss +7 -7
  523. package/src/styles/components/atoms/_data-viewer.scss +3 -3
  524. package/src/styles/components/atoms/_modal.scss +0 -9
  525. package/src/vendor/@milkdown/crepe/lib/theme/common/code-mirror.css +0 -14
  526. package/src/vendor/@milkdown/crepe/lib/theme/common/style.css +0 -2
  527. package/src/vendor/@milkdown/crepe/src/theme/common/code-mirror.css +0 -14
  528. package/src/vendor/@milkdown/crepe/src/theme/common/style.css +0 -2
  529. package/src/vendor/fumadocs-ui/css/generated/docs.css +281 -3
  530. package/src/vendor/fumadocs-ui/css/generated/flux.css +264 -2
  531. package/src/vendor/fumadocs-ui/css/generated/home.css +161 -1
  532. package/src/vendor/fumadocs-ui/css/generated/notebook.css +288 -6
  533. package/src/vendor/fumadocs-ui/css/generated/shared.css +103 -80
  534. package/src/vendor/fumadocs-ui/css/lib/base.css +1 -78
  535. package/src/vendor/fumadocs-ui/css/lib/shiki.css +2 -2
  536. package/src/vendor/fumadocs-ui/css/preset.css +80 -0
  537. package/src/vendor/fumadocs-ui/dist/style.css +47 -63
  538. package/src/vendor/handsontable/styles/handsontable.css +82 -335
  539. package/src/vendor/handsontable/styles/handsontable.min.css +3 -4
  540. package/src/vendor/handsontable/styles/ht-icons-horizon.css +3 -11
  541. package/src/vendor/handsontable/styles/ht-icons-horizon.min.css +3 -4
  542. package/src/vendor/handsontable/styles/ht-icons-main.css +3 -11
  543. package/src/vendor/handsontable/styles/ht-icons-main.min.css +3 -4
  544. package/src/vendor/handsontable/styles/ht-theme-classic-no-icons.css +2 -21
  545. package/src/vendor/handsontable/styles/ht-theme-classic-no-icons.min.css +3 -4
  546. package/src/vendor/handsontable/styles/ht-theme-classic.css +5 -32
  547. package/src/vendor/handsontable/styles/ht-theme-classic.min.css +3 -4
  548. package/src/vendor/handsontable/styles/ht-theme-horizon-no-icons.css +1 -20
  549. package/src/vendor/handsontable/styles/ht-theme-horizon-no-icons.min.css +3 -4
  550. package/src/vendor/handsontable/styles/ht-theme-horizon.css +4 -31
  551. package/src/vendor/handsontable/styles/ht-theme-horizon.min.css +3 -4
  552. package/src/vendor/handsontable/styles/ht-theme-main-no-icons.css +2 -21
  553. package/src/vendor/handsontable/styles/ht-theme-main-no-icons.min.css +3 -4
  554. package/src/vendor/handsontable/styles/ht-theme-main.css +5 -32
  555. package/src/vendor/handsontable/styles/ht-theme-main.min.css +3 -4
  556. package/src/vendor/katex/dist/katex-swap.css +2 -5
  557. package/src/vendor/katex/dist/katex-swap.min.css +1 -1
  558. package/src/vendor/katex/dist/katex.css +2 -5
  559. package/src/vendor/katex/dist/katex.min.css +1 -1
  560. package/src/vendor/katex/src/styles/katex.scss +1 -3
  561. package/dist/esm/ArrowForwardIcon-9VrCQrla.js +0 -1
  562. package/dist/esm/BarChart-BYCvk2RN.js +0 -1
  563. package/dist/esm/CartesianChart-D1L2w_VG.js +0 -47
  564. package/dist/esm/ChangePasswordModal-DOBon_ok.js +0 -1
  565. package/dist/esm/CodeEditor-B6YXqauq.js +0 -1
  566. package/dist/esm/DataGrid-Dy2MSOK0.js +0 -277
  567. package/dist/esm/DataViewer-DebzEZj0.js +0 -1
  568. package/dist/esm/DrawerView-C6KbvsgW.js +0 -1
  569. package/dist/esm/ExcalidrawButton-rCOaM390.js +0 -1
  570. package/dist/esm/GraphvizViewer-DQ_3zkqP.js +0 -1
  571. package/dist/esm/ImageLoaderCropper-DCPp73Ao.js +0 -1
  572. package/dist/esm/InputCellPhoneNumber-UNqdq7Va.js +0 -1
  573. package/dist/esm/InputColor-DLE6PJz7.js +0 -14
  574. package/dist/esm/LineChart-DxN-I5Kl.js +0 -1
  575. package/dist/esm/MdMath-BQs4hBpa.js +0 -1
  576. package/dist/esm/MdMathEditor-BHfoWvp_.js +0 -28
  577. package/dist/esm/ReplyIcon-rPXXCIKg.js +0 -1
  578. package/dist/esm/SettingsIcon-DnAtSsRm.js +0 -1
  579. package/dist/esm/SlideDeck-c69qGz1J.js +0 -1
  580. package/dist/esm/TableOfContents-CL2MOKlA.js +0 -1
  581. package/dist/esm/TextHeadCell-CExu2jw7.js +0 -1
  582. package/dist/esm/Tooltip-C-DKzZ8R.js +0 -7
  583. package/dist/esm/UserCodeEditor-CAg3dvAT.js +0 -30
  584. package/dist/esm/ViewModuleIcon-B7qvToID.js +0 -1
  585. package/dist/esm/VirtualizedRowsFixed-Bks5JFSx.js +0 -1
  586. package/dist/esm/WorksheetAsSlides-B1YaxqYO.js +0 -1
  587. package/dist/esm/WorksheetBodies-BnGXG6wi.js +0 -1
  588. package/dist/esm/WorksheetContents-CJbNoWXT.js +0 -1
  589. package/dist/esm/WorksheetEditor-B37fFHcY.js +0 -1
  590. package/dist/esm/WorksheetNode-DjqZZQRs.js +0 -1
  591. package/dist/esm/WorksheetViewer-DE_XAr2A.js +0 -1
  592. package/dist/esm/arc-BalHlvik.js +0 -1
  593. package/dist/esm/architectureDiagram-3BPJPVTR-DaZ9rWVO.js +0 -1
  594. package/dist/esm/blockDiagram-GPEHLZMM-CgMTM8qx.js +0 -1
  595. package/dist/esm/c4Diagram-AAUBKEIU-DF5dBD4X.js +0 -1
  596. package/dist/esm/channel-DtX7K8fH.js +0 -1
  597. package/dist/esm/chunk-2J33WTMH-BSF8-_lr.js +0 -1
  598. package/dist/esm/chunk-55IACEB6-Ce1Mc1lZ.js +0 -1
  599. package/dist/esm/chunk-727SXJPM-Cc0QJGYk.js +0 -1
  600. package/dist/esm/chunk-AQP2D5EJ-D7lU0Qk0.js +0 -1
  601. package/dist/esm/chunk-ND2GUHAM-BD5ZdCjv.js +0 -1
  602. package/dist/esm/classDiagram-4FO5ZUOK-B6nVlqWv.js +0 -1
  603. package/dist/esm/classDiagram-v2-Q7XG4LA2-B6nVlqWv.js +0 -1
  604. package/dist/esm/contest-hvD3tLnF.js +0 -1
  605. package/dist/esm/cose-bilkent-S5V4N54A-C1xAVZwJ.js +0 -1
  606. package/dist/esm/cytoscape.esm-ym4YJMee.js +0 -9
  607. package/dist/esm/dagre-BM42HDAG-BTH23OkS.js +0 -1
  608. package/dist/esm/date-D28INXpp.js +0 -1
  609. package/dist/esm/diagram-2AECGRRQ-s_eIY8Ju.js +0 -1
  610. package/dist/esm/diagram-5GNKFQAL-BQ7iPFrS.js +0 -1
  611. package/dist/esm/diagram-KO2AKTUF-BwauQwgA.js +0 -1
  612. package/dist/esm/diagram-LMA3HP47-VgneUbzF.js +0 -1
  613. package/dist/esm/diagram-OG6HWLK6-CQXmLp-X.js +0 -1
  614. package/dist/esm/erDiagram-TEJ5UH35-BrtUM8g8.js +0 -1
  615. package/dist/esm/flowDiagram-I6XJVG4X-BVuY5iRd.js +0 -1
  616. package/dist/esm/ganttDiagram-6RSMTGT7-Dp3J7m4L.js +0 -1
  617. package/dist/esm/gitGraphDiagram-PVQCEYII-DDvUv1py.js +0 -1
  618. package/dist/esm/graph-ByvXLzfz.js +0 -1
  619. package/dist/esm/index-3RT03X12.js +0 -1
  620. package/dist/esm/index-4xl-oI83.js +0 -1
  621. package/dist/esm/index-8NOL5jJy.js +0 -1
  622. package/dist/esm/index-B8r5j97Z.js +0 -1
  623. package/dist/esm/index-B8yg8iZ5.js +0 -1
  624. package/dist/esm/index-BozcvZKO.js +0 -1
  625. package/dist/esm/index-C7UTkWm2.js +0 -1
  626. package/dist/esm/index-CCoeYJCH.js +0 -1
  627. package/dist/esm/index-CHdwVvPu.js +0 -1
  628. package/dist/esm/index-CICkoZjG.js +0 -1
  629. package/dist/esm/index-CQTsT8Zj.js +0 -1
  630. package/dist/esm/index-CU5b90xS.js +0 -1
  631. package/dist/esm/index-CWWVtFL-.js +0 -1
  632. package/dist/esm/index-CYal7RVq.js +0 -1
  633. package/dist/esm/index-CZHb8PSE.js +0 -1
  634. package/dist/esm/index-C_iDYl6D.js +0 -1
  635. package/dist/esm/index-Ci0TIrsP.js +0 -1
  636. package/dist/esm/index-CncjGRa9.js +0 -1
  637. package/dist/esm/index-CoD0BG11.js +0 -1
  638. package/dist/esm/index-D2MvgUx2.js +0 -1
  639. package/dist/esm/index-DI4w9v5q.js +0 -1
  640. package/dist/esm/index-DO5jS6VE.js +0 -1
  641. package/dist/esm/index-DPqNWk5z.js +0 -1
  642. package/dist/esm/index-DQ_RDg2x.js +0 -1
  643. package/dist/esm/index-DUSXBI7E.js +0 -1
  644. package/dist/esm/index-DklIqAi8.js +0 -1
  645. package/dist/esm/index-DoTjNc47.js +0 -2
  646. package/dist/esm/index-Dwi3ag-n.js +0 -1
  647. package/dist/esm/index-mPuca8dy.js +0 -1
  648. package/dist/esm/index-uScqGt-h.js +0 -1
  649. package/dist/esm/index-wgkxcuUd.js +0 -1
  650. package/dist/esm/infoDiagram-5YYISTIA-D0QNaNgu.js +0 -1
  651. package/dist/esm/isSymbol-BuOnvf7n.js +0 -1
  652. package/dist/esm/isUndefined-DFy0_ZQT.js +0 -1
  653. package/dist/esm/ishikawaDiagram-YF4QCWOH-C5VX82DI.js +0 -1
  654. package/dist/esm/journeyDiagram-JHISSGLW-BVEghM8I.js +0 -1
  655. package/dist/esm/kanban-definition-UN3LZRKU-2IZxapBL.js +0 -1
  656. package/dist/esm/layout-C8ygm6VF.js +0 -1
  657. package/dist/esm/light-CK5396YO.js +0 -1
  658. package/dist/esm/map-CkaOHTqG.js +0 -1
  659. package/dist/esm/mermaid.core-DoQpgFF5.js +0 -1
  660. package/dist/esm/mindmap-definition-RKZ34NQL-D-7AMujv.js +0 -1
  661. package/dist/esm/pieDiagram-4H26LBE5-mrgU3sOl.js +0 -1
  662. package/dist/esm/purify.es-J-_UhghA.js +0 -2
  663. package/dist/esm/quadrantDiagram-W4KKPZXB-O8NSasGc.js +0 -1
  664. package/dist/esm/requirementDiagram-4Y6WPE33-CQHcM086.js +0 -1
  665. package/dist/esm/sankeyDiagram-5OEKKPKP-DFihOSab.js +0 -1
  666. package/dist/esm/sequenceDiagram-3UESZ5HK-CR8iCSRR.js +0 -1
  667. package/dist/esm/settings-DgLs6IK_.js +0 -1
  668. package/dist/esm/stateDiagram-AJRCARHV-CRmD_B8Z.js +0 -1
  669. package/dist/esm/stateDiagram-v2-BHNVJYJU-BQMQV-zB.js +0 -1
  670. package/dist/esm/throttle-_MCmQvyw.js +0 -1
  671. package/dist/esm/time-BHcZPeyw.js +0 -1
  672. package/dist/esm/time-BJsLnFy1.js +0 -1
  673. package/dist/esm/timeline-definition-PNZ67QCA-BSXJOTVE.js +0 -1
  674. package/dist/esm/toNumber-DP6YK8S3.js +0 -1
  675. package/dist/esm/types-DYOIqA8v.js +0 -1
  676. package/dist/esm/vennDiagram-CIIHVFJN-BGumey1i.js +0 -1
  677. package/dist/esm/viz-BjPw9uNj.js +0 -9
  678. package/dist/esm/wardley-L42UT6IY-Bn2xZ99U.js +0 -15
  679. package/dist/esm/wardleyDiagram-YWT4CUSO-CXmvZufs.js +0 -1
  680. package/dist/esm/worksheet-BBAH_yZC.js +0 -1
  681. package/dist/esm/worksheet-DTRmzBjG.js +0 -1
  682. package/dist/esm/worksheet-GN3yGKYw.js +0 -1
  683. package/dist/esm/xychartDiagram-2RQKCTM6-DZBDvK3P.js +0 -1
  684. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3/node_modules/@milkdown/kit/lib/component/diff.d.ts +0 -1
  685. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3/node_modules/@milkdown/kit/lib/exception.d.ts +0 -1
  686. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3/node_modules/@milkdown/kit/lib/plugin/diff.d.ts +0 -1
  687. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3/node_modules/@milkdown/kit/lib/plugin/streaming.d.ts +0 -1
  688. package/dist/module-types/src/components/atoms/T/T.server.d.ts +0 -2
  689. package/dist/module-types/src/components/atoms/T/cache.d.ts +0 -4
  690. package/dist/module-types/src/components/atoms/T/client.d.ts +0 -7
  691. package/dist/module-types/src/components/atoms/T/server.d.ts +0 -12
  692. package/dist/module-types/src/components/atoms/T/shared.d.ts +0 -2
  693. package/dist/module-types/src/components/atoms/server/T/index.d.ts +0 -3
  694. package/dist/module-types/src/components/molecules/server/CircularProgress/types.d.ts +0 -4
  695. package/dist/module-types/src/components/molecules/server/NewlineInfo/NewlineInfo.d.ts +0 -2
  696. package/dist/module-types/src/components/molecules/server/NewlineInfo/types.d.ts +0 -3
  697. package/dist/module-types/src/components/molecules/server/TimerDisplay/types.d.ts +0 -13
  698. package/dist/module-types/src/components/molecules/server/index.d.ts +0 -5
  699. package/dist/module-types/src/components/molecules/server/types.d.ts +0 -3
  700. package/dist/module-types/src/components/organisms/server/index.d.ts +0 -3
  701. package/dist/module-types/src/components/organisms/server/types.d.ts +0 -1
  702. package/dist/module-types/src/components/providers/JukiI18nBridge/JukiI18nBridge.d.ts +0 -23
  703. package/dist/module-types/src/components/providers/JukiI18nBridge/index.d.ts +0 -1
  704. package/dist/module-types/src/components/providers/server/Image/types.d.ts +0 -20
  705. package/dist/module-types/src/components/providers/server/index.d.ts +0 -1
  706. package/dist/module-types/src/components/providers/server/types.d.ts +0 -1
  707. package/dist/module-types/src/components/templates/server/ProblemStatus/types.d.ts +0 -6
  708. package/dist/module-types/src/components/templates/server/columns/contest-columns/getContestContestantsHeader.d.ts +0 -3
  709. package/dist/module-types/src/components/templates/server/columns/contest-columns/getContestDateHeader.d.ts +0 -3
  710. package/dist/module-types/src/components/templates/server/index.d.ts +0 -5
  711. package/dist/module-types/src/components/templates/server/types.d.ts +0 -1
  712. package/src/vendor/@milkdown/crepe/lib/theme/common/ai.css +0 -446
  713. package/src/vendor/@milkdown/crepe/lib/theme/common/diff.css +0 -177
  714. package/src/vendor/@milkdown/crepe/src/theme/common/ai.css +0 -430
  715. package/src/vendor/@milkdown/crepe/src/theme/common/diff.css +0 -196
  716. package/src/vendor/fumadocs-ui/css/preset-legacy.css +0 -38
  717. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/code-block.d.ts +0 -0
  718. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/image-block.d.ts +0 -0
  719. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/image-inline.d.ts +0 -0
  720. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/index.d.ts +0 -0
  721. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/link-tooltip.d.ts +0 -0
  722. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/list-item-block.d.ts +0 -0
  723. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/table-block.d.ts +0 -0
  724. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/core.d.ts +0 -0
  725. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/ctx.d.ts +0 -0
  726. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/block.d.ts +0 -0
  727. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/clipboard.d.ts +0 -0
  728. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/cursor.d.ts +0 -0
  729. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/history.d.ts +0 -0
  730. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/indent.d.ts +0 -0
  731. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/listener.d.ts +0 -0
  732. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/slash.d.ts +0 -0
  733. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/tooltip.d.ts +0 -0
  734. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/trailing.d.ts +0 -0
  735. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/upload.d.ts +0 -0
  736. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/preset/commonmark.d.ts +0 -0
  737. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/preset/gfm.d.ts +0 -0
  738. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/history.d.ts +0 -0
  739. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/index.d.ts +0 -0
  740. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/inputrules.d.ts +0 -0
  741. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/keymap.d.ts +0 -0
  742. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/model.d.ts +0 -0
  743. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/state.d.ts +0 -0
  744. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/view.d.ts +0 -0
  745. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/utils.d.ts +0 -0
  746. /package/dist/module-types/src/components/atoms/{server/DateLiteral → DateLiteral}/DateLiteral.d.ts +0 -0
  747. /package/dist/module-types/src/components/molecules/{server/ThemeColorPalette → ThemeColorPalette}/ThemeColorPalette.d.ts +0 -0
  748. /package/dist/module-types/src/components/molecules/{server/layouts → layouts}/ApplicationLoaderLayout.d.ts +0 -0
  749. /package/dist/module-types/src/components/templates/{server/ProblemStatus → problem}/ProblemStatus.d.ts +0 -0
@@ -1,30 +0,0 @@
1
- 'use client';
2
- 'use strict';
3
- import*as e from"react/jsx-runtime";import{jsxs as t,Fragment as i,jsx as s}from"react/jsx-runtime";import*as r from"react";import n,{useState as a,useRef as o,useCallback as l,useEffect as c,useMemo as p,use as h,createContext as u,forwardRef as d,useContext as m,createElement as f,useEffectEvent as g,useLayoutEffect as x,useImperativeHandle as y}from"react";import{R as v,a as b,C as w,b as k,i as C,f as E,T as S}from"./index-Dwi3ag-n.js";import{bf as _,b4 as N,al as A,Z as I,a6 as T,b as P,r as L,bS as V,cW as R,de as O,dd as j,cZ as D,d as M,d9 as F,aQ as B,j as U,i as z,m as J,ar as q,ba as X,a7 as G,aJ as W,aV as H,b6 as $,b7 as K,aw as Q,aq as Y,dk as Z,d5 as ee,ax as te,df as ie}from"./index-DoTjNc47.js";import{z as se,d as re,x as ne,h as ae,i as oe,C as le}from"./index-DUSXBI7E.js";import{S as ce,g as pe,f as he,C as ue,e as de,v as me,u as fe,x as ge,F as xe,m as ye}from"./contest-hvD3tLnF.js";import ve from"./MdMathEditor-BHfoWvp_.js";import{A as be,S as we}from"./SettingsIcon-DnAtSsRm.js";import{g as ke,h as Ce,E as Ee,p as Se,e as _e,f as Ne,n as Ae,t as Ie,H as Te,I as Pe,aa as Le,ad as Ve,T as Re,aG as Oe,a2 as je,an as De,C as Me,P as Fe}from"./ViewModuleIcon-B7qvToID.js";import{D as Be,a as Ue,F as ze,P as Je,M as qe}from"./index-CICkoZjG.js";import{f as Xe,v as Ge,R as We,S as He}from"./worksheet-BBAH_yZC.js";import{C as $e}from"./settings-DgLs6IK_.js";import{c as Ke}from"./clsx-BeLtu-UY.js";import"react-dom";import{V as Qe,t as Ye,F as Ze,h as et,a as tt,y as it,e as st,q as rt,s as nt,k as at,r as ot,z as lt,b as ct,d as pt,f as ht,D as ut,A as dt,x as mt,v as ft,w as gt}from"./types-DYOIqA8v.js";import{n as xt,f as yt,a as vt,j as bt,k as wt,m as kt,o as Ct,q as Et,b as St,e as _t,i as Nt,c as At,g as It,r as Tt}from"./index-CCoeYJCH.js";import{P as Pt,m as Lt}from"./date-D28INXpp.js";import"./enums.js";import"motion/react";import"./time-BHcZPeyw.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./light-CK5396YO.js";import"./purify.es-J-_UhghA.js";import"./floating-ui.dom-D1Wb0QDy.js";import"./throttle-_MCmQvyw.js";import"./isSymbol-BuOnvf7n.js";import"./toNumber-DP6YK8S3.js";import"./viz-BjPw9uNj.js";import"./mermaid.core-DoQpgFF5.js";import"./string-CQk_HvWX.js";const Vt=(e,t,i)=>{const{timeUsed:s,memoryUsed:r,exitCode:n}=jt(e?.log),a=s>t,o=r>i,l=0!==n;return{compilationError:e?.status===Xe.COMPILATION_ERROR,timeUsed:s,timeLimitExceeded:a,memoryUsed:r,memoryLimitExceeded:o,exitCode:n,runtimeError:l,failed:!!e?.log&&(a||o||l)}};function Rt(e,t,i,s,r){return t?Pt.CE:i?Pt.TLE:s?Pt.MLE:r?Pt.RE:function(e){if(e.out===e.testOut)return Pt.AC;const t=e=>e.replaceAll(" ","").replaceAll("\n","");return t(e.out)===t(e.testOut)?e.withPE?Pt.PE:Pt.AC:Pt.WA}(e)}function Ot(e,t){return parseInt(e.slice(t.length+1),10)}const jt=e=>{const t=e?.split?.("\n")??[],i=t.length>4?function(e){let t=0,i=0,s=-1;for(const r of e)r.startsWith("time:")?t=1e3*(Number.isNaN(+r.split(":")[1])?0:+r.split(":")[1]):r.startsWith("max-rss:")?i=Ot(r,"max-rss"):r.startsWith("exitcode:")&&(s=Ot(r,"exitcode"));return{timeUsed:t,memoryUsed:i,exitCode:s}}(t):t.length>=3?function(e){return{timeUsed:+e[0],memoryUsed:+e[1],exitCode:+e[2]}}(t):{timeUsed:0,memoryUsed:0,exitCode:-1};return{timeUsed:Number.isNaN(i.timeUsed)?0:i.timeUsed,memoryUsed:Number.isNaN(i.memoryUsed)?0:i.memoryUsed,exitCode:Number.isNaN(i.exitCode)?-1:i.exitCode}};function Dt(e,t=16){if(e.length<=t)return e;const i=e.lastIndexOf("."),s=i>0?e.slice(i):"",r=t-s.length-1;return r>0?`${e.slice(0,r)}…${s}`:`${e.slice(0,t-1)}…`}function Mt({fileKey:e,name:i,folderPath:r,description:n,globalIndex:a,currentFileName:o,viewFiles:l,onChangeRef:c,setOpenFileName:p,setFileNameEdit:h,setFolderPathEdit:u,setDescriptionEdit:d,setFileNameDelete:m}){return s("div",{className:re("tx-t jk-pg-xsm jk-col nowrap left stretch",{"bc-ht-lt":e===o,hoverable:e!==o}),onClick:e!==o?t=>{t.stopPropagation(),c.current?.({fileName:e})}:e=>e.stopPropagation(),children:l?t("div",{className:"jk-row gap nowrap space-between",children:[t("div",{className:"jk-row nowrap",children:[s(Be,{letter:""+(a+1)%10,letterSize:12,size:"tiny"}),s("span",{"data-tooltip-id":"jk-tooltip","data-tooltip-content":i,style:{marginLeft:2,fontFamily:"monospace",letterSpacing:"-0.04em",whiteSpace:"nowrap"},children:Dt(i)})]}),t("div",{className:"jk-row gap display-on-hover-2 nowrap",children:[s(Ee,{className:re({"cr-tx-ht-lt":e!==o}),size:"tiny",onClick:()=>{p(e),h(i),u(r),d(n)}}),s(Se,{className:re({"cr-tx-ht-lt":e!==o}),size:"tiny",onClick:()=>m(e)})]})]}):s("div",{className:"jk-row gap nowrap space-between",children:s("div",{className:"jk-row nowrap",children:s(Be,{letter:""+(a+1)%10,letterSize:12,size:"tiny"})})})})}function Ft(e,t){return!!e.files.some(e=>e.key===t)||e.children.some(e=>"folder"===e.type&&Ft(e,t))}function Bt({node:e,depth:i,viewFiles:r,currentFileName:n,onChangeRef:o,setOpenFileName:l,setFileNameEdit:c,setFolderPathEdit:p,setDescriptionEdit:h,setFileNameDelete:u,globalIndexMap:d}){const[m,f]=a(!0),g=Ft(e,n),x=g||m;return t("div",{style:{paddingLeft:0},children:[t("div",{className:"jk-row left gap hoverable jk-pg-xsm tx-t fw-bd nowrap",style:{cursor:"pointer"},onClick:e=>{e.stopPropagation(),g||f(e=>!e)},children:[s(x?Ue:ze,{size:"tiny"}),r&&s("span",{children:e.name}),r&&s(x?_e:Ne,{size:"tiny"})]}),x&&s("div",{style:{marginLeft:r?14:4,borderLeft:"1px solid var(--cr-ht)"},children:[...e.files.map(e=>({type:"file",name:e.name,data:e})),...e.children.filter(e=>"folder"===e.type).map(e=>({type:"folder",name:e.name,data:e}))].sort((e,t)=>e.name.localeCompare(t.name)).map(e=>"file"===e.type?s(Mt,{fileKey:e.data.key,name:e.data.name,folderPath:e.data.folderPath,description:e.data.description,globalIndex:d.get(e.data.key)??e.data.index,currentFileName:n,viewFiles:r,onChangeRef:o,setOpenFileName:l,setFileNameEdit:c,setFolderPathEdit:p,setDescriptionEdit:h,setFileNameDelete:u},e.data.key):s(Bt,{node:e.data,depth:i+1,viewFiles:r,currentFileName:n,onChangeRef:o,setOpenFileName:l,setFileNameEdit:c,setFolderPathEdit:p,setDescriptionEdit:h,setFileNameDelete:u,globalIndexMap:d},e.data.path))})]})}const Ut=e=>{const{fileTreePanelRef:r,files:n,currentFileName:o,onChangeRef:l,readOnly:c}=e,[p,h]=a(!1),[u,d]=a(""),[m,f]=a(""),[g,x]=a(""),[y,v]=a(""),[b,w]=a(""),k=()=>{l.current?.({fileNameEdited:[u,m.trim().replace(/\//g,"_"),se(g),y]}),d("")},C=Object.entries(n),E=[...C].sort(([,e],[,t])=>e.index-t.index),S=new Map(E.map(([e],t)=>[e,t])),V=function(e){const t=[],i=new Map,s=e=>{const r=i.get(e);if(r)return r;const n=e.split("/").filter(Boolean),a={type:"folder",name:n[n.length-1]??e,path:e,children:[],files:[]};if(i.set(e,a),n.length<=1)t.push(a);else{const e=`/${n.slice(0,-1).join("/")}`;s(e).children.push(a)}return a},r=[];for(const[t,i]of e){const e=i.folderPath,n=i.description??"";e&&"/"!==e&&""!==e?s(e.startsWith("/")?e:`/${e}`).files.push({key:t,name:i.name,folderPath:e,index:i.index,description:n}):r.push({key:t,name:i.name,folderPath:"",index:i.index,description:n})}return[...r.map(e=>({type:"file",key:e.key,name:e.name,folderPath:e.folderPath,index:e.index,description:e.description})),...t].sort((e,t)=>e.name.localeCompare(t.name))}(C),R={currentFileName:o,viewFiles:p,onChangeRef:l,setOpenFileName:d,setFileNameEdit:f,setFolderPathEdit:x,setDescriptionEdit:v,setFileNameDelete:w};return t(i,{children:[s(_,{primary:{label:s(N,{className:"tt-se",children:"delete"}),onClick:()=>{l.current?.({fileNameDeleted:b}),w("")}},title:s(N,{className:"tt-se",children:"warning"}),isOpen:!!b,onClose:()=>w(""),children:t("div",{className:"jk-col gap",children:[s(N,{className:"tt-se",children:"are you sure you want to delete the file?"}),s("div",{className:"jk-tag bc-ht-lt",children:b}),s(N,{className:"tt-se",children:"it can't be undone"})]})}),s(A,{isOpen:!!u,onClose:()=>d(""),children:t("div",{className:"jk-pg jk-col gap stretch",children:[s(I,{label:s(N,{className:"tt-se",children:"new name"}),labelPlacement:"top",value:m,onChange:f,onEnter:k,expand:!0}),s(I,{label:s(N,{className:"tt-se",children:"folder path"}),labelPlacement:"top",value:g,onChange:x,onEnter:k,expand:!0}),s(T,{label:s(N,{className:"tt-se",children:"description"}),labelPlacement:"top",value:y,onChange:v,expand:!0}),t("div",{className:"jk-row gap right",children:[s(P,{type:"secondary",onClick:()=>d(""),children:s(N,{className:"tt-se",children:"cancel"})}),s(P,{onClick:k,children:s(N,{className:"tt-se",children:"change"})})]})]})}),t("div",{className:"jk-col top stretch nowrap",style:{borderRight:"1px solid var(--cr-ht-lt)"},ref:r,children:[t(L,{className:"jk-row fw-bd jk-pg-xsm-tb bc-ht-lt left hoverable",onClick:()=>h(!p),style:{paddingLeft:4},onKeyDownClick:!0,children:[s(p?ke:Ce,{}),p&&s(N,{className:"tt-se",children:"files"})]}),s("div",{className:"jk-divider vertical tiny",style:{height:1}}),t("div",{className:"jk-col top stretch gap nowrap ow-ao",children:[s("div",{className:"jk-col stretch",children:V.map(e=>"file"===e.type?s(Mt,{fileKey:e.key,name:e.name,folderPath:e.folderPath,description:e.description,globalIndex:S.get(e.key)??e.index,...R},e.key):s(Bt,{node:e,depth:0,globalIndexMap:S,...R},e.path))}),s("div",{className:"jk-row jk-pg-xsm-t border-top-highlight-light",children:s(P,{size:"tiny",icon:s(be,{size:"tiny"}),disabled:c,onClick:()=>l.current?.({newFileName:n[o]?.folderPath??""}),children:p&&s(N,{className:"tt-se",children:"new file"})})})]})]})]})};var zt,Jt={exports:{}};
4
- /*! dom-to-image-more 23-10-2025 */var qt,Xt=(zt||(zt=1,qt=Jt,(e=>{let t=(()=>{let t=0;return{escape:function(e){return e.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")},isDataUrl:function(e){return-1!==e.search(/^(data:)/)},canvasToBlob:function(e){return e.toBlob?new Promise(function(t){e.toBlob(t)}):(e=>new Promise(function(t){var i=h(e.toDataURL().split(",")[1]),s=i.length,r=new Uint8Array(s);for(let e=0;e<s;e++)r[e]=i.charCodeAt(e);t(new Blob([r],{type:"image/png"}))}))(e)},resolveUrl:function(e,t){var i=document.implementation.createHTMLDocument(),s=i.createElement("base"),r=(i.head.appendChild(s),i.createElement("a"));return i.body.appendChild(r),s.href=t,r.href=e,r.href},getAndEncode:function(e){let t=l.impl.urlCache.find(function(t){return t.url===e});return t||(t={url:e,promise:null},l.impl.urlCache.push(t)),null===t.promise&&(l.impl.options.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime()),t.promise=new Promise(function(t){let i=new XMLHttpRequest;function s(e){console.error(e),t("")}function r(){var r=l.impl.options.imagePlaceholder;r?t(r):s("Status:"+i.status+" while fetching resource: "+e)}if(i.timeout=l.impl.options.httpTimeout,i.onerror=r,i.ontimeout=r,i.onloadend=function(){if(i.readyState===XMLHttpRequest.DONE){var n=i.status;if(0===n&&e.toLowerCase().startsWith("file://")||200<=n&&n<=300&&null!==i.response){(n=i.response)instanceof Blob||s("Expected response to be a Blob, but got: "+typeof n);let e=new FileReader;e.onloadend=function(){var i=e.result;t(i)};try{e.readAsDataURL(n)}catch(n){s("Failed to read the response as Data URL: "+n.toString())}}else r()}},0<l.impl.options.useCredentialsFilters.length&&(l.impl.options.useCredentials=0<l.impl.options.useCredentialsFilters.filter(t=>0<=e.search(t)).length),l.impl.options.useCredentials&&(i.withCredentials=!0),l.impl.options.corsImg&&0===e.indexOf("http")&&-1===e.indexOf(window.location.origin)){var n="POST"===(l.impl.options.corsImg.method||"GET").toUpperCase()?"POST":"GET";i.open(n,(l.impl.options.corsImg.url||"").replace("#{cors}",e),!0);let t=!1,r=l.impl.options.corsImg.headers||{},a=(Object.keys(r).forEach(function(e){-1!==r[e].indexOf("application/json")&&(t=!0),i.setRequestHeader(e,r[e])}),(e=>{try{return JSON.parse(JSON.stringify(e))}catch(e){s("corsImg.data is missing or invalid:"+e.toString())}})(l.impl.options.corsImg.data||""));Object.keys(a).forEach(function(t){"string"==typeof a[t]&&(a[t]=a[t].replace("#{cors}",e))}),i.responseType="blob",i.send(t?JSON.stringify(a):a)}else i.open("GET",e,!0),i.responseType="blob",i.send()})),t.promise},uid:function(){return"u"+("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4)+t++},asArray:function(e){var t=[],i=e.length;for(let s=0;s<i;s++)t.push(e[s]);return t},escapeXhtml:function(e){return e.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(e){return"data:,"!==e?new Promise(function(t,i){let s=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=new Image;l.impl.options.useCredentials&&(r.crossOrigin="use-credentials"),r.onload=function(){document.body.removeChild(s),window&&window.requestAnimationFrame?window.requestAnimationFrame(function(){t(r)}):t(r)},r.onerror=e=>{document.body.removeChild(s),i(e)},s.appendChild(r),r.src=e,document.body.appendChild(s)}):Promise.resolve()},width:function(e){var t=a(e,"width");if(!isNaN(t))return t;t=a(e,"border-left-width");var i=a(e,"border-right-width");return e.scrollWidth+t+i},height:function(e){var t=a(e,"height");if(!isNaN(t))return t;t=a(e,"border-top-width");var i=a(e,"border-bottom-width");return e.scrollHeight+t+i},getWindow:i,isElement:n,isElementHostForOpenShadowRoot:function(e){return n(e)&&null!==e.shadowRoot},isShadowRoot:s,isInShadowRoot:r,isHTMLElement:function(e){return e instanceof i(e).HTMLElement},isHTMLCanvasElement:function(e){return e instanceof i(e).HTMLCanvasElement},isHTMLInputElement:function(e){return e instanceof i(e).HTMLInputElement},isHTMLImageElement:function(e){return e instanceof i(e).HTMLImageElement},isHTMLLinkElement:function(e){return e instanceof i(e).HTMLLinkElement},isHTMLScriptElement:function(e){return e instanceof i(e).HTMLScriptElement},isHTMLStyleElement:function(e){return e instanceof i(e).HTMLStyleElement},isHTMLTextAreaElement:function(e){return e instanceof i(e).HTMLTextAreaElement},isShadowSlotElement:function(e){return r(e)&&e instanceof i(e).HTMLSlotElement},isSVGElement:function(e){return e instanceof i(e).SVGElement},isSVGRectElement:function(e){return e instanceof i(e).SVGRectElement},isDimensionMissing:function(e){return isNaN(e)||e<=0}};function i(t){return((t=t?t.ownerDocument:void 0)?t.defaultView:void 0)||window||e}function s(e){return e instanceof i(e).ShadowRoot}function r(e){return null!=e&&void 0!==e.getRootNode&&s(e.getRootNode())}function n(e){return e instanceof i(e).Element}function a(e,t){if(e.nodeType===c){let i=p(e).getPropertyValue(t);if("px"===i.slice(-2))return i=i.slice(0,-2),parseFloat(i)}return NaN}})(),i=(()=>{let e=/url\(\s*(["']?)((?:\\.|[^\\)])+)\1\s*\)/gm;return{inlineAll:function(e,t,r){return i(e)?Promise.resolve(e).then(s).then(function(i){let s=Promise.resolve(e);return i.forEach(function(e){s=s.then(function(i){return n(i,e,t,r)})}),s}):Promise.resolve(e)},shouldProcess:i,impl:{readUrls:s,inline:n,urlAsRegex:r}};function i(t){return-1!==t.search(e)}function s(i){for(var s,r=[];null!==(s=e.exec(i));)r.push(s[2]);return r.filter(function(e){return!t.isDataUrl(e)})}function r(e){return new RegExp(`url\\((["']?)(${t.escape(e)})\\1\\)`,"gm")}function n(e,i,s,n){return Promise.resolve(i).then(function(e){return s?t.resolveUrl(e,s):e}).then(n||t.getAndEncode).then(function(t){var s=r(i);return e.replace(s,`url($1${t}$1)`)})}})(),s={resolveAll:function(){return r().then(function(e){return Promise.all(e.map(function(e){return e.resolve()}))}).then(function(e){return e.join("\n")})},impl:{readAll:r}};function r(){return Promise.resolve(t.asArray(document.styleSheets)).then(function(e){let i=[];return e.forEach(function(e){var s=Object.getPrototypeOf(e);if(Object.prototype.hasOwnProperty.call(s,"cssRules"))try{t.asArray(e.cssRules||[]).forEach(i.push.bind(i))}catch(s){console.error("domtoimage: Error while reading CSS rules from: "+e.href,s.toString())}}),i}).then(function(e){return e.filter(function(e){return e.type===CSSRule.FONT_FACE_RULE}).filter(function(e){return i.shouldProcess(e.style.getPropertyValue("src"))})}).then(function(t){return t.map(e)});function e(e){return{resolve:function(){var t=(e.parentStyleSheet||{}).href;return i.inlineAll(e.cssText,t)},src:function(){return e.style.getPropertyValue("src")}}}}let n={inlineAll:function e(s){return t.isElement(s)?function(e){let t=["background","background-image"].map(function(t){let s=e.style.getPropertyValue(t),r=e.style.getPropertyPriority(t);return s?i.inlineAll(s).then(function(i){e.style.setProperty(t,i,r)}):Promise.resolve()});return Promise.all(t).then(function(){return e})}(s).then(function(){return t.isHTMLImageElement(s)?a(s).inline():Promise.all(t.asArray(s.childNodes).map(function(t){return e(t)}))}):Promise.resolve(s)},impl:{newImage:a}};function a(e){return{inline:function(i){return t.isDataUrl(e.src)?Promise.resolve():Promise.resolve(e.src).then(i||t.getAndEncode).then(function(t){return new Promise(function(i){e.onload=i,e.onerror=i,e.src=t})})}}}let o={copyDefaultStyles:!0,imagePlaceholder:void 0,cacheBust:!1,useCredentials:!1,useCredentialsFilters:[],httpTimeout:3e4,styleCaching:"strict",corsImg:void 0},l={toSvg:u,toPng:function(e,t){return d(e,t).then(function(e){return e.toDataURL()})},toJpeg:function(e,t){return d(e,t).then(function(e){return e.toDataURL("image/jpeg",(t?t.quality:void 0)||1)})},toBlob:function(e,i){return d(e,i).then(t.canvasToBlob)},toPixelData:function(e,i){return d(e,i).then(function(i){return i.getContext("2d").getImageData(0,0,t.width(e),t.height(e)).data})},toCanvas:d,impl:{fontFaces:s,images:n,util:t,inliner:i,urlCache:[],options:{},copyOptions:function(e){void 0===e.copyDefaultStyles?l.impl.options.copyDefaultStyles=o.copyDefaultStyles:l.impl.options.copyDefaultStyles=e.copyDefaultStyles,l.impl.options.imagePlaceholder=(void 0===e.imagePlaceholder?o:e).imagePlaceholder,l.impl.options.cacheBust=(void 0===e.cacheBust?o:e).cacheBust,l.impl.options.corsImg=(void 0===e.corsImg?o:e).corsImg,l.impl.options.useCredentials=(void 0===e.useCredentials?o:e).useCredentials,l.impl.options.useCredentialsFilters=(void 0===e.useCredentialsFilters?o:e).useCredentialsFilters,l.impl.options.httpTimeout=(void 0===e.httpTimeout?o:e).httpTimeout,l.impl.options.styleCaching=(void 0===e.styleCaching?o:e).styleCaching}}},c=(qt.exports=l,(void 0===Node?void 0:Node.ELEMENT_NODE)||1),p=(void 0===e?void 0:e.getComputedStyle)||(void 0===window?void 0:window.getComputedStyle)||globalThis.getComputedStyle,h=(void 0===e?void 0:e.atob)||(void 0===window?void 0:window.atob)||globalThis.atob;function u(e,i){l.impl.util.getWindow(e);let s=(i=i||{},l.impl.copyOptions(i),[]);return Promise.resolve(e).then(function(e){if(e.nodeType===c)return e;var t=e,i=document.createElement("span");return t.replaceWith(i),i.append(e),s.push({child:t,wrapper:i}),i}).then(function(e){return function e(i,s,r,n){let a=s.filter;return i===m||t.isHTMLScriptElement(i)||t.isHTMLStyleElement(i)||t.isHTMLLinkElement(i)||null!==r&&a&&!a(i)?Promise.resolve():Promise.resolve(i).then(function(e){return t.isHTMLCanvasElement(e)?t.makeImage(e.toDataURL()):e.cloneNode(!1)}).then(function(e){return s.adjustClonedNode&&s.adjustClonedNode(i,e,!1),Promise.resolve(e)}).then(function(r){return function(i,r){let n=l(r),a=Promise.resolve();if(0!==n.length){let l=p(o(r));t.asArray(n).forEach(function(t){a=a.then(function(){return e(t,s,l).then(function(e){e&&i.appendChild(e)})})})}return a.then(function(){return i});function o(e){return t.isShadowRoot(e)?e.host:e}function l(e){if(t.isShadowSlotElement(e)){let t=e.assignedNodes();if(t&&0<t.length)return t}return e.childNodes}}(r,function(e){return t.isElementHostForOpenShadowRoot(e)?e.shadowRoot:e}(i))}).then(function(e){return s.adjustClonedNode&&s.adjustClonedNode(i,e,!0),Promise.resolve(e)}).then(function(e){return function(e,i){return!t.isElement(e)||t.isShadowSlotElement(i)?Promise.resolve(e):Promise.resolve().then(a).then(o).then(l).then(c).then(n).then(function(){return e});function n(){t.isHTMLImageElement(e)&&(e.removeAttribute("loading"),i.srcset||i.sizes)&&(e.removeAttribute("srcset"),e.removeAttribute("sizes"),e.src=i.currentSrc||i.src)}function a(){function t(e,t){t.font=e.font,t.fontFamily=e.fontFamily,t.fontFeatureSettings=e.fontFeatureSettings,t.fontKerning=e.fontKerning,t.fontSize=e.fontSize,t.fontStretch=e.fontStretch,t.fontStyle=e.fontStyle,t.fontVariant=e.fontVariant,t.fontVariantCaps=e.fontVariantCaps,t.fontVariantEastAsian=e.fontVariantEastAsian,t.fontVariantLigatures=e.fontVariantLigatures,t.fontVariantNumeric=e.fontVariantNumeric,t.fontVariationSettings=e.fontVariationSettings,t.fontWeight=e.fontWeight}function n(e,i){let n=p(e);n.cssText?(i.style.cssText=n.cssText,t(n,i.style)):(x(s,e,n,r,i),null===r&&(["inset-block","inset-block-start","inset-block-end"].forEach(e=>i.style.removeProperty(e)),["left","right","top","bottom"].forEach(e=>{i.style.getPropertyValue(e)&&i.style.setProperty(e,"0px")})))}n(i,e)}function o(){let s=t.uid();function r(r){let n=p(i,r),a=n.getPropertyValue("content");if(""!==a&&"none"!==a){let o=e.getAttribute("class")||"",l=(e.setAttribute("class",o+" "+s),document.createElement("style"));function c(){let e=`.${s}:`+r,i=(n.cssText?o:l)();return document.createTextNode(e+`{${i}}`);function o(){return`${n.cssText} content: ${a};`}function l(){return t.asArray(n).map(e).join("; ")+";";function e(e){return e+": "+n.getPropertyValue(e)+(n.getPropertyPriority(e)?" !important":"")}}}l.appendChild(c()),e.appendChild(l)}}[":before",":after"].forEach(function(e){r(e)})}function l(){t.isHTMLTextAreaElement(i)&&(e.innerHTML=i.value),t.isHTMLInputElement(i)&&e.setAttribute("value",i.value)}function c(){t.isSVGElement(e)&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.isSVGRectElement(e))&&["width","height"].forEach(function(t){let i=e.getAttribute(t);i&&e.style.setProperty(t,i)})}}(e,i)})}(e,i,null)}).then(i.disableEmbedFonts?Promise.resolve(e):f).then(i.disableInlineImages?Promise.resolve(e):g).then(function(e){i.bgcolor&&(e.style.backgroundColor=i.bgcolor),i.width&&(e.style.width=i.width+"px"),i.height&&(e.style.height=i.height+"px"),i.style&&Object.keys(i.style).forEach(function(t){e.style[t]=i.style[t]});let t=null;return"function"==typeof i.onclone&&(t=i.onclone(e)),Promise.resolve(t).then(function(){return e})}).then(function(s){let r=i.width||t.width(e),n=i.height||t.height(e);return Promise.resolve(s).then(function(e){return e.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(e)}).then(t.escapeXhtml).then(function(e){var i=(t.isDimensionMissing(r)?' width="100%"':` width="${r}"`)+(t.isDimensionMissing(n)?' height="100%"':` height="${n}"`);return`<svg xmlns="http://www.w3.org/2000/svg"${(t.isDimensionMissing(r)?"":` width="${r}"`)+(t.isDimensionMissing(n)?"":` height="${n}"`)}><foreignObject${i}>${e}</foreignObject></svg>`}).then(function(e){return"data:image/svg+xml;charset=utf-8,"+e})}).then(function(e){for(;0<s.length;){var t=s.pop();t.wrapper.replaceWith(t.child)}return e}).then(function(e){return l.impl.urlCache=[],m&&(document.body.removeChild(m),m=null),y&&clearTimeout(y),y=setTimeout(()=>{y=null,v={}},2e4),e})}function d(e,i){return u(e,i=i||{}).then(t.makeImage).then(function(s){var r="number"!=typeof i.scale?1:i.scale,n=((e,s)=>{let r=i.width||t.width(e),n=i.height||t.height(e);return t.isDimensionMissing(r)&&(r=t.isDimensionMissing(n)?300:2*n),t.isDimensionMissing(n)&&(n=r/2),(e=document.createElement("canvas")).width=r*s,e.height=n*s,i.bgcolor&&((s=e.getContext("2d")).fillStyle=i.bgcolor,s.fillRect(0,0,e.width,e.height)),e})(e,r),a=n.getContext("2d");return a.msImageSmoothingEnabled=!1,a.imageSmoothingEnabled=!1,s&&(a.scale(r,r),a.drawImage(s,0,0)),n})}let m=null;function f(e){return s.resolveAll().then(function(t){var i;return""!==t&&(i=document.createElement("style"),e.appendChild(i),i.appendChild(document.createTextNode(t))),e})}function g(e){return n.inlineAll(e).then(function(){return e})}function x(e,i,s,r,n){let a=l.impl.options.copyDefaultStyles?((e,i)=>{var s,r=(t=>("relaxed"!==e.styleCaching?t:t.filter((e,t,i)=>0===t||t===i.length-1)).join(">"))(i=(e=>{var t=[];do{if(e.nodeType===c){var i=e.tagName;if(t.push(i),b.includes(i))break}}while(e=e.parentNode);return t})(i));if(v[r])return v[r];i=((e,t)=>{let i=e.body;do{var s=t.pop();s=e.createElement(s),i.appendChild(s),i=s}while(0<t.length);return i.textContent="​",i})((s=(()=>{if(m)return m.contentWindow;i=document.characterSet||"UTF-8",e=(e=document.doctype)?(`<!DOCTYPE ${l(e.name)} ${l(e.publicId)} `+l(e.systemId)).trim()+">":"",(m=document.createElement("iframe")).id="domtoimage-sandbox-"+t.uid(),m.style.top="-9999px",m.style.visibility="hidden",m.style.position="fixed",document.body.appendChild(m);var e,i,s=m,r="domtoimage-sandbox";try{return s.contentWindow.document.write(e+`<html><head><meta charset='${i}'><title>${r}</title></head><body></body></html>`),s.contentWindow}catch(e){}var n=document.createElement("meta");n.setAttribute("charset",i);try{var a=document.implementation.createHTMLDocument(r),o=(a.head.appendChild(n),e+a.documentElement.outerHTML);return s.setAttribute("srcdoc",o),s.contentWindow}catch(e){}return s.contentDocument.head.appendChild(n),s.contentDocument.title=r,s.contentWindow;function l(e){var t;return e?((t=document.createElement("div")).innerText=e,t.innerHTML):""}})()).document,i),s=((e,i)=>{let s={},r=e.getComputedStyle(i);return t.asArray(r).forEach(function(e){s[e]="width"===e||"height"===e?"auto":r.getPropertyValue(e)}),s})(s,i);var n=i;do{var a=n.parentElement;null!==a&&a.removeChild(n),n=a}while(n&&"BODY"!==n.tagName);return v[r]=s})(e,i):{},o=n.style;t.asArray(s).forEach(function(t){var n,l,c,p;e.filterStyles&&!e.filterStyles(i,t)||(l=s.getPropertyValue(t),c=a[t],n=r?r.getPropertyValue(t):void 0,o.getPropertyValue(t))||(l!==c||r&&l!==n)&&(c=s.getPropertyPriority(t),n=o,p=0<=["background-clip"].indexOf(t),c?(n.setProperty(t,l,c),p&&n.setProperty("-webkit-"+t,l,c)):(n.setProperty(t,l),p&&n.setProperty("-webkit-"+t,l)))})}let y=null,v={},b=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DETAILS","DIALOG","DD","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","SVG","TABLE","UL","math","svg","BODY","HEAD","HTML"]})(Jt.exports)),Jt.exports),Gt=V(Xt);const Wt=e=>{const{onRunStart:t,id:i,onChangeRef:r,isRunning:n,timeLimit:a,memoryLimit:p,withLabels:h,files:u,currentFileName:d,testCases:m,setRunState:f}=e,{addErrorNotification:g}=R(),x=o(""),y=u[d],v={event:de.SUBSCRIBE_CODE_RUN_STATUS,runId:i};O(v,e=>{if(ue(e)){if(i!==x.current)return;const t=(t,i,s,n)=>{r.current?.({onTestCasesChange:r=>{const a={...r};for(const o in a)r[o]?.createdAt&&r[o].createdAt>e.createdAt||a[o]&&(a[o]={...a[o],status:t,err:i,out:s,log:n,createdAt:e.createdAt});return a}})},s=e.status||Xe.NONE,n=e?.log?.inputKey;switch(s){case Xe.RECEIVED:case Xe.FAILED:case Xe.COMPILING:case Xe.COMPILED:case Xe.COMPILATION_ERROR:t(s,e.log?.err||"",e.log?.out||"",e.log?.log||"");break;case Xe.RUNNING_TEST_CASE:case Xe.EXECUTED_TEST_CASE:case Xe.FAILED_TEST_CASE:r.current?.({onTestCasesChange:t=>{const i={...t};if(n&&i[n]){const r={...i[n],status:s,out:e.log?.out||"",log:e.log?.log||"",err:e.log?.err||"",createdAt:e.createdAt},a=t[r.key];return a&&a.createdAt>r.createdAt?t:{...t,[r.key]:r}}return t}})}switch(s){case Xe.RECEIVED:f(e=>({...e,running:!0})),r.current?.({isRunning:!0});break;case Xe.FAILED:case Xe.COMPILATION_ERROR:case Xe.COMPLETED:f(e=>({...e,running:!1})),r.current?.({isRunning:!1})}r.current?.({codeRunStatus:s})}},()=>!!i);const b=async e=>{const i=e=>{const t={};for(const i in m)m[i]&&(t[i]={...m[i]},t[i].log="0\n0\n0\n",t[i].out="",t[i].err="",t[i].status=e);r?.current?.({onTestCasesChange:()=>t})};e(ce.LOADING),i(Xe.RECEIVED);try{const s=Ge();t(s),x.current=s;const{url:r,...n}=ne.apiV2.code.run({body:{runId:s,files:[...Object.values(u).map(({language:e,source:t,name:i,active:s})=>({language:e,source:t,fullFileName:i,isInput:!1,isEntryPoint:s,toCompile:s})),...Object.values(m).map(e=>({fullFileName:`${e.key}.in`,language:$e.TEXT,source:e.in,isInput:!0,isEntryPoint:!1,toCompile:!1}))],timeLimit:a,memoryLimit:p,connectionId:""}}),o=pe(await he(r,n));o?.success&&o?.content?.runId?e(ce.SUCCESS):(g(o?.message),t(""),x.current="",i(Xe.NONE),ae("run code request failed",{request:o}),e(ce.ERROR))}catch(t){ae("error on run code",{error:t}),i(Xe.NONE),e(ce.ERROR)}},w=j(b),k=l(e=>{if(!e.shiftKey&&!e.altKey&&"Enter"===e.key)return e.preventDefault(),e.stopPropagation(),void(C.current&&w.current(C.current))},[w]);D(k);const C=o(void 0);return c(()=>{n?C.current?.(ce.LOADING):C.current?.(ce.NONE)},[n]),s(M,{"data-tooltip-id":"jk-tooltip","data-tooltip-content":h?"(Ctrl+Enter / ⌘+Enter)":"run (Ctrl+Enter / ⌘+Enter)",icon:s(Je,{size:"tiny"}),onClick:b,setLoaderStatusRef:e=>C.current=e,disabled:!y,children:h&&s(N,{className:"tt-se tx-t",children:"run"})})},Ht=e=>{const{onChangeRef:r,setShowSettings:n,leftOptions:a,centerOptions:o,rightOptions:c,onRunStart:p,expanded:h,setExpanded:u,headerRef:d,headerWidthContainer:m,files:f,currentFileName:g,runner:x,setRunState:y,languages:b,readOnly:w,withoutRunCodeButton:k}=e,{addQuietNotification:C}=R(),{width:E=0,ref:S}=F(v),{width:_=0,ref:A}=F(v),{source:I="",language:T=$e.TEXT}=f[g]??{},L=l(()=>{const e=f[g];e?.source&&e?.name&&(oe(e.source,e.name),C(s(N,{className:"tt-se",children:"downloaded"})))},[C,g,f]),V=l(async()=>{const e=document.querySelector(".code-viewer-to-print");if(e)try{return await Gt.toBlob(e)}catch(e){console.error("Error al capturar imagen:",e)}},[]),O=l(async()=>{const e=f[g];if(e?.source&&e?.name){const t=await V();t&&(oe(t,`${e.name}.png`),C(s(N,{className:"tt-se",children:"downloaded"})))}},[C,g,f,V]),j=l(async()=>{const e=f[g];if(e?.source)try{await navigator.clipboard.writeText(e.source),C(s(N,{className:"tt-se",children:"copied"}))}catch(e){console.error("Failed to copy:",e)}},[C,g,f]),M=l(async()=>{try{const e=await V();e&&(await navigator.clipboard.write([new ClipboardItem({"image/png":e})]),C(s(N,{className:"tt-se",children:"copied"})))}catch(e){console.error("Failed to copy image:",e)}},[C,V]),z=l(e=>{if(navigator.platform.toUpperCase().includes("MAC")?e.metaKey:e.ctrlKey)return e.shiftKey&&!e.altKey&&"KeyS"===e.code?(e.preventDefault(),void L()):!e.shiftKey&&e.altKey&&"KeyS"===e.code?(e.preventDefault(),void O()):e.shiftKey&&!e.altKey&&"KeyC"===e.code?(e.preventDefault(),void j()):void(!e.shiftKey&&e.altKey&&"KeyC"===e.code&&(e.preventDefault(),M()))},[L,O,j,M]);D(z);const J=!k&&We.includes(T),q=m>(x?620:570),X=m-E-_;return t("div",{className:"options-header-content jk-row jk-pg-xsm",ref:d,children:[t("div",{className:re("cr-tx-ht jk-row gap left"),ref:S,children:[w||1===b.length?s("div",{className:"jk-tag bc-io",children:`${b.find(e=>e.value===T)?.label||T}`}):s(B,{className:"languages-selector tx-s",options:b.map(e=>({value:e.value,label:e.label||e.value})),selectedOption:{value:T,label:b.find(e=>e.value===T)?.label||T},onChange:({value:e})=>r?.current?.({language:e})}),J&&s(Wt,{...x,onRunStart:p,withLabels:q,files:f,currentFileName:g,onChangeRef:r,setRunState:y}),s("div",{className:"code-viewer-to-print bc-sf-md jk-pg jk-br-ie",children:s(U,{code:I,language:T})}),s(B,{options:[{value:"copy-text",label:t(i,{children:[s(N,{className:"tt-se tx-t",children:"copy as text"})," ",s("span",{className:"fw-lr tx-t",children:"(Ctrl+Shift+C / ⌘+Shift+C)"})]})},{value:"copy-png",label:t(i,{children:[s(N,{className:"tt-se tx-t",children:"copy as png"})," ",s("span",{className:"fw-lr tx-t",children:"(Ctrl+Alt+C / ⌘+Option+C)"})]})}],disabled:!I,selectedOption:{value:"",label:q?t(i,{children:[s(Ae,{size:"tiny"}),s(N,{className:"tt-se tx-t ws-np",children:"copy"})]}):s(Ae,{size:"tiny"})},style:{width:"auto"},onChange:({value:e})=>{if(I)switch(e){case"copy-text":j();break;case"copy-png":M()}}}),s(B,{options:[{value:"download-text",label:t(i,{children:[s(N,{className:"tt-se tx-t",children:"download as file"})," ",s("span",{className:"fw-lr tx-t",children:"(Ctrl+Shift+S / ⌘+Shift+S)"})]})},{value:"download-png",label:t(i,{children:[s(N,{className:"tt-se tx-t",children:"download as png"})," ",s("span",{className:"fw-lr tx-t",children:"(Ctrl+Alt+S / ⌘+Option+S)"})]})}],disabled:!I,selectedOption:{value:"",label:q?t(i,{children:[s(Ie,{size:"tiny"}),s(N,{className:"tt-se tx-t ws-np",children:"download"})]}):s(Ie,{size:"tiny"})},style:{width:"auto"},onChange:({value:e})=>{if(I)switch(e){case"download-text":L();break;case"download-png":O();break;case"copy-text":j();break;case"copy-png":M()}}}),a({withLabels:q})]}),s("div",{className:"jk-row flex-1",style:{width:X},children:o({widthContainer:X,withLabels:q})}),t("div",{className:re("jk-row gap cr-tx-ht"),ref:A,children:[c({withLabels:q}),s(P,{"data-tooltip-id":"jk-tooltip","data-tooltip-content":q?"":"settings","data-tooltip-place":"bottom-end",type:"secondary",onClick:()=>n(!0),icon:s(we,{size:"tiny"}),children:q&&s(N,{className:"tt-se tx-t",children:"settings"})}),null!==h&&s(P,{"data-tooltip-id":"jk-tooltip","data-tooltip-content":q?"":h?"back":"expand","data-tooltip-place":"bottom-end",size:"small",type:"secondary",onClick:()=>u(e=>!e),icon:s(h?Te:Pe,{}),children:q&&s(N,{className:"tt-se",children:h?"back":"expand"})})]})]})},$t=({onChange:e,tabSize:i,fontSize:r,...n})=>s(A,{className:"jk-pg",...n,children:t("div",{className:"jk-col stretch gap jk-pg-sm-tb",children:[s("h3",{children:s(N,{className:"tt-se",children:"code editor settings"})}),t("div",{className:"jk-row left gap",children:[t("span",{className:"tt-se",children:[s(N,{children:"choose your tab size"}),":"," "]}),s(B,{options:b.map(e=>({value:e,label:`${e}`})),selectedOption:{value:i},onChange:({value:t})=>e?.({tabSize:t})})]}),t("div",{className:"jk-row left gap",children:[t("span",{className:"tt-se",children:[s(N,{children:"choose your font size"}),":"," "]}),s(B,{options:w.map(e=>({value:e,label:`${e}`})),selectedOption:{value:r},onChange:({value:t})=>e?.({fontSize:t})})]})]})}),Kt=e=>{const{preferredTheme:i,language:r,readOnly:n,source:o,tabSize:c,fontSize:h,languages:u,onlyFirstPane:d,triggerFocus:m,setExpanded:f,files:g,currentFileName:x,leftButtons:y,centerButtons:b,rightButtons:w,onChangeRef:k,runner:C,expanded:E,expandPosition:S,withoutRunCodeButton:_}=e,[N,A]=a({id:"",running:!1}),I=l(e=>{k.current?.({...e,isRunning:!1}),A(e=>({...e,running:!1}))},[k]),{width:T=0,height:P=0,ref:L}=F(v),V=p(()=>({...C,id:N.id,isRunning:N.running}),[C,N]),[R,O]=a(!1);return t("div",{className:re("jk-col nowrap left stretch ht-100",{"wh-100":!!d}),children:[s($t,{isOpen:R,onClose:()=>O(!1),onChange:k.current,tabSize:c,fontSize:h}),s(Ht,{headerRef:L,headerWidthContainer:T,languages:u,setRunState:A,runner:V,leftOptions:({withLabels:e})=>y?.({runner:V,withLabels:e,files:g,currentFileName:x}),centerOptions:({widthContainer:e,withLabels:t})=>b?.({runner:V,widthContainer:e,withLabels:t,files:g,currentFileName:x}),rightOptions:({withLabels:e})=>w?.({runner:V,withLabels:e,files:g,currentFileName:x}),setShowSettings:O,onRunStart:e=>{A({id:e,running:!1})},onChangeRef:k,expanded:S?E:null,setExpanded:f,readOnly:!!n,files:g,currentFileName:x,withoutRunCodeButton:_}),s("div",{className:"ow-ao",style:{height:`calc(100% - ${P}px)`},children:s(z,{theme:i,onChange:I,language:r,readOnly:n,source:o,tabSize:c,fontSize:h,triggerFocus:m})})]})},Qt=["md","markdown","mdown","mkdn","mkd","mdwn","mkdown","ron"].map(function(e){return"."+e});function Yt(e,t){const i=(s=e,Boolean(s&&"object"==typeof s&&"message"in s&&"messages"in s)?e:new Qe(e));var s;const{format:r,...n}=t||{};return{file:i,options:{format:"md"===r||"mdx"===r?r:i.extname&&(n.mdExtensions||Qt).includes(i.extname)?"md":"mdx",...n}}}class Zt{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,i,s){e&&t&&(null!=i?e[t][i]=s:e[t]=s)}remove(e,t,i){e&&t&&(null!=i?e[t].splice(i,1):delete e[t])}}class ei extends Zt{constructor(e,t){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e},this.enter=e,this.leave=t}visit(e,t,i,s){if(e){if(this.enter){const r=this.should_skip,n=this.should_remove,a=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,i,s),this.replacement&&(e=this.replacement,this.replace(t,i,s,e)),this.should_remove&&this.remove(t,i,s);const o=this.should_skip,l=this.should_remove;if(this.should_skip=r,this.should_remove=n,this.replacement=a,o)return e;if(l)return null}let r;for(r in e){const t=e[r];if(t&&"object"==typeof t)if(Array.isArray(t)){const i=t;for(let t=0;t<i.length;t+=1){const s=i[t];ti(s)&&(this.visit(s,e,r,t)||t--)}}else ti(t)&&this.visit(t,e,r,null)}if(this.leave){const r=this.replacement,n=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,i,s),this.replacement&&(e=this.replacement,this.replace(t,i,s,e)),this.should_remove&&this.remove(t,i,s);const a=this.should_remove;if(this.replacement=r,this.should_remove=n,a)return null}}return e}}function ti(e){return null!==e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type}function ii(e,{enter:t,leave:i}){return new ei(t,i).visit(e,null)}const si=/@(jsx|jsxFrag|jsxImportSource|jsxRuntime)\s+(\S+)/g;function ri(e){let t;if(e.value)if("JSXExpressionContainer"===e.value.type){const i=e.value.expression;Ye("JSXEmptyExpression"!==i.type),t=i}else{const i=e.value;Ye("JSXElement"!==i.type&&"JSXFragment"!==i.type),t=i,delete t.raw}else t={type:"Literal",value:!0};const i={type:"Property",key:ni(e.name),value:t,kind:"init",method:!1,shorthand:!1,computed:!1};return oi(e,i),i}function ni(e){let t;if("JSXMemberExpression"===e.type){const i=ni(e.property);t={type:"MemberExpression",object:ni(e.object),property:i,computed:"Literal"===i.type,optional:!1}}else t="JSXNamespacedName"===e.type?{type:"Literal",value:e.namespace.name+":"+e.name.name}:xt(e.name)?{type:"Identifier",name:e.name}:{type:"Literal",value:e.name};return oi(e,t),t}function ai(e){const t=e.split(".");let i,s=-1;for(;++s<t.length;){const e=xt(t[s])?{type:"Identifier",name:t[s]}:{type:"Literal",value:t[s]};i=i?{type:"MemberExpression",object:i,property:e,computed:Boolean(s&&"Literal"===e.type),optional:!1}:e}return i}function oi(e,t){const i=["start","end","loc","range","comments"];let s=-1;for(;++s<i.length;){const r=i[s];r in e&&(t[r]=e[r])}}function li(e){return function(t,i){!function(e,t){const i=t||{};let s="automatic"===i.runtime;const r={},n={};ii(e,{enter(e){if("Program"===e.type){const t=e.comments||[];let i=-1;for(;++i<t.length;){si.lastIndex=0;let e=si.exec(t[i].value);for(;e;)r[e[1]]=e[2],e=si.exec(t[i].value)}if(r.jsxRuntime)if("automatic"===r.jsxRuntime){if(s=!0,r.jsx)throw new Error("Unexpected `@jsx` pragma w/ automatic runtime");if(r.jsxFrag)throw new Error("Unexpected `@jsxFrag` pragma w/ automatic runtime")}else{if("classic"!==r.jsxRuntime)throw new Error("Unexpected `jsxRuntime` `"+r.jsxRuntime+"`, expected `automatic` or `classic`");if(s=!1,r.jsxImportSource)throw new Error("Unexpected `@jsxImportSource` w/ classic runtime")}}},leave(e){if("Program"===e.type){const t=[];if(n.fragment&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"Fragment"},local:{type:"Identifier",name:"_Fragment"}}),n.jsx&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsx"},local:{type:"Identifier",name:"_jsx"}}),n.jsxs&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsxs"},local:{type:"Identifier",name:"_jsxs"}}),n.jsxDEV&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsxDEV"},local:{type:"Identifier",name:"_jsxDEV"}}),t.length>0){let s=0;for(;s<e.body.length;){const t=e.body[s];if(!("directive"in t)||!t.directive)break;s++}e.body.splice(s,0,{type:"ImportDeclaration",specifiers:t,source:{type:"Literal",value:(r.jsxImportSource||i.importSource||"react")+(i.development?"/jsx-dev-runtime":"/jsx-runtime")}})}}if("JSXElement"!==e.type&&"JSXFragment"!==e.type)return;const t=[];let a,o=-1;for(;++o<e.children.length;){const i=e.children[o];if("JSXExpressionContainer"===i.type)"JSXEmptyExpression"!==i.expression.type&&t.push(i.expression);else if("JSXText"===i.type){const e=i.value.replace(/\t/g," ").replace(/ *(\r?\n|\r) */g,"\n").replace(/\n+/g,"\n").replace(/\n+$/,"").replace(/^\n+/,"").replace(/\n/g," ");if(e){const s={type:"Literal",value:e};oi(i,s),t.push(s)}}else Ye("JSXElement"!==i.type&&"JSXFragment"!==i.type&&"JSXSpreadChild"!==i.type),t.push(i)}const l=[];let c,p,h=[];if("JSXElement"===e.type){if(a=ni(e.openingElement.name),"Identifier"===a.type&&/^[a-z]/.test(a.name)){const e={type:"Literal",value:a.name};oi(a,e),a=e}let t;const i=e.openingElement.attributes;let r=-1;for(;++r<i.length;){const e=i[r];if("JSXSpreadAttribute"===e.type)"ObjectExpression"===e.argument.type?l.push(...e.argument.properties):l.push({type:"SpreadElement",argument:e.argument}),t=!0;else{const i=ri(e);if(s&&"Identifier"===i.key.type&&"key"===i.key.name){if(t)throw new Error("Expected `key` to come before any spread expressions");const e=i.value;Ye("AssignmentPattern"!==e.type&&"ArrayPattern"!==e.type&&"ObjectPattern"!==e.type&&"RestElement"!==e.type),c=e}else l.push(i)}}}else s?(n.fragment=!0,a={type:"Identifier",name:"_Fragment"}):a=ai(r.jsxFrag||i.pragmaFrag||"React.Fragment");if(s?t.length>0&&l.push({type:"Property",key:{type:"Identifier",name:"children"},value:t.length>1?{type:"ArrayExpression",elements:t}:t[0],kind:"init",method:!1,shorthand:!1,computed:!1}):h=t,s){h.push({type:"ObjectExpression",properties:l}),c?h.push(c):i.development&&h.push({type:"Identifier",name:"undefined"});const s=t.length>1;if(i.development){n.jsxDEV=!0,p={type:"Identifier",name:"_jsxDEV"},h.push({type:"Literal",value:s});const t={type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"fileName"},value:{type:"Literal",value:i.filePath||"<source.js>"}}]};e.loc&&t.properties.push({type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"lineNumber"},value:{type:"Literal",value:e.loc.start.line}},{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"columnNumber"},value:{type:"Literal",value:e.loc.start.column+1}}),h.push(t,{type:"ThisExpression"})}else s?(n.jsxs=!0,p={type:"Identifier",name:"_jsxs"}):(n.jsx=!0,p={type:"Identifier",name:"_jsx"})}else l.length>0?h.unshift({type:"ObjectExpression",properties:l}):h.length>0&&h.unshift({type:"Literal",value:null}),p=ai(r.jsx||i.pragma||"React.createElement");h.unshift(a);const u={type:"CallExpression",callee:p,arguments:h,optional:!1};oi(e,u),this.replace(u)}})}(t,{filePath:i.history[0],...e})}}var ci,pi,hi={exports:{}};var ui,di,mi={exports:{}};function fi(){return ui||(ui=1,function(e){var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],s="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",n={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},a="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",o={5:a,"5module":a+" export import",6:a+" const class extends export import super"},l=/^in(stanceof)?$/,c=new RegExp("["+r+"]"),p=new RegExp("["+r+s+"]");function h(e,t){for(var i=65536,s=0;s<t.length;s+=2){if((i+=t[s])>e)return!1;if((i+=t[s+1])>=e)return!0}return!1}function u(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&h(e,i)))}function d(e,s){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&p.test(String.fromCharCode(e)):!1!==s&&(h(e,i)||h(e,t)))))}var m=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function f(e,t){return new m(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},x={startsExpr:!0},y={};function v(e,t){return void 0===t&&(t={}),t.keyword=e,y[e]=new m(e,t)}var b={num:new m("num",x),regexp:new m("regexp",x),string:new m("string",x),name:new m("name",x),privateId:new m("privateId",x),eof:new m("eof"),bracketL:new m("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new m("]"),braceL:new m("{",{beforeExpr:!0,startsExpr:!0}),braceR:new m("}"),parenL:new m("(",{beforeExpr:!0,startsExpr:!0}),parenR:new m(")"),comma:new m(",",g),semi:new m(";",g),colon:new m(":",g),dot:new m("."),question:new m("?",g),questionDot:new m("?."),arrow:new m("=>",g),template:new m("template"),invalidTemplate:new m("invalidTemplate"),ellipsis:new m("...",g),backQuote:new m("`",x),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m("=",{beforeExpr:!0,isAssign:!0}),assign:new m("_=",{beforeExpr:!0,isAssign:!0}),incDec:new m("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:f("||",1),logicalAND:f("&&",2),bitwiseOR:f("|",3),bitwiseXOR:f("^",4),bitwiseAND:f("&",5),equality:f("==/!=/===/!==",6),relational:f("</>/<=/>=",7),bitShift:f("<</>>/>>>",8),plusMin:new m("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:f("%",10),star:f("*",10),slash:f("/",10),starstar:new m("**",{beforeExpr:!0}),coalesce:f("??",1),_break:v("break"),_case:v("case",g),_catch:v("catch"),_continue:v("continue"),_debugger:v("debugger"),_default:v("default",g),_do:v("do",{isLoop:!0,beforeExpr:!0}),_else:v("else",g),_finally:v("finally"),_for:v("for",{isLoop:!0}),_function:v("function",x),_if:v("if"),_return:v("return",g),_switch:v("switch"),_throw:v("throw",g),_try:v("try"),_var:v("var"),_const:v("const"),_while:v("while",{isLoop:!0}),_with:v("with"),_new:v("new",{beforeExpr:!0,startsExpr:!0}),_this:v("this",x),_super:v("super",x),_class:v("class",x),_extends:v("extends",g),_export:v("export"),_import:v("import",x),_null:v("null",x),_true:v("true",x),_false:v("false",x),_in:v("in",{beforeExpr:!0,binop:7}),_instanceof:v("instanceof",{beforeExpr:!0,binop:7}),_typeof:v("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:v("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:v("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,k=new RegExp(w.source,"g");function C(e){return 10===e||13===e||8232===e||8233===e}function E(e,t,i){void 0===i&&(i=e.length);for(var s=t;s<i;s++){var r=e.charCodeAt(s);if(C(r))return s<i-1&&13===r&&10===e.charCodeAt(s+1)?s+2:s+1}return-1}var S=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,_=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,N=Object.prototype,A=N.hasOwnProperty,I=N.toString,T=Object.hasOwn||function(e,t){return A.call(e,t)},P=Array.isArray||function(e){return"[object Array]"===I.call(e)},L=Object.create(null);function V(e){return L[e]||(L[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function R(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var O=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,j=function(e,t){this.line=e,this.column=t};j.prototype.offset=function(e){return new j(this.line,this.column+e)};var D=function(e,t,i){this.start=t,this.end=i,null!==e.sourceFile&&(this.source=e.sourceFile)};function M(e,t){for(var i=1,s=0;;){var r=E(e,s,t);if(r<0)return new j(i,t-s);++i,s=r}}var F={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},B=!1;function U(e){var t={};for(var i in F)t[i]=e&&T(e,i)?e[i]:F[i];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!B&&"object"==typeof console&&console.warn&&(B=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),P(t.onToken)){var s=t.onToken;t.onToken=function(e){return s.push(e)}}if(P(t.onComment)&&(t.onComment=z(t,t.onComment)),"commonjs"===t.sourceType&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function z(e,t){return function(i,s,r,n,a,o){var l={type:i?"Block":"Line",value:s,start:r,end:n};e.locations&&(l.loc=new D(this,a,o)),e.ranges&&(l.range=[r,n]),t.push(l)}}var J=1,q=2,X=4,G=8,W=16,H=32,$=64,K=128,Q=256,Y=512,Z=1024,ee=J|q|Q;function te(e,t){return q|(e?X:0)|(t?G:0)}var ie=0,se=1,re=2,ne=3,ae=4,oe=5,le=function(e,t,i){this.options=e=U(e),this.sourceFile=e.sourceFile,this.keywords=V(o[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var s="";!0!==e.allowReserved&&(s=n[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(s+=" await")),this.reservedWords=V(s);var r=(s?s+" ":"")+n.strict;this.reservedWordsStrict=V(r),this.reservedWordsStrictBind=V(r+" "+n.strictBind),this.input=String(t),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope("commonjs"===this.options.sourceType?q:J),this.regexpState=null,this.privateNameStack=[]},ce={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};le.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},ce.inFunction.get=function(){return(this.currentVarScope().flags&q)>0},ce.inGenerator.get=function(){return(this.currentVarScope().flags&G)>0},ce.inAsync.get=function(){return(this.currentVarScope().flags&X)>0},ce.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(Q|Y))return!1;if(t&q)return(t&X)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},ce.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&J)},ce.allowSuper.get=function(){return(this.currentThisScope().flags&$)>0||this.options.allowSuperOutsideMethod},ce.allowDirectSuper.get=function(){return(this.currentThisScope().flags&K)>0},ce.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},ce.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(Q|Y)||t&q&&!(t&W))return!0}return!1},ce.allowUsing.get=function(){var e=this.currentScope().flags;return!(e&Z||!this.inModule&&e&J)},ce.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Q)>0},le.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=this,s=0;s<e.length;s++)i=e[s](i);return i},le.parse=function(e,t){return new this(t,e).parse()},le.parseExpressionAt=function(e,t,i){var s=new this(i,e,t);return s.nextToken(),s.parseExpression()},le.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(le.prototype,ce);var pe=le.prototype,he=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;pe.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){_.lastIndex=e,e+=_.exec(this.input)[0].length;var t=he.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){_.lastIndex=e+t[0].length;var i=_.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return";"===r||"}"===r||w.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}e+=t[0].length,_.lastIndex=e,e+=_.exec(this.input)[0].length,";"===this.input[e]&&e++}},pe.eat=function(e){return this.type===e&&(this.next(),!0)},pe.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},pe.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},pe.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},pe.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||w.test(this.input.slice(this.lastTokEnd,this.start))},pe.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},pe.semicolon=function(){this.eat(b.semi)||this.insertSemicolon()||this.unexpected()},pe.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},pe.expect=function(e){this.eat(e)||this.unexpected()},pe.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var ue=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};pe.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},pe.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},pe.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},pe.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var de=le.prototype;de.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==b.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var n=r[s];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(e,"Program")};var me={kind:"loop"},fe={kind:"switch"};de.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;_.lastIndex=this.pos;var t=_.exec(this.input),i=this.pos+t[0].length,s=this.fullCharCodeAt(i);if(91===s||92===s)return!0;if(e)return!1;if(123===s)return!0;if(u(s)){var r=i;do{i+=s<=65535?1:2}while(d(s=this.fullCharCodeAt(i)));if(92===s)return!0;var n=this.input.slice(r,i);if(!l.test(n))return!0}return!1},de.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;_.lastIndex=this.pos;var e,t=_.exec(this.input),i=this.pos+t[0].length;return!(w.test(this.input.slice(this.pos,i))||"function"!==this.input.slice(i,i+8)||i+8!==this.input.length&&(d(e=this.fullCharCodeAt(i+8))||92===e))},de.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;_.lastIndex=this.pos;var i=_.exec(this.input),s=this.pos+i[0].length;if(w.test(this.input.slice(this.pos,s)))return!1;if(e){var r,n=s+5;if("using"!==this.input.slice(s,n)||n===this.input.length||d(r=this.fullCharCodeAt(n))||92===r)return!1;_.lastIndex=n;var a=_.exec(this.input);if(s=n+a[0].length,a&&w.test(this.input.slice(n,s)))return!1}var o=this.fullCharCodeAt(s);if(!u(o)&&92!==o)return!1;var c=s;do{s+=o<=65535?1:2}while(d(o=this.fullCharCodeAt(s)));if(92===o)return!0;var p=this.input.slice(c,s);return!(l.test(p)||t&&"of"===p)},de.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},de.isUsing=function(e){return this.isUsingKeyword(!1,e)},de.parseStatement=function(e,t,i){var s,r=this.type,n=this.startNode();switch(this.isLet(e)&&(r=b._var,s="let"),r){case b._break:case b._continue:return this.parseBreakContinueStatement(n,r.keyword);case b._debugger:return this.parseDebuggerStatement(n);case b._do:return this.parseDoStatement(n);case b._for:return this.parseForStatement(n);case b._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(n,!0);case b._if:return this.parseIfStatement(n);case b._return:return this.parseReturnStatement(n);case b._switch:return this.parseSwitchStatement(n);case b._throw:return this.parseThrowStatement(n);case b._try:return this.parseTryStatement(n);case b._const:case b._var:return s=s||this.value,e&&"var"!==s&&this.unexpected(),this.parseVarStatement(n,s);case b._while:return this.parseWhileStatement(n);case b._with:return this.parseWithStatement(n);case b.braceL:return this.parseBlock(!0,n);case b.semi:return this.parseEmptyStatement(n);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){_.lastIndex=this.pos;var a=_.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===b._import?this.parseImport(n):this.parseExport(n,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var c=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(c)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),"await using"===c&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(n,!1,c),this.semicolon(),this.finishNode(n,"VariableDeclaration");var p=this.value,h=this.parseExpression();return r===b.name&&"Identifier"===h.type&&this.eat(b.colon)?this.parseLabeledStatement(n,p,h,e):this.parseExpressionStatement(n,h)}},de.parseBreakContinueStatement=function(e,t){var i="break"===t;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type!==b.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(i||"loop"===r.kind))break;if(e.label&&i)break}}return s===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")},de.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},de.parseDoStatement=function(e){return this.next(),this.labels.push(me),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},de.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(me),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===b._var||this.type===b._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(e,s,t)}var n=this.isContextual("let"),a=!1,o=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(o){var l=this.startNode();return this.next(),"await using"===o&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(l,!0,o),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(e,l,t)}var c=this.containsEsc,p=new ue,h=this.start,u=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===b._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===b._in&&this.unexpected(t),e.await=!0):a&&this.options.ecmaVersion>=8&&(u.start!==h||c||"Identifier"!==u.type||"async"!==u.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),n&&a&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,p),this.checkLValPattern(u),this.parseForIn(e,u)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))},de.parseForAfterInit=function(e,t,i){return(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===b._in?i>-1&&this.unexpected(i):e.await=i>-1),this.parseForIn(e,t)):(i>-1&&this.unexpected(i),this.parseFor(e,t))},de.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,xe|(i?0:ye),!1,t)},de.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(b._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},de.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},de.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(fe),this.enterScope(Z);for(var i=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var s=this.type===b._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(b.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},de.parseThrowStatement=function(e){return this.next(),w.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var ge=[];de.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?H:0),this.checkLValPattern(e,t?ae:re),this.expect(b.parenR),e},de.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();this.next(),this.eat(b.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(b._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},de.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},de.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(me),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},de.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},de.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},de.parseLabeledStatement=function(e,t,i,s){for(var r=0,n=this.labels;r<n.length;r+=1)n[r].name===t&&this.raise(i.start,"Label '"+t+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===b._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(s?-1===s.indexOf("label")?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},de.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},de.parseBlock=function(e,t,i){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},de.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},de.parseForIn=function(e,t){var i=this.type===b._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},de.parseVar=function(e,t,i,s){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(b.eq)?r.init=this.parseMaybeAssign(t):s||"const"!==i||this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||"using"!==i&&"await using"!==i||!(this.options.ecmaVersion>=17)||this.type===b._in||this.isContextual("of")?s||"Identifier"===r.id.type||t&&(this.type===b._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+i+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(b.comma))break}return e},de.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?se:re,!1)};var xe=1,ye=2,ve=4;function be(e,t){var i=t.key.name,s=e[i],r="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(r=(t.static?"s":"i")+t.kind),"iget"===s&&"iset"===r||"iset"===s&&"iget"===r||"sget"===s&&"sset"===r||"sset"===s&&"sget"===r?(e[i]="true",!1):!!s||(e[i]=r,!1)}function we(e,t){var i=e.computed,s=e.key;return!i&&("Identifier"===s.type&&s.name===t||"Literal"===s.type&&s.value===t)}de.parseFunction=function(e,t,i,s,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===b.star&&t&ye&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&xe&&(e.id=t&ve&&this.type!==b.name?null:this.parseIdent(),!e.id||t&ye||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?se:re:ne));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(te(e.async,e.generator)),t&xe||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,r),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&xe?"FunctionDeclaration":"FunctionExpression")},de.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},de.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),r=this.startNode(),n=!1;for(r.body=[],this.expect(b.braceL);this.type!==b.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(r.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&"PrivateIdentifier"===a.key.type&&be(s,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},de.parseClassElement=function(e){if(this.eat(b.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,n=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(b.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===b.star?o=!0:s="static"}if(i.static=o,!s&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==b.star||this.canInsertSemicolon()?s="async":n=!0),!s&&(t>=9||!n)&&this.eat(b.star)&&(r=!0),!s&&!n&&!r){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:s=l)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===b.parenL||"method"!==a||r||n){var c=!i.static&&we(i,"constructor"),p=c&&e;c&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=c?"constructor":a,this.parseClassMethod(i,r,n,p)}else this.parseClassField(i);return i},de.isClassElementNameStart=function(){return this.type===b.name||this.type===b.privateId||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword},de.parseClassElementName=function(e){this.type===b.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},de.parseClassMethod=function(e,t,i,s){var r=e.key;"constructor"===e.kind?(t&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):e.static&&we(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,i,s);return"get"===e.kind&&0!==n.params.length&&this.raiseRecoverable(n.start,"getter should have no params"),"set"===e.kind&&1!==n.params.length&&this.raiseRecoverable(n.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===n.params[0].type&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},de.parseClassField=function(e){return we(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&we(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(b.eq)?(this.enterScope(Y|$),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},de.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Q|$);this.type!==b.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},de.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,re,!1)):(!0===t&&this.unexpected(),e.id=null)},de.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts(null,!1):null},de.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},de.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=0===s?null:this.privateNameStack[s-1],n=0;n<i.length;++n){var a=i[n];T(t,a.name)||(r?r.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},de.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},de.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.parseExportAllDeclaration(e,t);if(this.eat(b._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var i=0,s=e.specifiers;i<s.length;i+=1){var r=s[i];this.checkUnreserved(r.local),this.checkLocalExport(r.local),"Literal"===r.local.type&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},de.parseExportDeclaration=function(e){return this.parseStatement(null)},de.parseExportDefaultDeclaration=function(){var e;if(this.type===b._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,xe|ve,!1,e)}if(this.type===b._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var s=this.parseMaybeAssign();return this.semicolon(),s},de.checkExport=function(e,t,i){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),T(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)},de.checkPatternExport=function(e,t){var i=t.type;if("Identifier"===i)this.checkExport(e,t,t.start);else if("ObjectPattern"===i)for(var s=0,r=t.properties;s<r.length;s+=1){var n=r[s];this.checkPatternExport(e,n)}else if("ArrayPattern"===i)for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(e,l)}else"Property"===i?this.checkPatternExport(e,t.value):"AssignmentPattern"===i?this.checkPatternExport(e,t.left):"RestElement"===i&&this.checkPatternExport(e,t.argument)},de.checkVariableExport=function(e,t){if(e)for(var i=0,s=t;i<s.length;i+=1){var r=s[i];this.checkPatternExport(e,r.id)}},de.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},de.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},de.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(i)i=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;t.push(this.parseExportSpecifier(e))}return t},de.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=ge,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},de.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,re),this.finishNode(e,"ImportSpecifier")},de.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,re),this.finishNode(e,"ImportDefaultSpecifier")},de.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,re),this.finishNode(e,"ImportNamespaceSpecifier")},de.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(b.comma)))return e;if(this.type===b.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;e.push(this.parseImportSpecifier())}return e},de.parseWithClause=function(){var e=[];if(!this.eat(b._with))return e;this.expect(b.braceL);for(var t={},i=!0;!this.eat(b.braceR);){if(i)i=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var s=this.parseImportAttribute(),r="Identifier"===s.key.type?s.key.name:s.key.value;T(t,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(s)}return e},de.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===b.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(b.colon),this.type!==b.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},de.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===b.string){var e=this.parseLiteral(this.value);return O.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},de.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},de.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var ke=le.prototype;ke.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,r=e.properties;s<r.length;s+=1){var n=r[s];this.toAssignable(n,t),"RestElement"!==n.type||"ArrayPattern"!==n.argument.type&&"ObjectPattern"!==n.argument.type||this.raise(n.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e},ke.toAssignableList=function(e,t){for(var i=e.length,s=0;s<i;s++){var r=e[s];r&&this.toAssignable(r,t)}if(i){var n=e[i-1];6===this.options.ecmaVersion&&t&&n&&"RestElement"===n.type&&"Identifier"!==n.argument.type&&this.unexpected(n.argument.start)}return e},ke.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},ke.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},ke.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case b.braceL:return this.parseObj(!0)}return this.parseIdent()},ke.parseBindingList=function(e,t,i,s){for(var r=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(b.comma),t&&this.type===b.comma)r.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===b.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}r.push(this.parseAssignableListItem(s))}return r},ke.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},ke.parseBindingListItem=function(e){return e},ke.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return i;var s=this.startNodeAt(e,t);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},ke.checkLValSimple=function(e,t,i){void 0===t&&(t=ie);var s=t!==ie;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(s?"Binding ":"Assigning to ")+e.name+" in strict mode"),s&&(t===re&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(T(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==oe&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(s?"Binding":"Assigning to")+" rvalue")}},ke.checkLValPattern=function(e,t,i){switch(void 0===t&&(t=ie),e.type){case"ObjectPattern":for(var s=0,r=e.properties;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,t,i)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLValInnerPattern(l,t,i)}break;default:this.checkLValSimple(e,t,i)}},ke.checkLValInnerPattern=function(e,t,i){switch(void 0===t&&(t=ie),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var Ce=function(e,t,i,s,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!i,this.override=s,this.generator=!!r},Ee={b_stat:new Ce("{",!1),b_expr:new Ce("{",!0),b_tmpl:new Ce("${",!1),p_stat:new Ce("(",!1),p_expr:new Ce("(",!0),q_tmpl:new Ce("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Ce("function",!1),f_expr:new Ce("function",!0),f_expr_gen:new Ce("function",!0,!1,null,!0),f_gen:new Ce("function",!1,!1,null,!0)},Se=le.prototype;Se.initialContext=function(){return[Ee.b_stat]},Se.curContext=function(){return this.context[this.context.length-1]},Se.braceIsBlock=function(e){var t=this.curContext();return t===Ee.f_expr||t===Ee.f_stat||(e!==b.colon||t!==Ee.b_stat&&t!==Ee.b_expr?e===b._return||e===b.name&&this.exprAllowed?w.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow||(e===b.braceL?t===Ee.b_stat:e!==b._var&&e!==b._const&&e!==b.name&&!this.exprAllowed):!t.isExpr)},Se.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Se.updateContext=function(e){var t,i=this.type;i.keyword&&e===b.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},Se.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},b.parenR.updateContext=b.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===Ee.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Ee.b_stat:Ee.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(Ee.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?Ee.p_stat:Ee.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(e){!e.beforeExpr||e===b._else||e===b.semi&&this.curContext()!==Ee.p_stat||e===b._return&&w.test(this.input.slice(this.lastTokEnd,this.start))||(e===b.colon||e===b.braceL)&&this.curContext()===Ee.b_stat?this.context.push(Ee.f_stat):this.context.push(Ee.f_expr),this.exprAllowed=!1},b.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},b.backQuote.updateContext=function(){this.curContext()===Ee.q_tmpl?this.context.pop():this.context.push(Ee.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===Ee.f_expr?this.context[t]=Ee.f_expr_gen:this.context[t]=Ee.f_gen}this.exprAllowed=!0},b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var _e=le.prototype;function Ne(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&Ne(e.expression)}function Ae(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&Ae(e.expression)||"ParenthesizedExpression"===e.type&&Ae(e.expression)}_e.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var s,r=e.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var n=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===s&&"init"===n&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);else{var a=t[s="$"+s];a?("init"===n?this.strict&&a.init||a.get||a.set:a.init||a[n])&&this.raiseRecoverable(r.start,"Redefinition of property"):a=t[s]={init:!1,get:!1,set:!1},a[n]=!0}}},_e.parseExpression=function(e,t){var i=this.start,s=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===b.comma){var n=this.startNodeAt(i,s);for(n.expressions=[r];this.eat(b.comma);)n.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(n,"SequenceExpression")}return r},_e.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var s=!1,r=-1,n=-1,a=-1;t?(r=t.parenthesizedAssign,n=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ue,s=!0);var o=this.start,l=this.startLoc;this.type!==b.parenL&&this.type!==b.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(i&&(c=i.call(this,c,o,l)),this.type.isAssign){var p=this.startNodeAt(o,l);return p.operator=this.value,this.type===b.eq&&(c=this.toAssignable(c,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===b.eq?this.checkLValPattern(c):this.checkLValSimple(c),p.left=c,this.next(),p.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(p,"AssignmentExpression")}return s&&this.checkExpressionErrors(t,!0),r>-1&&(t.parenthesizedAssign=r),n>-1&&(t.trailingComma=n),c},_e.parseMaybeConditional=function(e,t){var i=this.start,s=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(b.question)){var n=this.startNodeAt(i,s);return n.test=r,n.consequent=this.parseMaybeAssign(),this.expect(b.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return r},_e.parseExprOps=function(e,t){var i=this.start,s=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===i&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,i,s,-1,e)},_e.parseExprOp=function(e,t,i,s,r){var n=this.type.binop;if(null!=n&&(!r||this.type!==b._in)&&n>s){var a=this.type===b.logicalOR||this.type===b.logicalAND,o=this.type===b.coalesce;o&&(n=b.logicalAND.binop);var l=this.value;this.next();var c=this.start,p=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),c,p,n,r),u=this.buildBinary(t,i,e,h,l,a||o);return(a&&this.type===b.coalesce||o&&(this.type===b.logicalOR||this.type===b.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,t,i,s,r)}return e},_e.buildBinary=function(e,t,i,s,r,n){"PrivateIdentifier"===s.type&&this.raise(s.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=i,a.operator=r,a.right=s,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")},_e.parseMaybeUnary=function(e,t,i,s){var r,n=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(s),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===b.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,s),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&Ne(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&Ae(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,r=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==b.privateId){if(r=this.parseExprSubscripts(e,s),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(n,a);c.operator=this.value,c.prefix=!1,c.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(c,"UpdateExpression")}}else(s||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==b._in&&this.unexpected();return i||!this.eat(b.starstar)?r:t?void this.unexpected(this.lastTokStart):this.buildBinary(n,a,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1)},_e.parseExprSubscripts=function(e,t){var i=this.start,s=this.startLoc,r=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var n=this.parseSubscripts(r,i,s,!1,t);return e&&"MemberExpression"===n.type&&(e.parenthesizedAssign>=n.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=n.start&&(e.parenthesizedBind=-1),e.trailingComma>=n.start&&(e.trailingComma=-1)),n},_e.parseSubscripts=function(e,t,i,s,r){for(var n=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,i,s,n,a,r);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var l=this.startNodeAt(t,i);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},_e.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(b.arrow)},_e.parseSubscriptAsyncArrow=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,s)},_e.parseSubscript=function(e,t,i,s,r,n,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(b.questionDot);s&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(b.bracketL);if(c||l&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var p=this.startNodeAt(t,i);p.object=e,c?(p.property=this.parseExpression(),this.expect(b.bracketR)):this.type===b.privateId&&"Super"!==e.type?p.property=this.parsePrivateIdent():p.property=this.parseIdent("never"!==this.options.allowReserved),p.computed=!!c,o&&(p.optional=l),e=this.finishNode(p,"MemberExpression")}else if(!s&&this.eat(b.parenL)){var h=new ue,u=this.yieldPos,d=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,h);if(r&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=d,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,i,f,a);this.checkExpressionErrors(h,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,i);g.callee=e,g.arguments=f,o&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===b.backQuote){(l||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var x=this.startNodeAt(t,i);x.tag=e,x.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(x,"TaggedTemplateExpression")}return e},_e.parseExprAtom=function(e,t,i){this.type===b.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==b.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(s,"Super");case b._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case b.name:var n=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(b._function))return this.overrideContext(Ee.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===b.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(b.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[l],!0,t)}return l;case b.regexp:var c=this.value;return(s=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},s;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return(s=this.startNode()).value=this.type===b._null?null:this.type===b._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case b.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),h;case b.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case b.braceL:return this.overrideContext(Ee.b_expr),this.parseObj(!1,e);case b._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},_e.parseExprAtomDefault=function(){this.unexpected()},_e.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===b.parenL&&!e)return this.parseDynamicImport(t);if(this.type===b.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}this.unexpected()},_e.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(b.parenR)?e.options=null:(this.expect(b.comma),this.afterTrailingComma(b.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(b.parenR)||(this.expect(b.comma),this.afterTrailingComma(b.parenR)||this.unexpected())));else if(!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},_e.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},_e.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},_e.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},_e.shouldParseArrow=function(e){return!this.canInsertSemicolon()},_e.parseParenAndDistinguishExpression=function(e,t){var i,s=this.start,r=this.startLoc,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,c=[],p=!0,h=!1,u=new ue,d=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;){if(p?p=!1:this.expect(b.comma),n&&this.afterTrailingComma(b.parenR,!0)){h=!0;break}if(this.type===b.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var f=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(b.parenR),e&&this.shouldParseArrow(c)&&this.eat(b.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=m,this.parseParenArrowList(s,r,c,t);c.length&&!h||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,c.length>1?((i=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(i,"SequenceExpression",f,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var x=this.startNodeAt(s,r);return x.expression=i,this.finishNode(x,"ParenthesizedExpression")}return i},_e.parseParenItem=function(e){return e},_e.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var Ie=[];_e.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===b.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(b.parenL)?e.arguments=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Ie,this.finishNode(e,"NewExpression")},_e.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===b.backQuote,this.finishNode(i,"TemplateElement")},_e.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===b.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(b.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(b.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},_e.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},_e.parseObj=function(e,t){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(b.braceR);){if(s)s=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,r,t),i.properties.push(n)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},_e.parseProperty=function(e,t){var i,s,r,n,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(r=this.start,n=this.startLoc),e||(i=this.eat(b.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(a)):s=!1,this.parsePropertyValue(a,e,i,s,r,n,t,o),this.finishNode(a,"Property")},_e.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var i="get"===e.kind?0:1;if(e.value.params.length!==i){var s=e.value.start;"get"===e.kind?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},_e.parsePropertyValue=function(e,t,i,s,r,n,a,o){(i||s)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===b.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(i,s),e.kind="init"):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===b.comma||this.type===b.braceR||this.type===b.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key)):this.type===b.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((i||s)&&this.unexpected(),this.parseGetterSetter(e))},_e.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},_e.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},_e.parseMethod=function(e,t,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(te(t,s.generator)|$|(i?K:0)),this.expect(b.parenL),s.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(s,"FunctionExpression")},_e.parseArrowExpression=function(e,t,i,s){var r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(te(i,!1)|W),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},_e.parseFunctionBody=function(e,t,i,s){var r=t&&this.type!==b.braceL,n=this.strict,a=!1;if(r)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);n&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!n&&!a&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,oe),e.body=this.parseBlock(!1,void 0,a&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},_e.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1)if("Identifier"!==i[t].type)return!1;return!0},_e.checkParams=function(e,t){for(var i=Object.create(null),s=0,r=e.params;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,se,t?null:i)}},_e.parseExprList=function(e,t,i,s){for(var r=[],n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var a=void 0;i&&this.type===b.comma?a=null:this.type===b.ellipsis?(a=this.parseSpread(s),s&&this.type===b.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):a=this.parseMaybeAssign(!1,s),r.push(a)}return r},_e.checkUnreserved=function(e){var t=e.start,i=e.end,s=e.name;this.inGenerator&&"yield"===s&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===s&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&ee||"arguments"!==s||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==s&&"await"!==s||this.raise(t,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(t,"Unexpected keyword '"+s+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,i).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||"await"!==s||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+s+"' is reserved"))},_e.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},_e.parseIdentNode=function(){var e=this.startNode();return this.type===b.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,"class"!==e.name&&"function"!==e.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=b.name):this.unexpected(),e},_e.parsePrivateIdent=function(){var e=this.startNode();return this.type===b.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},_e.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},_e.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Te=le.prototype;Te.raise=function(e,t){var i=M(this.input,e);t+=" ("+i.line+":"+i.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var s=new SyntaxError(t);throw s.pos=e,s.loc=i,s.raisedAt=this.pos,s},Te.raiseRecoverable=Te.raise,Te.curPosition=function(){if(this.options.locations)return new j(this.curLine,this.pos-this.lineStart)};var Pe=le.prototype,Le=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};Pe.enterScope=function(e){this.scopeStack.push(new Le(e))},Pe.exitScope=function(){this.scopeStack.pop()},Pe.treatFunctionsAsVarInScope=function(e){return e.flags&q||!this.inModule&&e.flags&J},Pe.declareName=function(e,t,i){var s=!1;if(t===re){var r=this.currentScope();s=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&J&&delete this.undefinedExports[e]}else if(t===ae)this.currentScope().lexical.push(e);else if(t===ne){var n=this.currentScope();s=this.treatFunctionsAsVar?n.lexical.indexOf(e)>-1:n.lexical.indexOf(e)>-1||n.var.indexOf(e)>-1,n.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(o.flags&H&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){s=!0;break}if(o.var.push(e),this.inModule&&o.flags&J&&delete this.undefinedExports[e],o.flags&ee)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},Pe.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},Pe.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Pe.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(ee|Y|Q))return t}},Pe.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(ee|Y|Q)&&!(t.flags&W))return t}};var Ve=function(e,t,i){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new D(e,i)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Re=le.prototype;function Oe(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}Re.startNode=function(){return new Ve(this,this.start,this.startLoc)},Re.startNodeAt=function(e,t){return new Ve(this,e,t)},Re.finishNode=function(e,t){return Oe.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Re.finishNodeAt=function(e,t,i,s){return Oe.call(this,e,t,i,s)},Re.copyNode=function(e){var t=new Ve(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var je="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",De="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Me=De+" Extended_Pictographic",Fe=Me,Be=Fe+" EBase EComp EMod EPres ExtPict",Ue=Be,ze=Ue,Je={9:De,10:Me,11:Fe,12:Be,13:Ue,14:ze},qe="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Xe={9:"",10:"",11:"",12:"",13:"",14:qe},Ge="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",We="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",He=We+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",$e=He+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ke=$e+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Qe=Ke+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ye=Qe+" "+je,Ze={9:We,10:He,11:$e,12:Ke,13:Qe,14:Ye},et={};function tt(e){var t=et[e]={binary:V(Je[e]+" "+Ge),binaryOfStrings:V(Xe[e]),nonBinary:{General_Category:V(Ge),Script:V(Ze[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var it=0,st=[9,10,11,12,13,14];it<st.length;it+=1)tt(st[it]);var rt=le.prototype,nt=function(e,t){this.parent=e,this.base=t||this};nt.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var i=e;i;i=i.parent)if(t.base===i.base&&t!==i)return!0;return!1},nt.prototype.sibling=function(){return new nt(this.parent,this.base)};var at=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=et[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function ot(e){for(var t in e)return!0;return!1}function lt(e){return 105===e||109===e||115===e}function ct(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function pt(e){return u(e,!0)||36===e||95===e}function ht(e){return d(e,!0)||36===e||95===e||8204===e||8205===e}function ut(e){return e>=65&&e<=90||e>=97&&e<=122}function dt(e){return e>=0&&e<=1114111}at.prototype.reset=function(e,t,i){var s=-1!==i.indexOf("v"),r=-1!==i.indexOf("u");this.start=0|e,this.source=t+"",this.flags=i,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},at.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},at.prototype.at=function(e,t){void 0===t&&(t=!1);var i=this.source,s=i.length;if(e>=s)return-1;var r=i.charCodeAt(e);if(!t&&!this.switchU||r<=55295||r>=57344||e+1>=s)return r;var n=i.charCodeAt(e+1);return n>=56320&&n<=57343?(r<<10)+n-56613888:r},at.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var i=this.source,s=i.length;if(e>=s)return s;var r,n=i.charCodeAt(e);return!t&&!this.switchU||n<=55295||n>=57344||e+1>=s||(r=i.charCodeAt(e+1))<56320||r>57343?e+1:e+2},at.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},at.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},at.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},at.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},at.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var i=this.pos,s=0,r=e;s<r.length;s+=1){var n=r[s],a=this.at(i,t);if(-1===a||a!==n)return!1;i=this.nextIndex(i,t)}return this.pos=i,!0},rt.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,s=!1,r=!1,n=0;n<i.length;n++){var a=i.charAt(n);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(a,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(s=!0),"v"===a&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(e.start,"Invalid regular expression flag")},rt.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&ot(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},rt.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var s=i[t];e.groupNames[s]||e.raise("Invalid named capture referenced")}},rt.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new nt(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},rt.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},rt.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},rt.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},rt.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},rt.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},rt.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return-1!==r&&r<s&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1},rt.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},rt.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},rt.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var i=this.regexp_eatModifiers(e),s=e.eat(45);if(i||s){for(var r=0;r<i.length;r++){var n=i.charAt(r);i.indexOf(n,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(s){var a=this.regexp_eatModifiers(e);i||a||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var o=0;o<a.length;o++){var l=a.charAt(o);(a.indexOf(l,o+1)>-1||i.indexOf(l)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},rt.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},rt.regexp_eatModifiers=function(e){for(var t="",i=0;-1!==(i=e.current())&&lt(i);)t+=R(i),e.advance();return t},rt.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},rt.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},rt.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!ct(t)&&(e.lastIntValue=t,e.advance(),!0)},rt.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;-1!==(i=e.current())&&!ct(i);)e.advance();return e.pos!==t},rt.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},rt.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,i=e.groupNames[e.lastStringValue];if(i)if(t)for(var s=0,r=i;s<r.length;s+=1)r[s].separatedFrom(e.branchID)||e.raise("Duplicate capture group name");else e.raise("Duplicate capture group name");t?(i||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},rt.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},rt.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=R(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=R(e.lastIntValue);return!0}return!1},rt.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),pt(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)},rt.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),ht(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)},rt.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},rt.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},rt.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},rt.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},rt.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},rt.regexp_eatZero=function(e){return 48===e.current()&&!Ct(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},rt.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},rt.regexp_eatControlLetter=function(e){var t=e.current();return!!ut(t)&&(e.lastIntValue=t%32,e.advance(),!0)},rt.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var i=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(s&&r>=55296&&r<=56319){var n=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(r-55296)+(a-56320)+65536,!0}e.pos=n,e.lastIntValue=r}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&dt(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=i}return!1},rt.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},rt.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};var mt=0,ft=1,gt=2;function xt(e){return 100===e||68===e||115===e||83===e||119===e||87===e}function yt(e){return ut(e)||95===e}function vt(e){return yt(e)||Ct(e)}function bt(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}function wt(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}function kt(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}function Ct(e){return e>=48&&e<=57}function Et(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function St(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function _t(e){return e>=48&&e<=55}rt.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(xt(t))return e.lastIntValue=-1,e.advance(),ft;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=80===t)||112===t)){var s;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&s===gt&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return mt},rt.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),ft}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return mt},rt.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){T(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},rt.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?ft:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?gt:void e.raise("Invalid property name")},rt.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";yt(t=e.current());)e.lastStringValue+=R(t),e.advance();return""!==e.lastStringValue},rt.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";vt(t=e.current());)e.lastStringValue+=R(t),e.advance();return""!==e.lastStringValue},rt.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},rt.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===gt&&e.raise("Negated character class may contain strings"),!0}return!1},rt.regexp_classContents=function(e){return 93===e.current()?ft:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),ft)},rt.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;!e.switchU||-1!==t&&-1!==i||e.raise("Invalid character class"),-1!==t&&-1!==i&&t>i&&e.raise("Range out of order in character class")}}},rt.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(99===i||_t(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return 93!==s&&(e.lastIntValue=s,e.advance(),!0)},rt.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},rt.regexp_classSetExpression=function(e){var t,i=ft;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){t===gt&&(i=gt);for(var s=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?t!==gt&&(i=ft):e.raise("Invalid character in character class");if(s!==e.pos)return i;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return i}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return i;t===gt&&(i=gt)}},rt.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return-1!==i&&-1!==s&&i>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},rt.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?ft:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},rt.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return i&&s===gt&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null},rt.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null},rt.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===gt&&(t=gt);return t},rt.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?ft:gt},rt.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e)&&(e.eat(98)?(e.lastIntValue=8,0):(e.pos=t,1)));var i=e.current();return!(i<0||i===e.lookahead()&&bt(i)||wt(i)||(e.advance(),e.lastIntValue=i,0))},rt.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!kt(t)&&(e.lastIntValue=t,e.advance(),!0)},rt.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Ct(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},rt.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},rt.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Ct(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t},rt.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Et(i=e.current());)e.lastIntValue=16*e.lastIntValue+St(i),e.advance();return e.pos!==t},rt.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*i+e.lastIntValue:e.lastIntValue=8*t+i}else e.lastIntValue=t;return!0}return!1},rt.regexp_eatOctalDigit=function(e){var t=e.current();return _t(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},rt.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s<t;++s){var r=e.current();if(!Et(r))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+St(r),e.advance()}return!0};var Nt=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new D(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},At=le.prototype;function It(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Tt(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}At.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Nt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},At.getToken=function(){return this.next(),new Nt(this)},"undefined"!=typeof Symbol&&(At[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),At.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(b.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},At.readToken=function(e){return u(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},At.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var i=this.input.charCodeAt(e+1);return i<=56319||i>=57344?t:(t<<10)+i-56613888},At.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},At.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,r=t;(s=E(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},At.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!C(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())},At.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&S.test(String.fromCharCode(e))))break e;++this.pos}}},At.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},At.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},At.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},At.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=42===e?b.star:b.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++i,s=b.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(b.assign,i+1):this.finishOp(s,i)},At.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(b.assign,3):this.finishOp(124===e?b.logicalOR:b.logicalAND,2):61===t?this.finishOp(b.assign,2):this.finishOp(124===e?b.bitwiseOR:b.bitwiseAND,1)},At.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},At.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!w.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(b.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},At.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(b.assign,i+1):this.finishOp(b.bitShift,i)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(i=2),this.finishOp(b.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},At.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(b.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(61===e?b.eq:b.prefix,1)},At.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(b.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},At.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,u(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+R(e)+"'")},At.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+R(e)+"'")},At.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},At.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(w.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if("["===s)t=!0;else if("]"===s&&t)t=!1;else if("/"===s&&!t)break;e="\\"===s}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new at(this));o.reset(i,r,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(r,a)}catch(e){}return this.finishToken(b.regexp,{pattern:r,flags:a,value:l})},At.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&void 0===t,r=i&&48===this.input.charCodeAt(this.pos),n=this.pos,a=0,o=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var p=this.input.charCodeAt(this.pos),h=void 0;if(s&&95===p)r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=p;else{if((h=p>=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=e)break;o=p,a=a*e+h}}return s&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||null!=t&&this.pos-n!==t?null:a},At.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return null==i&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=Tt(this.input.slice(t,this.pos)),++this.pos):u(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(b.num,i)},At.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var i=this.pos-t>=2&&48===this.input.charCodeAt(t);i&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&110===s){var r=Tt(this.input.slice(t,this.pos));return++this.pos,u(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(b.num,r)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),46!==s||i||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||i||(43!==(s=this.input.charCodeAt(++this.pos))&&45!==s||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),u(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=It(this.input.slice(t,this.pos),i);return this.finishToken(b.num,n)},At.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},At.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;92===s?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):8232===s||8233===s?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(C(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(b.string,t)};var Pt={};At.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Pt)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},At.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Pt;this.raise(e,t)},At.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==b.template&&this.type!==b.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e)):36===i?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote));if(92===i)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(C(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},At.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(b.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},At.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return R(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),"0"===s&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return C(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},At.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return null===i&&this.invalidStringToken(t,"Bad character escape sequence"),i},At.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(d(r,s))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,e+=this.input.slice(i,this.pos);var n=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?u:d)(a,s)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=R(a),i=this.pos}t=!1}return e+this.input.slice(i,this.pos)},At.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=y[e]),this.finishToken(t,e)};var Lt="8.16.0";function Vt(e,t){return le.parse(e,t)}function Rt(e,t,i){return le.parseExpressionAt(e,t,i)}function Ot(e,t){return le.tokenizer(e,t)}le.acorn={Parser:le,version:Lt,defaultOptions:F,Position:j,SourceLocation:D,getLineInfo:M,Node:Ve,TokenType:m,tokTypes:b,keywordTypes:y,TokContext:Ce,tokContexts:Ee,isIdentifierChar:d,isIdentifierStart:u,Token:Nt,isNewLine:C,lineBreak:w,lineBreakG:k,nonASCIIwhitespace:S},e.Node=Ve,e.Parser=le,e.Position=j,e.SourceLocation=D,e.TokContext=Ce,e.Token=Nt,e.TokenType=m,e.defaultOptions=F,e.getLineInfo=M,e.isIdentifierChar=d,e.isIdentifierStart=u,e.isNewLine=C,e.keywordTypes=y,e.lineBreak=w,e.lineBreakG=k,e.nonASCIIwhitespace=S,e.parse=Vt,e.parseExpressionAt=Rt,e.tokContexts=Ee,e.tokTypes=b,e.tokenizer=Ot,e.version=Lt}(mi.exports)),mi.exports}var gi=(di||(di=1,function(e){const t=pi?ci:(pi=1,ci={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),i=/^[\da-fA-F]+$/,s=/^\d+$/,r=new WeakMap;function n(e){e=e.Parser.acorn||e;let t=r.get(e);if(!t){const i=e.tokTypes,s=e.TokContext,n=e.TokenType,a=new s("<tag",!1),o=new s("</tag",!1),l=new s("<tag>...</tag>",!0,!0),c={tc_oTag:a,tc_cTag:o,tc_expr:l},p={jsxName:new n("jsxName"),jsxText:new n("jsxText",{beforeExpr:!0}),jsxTagStart:new n("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new n("jsxTagEnd")};p.jsxTagStart.updateContext=function(){this.context.push(l),this.context.push(a),this.exprAllowed=!1},p.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===a&&e===i.slash||t===o?(this.context.pop(),this.exprAllowed=this.curContext()===l):this.exprAllowed=!0},t={tokContexts:c,tokTypes:p},r.set(e,t)}return t}function a(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?a(e.object)+"."+a(e.property):void 0:e}e.exports=function(e){return e=e||{},function(r){return function(e,r){const o=r.acorn||fi(),l=n(o),c=o.tokTypes,p=l.tokTypes,h=o.tokContexts,u=l.tokContexts.tc_oTag,d=l.tokContexts.tc_cTag,m=l.tokContexts.tc_expr,f=o.isNewLine,g=o.isIdentifierStart,x=o.isIdentifierChar;return class extends r{static get acornJsx(){return l}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let i=this.input.charCodeAt(this.pos);switch(i){case 60:case 123:return this.pos===this.start?60===i&&this.exprAllowed?(++this.pos,this.finishToken(p.jsxTagStart)):this.getTokenFromCode(i):(e+=this.input.slice(t,this.pos),this.finishToken(p.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===i?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:f(i)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t,i=this.input.charCodeAt(this.pos);return++this.pos,13===i&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(i),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t}jsx_readString(e){let t="",i=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let s=this.input.charCodeAt(this.pos);if(s===e)break;38===s?(t+=this.input.slice(i,this.pos),t+=this.jsx_readEntity(),i=this.pos):f(s)?(t+=this.input.slice(i,this.pos),t+=this.jsx_readNewLine(!1),i=this.pos):++this.pos}return t+=this.input.slice(i,this.pos++),this.finishToken(c.string,t)}jsx_readEntity(){let e,r="",n=0,a=this.input[this.pos];"&"!==a&&this.raise(this.pos,"Entity must start with an ampersand");let o=++this.pos;for(;this.pos<this.input.length&&n++<10;){if(a=this.input[this.pos++],";"===a){"#"===r[0]?"x"===r[1]?(r=r.substr(2),i.test(r)&&(e=String.fromCharCode(parseInt(r,16)))):(r=r.substr(1),s.test(r)&&(e=String.fromCharCode(parseInt(r,10)))):e=t[r];break}r+=a}return e||(this.pos=o,"&")}jsx_readWord(){let e,t=this.pos;do{e=this.input.charCodeAt(++this.pos)}while(x(e)||45===e);return this.finishToken(p.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===p.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsx_parseNamespacedName(){let t=this.start,i=this.startLoc,s=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(c.colon))return s;var r=this.startNodeAt(t,i);return r.namespace=s,r.name=this.jsx_parseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===p.jsxTagEnd)return"";let t=this.start,i=this.startLoc,s=this.jsx_parseNamespacedName();for(this.type!==c.dot||"JSXNamespacedName"!==s.type||e.allowNamespacedObjects||this.unexpected();this.eat(c.dot);){let e=this.startNodeAt(t,i);e.object=s,e.property=this.jsx_parseIdentifier(),s=this.finishNode(e,"JSXMemberExpression")}return s}jsx_parseAttributeValue(){switch(this.type){case c.braceL:let e=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,"JSX attributes must only be assigned a non-empty expression"),e;case p.jsxTagStart:case c.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===c.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(c.braceR),this.finishNode(e,"JSXExpressionContainer")}jsx_parseAttribute(){let e=this.startNode();return this.eat(c.braceL)?(this.expect(c.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(c.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(c.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsx_parseOpeningElementAt(e,t){let i=this.startNodeAt(e,t);i.attributes=[];let s=this.jsx_parseElementName();for(s&&(i.name=s);this.type!==c.slash&&this.type!==p.jsxTagEnd;)i.attributes.push(this.jsx_parseAttribute());return i.selfClosing=this.eat(c.slash),this.expect(p.jsxTagEnd),this.finishNode(i,s?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(e,t){let i=this.startNodeAt(e,t),s=this.jsx_parseElementName();return s&&(i.name=s),this.expect(p.jsxTagEnd),this.finishNode(i,s?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(e,t){let i=this.startNodeAt(e,t),s=[],r=this.jsx_parseOpeningElementAt(e,t),n=null;if(!r.selfClosing){e:for(;;)switch(this.type){case p.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(c.slash)){n=this.jsx_parseClosingElementAt(e,t);break e}s.push(this.jsx_parseElementAt(e,t));break;case p.jsxText:s.push(this.parseExprAtom());break;case c.braceL:s.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}a(n.name)!==a(r.name)&&this.raise(n.start,"Expected corresponding JSX closing tag for <"+a(r.name)+">")}let o=r.name?"Element":"Fragment";return i["opening"+o]=r,i["closing"+o]=n,i.children=s,this.type===c.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(i,"JSX"+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type="JSXText",e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===p.jsxText?this.jsx_parseText():this.type===p.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===u||t===d){if(g(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(p.jsxTagEnd);if((34===e||39===e)&&t==u)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(p.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==c.braceL){var t=this.curContext();t==u?this.context.push(h.b_expr):t==m?this.context.push(h.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==c.slash||e!==p.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(d),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},r)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return n(fi()).tokTypes},configurable:!0,enumerable:!0})}(hi)),hi.exports),xi=V(gi);const{stringify:yi}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");const vi={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},bi=17,wi={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:bi,ClassExpression:bi,FunctionExpression:bi,ObjectExpression:bi,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function ki(e,t){const{generator:i}=e;if(e.write("("),null!=t&&t.length>0){i[t[0].type](t[0],e);const{length:s}=t;for(let r=1;r<s;r++){const s=t[r];e.write(", "),i[s.type](s,e)}}e.write(")")}function Ci(e,t,i,s){const r=e.expressionsPrecedence[t.type];if(r===bi)return!0;const n=e.expressionsPrecedence[i.type];return r!==n?!s&&15===r&&14===n&&"**"===i.operator||r<n:(13===r||14===r)&&("**"===t.operator&&"**"===i.operator?!s:13===r&&13===n&&("??"===t.operator||"??"===i.operator)||(s?vi[t.operator]<=vi[i.operator]:vi[t.operator]<vi[i.operator]))}function Ei(e,t,i,s){const{generator:r}=e;Ci(e,t,i,s)?(e.write("("),r[t.type](t,e),e.write(")")):r[t.type](t,e)}function Si(e,t,i,s){const r=t.split("\n"),n=r.length-1;if(e.write(r[0].trim()),n>0){e.write(s);for(let t=1;t<n;t++)e.write(i+r[t].trim()+s);e.write(i+r[n].trim())}}function _i(e,t,i,s){const{length:r}=t;for(let n=0;n<r;n++){const r=t[n];e.write(i),"L"===r.type[0]?e.write("// "+r.value.trim()+"\n",r):(e.write("/*"),Si(e,r.value,i,s),e.write("*/"+s))}}function Ni(e,t){const{generator:i}=e,{declarations:s}=t;e.write(t.kind+" ");const{length:r}=s;if(r>0){i.VariableDeclarator(s[0],e);for(let t=1;t<r;t++)e.write(", "),i.VariableDeclarator(s[t],e)}}let Ai,Ii,Ti,Pi,Li,Vi;const Ri={Program(e,t){const i=t.indent.repeat(t.indentLevel),{lineEnd:s,writeComments:r}=t;r&&null!=e.comments&&_i(t,e.comments,i,s);const n=e.body,{length:a}=n;for(let e=0;e<a;e++){const a=n[e];r&&null!=a.comments&&_i(t,a.comments,i,s),t.write(i),this[a.type](a,t),t.write(s)}r&&null!=e.trailingComments&&_i(t,e.trailingComments,i,s)},BlockStatement:Vi=function(e,t){const i=t.indent.repeat(t.indentLevel++),{lineEnd:s,writeComments:r}=t,n=i+t.indent;t.write("{");const a=e.body;if(null!=a&&a.length>0){t.write(s),r&&null!=e.comments&&_i(t,e.comments,n,s);const{length:o}=a;for(let e=0;e<o;e++){const i=a[e];r&&null!=i.comments&&_i(t,i.comments,n,s),t.write(n),this[i.type](i,t),t.write(s)}t.write(i)}else r&&null!=e.comments&&(t.write(s),_i(t,e.comments,n,s),t.write(i));r&&null!=e.trailingComments&&_i(t,e.trailingComments,n,s),t.write("}"),t.indentLevel--},ClassBody:Vi,StaticBlock(e,t){t.write("static "),this.BlockStatement(e,t)},EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){const i=t.expressionsPrecedence[e.expression.type];i===bi||3===i&&"O"===e.expression.left.type[0]?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),null!=e.alternate&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){const i=t.indent.repeat(t.indentLevel++),{lineEnd:s,writeComments:r}=t;t.indentLevel++;const n=i+t.indent,a=n+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+s);const{cases:o}=e,{length:l}=o;for(let e=0;e<l;e++){const i=o[e];r&&null!=i.comments&&_i(t,i.comments,n,s),i.test?(t.write(n+"case "),this[i.test.type](i.test,t),t.write(":"+s)):t.write(n+"default:"+s);const{consequent:l}=i,{length:c}=l;for(let e=0;e<c;e++){const i=l[e];r&&null!=i.comments&&_i(t,i.comments,a,s),t.write(a),this[i.type](i,t),t.write(s)}}t.indentLevel-=2,t.write(i+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){const{handler:i}=e;null==i.param?t.write(" catch "):(t.write(" catch ("),this[i.param.type](i.param,t),t.write(") ")),this[i.body.type](i.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),null!=e.init){const{init:i}=e;"V"===i.type[0]?Ni(t,i):this[i.type](i,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:Ai=function(e,t){t.write(`for ${e.await?"await ":""}(`);const{left:i}=e;"V"===i.type[0]?Ni(t,i):this[i.type](i,t),t.write("I"===e.type[3]?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:Ai,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:Ii=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),ki(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:Ii,VariableDeclaration(e,t){Ni(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),null!=e.init&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){t.write("extends ");const{superClass:i}=e,{type:s}=i,r=t.expressionsPrecedence[s];"C"===s[0]&&"l"===s[1]&&"E"===s[5]||!(r===bi||r<t.expressionsPrecedence.ClassExpression)?this[i.type](i,t):(t.write("("),this[e.superClass.type](i,t),t.write(")")),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");const{specifiers:i,attributes:s}=e,{length:r}=i;let n=0;if(r>0){for(;n<r;){n>0&&t.write(", ");const e=i[n],s=e.type[6];if("D"===s)t.write(e.local.name,e),n++;else{if("N"!==s)break;t.write("* as "+e.local.name,e),n++}}if(n<r){for(t.write("{");;){const e=i[n],{name:s}=e.imported;if(t.write(s,e),s!==e.local.name&&t.write(" as "+e.local.name),!(++n<r))break;t.write(", ")}t.write("}")}t.write(" from ")}if(this.Literal(e.source,t),s&&s.length>0){t.write(" with { ");for(let e=0;e<s.length;e++)this.ImportAttribute(s[e],t),e<s.length-1&&t.write(", ");t.write(" }")}t.write(";")},ImportAttribute(e,t){this.Identifier(e.key,t),t.write(": "),this.Literal(e.value,t)},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),null!=t.expressionsPrecedence[e.declaration.type]&&"F"!==e.declaration.type[0]&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");const{specifiers:i}=e,{length:s}=i;if(s>0)for(let e=0;;){const r=i[e],{name:n}=r.local;if(t.write(n,r),n!==r.exported.name&&t.write(" as "+r.exported.name),!(++e<s))break;t.write(", ")}if(t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let i=0;i<e.attributes.length;i++)this.ImportAttribute(e.attributes[i],t),i<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")}},ExportAllDeclaration(e,t){if(null!=e.exported?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let i=0;i<e.attributes.length;i++)this.ImportAttribute(e.attributes[i],t),i<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");const i=e.kind[0];"g"!==i&&"s"!==i||t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),ki(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);const{params:i}=e;null!=i&&(1===i.length&&"I"===i[0].type[0]?t.write(i[0].name,i[0]):ki(t,e.params)),t.write(" => "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:Ti=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:Ti,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),Ei(t,e.argument,e)},TemplateLiteral(e,t){const{quasis:i,expressions:s}=e;t.write("`");const{length:r}=s;for(let e=0;e<r;e++){const r=s[e],n=i[e];t.write(n.value.raw,n),t.write("${"),this[r.type](r,t),t.write("}")}const n=i[i.length-1];t.write(n.value.raw,n),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){Ei(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:Li=function(e,t){if(t.write("["),e.elements.length>0){const{elements:i}=e,{length:s}=i;for(let e=0;;){const r=i[e];if(null!=r&&this[r.type](r,t),!(++e<s)){null==r&&t.write(", ");break}t.write(", ")}}t.write("]")},ArrayPattern:Li,ObjectExpression(e,t){const i=t.indent.repeat(t.indentLevel++),{lineEnd:s,writeComments:r}=t,n=i+t.indent;if(t.write("{"),e.properties.length>0){t.write(s),r&&null!=e.comments&&_i(t,e.comments,n,s);const a=","+s,{properties:o}=e,{length:l}=o;for(let e=0;;){const i=o[e];if(r&&null!=i.comments&&_i(t,i.comments,n,s),t.write(n),this[i.type](i,t),!(++e<l))break;t.write(a)}t.write(s),r&&null!=e.trailingComments&&_i(t,e.trailingComments,n,s),t.write(i+"}")}else r?null!=e.comments?(t.write(s),_i(t,e.comments,n,s),null!=e.trailingComments&&_i(t,e.trailingComments,n,s),t.write(i+"}")):null!=e.trailingComments?(t.write(s),_i(t,e.trailingComments,n,s),t.write(i+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||"i"!==e.kind[0]?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},PropertyDefinition(e,t){e.static&&t.write("static "),e.computed&&t.write("["),this[e.key.type](e.key,t),e.computed&&t.write("]"),null!=e.value?(t.write(" = "),this[e.value.type](e.value,t),t.write(";")):"F"!==e.key.type[0]&&t.write(";")},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){const{properties:i}=e,{length:s}=i;for(let e=0;this[i[e].type](i[e],t),++e<s;)t.write(", ")}t.write("}")},SequenceExpression(e,t){ki(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){const{operator:i,argument:s,argument:{type:r}}=e;t.write(i);const n=Ci(t,s,e);n||!(i.length>1)&&("U"!==r[0]||"n"!==r[1]&&"p"!==r[1]||!s.prefix||s.operator[0]!==i||"+"!==i&&"-"!==i)||t.write(" "),n?(t.write(i.length>1?" (":"("),this[r](s,t),t.write(")")):this[r](s,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:Pi=function(e,t){const i="in"===e.operator;i&&t.write("("),Ei(t,e.left,e,!1),t.write(" "+e.operator+" "),Ei(t,e.right,e,!0),i&&t.write(")")},LogicalExpression:Pi,ConditionalExpression(e,t){const{test:i}=e,s=t.expressionsPrecedence[i.type];s===bi||s<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[i.type](i,t),t.write(")")):this[i.type](i,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");const i=t.expressionsPrecedence[e.callee.type];i===bi||i<t.expressionsPrecedence.CallExpression||function(e){let t=e;for(;null!=t;){const{type:e}=t;if("C"===e[0]&&"a"===e[1])return!0;if("M"!==e[0]||"e"!==e[1]||"m"!==e[2])return!1;t=t.object}}(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),ki(t,e.arguments)},CallExpression(e,t){const i=t.expressionsPrecedence[e.callee.type];i===bi||i<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),ki(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){const i=t.expressionsPrecedence[e.object.type];i===bi||i<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},PrivateIdentifier(e,t){t.write(`#${e.name}`,e)},Literal(e,t){null!=e.raw?t.write(e.raw,e):null!=e.regex?this.RegExpLiteral(e,t):null!=e.bigint?t.write(e.bigint+"n",e):t.write(yi(e.value),e)},RegExpLiteral(e,t){const{regex:i}=e;t.write(`/${i.pattern}/${i.flags}`,e)}},Oi={};class ji{constructor(e){const t=null==e?Oi:e;this.output="",null!=t.output?(this.output=t.output,this.write=this.writeToStream):this.output="",this.generator=null!=t.generator?t.generator:Ri,this.expressionsPrecedence=null!=t.expressionsPrecedence?t.expressionsPrecedence:wi,this.indent=null!=t.indent?t.indent:" ",this.lineEnd=null!=t.lineEnd?t.lineEnd:"\n",this.indentLevel=null!=t.startingIndentLevel?t.startingIndentLevel:0,this.writeComments=!!t.comments&&t.comments,null!=t.sourceMap&&(this.write=null==t.output?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=t.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split("\n").length-1,this.mapping={original:null,generated:this,name:void 0,source:t.sourceMap.file||t.sourceMap._file})}write(e){this.output+=e}writeToStream(e){this.output.write(e)}writeAndMap(e,t){this.output+=e,this.map(e,t)}writeToStreamAndMap(e,t){this.output.write(e),this.map(e,t)}map(e,t){if(null!=t){const{type:i}=t;if("L"===i[0]&&"n"===i[2])return this.column=0,void this.line++;if(null!=t.loc){const{mapping:e}=this;e.original=t.loc.start,e.name=t.name,this.sourceMap.addMapping(e)}if("T"===i[0]&&"E"===i[8]||"L"===i[0]&&"i"===i[1]&&"string"==typeof t.value){const{length:t}=e;let{column:i,line:s}=this;for(let r=0;r<t;r++)"\n"===e[r]?(i=0,s++):i++;return this.column=i,void(this.line=s)}}const{length:i}=e,{lineEnd:s}=this;i>0&&(this.lineEndSize>0&&(1===s.length?e[i-1]===s:e.endsWith(s))?(this.line+=this.lineEndSize,this.column=0):this.column+=i)}toString(){return this.output}}const Di={};function Mi(e,t){const{SourceMapGenerator:i,filePath:s,handlers:r}=t||Di,n=i?new i({file:s||"<unknown>.js"}):void 0,a=function(e,t){const i=new ji(t);return i.generator[e.type](e,i),i.output}(e,{comments:!0,generator:{...Ri,...r},sourceMap:n||void 0});return{value:a,map:n?n.toJSON():void 0}}const Fi={JSXAttribute:function(e,t){this[e.name.type](e.name,t),null!==e.value&&void 0!==e.value&&(t.write("="),"Literal"===e.value.type?t.write('"'+Bi(String(e.value.value)).replace(/"/g,"&quot;")+'"',e):this[e.value.type](e.value,t))},JSXClosingElement:function(e,t){t.write("</"),this[e.name.type](e.name,t),t.write(">")},JSXClosingFragment:function(e,t){t.write("</>",e)},JSXElement:function(e,t){let i=-1;if(this[e.openingElement.type](e.openingElement,t),e.children)for(;++i<e.children.length;){const s=e.children[i];if("JSXSpreadChild"===s.type)throw new Error("JSX spread children are not supported");this[s.type](s,t)}e.closingElement&&this[e.closingElement.type](e.closingElement,t)},JSXEmptyExpression:function(){},JSXExpressionContainer:function(e,t){t.write("{"),this[e.expression.type](e.expression,t),t.write("}")},JSXFragment:function(e,t){let i=-1;if(this[e.openingFragment.type](e.openingFragment,t),e.children)for(;++i<e.children.length;){const s=e.children[i];if("JSXSpreadChild"===s.type)throw new Error("JSX spread children are not supported");this[s.type](s,t)}this[e.closingFragment.type](e.closingFragment,t)},JSXIdentifier:function(e,t){t.write(e.name,e)},JSXMemberExpression:function(e,t){this[e.object.type](e.object,t),t.write("."),this[e.property.type](e.property,t)},JSXNamespacedName:function(e,t){this[e.namespace.type](e.namespace,t),t.write(":"),this[e.name.type](e.name,t)},JSXOpeningElement:function(e,t){let i=-1;if(t.write("<"),this[e.name.type](e.name,t),e.attributes)for(;++i<e.attributes.length;)t.write(" "),this[e.attributes[i].type](e.attributes[i],t);t.write(e.selfClosing?" />":">")},JSXOpeningFragment:function(e,t){t.write("<>",e)},JSXSpreadAttribute:function(e,t){t.write("{"),this.SpreadElement(e,t),t.write("}")},JSXText:function(e,t){t.write(Bi(e.value).replace(/[<>{}]/g,Ui),e)}};function Bi(e){return e.replace(/&(?=[#a-z])/gi,"&amp;")}function Ui(e){return"<"===e?"&lt;":">"===e?"&gt;":"{"===e?"&#123;":"&#125;"}function zi(){const e=this.data(),t=e.settings||(e.settings={}),i=t.handlers||(t.handlers={});(t.plugins||(t.plugins=[])).push(xi()),Object.assign(i,Fi)}function Ji(e){const t=this;this.compiler=function(i,s){const r={...t.data("settings"),...e},n=Mi(i,{SourceMapGenerator:r.SourceMapGenerator,filePath:s.path||"unknown.js",handlers:r.handlers});return s.map=n.map,n.value}}const qi={}.hasOwnProperty,Xi=/[A-Z]/g,Gi=new Set(["td","th"]);function Wi(e,t){try{return kt(e,{reactCompat:!0})}catch(e){throw new Error("Could not parse `style` attribute on `"+t+"`",{cause:e})}}function Hi(e){const t={};let i;for(i in e)qi.call(e,i)&&(t[$i(i)]=e[i]);return t}function $i(e){let t=e.replace(Xi,Ki);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Ki(e){return"-"+e.toLowerCase()}const Qi={}.hasOwnProperty,Yi=[];function Zi(e,t){const i=t?[...t].sort(is):Yi;i.length>0&&es(e,{comments:i,index:0})}function es(e,t){if(t.index===t.comments.length)return;const i=[],s=[];let r;for(r in e)if(Qi.call(e,r)){const t=e[r];if(t&&"object"==typeof t&&"comments"!==r)if(Array.isArray(t)){let e=-1;for(;++e<t.length;)t[e]&&"string"==typeof t[e].type&&i.push(t[e])}else"string"==typeof t.type&&i.push(t)}i.sort(is),s.push(...ts(t,e,!1,{leading:!0,trailing:!1}));let n=-1;for(;++n<i.length;)es(i[n],t);s.push(...ts(t,e,!0,{leading:!1,trailing:i.length>0})),s.length>0&&(e.comments=s)}function ts(e,t,i,s){const r=[];for(;e.comments[e.index]&&is(e.comments[e.index],t,i)<1;)r.push(Object.assign({},e.comments[e.index++],s));return r}function is(e,t,i){const s=i?"end":"start";return e.range&&t.range?e.range[0]-t.range[i?1:0]:e.loc&&e.loc.start&&t.loc&&t.loc[s]?e.loc.start.line-t.loc[s].line||e.loc.start.column-t.loc[s].column:"start"in e&&s in t?e.start-t[s]:Number.NaN}function ss(e,t){const i=e.data&&e.data.estree,s=i&&i.comments||[];let r;i&&(t.comments.push(...s),Zi(i,i.comments),r=i.body[0]&&"ExpressionStatement"===i.body[0].type&&i.body[0].expression||void 0),r||(r={type:"JSXEmptyExpression"},t.patch(e,r));const n={type:"JSXExpressionContainer",expression:r};return t.inherit(e,n),n}function rs(e,t){const i=t.schema;let s=i;const r=e.attributes||[];let n=-1;e.name&&"html"===i.space&&"svg"===e.name.toLowerCase()&&(s=Ct,t.schema=s);const a=t.all(e),o=[];for(;++n<r.length;){const e=r[n],i=e.value;let s;if("mdxJsxAttribute"===e.type){if(null==i)s=null;else if("object"==typeof i){const e=i.data&&i.data.estree,r=e&&e.comments||[];let n;e&&(t.comments.push(...r),Zi(e,e.comments),n=e.body[0]&&"ExpressionStatement"===e.body[0].type&&e.body[0].expression||void 0),s={type:"JSXExpressionContainer",expression:n||{type:"JSXEmptyExpression"}},t.inherit(i,s)}else s={type:"Literal",value:String(i)};const r={type:"JSXAttribute",name:t.createJsxAttributeName(e.name),value:s};t.inherit(e,r),o.push(r)}else{const i=e.data&&e.data.estree,s=i&&i.comments||[];let r;i&&(t.comments.push(...s),Zi(i,i.comments),r=i.body[0]&&"ExpressionStatement"===i.body[0].type&&i.body[0].expression&&"ObjectExpression"===i.body[0].expression.type&&i.body[0].expression.properties&&i.body[0].expression.properties[0]&&"SpreadElement"===i.body[0].expression.properties[0].type&&i.body[0].expression.properties[0].argument||void 0);const n={type:"JSXSpreadAttribute",argument:r||{type:"ObjectExpression",properties:[]}};t.inherit(e,n),o.push(n)}}t.schema=i;const l=e.name?{type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:o,name:t.createJsxElementName(e.name),selfClosing:0===a.length},closingElement:a.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.name)}:null,children:a}:{type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:a};return t.inherit(e,l),l}const ns={comment:function(e,t){const i={type:"Block",value:e.value};t.inherit(e,i),t.comments.push(i);const s={type:"JSXEmptyExpression",comments:[Object.assign({},i,{leading:!1,trailing:!0})]};t.patch(e,s);const r={type:"JSXExpressionContainer",expression:s};return t.patch(e,r),r},doctype:function(){},element:function(e,t){const i=t.schema;let s=i;const r=e.properties||{};"html"===i.space&&"svg"===e.tagName.toLowerCase()&&(s=Ct,t.schema=s);const n=t.all(e),a=[];let o,l,c;for(o in r)if(qi.call(r,o)){let i=r[o];const n=yt(s,o);let p;if(null==i||!1===i||"number"==typeof i&&Number.isNaN(i)||!i&&n.boolean)continue;if(o="react"===t.elementAttributeNameCase&&n.space?vt[n.property]||n.property:n.attribute,Array.isArray(i)&&(i=n.commaSeparated?bt(i):wt(i)),"style"===o){let s="object"==typeof i?i:Wi(String(i),e.tagName);"css"===t.stylePropertyNameCase&&(s=Hi(s));const r=[];let n;for(n in s)qi.call(s,n)&&r.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:xt(n)?{type:"Identifier",name:n}:{type:"Literal",value:n},value:{type:"Literal",value:String(s[n])},kind:"init"});c=r,p={type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:r}}}else if(!0===i)p=null;else{if(t.tableCellAlignToStyle&&Gi.has(e.tagName)&&"align"===o){l=String(i);continue}p={type:"Literal",value:String(i)}}xt(o,{jsx:!0})?a.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:o},value:p}):a.push({type:"JSXSpreadAttribute",argument:{type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,key:{type:"Literal",value:String(o)},value:p||{type:"Literal",value:!0},kind:"init"}]}})}if(void 0!==l){c||(c=[],a.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:"style"},value:{type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:c}}}));const e="css"===t.stylePropertyNameCase?$i("textAlign"):"textAlign";c.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:xt(e)?{type:"Identifier",name:e}:{type:"Literal",value:e},value:{type:"Literal",value:l},kind:"init"})}t.schema=i;const p={type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:a,name:t.createJsxElementName(e.tagName),selfClosing:0===n.length},closingElement:n.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.tagName)}:null,children:n};return t.inherit(e,p),p},mdxFlowExpression:ss,mdxJsxFlowElement:rs,mdxJsxTextElement:rs,mdxTextExpression:ss,mdxjsEsm:function(e,t){const i=e.data&&e.data.estree,s=i&&i.comments||[];i&&(t.comments.push(...s),Zi(i,s),t.esm.push(...i.body))},root:function(e,t){const i=t.all(e),s=[];let r,n=-1;for(;++n<i.length;){const e=i[n];"JSXExpressionContainer"===e.type&&"Literal"===e.expression.type&&Et(String(e.expression.value))?r&&r.push(e):(r&&s.push(...r),s.push(e),r=[])}const a={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:s};return t.inherit(e,a),a},text:function(e,t){const i=String(e.value||"");if(i){const s={type:"Literal",value:i};t.inherit(e,s);const r={type:"JSXExpressionContainer",expression:s};return t.patch(e,r),r}}};const as={}.hasOwnProperty,os=new Set(["table","tbody","thead","tfoot","tr"]);function ls(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function cs(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function ps(e){const t=e.children||[];let i=-1;const s=[],r="html"===this.schema.space&&"element"===e.type&&os.has(e.tagName.toLowerCase());for(;++i<t.length;){const e=t[i];if(r&&"text"===e.type&&"\n"===e.value)continue;const n=this.handle(e);Array.isArray(n)?s.push(...n):n&&s.push(n)}return s}function hs(e,t){const i=e.data;let s,r;if(us(e,t),i){for(r in i)as.call(i,r)&&"estree"!==r&&(s||(s={}),s[r]=i[r]);s&&(t.data=s)}}function us(e,t){const i=_t(e);i&&void 0!==i.start.offset&&void 0!==i.end.offset&&(t.start=i.start.offset,t.end=i.end.offset,t.loc={start:{line:i.start.line,column:i.start.column-1},end:{line:i.end.line,column:i.end.column-1}},t.range=[i.start.offset,i.end.offset])}function ds(e){const t=fs(e);if("JSXMemberExpression"===t.type)throw new Error("Member expressions in attribute names are not supported");return t}function ms(e){return fs(e)}function fs(e){if(e.includes(".")){const t=e.split(".");let i=t.shift(),s={type:"JSXIdentifier",name:i};for(;i=t.shift();)s={type:"JSXMemberExpression",object:s,property:{type:"JSXIdentifier",name:i}};return s}if(e.includes(":")){const t=e.split(":");return{type:"JSXNamespacedName",namespace:{type:"JSXIdentifier",name:t[0]},name:{type:"JSXIdentifier",name:t[1]}}}return{type:"JSXIdentifier",name:e}}function gs(e,t){const i=function(e){const t=Ze("type",{invalid:ls,unknown:cs,handlers:{...ns,...e.handlers}});return{elementAttributeNameCase:e.elementAttributeNameCase||"react",schema:"svg"===e.space?Ct:St,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==e.tableCellAlignToStyle,comments:[],esm:[],all:ps,createJsxAttributeName:ds,createJsxElementName:ms,handle:function(e){return t(e,this)},inherit:hs,patch:us}}(t||{});let s=i.handle(e);const r=i.esm;if(s){"JSXFragment"!==s.type&&"JSXElement"!==s.type&&(s={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:[s]},i.patch(e,s));const t={type:"ExpressionStatement",expression:s};i.patch(e,t),r.push(t)}const n={type:"Program",body:r,sourceType:"module",comments:i.comments};return i.patch(e,n),n}function xs(e){return function(t){return gs(t,e)}}function ys(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function vs(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function bs(e){const t=this.resume(),i=e.estree,s=this.stack[this.stack.length-1];Ye("mdxFlowExpression"===s.type||"mdxTextExpression"===s.type),this.exit(e),s.value=t,i&&(s.data={estree:i})}function ws(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function ks(e,t,i){const s=e.value||"";return"{"+i.indentLines(s,function(e,t,i){return(0===t||i?"":" ")+e})+"}"}const Cs=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Es={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Ss(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function _s(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Ns(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Ss(e)}const As=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Is(e){return e>=55296&&e<=57343||e>1114111}function Ts(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}const Ps=/["&'<>`]/g,Ls=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vs=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Rs=/[|\\{}()[\]^$+*?.]/g,Os=new WeakMap;function js(e,t){return e=e.replace(t.subset?function(e){let t=Os.get(e);t||(t=function(e){const t=[];let i=-1;for(;++i<e.length;)t.push(e[i].replace(Rs,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),Os.set(e,t));return t}(t.subset):Ps,i),t.subset||t.escapeOnly?e:e.replace(Ls,function(e,i,s){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}).replace(Vs,i);function i(e,i,s){return t.format(e.charCodeAt(0),s.charCodeAt(i+1),t)}}function Ds(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ms(e,t){return js(e,Object.assign({format:Ds},t))}function Fs(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:s,mdxJsxFlowTagClosingMarker:r,mdxJsxFlowTagAttribute:h,mdxJsxFlowTagExpressionAttribute:u,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:a,mdxJsxTextTag:s,mdxJsxTextTagClosingMarker:r,mdxJsxTextTagAttribute:h,mdxJsxTextTagExpressionAttribute:u,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:a},exit:{mdxJsxFlowTagClosingMarker:o,mdxJsxFlowTagNamePrimary:l,mdxJsxFlowTagNameMember:c,mdxJsxFlowTagNameLocal:p,mdxJsxFlowTagExpressionAttribute:d,mdxJsxFlowTagExpressionAttributeValue:i,mdxJsxFlowTagAttributeNamePrimary:m,mdxJsxFlowTagAttributeNameLocal:f,mdxJsxFlowTagAttributeValueLiteral:g,mdxJsxFlowTagAttributeValueLiteralValue:i,mdxJsxFlowTagAttributeValueExpression:x,mdxJsxFlowTagAttributeValueExpressionValue:i,mdxJsxFlowTagSelfClosingMarker:y,mdxJsxFlowTag:v,mdxJsxTextTagClosingMarker:o,mdxJsxTextTagNamePrimary:l,mdxJsxTextTagNameMember:c,mdxJsxTextTagNameLocal:p,mdxJsxTextTagExpressionAttribute:d,mdxJsxTextTagExpressionAttributeValue:i,mdxJsxTextTagAttributeNamePrimary:m,mdxJsxTextTagAttributeNameLocal:f,mdxJsxTextTagAttributeValueLiteral:g,mdxJsxTextTagAttributeValueLiteralValue:i,mdxJsxTextTagAttributeValueExpression:x,mdxJsxTextTagAttributeValueExpressionValue:i,mdxJsxTextTagSelfClosingMarker:y,mdxJsxTextTag:v}};function e(){this.buffer()}function t(e){return{line:e.line,column:e.column,offset:e.offset}}function i(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function s(e){const t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=t,this.buffer()}function r(e){if(0===this.data.mdxJsxTagStack.length)throw new tt("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function n(e){if(this.data.mdxJsxTag.close)throw new tt("Unexpected attribute in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-attribute")}function a(e){if(this.data.mdxJsxTag.close)throw new tt("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function o(){this.data.mdxJsxTag.close=!0}function l(e){this.data.mdxJsxTag.name=this.sliceSerialize(e)}function c(e){this.data.mdxJsxTag.name+="."+this.sliceSerialize(e)}function p(e){this.data.mdxJsxTag.name+=":"+this.sliceSerialize(e)}function h(e){const i=this.data.mdxJsxTag;n.call(this,e),i.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(e.start),end:void 0}})}function u(e){const i=this.data.mdxJsxTag;n.call(this,e),i.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(e.start),end:void 0}}),this.buffer()}function d(e){const i=this.data.mdxJsxTag,s=i.attributes[i.attributes.length-1];Ye("mdxJsxExpressionAttribute"===s.type);const r=e.estree;s.value=this.resume(),Ye(void 0!==s.position),s.position.end=t(e.end),r&&(s.data={estree:r})}function m(e){const i=this.data.mdxJsxTag,s=i.attributes[i.attributes.length-1];Ye("mdxJsxAttribute"===s.type),s.name=this.sliceSerialize(e),Ye(void 0!==s.position),s.position.end=t(e.end)}function f(e){const i=this.data.mdxJsxTag,s=i.attributes[i.attributes.length-1];Ye("mdxJsxAttribute"===s.type),s.name+=":"+this.sliceSerialize(e),Ye(void 0!==s.position),s.position.end=t(e.end)}function g(e){const i=this.data.mdxJsxTag,s=i.attributes[i.attributes.length-1];s.value=function(e,t){const i=t||{},s="string"==typeof i.additional?i.additional.charCodeAt(0):i.additional,r=[];let n,a,o=0,l=-1,c="";i.position&&("start"in i.position||"indent"in i.position?(a=i.position.indent,n=i.position.start):n=i.position);let p,h=(n?n.line:0)||1,u=(n?n.column:0)||1,d=m();for(o--;++o<=e.length;)if(10===p&&(u=(a?a[l]:0)||1),p=e.charCodeAt(o),38===p){const t=e.charCodeAt(o+1);if(9===t||10===t||12===t||32===t||38===t||60===t||Number.isNaN(t)||s&&t===s){c+=String.fromCharCode(p),u++;continue}const n=o+1;let a,l=n,h=n;if(35===t){h=++l;const t=e.charCodeAt(h);88===t||120===t?(a="hexadecimal",h=++l):a="decimal"}else a="named";let x="",y="",v="";const b="named"===a?Ns:"decimal"===a?Ss:_s;for(h--;++h<=e.length;){const t=e.charCodeAt(h);if(!b(t))break;v+=String.fromCharCode(t),"named"===a&&Cs.includes(v)&&(x=v,y=et(v))}let w=59===e.charCodeAt(h);if(w){h++;const e="named"===a&&et(v);e&&(x=v,y=e)}let k=1+h-n,C="";if(w||!1!==i.nonTerminated)if(v)if("named"===a){if(w&&!y)f(5,1);else if(x!==v&&(h=l+x.length,k=1+h-l,w=!1),!w){const t=x?1:3;if(i.attribute){const i=e.charCodeAt(h);61===i?(f(t,k),y=""):Ns(i)?y="":f(t,k)}else f(t,k)}C=y}else{w||f(2,k);let e=Number.parseInt(v,"hexadecimal"===a?16:10);if(Is(e))f(7,k),C=String.fromCharCode(65533);else if(e in Es)f(6,k),C=Es[e];else{let t="";Ts(e)&&f(6,k),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),C=t+String.fromCharCode(e)}}else"named"!==a&&f(4,k);if(C){g(),d=m(),o=h-1,u+=h-n+1,r.push(C);const t=m();t.offset++,i.reference&&i.reference.call(i.referenceContext||void 0,C,{start:d,end:t},e.slice(n-1,h)),d=t}else v=e.slice(n-1,h),c+=v,u+=v.length,o=h-1}else 10===p&&(h++,l++,u=0),Number.isNaN(p)?g():(c+=String.fromCharCode(p),u++);return r.join("");function m(){return{line:h,column:u,offset:o+((n?n.offset:0)||0)}}function f(e,t){let s;i.warning&&(s=m(),s.column+=t,s.offset+=t,i.warning.call(i.warningContext||void 0,As[e],s,e))}function g(){c&&(r.push(c),i.text&&i.text.call(i.textContext||void 0,c,{start:d,end:m()}),c="")}}(this.resume(),{nonTerminated:!1}),Ye(void 0!==s.position),s.position.end=t(e.end)}function x(e){const i=this.data.mdxJsxTag,s=i.attributes[i.attributes.length-1];Ye("mdxJsxAttribute"===s.type);const r={type:"mdxJsxAttributeValueExpression",value:this.resume()},n=e.estree;n&&(r.data={estree:n}),s.value=r,Ye(void 0!==s.position),s.position.end=t(e.end)}function y(){this.data.mdxJsxTag.selfClosing=!0}function v(e){const t=this.data.mdxJsxTag,i=this.data.mdxJsxTagStack,s=i[i.length-1];if(t.close&&s.name!==t.name)throw new tt("Unexpected closing tag `"+k(t)+"`, expected corresponding closing tag for `"+k(s)+"` ("+it(s)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),t.close?i.pop():this.enter({type:"mdxJsxTextTag"===e.type?"mdxJsxTextElement":"mdxJsxFlowElement",name:t.name||null,attributes:t.attributes,children:[]},e,b),t.selfClosing||t.close?this.exit(e,w):i.push(t)}function b(e,t){const i=this.data.mdxJsxTagStack,s=i[i.length-1],r=e?" before the end of `"+e.type+"`":"",n=e?{start:e.start,end:e.end}:void 0;throw new tt("Expected a closing tag for `"+k(s)+"` ("+it({start:t.start,end:t.end})+")"+r,n,"mdast-util-mdx-jsx:end-tag-mismatch")}function w(e,t){const i=this.data.mdxJsxTag;throw new tt("Expected the closing tag `"+k(i)+"` either after the end of `"+t.type+"` ("+it(t.end)+") or another opening tag after the start of `"+t.type+"` ("+it(t.start)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function k(e){return"<"+(e.close?"/":"")+(e.name||"")+">"}}function Bs(e){const t=e||{},i=t.quote||'"',s=t.quoteSmart||!1,r=t.tightSelfClosing||!1,n=t.printWidth||Number.POSITIVE_INFINITY,a='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Cannot serialize attribute values with `"+i+"` for `options.quote`, expected `\"`, or `'`");return o.peek=Js,{handlers:{mdxJsxFlowElement:o,mdxJsxTextElement:o},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function o(e,t,o,l){const c="mdxJsxFlowElement"===e.type,p=!!e.name&&(!e.children||0===e.children.length),h=zs(Us(o)),u=o.createTracker(l),d=o.createTracker(l),m=[],f=(c?h:"")+"<"+(e.name||""),g=o.enter(e.type);if(u.move(f),d.move(f),e.attributes&&e.attributes.length>0){if(!e.name)throw new Error("Cannot serialize fragment w/ attributes");let t=-1;for(;++t<e.attributes.length;){const r=e.attributes[t];let n;if("mdxJsxExpressionAttribute"===r.type)n="{"+(r.value||"")+"}";else{if(!r.name)throw new Error("Cannot serialize attribute w/o name");const e=r.value,t=r.name;let o="";if(null==e);else if("object"==typeof e)o="{"+(e.value||"")+"}";else{const t=s&&st(e,i)>st(e,a)?a:i;o=t+Ms(e,{subset:[t]})+t}n=t+(o?"=":"")+o}m.push(n)}}let x=!1;const y=m.join(" ");c&&(/\r?\n|\r/.test(y)||u.current().now.column+y.length+(p?r?2:3:1)>n)&&(x=!0);let v=u,b=f;if(x){v=d;let e=-1;for(;++e<m.length;)m[e]=h+" "+m[e];b+=v.move("\n"+m.join("\n")+"\n"+h)}else y&&(b+=v.move(" "+y));return p&&(b+=v.move((r||x?"":" ")+"/")),b+=v.move(">"),e.children&&e.children.length>0&&("mdxJsxTextElement"===e.type?b+=v.move(o.containerPhrasing(e,{...v.current(),before:">",after:"<"})):(v.shift(2),b+=v.move("\n"),b+=v.move(function(e,t,i){const s=t.indexStack,r=e.children,n=t.createTracker(i),a=zs(Us(t)),o=[];let l=-1;s.push(-1);for(;++l<r.length;){const i=r[l];s[s.length-1]=l;const c={before:"\n",after:"\n",...n.current()},p=t.handle(i,e,t,c),h="mdxJsxFlowElement"===i.type?p:t.indentLines(p,function(e,t,i){return(i?"":a)+e});o.push(n.move(h)),"list"!==i.type&&(t.bulletLastUsed=void 0),l<r.length-1&&o.push(n.move("\n\n"))}return s.pop(),o.join("")}(e,o,v.current())),b+=v.move("\n"))),p||(b+=v.move((c?h:"")+"</"+(e.name||"")+">")),g(),b}}function Us(e){let t=0,i=e.stack.length;for(;--i>-1;){const s=e.stack[i];if("blockquote"===s||"listItem"===s)break;"mdxJsxFlowElement"===s&&t++}return t}function zs(e){return" ".repeat(e)}function Js(){return"<"}function qs(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function Xs(e){const t=this.resume(),i=this.stack[this.stack.length-1];Ye("mdxjsEsm"===i.type),this.exit(e);const s=e.estree;i.value=t,s&&(i.data={estree:s})}function Gs(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Ws(e){return e.value||""}var Hs=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],$s=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Ks="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Qs={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Ys="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Zs={5:Ys,"5module":Ys+" export import",6:Ys+" const class extends export import super"},er=/^in(stanceof)?$/,tr=new RegExp("["+Ks+"]"),ir=new RegExp("["+Ks+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function sr(e,t){for(var i=65536,s=0;s<t.length;s+=2){if((i+=t[s])>e)return!1;if((i+=t[s+1])>=e)return!0}return!1}function rr(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&tr.test(String.fromCharCode(e)):!1!==t&&sr(e,$s)))}function nr(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&ir.test(String.fromCharCode(e)):!1!==t&&(sr(e,$s)||sr(e,Hs)))))}var ar=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function or(e,t){return new ar(e,{beforeExpr:!0,binop:t})}var lr={beforeExpr:!0},cr={startsExpr:!0},pr={};function hr(e,t){return void 0===t&&(t={}),t.keyword=e,pr[e]=new ar(e,t)}var ur={num:new ar("num",cr),regexp:new ar("regexp",cr),string:new ar("string",cr),name:new ar("name",cr),privateId:new ar("privateId",cr),eof:new ar("eof"),bracketL:new ar("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new ar("]"),braceL:new ar("{",{beforeExpr:!0,startsExpr:!0}),braceR:new ar("}"),parenL:new ar("(",{beforeExpr:!0,startsExpr:!0}),parenR:new ar(")"),comma:new ar(",",lr),semi:new ar(";",lr),colon:new ar(":",lr),dot:new ar("."),question:new ar("?",lr),questionDot:new ar("?."),arrow:new ar("=>",lr),template:new ar("template"),invalidTemplate:new ar("invalidTemplate"),ellipsis:new ar("...",lr),backQuote:new ar("`",cr),dollarBraceL:new ar("${",{beforeExpr:!0,startsExpr:!0}),eq:new ar("=",{beforeExpr:!0,isAssign:!0}),assign:new ar("_=",{beforeExpr:!0,isAssign:!0}),incDec:new ar("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new ar("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:or("||",1),logicalAND:or("&&",2),bitwiseOR:or("|",3),bitwiseXOR:or("^",4),bitwiseAND:or("&",5),equality:or("==/!=/===/!==",6),relational:or("</>/<=/>=",7),bitShift:or("<</>>/>>>",8),plusMin:new ar("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:or("%",10),star:or("*",10),slash:or("/",10),starstar:new ar("**",{beforeExpr:!0}),coalesce:or("??",1),_break:hr("break"),_case:hr("case",lr),_catch:hr("catch"),_continue:hr("continue"),_debugger:hr("debugger"),_default:hr("default",lr),_do:hr("do",{isLoop:!0,beforeExpr:!0}),_else:hr("else",lr),_finally:hr("finally"),_for:hr("for",{isLoop:!0}),_function:hr("function",cr),_if:hr("if"),_return:hr("return",lr),_switch:hr("switch"),_throw:hr("throw",lr),_try:hr("try"),_var:hr("var"),_const:hr("const"),_while:hr("while",{isLoop:!0}),_with:hr("with"),_new:hr("new",{beforeExpr:!0,startsExpr:!0}),_this:hr("this",cr),_super:hr("super",cr),_class:hr("class",cr),_extends:hr("extends",lr),_export:hr("export"),_import:hr("import",cr),_null:hr("null",cr),_true:hr("true",cr),_false:hr("false",cr),_in:hr("in",{beforeExpr:!0,binop:7}),_instanceof:hr("instanceof",{beforeExpr:!0,binop:7}),_typeof:hr("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:hr("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:hr("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},dr=/\r\n?|\n|\u2028|\u2029/,mr=new RegExp(dr.source,"g");function fr(e){return 10===e||13===e||8232===e||8233===e}function gr(e,t,i){void 0===i&&(i=e.length);for(var s=t;s<i;s++){var r=e.charCodeAt(s);if(fr(r))return s<i-1&&13===r&&10===e.charCodeAt(s+1)?s+2:s+1}return-1}var xr=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,yr=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,vr=Object.prototype,br=vr.hasOwnProperty,wr=vr.toString,kr=Object.hasOwn||function(e,t){return br.call(e,t)},Cr=Array.isArray||function(e){return"[object Array]"===wr.call(e)},Er=Object.create(null);function Sr(e){return Er[e]||(Er[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function _r(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var Nr=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ar=function(e,t){this.line=e,this.column=t};Ar.prototype.offset=function(e){return new Ar(this.line,this.column+e)};var Ir=function(e,t,i){this.start=t,this.end=i,null!==e.sourceFile&&(this.source=e.sourceFile)};function Tr(e,t){for(var i=1,s=0;;){var r=gr(e,s,t);if(r<0)return new Ar(i,t-s);++i,s=r}}var Pr={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Lr=!1;function Vr(e){var t={};for(var i in Pr)t[i]=e&&kr(e,i)?e[i]:Pr[i];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!Lr&&"object"==typeof console&&console.warn&&(Lr=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),Cr(t.onToken)){var s=t.onToken;t.onToken=function(e){return s.push(e)}}if(Cr(t.onComment)&&(t.onComment=function(e,t){return function(i,s,r,n,a,o){var l={type:i?"Block":"Line",value:s,start:r,end:n};e.locations&&(l.loc=new Ir(this,a,o)),e.ranges&&(l.range=[r,n]),t.push(l)}}(t,t.onComment)),"commonjs"===t.sourceType&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}var Rr=256,Or=259;function jr(e,t){return 2|(e?4:0)|(t?8:0)}var Dr=function(e,t,i){this.options=e=Vr(e),this.sourceFile=e.sourceFile,this.keywords=Sr(Zs[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var s="";!0!==e.allowReserved&&(s=Qs[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(s+=" await")),this.reservedWords=Sr(s);var r=(s?s+" ":"")+Qs.strict;this.reservedWordsStrict=Sr(r),this.reservedWordsStrictBind=Sr(r+" "+Qs.strictBind),this.input=String(t),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(dr).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=ur.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope("commonjs"===this.options.sourceType?2:1),this.regexpState=null,this.privateNameStack=[]},Mr={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Dr.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Mr.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Mr.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Mr.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Mr.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t)return!1;if(2&t)return(4&t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Mr.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},Mr.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},Mr.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Mr.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Mr.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t||2&t&&!(16&t))return!0}return!1},Mr.allowUsing.get=function(){var e=this.currentScope().flags;return!(1024&e)&&!(!this.inModule&&1&e)},Mr.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Rr)>0},Dr.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=this,s=0;s<e.length;s++)i=e[s](i);return i},Dr.parse=function(e,t){return new this(t,e).parse()},Dr.parseExpressionAt=function(e,t,i){var s=new this(i,e,t);return s.nextToken(),s.parseExpression()},Dr.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(Dr.prototype,Mr);var Fr=Dr.prototype,Br=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Fr.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){yr.lastIndex=e,e+=yr.exec(this.input)[0].length;var t=Br.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){yr.lastIndex=e+t[0].length;var i=yr.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return";"===r||"}"===r||dr.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}e+=t[0].length,yr.lastIndex=e,e+=yr.exec(this.input)[0].length,";"===this.input[e]&&e++}},Fr.eat=function(e){return this.type===e&&(this.next(),!0)},Fr.isContextual=function(e){return this.type===ur.name&&this.value===e&&!this.containsEsc},Fr.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},Fr.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Fr.canInsertSemicolon=function(){return this.type===ur.eof||this.type===ur.braceR||dr.test(this.input.slice(this.lastTokEnd,this.start))},Fr.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Fr.semicolon=function(){this.eat(ur.semi)||this.insertSemicolon()||this.unexpected()},Fr.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Fr.expect=function(e){this.eat(e)||this.unexpected()},Fr.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var Ur=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Fr.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},Fr.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},Fr.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Fr.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var zr=Dr.prototype;zr.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==ur.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var n=r[s];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(e,"Program")};var Jr={kind:"loop"},qr={kind:"switch"};zr.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;yr.lastIndex=this.pos;var t=yr.exec(this.input),i=this.pos+t[0].length,s=this.fullCharCodeAt(i);if(91===s||92===s)return!0;if(e)return!1;if(123===s)return!0;if(rr(s)){var r=i;do{i+=s<=65535?1:2}while(nr(s=this.fullCharCodeAt(i)));if(92===s)return!0;var n=this.input.slice(r,i);if(!er.test(n))return!0}return!1},zr.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;yr.lastIndex=this.pos;var e,t=yr.exec(this.input),i=this.pos+t[0].length;return!(dr.test(this.input.slice(this.pos,i))||"function"!==this.input.slice(i,i+8)||i+8!==this.input.length&&(nr(e=this.fullCharCodeAt(i+8))||92===e))},zr.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;yr.lastIndex=this.pos;var i=yr.exec(this.input),s=this.pos+i[0].length;if(dr.test(this.input.slice(this.pos,s)))return!1;if(e){var r,n=s+5;if("using"!==this.input.slice(s,n)||n===this.input.length||nr(r=this.fullCharCodeAt(n))||92===r)return!1;yr.lastIndex=n;var a=yr.exec(this.input);if(s=n+a[0].length,a&&dr.test(this.input.slice(n,s)))return!1}var o=this.fullCharCodeAt(s);if(!rr(o)&&92!==o)return!1;var l=s;do{s+=o<=65535?1:2}while(nr(o=this.fullCharCodeAt(s)));if(92===o)return!0;var c=this.input.slice(l,s);return!(er.test(c)||t&&"of"===c)},zr.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},zr.isUsing=function(e){return this.isUsingKeyword(!1,e)},zr.parseStatement=function(e,t,i){var s,r=this.type,n=this.startNode();switch(this.isLet(e)&&(r=ur._var,s="let"),r){case ur._break:case ur._continue:return this.parseBreakContinueStatement(n,r.keyword);case ur._debugger:return this.parseDebuggerStatement(n);case ur._do:return this.parseDoStatement(n);case ur._for:return this.parseForStatement(n);case ur._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case ur._class:return e&&this.unexpected(),this.parseClass(n,!0);case ur._if:return this.parseIfStatement(n);case ur._return:return this.parseReturnStatement(n);case ur._switch:return this.parseSwitchStatement(n);case ur._throw:return this.parseThrowStatement(n);case ur._try:return this.parseTryStatement(n);case ur._const:case ur._var:return s=s||this.value,e&&"var"!==s&&this.unexpected(),this.parseVarStatement(n,s);case ur._while:return this.parseWhileStatement(n);case ur._with:return this.parseWithStatement(n);case ur.braceL:return this.parseBlock(!0,n);case ur.semi:return this.parseEmptyStatement(n);case ur._export:case ur._import:if(this.options.ecmaVersion>10&&r===ur._import){yr.lastIndex=this.pos;var a=yr.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===ur._import?this.parseImport(n):this.parseExport(n,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var c=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(c)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),"await using"===c&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(n,!1,c),this.semicolon(),this.finishNode(n,"VariableDeclaration");var p=this.value,h=this.parseExpression();return r===ur.name&&"Identifier"===h.type&&this.eat(ur.colon)?this.parseLabeledStatement(n,p,h,e):this.parseExpressionStatement(n,h)}},zr.parseBreakContinueStatement=function(e,t){var i="break"===t;this.next(),this.eat(ur.semi)||this.insertSemicolon()?e.label=null:this.type!==ur.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(i||"loop"===r.kind))break;if(e.label&&i)break}}return s===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")},zr.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},zr.parseDoStatement=function(e){return this.next(),this.labels.push(Jr),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(ur._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(ur.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},zr.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Jr),this.enterScope(0),this.expect(ur.parenL),this.type===ur.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===ur._var||this.type===ur._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(e,s,t)}var n=this.isContextual("let"),a=!1,o=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(o){var l=this.startNode();return this.next(),"await using"===o&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(l,!0,o),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(e,l,t)}var c=this.containsEsc,p=new Ur,h=this.start,u=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===ur._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===ur._in&&this.unexpected(t),e.await=!0):a&&this.options.ecmaVersion>=8&&(u.start!==h||c||"Identifier"!==u.type||"async"!==u.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),n&&a&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,p),this.checkLValPattern(u),this.parseForIn(e,u)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))},zr.parseForAfterInit=function(e,t,i){return(this.type===ur._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===ur._in?i>-1&&this.unexpected(i):e.await=i>-1),this.parseForIn(e,t)):(i>-1&&this.unexpected(i),this.parseFor(e,t))},zr.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,Gr|(i?0:Wr),!1,t)},zr.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(ur._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},zr.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(ur.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},zr.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(ur.braceL),this.labels.push(qr),this.enterScope(1024);for(var i=!1;this.type!==ur.braceR;)if(this.type===ur._case||this.type===ur._default){var s=this.type===ur._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(ur.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},zr.parseThrowStatement=function(e){return this.next(),dr.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Xr=[];zr.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(ur.parenR),e},zr.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===ur._catch){var t=this.startNode();this.next(),this.eat(ur.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(ur._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},zr.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},zr.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Jr),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},zr.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},zr.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},zr.parseLabeledStatement=function(e,t,i,s){for(var r=0,n=this.labels;r<n.length;r+=1){n[r].name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var a=this.type.isLoop?"loop":this.type===ur._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(s?-1===s.indexOf("label")?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},zr.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},zr.parseBlock=function(e,t,i){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(ur.braceL),e&&this.enterScope(0);this.type!==ur.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},zr.parseFor=function(e,t){return e.init=t,this.expect(ur.semi),e.test=this.type===ur.semi?null:this.parseExpression(),this.expect(ur.semi),e.update=this.type===ur.parenR?null:this.parseExpression(),this.expect(ur.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},zr.parseForIn=function(e,t){var i=this.type===ur._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(ur.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},zr.parseVar=function(e,t,i,s){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(ur.eq)?r.init=this.parseMaybeAssign(t):s||"const"!==i||this.type===ur._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||"using"!==i&&"await using"!==i||!(this.options.ecmaVersion>=17)||this.type===ur._in||this.isContextual("of")?s||"Identifier"===r.id.type||t&&(this.type===ur._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+i+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(ur.comma))break}return e},zr.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var Gr=1,Wr=2;function Hr(e,t){var i=t.key.name,s=e[i],r="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(r=(t.static?"s":"i")+t.kind),"iget"===s&&"iset"===r||"iset"===s&&"iget"===r||"sget"===s&&"sset"===r||"sset"===s&&"sget"===r?(e[i]="true",!1):!!s||(e[i]=r,!1)}function $r(e,t){var i=e.computed,s=e.key;return!i&&("Identifier"===s.type&&s.name===t||"Literal"===s.type&&s.value===t)}zr.parseFunction=function(e,t,i,s,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===ur.star&&t&Wr&&this.unexpected(),e.generator=this.eat(ur.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&Gr&&(e.id=4&t&&this.type!==ur.name?null:this.parseIdent(),!e.id||t&Wr||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(jr(e.async,e.generator)),t&Gr||(e.id=this.type===ur.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,r),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&Gr?"FunctionDeclaration":"FunctionExpression")},zr.parseFunctionParams=function(e){this.expect(ur.parenL),e.params=this.parseBindingList(ur.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},zr.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),r=this.startNode(),n=!1;for(r.body=[],this.expect(ur.braceL);this.type!==ur.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(r.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&"PrivateIdentifier"===a.key.type&&Hr(s,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},zr.parseClassElement=function(e){if(this.eat(ur.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,n=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(ur.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===ur.star?o=!0:s="static"}if(i.static=o,!s&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==ur.star||this.canInsertSemicolon()?s="async":n=!0),!s&&(t>=9||!n)&&this.eat(ur.star)&&(r=!0),!s&&!n&&!r){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:s=l)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===ur.parenL||"method"!==a||r||n){var c=!i.static&&$r(i,"constructor"),p=c&&e;c&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=c?"constructor":a,this.parseClassMethod(i,r,n,p)}else this.parseClassField(i);return i},zr.isClassElementNameStart=function(){return this.type===ur.name||this.type===ur.privateId||this.type===ur.num||this.type===ur.string||this.type===ur.bracketL||this.type.keyword},zr.parseClassElementName=function(e){this.type===ur.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},zr.parseClassMethod=function(e,t,i,s){var r=e.key;"constructor"===e.kind?(t&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):e.static&&$r(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,i,s);return"get"===e.kind&&0!==n.params.length&&this.raiseRecoverable(n.start,"getter should have no params"),"set"===e.kind&&1!==n.params.length&&this.raiseRecoverable(n.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===n.params[0].type&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},zr.parseClassField=function(e){return $r(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&$r(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(ur.eq)?(this.enterScope(576),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},zr.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==ur.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},zr.parseClassId=function(e,t){this.type===ur.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},zr.parseClassSuper=function(e){e.superClass=this.eat(ur._extends)?this.parseExprSubscripts(null,!1):null},zr.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},zr.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=0===s?null:this.privateNameStack[s-1],n=0;n<i.length;++n){var a=i[n];kr(t,a.name)||(r?r.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},zr.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==ur.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},zr.parseExport=function(e,t){if(this.next(),this.eat(ur.star))return this.parseExportAllDeclaration(e,t);if(this.eat(ur._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==ur.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var i=0,s=e.specifiers;i<s.length;i+=1){var r=s[i];this.checkUnreserved(r.local),this.checkLocalExport(r.local),"Literal"===r.local.type&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},zr.parseExportDeclaration=function(e){return this.parseStatement(null)},zr.parseExportDefaultDeclaration=function(){var e;if(this.type===ur._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|Gr,!1,e)}if(this.type===ur._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var s=this.parseMaybeAssign();return this.semicolon(),s},zr.checkExport=function(e,t,i){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),kr(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)},zr.checkPatternExport=function(e,t){var i=t.type;if("Identifier"===i)this.checkExport(e,t,t.start);else if("ObjectPattern"===i)for(var s=0,r=t.properties;s<r.length;s+=1){var n=r[s];this.checkPatternExport(e,n)}else if("ArrayPattern"===i)for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(e,l)}else"Property"===i?this.checkPatternExport(e,t.value):"AssignmentPattern"===i?this.checkPatternExport(e,t.left):"RestElement"===i&&this.checkPatternExport(e,t.argument)},zr.checkVariableExport=function(e,t){if(e)for(var i=0,s=t;i<s.length;i+=1){var r=s[i];this.checkPatternExport(e,r.id)}},zr.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},zr.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},zr.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(ur.braceL);!this.eat(ur.braceR);){if(i)i=!1;else if(this.expect(ur.comma),this.afterTrailingComma(ur.braceR))break;t.push(this.parseExportSpecifier(e))}return t},zr.parseImport=function(e){return this.next(),this.type===ur.string?(e.specifiers=Xr,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===ur.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},zr.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},zr.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},zr.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},zr.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===ur.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(ur.comma)))return e;if(this.type===ur.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(ur.braceL);!this.eat(ur.braceR);){if(t)t=!1;else if(this.expect(ur.comma),this.afterTrailingComma(ur.braceR))break;e.push(this.parseImportSpecifier())}return e},zr.parseWithClause=function(){var e=[];if(!this.eat(ur._with))return e;this.expect(ur.braceL);for(var t={},i=!0;!this.eat(ur.braceR);){if(i)i=!1;else if(this.expect(ur.comma),this.afterTrailingComma(ur.braceR))break;var s=this.parseImportAttribute(),r="Identifier"===s.key.type?s.key.name:s.key.value;kr(t,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(s)}return e},zr.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===ur.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(ur.colon),this.type!==ur.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},zr.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===ur.string){var e=this.parseLiteral(this.value);return Nr.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},zr.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},zr.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var Kr=Dr.prototype;Kr.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,r=e.properties;s<r.length;s+=1){var n=r[s];this.toAssignable(n,t),"RestElement"!==n.type||"ArrayPattern"!==n.argument.type&&"ObjectPattern"!==n.argument.type||this.raise(n.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e},Kr.toAssignableList=function(e,t){for(var i=e.length,s=0;s<i;s++){var r=e[s];r&&this.toAssignable(r,t)}if(i){var n=e[i-1];6===this.options.ecmaVersion&&t&&n&&"RestElement"===n.type&&"Identifier"!==n.argument.type&&this.unexpected(n.argument.start)}return e},Kr.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Kr.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==ur.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Kr.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case ur.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(ur.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case ur.braceL:return this.parseObj(!0)}return this.parseIdent()},Kr.parseBindingList=function(e,t,i,s){for(var r=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(ur.comma),t&&this.type===ur.comma)r.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===ur.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===ur.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}r.push(this.parseAssignableListItem(s))}return r},Kr.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},Kr.parseBindingListItem=function(e){return e},Kr.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(ur.eq))return i;var s=this.startNodeAt(e,t);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},Kr.checkLValSimple=function(e,t,i){void 0===t&&(t=0);var s=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(s?"Binding ":"Assigning to ")+e.name+" in strict mode"),s&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(kr(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(s?"Binding":"Assigning to")+" rvalue")}},Kr.checkLValPattern=function(e,t,i){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var s=0,r=e.properties;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,t,i)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLValInnerPattern(l,t,i)}break;default:this.checkLValSimple(e,t,i)}},Kr.checkLValInnerPattern=function(e,t,i){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var Qr=function(e,t,i,s,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!i,this.override=s,this.generator=!!r},Yr={b_stat:new Qr("{",!1),b_expr:new Qr("{",!0),b_tmpl:new Qr("${",!1),p_stat:new Qr("(",!1),p_expr:new Qr("(",!0),q_tmpl:new Qr("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Qr("function",!1),f_expr:new Qr("function",!0),f_expr_gen:new Qr("function",!0,!1,null,!0),f_gen:new Qr("function",!1,!1,null,!0)},Zr=Dr.prototype;Zr.initialContext=function(){return[Yr.b_stat]},Zr.curContext=function(){return this.context[this.context.length-1]},Zr.braceIsBlock=function(e){var t=this.curContext();return t===Yr.f_expr||t===Yr.f_stat||(e!==ur.colon||t!==Yr.b_stat&&t!==Yr.b_expr?e===ur._return||e===ur.name&&this.exprAllowed?dr.test(this.input.slice(this.lastTokEnd,this.start)):e===ur._else||e===ur.semi||e===ur.eof||e===ur.parenR||e===ur.arrow||(e===ur.braceL?t===Yr.b_stat:e!==ur._var&&e!==ur._const&&e!==ur.name&&!this.exprAllowed):!t.isExpr)},Zr.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Zr.updateContext=function(e){var t,i=this.type;i.keyword&&e===ur.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},Zr.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},ur.parenR.updateContext=ur.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===Yr.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},ur.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Yr.b_stat:Yr.b_expr),this.exprAllowed=!0},ur.dollarBraceL.updateContext=function(){this.context.push(Yr.b_tmpl),this.exprAllowed=!0},ur.parenL.updateContext=function(e){var t=e===ur._if||e===ur._for||e===ur._with||e===ur._while;this.context.push(t?Yr.p_stat:Yr.p_expr),this.exprAllowed=!0},ur.incDec.updateContext=function(){},ur._function.updateContext=ur._class.updateContext=function(e){!e.beforeExpr||e===ur._else||e===ur.semi&&this.curContext()!==Yr.p_stat||e===ur._return&&dr.test(this.input.slice(this.lastTokEnd,this.start))||(e===ur.colon||e===ur.braceL)&&this.curContext()===Yr.b_stat?this.context.push(Yr.f_stat):this.context.push(Yr.f_expr),this.exprAllowed=!1},ur.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},ur.backQuote.updateContext=function(){this.curContext()===Yr.q_tmpl?this.context.pop():this.context.push(Yr.q_tmpl),this.exprAllowed=!1},ur.star.updateContext=function(e){if(e===ur._function){var t=this.context.length-1;this.context[t]===Yr.f_expr?this.context[t]=Yr.f_expr_gen:this.context[t]=Yr.f_gen}this.exprAllowed=!0},ur.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==ur.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var en=Dr.prototype;function tn(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&tn(e.expression)}function sn(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&sn(e.expression)||"ParenthesizedExpression"===e.type&&sn(e.expression)}en.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var s,r=e.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var n=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===s&&"init"===n&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);else{var a=t[s="$"+s];if(a)("init"===n?this.strict&&a.init||a.get||a.set:a.init||a[n])&&this.raiseRecoverable(r.start,"Redefinition of property");else a=t[s]={init:!1,get:!1,set:!1};a[n]=!0}}},en.parseExpression=function(e,t){var i=this.start,s=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===ur.comma){var n=this.startNodeAt(i,s);for(n.expressions=[r];this.eat(ur.comma);)n.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(n,"SequenceExpression")}return r},en.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var s=!1,r=-1,n=-1,a=-1;t?(r=t.parenthesizedAssign,n=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Ur,s=!0);var o=this.start,l=this.startLoc;this.type!==ur.parenL&&this.type!==ur.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(i&&(c=i.call(this,c,o,l)),this.type.isAssign){var p=this.startNodeAt(o,l);return p.operator=this.value,this.type===ur.eq&&(c=this.toAssignable(c,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===ur.eq?this.checkLValPattern(c):this.checkLValSimple(c),p.left=c,this.next(),p.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(p,"AssignmentExpression")}return s&&this.checkExpressionErrors(t,!0),r>-1&&(t.parenthesizedAssign=r),n>-1&&(t.trailingComma=n),c},en.parseMaybeConditional=function(e,t){var i=this.start,s=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(ur.question)){var n=this.startNodeAt(i,s);return n.test=r,n.consequent=this.parseMaybeAssign(),this.expect(ur.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return r},en.parseExprOps=function(e,t){var i=this.start,s=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===i&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,i,s,-1,e)},en.parseExprOp=function(e,t,i,s,r){var n=this.type.binop;if(null!=n&&(!r||this.type!==ur._in)&&n>s){var a=this.type===ur.logicalOR||this.type===ur.logicalAND,o=this.type===ur.coalesce;o&&(n=ur.logicalAND.binop);var l=this.value;this.next();var c=this.start,p=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),c,p,n,r),u=this.buildBinary(t,i,e,h,l,a||o);return(a&&this.type===ur.coalesce||o&&(this.type===ur.logicalOR||this.type===ur.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,t,i,s,r)}return e},en.buildBinary=function(e,t,i,s,r,n){"PrivateIdentifier"===s.type&&this.raise(s.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=i,a.operator=r,a.right=s,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")},en.parseMaybeUnary=function(e,t,i,s){var r,n=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(s),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===ur.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,s),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&tn(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&sn(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,r=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==ur.privateId){if(r=this.parseExprSubscripts(e,s),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(n,a);c.operator=this.value,c.prefix=!1,c.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(c,"UpdateExpression")}}else(s||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==ur._in&&this.unexpected();return i||!this.eat(ur.starstar)?r:t?void this.unexpected(this.lastTokStart):this.buildBinary(n,a,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1)},en.parseExprSubscripts=function(e,t){var i=this.start,s=this.startLoc,r=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var n=this.parseSubscripts(r,i,s,!1,t);return e&&"MemberExpression"===n.type&&(e.parenthesizedAssign>=n.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=n.start&&(e.parenthesizedBind=-1),e.trailingComma>=n.start&&(e.trailingComma=-1)),n},en.parseSubscripts=function(e,t,i,s,r){for(var n=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,i,s,n,a,r);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var l=this.startNodeAt(t,i);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},en.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(ur.arrow)},en.parseSubscriptAsyncArrow=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,s)},en.parseSubscript=function(e,t,i,s,r,n,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(ur.questionDot);s&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(ur.bracketL);if(c||l&&this.type!==ur.parenL&&this.type!==ur.backQuote||this.eat(ur.dot)){var p=this.startNodeAt(t,i);p.object=e,c?(p.property=this.parseExpression(),this.expect(ur.bracketR)):this.type===ur.privateId&&"Super"!==e.type?p.property=this.parsePrivateIdent():p.property=this.parseIdent("never"!==this.options.allowReserved),p.computed=!!c,o&&(p.optional=l),e=this.finishNode(p,"MemberExpression")}else if(!s&&this.eat(ur.parenL)){var h=new Ur,u=this.yieldPos,d=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(ur.parenR,this.options.ecmaVersion>=8,!1,h);if(r&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=d,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,i,f,a);this.checkExpressionErrors(h,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,i);g.callee=e,g.arguments=f,o&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===ur.backQuote){(l||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var x=this.startNodeAt(t,i);x.tag=e,x.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(x,"TaggedTemplateExpression")}return e},en.parseExprAtom=function(e,t,i){this.type===ur.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case ur._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==ur.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==ur.dot&&this.type!==ur.bracketL&&this.type!==ur.parenL&&this.unexpected(),this.finishNode(s,"Super");case ur._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case ur.name:var n=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(ur._function))return this.overrideContext(Yr.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(ur.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===ur.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(ur.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[l],!0,t)}return l;case ur.regexp:var c=this.value;return(s=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},s;case ur.num:case ur.string:return this.parseLiteral(this.value);case ur._null:case ur._true:case ur._false:return(s=this.startNode()).value=this.type===ur._null?null:this.type===ur._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case ur.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),h;case ur.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(ur.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case ur.braceL:return this.overrideContext(Yr.b_expr),this.parseObj(!1,e);case ur._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case ur._class:return this.parseClass(this.startNode(),!1);case ur._new:return this.parseNew();case ur.backQuote:return this.parseTemplate();case ur._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},en.parseExprAtomDefault=function(){this.unexpected()},en.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===ur.parenL&&!e)return this.parseDynamicImport(t);if(this.type===ur.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}this.unexpected()},en.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(ur.parenR)?e.options=null:(this.expect(ur.comma),this.afterTrailingComma(ur.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(ur.parenR)||(this.expect(ur.comma),this.afterTrailingComma(ur.parenR)||this.unexpected())));else if(!this.eat(ur.parenR)){var t=this.start;this.eat(ur.comma)&&this.eat(ur.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},en.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},en.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},en.parseParenExpression=function(){this.expect(ur.parenL);var e=this.parseExpression();return this.expect(ur.parenR),e},en.shouldParseArrow=function(e){return!this.canInsertSemicolon()},en.parseParenAndDistinguishExpression=function(e,t){var i,s=this.start,r=this.startLoc,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,c=[],p=!0,h=!1,u=new Ur,d=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==ur.parenR;){if(p?p=!1:this.expect(ur.comma),n&&this.afterTrailingComma(ur.parenR,!0)){h=!0;break}if(this.type===ur.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===ur.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var f=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(ur.parenR),e&&this.shouldParseArrow(c)&&this.eat(ur.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=m,this.parseParenArrowList(s,r,c,t);c.length&&!h||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,c.length>1?((i=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(i,"SequenceExpression",f,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var x=this.startNodeAt(s,r);return x.expression=i,this.finishNode(x,"ParenthesizedExpression")}return i},en.parseParenItem=function(e){return e},en.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var rn=[];en.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===ur.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(ur.parenL)?e.arguments=this.parseExprList(ur.parenR,this.options.ecmaVersion>=8,!1):e.arguments=rn,this.finishNode(e,"NewExpression")},en.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===ur.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===ur.backQuote,this.finishNode(i,"TemplateElement")},en.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===ur.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(ur.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(ur.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},en.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===ur.name||this.type===ur.num||this.type===ur.string||this.type===ur.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===ur.star)&&!dr.test(this.input.slice(this.lastTokEnd,this.start))},en.parseObj=function(e,t){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(ur.braceR);){if(s)s=!1;else if(this.expect(ur.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(ur.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,r,t),i.properties.push(n)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},en.parseProperty=function(e,t){var i,s,r,n,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(ur.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===ur.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===ur.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(r=this.start,n=this.startLoc),e||(i=this.eat(ur.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(ur.star),this.parsePropertyName(a)):s=!1,this.parsePropertyValue(a,e,i,s,r,n,t,o),this.finishNode(a,"Property")},en.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var i="get"===e.kind?0:1;if(e.value.params.length!==i){var s=e.value.start;"get"===e.kind?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},en.parsePropertyValue=function(e,t,i,s,r,n,a,o){(i||s)&&this.type===ur.colon&&this.unexpected(),this.eat(ur.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===ur.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(i,s),e.kind="init"):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===ur.comma||this.type===ur.braceR||this.type===ur.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key)):this.type===ur.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((i||s)&&this.unexpected(),this.parseGetterSetter(e))},en.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(ur.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(ur.bracketR),e.key;e.computed=!1}return e.key=this.type===ur.num||this.type===ur.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},en.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},en.parseMethod=function(e,t,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|jr(t,s.generator)|(i?128:0)),this.expect(ur.parenL),s.params=this.parseBindingList(ur.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(s,"FunctionExpression")},en.parseArrowExpression=function(e,t,i,s){var r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|jr(i,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},en.parseFunctionBody=function(e,t,i,s){var r=t&&this.type!==ur.braceL,n=this.strict,a=!1;if(r)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);n&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!n&&!a&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},en.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){if("Identifier"!==i[t].type)return!1}return!0},en.checkParams=function(e,t){for(var i=Object.create(null),s=0,r=e.params;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,1,t?null:i)}},en.parseExprList=function(e,t,i,s){for(var r=[],n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(ur.comma),t&&this.afterTrailingComma(e))break;var a=void 0;i&&this.type===ur.comma?a=null:this.type===ur.ellipsis?(a=this.parseSpread(s),s&&this.type===ur.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):a=this.parseMaybeAssign(!1,s),r.push(a)}return r},en.checkUnreserved=function(e){var t=e.start,i=e.end,s=e.name;(this.inGenerator&&"yield"===s&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===s&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&Or||"arguments"!==s||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==s&&"await"!==s||this.raise(t,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(t,"Unexpected keyword '"+s+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,i).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||"await"!==s||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+s+"' is reserved"))},en.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},en.parseIdentNode=function(){var e=this.startNode();return this.type===ur.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,"class"!==e.name&&"function"!==e.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=ur.name):this.unexpected(),e},en.parsePrivateIdent=function(){var e=this.startNode();return this.type===ur.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},en.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===ur.semi||this.canInsertSemicolon()||this.type!==ur.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(ur.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},en.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var nn=Dr.prototype;nn.raise=function(e,t){var i=Tr(this.input,e);t+=" ("+i.line+":"+i.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var s=new SyntaxError(t);throw s.pos=e,s.loc=i,s.raisedAt=this.pos,s},nn.raiseRecoverable=nn.raise,nn.curPosition=function(){if(this.options.locations)return new Ar(this.curLine,this.pos-this.lineStart)};var an=Dr.prototype,on=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};an.enterScope=function(e){this.scopeStack.push(new on(e))},an.exitScope=function(){this.scopeStack.pop()},an.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},an.declareName=function(e,t,i){var s=!1;if(2===t){var r=this.currentScope();s=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&1&r.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var n=this.currentScope();s=this.treatFunctionsAsVar?n.lexical.indexOf(e)>-1:n.lexical.indexOf(e)>-1||n.var.indexOf(e)>-1,n.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){s=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],o.flags&Or)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},an.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},an.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},an.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags)return t}},an.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags&&!(16&t.flags))return t}};var ln=function(e,t,i){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new Ir(e,i)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},cn=Dr.prototype;function pn(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}cn.startNode=function(){return new ln(this,this.start,this.startLoc)},cn.startNodeAt=function(e,t){return new ln(this,e,t)},cn.finishNode=function(e,t){return pn.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},cn.finishNodeAt=function(e,t,i,s){return pn.call(this,e,t,i,s)},cn.copyNode=function(e){var t=new ln(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var hn="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",un=hn+" Extended_Pictographic",dn=un+" EBase EComp EMod EPres ExtPict",mn={9:hn,10:un,11:un,12:dn,13:dn,14:dn},fn={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},gn="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",xn="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",yn=xn+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",vn=yn+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",bn=vn+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",wn=bn+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",kn={9:xn,10:yn,11:vn,12:bn,13:wn,14:wn+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},Cn={};function En(e){var t=Cn[e]={binary:Sr(mn[e]+" "+gn),binaryOfStrings:Sr(fn[e]),nonBinary:{General_Category:Sr(gn),Script:Sr(kn[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Sn=0,_n=[9,10,11,12,13,14];Sn<_n.length;Sn+=1){En(_n[Sn])}var Nn=Dr.prototype,An=function(e,t){this.parent=e,this.base=t||this};An.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var i=e;i;i=i.parent)if(t.base===i.base&&t!==i)return!0;return!1},An.prototype.sibling=function(){return new An(this.parent,this.base)};var In=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Cn[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function Tn(e){return 105===e||109===e||115===e}function Pn(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Ln(e){return e>=65&&e<=90||e>=97&&e<=122}In.prototype.reset=function(e,t,i){var s=-1!==i.indexOf("v"),r=-1!==i.indexOf("u");this.start=0|e,this.source=t+"",this.flags=i,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},In.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},In.prototype.at=function(e,t){void 0===t&&(t=!1);var i=this.source,s=i.length;if(e>=s)return-1;var r=i.charCodeAt(e);if(!t&&!this.switchU||r<=55295||r>=57344||e+1>=s)return r;var n=i.charCodeAt(e+1);return n>=56320&&n<=57343?(r<<10)+n-56613888:r},In.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var i=this.source,s=i.length;if(e>=s)return s;var r,n=i.charCodeAt(e);return!t&&!this.switchU||n<=55295||n>=57344||e+1>=s||(r=i.charCodeAt(e+1))<56320||r>57343?e+1:e+2},In.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},In.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},In.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},In.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},In.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var i=this.pos,s=0,r=e;s<r.length;s+=1){var n=r[s],a=this.at(i,t);if(-1===a||a!==n)return!1;i=this.nextIndex(i,t)}return this.pos=i,!0},Nn.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,s=!1,r=!1,n=0;n<i.length;n++){var a=i.charAt(n);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(a,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(s=!0),"v"===a&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(e.start,"Invalid regular expression flag")},Nn.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},Nn.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var s=i[t];e.groupNames[s]||e.raise("Invalid named capture referenced")}},Nn.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new An(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Nn.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Nn.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Nn.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},Nn.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Nn.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Nn.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return-1!==r&&r<s&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1},Nn.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Nn.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Nn.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var i=this.regexp_eatModifiers(e),s=e.eat(45);if(i||s){for(var r=0;r<i.length;r++){var n=i.charAt(r);i.indexOf(n,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(s){var a=this.regexp_eatModifiers(e);i||a||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var o=0;o<a.length;o++){var l=a.charAt(o);(a.indexOf(l,o+1)>-1||i.indexOf(l)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},Nn.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Nn.regexp_eatModifiers=function(e){for(var t="",i=0;-1!==(i=e.current())&&Tn(i);)t+=_r(i),e.advance();return t},Nn.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Nn.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Nn.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Pn(t)&&(e.lastIntValue=t,e.advance(),!0)},Nn.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;-1!==(i=e.current())&&!Pn(i);)e.advance();return e.pos!==t},Nn.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},Nn.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,i=e.groupNames[e.lastStringValue];if(i)if(t)for(var s=0,r=i;s<r.length;s+=1){r[s].separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(i||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},Nn.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Nn.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=_r(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=_r(e.lastIntValue);return!0}return!1},Nn.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),function(e){return rr(e,!0)||36===e||95===e}(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)},Nn.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),function(e){return nr(e,!0)||36===e||95===e||8204===e||8205===e}(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)},Nn.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Nn.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},Nn.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Nn.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Nn.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Nn.regexp_eatZero=function(e){return 48===e.current()&&!On(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Nn.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Nn.regexp_eatControlLetter=function(e){var t=e.current();return!!Ln(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Nn.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var i,s=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(r&&n>=55296&&n<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=1024*(n-55296)+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=n}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((i=e.lastIntValue)>=0&&i<=1114111))return!0;r&&e.raise("Invalid unicode escape"),e.pos=s}return!1},Nn.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},Nn.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};function Vn(e){return Ln(e)||95===e}function Rn(e){return Vn(e)||On(e)}function On(e){return e>=48&&e<=57}function jn(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Dn(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Mn(e){return e>=48&&e<=55}Nn.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=80===t)||112===t)){var s;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&2===s&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return 0},Nn.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return 0},Nn.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){kr(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},Nn.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},Nn.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Vn(t=e.current());)e.lastStringValue+=_r(t),e.advance();return""!==e.lastStringValue},Nn.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Rn(t=e.current());)e.lastStringValue+=_r(t),e.advance();return""!==e.lastStringValue},Nn.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Nn.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===i&&e.raise("Negated character class may contain strings"),!0}return!1},Nn.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Nn.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;!e.switchU||-1!==t&&-1!==i||e.raise("Invalid character class"),-1!==t&&-1!==i&&t>i&&e.raise("Range out of order in character class")}}},Nn.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(99===i||Mn(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return 93!==s&&(e.lastIntValue=s,e.advance(),!0)},Nn.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Nn.regexp_classSetExpression=function(e){var t,i=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(i=2);for(var s=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(i=1):e.raise("Invalid character in character class");if(s!==e.pos)return i;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return i}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return i;2===t&&(i=2)}},Nn.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return-1!==i&&-1!==s&&i>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},Nn.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Nn.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return i&&2===s&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null},Nn.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null},Nn.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},Nn.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},Nn.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1));var i=e.current();return!(i<0||i===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(i))&&(!function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(i)&&(e.advance(),e.lastIntValue=i,!0))},Nn.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},Nn.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!On(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},Nn.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Nn.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;On(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t},Nn.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;jn(i=e.current());)e.lastIntValue=16*e.lastIntValue+Dn(i),e.advance();return e.pos!==t},Nn.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*i+e.lastIntValue:e.lastIntValue=8*t+i}else e.lastIntValue=t;return!0}return!1},Nn.regexp_eatOctalDigit=function(e){var t=e.current();return Mn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Nn.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s<t;++s){var r=e.current();if(!jn(r))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+Dn(r),e.advance()}return!0};var Fn=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new Ir(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Bn=Dr.prototype;function Un(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}Bn.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Fn(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Bn.getToken=function(){return this.next(),new Fn(this)},"undefined"!=typeof Symbol&&(Bn[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===ur.eof,value:t}}}}),Bn.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(ur.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Bn.readToken=function(e){return rr(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Bn.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var i=this.input.charCodeAt(e+1);return i<=56319||i>=57344?t:(t<<10)+i-56613888},Bn.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},Bn.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,r=t;(s=gr(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},Bn.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!fr(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())},Bn.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&xr.test(String.fromCharCode(e))))break e;++this.pos}}},Bn.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},Bn.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(ur.ellipsis)):(++this.pos,this.finishToken(ur.dot))},Bn.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(ur.assign,2):this.finishOp(ur.slash,1)},Bn.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=42===e?ur.star:ur.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++i,s=ur.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(ur.assign,i+1):this.finishOp(s,i)},Bn.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(ur.assign,3);return this.finishOp(124===e?ur.logicalOR:ur.logicalAND,2)}return 61===t?this.finishOp(ur.assign,2):this.finishOp(124===e?ur.bitwiseOR:ur.bitwiseAND,1)},Bn.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(ur.assign,2):this.finishOp(ur.bitwiseXOR,1)},Bn.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!dr.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(ur.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(ur.assign,2):this.finishOp(ur.plusMin,1)},Bn.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(ur.assign,i+1):this.finishOp(ur.bitShift,i)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(i=2),this.finishOp(ur.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Bn.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(ur.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(ur.arrow)):this.finishOp(61===e?ur.eq:ur.prefix,1)},Bn.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(ur.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(ur.assign,3);return this.finishOp(ur.coalesce,2)}}return this.finishOp(ur.question,1)},Bn.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,rr(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(ur.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+_r(e)+"'")},Bn.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(ur.parenL);case 41:return++this.pos,this.finishToken(ur.parenR);case 59:return++this.pos,this.finishToken(ur.semi);case 44:return++this.pos,this.finishToken(ur.comma);case 91:return++this.pos,this.finishToken(ur.bracketL);case 93:return++this.pos,this.finishToken(ur.bracketR);case 123:return++this.pos,this.finishToken(ur.braceL);case 125:return++this.pos,this.finishToken(ur.braceR);case 58:return++this.pos,this.finishToken(ur.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(ur.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(ur.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+_r(e)+"'")},Bn.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},Bn.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(dr.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if("["===s)t=!0;else if("]"===s&&t)t=!1;else if("/"===s&&!t)break;e="\\"===s}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new In(this));o.reset(i,r,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(r,a)}catch(e){}return this.finishToken(ur.regexp,{pattern:r,flags:a,value:l})},Bn.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&void 0===t,r=i&&48===this.input.charCodeAt(this.pos),n=this.pos,a=0,o=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var p=this.input.charCodeAt(this.pos),h=void 0;if(s&&95===p)r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=p;else{if((h=p>=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=e)break;o=p,a=a*e+h}}return s&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||null!=t&&this.pos-n!==t?null:a},Bn.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return null==i&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=Un(this.input.slice(t,this.pos)),++this.pos):rr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(ur.num,i)},Bn.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var i=this.pos-t>=2&&48===this.input.charCodeAt(t);i&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&110===s){var r=Un(this.input.slice(t,this.pos));return++this.pos,rr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(ur.num,r)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),46!==s||i||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||i||(43!==(s=this.input.charCodeAt(++this.pos))&&45!==s||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),rr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n,a=(n=this.input.slice(t,this.pos),i?parseInt(n,8):parseFloat(n.replace(/_/g,"")));return this.finishToken(ur.num,a)},Bn.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},Bn.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;92===s?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):8232===s||8233===s?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(fr(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(ur.string,t)};var zn={};Bn.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==zn)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Bn.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw zn;this.raise(e,t)},Bn.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==ur.template&&this.type!==ur.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(ur.template,e)):36===i?(this.pos+=2,this.finishToken(ur.dollarBraceL)):(++this.pos,this.finishToken(ur.backQuote));if(92===i)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(fr(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Bn.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(ur.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},Bn.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return _r(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),"0"===s&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return fr(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},Bn.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return null===i&&this.invalidStringToken(t,"Bad character escape sequence"),i},Bn.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(nr(r,s))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,e+=this.input.slice(i,this.pos);var n=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?rr:nr)(a,s)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=_r(a),i=this.pos}t=!1}return e+this.input.slice(i,this.pos)},Bn.readWord=function(){var e=this.readWord1(),t=ur.name;return this.keywords.test(e)&&(t=pr[e]),this.finishToken(t,e)};Dr.acorn={Parser:Dr,version:"8.16.0",defaultOptions:Pr,Position:Ar,SourceLocation:Ir,getLineInfo:Tr,Node:ln,TokenType:ar,tokTypes:ur,keywordTypes:pr,TokContext:Qr,tokContexts:Yr,isIdentifierChar:nr,isIdentifierStart:rr,Token:Fn,isNewLine:fr,lineBreak:dr,lineBreakG:mr,nonASCIIwhitespace:xr};const Jn={}.hasOwnProperty,qn=Symbol("continue"),Xn=Symbol("exit"),Gn=Symbol("skip");function Wn(e){return Array.isArray(e)?e:"number"==typeof e?[qn,e]:[e]}function Hn(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.length>0)}function $n(e,t){const i=t.prefix||"",s=t.suffix||"",r=Object.assign({},t.acornOptions),n=[],a=[],o=r.onComment,l=r.onToken;let c,p,h=!1;const u=Object.assign({},r,{onComment:n,preserveParens:!0});l&&(u.onToken=a);const d=function(e,t){const i={value:"",stops:[]};let s=-1;for(;++s<e.length;){const r=e[s];if("enter"===r[0]){const e=r[1].type;if("lineEnding"===e||t.includes(e)){const e=r[2].sliceStream(r[1]);for(;e.length>0&&-1===e[0];)e.shift();const t=Qn(e);i.stops.push([i.value.length,r[1].start]),i.value+=t,i.stops.push([i.value.length,r[1].end])}}}return i}(e,t.tokenTypes),m=d.value,f=i+m+s,g=t.expression&&Kn(m);if(g&&!t.allowEmpty)throw new tt("Unexpected empty expression",{place:y(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{c=t.expression&&!g?t.acorn.parseExpressionAt(f,0,u):t.acorn.parse(f,u)}catch(e){const t=e,s=y(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=s.offset,t.loc={line:s.line,column:s.column-1},p=t,h=t.raisedAt>=i.length+m.length||"Unterminated comment"===t.message}if(c&&t.expression&&!g)if(Kn(f.slice(c.end,f.length-s.length)))c={type:"Program",start:0,end:i.length+m.length,body:[{type:"ExpressionStatement",expression:c,start:0,end:i.length+m.length}],sourceType:"module",comments:[]};else{const e=y(c.end),t=new Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},p=t,c=void 0}if(c){if(c.comments=n,function(e,t){let i,s;"function"==typeof t?i=t:t&&"object"==typeof t&&(t.enter&&(i=t.enter),t.leave&&(s=t.leave)),function e(t,r,n,a){return Hn(t)&&(o.displayName="node ("+t.type+")"),o;function o(){const o=i?Wn(i(t,r,n,a)):[];if(o[0]===Xn)return o;if(o[0]!==Gn){let i;for(i in t)if(Jn.call(t,i)&&t[i]&&"object"==typeof t[i]&&"data"!==i&&"position"!==i){const s=a.concat(t),r=t[i];if(Array.isArray(r)){const t=r;let n=0;for(;n>-1&&n<t.length;){const r=t[n];if(Hn(r)){const t=e(r,i,n,s)();if(t[0]===Xn)return t;n="number"==typeof t[1]?t[1]:n+1}else n++}}else if(Hn(r)){const t=e(r,i,void 0,s)();if(t[0]===Xn)return t}}}return s?Wn(s(t,r,n,a)):o}}(e,void 0,void 0,[])()}(c,function(e,t,i,s){let r=s[s.length-1],n=t;"ParenthesizedExpression"===e.type&&r&&n&&("number"==typeof i&&(r=r[n],n=i),r[n]=e.expression),x(e)}),Array.isArray(o))o.push(...n);else if("function"==typeof o)for(const e of n)o("Block"===e.type,e.value,e.start,e.end,e.loc.start,e.loc.end);for(const e of a)e.end<=i.length||e.start-i.length>=m.length||(x(e),Array.isArray(l)?l.push(e):l(e))}return{estree:c,error:p,swallow:h};function x(e){const t=y(e.start),i=y(e.end);e.start=t.offset,e.end=i.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:i.line,column:i.column-1,offset:i.offset}},e.range=[e.start,e.end]}function y(e){let s=e-i.length;s<0?s=0:s>m.length&&(s=m.length);let r=function(e,t){let i=0;for(;i<e.length&&e[i][0]<=t;)i+=1;if(0===i)return;const[s,r]=e[i-1],n=t-s;return{line:r.line,column:r.column+n,offset:r.offset+n}}(d.stops,s);return r||(r={line:t.start.line,column:t.start.column,offset:t.start.offset}),r}}function Kn(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function Qn(e){let t=-1;const i=[];let s;for(;++t<e.length;){const r=e[t];let n;if("string"==typeof r)n=r;else switch(r){case-5:n="\r";break;case-4:n="\n";break;case-3:n="\r\n";break;case-2:n="\t";break;case-1:if(s)continue;n=" ";break;default:n=String.fromCharCode(r)}s=-2===r,i.push(n)}return i.join("")}function Yn(e){const t=e||{},i=t.loc||{},s=t.range||[void 0,void 0],r=Zn(i.start,s[0]||t.start),n=Zn(i.end,s[1]||t.end);if(r&&n)return{start:r,end:n}}function Zn(e,t){if(e&&"object"==typeof e){const i="line"in e?ea(e.line):void 0,s="column"in e?ea(e.column):void 0;if(i&&void 0!==s)return{line:i,column:s+1,offset:ea(t)}}}function ea(e){return"number"==typeof e&&e>-1?e:void 0}const ta="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",ia="#unexpected-type-in-code-expected-an-object-spread-spread";function sa(e,t,i,s,r,n,a,o,l,c,p){const h=this,u=this.events.length+3;let d,m,f=0;return function(t){return e.enter(i),e.enter(s),e.consume(t),e.exit(s),d=h.now(),g};function g(p){if(null===p){if(m)throw m;const e=new tt("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:h.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw e.url=ta+"#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",e}if(rt(p))return e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),y;if(125===p&&0===f){const f=n?ra.call(h,n,a,r,u,d,c||!1,l||!1):{type:"ok",estree:void 0};if("ok"===f.type){e.enter(s),e.consume(p),e.exit(s);const r=e.exit(i);return o&&f.estree&&Object.assign(r,{estree:f.estree}),t}return m=f.message,e.enter(r),e.consume(p),x}return e.enter(r),x(p)}function x(t){return 125===t&&0===f||null===t||rt(t)?(e.exit(r),g(t)):(123!==t||n?125===t&&(f-=1):f+=1,e.consume(t),x)}function y(t){const i=h.now();if(i.line!==d.line&&!p&&h.parser.lazy[i.line]){const e=new tt("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:h.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw e.url=ta+"#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",e}return nt(t)?at(e,g,"linePrefix",3)(t):g(t)}}function ra(e,t,i,s,r,n,a){const o=$n(this.events.slice(s),{acorn:e,tokenTypes:[i],acornOptions:t,start:r,expression:!0,allowEmpty:n,prefix:a?"({":"",suffix:a?"})":""}),l=o.estree;if(a&&l){const e=l.body[0];if("ExpressionStatement"!==e.type||"ObjectExpression"!==e.expression.type){const t=Yn(e),i=new tt("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw i.url=ta+ia,i}if(e.expression.properties[1]){const t=Yn(e.expression.properties[1]),i=new tt("Unexpected extra content in spread: only a single spread is supported",{place:t.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw i.url=ta+"#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",i}if(e.expression.properties[0]&&"SpreadElement"!==e.expression.properties[0].type){const t=Yn(e.expression.properties[0]),i=new tt("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw i.url=ta+ia,i}}if(o.error){const e=new tt("Could not parse expression with acorn",{cause:o.error,place:{line:o.error.loc.line,column:o.error.loc.column+1,offset:o.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return e.url=ta+"#could-not-parse-expression-with-acorn",{type:"nok",message:e}}return{type:"ok",estree:l}}function na(e){const t=e||{},i=t.addResult,s=t.acorn,r=t.spread;let n,a=t.allowEmpty;if(null==a&&(a=!0),s){if(!s.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");n=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions)}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:function(e,t,o){const l=this;return function(t){return function(t){return sa.call(l,e,c,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",s,n,i,r,a)(t)}(t)};function c(t){return nt(t)?at(e,p,"whitespace")(t):p(t)}function p(i){const s=l.parser.constructs.flow[60],r=(Array.isArray(s)?s:s?[s]:[]).find(function(e){return"mdxJsxFlowTag"===e.name});return 60===i&&r?e.attempt(r,p,o)(i):null===i||rt(i)?t(i):o(i)}},concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:function(e,t){const o=this;return function(l){return sa.call(o,e,t,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",s,n,i,r,a,!0)(l)}}}}}}const aa="https://github.com/micromark/micromark-extension-mdx-jsx";function oa(e,t,i,s,r,n,a,o,l,c,p,h,u,d,m,f,g,x,y,v,b,w,k,C,E,S,_,N,A,I,T,P){const L=this;let V,R;return function(t){return e.enter(o),e.enter(l),e.consume(t),e.exit(l),O};function O(e){return ot(e)?i(e):(V=j,ne(e))}function j(t){return 47===t?(e.enter(c),e.consume(t),e.exit(c),V=D,ne):62===t?re(t):null!==t&&t>=0&&Nt(t)?(e.enter(h),e.enter(u),e.consume(t),M):void le(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(33===t?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function D(t){return 62===t?re(t):null!==t&&t>=0&&Nt(t)?(e.enter(h),e.enter(u),e.consume(t),M):void le(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(42===t||47===t?" (note: JS comments in JSX tags are not supported in MDX)":""))}function M(t){return null!==t&&t>=0&&At(t,{jsx:!0})?(e.consume(t),M):46===t||47===t||58===t||62===t||123===t||ot(t)||lt(t)?(e.exit(u),V=F,ne(t)):void le(t,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function F(t){return 46===t?(e.enter(d),e.consume(t),e.exit(d),V=B,ne):58===t?(e.enter(f),e.consume(t),e.exit(f),V=J,ne):47===t||62===t||123===t||null!==t&&t>=0&&Nt(t)?(e.exit(h),G(t)):void le(t,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function B(t){if(null!==t&&t>=0&&Nt(t))return e.enter(m),e.consume(t),U;le(t,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function U(t){return null!==t&&t>=0&&At(t,{jsx:!0})?(e.consume(t),U):46===t||47===t||62===t||123===t||ot(t)||lt(t)?(e.exit(m),V=z,ne(t)):void le(t,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function z(t){return 46===t?(e.enter(d),e.consume(t),e.exit(d),V=B,ne):47===t||62===t||123===t||null!==t&&t>=0&&Nt(t)?(e.exit(h),G(t)):void le(t,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function J(t){if(null!==t&&t>=0&&Nt(t))return e.enter(g),e.consume(t),q;le(t,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(43===t||null!==t&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function q(t){return null!==t&&t>=0&&At(t,{jsx:!0})?(e.consume(t),q):47===t||62===t||123===t||ot(t)||lt(t)?(e.exit(g),V=X,ne(t)):void le(t,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function X(t){if(47===t||62===t||123===t||null!==t&&t>=0&&Nt(t))return e.exit(h),G(t);le(t,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function G(t){return 47===t?(e.enter(p),e.consume(t),e.exit(p),V=se,ne):62===t?re(t):123===t?sa.call(L,e,W,x,y,v,s,r,n,!0,!1,a)(t):null!==t&&t>=0&&Nt(t)?(e.enter(b),e.enter(w),e.enter(k),e.consume(t),H):void le(t,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function W(e){return V=G,ne(e)}function H(t){return null!==t&&t>=0&&At(t,{jsx:!0})?(e.consume(t),H):47===t||58===t||61===t||62===t||123===t||ot(t)||lt(t)?(e.exit(k),V=$,ne(t)):void le(t,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function $(t){return 58===t?(e.enter(C),e.consume(t),e.exit(C),V=K,ne):61===t?(e.exit(w),e.enter(S),e.consume(t),e.exit(S),V=Z,ne):47===t||62===t||123===t||ot(t)||lt(t)||null!==t&&t>=0&&Nt(t)?(e.exit(w),e.exit(b),V=G,ne(t)):void le(t,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function K(t){if(null!==t&&t>=0&&Nt(t))return e.enter(E),e.consume(t),Q;le(t,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Q(t){return null!==t&&t>=0&&At(t,{jsx:!0})?(e.consume(t),Q):47===t||61===t||62===t||123===t||ot(t)||lt(t)?(e.exit(E),e.exit(w),V=Y,ne(t)):void le(t,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Y(t){return 61===t?(e.enter(S),e.consume(t),e.exit(S),V=Z,ne):47===t||62===t||123===t||null!==t&&t>=0&&Nt(t)?(e.exit(b),G(t)):void le(t,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Z(t){return 34===t||39===t?(e.enter(_),e.enter(N),e.consume(t),e.exit(N),R=t,te):123===t?sa.call(L,e,ee,I,T,P,s,r,n,!1,!1,a)(t):void le(t,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(60===t?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function ee(t){return e.exit(b),V=G,ne(t)}function te(t){return null===t&&le(t,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(R)+"`"),t===R?(e.enter(N),e.consume(t),e.exit(N),e.exit(_),e.exit(b),R=void 0,V=G,ne):rt(t)?(V=te,ne(t)):(e.enter(A),ie(t))}function ie(t){return null===t||t===R||rt(t)?(e.exit(A),te(t)):(e.consume(t),ie)}function se(e){if(62===e)return re(e);le(e,"after self-closing slash","`>` to end the tag"+(42===e||47===e?" (note: JS comments in JSX tags are not supported in MDX)":""))}function re(i){return e.enter(l),e.consume(i),e.exit(l),e.exit(o),t}function ne(t){return rt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),oe):nt(t)||lt(t)?(e.enter("esWhitespace"),ae(t)):V(t)}function ae(t){return rt(t)?(e.exit("esWhitespace"),ne(t)):nt(t)||lt(t)?(e.consume(t),ae):(e.exit("esWhitespace"),V(t))}function oe(e){if(!a&&L.parser.lazy[L.now().line]){const e=new tt("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",L.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw e.url=aa+"#unexpected-lazy-line-in-container-expected-line-to-be",e}return ne(e)}function le(e,t,i){const s=new tt("Unexpected "+(null===e?"end of file":"character `"+(96===e?"` ` `":String.fromCodePoint(e))+"` ("+function(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}(e)+")")+" "+t+", expected "+i,L.now(),"micromark-extension-mdx-jsx:unexpected-"+(null===e?"eof":"character"));throw s.url=aa+(null===e?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),s}}function la(e,t){return{name:"mdxJsxTextTag",tokenize:function(i,s,r){return oa.call(this,i,s,r,e,t.acornOptions,t.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}}function ca(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:function(i,s,r){const n=this;return a;function a(s){return function(s){return oa.call(n,i,o,r,e,t.acornOptions,t.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(s)}(s)}function o(e){return nt(e)?at(i,l,"whitespace")(e):l(e)}function l(e){const t=n.parser.constructs.flow[123],o=Array.isArray(t)?t:t?[t]:[];let c;for(const e of o)if("mdxFlowExpression"===e.name){c=e;break}return 60===e?a(e):123===e&&c?i.attempt(c,l,r)(e):null===e||rt(e)?s(e):r(e)}}}}function pa(e){const t=e||{},i=t.acorn;let s;if(i){if(!i.parse||!i.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");s=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:ca(i||void 0,{acornOptions:s,addResult:t.addResult||void 0})},text:{60:la(i||void 0,{acornOptions:s,addResult:t.addResult||void 0})}}}const ha={tokenize:function(e,t,i){return function(s){return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),e.attempt(pt,t,i)}},partial:!0},ua="https://github.com/micromark/micromark-extension-mdxjs-esm",da=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function ma(e){const t={tokenize:function(t,r,n){const a=this,o=a.parser.definedModuleSpecifiers||(a.parser.definedModuleSpecifiers=[]),l=this.events.length+1;let c="";return a.interrupt?n:function(e){return a.now().column>1?n(e):(t.enter("mdxjsEsm"),t.enter("mdxjsEsmData"),t.consume(e),c+=String.fromCharCode(e),p)};function p(e){return ct(e)?(t.consume(e),c+=String.fromCharCode(e),p):"import"!==c&&"export"!==c||32!==e?n(e):(t.consume(e),h)}function h(e){return null===e||rt(e)?(t.exit("mdxjsEsmData"),u(e)):(t.consume(e),h)}function u(e){return null===e?m(e):rt(e)?t.check(ha,m,d)(e):(t.enter("mdxjsEsmData"),h(e))}function d(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),u}function m(n){const c=$n(a.events.slice(l),{acorn:i,acornOptions:s,tokenTypes:["mdxjsEsmData"],prefix:o.length>0?"var "+o.join(",")+"\n":""});if(c.error){if(null!==n&&c.swallow)return d(n);const e=new tt("Could not parse import/exports with acorn",{cause:c.error,place:{line:c.error.loc.line,column:c.error.loc.column+1,offset:c.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw e.url=ua+"#could-not-parse-importexports-with-acorn",e}o.length>0&&c.estree.body.shift();let p=-1;for(;++p<c.estree.body.length;){const e=c.estree.body[p];if(!da.has(e.type)){const t=new tt("Unexpected `"+e.type+"` in code: only import/exports are supported",{place:Yn(e),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw t.url=ua+"#unexpected-type-in-code-only-importexports-are-supported",t}if("ImportDeclaration"===e.type&&!a.interrupt){let t=-1;for(;++t<e.specifiers.length;){const i=e.specifiers[t];o.push(i.local.name)}}}return Object.assign(t.exit("mdxjsEsm"),e.addResult?{estree:c.estree}:void 0),r(n)}},concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const i=e.acorn,s=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}}}const fa={};function ga(e){const t=e||fa,i=this.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),r=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),n=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(function(e){const t=Object.assign({acorn:Dr.extend(xi()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return ht([ma(t),na(t),pa(t),{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}])}(t)),r.push([{enter:{mdxFlowExpression:ys,mdxTextExpression:vs},exit:{mdxFlowExpression:bs,mdxFlowExpressionChunk:ws,mdxTextExpression:bs,mdxTextExpressionChunk:ws}},Fs(),{enter:{mdxjsEsm:qs},exit:{mdxjsEsm:Xs,mdxjsEsmData:Gs}}]),n.push(function(e){return{extensions:[{handlers:{mdxFlowExpression:ks,mdxTextExpression:ks},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]},Bs(e),{handlers:{mdxjsEsm:Ws}}]}}(t))}function xa(e,t){const i=["start","end","loc","range"];let s=-1;for(;++s<i.length;){const r=i[s];r in e&&(t[r]=e[r])}}function ya(e,t){let i=-1;const s=[],r=[];let n;for(;++i<e.length;){const t=e[i];"ImportNamespaceSpecifier"===t.type?n=t:r.push(t)}if(n){const e={type:"VariableDeclarator",id:n.local,init:t};xa(n,e),s.push(e)}return s.push({type:"VariableDeclarator",id:{type:"ObjectPattern",properties:r.map(function(e){let t="ImportSpecifier"===e.type?e.imported:"ExportSpecifier"===e.type?e.exported:{type:"Identifier",name:"default"},i=e.local;"ExportSpecifier"===e.type&&(i=t,t=e.local),Ye("Identifier"===i.type);const s={type:"Property",kind:"init",shorthand:"Identifier"===t.type&&"Identifier"===i.type&&t.name===i.name,method:!1,computed:!1,key:t,value:i};return xa(e,s),s})},init:n?{type:"Identifier",name:n.local.name}:t}),s}function va(e){let t,i=-1;for(;++i<e.length;){const s=e[i],r="string"==typeof s&&xt(s)?{type:"Identifier",name:s}:{type:"Literal",value:s};t=t?{type:"MemberExpression",object:t,property:r,computed:"Literal"===r.type,optional:!1}:r}return Ye("Literal"!==t.type),t}function ba(e){let t,i=-1;for(;++i<e.length;){const s=e[i];Ye("string"==typeof s&&xt(s,{jsx:!0}));const r={type:"JSXIdentifier",name:s};t=t?{type:"JSXMemberExpression",object:t,property:r}:r}return t}function wa(e){const{outputFormat:t}=e||{};return function(e){if(e.comments&&(e.comments=e.comments.filter(function(e){return!e.data?._mdxIsPragmaComment})),"function-body"===t){let t=0;for(;t<e.body.length;){const i=e.body[t];if(!("directive"in i)||!i.directive)break;t++}const i=e.body[t];i&&"ImportDeclaration"===i.type&&"string"==typeof i.source.value&&/\/jsx-(dev-)?runtime$/.test(i.source.value)&&(e.body[t]={type:"VariableDeclaration",kind:"const",declarations:ya(i.specifiers,va(["arguments",0]))})}}}function ka(){const e=[{block:!1,defined:[]}];return{enter:function(s){if("ArrowFunctionExpression"===s.type){e.push({block:!1,defined:[]});for(const e of s.params)i(e,!1)}else if("BlockStatement"===s.type||"DoWhileStatement"===s.type||"ForInStatement"===s.type||"ForOfStatement"===s.type||"ForStatement"===s.type||"WhileStatement"===s.type)e.push({block:!0,defined:[]});else if("CatchClause"===s.type)e.push({block:!0,defined:[]}),s.param&&i(s.param,!0);else if("ClassDeclaration"===s.type)t(s.id.name,!1);else if("FunctionDeclaration"===s.type){t(s.id.name,!1),e.push({block:!1,defined:[]});for(const e of s.params)i(e,!1)}else if("FunctionExpression"===s.type){s.id&&t(s.id.name,!1),e.push({block:!1,defined:[]});for(const e of s.params)i(e,!1)}else if("ImportDeclaration"===s.type)for(const e of s.specifiers)t(e.local.name,!1);else if("VariableDeclaration"===s.type)for(const e of s.declarations)i(e.id,"var"!==s.kind)},exit:function(t){if("ArrowFunctionExpression"===t.type||"FunctionDeclaration"===t.type||"FunctionExpression"===t.type){const t=e.pop();Ye(!t.block)}else if("BlockStatement"===t.type||"CatchClause"===t.type||"DoWhileStatement"===t.type||"ForInStatement"===t.type||"ForOfStatement"===t.type||"ForStatement"===t.type||"WhileStatement"===t.type){const t=e.pop();Ye(t.block)}},scopes:e};function t(t,i){let s,r=e.length;for(;r--&&(s=e[r],!i&&s.block););s.defined.push(t)}function i(e,s){if("ArrayPattern"===e.type)for(const t of e.elements)t&&i(t,s);else if("AssignmentPattern"===e.type)i(e.left,s);else if("Identifier"===e.type)t(e.name,s);else if("ObjectPattern"===e.type)for(const t of e.properties)"Property"===t.type?i(t.value,s):(Ye("RestElement"===t.type),i(t,s));else Ye("RestElement"===e.type),i(e.argument,s)}}function Ca(e){return"FunctionDeclaration"===e.type?{...e,type:"FunctionExpression"}:(Ye("ClassDeclaration"===e.type),{...e,type:"ClassExpression"})}function Ea(e){return Boolean("FunctionDeclaration"===e.type||"ClassDeclaration"===e.type||"VariableDeclaration"===e.type)}function Sa(e){const t=e.baseUrl||void 0,i="object"==typeof t?t.href:t,s=e.outputFormat||"program",r=void 0===e.pragma?"React.createElement":e.pragma,n=void 0===e.pragmaFrag?"React.Fragment":e.pragmaFrag,a=e.pragmaImportSource||"react",o=e.jsxImportSource||"react",l=e.jsxRuntime||"automatic";return function(e,t){const p=[],h=[];let u,d,m,f=0;if("classic"===l&&n&&_a(e,"@jsxFrag",n),"classic"===l&&r&&_a(e,"@jsx",r),"automatic"===l&&o&&_a(e,"@jsxImportSource",o),_a(e,"@jsxRuntime",l),"classic"===l&&a){if(!r)throw new Error("Missing `pragma` in classic runtime with `pragmaImportSource`");b({type:"ImportDeclaration",specifiers:[{type:"ImportDefaultSpecifier",local:{type:"Identifier",name:r.split(".")[0]}}],attributes:[],source:{type:"Literal",value:a}})}for(m of e.body)if("ExportDefaultDeclaration"===m.type)u&&t.fail("Unexpected duplicate layout, expected a single layout (previous: "+it(Yn(u))+")",{ancestors:[e,m],place:Yn(m),ruleId:"duplicate-layout",source:"recma-document"}),u=m,h.push({type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"MDXLayout"},init:Ea(m.declaration)?Ca(m.declaration):m.declaration}]});else if("ExportNamedDeclaration"===m.type&&m.source){const i=m.source;m.specifiers=m.specifiers.filter(function(s){if("Identifier"===s.exported.type&&"default"===s.exported.name){u&&t.fail("Unexpected duplicate layout, expected a single layout (previous: "+it(Yn(u))+")",{ancestors:[e,m,s],place:Yn(m),ruleId:"duplicate-layout",source:"recma-document"}),u=s;const r=[];if("Identifier"===s.local.type&&"default"===s.local.name)r.push({type:"ImportDefaultSpecifier",local:{type:"Identifier",name:"MDXLayout"}});else{const e={type:"ImportSpecifier",imported:s.local,local:{type:"Identifier",name:"MDXLayout"}};xa(s.local,e),r.push(e)}const n={type:"Literal",value:i.value};xa(i,n);const a={type:"ImportDeclaration",specifiers:r,attributes:[],source:n};return xa(s,a),b(a),!1}return!0}),m.specifiers.length>0&&v(m)}else"ExportNamedDeclaration"===m.type||"ExportAllDeclaration"===m.type?v(m):"ImportDeclaration"===m.type?b(m):"ExpressionStatement"!==m.type||"JSXElement"!==m.expression.type&&"JSXFragment"!==m.expression.type?h.push(m):(d=!0,h.push(...c(m.expression,s,Boolean(u))));d||h.push(...c(void 0,s,Boolean(u))),p.push(["MDXContent","default"]),"function-body"===s&&h.push({type:"ReturnStatement",argument:{type:"ObjectExpression",properties:[...Array.from({length:f}).map(function(e,t){return{type:"SpreadElement",argument:{type:"Identifier",name:"_exportAll"+(t+1)}}}),...p.map(function(e){return{type:"Property",kind:"init",method:!1,computed:!1,shorthand:"string"==typeof e,key:{type:"Identifier",name:"string"==typeof e?e:e[1]},value:{type:"Identifier",name:"string"==typeof e?e:e[0]}}})]}}),e.body=h;let g=!1,x=!1;var y;function v(e){if("ExportNamedDeclaration"===e.type){if(e.declaration){const t=ka();ii(e,{enter(e){t.enter(e),"ArrowFunctionExpression"!==e.type&&"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type||(this.skip(),t.exit(e))},leave:t.exit}),p.push(...t.scopes[0].defined)}for(m of e.specifiers)"Identifier"===m.exported.type?p.push(m.exported.name):(Ye("string"==typeof m.exported.value),p.push(m.exported.value))}b(e)}function b(e){let t,i;if("function-body"===s)if("ImportDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type&&e.source){Ye(e.source);const s={type:"ImportExpression",source:e.source};xa(e,s),i={type:"AwaitExpression",argument:s},t="ImportDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type||0!==e.specifiers.length?{type:"VariableDeclaration",kind:"const",declarations:"ExportAllDeclaration"===e.type?[{type:"VariableDeclarator",id:{type:"Identifier",name:"_exportAll"+ ++f},init:i}]:ya(e.specifiers,i)}:{type:"ExpressionStatement",expression:i}}else if(e.declaration)t=e.declaration;else{const i=[];for(const t of e.specifiers)"Identifier"===t.exported.type&&"Identifier"===t.local.type&&t.local.name!==t.exported.name&&i.push({type:"VariableDeclarator",id:t.exported,init:t.local});i.length>0&&(t={type:"VariableDeclaration",kind:"const",declarations:i})}else t=e;t&&h.push(t)}(i||"function-body"===s)&&ii(e,{enter(e){if(("ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ImportDeclaration"===e.type)&&e.source){let t=e.source.value;try{new URL(t)}catch{(t.startsWith("/")||t.startsWith("./")||t.startsWith("../"))&&(t=new URL(t,i).href)}const s={type:"Literal",value:t};return xa(e.source,s),void(e.source=s)}if("ImportExpression"===e.type){x=!0;const t={type:"CallExpression",callee:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},arguments:[e.source],optional:!1};return void(e.source=t)}if("MemberExpression"===e.type&&"object"in e&&"MetaProperty"===e.object.type&&"Identifier"===e.property.type&&"import"===e.object.meta.name&&"meta"===e.object.property.name&&"url"===e.property.name){g=!0;const t={type:"Identifier",name:"_importMetaUrl"};xa(e,t),this.replace(t)}}}),x&&(i||(g=!0),e.body.push((y=i?{type:"Literal",value:i}:{type:"Identifier",name:"_importMetaUrl"},{type:"FunctionDeclaration",id:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},generator:!1,async:!1,params:[{type:"Identifier",name:"d"}],body:{type:"BlockStatement",body:[{type:"IfStatement",test:{type:"BinaryExpression",left:{type:"UnaryExpression",operator:"typeof",prefix:!0,argument:{type:"Identifier",name:"d"}},operator:"!==",right:{type:"Literal",value:"string"}},consequent:{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}},alternate:null},{type:"TryStatement",block:{type:"BlockStatement",body:[{type:"ExpressionStatement",expression:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"}]}},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]},handler:{type:"CatchClause",param:null,body:{type:"BlockStatement",body:[]}},finalizer:null},{type:"IfStatement",test:{type:"LogicalExpression",left:{type:"LogicalExpression",left:{type:"CallExpression",callee:va(["d","startsWith"]),arguments:[{type:"Literal",value:"/"}],optional:!1},operator:"||",right:{type:"CallExpression",callee:va(["d","startsWith"]),arguments:[{type:"Literal",value:"./"}],optional:!1}},operator:"||",right:{type:"CallExpression",callee:va(["d","startsWith"]),arguments:[{type:"Literal",value:"../"}],optional:!1}},consequent:{type:"ReturnStatement",argument:{type:"MemberExpression",object:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"},y]},property:{type:"Identifier",name:"href"},computed:!1,optional:!1}},alternate:null},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]}}))),g&&e.body.unshift({type:"VariableDeclaration",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"_importMetaUrl"},init:va(["arguments",0,"baseUrl"])}],kind:"const"},{type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:{type:"Identifier",name:"_importMetaUrl"}},consequent:{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[{type:"Literal",value:"Unexpected missing `options.baseUrl` needed to support `export … from`, `import`, or `import.meta.url` when generating `function-body`"}]}},alternate:null})};function c(e,t,i){let s={type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"MDXLayout"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!1},closingElement:{type:"JSXClosingElement",name:{type:"JSXIdentifier",name:"MDXLayout"}},children:[{type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"_createMdxContent"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!0},closingElement:null,children:[]}]};i||(s={type:"ConditionalExpression",test:{type:"Identifier",name:"MDXLayout"},consequent:s,alternate:{type:"CallExpression",callee:{type:"Identifier",name:"_createMdxContent"},arguments:[{type:"Identifier",name:"props"}],optional:!1}});let r=e||{type:"Identifier",name:"undefined"};"JSXFragment"===r.type&&1===r.children.length&&"JSXElement"===r.children[0].type&&(r=r.children[0]);let n=!1;ii(r,{enter(e){if("ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type)return this.skip();("AwaitExpression"===e.type||"ForOfStatement"===e.type&&e.await)&&(n=!0)}});const a={type:"FunctionDeclaration",id:{type:"Identifier",name:"MDXContent"},params:[{type:"AssignmentPattern",left:{type:"Identifier",name:"props"},right:{type:"ObjectExpression",properties:[]}}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:s}]}};return[{type:"FunctionDeclaration",async:n,id:{type:"Identifier",name:"_createMdxContent"},params:[{type:"Identifier",name:"props"}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:r}]}},"program"===t?{type:"ExportDefaultDeclaration",declaration:a}:a]}}function _a(e,t,i){e.comments?.unshift({type:"Block",value:t+" "+i,data:{_mdxIsPragmaComment:!0}})}function Na(e){let t,i=-1;for(;++i<e.length;){const s=e[i];t=t?{type:"BinaryExpression",left:t,operator:"+",right:s}:s}return t}function Aa(e){const{development:t,outputFormat:i,providerImportSource:s}=e;return function(e,r){const n=ka(),a=[];let o=!1,l=!1;if(ii(e,{enter(e){n.enter(e),"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&"ArrowFunctionExpression"!==e.type||(a.push({components:[],idToInvalidComponentName:new Map,node:e,objects:[],references:{},tags:[]}),Ia(e,"MDXContent")&&!Ta(n.scopes,"MDXLayout")&&a[0].components.push("MDXLayout"));const t=a[0];if(t&&(Ia(t.node,"_createMdxContent")||s)&&"JSXElement"===e.type){let i=e.openingElement.name;if("JSXMemberExpression"===i.type){const s=[];for(;"JSXMemberExpression"===i.type;)s.unshift(i.property.name),i=i.object;s.unshift(i.name);const r=s.join("."),o=i.name,l=Ta(n.scopes,o);Object.hasOwn(t.references,r)||l&&(1!==a.length||"FunctionDeclaration"!==a[0].node.type||!Ia(a[0].node,"_createMdxContent"))||(t.references[r]={component:!0,node:e}),t.objects.includes(o)||l||t.objects.push(o)}else if("JSXNamespacedName"===i.type);else if(xt(i.name)&&!/^[a-z]/.test(i.name)){const s=i.name;Ta(n.scopes,s)||("MDXLayout"===s||Object.hasOwn(t.references,s)||(t.references[s]={component:!0,node:e}),t.components.includes(s)||t.components.push(s))}else if(e.data&&e.data._mdxExplicitJsx);else{const s=i.name;t.tags.includes(s)||t.tags.push(s);let r=["_components",s];if(!1===xt(s)){let e=t.idToInvalidComponentName.get(s);void 0===e&&(e=`_component${t.idToInvalidComponentName.size}`,t.idToInvalidComponentName.set(s,e)),r=[e]}e.openingElement.name=ba(r),e.closingElement&&(e.closingElement.name=ba(r))}}},leave(e){n.exit(e);const i=[],r=[],c=[],p=[];if("FunctionDeclaration"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type){const n=a[a.length-1];let h;for(h of n.tags.sort())i.push({type:"Property",kind:"init",key:xt(h)?{type:"Identifier",name:h}:{type:"Literal",value:h},value:{type:"Literal",value:h},method:!1,shorthand:!1,computed:!1});for(h of(r.push(...n.components),n.objects))r.includes(h)||r.push(h);r.sort();const u=[];if(i.length>0||r.length>0||n.idToInvalidComponentName.size>0){if(s&&(o=!0,c.push({type:"CallExpression",callee:{type:"Identifier",name:"_provideComponents"},arguments:[],optional:!1})),(Ia(n.node,"MDXContent")||Ia(n.node,"_createMdxContent"))&&c.push(va(["props","components"])),i.length>0||c.length>1)for(const e of c)i.push({type:"SpreadElement",argument:e});let e,t=i.length>0?{type:"ObjectExpression",properties:i}:{type:"LogicalExpression",operator:"||",left:c[0],right:{type:"ObjectExpression",properties:[]}};if(r.length>0&&(e={type:"ObjectPattern",properties:r.map(function(e){return{type:"Property",kind:"init",key:{type:"Identifier",name:"MDXLayout"===e?"wrapper":e},value:{type:"Identifier",name:e},method:!1,shorthand:"MDXLayout"!==e,computed:!1}})}),n.tags.length>0&&(p.push({type:"VariableDeclarator",id:{type:"Identifier",name:"_components"},init:t}),t={type:"Identifier",name:"_components"}),Ia(n.node,"_createMdxContent"))for(const[e,t]of[...n.idToInvalidComponentName].sort(function([e],[t]){return e.localeCompare(t)}))p.push({type:"VariableDeclarator",id:{type:"Identifier",name:t},init:{type:"MemberExpression",object:{type:"Identifier",name:"_components"},property:{type:"Literal",value:e},computed:!0,optional:!1}});e&&p.push({type:"VariableDeclarator",id:e,init:t}),p.length>0&&u.push({type:"VariableDeclaration",kind:"const",declarations:p})}let d;for(d in n.references)if(Object.hasOwn(n.references,d)){const e=d.split(".");let t=0;for(;++t<e.length;){const i=e.slice(0,t).join(".");Object.hasOwn(n.references,i)||(n.references[i]={component:!1,node:n.references[d].node})}}const m=Object.keys(n.references).sort();let f=-1;for(;++f<m.length;){const e=m[f],i=n.references[e],s=it(Yn(i.node)),r=[{type:"Literal",value:e},{type:"Literal",value:i.component}];l=!0,t&&s&&r.push({type:"Literal",value:s}),u.push({type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:va(e.split("."))},consequent:{type:"ExpressionStatement",expression:{type:"CallExpression",callee:{type:"Identifier",name:"_missingMdxReference"},arguments:r,optional:!1}},alternate:void 0})}u.length>0&&("BlockStatement"!==e.body.type&&(e.body={type:"BlockStatement",body:[{type:"ReturnStatement",argument:e.body}]}),e.body.body.unshift(...u)),a.pop()}}}),o&&s&&e.body.unshift(function(e,t){const i=[{type:"ImportSpecifier",imported:{type:"Identifier",name:"useMDXComponents"},local:{type:"Identifier",name:"_provideComponents"}}];return"function-body"===t?{type:"VariableDeclaration",kind:"const",declarations:ya(i,va(["arguments",0]))}:{type:"ImportDeclaration",specifiers:i,attributes:[],source:{type:"Literal",value:e}}}(s,i)),l){const i=[{type:"Literal",value:"Expected "},{type:"ConditionalExpression",test:{type:"Identifier",name:"component"},consequent:{type:"Literal",value:"component"},alternate:{type:"Literal",value:"object"}},{type:"Literal",value:" `"},{type:"Identifier",name:"id"},{type:"Literal",value:"` to be defined: you likely forgot to import, pass, or provide it."}],s=[{type:"Identifier",name:"id"},{type:"Identifier",name:"component"}];t&&(i.push({type:"ConditionalExpression",test:{type:"Identifier",name:"place"},consequent:Na([{type:"Literal",value:"\nIt’s referenced in your code at `"},{type:"Identifier",name:"place"},{type:"Literal",value:(r.path?"` in `"+r.path:"")+"`"}]),alternate:{type:"Literal",value:""}}),s.push({type:"Identifier",name:"place"})),e.body.push({type:"FunctionDeclaration",id:{type:"Identifier",name:"_missingMdxReference"},generator:!1,async:!1,params:s,body:{type:"BlockStatement",body:[{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[Na(i)]}}]}})}"function-body"===i&&e.body.unshift({type:"ExpressionStatement",expression:{type:"Literal",value:"use strict"},directive:"use strict"})}}function Ia(e,t){return Boolean(e&&"id"in e&&e.id&&e.id.name===t)}function Ta(e,t){let i=e.length;for(;i--;){if(e[i].defined.includes(t))return!0}return!1}function Pa(){return function(e){ut(e,"raw",function(e,t,i){if(i&&"number"==typeof t)return i.children.splice(t,1),t})}}const La=/\s+/g,Va=/[\t\n\v\f\r ]+/g;function Ra(e,t){t?"string"==typeof t&&(t={style:t}):t={};const i=t.preserveLineEndings?Oa:ja;return String(e).replace("html"===t.style?Va:La,t.trim?function(e){return t;function t(t,i,s){return 0===i||i+t.length===s.length?"":e(t)}}(i):i)}function Oa(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function ja(){return" "}function Da(){return function(e){ut(e,function(e,t,i){let s=-1,r=!0,n=!1;if(i&&"number"==typeof t&&"paragraph"===e.type){const a=e.children;for(;++s<a.length;){const e=a[s];if("mdxJsxTextElement"===e.type||"mdxTextExpression"===e.type)n=!0;else if("text"!==e.type||""!==Ra(e.value,{style:"html",trim:!0})){r=!1;break}}if(r&&n){s=-1;const e=[];for(;++s<a.length;){const t=a[s];"mdxJsxTextElement"===t.type&&(t.type="mdxJsxFlowElement"),"mdxTextExpression"===t.type&&(t.type="mdxFlowExpression"),"text"===t.type&&/^[\t\r\n ]+$/.test(String(t.value))||e.push(t)}return i.children.splice(t,1,...e),t}}if("mdxJsxFlowElement"===e.type||"mdxJsxTextElement"===e.type){(e.data||(e.data={}))._mdxExplicitJsx=!0}("mdxFlowExpression"===e.type||"mdxTextExpression"===e.type||"mdxjsEsm"===e.type)&&e.data&&e.data.estree&&ii(e.data.estree,{enter(e){if("JSXElement"===e.type){(e.data||(e.data={}))._mdxExplicitJsx=!0}}})})}}const Ma=["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"];let Fa=!1;function Ba(e,t){const{file:i,options:s}=Yt(e,t);return function(e){const t=e||{};t.format,("classic"===t.jsxRuntime||t.pragma||t.pragmaFrag||t.pragmaImportSource)&&!Fa&&(Fa=!0,console.warn("Unexpected deprecated option `jsxRuntime: 'classic'`, `pragma`, `pragmaFrag`, or `pragmaImportSource`; see <https://mdxjs.com/migrating/v3/> on how to migrate"));const i=dt().use(mt);"md"!==t.format&&i.use(ga);const s=t.remarkRehypeOptions||{};return i.use(Da).use(t.remarkPlugins||[]).use(It,{...s,allowDangerousHtml:!0,passThrough:[...s.passThrough||[],...Ma]}).use(t.rehypePlugins||[]),"md"===t.format&&i.use(Pa),i.use(xs,t).use(Sa,t).use(Aa,t),t.jsx||i.use(li,t).use(wa,t),i.use(zi).use(Ji,t).use(t.recmaPlugins||[]),i}(s).process(i)}const Ua=Object.getPrototypeOf(za).constructor;async function za(e,t){return new Ua(String(e))(t)}async function Ja(e,t){const{compiletime:i,runtime:s}=function(e){const{Fragment:t,baseUrl:i,development:s,jsx:r,jsxDEV:n,jsxs:a,useMDXComponents:o,...l}=e||{};if(!t)throw new Error("Expected `Fragment` given to `evaluate`");if(s){if(!n)throw new Error("Expected `jsxDEV` given to `evaluate`")}else{if(!r)throw new Error("Expected `jsx` given to `evaluate`");if(!a)throw new Error("Expected `jsxs` given to `evaluate`")}return{compiletime:{...l,development:s,outputFormat:"function-body",providerImportSource:o?"#":void 0},runtime:{Fragment:t,baseUrl:i,jsx:r,jsxDEV:n,jsxs:a,useMDXComponents:o}}}(t);return za(await Ba(e,i),s)}const qa=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),Xa="-",Ga=[],Wa=e=>{const t=Ka(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return $a(e);const i=e.split(Xa),s=""===i[0]&&i.length>1?1:0;return Ha(i,s,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=s[e],r=i[e];return t?r?((e,t)=>{const i=new Array(e.length+t.length);for(let t=0;t<e.length;t++)i[t]=e[t];for(let s=0;s<t.length;s++)i[e.length+s]=t[s];return i})(r,t):t:r||Ga}return i[e]||Ga}}},Ha=(e,t,i)=>{if(0===e.length-t)return i.classGroupId;const s=e[t],r=i.nextPart.get(s);if(r){const i=Ha(e,t+1,r);if(i)return i}const n=i.validators;if(null===n)return;const a=0===t?e.join(Xa):e.slice(t).join(Xa),o=n.length;for(let e=0;e<o;e++){const t=n[e];if(t.validator(a))return t.classGroupId}},$a=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),i=t.indexOf(":"),s=t.slice(0,i);return s?"arbitrary.."+s:void 0})(),Ka=e=>{const{theme:t,classGroups:i}=e;return Qa(i,t)},Qa=(e,t)=>{const i=qa();for(const s in e){const r=e[s];Ya(r,i,s,t)}return i},Ya=(e,t,i,s)=>{const r=e.length;for(let n=0;n<r;n++){const r=e[n];Za(r,t,i,s)}},Za=(e,t,i,s)=>{"string"!=typeof e?"function"!=typeof e?io(e,t,i,s):to(e,t,i,s):eo(e,t,i)},eo=(e,t,i)=>{(""===e?t:so(t,e)).classGroupId=i},to=(e,t,i,s)=>{ro(e)?Ya(e(s),t,i,s):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(i,e)))},io=(e,t,i,s)=>{const r=Object.entries(e),n=r.length;for(let e=0;e<n;e++){const[n,a]=r[e];Ya(a,so(t,n),i,s)}},so=(e,t)=>{let i=e;const s=t.split(Xa),r=s.length;for(let e=0;e<r;e++){const t=s[e];let r=i.nextPart.get(t);r||(r=qa(),i.nextPart.set(t,r)),i=r}return i},ro=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,no=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),s=Object.create(null);const r=(r,n)=>{i[r]=n,t++,t>e&&(t=0,s=i,i=Object.create(null))};return{get(e){let t=i[e];return void 0!==t?t:void 0!==(t=s[e])?(r(e,t),t):void 0},set(e,t){e in i?i[e]=t:r(e,t)}}},ao=[],oo=(e,t,i,s,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:s,isExternal:r}),lo=e=>{const{prefix:t,experimentalParseClassName:i}=e;let s=e=>{const t=[];let i,s=0,r=0,n=0;const a=e.length;for(let o=0;o<a;o++){const a=e[o];if(0===s&&0===r){if(":"===a){t.push(e.slice(n,o)),n=o+1;continue}if("/"===a){i=o;continue}}"["===a?s++:"]"===a?s--:"("===a?r++:")"===a&&r--}const o=0===t.length?e:e.slice(n);let l=o,c=!1;o.endsWith("!")?(l=o.slice(0,-1),c=!0):o.startsWith("!")&&(l=o.slice(1),c=!0);return oo(t,c,l,i&&i>n?i-n:void 0)};if(t){const e=t+":",i=s;s=t=>t.startsWith(e)?i(t.slice(e.length)):oo(ao,!1,t,void 0,!0)}if(i){const e=s;s=t=>i({className:t,parseClassName:e})}return s},co=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,i)=>{t.set(e,1e6+i)}),e=>{const i=[];let s=[];for(let r=0;r<e.length;r++){const n=e[r],a="["===n[0],o=t.has(n);a||o?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(n)):s.push(n)}return s.length>0&&(s.sort(),i.push(...s)),i}},po=e=>{const t=Object.create(null),i=e.postfixLookupClassGroups;if(i)for(let e=0;e<i.length;e++)t[i[e]]=!0;return t},ho=/\s+/,uo=e=>{if("string"==typeof e)return e;let t,i="";for(let s=0;s<e.length;s++)e[s]&&(t=uo(e[s]))&&(i&&(i+=" "),i+=t);return i},mo=(e,...t)=>{let i,s,r,n;const a=e=>{const t=s(e);if(t)return t;const n=((e,t)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:n,postfixLookupClassGroupIds:a}=t,o=[],l=e.trim().split(ho);let c="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:p,modifiers:h,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:m}=i(t);if(p){c=t+(c.length>0?" "+c:c);continue}let f,g=!!m;if(g){f=s(d.substring(0,m));const e=f&&a[f]?s(d):void 0;e&&e!==f&&(f=e,g=!1)}else f=s(d);if(!f){if(!g){c=t+(c.length>0?" "+c:c);continue}if(f=s(d),!f){c=t+(c.length>0?" "+c:c);continue}g=!1}const x=0===h.length?"":1===h.length?h[0]:n(h).join(":"),y=u?x+"!":x,v=y+f;if(o.indexOf(v)>-1)continue;o.push(v);const b=r(f,g);for(let e=0;e<b.length;++e){const t=b[e];o.push(y+t)}c=t+(c.length>0?" "+c:c)}return c})(e,i);return r(e,n),n};return n=o=>{const l=t.reduce((e,t)=>t(e),e());return i=(e=>({cache:no(e.cacheSize),parseClassName:lo(e),sortModifiers:co(e),postfixLookupClassGroupIds:po(e),...Wa(e)}))(l),s=i.cache.get,r=i.cache.set,n=a,a(o)},(...e)=>n(((...e)=>{let t,i,s=0,r="";for(;s<e.length;)(t=e[s++])&&(i=uo(t))&&(r&&(r+=" "),r+=i);return r})(...e))},fo=[],go=e=>{const t=t=>t[e]||fo;return t.isThemeGetter=!0,t},xo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,bo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ko=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Co=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Eo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,So=e=>vo.test(e),_o=e=>!!e&&!Number.isNaN(Number(e)),No=e=>!!e&&Number.isInteger(Number(e)),Ao=e=>e.endsWith("%")&&_o(e.slice(0,-1)),Io=e=>bo.test(e),To=()=>!0,Po=e=>wo.test(e)&&!ko.test(e),Lo=()=>!1,Vo=e=>Co.test(e),Ro=e=>Eo.test(e),Oo=e=>!Mo(e)&&!Go(e),jo=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),Do=e=>el(e,rl,Lo),Mo=e=>xo.test(e),Fo=e=>el(e,nl,Po),Bo=e=>el(e,al,_o),Uo=e=>el(e,ll,To),zo=e=>el(e,ol,Lo),Jo=e=>el(e,il,Lo),qo=e=>el(e,sl,Ro),Xo=e=>el(e,cl,Vo),Go=e=>yo.test(e),Wo=e=>tl(e,nl),Ho=e=>tl(e,ol),$o=e=>tl(e,il),Ko=e=>tl(e,rl),Qo=e=>tl(e,sl),Yo=e=>tl(e,cl,!0),Zo=e=>tl(e,ll,!0),el=(e,t,i)=>{const s=xo.exec(e);return!!s&&(s[1]?t(s[1]):i(s[2]))},tl=(e,t,i=!1)=>{const s=yo.exec(e);return!!s&&(s[1]?t(s[1]):i)},il=e=>"position"===e||"percentage"===e,sl=e=>"image"===e||"url"===e,rl=e=>"length"===e||"size"===e||"bg-size"===e,nl=e=>"length"===e,al=e=>"number"===e,ol=e=>"family-name"===e,ll=e=>"number"===e||"weight"===e,cl=e=>"shadow"===e,pl=mo(()=>{const e=go("color"),t=go("font"),i=go("text"),s=go("font-weight"),r=go("tracking"),n=go("leading"),a=go("breakpoint"),o=go("container"),l=go("spacing"),c=go("radius"),p=go("shadow"),h=go("inset-shadow"),u=go("text-shadow"),d=go("drop-shadow"),m=go("blur"),f=go("perspective"),g=go("aspect"),x=go("ease"),y=go("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Go,Mo],b=()=>[Go,Mo,l],w=()=>[So,"full","auto",...b()],k=()=>[No,"none","subgrid",Go,Mo],C=()=>["auto",{span:["full",No,Go,Mo]},No,Go,Mo],E=()=>[No,"auto",Go,Mo],S=()=>["auto","min","max","fr",Go,Mo],_=()=>["auto",...b()],N=()=>[So,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],A=()=>[So,"screen","full","dvw","lvw","svw","min","max","fit",...b()],I=()=>[So,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],T=()=>[e,Go,Mo],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",$o,Jo,{position:[Go,Mo]}],L=()=>["auto","cover","contain",Ko,Do,{size:[Go,Mo]}],V=()=>[Ao,Wo,Fo],R=()=>["","none","full",c,Go,Mo],O=()=>["",_o,Wo,Fo],j=()=>[_o,Ao,$o,Jo],D=()=>["","none",m,Go,Mo],M=()=>["none",_o,Go,Mo],F=()=>["none",_o,Go,Mo],B=()=>[_o,Go,Mo],U=()=>[So,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Io],breakpoint:[Io],color:[To],container:[Io],"drop-shadow":[Io],ease:["in","out","in-out"],font:[Oo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Io],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Io],shadow:[Io],spacing:["px",_o],text:[Io],"text-shadow":[Io],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",So,Mo,Go,g]}],container:["container"],"container-type":[{"@container":["","normal","size",Go,Mo]}],"container-named":[jo],columns:[{columns:[_o,Mo,Go,o]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[No,"auto",Go,Mo]}],basis:[{basis:[So,"full","auto",o,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_o,So,"auto","initial","none",Mo]}],grow:[{grow:["",_o,Go,Mo]}],shrink:[{shrink:["",_o,Go,Mo]}],order:[{order:[No,"first","last","none",Go,Mo]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...A()]}],"min-inline-size":[{"min-inline":["auto",...A()]}],"max-inline-size":[{"max-inline":["none",...A()]}],"block-size":[{block:["auto",...I()]}],"min-block-size":[{"min-block":["auto",...I()]}],"max-block-size":[{"max-block":["none",...I()]}],w:[{w:[o,"screen",...N()]}],"min-w":[{"min-w":[o,"screen","none",...N()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[a]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",i,Wo,Fo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Zo,Uo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ao,Mo]}],"font-family":[{font:[Ho,zo,t]}],"font-features":[{"font-features":[Mo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Go,Mo]}],"line-clamp":[{"line-clamp":[_o,"none",Go,Bo]}],leading:[{leading:[n,...b()]}],"list-image":[{"list-image":["none",Go,Mo]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Go,Mo]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[_o,"from-font","auto",Go,Fo]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[_o,"auto",Go,Mo]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"tab-size":[{tab:[No,Go,Mo]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Go,Mo]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Go,Mo]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},No,Go,Mo],radial:["",Go,Mo],conic:[No,Go,Mo]},Qo,qo]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:O()}],"border-w-x":[{"border-x":O()}],"border-w-y":[{"border-y":O()}],"border-w-s":[{"border-s":O()}],"border-w-e":[{"border-e":O()}],"border-w-bs":[{"border-bs":O()}],"border-w-be":[{"border-be":O()}],"border-w-t":[{"border-t":O()}],"border-w-r":[{"border-r":O()}],"border-w-b":[{"border-b":O()}],"border-w-l":[{"border-l":O()}],"divide-x":[{"divide-x":O()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[_o,Go,Mo]}],"outline-w":[{outline:["",_o,Wo,Fo]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",p,Yo,Xo]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",h,Yo,Xo]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[_o,Fo]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":O()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",u,Yo,Xo]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[_o,Go,Mo]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_o]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Go,Mo]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[_o]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Go,Mo]}],filter:[{filter:["","none",Go,Mo]}],blur:[{blur:D()}],brightness:[{brightness:[_o,Go,Mo]}],contrast:[{contrast:[_o,Go,Mo]}],"drop-shadow":[{"drop-shadow":["","none",d,Yo,Xo]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",_o,Go,Mo]}],"hue-rotate":[{"hue-rotate":[_o,Go,Mo]}],invert:[{invert:["",_o,Go,Mo]}],saturate:[{saturate:[_o,Go,Mo]}],sepia:[{sepia:["",_o,Go,Mo]}],"backdrop-filter":[{"backdrop-filter":["","none",Go,Mo]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[_o,Go,Mo]}],"backdrop-contrast":[{"backdrop-contrast":[_o,Go,Mo]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_o,Go,Mo]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_o,Go,Mo]}],"backdrop-invert":[{"backdrop-invert":["",_o,Go,Mo]}],"backdrop-opacity":[{"backdrop-opacity":[_o,Go,Mo]}],"backdrop-saturate":[{"backdrop-saturate":[_o,Go,Mo]}],"backdrop-sepia":[{"backdrop-sepia":["",_o,Go,Mo]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Go,Mo]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_o,"initial",Go,Mo]}],ease:[{ease:["linear","initial",x,Go,Mo]}],delay:[{delay:[_o,Go,Mo]}],animate:[{animate:["none",y,Go,Mo]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,Go,Mo]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:M()}],"rotate-x":[{"rotate-x":M()}],"rotate-y":[{"rotate-y":M()}],"rotate-z":[{"rotate-z":M()}],scale:[{scale:F()}],"scale-x":[{"scale-x":F()}],"scale-y":[{"scale-y":F()}],"scale-z":[{"scale-z":F()}],"scale-3d":["scale-3d"],skew:[{skew:B()}],"skew-x":[{"skew-x":B()}],"skew-y":[{"skew-y":B()}],transform:[{transform:[Go,Mo,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:U()}],"translate-x":[{"translate-x":U()}],"translate-y":[{"translate-y":U()}],"translate-z":[{"translate-z":U()}],"translate-none":["translate-none"],zoom:[{zoom:[No,Go,Mo]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Go,Mo]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Go,Mo]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[_o,Wo,Fo,Bo]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),hl=()=>{throw new Error("You need to wrap your application inside `FrameworkProvider`.")},ul=u({useParams:hl,useRouter:hl,usePathname:hl});function dl(e){const{Image:t}=h(ul);if(!t){const{src:t,alt:i,priority:r,...n}=e;return s("img",{alt:i,src:t,fetchPriority:r?"high":"auto",...n})}return s(t,{...e})}function ml(e){const{Link:t}=h(ul);if(!t){const{href:t,prefetch:i,...r}=e;return s("a",{href:t,...r})}return s(t,{...e})}const fl=d(({href:e="#",external:t=e.match(/^\w+:/)||e.startsWith("//"),prefetch:i,children:r,...n},a)=>t?s("a",{ref:a,href:e,rel:"noreferrer noopener",target:"_blank",...n,children:r}):s(ml,{ref:a,href:e,prefetch:i,...n,children:r}));fl.displayName="Link";
5
- /**
6
- * @license lucide-react v1.17.0 - ISC
7
- *
8
- * This source code is licensed under the ISC license.
9
- * See the LICENSE file in the root directory of this source tree.
10
- */
11
- const gl=(...e)=>e.filter((e,t,i)=>Boolean(e)&&""!==e.trim()&&i.indexOf(e)===t).join(" ").trim(),xl=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)};
12
- /**
13
- * @license lucide-react v1.17.0 - ISC
14
- *
15
- * This source code is licensed under the ISC license.
16
- * See the LICENSE file in the root directory of this source tree.
17
- */
18
- /**
19
- * @license lucide-react v1.17.0 - ISC
20
- *
21
- * This source code is licensed under the ISC license.
22
- * See the LICENSE file in the root directory of this source tree.
23
- */
24
- var yl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
25
- /**
26
- * @license lucide-react v1.17.0 - ISC
27
- *
28
- * This source code is licensed under the ISC license.
29
- * See the LICENSE file in the root directory of this source tree.
30
- */const vl=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1},bl=u({}),wl=d(({color:e,size:t,strokeWidth:i,absoluteStrokeWidth:s,className:r="",children:n,iconNode:a,...o},l)=>{const{size:c=24,strokeWidth:p=2,absoluteStrokeWidth:h=!1,color:u="currentColor",className:d=""}=m(bl)??{},g=s??h?24*Number(i??p)/Number(t??c):i??p;return f("svg",{ref:l,...yl,width:t??c??yl.width,height:t??c??yl.height,stroke:e??u,strokeWidth:g,className:gl("lucide",d,r),...!n&&!vl(o)&&{"aria-hidden":"true"},...o},[...a.map(([e,t])=>f(e,t)),...Array.isArray(n)?n:[n]])}),kl=(e,t)=>{const i=d(({className:i,...s},r)=>{return f(wl,{ref:r,iconNode:t,className:gl(`lucide-${n=xl(e),n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...s});var n});return i.displayName=xl(e),i},Cl=kl("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),El=kl("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),Sl=kl("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),_l=kl("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]),Nl=kl("copy-check",[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),Al=kl("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Il=kl("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),Tl=kl("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]),Pl=kl("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Ll="size-5 -me-0.5 fill-(--callout-color) text-fd-card";function Vl({type:e="info",icon:i,children:r,className:n,style:a,...o}){const l=function(e){return"warn"===e?"warning":"tip"===e?"info":e}(e);return t("div",{className:pl("flex gap-2 my-4 rounded-xl border bg-fd-card p-3 ps-1 text-sm text-fd-card-foreground shadow-md",n),style:{"--callout-color":`var(--color-fd-${l}, var(--color-fd-muted))`,...a},...o,children:[s("div",{role:"none",className:"w-0.5 bg-(--callout-color)/50 rounded-sm"}),i??{info:s(Al,{className:Ll}),warning:s(Pl,{className:Ll}),error:s(Sl,{className:Ll}),success:s(El,{className:Ll}),idea:s(Il,{className:"size-5 -me-0.5 fill-(--callout-color) text-(--callout-color)"})}[l],s("div",{className:"flex flex-col gap-2 min-w-0 flex-1",children:r})]})}function Rl({children:e,className:t,...i}){return s("p",{className:pl("font-medium my-0!",t),...i,children:e})}function Ol({children:e,className:t,...i}){return s("div",{className:pl("text-fd-muted-foreground prose-no-margin empty:hidden",t),...i,children:e})}const jl=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Dl=Ke,Ml={primary:"bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80 disabled:bg-fd-secondary disabled:text-fd-secondary-foreground",outline:"border hover:bg-fd-accent hover:text-fd-accent-foreground",ghost:"hover:bg-fd-accent hover:text-fd-accent-foreground",secondary:"border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"},Fl=(Bl="inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring",Ul={variants:{variant:Ml,color:Ml,size:{sm:"gap-1 px-2 py-1.5 text-xs",icon:"p-1.5 [&_svg]:size-5","icon-sm":"p-1.5 [&_svg]:size-4.5","icon-xs":"p-1 [&_svg]:size-4"}}},e=>{var t;if(null==(null==Ul?void 0:Ul.variants))return Dl(Bl,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:i,defaultVariants:s}=Ul,r=Object.keys(i).map(t=>{const r=null==e?void 0:e[t],n=null==s?void 0:s[t];if(null===r)return null;const a=jl(r)||jl(n);return i[t][a]}),n=e&&Object.entries(e).reduce((e,t)=>{let[i,s]=t;return void 0===s||(e[i]=s),e},{}),a=null==Ul||null===(t=Ul.compoundVariants)||void 0===t?void 0:t.reduce((e,t)=>{let{class:i,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,i]=e;return Array.isArray(i)?i.includes({...s,...n}[t]):{...s,...n}[t]===i})?[...e,i,r]:e},[]);return Dl(Bl,r,a,null==e?void 0:e.class,null==e?void 0:e.className)});var Bl,Ul;function zl(e){const[t,i]=a(!1),s=o(e),r=o(null);s.current=e;const n=l(()=>{r.current&&window.clearTimeout(r.current),Promise.resolve(s.current()).then(()=>{i(!0),r.current=window.setTimeout(()=>{i(!1)},1500)})},[]);return c(()=>()=>{r.current&&window.clearTimeout(r.current)},[]),[t,n]}const Jl=u({text:{displayName:"English",search:"Search",searchNoResult:"No results found",toc:"On this page",tocNoHeadings:"No Headings",lastUpdate:"Last updated on",chooseLanguage:"Choose a language",nextPage:"Next Page",previousPage:"Previous Page",chooseTheme:"Theme",editOnGithub:"Edit on GitHub",themeLight:"Light",themeDark:"Dark",themeSystem:"System",codeBlockCopy:"Copy Text",codeBlockCopied:"Copied Text",accordionCopyAnchor:"Copy Link",headingCopyAnchor:"Copy Anchor Link",pageActionsCopyMarkdown:"Copy Markdown",pageActionsOpen:"Open",pageActionsOpenGitHub:"Open in GitHub",pageActionsViewMarkdown:"View as Markdown",pageActionsOpenScira:"Open in Scira AI",pageActionsOpenChatGPT:"Open in ChatGPT",pageActionsOpenClaude:"Open in Claude",pageActionsOpenCursor:"Open in Cursor",pageActionsOpenInLLMPrompt:"Read {url}, I want to ask questions about it.",bannerClose:"Close Banner",searchOpen:"Open Search",searchClose:"Close Search",menuToggle:"Toggle Menu",themeToggle:"Toggle Theme",sidebarOpen:"Open Sidebar",sidebarCollapse:"Collapse Sidebar",tocInline:"Table of Contents",typeTableProp:"Prop",typeTableType:"Type",typeTableDefault:"Default",typeTableParameters:"Parameters",typeTableReturns:"Returns",notFoundTitle:"Page Not Found",notFoundDescription:"The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.",notFoundLink:"Back to Home"}});function ql(e){return h(Jl).text}function Xl({as:e,...i}){const r=e??"h1",n=ql(),[a,o]=zl(()=>{if(!i.id)return;const e=new URL(window.location.href);return e.hash=i.id,navigator.clipboard.writeText(e.href)});return i.id?t(r,{...i,className:pl("group/heading flex scroll-m-28 flex-row items-center gap-1",i.className),children:[s("a",{"data-card":"",href:`#${i.id}`,children:i.children}),s("button",{"aria-label":n.headingCopyAnchor,className:pl(Fl({variant:"ghost",size:"icon-xs"}),"not-prose shrink-0 text-fd-muted-foreground opacity-0 transition-opacity group-hover/heading:opacity-100"),onClick:o,children:s(a?Nl:Tl,{})})]}):s(r,{...i})}function Gl(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}}function Wl(e,t,{checkForDefaultPrevented:i=!0}={}){return function(s){if(e?.(s),!1===i||!s.defaultPrevented)return t?.(s)}}function Hl(e,t=[]){let i=[];const n=()=>{const t=i.map(e=>r.createContext(e));return function(i){const s=i?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...i,[e]:s}}),[i,s])}};return n.scopeName=e,[function(t,n){const a=r.createContext(n),o=i.length;i=[...i,n];const l=t=>{const{scope:i,children:n,...l}=t,c=i?.[e]?.[o]||a,p=r.useMemo(()=>l,Object.values(l));return s(c.Provider,{value:p,children:n})};return l.displayName=t+"Provider",[l,function(i,s){const l=s?.[e]?.[o]||a,c=r.useContext(l);if(c)return c;if(void 0!==n)return n;throw new Error(`\`${i}\` must be used within \`${t}\``)}]},$l(n,...t)]}function $l(...e){const t=e[0];if(1===e.length)return t;const i=()=>{const i=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const s=i.reduce((t,{useScope:i,scopeName:s})=>({...t,...i(e)[`__scope${s}`]}),{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return i.scopeName=t.scopeName,i}function Kl(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Ql(...e){return t=>{let i=!1;const s=e.map(e=>{const s=Kl(e,t);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let t=0;t<s.length;t++){const i=s[t];"function"==typeof i?i():Kl(e[t],null)}}}}function Yl(...e){return r.useCallback(Ql(...e),e)}function Zl(e){const t=ec(e),i=r.forwardRef((e,i)=>{const{children:n,...a}=e,o=r.Children.toArray(n),l=o.find(ic);if(l){const e=l.props.children,n=o.map(t=>t===l?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:t);return s(t,{...a,ref:i,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return s(t,{...a,ref:i,children:n})});return i.displayName=`${e}.Slot`,i}function ec(e){const t=r.forwardRef((e,t)=>{const{children:i,...s}=e;if(r.isValidElement(i)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;if(i)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i)return e.props.ref;return e.props.ref||e.ref}(i),n=function(e,t){const i={...t};for(const s in t){const r=e[s],n=t[s];/^on[A-Z]/.test(s)?r&&n?i[s]=(...e)=>{const t=n(...e);return r(...e),t}:r&&(i[s]=r):"style"===s?i[s]={...r,...n}:"className"===s&&(i[s]=[r,n].filter(Boolean).join(" "))}return{...e,...i}}(s,i.props);return i.type!==r.Fragment&&(n.ref=t?Ql(t,e):e),r.cloneElement(i,n)}return r.Children.count(i)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tc=Symbol("radix.slottable");function ic(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tc}var sc=globalThis?.document?r.useLayoutEffect:()=>{},rc=r[" useId ".trim().toString()]||(()=>{}),nc=0;function ac(e){const[t,i]=r.useState(rc());return sc(()=>{i(e=>e??String(nc++))},[e]),t?`radix-${t}`:""}var oc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const i=Zl(`Primitive.${t}`),n=r.forwardRef((e,r)=>{const{asChild:n,...a}=e,o=n?i:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),s(o,{...a,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});var lc=r[" useInsertionEffect ".trim().toString()]||sc;function cc({prop:e,defaultProp:t,onChange:i=()=>{},caller:s}){const[n,a,o]=function({defaultProp:e,onChange:t}){const[i,s]=r.useState(e),n=r.useRef(i),a=r.useRef(t);return lc(()=>{a.current=t},[t]),r.useEffect(()=>{n.current!==i&&(a.current?.(i),n.current=i)},[i,n]),[i,s,a]}({defaultProp:t,onChange:i}),l=void 0!==e,c=l?e:n;{const t=r.useRef(void 0!==e);r.useEffect(()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",i=l?"controlled":"uncontrolled";console.warn(`${s} is changing from ${t} to ${i}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,s])}const p=r.useCallback(t=>{if(l){const i=function(e){return"function"==typeof e}(t)?t(e):t;i!==e&&o.current?.(i)}else a(t)},[l,e,a,o]);return[c,p]}var pc=r.createContext(void 0);function hc(e){const t=r.useContext(pc);return e||t||"ltr"}var uc="rovingFocusGroup.onEntryFocus",dc={bubbles:!1,cancelable:!0},mc="RovingFocusGroup",[fc,gc,xc]=function(e){const t=e+"CollectionProvider",[i,r]=Hl(t),[a,o]=i(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{const{scope:t,children:i}=e,r=n.useRef(null),o=n.useRef(new Map).current;return s(a,{scope:t,itemMap:o,collectionRef:r,children:i})};l.displayName=t;const c=e+"CollectionSlot",p=Zl(c),h=n.forwardRef((e,t)=>{const{scope:i,children:r}=e,n=Yl(t,o(c,i).collectionRef);return s(p,{ref:n,children:r})});h.displayName=c;const u=e+"CollectionItemSlot",d="data-radix-collection-item",m=Zl(u),f=n.forwardRef((e,t)=>{const{scope:i,children:r,...a}=e,l=n.useRef(null),c=Yl(t,l),p=o(u,i);return n.useEffect(()=>(p.itemMap.set(l,{ref:l,...a}),()=>{p.itemMap.delete(l)})),s(m,{[d]:"",ref:c,children:r})});return f.displayName=u,[{Provider:l,Slot:h,ItemSlot:f},function(t){const i=o(e+"CollectionConsumer",t);return n.useCallback(()=>{const e=i.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(i.itemMap.values()).sort((e,i)=>t.indexOf(e.ref.current)-t.indexOf(i.ref.current))},[i.collectionRef,i.itemMap])},r]}(mc),[yc,vc]=Hl(mc,[xc]),[bc,wc]=yc(mc),kc=r.forwardRef((e,t)=>s(fc.Provider,{scope:e.__scopeRovingFocusGroup,children:s(fc.Slot,{scope:e.__scopeRovingFocusGroup,children:s(Cc,{...e,ref:t})})}));kc.displayName=mc;var Cc=r.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:i,orientation:n,loop:a=!1,dir:o,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:p,onEntryFocus:h,preventScrollOnEntryFocus:u=!1,...d}=e,m=r.useRef(null),f=Yl(t,m),g=hc(o),[x,y]=cc({prop:l,defaultProp:c??null,onChange:p,caller:mc}),[v,b]=r.useState(!1),w=function(e){const t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}(h),k=gc(i),C=r.useRef(!1),[E,S]=r.useState(0);return r.useEffect(()=>{const e=m.current;if(e)return e.addEventListener(uc,w),()=>e.removeEventListener(uc,w)},[w]),s(bc,{scope:i,orientation:n,dir:g,loop:a,currentTabStopId:x,onItemFocus:r.useCallback(e=>y(e),[y]),onItemShiftTab:r.useCallback(()=>b(!0),[]),onFocusableItemAdd:r.useCallback(()=>S(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>S(e=>e-1),[]),children:s(oc.div,{tabIndex:v||0===E?-1:0,"data-orientation":n,...d,ref:f,style:{outline:"none",...e.style},onMouseDown:Wl(e.onMouseDown,()=>{C.current=!0}),onFocus:Wl(e.onFocus,e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(uc,dc);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=k().filter(e=>e.focusable);Nc([e.find(e=>e.active),e.find(e=>e.id===x),...e].filter(Boolean).map(e=>e.ref.current),u)}}C.current=!1}),onBlur:Wl(e.onBlur,()=>b(!1))})})}),Ec="RovingFocusGroupItem",Sc=r.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:i,focusable:n=!0,active:a=!1,tabStopId:o,children:l,...c}=e,p=ac(),h=o||p,u=wc(Ec,i),d=u.currentTabStopId===h,m=gc(i),{onFocusableItemAdd:f,onFocusableItemRemove:g,currentTabStopId:x}=u;return r.useEffect(()=>{if(n)return f(),()=>g()},[n,f,g]),s(fc.ItemSlot,{scope:i,id:h,focusable:n,active:a,children:s(oc.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...c,ref:t,onMouseDown:Wl(e.onMouseDown,e=>{n?u.onItemFocus(h):e.preventDefault()}),onFocus:Wl(e.onFocus,()=>u.onItemFocus(h)),onKeyDown:Wl(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,i){const s=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,i);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(s)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)?void 0:_c[s]}(e,u.orientation,u.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();const n=r.indexOf(e.currentTarget);r=u.loop?(s=n+1,(i=r).map((e,t)=>i[(s+t)%i.length])):r.slice(n+1)}setTimeout(()=>Nc(r))}var i,s}),children:"function"==typeof l?l({isCurrentTabStop:d,hasTabStop:null!=x}):l})})});Sc.displayName=Ec;var _c={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Nc(e,t=!1){const i=document.activeElement;for(const s of e){if(s===i)return;if(s.focus({preventScroll:t}),document.activeElement!==i)return}}var Ac=kc,Ic=Sc;var Tc=e=>{const{present:t,children:i}=e,s=function(e){const[t,i]=r.useState(),s=r.useRef(null),n=r.useRef(e),a=r.useRef("none"),o=e?"mounted":"unmounted",[l,c]=function(e,t){return r.useReducer((e,i)=>t[e][i]??e,e)}(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect(()=>{const e=Pc(s.current);a.current="mounted"===l?e:"none"},[l]),sc(()=>{const t=s.current,i=n.current;if(i!==e){const s=a.current,r=Pc(t);if(e)c("MOUNT");else if("none"===r||"none"===t?.display)c("UNMOUNT");else{c(i&&s!==r?"ANIMATION_OUT":"UNMOUNT")}n.current=e}},[e,c]),sc(()=>{if(t){let e;const i=t.ownerDocument.defaultView??window,r=r=>{const a=Pc(s.current).includes(CSS.escape(r.animationName));if(r.target===t&&a&&(c("ANIMATION_END"),!n.current)){const s=t.style.animationFillMode;t.style.animationFillMode="forwards",e=i.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=s)})}},o=e=>{e.target===t&&(a.current=Pc(s.current))};return t.addEventListener("animationstart",o),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{i.clearTimeout(e),t.removeEventListener("animationstart",o),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:r.useCallback(e=>{s.current=e?getComputedStyle(e):null,i(e)},[])}}(t),n="function"==typeof i?i({present:s.isPresent}):r.Children.only(i),a=Yl(s.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;if(i)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i)return e.props.ref;return e.props.ref||e.ref}(n));return"function"==typeof i||s.isPresent?r.cloneElement(n,{ref:a}):null};function Pc(e){return e?.animationName||"none"}Tc.displayName="Presence";var Lc="Tabs",[Vc]=Hl(Lc,[vc]),Rc=vc(),[Oc,jc]=Vc(Lc),Dc=r.forwardRef((e,t)=>{const{__scopeTabs:i,value:r,onValueChange:n,defaultValue:a,orientation:o="horizontal",dir:l,activationMode:c="automatic",...p}=e,h=hc(l),[u,d]=cc({prop:r,onChange:n,defaultProp:a??"",caller:Lc});return s(Oc,{scope:i,baseId:ac(),value:u,onValueChange:d,orientation:o,dir:h,activationMode:c,children:s(oc.div,{dir:h,"data-orientation":o,...p,ref:t})})});Dc.displayName=Lc;var Mc="TabsList",Fc=r.forwardRef((e,t)=>{const{__scopeTabs:i,loop:r=!0,...n}=e,a=jc(Mc,i),o=Rc(i);return s(Ac,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:s(oc.div,{role:"tablist","aria-orientation":a.orientation,...n,ref:t})})});Fc.displayName=Mc;var Bc="TabsTrigger",Uc=r.forwardRef((e,t)=>{const{__scopeTabs:i,value:r,disabled:n=!1,...a}=e,o=jc(Bc,i),l=Rc(i),c=qc(o.baseId,r),p=Xc(o.baseId,r),h=r===o.value;return s(Ic,{asChild:!0,...l,focusable:!n,active:h,children:s(oc.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:c,...a,ref:t,onMouseDown:Wl(e.onMouseDown,e=>{n||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(r)}),onKeyDown:Wl(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(r)}),onFocus:Wl(e.onFocus,()=>{const e="manual"!==o.activationMode;h||n||!e||o.onValueChange(r)})})})});Uc.displayName=Bc;var zc="TabsContent",Jc=r.forwardRef((e,t)=>{const{__scopeTabs:i,value:n,forceMount:a,children:o,...l}=e,c=jc(zc,i),p=qc(c.baseId,n),h=Xc(c.baseId,n),u=n===c.value,d=r.useRef(u);return r.useEffect(()=>{const e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),s(Tc,{present:a||u,children:({present:i})=>s(oc.div,{"data-state":u?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":p,hidden:!i,id:h,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:i&&o})})});function qc(e,t){return`${e}-trigger-${t}`}function Xc(e,t){return`${e}-content-${t}`}Jc.displayName=zc;const Gc=new Map,Wc=u(null);const Hc=Fc,$c=Uc;function Kc({ref:e,groupId:t,persist:i=!1,updateAnchor:r=!1,defaultValue:n,value:l,onValueChange:c,...h}){const u=o(null),d=p(()=>new Map,[]),[m,f]=void 0===l?a(n):[l,g(e=>c?.(e))];return x(()=>{if(!t)return;let e=sessionStorage.getItem(t);i&&(e??=localStorage.getItem(t)),e&&f(e);const s=Gc.get(t)??new Set;return s.add(f),Gc.set(t,s),()=>{s.delete(f)}},[t,i,f]),x(()=>{const e=window.location.hash.slice(1);if(e)for(const[t,i]of d.entries())if(i===e){f(t),u.current?.scrollIntoView();break}},[f,d]),s(Dc,{ref:Gl(e,u),value:m,onValueChange:e=>{if(r){const t=d.get(e);t&&window.history.replaceState(null,"",`#${t}`)}if(t){const s=Gc.get(t);if(s)for(const t of s)t(e);sessionStorage.setItem(t,e),i&&localStorage.setItem(t,e)}else f(e)},...h,children:s(Wc,{value:p(()=>({valueToIdMap:d}),[d]),children:h.children})})}function Qc({value:e,...t}){const{valueToIdMap:i}=function(){const e=h(Wc);if(!e)throw new Error("You must wrap your component in <Tabs>");return e}();return t.id&&i.set(e,t.id),s(Jc,{value:e,...t,children:t.children})}const Yc=u(null);function Zc(e){return s("pre",{...e,className:pl("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}function ep({ref:e,title:i,allowCopy:r=!0,keepBackground:n=!1,icon:a,viewportProps:l={},children:c,Actions:p=e=>s("div",{...e,className:pl("empty:hidden",e.className)}),...u}){const d=null!==h(Yc),m=o(null);return t("figure",{ref:e,dir:"ltr",...u,tabIndex:-1,className:pl(d?"bg-fd-secondary -mx-px -mb-px last:rounded-b-xl":"my-4 bg-fd-card rounded-xl",n&&"bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)","shiki relative border shadow-sm not-prose overflow-hidden text-sm",u.className),children:[i?t("div",{className:"flex text-fd-muted-foreground items-center gap-2 h-9.5 border-b px-4",children:["string"==typeof a?s("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:a}}):a,s("figcaption",{className:"flex-1 truncate",children:i}),p({className:"-me-2",children:r&&s(tp,{containerRef:m})})]}):p({className:"absolute top-3 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground",children:r&&s(tp,{containerRef:m})}),s("div",{ref:m,...l,role:"region",tabIndex:0,className:pl("text-[0.8125rem] py-3.5 overflow-auto max-h-[600px] fd-scroll-container focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fd-ring",l.className),style:{"--padding-right":i?void 0:"calc(var(--spacing) * 8)",counterSet:u["data-line-numbers"]?"line "+(Number(u["data-line-numbers-start"]??1)-1):void 0,...l.style},children:c})]})}function tp({className:e,containerRef:t,...i}){const r=ql(),[n,a]=zl(()=>{const e=t.current?.getElementsByTagName("pre").item(0);if(!e)return;const i=e.cloneNode(!0);i.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.replaceWith("\n")}),navigator.clipboard.writeText(i.textContent??"")});return s("button",{type:"button","data-checked":n||void 0,className:pl(Fl({className:"hover:text-fd-accent-foreground data-checked:text-fd-accent-foreground",size:"icon-xs"}),e),"aria-label":n?r.codeBlockCopied:r.codeBlockCopy,onClick:a,...i,children:s(n?Cl:_l,{})})}const ip={CodeBlockTab:function(e){return s(Qc,{...e})},CodeBlockTabs:function({ref:e,...t}){const i=o(null),r=null!==h(Yc);return s(Kc,{ref:Gl(i,e),...t,className:pl("bg-fd-card rounded-xl border",!r&&"my-4",t.className),children:s(Yc,{value:p(()=>({containerRef:i,nested:r}),[r]),children:t.children})})},CodeBlockTabsList:function(e){return s(Hc,{...e,className:pl("flex flex-row px-2 overflow-x-auto text-fd-muted-foreground",e.className),children:e.children})},CodeBlockTabsTrigger:function({children:e,...i}){return t($c,{...i,className:pl("relative group inline-flex text-sm font-medium text-nowrap items-center transition-colors gap-2 px-2 py-1.5 hover:text-fd-accent-foreground data-[state=active]:text-fd-primary [&_svg]:size-3.5",i.className),children:[s("div",{className:"absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary"}),e]})},pre:e=>s(ep,{...e,children:s(Zc,{children:e.children})}),Card:function({icon:e,title:i,description:r,...n}){return t(n.href?fl:"div",{...n,"data-card":!0,className:pl("block rounded-xl border bg-fd-card p-4 text-fd-card-foreground transition-colors @max-lg:col-span-full",n.href&&"hover:bg-fd-accent/80",n.className),children:[e?s("div",{className:"not-prose mb-2 w-fit shadow-md rounded-lg border bg-fd-muted p-1.5 text-fd-muted-foreground [&_svg]:size-4",children:e}):null,s("h3",{className:"not-prose mb-1 text-sm font-medium",children:i}),r?s("p",{className:"my-0! text-sm text-fd-muted-foreground",children:r}):null,s("div",{className:"text-sm text-fd-muted-foreground prose-no-margin empty:hidden",children:n.children})]})},Cards:function(e){return s("div",{...e,className:pl("grid grid-cols-2 gap-3 @container",e.className),children:e.children})},a:fl,img:function(e){return s(dl,{sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px",...e,className:pl("rounded-lg",e.className)})},h1:e=>s(Xl,{as:"h1",...e}),h2:e=>s(Xl,{as:"h2",...e}),h3:e=>s(Xl,{as:"h3",...e}),h4:e=>s(Xl,{as:"h4",...e}),h5:e=>s(Xl,{as:"h5",...e}),h6:e=>s(Xl,{as:"h6",...e}),table:function(e){return s("div",{className:"relative overflow-auto prose-no-margin my-6",children:s("table",{...e})})},Callout:function({children:e,title:i,...r}){return t(Vl,{...r,children:[i&&s(Rl,{children:i}),s(Ol,{children:e})]})},CalloutContainer:Vl,CalloutTitle:Rl,CalloutDescription:Ol};function sp({source:i,components:r}){const[n,o]=a(null),[l,p]=a(null);if(c(()=>{let t=!1;return async function(){try{const{default:s}=await Ja(i,{...e,baseUrl:import.meta.url,remarkPlugins:[ft,gt],rehypePlugins:[Tt]});t||(o(()=>s),p(null))}catch(e){t||(p(e.message),o(null))}}(),()=>{t=!0}},[i]),l)return s("pre",{style:{color:"red",whiteSpace:"pre-wrap"},children:l});if(!n)return null;const h={...ip,...r},u=[...i.matchAll(/<([A-Z][a-zA-Z0-9]*)\b/g)].map(e=>e[1]).filter(e=>!!e);for(const e of u)if(!(e in h)){const i=e;h[i]=({children:e})=>t("span",{style:{color:"orange",border:"1px dashed orange",padding:"0 4px",fontFamily:"monospace"},children:["<",i,">",e,"</",i,">"]})}return s(n,{components:h})}function rp(e){const{zoom:r,isRendering:n,isFullscreen:a,onZoom:o,onReset:l,onToggleFullscreen:c,zoomShortcutButtons:p}=e;return t("div",{className:"jk-row gap jk-pg-xsm",children:[s(P,{onClick:()=>o(-.1),icon:s(qe,{size:"small"}),size:"tiny",type:"secondary"}),t("span",{style:{minWidth:"42px",textAlign:"center",fontSize:"0.8rem",userSelect:"none"},children:[Math.round(100*r),"%"]}),s(P,{onClick:()=>o(.1),icon:s(Le,{size:"small"}),size:"tiny",type:"secondary"}),p&&t(i,{children:[s("div",{style:{width:"1px",height:"16px",background:"var(--t-color-gray-4)",margin:"0 4px"}}),s(P,{onClick:()=>o(1-r),size:"tiny",type:"secondary",children:"100%"}),s(P,{onClick:()=>o(2-r),size:"tiny",type:"secondary",children:"200%"}),s(P,{onClick:l,icon:s(Ve,{size:"small"}),size:"tiny",type:"secondary",children:s(N,{className:"tt-se",children:"reset"})})]}),s("div",{style:{flex:1}}),n&&s(Re,{size:"small"}),s(P,{onClick:c,icon:s(a?Te:Pe,{size:"small"}),size:"tiny",type:"secondary"})]})}const np='{\n "logLevel": "error",\n "securityLevel": "loose",\n "startOnLoad": false\n}';function ap({error:e}){return t("div",{style:{background:"var(--t-color-error-light, #fee2e2)",color:"var(--t-color-error, #dc2626)",borderTop:"2px solid var(--t-color-error, #dc2626)",padding:"8px 12px",flexShrink:0,overflow:"auto",maxHeight:"140px",display:"flex",gap:"8px",alignItems:"flex-start"},children:[s(Oe,{size:"small",style:{flexShrink:0,marginTop:"2px"}}),s("pre",{style:{fontSize:"0.75rem",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"monospace"},children:e})]})}const op=e=>{const{source:r,mermaidTheme:n="default",configJson:p=np,fileName:h="diagram",copyButtons:u=!0,downloadButtons:d=!0,zoomShortcutButtons:m=!0}=e,[f,g]=a(1),[x,y]=a({x:0,y:0}),[v,b]=a(!1),[w,k]=a(!1),C=o({x:0,y:0}),E=o(null),S=o(null);c(()=>{const e=()=>k(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[]);const _=l(e=>{g(t=>Math.max(.1,Math.min(8,parseFloat((t+e).toFixed(2)))))},[]),A=l(()=>{g(1),y({x:0,y:0})},[]),I=l(e=>{0===e.button&&(b(!0),C.current={x:e.clientX-x.x,y:e.clientY-x.y})},[x]),T=l(e=>{v&&y({x:e.clientX-C.current.x,y:e.clientY-C.current.y})},[v]),L=l(()=>b(!1),[]);c(()=>{const e=S.current;if(!e)return;const t=e=>{e.preventDefault();const t=.001*-e.deltaY;g(e=>Math.max(.1,Math.min(8,parseFloat((e+t).toFixed(3)))))};return e.addEventListener("wheel",t,{passive:!1}),()=>e.removeEventListener("wheel",t)},[]);const[V,R]=a(""),[O,j]=a(""),[D,M]=a(!1),F=o(null),B=o(0);c(()=>{const e=++B.current;M(!0);const t=setTimeout(async()=>{try{const{default:t}=await import("./mermaid.core-DoQpgFF5.js").then(function(e){return e.al});let i={};try{i=JSON.parse(p)}catch(e){console.warn("Error on parsing configJson",e)}t.initialize({startOnLoad:!1,theme:n,securityLevel:"loose",...i});const{svg:s}=await t.render(`mermaid-render-${e}`,r);if(s.includes('aria-roledescription="error"')){const e=s.match(/<text class="error-text"[^>]*>([^<]*)<\/text>/);throw new Error(e?.[1]??"Syntax error")}e===B.current&&(R(s),j(""),M(!1))}catch(t){if(document.getElementById(`dmermaid-render-${e}`)?.remove(),e===B.current){const e=t instanceof Error?t.message:String(t);j(e.replace(/^Error:\s*/i,"")),R(""),M(!1)}}},400);return()=>{clearTimeout(t)}},[r,n,p]);const U=l(()=>{const e=F.current;return e?Gt.toBlob(e,{bgcolor:"dark"===n?"#1e1e2e":"#ffffff"}):Promise.reject(new Error("No SVG"))},[n]),z=l(()=>{if(!V)return;const e=new Blob([V],{type:"image/svg+xml"});oe(e,`${h}.svg`)},[V,h]),q=l(async()=>{try{const e=await U();oe(e,`${h}.png`)}catch(e){console.error("PNG export failed",e)}},[U,h]),X=l(async()=>{try{const e=await U();await navigator.clipboard.write([new ClipboardItem({"image/png":e})])}catch(e){console.error("PNG copy failed",e)}},[U]),G=l(async()=>{E.current&&(document.fullscreenElement?await document.exitFullscreen():await E.current.requestFullscreen())},[]);return s("div",{className:"ht-100 jk-col ow-hn flex-1 wh-100",ref:E,children:O?s(ap,{error:O}):t(i,{children:[s(rp,{zoom:f,isRendering:D,isFullscreen:w,onZoom:_,onReset:A,onToggleFullscreen:G,renderedSvg:V,mermaidTheme:n,zoomShortcutButtons:m}),(u||d)&&t("div",{className:"jk-row gap",children:[u&&t(i,{children:[s(J,{disabled:!V,iconSize:"tiny",text:V,children:"SVG"},"copy-svg"),s(P,{onClick:X,disabled:!V,icon:s(Ae,{size:"small"}),size:"tiny",children:"PNG"})]}),d&&t(i,{children:[s(P,{onClick:z,disabled:!V,icon:s(Ie,{size:"small"}),size:"tiny",children:"SVG"}),s(P,{onClick:q,disabled:!V,icon:s(Ie,{size:"small"}),size:"tiny",children:"PNG"})]})]}),t("div",{ref:S,className:"wh-100",style:{flex:1,overflow:"hidden",cursor:v?"grabbing":"grab",position:"relative",userSelect:"none",background:"dark"===n?"#1e1e2e":"var(--t-color-bg-1, #f8fafc)"},onMouseDown:I,onMouseMove:T,onMouseUp:L,onMouseLeave:L,children:[s("div",{style:{position:"absolute",top:"50%",left:"50%",transform:`translate(calc(-50% + ${x.x}px), calc(-50% + ${x.y}px)) scale(${f})`,transformOrigin:"center center"},children:V?s("div",{ref:F,dangerouslySetInnerHTML:{__html:V},style:{maxWidth:"100%",lineHeight:0}}):D||O?null:t("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"12px",color:"var(--t-color-gray-5)",padding:"3rem",userSelect:"none"},children:[s(Je,{size:"huge"}),s(N,{className:"tt-se",children:"start typing to see your diagram"})]})}),D&&!V&&s("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(0,0,0,0.05)"},children:s(Re,{size:"large"})}),s("div",{style:{position:"absolute",bottom:"8px",right:"8px",fontSize:"0.7rem",color:"var(--t-color-gray-5)",background:"var(--t-color-bg)",padding:"3px 7px",borderRadius:"4px",border:"1px solid var(--t-color-gray-3)",pointerEvents:"none",userSelect:"none"},children:"scroll to zoom · drag to pan"})]})]})})},lp=[Xe.COMPILING,Xe.COMPILED,Xe.COMPILATION_ERROR],cp=({testCase:e,timeLimit:i,memoryLimit:r})=>{const{timeUsed:n,timeLimitExceeded:a,memoryUsed:o,memoryLimitExceeded:l,exitCode:c,runtimeError:p}=Vt(e,lp.includes(e.status)?10*q:i,lp.includes(e.status)?1048576:r);if(e.status===Xe.COMPILATION_ERROR)return s("div",{className:"jk-pg-xsm jk-row gap left tx-t",style:{lineHeight:1},children:s("span",{className:"tt-se cr-er",children:s(N,{children:"compilation error"})})});const h=p&&!a&&!l;return t("div",{className:"jk-col gap left stretch tx-s",style:{lineHeight:1},children:[t("div",{className:re("jk-row left",{"cr-er":a}),children:[s(N,{className:"tt-se",children:"time used"}),": ",n," ",s(N,{children:"ms"})," / ",i," ",s(N,{children:"ms"})]}),a&&s(N,{className:"tt-se cr-er jk-pg-l",children:"time limit exceeded"}),t("div",{className:re("jk-row left",{"cr-er":l}),children:[s(N,{className:"tt-se",children:"memory used"}),": ",o," ",s(N,{children:"KB"})," / ",r," ",s(N,{children:"KB"})]}),l&&s(N,{className:"tt-se cr-er jk-pg-l",children:"memory limit exceeded"}),t("div",{className:re("jk-row left",{"cr-er":h}),children:[s(N,{className:"tt-se",children:"exit code"}),": ",c]}),h&&s(N,{className:"tt-se cr-er jk-pg-l",children:"runtime error"})]})},pp=({onChange:e,testCasesValues:t,sample:i=!1})=>{const{addNotification:r}=R();return s("div",{"data-tooltip-id":"jk-tooltip","data-tooltip-content":`add ${i?"sample":"custom sample"} case`,"data-tooltip-place":"left",className:"jk-button secondary small only-icon jk-br-ie",children:s(be,{size:"small",onClick:()=>{const n=t.filter(e=>!e.sample),a=t.filter(e=>e.sample),o=i?a:n;if(o.length<(i?30:16)){const t=globalThis.crypto.randomUUID(),s=Lt(o.map(e=>e.index));e?.({onTestCasesChange:e=>({...e,[t]:{key:t,index:s,in:"",out:"",testOut:"",withPE:a?.[0]?.withPE??!0,err:"",log:"",hidden:!1,sample:i,status:Xe.NONE,createdAt:0}})})}else r({type:Y.QUIET,message:s(N,{children:"maximum test cases achieved"})})}})})},hp=e=>{const{testCases:r={},onChangeRef:n,timeLimit:o,memoryLimit:l,direction:p,enableAddSampleCases:h,enableAddCustomSampleCases:u}=e,d=Object.values(r).sort((e,t)=>"*"===e.key?-1:"*"===t.key?1:e.sample!==t.sample?+t.sample-+e.sample:e.index-t.index),[m,f]=a(d[0]?.key||"*");c(()=>{const e=Object.values(r);e.length&&e[0]&&(e.some(e=>e.key===m)||f(e[0].key))},[m,r]);const[g,x]=a("output"),[y,v]=a("input"),b=r[m],w=!!b&&(Vt(b,o,l).failed||!!b?.err||[Xe.FAILED,Xe.COMPILATION_ERROR,Xe.FAILED_TEST_CASE].includes(b.status));c(()=>{x(w?"error":"output")},[w]);const k=b?.status===Xe.RECEIVED||b?.status===Xe.COMPILING||b?.status===Xe.RUNNING_TEST_CASES||b?.status===Xe.RUNNING_TEST_CASE,C=k&&s("div",{className:"jk-overlay jk-overlay-backdrop jk-row center pn-ae",style:{background:"transparent",position:"absolute"},children:t("div",{className:"jk-row",style:{alignItems:"baseline"},children:[s(N,{className:"tt-se",children:He[b?.status].label})," ",s("div",{className:"dot-flashing"})]})}),E={};b?.testOut&&(E["test-output"]={key:"test-output",header:t("div",{className:"jk-row gap left nowrap",children:[s(N,{className:"tt-se",children:"expected output"}),b?.withPE&&s(je,{text:b?.testOut||""})]}),body:s("div",{className:"ht-100 jk-col stretch nowrap",children:s("div",{className:"jk-pg-xsm ow-ao flex-1",children:s("span",{className:"jk-text-stdout",children:b?.testOut})})})}),E.output={key:"output",header:s(N,{className:re("tt-se"),children:"your output"}),body:t("div",{className:"ht-100 jk-col stretch nowrap pn-re",children:[C,s("div",{className:"jk-pg-xsm ow-ao flex-1",children:s("span",{className:"jk-text-stdout",children:b?.out})})]})},w&&(E.error={key:"error",header:s(N,{className:re("tt-se"),children:"error"}),body:t("div",{className:"ht-100 jk-col stretch nowrap pn-re",children:[C,s("div",b&&!b?.err?{className:"jk-row",children:s(cp,{testCase:b,timeLimit:o,memoryLimit:l})}:{className:"jk-pg-xsm ow-ao flex-1",children:s("span",{className:"jk-text-stderr tx-t bc-er cr-we jk-pg-xsm",children:b?.err})})]})});const S={input:{key:"input",header:s(N,{className:"tt-se",children:"input"}),body:(b?.sample?h:u)&&n?.current?s(X,{style:{height:"calc(100% - 4px)",overflow:"auto",width:"calc(100% - 4px)",margin:2,position:"absolute"},wrap:"off",className:"tx-s flex-1",value:b?.in,disabled:!b,onChange:b?e=>n?.current?.({onTestCasesChange:t=>({...t,[b?.key]:{...b,in:e}})}):void 0}):s("div",{className:"flex-1 ow-ao jk-pg-xsm",children:s("span",{className:"jk-text-stdout",children:b?.in})})}};return b?.sample&&h&&(S.output={key:"output",header:s(N,{className:"tt-se",children:"expected output"}),body:n?.current?s(X,{style:{height:"calc(100% - 4px)",overflow:"auto",width:"calc(100% - 4px)",margin:2,position:"absolute"},wrap:"off",className:"tx-s flex-1",value:b?.testOut,onChange:e=>n?.current?.({onTestCasesChange:t=>({...t,[b?.key]:{...b,testOut:e}})})}):s("div",{className:"flex-1 ow-ao jk-pg-xsm",children:s("span",{className:"jk-text-stdout",children:b?.testOut})})},S.settings={key:"settings",header:s(N,{className:"tt-se",children:"settings"}),body:t("div",{className:"jk-col gap jk-pg-sm",children:[s(G,{size:"small",checked:b?.hidden,leftLabel:s(N,{className:"tt-se tx-s",children:"no hidden"}),rightLabel:s(N,{className:"tt-se tx-s",children:"hidden"}),onChange:n?.current?e=>n?.current?.({onTestCasesChange:t=>({...t,[b?.key]:{...b,hidden:e}})}):void 0}),s(G,{size:"small",checked:b?.withPE,leftLabel:s(N,{className:"tt-se tx-s",children:"without PE"}),rightLabel:s(N,{className:"tt-se tx-s",children:"with PE"}),onChange:n?.current?e=>n?.current?.({onTestCasesChange:t=>({...t,[b?.key]:{...b,withPE:e}})}):void 0})]})}),t("div",{className:"jk-code-mirror-editor-test-cases jk-row stretch nowrap",children:[t("div",{className:"jk-col nowrap stretch top tx-t border-right-highlight-light test-cases-header ow-ao",children:[s("div",{className:"jk-row ta-cr fw-bd jk-pg-xsm-tb border-bottom-highlight-light",children:s(N,{className:"tt-se",style:{width:48,lineHeight:1},children:"test cases"})}),d.map(e=>{const r=((e,t,i)=>{const{compilationError:s,timeLimitExceeded:r,memoryLimitExceeded:n,runtimeError:a,timeUsed:o,memoryUsed:l,exitCode:c}=Vt(e,t,i);return{verdict:Rt(e,s,r,n,a),timeUsed:o,memoryUsed:l,exitCode:c}})(e,o,l).verdict;return t(L,{"data-tooltip-id":"jk-tooltip","data-tooltip-content":(e.sample?"sample":"custom sample")+" case","data-tooltip-place":"left",onClick:()=>f(e.key),onKeyDownClick:!0,className:re("jk-row hoverable jk-pg-xsm space-between",{"bc-ht-lt":e.key===m}),style:{minWidth:80},children:[t("div",{className:"jk-row left",children:["*"===e.key?s(Be,{size:"small"}):s(Be,{letter:""+(e.index+1)%10,letterSize:12,size:"small",className:re({"cr-io-lt":e.sample})}),(e.sample?h:u)&&"*"!==e.key&&t(i,{children:[" ",s(Se,{size:"tiny",className:"clickable br-50-pc","data-tooltip-id":"jk-tooltip","data-tooltip-content":"delete case","data-tooltip-place":"right",onClick:()=>{n?.current?.({onTestCasesChange:t=>{const i={...t};return delete i[e.key],i}})}})]})]}),e.status!==Xe.NONE&&([Xe.EXECUTED_TEST_CASE,Xe.FAILED_TEST_CASE,Xe.COMPILATION_ERROR].includes(e.status)?e.testOut||r===Pt.CE||r===Pt.MLE||r===Pt.TLE||r===Pt.RE?t(i,{children:[" ",s(W,{verdict:r,small:!0})]}):s("div",{"data-tooltip-id":"jk-tooltip","data-tooltip-content":"success executed",className:"cr-io-lt",style:{lineHeight:1,padding:"2px 4px"},children:s(Me,{size:"tiny",filledCircle:!0})}):t(i,{children:[" ",s(De,{size:"tiny"})]}))]},e.key)}),h&&n?.current&&s("div",{className:"jk-row jk-pg-xsm-tb border-top-highlight-light",children:s(pp,{onChange:n?.current,testCasesValues:d,testCases:r,sample:!0})}),u&&n?.current&&s("div",{className:"jk-row jk-pg-xsm-tb border-top-highlight-light",children:s(pp,{onChange:n?.current,testCasesValues:d,testCases:r})})]}),!h&&b?.hidden?s("div",{className:"jk-row center ht-100 flex-1",children:s(N,{className:"tt-se jk-tag bc-io-lt",children:"test input hidden"})}):t(H,{direction:"row"===p?"column":"row",className:"flex-1 ow-hn",children:[t("div",{className:"jk-col extend stretch nowrap",children:[s($,{tabs:S,selectedTabKey:y,onChange:v,tabButtonsClassName:"tx-t"}),s("div",{className:"flex-1 wh-100 pn-re ow-hn",children:s(K,{tabs:S,selectedTabKey:y})})]}),t("div",{className:"jk-col stretch test-cases-output-stderr",children:[s($,{tabs:E,selectedTabKey:g,onChange:x,tabButtonsClassName:"tx-t",extraNodesPlacement:"left",extraNodes:[s("div",{children:s(Q,{popoverClassName:"bc-sf-hi jk-br-ie elevation-1 jk-pg-xsm",content:t("div",{className:"pn-re",children:[k&&t("div",{className:"jk-row",style:{alignItems:"baseline"},children:[s(N,{className:"tt-se",children:He[b?.status].label})," ",s("div",{className:"dot-flashing"})]}),b&&!k&&b.status!==Xe.NONE?s(cp,{testCase:b,timeLimit:o,memoryLimit:l}):!!b&&!k&&s(N,{className:"tt-se",children:b.sample?"unexecuted sample case":"unexecuted test case"})]}),children:s("div",{className:re("jk-row jk-pg-xsm-l",{"cr-er-lt":w,"cr-io-lt":!w}),children:s(Fe,{filledCircle:!0,size:"tiny"})})})},"info")]}),s("div",{className:"flex-1 wh-100 pn-re ow-hn",children:s(K,{tabs:E,selectedTabKey:g})})]})]})]})};function up(e){const{readOnly:i,languages:r=k.map(e=>({value:e,label:le[e]?.label||e})),onChange:n,leftButtons:o,centerButtons:l,rightButtons:c,testCases:h,tabSize:u=4,fontSize:d=14,timeLimit:m=q,memoryLimit:f=1048576,expandPosition:g,className:x,enableAddCustomSampleCases:y,enableAddSampleCases:v,onlyCodeEditor:b,files:w,currentFileName:E,triggerFocus:S,mdEditorRef:_,withoutRunCodeButton:A,mermaidTheme:I,mermaidConfigJson:T,mermaidFileName:L}=e,{source:V="",language:R=$e.TEXT}=w?.[E]??{},O=j(i?void 0:n),D=Z(e=>e.user.settings[C.THEME]),[M,B]=a("row"),[U,z]=a(!1),J=ee(e=>e.viewPort.isSmallScreen),X=p(()=>We.includes(R)?s(hp,{testCases:h,timeLimit:m,memoryLimit:f,onChangeRef:O,direction:M,enableAddSampleCases:!i&&!!v,enableAddCustomSampleCases:!i&&!!y}):R===$e.MERMAID?s(op,{source:V,mermaidTheme:I,configJson:T,fileName:L}):R===$e.MDX?s("div",{className:"ht-100 wh-100 ow-ao jk-pg-xsm",children:s(sp,{source:V})}):R===$e.MARKDOWN?s(ve,{ref:_,className:"ow-ao ht-100",value:V,onChange:e=>O?.current?.({source:e})}):null,[V,R,h,m,f,O,M,i,v,y,_,I,T,L]),G=null!=X,W=b||!G,$=p(()=>({testCases:h||{},timeLimit:m,memoryLimit:f,enableAddSampleCases:!!v,enableAddCustomSampleCases:!!y}),[y,v,f,h,m]),K=p(()=>s(Kt,{preferredTheme:D,language:R,readOnly:i,source:V,tabSize:u,fontSize:d,languages:r,onlyFirstPane:W,triggerFocus:S,setExpanded:z,files:w,currentFileName:E,leftButtons:o,centerButtons:l,rightButtons:c,onChangeRef:O,runner:$,expandPosition:g,expanded:U,withoutRunCodeButton:A}),[D,R,i,V,u,d,r,W,S,w,E,o,l,c,O,$,g,U,A]),Q=p(()=>G?{align:"right",expandLabel:s(N,{className:"label tx-t",children:"test cases"})}:void 0,[G]),Y=p(()=>G&&J?{align:"right",expandLabel:s(N,{className:"label tx-t",children:"code editor"})}:void 0,[G,J]),{ref:ie,width:se=0}=F(),ne=s("div",{className:re("jk-code-mirror-editor-layout jk-br-ie jk-col nowrap stretch bc-sf-md ht-100 wh-100 pn-re",{"elevation-1":U},x),style:{overflow:U?"hidden":void 0},children:t("div",{className:"flex-1 ow-hn jk-row nowrap stretch",children:[s(Ut,{fileTreePanelRef:ie,files:w,currentFileName:E,onChangeRef:O,readOnly:i}),s("div",{className:"jk-row transition-width flex-1",style:{width:`calc(100% - ${se}px)`},children:0===Object.keys(w).length?t("div",{className:"jk-col gap jk-pg",children:[s(N,{className:"tt-se",children:"there are no files in the editor, create a new file to start using the editor"}),s(P,{type:"secondary",onClick:()=>O.current?.({newFileName:""}),children:s(N,{className:"tt-se",children:"create a new file"})})]}):W?K:t(H,{direction:M,minSize:80,onlyFirstPane:!G,closableSecondPane:Q,closableFirstPane:Y,toggleable:!0,onChangeDirection:B,onePanelAtATime:J,className:"ht-100",children:[K,X]})})]})});return U?s(te,{children:s("div",{className:"jk-overlay jk-overlay-backdrop",children:s("div",{style:{position:"absolute",...g},children:ne})})}):ne}function dp(e){let t={};if("undefined"!=typeof localStorage){const i=e&&localStorage.getItem(e)||"{}";xe(i)&&(t=JSON.parse(i))}return t}function mp(e,t,i,s){const r=j(i),n=j(s),o=l(()=>{const i={},s=Object.entries(n.current(dp(e)));for(const[e,n]of Object.entries(t))i[e]=r.current(n,s.find(([t])=>t===e)?.[1]);for(const[e,t]of s)i[e]||(i[e]=t);return i},[e,n,r,t]),[p,h]=a(o());return c(()=>{h(o())},[o]),c(()=>{const t=setTimeout(()=>{const t=JSON.stringify(p);localStorage.getItem(e)!==t&&localStorage.setItem(e,t)},300);return()=>clearTimeout(t)},[e,p]),[p,h]}const fp=e=>le[e]?.fileExtension[0]??"source",gp=(e,t)=>e?`${e}/${t}`:t,xp=(e,t)=>{const i={};for(const[s,r]of Object.entries(e))i[s]={...r,out:t?.[s]?.out??r?.out??"",err:t?.[s]?.err??r?.err??"",log:t?.[s]?.log??r?.log??"",status:t?.[s]?.status??r?.status??Xe.NONE,createdAt:t?.[s]?.createdAt??r?.createdAt??0},"*"===s&&(i[s].in=t?.[s]?.in??r?.in??"");for(const[e,s]of Object.entries(t??{}))i[e]||(i[e]=s);return i},yp=(e,t)=>({...t,...e}),vp=(e,t,i)=>{let s=`${e}${t}`,r=1;for(;i(s);)s=`${e}(${r})${t}`,r++;return s},bp=e=>{const t={};for(const[i,s]of Object.entries(e||{}))t[i]={lastFileName:"string"==typeof s?.lastFileName?s.lastFileName:""};return t},wp=e=>{const t={};for(const[i,s]of Object.entries(e||{})){t[i]={};for(const[e,r]of Object.entries(s))!1===r?.sample&&(t[i][e]={key:e,in:r?.in||"",testOut:r?.testOut||"",withPE:r?.withPE,sample:!1,hidden:r?.hidden,index:r?.index??-1,createdAt:r?.createdAt??0,out:r?.out||"",err:r?.err||"",log:r?.log||"",status:r?.status||Xe.NONE})}return t};function kp(e){const{ref:t,className:i,expandPosition:r,initialTestCases:n={},initialFileName:l,storeKey:p,languages:h,leftButtons:u,centerButtons:d,rightButtons:m,onFilesChange:f,onCurrentFileNameChange:g,onTestCasesChange:x,initialFiles:v,enableAddSampleCases:b,enableAddCustomSampleCases:w,onIsRunningChange:k,readOnly:C,onCodeRunStatusChange:_,onlyCodeEditor:A,withoutRunCodeButton:I,mermaidTheme:T,mermaidConfigJson:P,mermaidFileName:L}=e,V=Z(e=>e.user.nickname),{addErrorNotification:O}=R(),D=ye(V),[M,F]=function(e,t){const i=dp(e),[s,r]=a({...t,...i}),n=o(t);n.current=t;const l=o(i);return l.current=i,c(()=>{r({...n.current,...l.current})},[e]),c(()=>{const t=setTimeout(()=>{if(e){const t=JSON.stringify(s);localStorage.getItem(e)!==t&&localStorage.setItem(e,t)}},300);return()=>clearTimeout(t)},[e,s]),[s,r]}(D,{theme:S.LIGHT,lastLanguageUsed:$e.CPP,tabSize:2,fontSize:14});let B=M.lastLanguageUsed;h?.length&&!h.some(e=>e.value===B)&&h[0]&&(B=h[0].value);const U=(e=>t=>{const i={};for(const[s,r]of Object.entries(t||{})){i[s]={};let t=1;for(const[n,a]of Object.entries(r||{}))if("string"==typeof a){const r=`source-${t}.${fp(n)}`;i[s][r]={source:a,language:e?.some(({value:e})=>e===n)?n:$e.TEXT,index:t,name:r,hidden:!1,protected:!1,readonly:!1,folderPath:"",description:"",active:!1},t++}else if("object"==typeof a&&null!==a){const t=se("folderPath"in a&&"string"==typeof a?.folderPath?a.folderPath:""),r=se("name"in a&&"string"==typeof a?.name?a.name:""),n=i[s]?.[gp(t,r)]?vp(r,`.${fp("language"in a&&"string"==typeof a?.language?a.language:"")}`,e=>!!i[s]?.[gp(t,e)]):r,o=gp(t,n);i[s][o]={source:"source"in a&&"string"==typeof a?.source?a?.source:"",language:("language"in a&&"string"==typeof a?.language?e?.some(({value:e})=>e===a?.language)?a?.language:$e.TEXT:"")||$e.TEXT,index:"index"in a&&"number"==typeof a?.index?a?.index:0,name:n,hidden:"hidden"in a&&"boolean"==typeof a?.hidden&&a.hidden,protected:"protected"in a&&"boolean"==typeof a?.protected&&a.protected,readonly:"readonly"in a&&"boolean"==typeof a?.readonly&&a.readonly,folderPath:t,description:"description"in a&&"string"==typeof a?.description?a?.description:"",active:!1}}}for(const[e,t]of Object.entries(i)){i[e]={};for(const[,s]of Object.entries(t||{}))s.name||(s.name=vp("recovered",`.${fp(s.language)}`,t=>!!i[e]?.[gp(s.folderPath,t)])),i[e][gp(s.folderPath,s.name)]=s}return i})(h),[z]=ie(U({[p]:{...v}})),[J,q]=mp(me(V),z,yp,U),X=j(f),G=J[p]||E;c(()=>X.current?.(G),[G,X]);const W=l??Object.keys(G)[0]??(H=B,le[H]?.mainFilename??"main.source");var H;const[$]=ie({[p]:{lastFileName:W}}),[K,Q]=mp(fe(V),$,(e,t)=>({...e,...t}),bp),Y=j(g),ee=K[p]?.lastFileName??W;c(()=>Y.current?.(ee),[ee,Y]);const te=e=>{Q(t=>({...t,[p]:{...t[p],lastFileName:e}})),q(t=>{if(t[p]?.[ee]){const i=Object.fromEntries(Object.entries(t[p]).map(([t,i])=>[t,"object"==typeof i&&null!==i?{...i,active:t===e}:i]));return{...t,[p]:i}}return t})},re=p,[ne]=ie(((e,t)=>{const i={...t},s={[e]:i};return 0===Object.keys(t).length&&(i["*"]={key:"*",in:"",testOut:"",withPE:!1,sample:!1,hidden:!1,index:-1,createdAt:0,out:"",err:"",log:"",status:Xe.NONE}),s})(re,n)),[ae,oe]=mp(ge(V),ne,xp,wp),ce=j(x),pe=ae[re]??ne[re]??{};c(()=>{ce.current?.(pe)},[ce,pe]);const[he,ue]=a(0),de=()=>setTimeout(()=>ue(e=>e+1),200),xe=o(null);y(t,()=>({setFile:e=>{q(t=>{if(t[p]){const i=se(e.folderPath),s=gp(i,e.name);return{...t,[p]:{...t[p],[s]:{...e,folderPath:i}}}}return t})},markdownGetSelection:()=>xe.current?.getSelectionMarkdown()??"",markdownReplaceSelectionWithMarkdown:e=>xe.current?.replaceSelectionWithMarkdown(e),markdownHighlightSelectionNodes:e=>xe.current?.highlightSelectionNodes(e),markdownClearHighlight:()=>xe.current?.clearHighlight()}),[q,p]);const ve=(e,t,i,s,r)=>{const n=e[p]||{};if(n[t]){const a=(void 0!==s?s:n[t]?.folderPath)||"",o=gp(a,i),l={...n[t],name:i,folderPath:a,...void 0!==r&&{description:r}},{[t]:c,...h}={...n};return h[o]=l,{...e,[p]:h}}return e};return s(up,{triggerFocus:he,files:G,currentFileName:ee,className:i,theme:M.theme,tabSize:M.tabSize,fontSize:M.fontSize,languages:h,readOnly:C,onChange:({source:e,language:t,onTestCasesChange:i,theme:r,tabSize:n,fontSize:a,isRunning:o,codeRunStatus:l,newFileName:c,fileName:h,fileNameEdited:u,fileNameDeleted:d})=>{if(l&&_?.(l,{files:G,currentFileName:ee,testCases:pe}),"boolean"==typeof o&&k?.(o),"string"==typeof e&&q(t=>t[p]?.[ee]?{...t,[p]:{...t[p],[ee]:{...t[p][ee],source:e}}}:t),t&&(F(e=>({...e,lastLanguageUsed:t})),q(e=>{const i={...e[p]||{}},s=e[p]?.[ee],r=s?.folderPath??"",n=vp((e=>{const t=e.lastIndexOf(".");return-1!==t?e.substring(0,t):e})(s?.name??""),`.${fp(t)}`,e=>!!i[gp(r,e)]),a=gp(r,n);if(e[p]?.[ee]){const i={...e,[p]:{...e[p],[ee]:{...e[p]?.[ee],language:t}}};return setTimeout(()=>{te(a)},100),ve(i,ee,n,r)}return e}),de()),i&&oe(e=>({...e,[re]:i(e[re]||{})})),r&&(F(e=>({...e,theme:r})),de()),n&&(F(e=>({...e,tabSize:n})),de()),a&&(F(e=>({...e,fontSize:a})),de()),void 0!==c&&(q(e=>{const t={...e[p]||{}},i=c,s=vp("new",`.${fp(B)}`,e=>!!t[gp(i,e)]),r=gp(i,s);te(r);const n=Object.values(t).reduce((e,{index:t})=>Math.max(e,t||0),0);return t[r]={source:le[B]?.templateSourceCode||"",language:B,index:n+1,name:s,hidden:!1,protected:!1,readonly:!1,folderPath:i,description:"",active:!0},{...e,[p]:t}}),de()),h&&(te(h),de()),"string"==typeof u?.[0]&&"string"==typeof u?.[1]){const e=u[0],t=u[1],i=G,r=void 0!==u[2]?u[2]:i[e]?.folderPath??"",n=gp(r,t);i[n]&&n!==e?O(s(N,{className:"tt-se",children:"file name already exists"})):(q(i=>ve(i,e,t,r,u[3])),te(n),de())}d&&(q(e=>{const t=e[p]||{},{[d]:i,...s}={...t};return te(Object.keys(t)[0]??""),{...e,[p]:s}}),de())},leftButtons:u,centerButtons:d,rightButtons:m,testCases:pe,expandPosition:r,enableAddSampleCases:b,enableAddCustomSampleCases:w,onlyCodeEditor:A,mdEditorRef:xe,withoutRunCodeButton:I,mermaidTheme:T,mermaidConfigJson:P,mermaidFileName:L})}export{kp as default};