@patternfly/patternfly-doc-core 1.12.0 → 1.12.2
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.
- package/.astro/collections/{examples.schema.json → react-component-docs.schema.json} +4 -3
- package/.astro/content-modules.mjs +84 -2
- package/.astro/content.d.ts +3 -11
- package/cli/cli.ts +35 -16
- package/cli/convertToMDX.ts +10 -3
- package/cli/createCollectionContent.ts +2 -1
- package/dist/cli/cli.js +17 -6
- package/dist/cli/convertToMDX.js +8 -3
- package/dist/cli/createCollectionContent.js +2 -1
- package/dist/docs/_astro/AutoLinkHeader.BijNRLMB.js +1 -0
- package/dist/docs/_astro/CSSTable.-Emc9iTg.js +1 -0
- package/dist/docs/_astro/DropdownList.DP2npVYh.js +1 -0
- package/dist/docs/_astro/Label.CM_es7Cu.js +1 -0
- package/dist/docs/_astro/LiveExample.B5R4Dzng.js +263 -0
- package/dist/docs/_astro/Navigation.B2RHZcqO.js +1 -0
- package/dist/docs/_astro/PageSidebarBody.DgDLnRuY.js +1 -0
- package/dist/docs/_astro/PropsTables.D6ZI3FGj.css +1 -0
- package/dist/docs/_astro/PropsTables.YkW1puJk.js +1 -0
- package/dist/docs/_astro/SearchInput.CQ7aDztp.js +1 -0
- package/dist/docs/_astro/SectionGallery.B0I2mi5J.js +1 -0
- package/dist/docs/_astro/StackItem.CMxajCCo.js +1 -0
- package/dist/docs/_astro/Toolbar.BNjGRsAQ.js +1 -0
- package/dist/docs/_astro/ToolbarContent.CAAHjZHW.js +1 -0
- package/dist/{_astro/_page_.D1z73Byz.css → docs/_astro/_page_.BG_fQ4i5.css} +1 -1
- package/dist/docs/_astro/angle-down-icon.Dqz5ba9D.js +1 -0
- package/dist/docs/_astro/c_table__sticky_cell_InsetInlineStart.DGzYmtkF.js +8 -0
- package/dist/{_astro/divider.BLVh3KnH.js → docs/_astro/divider.BP4XR7uq.js} +1 -1
- package/dist/docs/_astro/index.DGdw5tfb.js +16 -0
- package/dist/{_astro/patternfly_charts.Dp3KzAU6.js → docs/_astro/patternfly_charts.CpLYMsW2.js} +23 -30
- package/dist/docs/_astro/resizeObserver.BgQpxO8W.js +1 -0
- package/dist/{_routes.json → docs/_routes.json} +1 -3
- package/dist/{_worker.js → docs/_worker.js}/_@astrojs-ssr-adapter.mjs +1 -1
- package/dist/{_worker.js → docs/_worker.js}/_astro-internal_middleware.mjs +3 -3
- package/dist/docs/_worker.js/chunks/Backdrop_ByJvccKQ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Backdrop_D12wBLrB.mjs +1 -0
- package/dist/docs/_worker.js/chunks/BackgroundImage_7zaRIuh-.mjs +1 -0
- package/dist/docs/_worker.js/chunks/BackgroundImage_BFUrU51J.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Badge_DloPmeMn.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Badge_DxGDbEGv.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Banner_4Te4yy7I.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Banner_FbFCGml0.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Brand_Cjeb58fX.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Brand_DZEvbkMH.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Breadcrumb_DkNDUMw0.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Breadcrumb_bVSwIfTk.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Button_BqggYTWh.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Button_DbZb-z5h.mjs +1 -0
- package/dist/docs/_worker.js/chunks/CalendarMonth_BdoIQD1o.mjs +1 -0
- package/dist/docs/_worker.js/chunks/CalendarMonth_BqZc2rYW.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Card_BW6WmwTW.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Card_CEDol7Xx.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Checkbox_BqVpiIvF.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Checkbox_DSYhfv7p.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Chip_BciXepRF.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Chip_C23BxFTk.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ClipboardCopy_BjySfoK1.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ClipboardCopy_CvrD2b3T.mjs +1 -0
- package/dist/docs/_worker.js/chunks/CodeBlock_CuH1PrfL.mjs +1 -0
- package/dist/docs/_worker.js/chunks/CodeBlock_DK5AauFn.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Content_BfZIFUr8.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Content_lBUC3eEp.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DataList_CSJAkMMZ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DataList_CaFvg0uz.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DatePicker_Cw2abdEU.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DatePicker_bYwsFHXL.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DescriptionList_BTTyevMb.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DescriptionList_Dr51d-67.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Divider_BgOt1--F.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Divider_Bh7n4QTo.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DragDrop_BF-aF6Z8.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DragDrop_DId590rN.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Drawer_BVywTMVo.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Drawer_RrCnySEa.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Dropdown_BjtqviYW.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Dropdown_GiUvjFPw.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DualListSelector_8uLukfP0.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DualListSelector_Bgj1IWqe.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DualListSelector_C5QjTplp.mjs +1 -0
- package/dist/docs/_worker.js/chunks/DualListSelector_DLgspM0s.mjs +1 -0
- package/dist/docs/_worker.js/chunks/EmptyState_Ct_PJba3.mjs +1 -0
- package/dist/docs/_worker.js/chunks/EmptyState_Dk3hKJlg.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ExpandableSection_DSw76PjZ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ExpandableSection_vUQO3FgG.mjs +1 -0
- package/dist/docs/_worker.js/chunks/FileUpload_CEvZ0G-d.mjs +1 -0
- package/dist/docs/_worker.js/chunks/FileUpload_Ci_s8Ghd.mjs +1 -0
- package/dist/docs/_worker.js/chunks/FormSelect_C2YPRAlw.mjs +1 -0
- package/dist/docs/_worker.js/chunks/FormSelect_DWShl8Fb.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Form_Dyb98Nez.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Form_olaoRN4o.mjs +1 -0
- package/dist/docs/_worker.js/chunks/HelperText_2CcHVaih.mjs +1 -0
- package/dist/docs/_worker.js/chunks/HelperText_DthGttZo.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Hint_BXDZKYhJ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Hint_DHoiYdn6.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Icon_C4IPnIAg.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Icon_C_Dqbg9w.mjs +1 -0
- package/dist/docs/_worker.js/chunks/InputGroup_CDKP-uXZ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/InputGroup_CmZgaEyr.mjs +1 -0
- package/dist/docs/_worker.js/chunks/JumpLinks_DvM3PVg0.mjs +1 -0
- package/dist/docs/_worker.js/chunks/JumpLinks_Dvdlxdps.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Label_C7fP9Jp9.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Label_Cxir7_Q4.mjs +1 -0
- package/dist/docs/_worker.js/chunks/List_CUgwFnXa.mjs +1 -0
- package/dist/docs/_worker.js/chunks/List_CWAsiYnN.mjs +1 -0
- package/dist/docs/_worker.js/chunks/LoginPage_BDfliKtU.mjs +1 -0
- package/dist/docs/_worker.js/chunks/LoginPage_BjIl_nF9.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Masthead_BWjm5CFj.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Masthead_BZnYzDu_.mjs +1 -0
- package/dist/docs/_worker.js/chunks/MenuToggle_DeKwv469.mjs +1 -0
- package/dist/docs/_worker.js/chunks/MenuToggle_DmJISlPR.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Menu_DRRoq5PM.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Menu_Sl-QVQ_w.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Modal_6WZzoDHU.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Modal_BI2dVPRJ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Modal_CdokBUDP.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Modal_DJRobnfc.mjs +1 -0
- package/dist/docs/_worker.js/chunks/MultipleFileUpload_BaHVtkF_.mjs +1 -0
- package/dist/docs/_worker.js/chunks/MultipleFileUpload_BznvLbsj.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Nav_DwqATcJ4.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Nav_GZ0nRYXE.mjs +1 -0
- package/dist/docs/_worker.js/chunks/NotificationBadge_DO4OLgvO.mjs +1 -0
- package/dist/docs/_worker.js/chunks/NotificationBadge_DjINhOQ5.mjs +1 -0
- package/dist/docs/_worker.js/chunks/NotificationDrawer_BtpQ4pmZ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/NotificationDrawer_D1lmMCgd.mjs +1 -0
- package/dist/docs/_worker.js/chunks/NumberInput_CggpJ5ge.mjs +1 -0
- package/dist/docs/_worker.js/chunks/NumberInput_zMcSUUwH.mjs +1 -0
- package/dist/docs/_worker.js/chunks/OverflowMenu_BX4nwFvK.mjs +1 -0
- package/dist/docs/_worker.js/chunks/OverflowMenu_DnQ7wMy-.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Page_Cw_XTB6Y.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Page_UhywZXdY.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Pagination_7rr0n7-V.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Pagination_Dc5L6yaI.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Panel_Bl_LqCWS.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Panel_s8-TwBlS.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Popover_CjipqBWs.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Popover_DvQgGJTf.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ProgressStepper_DXBI4K2w.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ProgressStepper_lBd5mTHE.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Progress_BZA5taDC.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Progress_CIgybc-D.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Radio_3tPx1coq.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Radio_BG7VZAk6.mjs +1 -0
- package/dist/docs/_worker.js/chunks/SearchInput_BZ43-Elo.mjs +1 -0
- package/dist/docs/_worker.js/chunks/SearchInput_aCFv-N1U.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Select_B4cumL7U.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Select_CJ78kBVM.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Sidebar_Bto2_gKJ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Sidebar_DOfifBRA.mjs +1 -0
- package/dist/docs/_worker.js/chunks/SimpleList_CVkO5Odp.mjs +1 -0
- package/dist/docs/_worker.js/chunks/SimpleList_oJajk3_z.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Skeleton_CCJNka-d.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Skeleton_N02yA_k6.mjs +1 -0
- package/dist/docs/_worker.js/chunks/SkipToContent_DvOYRCWm.mjs +1 -0
- package/dist/docs/_worker.js/chunks/SkipToContent_o7vh-U_u.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Slider_C0bH-JMY.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Slider_CWRDqhx4.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Spinner_B-x8bJt0.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Spinner_hzAAbZdS.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Switch_Cpr1OETy.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Switch_Du7AKJ4O.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Tabs_CzDrfKA-.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Tabs_KXDkISY4.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TextArea_C1dmG8mr.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TextArea_Dtm0m8LO.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TextInputGroup_D0NXU95v.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TextInputGroup_mJpBrogC.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TextInput_B0XLYaVA.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TextInput_CmLcsUiv.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Tile_CF_12LPU.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Tile_DJ0LawLW.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TimePicker_CijfSKJQ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TimePicker_VX9VE-Uy.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Timestamp_D7uyrIK7.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Timestamp_c2Mozpr4.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Title_DbrwFEEy.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Title_DlFn7G9R.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ToggleGroup_DpLWzfAW.mjs +1 -0
- package/dist/docs/_worker.js/chunks/ToggleGroup_j1ooRpX3.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Toolbar_BEIh7r7J.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Toolbar_mjrD3_l-.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Tooltip_Bp5XOVoV.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Tooltip_BrFKk02i.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TreeView_BImfKPD_.mjs +1 -0
- package/dist/docs/_worker.js/chunks/TreeView_CgO4iC1E.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Truncate_Bn55QoeZ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Truncate_S939OotH.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Wizard_B28f3non.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Wizard_B4Dw5Yc8.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Wizard_BOCBVIjJ.mjs +1 -0
- package/dist/docs/_worker.js/chunks/Wizard_C2sit354.mjs +1 -0
- package/dist/{_worker.js/renderers.mjs → docs/_worker.js/chunks/_@astro-renderers_D4IG6Oyo.mjs} +55 -3
- package/dist/{_worker.js/chunks/_@astrojs-ssr-adapter_IMtcR503.mjs → docs/_worker.js/chunks/_@astrojs-ssr-adapter_CBRUgCDy.mjs} +4 -4
- package/dist/docs/_worker.js/chunks/_astro_assets_Dcv7PKDL.mjs +1 -0
- package/dist/docs/_worker.js/chunks/_astro_data-layer-content_CPgQSQEx.mjs +1 -0
- package/dist/{_worker.js/chunks/astro/server_YsSSp7Ny.mjs → docs/_worker.js/chunks/astro/server_CVEnF9i1.mjs} +1 -3
- package/dist/{_worker.js/chunks/astro-designed-error-pages_MEt0E9xn.mjs → docs/_worker.js/chunks/astro-designed-error-pages_CXRddWNa.mjs} +1 -1
- package/dist/docs/_worker.js/chunks/content-assets_XqCgPAV2.mjs +1 -0
- package/dist/docs/_worker.js/chunks/content-modules_pw1AqUgZ.mjs +1 -0
- package/dist/{_worker.js/chunks/index_BE2AHcwI.mjs → docs/_worker.js/chunks/index_CYXMeXT4.mjs} +2 -2
- package/dist/{_worker.js/chunks/noop-middleware_CMUpAQ6F.mjs → docs/_worker.js/chunks/noop-middleware_DIXVCvyq.mjs} +1 -1
- package/dist/docs/_worker.js/chunks/sharp_BKxWP4lT.mjs +1 -0
- package/dist/{_worker.js → docs/_worker.js}/index.js +4 -8
- package/dist/docs/_worker.js/manifest_Dsi4HnVg.mjs +100 -0
- package/dist/{_worker.js → docs/_worker.js}/pages/_image.astro.mjs +1 -1
- package/dist/docs/_worker.js/pages/_section_/_---page_.astro.mjs +1 -0
- package/dist/docs/_worker.js/pages/_section_/_page_/_---tab_.astro.mjs +1 -0
- package/dist/docs/_worker.js/pages/index.astro.mjs +1 -0
- package/dist/{_worker.js → docs/_worker.js}/pages/props.astro.mjs +1 -1
- package/dist/docs/_worker.js/renderers.mjs +2 -0
- package/dist/docs/components/about-modal/index.html +56 -0
- package/dist/docs/components/about-modal/react/index.html +56 -0
- package/dist/docs/components/accordion/index.html +62 -0
- package/dist/docs/components/accordion/react/index.html +62 -0
- package/dist/docs/components/action-list/index.html +59 -0
- package/dist/docs/components/action-list/react/index.html +59 -0
- package/dist/docs/components/alert/index.html +428 -0
- package/dist/docs/components/alert/react/index.html +428 -0
- package/dist/docs/components/avatar/index.html +56 -0
- package/dist/docs/components/avatar/react/index.html +56 -0
- package/dist/docs/components/back-to-top/index.html +53 -0
- package/dist/docs/components/back-to-top/react/index.html +53 -0
- package/dist/docs/components/backdrop/index.html +49 -0
- package/dist/docs/components/backdrop/react/index.html +49 -0
- package/dist/docs/components/background-image/index.html +49 -0
- package/dist/docs/components/background-image/react/index.html +49 -0
- package/dist/docs/components/badge/index.html +57 -0
- package/dist/docs/components/badge/react/index.html +57 -0
- package/dist/docs/components/banner/index.html +57 -0
- package/dist/docs/components/banner/react/index.html +57 -0
- package/dist/docs/components/brand/index.html +55 -0
- package/dist/docs/components/brand/react/index.html +55 -0
- package/dist/docs/components/breadcrumb/index.html +59 -0
- package/dist/docs/components/breadcrumb/react/index.html +59 -0
- package/dist/docs/components/button/index.html +152 -0
- package/dist/docs/components/button/react/index.html +152 -0
- package/dist/docs/components/calendar-month/index.html +55 -0
- package/dist/docs/components/calendar-month/react/index.html +55 -0
- package/dist/docs/components/card/index.html +159 -0
- package/dist/docs/components/card/react/index.html +159 -0
- package/dist/docs/components/checkbox/index.html +78 -0
- package/dist/docs/components/checkbox/react/index.html +78 -0
- package/dist/docs/components/chip/index.html +61 -0
- package/dist/docs/components/chip/react-deprecated/index.html +61 -0
- package/dist/docs/components/clipboard-copy/index.html +84 -0
- package/dist/docs/components/clipboard-copy/react/index.html +84 -0
- package/dist/docs/components/code-block/index.html +55 -0
- package/dist/docs/components/code-block/react/index.html +55 -0
- package/dist/docs/components/content/index.html +79 -0
- package/dist/docs/components/content/react/index.html +79 -0
- package/dist/docs/components/data-list/index.html +86 -0
- package/dist/docs/components/data-list/react/index.html +86 -0
- package/dist/docs/components/date-picker/index.html +77 -0
- package/dist/docs/components/date-picker/react/index.html +77 -0
- package/dist/docs/components/description-list/index.html +135 -0
- package/dist/docs/components/description-list/react/index.html +135 -0
- package/dist/docs/components/divider/index.html +74 -0
- package/dist/docs/components/divider/react/index.html +74 -0
- package/dist/docs/components/drag-and-drop/index.html +69 -0
- package/dist/docs/components/drag-and-drop/react-deprecated/index.html +69 -0
- package/dist/docs/components/drawer/index.html +108 -0
- package/dist/docs/components/drawer/react/index.html +108 -0
- package/dist/docs/components/dropdown/index.html +71 -0
- package/dist/docs/components/dropdown/react/index.html +71 -0
- package/dist/docs/components/dual-list-selector/index.html +89 -0
- package/dist/docs/components/dual-list-selector/react/index.html +89 -0
- package/dist/docs/components/dual-list-selector/react-deprecated/index.html +106 -0
- package/dist/docs/components/empty-state/index.html +71 -0
- package/dist/docs/components/empty-state/react/index.html +71 -0
- package/dist/docs/components/expandable-section/index.html +76 -0
- package/dist/docs/components/expandable-section/react/index.html +76 -0
- package/dist/docs/components/form/index.html +87 -0
- package/dist/docs/components/form/react/index.html +87 -0
- package/dist/docs/components/form-select/index.html +59 -0
- package/dist/docs/components/form-select/react/index.html +59 -0
- package/dist/docs/components/helper-text/index.html +57 -0
- package/dist/docs/components/helper-text/react/index.html +57 -0
- package/dist/docs/components/hint/index.html +59 -0
- package/dist/docs/components/hint/react/index.html +59 -0
- package/dist/docs/components/icon/index.html +80 -0
- package/dist/docs/components/icon/react/index.html +80 -0
- package/dist/docs/components/input-group/index.html +62 -0
- package/dist/docs/components/input-group/react/index.html +62 -0
- package/dist/docs/components/jump-links/index.html +66 -0
- package/dist/docs/components/jump-links/react/index.html +66 -0
- package/dist/docs/components/label/index.html +103 -0
- package/dist/docs/components/label/react/index.html +103 -0
- package/dist/docs/components/list/index.html +68 -0
- package/dist/docs/components/list/react/index.html +68 -0
- package/dist/docs/components/login-page/index.html +56 -0
- package/dist/docs/components/login-page/react/index.html +56 -0
- package/dist/docs/components/masthead/index.html +76 -0
- package/dist/docs/components/masthead/react/index.html +76 -0
- package/dist/docs/components/menu/index.html +160 -0
- package/dist/docs/components/menu/react/index.html +160 -0
- package/dist/docs/components/menu-toggle/index.html +201 -0
- package/dist/docs/components/menu-toggle/react/index.html +201 -0
- package/dist/docs/components/modal/index.html +113 -0
- package/dist/docs/components/modal/react/index.html +113 -0
- package/dist/docs/components/modal/react-deprecated/index.html +117 -0
- package/dist/docs/components/multiple-file-upload/index.html +84 -0
- package/dist/docs/components/multiple-file-upload/react/index.html +84 -0
- package/dist/docs/components/navigation/index.html +89 -0
- package/dist/docs/components/navigation/react/index.html +89 -0
- package/dist/docs/components/notification-badge/index.html +65 -0
- package/dist/docs/components/notification-badge/react/index.html +65 -0
- package/dist/docs/components/notification-drawer/index.html +56 -0
- package/dist/docs/components/notification-drawer/react/index.html +56 -0
- package/dist/docs/components/number-input/index.html +72 -0
- package/dist/docs/components/number-input/react/index.html +72 -0
- package/dist/docs/components/overflow-menu/index.html +64 -0
- package/dist/docs/components/overflow-menu/react/index.html +64 -0
- package/dist/docs/components/page/index.html +114 -0
- package/dist/docs/components/page/react/index.html +114 -0
- package/dist/docs/components/pagination/index.html +77 -0
- package/dist/docs/components/pagination/react/index.html +77 -0
- package/dist/docs/components/panel/index.html +196 -0
- package/dist/docs/components/panel/react/index.html +196 -0
- package/dist/docs/components/popover/index.html +89 -0
- package/dist/docs/components/popover/react/index.html +89 -0
- package/dist/docs/components/progress/index.html +101 -0
- package/dist/docs/components/progress/react/index.html +101 -0
- package/dist/docs/components/progress-stepper/index.html +74 -0
- package/dist/docs/components/progress-stepper/react/index.html +74 -0
- package/dist/docs/components/radio/index.html +75 -0
- package/dist/docs/components/radio/react/index.html +75 -0
- package/dist/docs/components/search-input/index.html +76 -0
- package/dist/docs/components/search-input/react/index.html +76 -0
- package/dist/docs/components/select/index.html +129 -0
- package/dist/docs/components/select/react/index.html +129 -0
- package/dist/docs/components/sidebar/index.html +77 -0
- package/dist/docs/components/sidebar/react/index.html +77 -0
- package/dist/docs/components/simple-file-upload/index.html +93 -0
- package/dist/docs/components/simple-file-upload/react/index.html +93 -0
- package/dist/docs/components/simple-list/index.html +59 -0
- package/dist/docs/components/simple-list/react/index.html +59 -0
- package/dist/docs/components/skeleton/index.html +62 -0
- package/dist/docs/components/skeleton/react/index.html +62 -0
- package/dist/docs/components/skip-to-content/index.html +49 -0
- package/dist/docs/components/skip-to-content/react/index.html +49 -0
- package/dist/docs/components/slider/index.html +78 -0
- package/dist/docs/components/slider/react/index.html +78 -0
- package/dist/docs/components/spinner/index.html +59 -0
- package/dist/docs/components/spinner/react/index.html +59 -0
- package/dist/docs/components/switch/index.html +66 -0
- package/dist/docs/components/switch/react/index.html +66 -0
- package/dist/docs/components/tabs/index.html +169 -0
- package/dist/docs/components/tabs/react/index.html +169 -0
- package/dist/docs/components/text-area/index.html +77 -0
- package/dist/docs/components/text-area/react/index.html +77 -0
- package/dist/docs/components/text-input/index.html +71 -0
- package/dist/docs/components/text-input/react/index.html +71 -0
- package/dist/docs/components/text-input-group/index.html +68 -0
- package/dist/docs/components/text-input-group/react/index.html +68 -0
- package/dist/docs/components/tile/index.html +153 -0
- package/dist/docs/components/tile/react-deprecated/index.html +153 -0
- package/dist/docs/components/time-picker/index.html +67 -0
- package/dist/docs/components/time-picker/react/index.html +67 -0
- package/dist/docs/components/timestamp/index.html +75 -0
- package/dist/docs/components/timestamp/react/index.html +75 -0
- package/dist/docs/components/title/index.html +53 -0
- package/dist/docs/components/title/react/index.html +53 -0
- package/dist/docs/components/toggle-group/index.html +74 -0
- package/dist/docs/components/toggle-group/react/index.html +74 -0
- package/dist/docs/components/toolbar/index.html +111 -0
- package/dist/docs/components/toolbar/react/index.html +111 -0
- package/dist/docs/components/tooltip/index.html +65 -0
- package/dist/docs/components/tooltip/react/index.html +65 -0
- package/dist/docs/components/tree-view/index.html +93 -0
- package/dist/docs/components/tree-view/react/index.html +93 -0
- package/dist/docs/components/truncate/index.html +80 -0
- package/dist/docs/components/truncate/react/index.html +80 -0
- package/dist/docs/components/wizard/index.html +120 -0
- package/dist/docs/components/wizard/react/index.html +120 -0
- package/dist/docs/components/wizard/react-deprecated/index.html +372 -0
- package/dist/docs/index.html +43 -0
- package/dist/props.json +1 -0
- package/package.json +10 -6
- package/src/components/AutoLinkHeader.tsx +3 -11
- package/src/components/DocsTables.astro +10 -4
- package/src/components/LiveExample.tsx +2 -0
- package/src/components/PropsTables.tsx +62 -0
- package/src/content.config.ts +2 -4
- package/src/content.ts +1 -15
- package/src/layouts/Main.astro +1 -0
- package/src/pages/[section]/[...page].astro +1 -5
- package/src/pages/[section]/[page]/[...tab].astro +1 -1
- package/.astro/collections/textContent.schema.json +0 -59
- package/dist/_astro/CSSTable.E6iSHjec.js +0 -1
- package/dist/_astro/DropdownList.-xE7qrND.js +0 -1
- package/dist/_astro/LiveExample.CVVccYEB.js +0 -259
- package/dist/_astro/Navigation.CONcolRR.js +0 -1
- package/dist/_astro/PageSidebarBody.CDWZuFeK.js +0 -1
- package/dist/_astro/SearchInput.BNt7BTX_.js +0 -1
- package/dist/_astro/SectionGallery.Dwb-QA5z.js +0 -1
- package/dist/_astro/Toolbar.DNd68Ck-.js +0 -1
- package/dist/_astro/ToolbarContent.C58gpKLu.js +0 -1
- package/dist/_astro/_page_.CtheD08_.css +0 -1
- package/dist/_astro/index.jm6QVFFy.js +0 -16
- package/dist/_worker.js/chunks/AutoLinkHeader_DLgn_YRm.mjs +0 -739
- package/dist/_worker.js/chunks/Button_CBcC0ViE.mjs +0 -709
- package/dist/_worker.js/chunks/CSSTable_C1dV02qV.mjs +0 -18
- package/dist/_worker.js/chunks/DocsTables_Br4g5x5_.mjs +0 -20
- package/dist/_worker.js/chunks/PropsTables_Dcd7znAq.mjs +0 -6628
- package/dist/_worker.js/chunks/angle-down-icon_VyCXUC7F.mjs +0 -3686
- package/dist/_worker.js/chunks/index_CBCp_CJ0.mjs +0 -57
- package/dist/_worker.js/manifest_CyDNnCoC.mjs +0 -100
- package/dist/components/accordion/index.html +0 -60
- package/dist/components/accordion/react/index.html +0 -60
- package/dist/components/all-components/index.html +0 -47
- package/dist/design-foundations/typography/index.html +0 -198
- package/dist/design-foundations/usage-and-behavior/index.html +0 -347
- package/dist/get-started/contribute/index.html +0 -94
- package/dist/index.html +0 -43
- package/src/components/PropsTables.astro +0 -52
- /package/dist/{.assetsignore → docs/.assetsignore} +0 -0
- /package/dist/{PF-HorizontalLogo-Color.svg → docs/PF-HorizontalLogo-Color.svg} +0 -0
- /package/dist/{PF-HorizontalLogo-Reverse.svg → docs/PF-HorizontalLogo-Reverse.svg} +0 -0
- /package/dist/{_astro/_page_.Chv_bGyU.css → docs/_astro/AutoLinkHeader.Chv_bGyU.css} +0 -0
- /package/dist/{_astro → docs/_astro}/Button.BVfR1y85.js +0 -0
- /package/dist/{_astro → docs/_astro}/ClientRouter.astro_astro_type_script_index_0_lang.CtSceO8m.js +0 -0
- /package/dist/{_astro → docs/_astro}/Content.CYLxURqU.js +0 -0
- /package/dist/{_astro → docs/_astro}/LiveExample.CxJsMvEq.css +0 -0
- /package/dist/{_astro → docs/_astro}/PageContext.BUbWpNW2.js +0 -0
- /package/dist/{_astro → docs/_astro}/PageToggle.Dnbvoa7R.js +0 -0
- /package/dist/{_astro → docs/_astro}/RedHatDisplayVF-Italic.CRpusWc8.woff2 +0 -0
- /package/dist/{_astro → docs/_astro}/RedHatDisplayVF.CYDHf1NI.woff2 +0 -0
- /package/dist/{_astro → docs/_astro}/RedHatMonoVF-Italic.DGQo2ogW.woff2 +0 -0
- /package/dist/{_astro → docs/_astro}/RedHatMonoVF.C4fMH6Vz.woff2 +0 -0
- /package/dist/{_astro → docs/_astro}/RedHatTextVF-Italic.Dkj_WqbA.woff2 +0 -0
- /package/dist/{_astro → docs/_astro}/RedHatTextVF.wYvZ7prR.woff2 +0 -0
- /package/dist/{_astro → docs/_astro}/_page_.DxJDkZPc.css +0 -0
- /package/dist/{_astro → docs/_astro}/angle-left-icon.CfKwuSCS.js +0 -0
- /package/dist/{_astro → docs/_astro}/bars-icon.wdJgEs3A.js +0 -0
- /package/dist/{_astro → docs/_astro}/client.DN8ES6L5.js +0 -0
- /package/dist/{_astro → docs/_astro}/fa-solid-900.DguXoeIz.woff2 +0 -0
- /package/dist/{_astro → docs/_astro}/github-icon.DzpohUp_.js +0 -0
- /package/dist/{_astro → docs/_astro}/index.BQFV5hT1.js +0 -0
- /package/dist/{_astro → docs/_astro}/index.CAChmxYj.js +0 -0
- /package/dist/{_astro → docs/_astro}/index.eCxJ45ll.js +0 -0
- /package/dist/{_astro → docs/_astro}/page.BTC3Kf3x.js +0 -0
- /package/dist/{_astro → docs/_astro}/pf-v6-pficon.Dy6oiu9u.woff2 +0 -0
- /package/dist/{_worker.js → docs/_worker.js}/_noop-actions.mjs +0 -0
- /package/dist/{_worker.js/chunks/Accordion_CQUal4ef.mjs → docs/_worker.js/chunks/AboutModal_CrdYiVZ2.mjs} +0 -0
- /package/dist/{_worker.js/chunks/Accordion_R7bP3pwr.mjs → docs/_worker.js/chunks/AboutModal_D3R-r6ju.mjs} +0 -0
- /package/dist/{_worker.js/chunks/AllComponents_BDKlE-WJ.mjs → docs/_worker.js/chunks/Accordion_Dbx8tdfD.mjs} +0 -0
- /package/dist/{_worker.js/chunks/AllComponents_DWDph25H.mjs → docs/_worker.js/chunks/Accordion_sjy0EnPK.mjs} +0 -0
- /package/dist/{_worker.js/chunks/_astro_assets_uN1DLT1q.mjs → docs/_worker.js/chunks/ActionList_Bx7eAKgV.mjs} +0 -0
- /package/dist/{_worker.js/chunks/_astro_data-layer-content_D0hm6p8E.mjs → docs/_worker.js/chunks/ActionList_CuygbYGp.mjs} +0 -0
- /package/dist/{_worker.js/chunks/content-assets_XqCgPAV2.mjs → docs/_worker.js/chunks/Alert_Cgh0pfMA.mjs} +0 -0
- /package/dist/{_worker.js/chunks/content-modules_BbCqcGJp.mjs → docs/_worker.js/chunks/Alert_CplJ22O9.mjs} +0 -0
- /package/dist/{_worker.js/chunks/sharp_Cc2xj7B1.mjs → docs/_worker.js/chunks/Avatar_BszzDSZB.mjs} +0 -0
- /package/dist/{_worker.js/pages/_section_/_---page_.astro.mjs → docs/_worker.js/chunks/Avatar_DuNXB-Tl.mjs} +0 -0
- /package/dist/{_worker.js/pages/_section_/_page_/_---tab_.astro.mjs → docs/_worker.js/chunks/BackToTop_B_0NN1kJ.mjs} +0 -0
- /package/dist/{_worker.js/pages/index.astro.mjs → docs/_worker.js/chunks/BackToTop_DKY1zHBL.mjs} +0 -0
- /package/dist/{_worker.js → docs/_worker.js}/chunks/cloudflare-kv-binding_DMly_2Gl.mjs +0 -0
- /package/dist/{_worker.js → docs/_worker.js}/chunks/parse_EttCPxrw.mjs +0 -0
- /package/dist/{_worker.js → docs/_worker.js}/chunks/path_C-ZOwaTP.mjs +0 -0
- /package/dist/{avatarImg.svg → docs/avatarImg.svg} +0 -0
- /package/dist/{avatarImgDark.svg → docs/avatarImgDark.svg} +0 -0
- /package/dist/{content → docs/content}/typography/line-height.png +0 -0
- /package/dist/{favicon.svg → docs/favicon.svg} +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{_ as ue,u as Yi,j as V,c as J,a as Zi,g as $i,B as ci,K as Yt,e as es,I as ts,f as is,E as ss,C as rs,k as pi}from"./Button.BVfR1y85.js";import{r as te}from"./index.eCxJ45ll.js";/* empty css */import{A as as,u as ns}from"./divider.BLVh3KnH.js";import{G as os,C as us,a as bt,T as ls}from"./SearchInput.BNt7BTX_.js";const $={card:"pf-v6-c-card",cardActions:"pf-v6-c-card__actions",cardBody:"pf-v6-c-card__body",cardExpandableContent:"pf-v6-c-card__expandable-content",cardFooter:"pf-v6-c-card__footer",cardHeader:"pf-v6-c-card__header",cardHeaderMain:"pf-v6-c-card__header-main",cardHeaderToggle:"pf-v6-c-card__header-toggle",cardHeaderToggleIcon:"pf-v6-c-card__header-toggle-icon",cardSelectableActions:"pf-v6-c-card__selectable-actions",cardTitle:"pf-v6-c-card__title",cardTitleText:"pf-v6-c-card__title-text",modifiers:{selectable:"pf-m-selectable",clickable:"pf-m-clickable",current:"pf-m-current",selected:"pf-m-selected",disabled:"pf-m-disabled",compact:"pf-m-compact",displayLg:"pf-m-display-lg",secondary:"pf-m-secondary",plain:"pf-m-plain",expanded:"pf-m-expanded",fullHeight:"pf-m-full-height",toggleRight:"pf-m-toggle-right",wrap:"pf-m-wrap",noOffset:"pf-m-no-offset",noFill:"pf-m-no-fill"}},St=te.createContext({cardId:"",isExpanded:!1,isClickable:!1,isSelectable:!1,isSelected:!1,isClicked:!1,isDisabled:!1}),fi=E=>{var{children:l,id:w="",className:C,component:m="div",isCompact:b=!1,isSelectable:S=!1,isClickable:k=!1,isDisabled:c=!1,isSelected:o=!1,isClicked:h=!1,isExpanded:d=!1,isLarge:T=!1,isFullHeight:I=!1,isPlain:B=!1,variant:F="default",ouiaId:L,ouiaSafe:M=!0}=E,H=ue(E,["children","id","className","component","isCompact","isSelectable","isClickable","isDisabled","isSelected","isClicked","isExpanded","isLarge","isFullHeight","isPlain","variant","ouiaId","ouiaSafe"]);const W=m,re=Yi(fi.displayName,L,M);b&&T&&(console.warn("Card: Cannot use isCompact with isLarge. Defaulting to isCompact"),T=!1);const v=()=>S&&k?J($.modifiers.selectable,$.modifiers.clickable,(o||h)&&$.modifiers.current):S?J($.modifiers.selectable,o&&$.modifiers.selected):k?J($.modifiers.clickable,h&&$.modifiers.current):"";return V.jsx(St.Provider,{value:{cardId:w,isExpanded:d,isClickable:k,isSelectable:S,isSelected:o,isClicked:h,isDisabled:c},children:V.jsx(W,Object.assign({id:w,className:J($.card,b&&$.modifiers.compact,d&&$.modifiers.expanded,T&&$.modifiers.displayLg,I&&$.modifiers.fullHeight,B&&$.modifiers.plain,F==="secondary"&&$.modifiers.secondary,v(),c&&$.modifiers.disabled,C)},H,re,{children:l}))})};fi.displayName="Card";const hs=E=>{var{children:l,className:w,component:C="div",isFilled:m=!0}=E,b=ue(E,["children","className","component","isFilled"]);const S=C;return V.jsx(S,Object.assign({className:J($.cardBody,!m&&$.modifiers.noFill,w)},b,{children:l}))};hs.displayName="CardBody";const cs=E=>{var{children:l,className:w,component:C="div"}=E,m=ue(E,["children","className","component"]);const b=C;return V.jsx(b,Object.assign({className:J($.cardFooter,w)},m,{children:l}))};cs.displayName="CardFooter";const ps=E=>{var{children:l,className:w,component:C="div"}=E,m=ue(E,["children","className","component"]);const{cardId:b}=te.useContext(St),S=C,k=b?`${b}-title`:"";return V.jsx("div",{className:J($.cardTitle),children:V.jsx(S,Object.assign({className:J($.cardTitleText,w),id:k||void 0},m,{children:l}))})};ps.displayName="CardTitle";const di=E=>{var{children:l,className:w}=E,C=ue(E,["children","className"]);return V.jsx("div",Object.assign({className:J($.cardHeaderMain,w)},C,{children:l}))};di.displayName="CardHeaderMain";const mi=E=>{var{children:l,className:w,hasNoOffset:C=!1}=E,m=ue(E,["children","className","hasNoOffset"]);return V.jsx("div",Object.assign({className:J($.cardActions,C&&$.modifiers.noOffset,w)},m,{children:l}))};mi.displayName="CardActions";const xi=E=>{var{children:l,className:w}=E,C=ue(E,["children","className"]);return V.jsx("div",Object.assign({className:J($.cardSelectableActions,w)},C,{children:l}))};xi.displayName="CardSelectableActions";const Pe={modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"},radio:"pf-v6-c-radio",radioBody:"pf-v6-c-radio__body",radioDescription:"pf-v6-c-radio__description",radioInput:"pf-v6-c-radio__input",radioLabel:"pf-v6-c-radio__label"};class qe extends te.Component{constructor(l){super(l),this.handleChange=w=>{this.props.onChange(w,w.currentTarget.checked)},!l.label&&!l["aria-label"]&&console.error("Radio:","Radio requires an aria-label to be specified"),this.state={ouiaStateId:Zi(qe.displayName)}}render(){const l=this.props,{"aria-label":w,checked:C,className:m,inputClassName:b,defaultChecked:S,isLabelWrapped:k,labelPosition:c="end",isChecked:o,isDisabled:h,isValid:d,label:T,onChange:I,description:B,body:F,ouiaId:L,ouiaSafe:M=!0,component:H}=l,W=ue(l,["aria-label","checked","className","inputClassName","defaultChecked","isLabelWrapped","labelPosition","isChecked","isDisabled","isValid","label","onChange","description","body","ouiaId","ouiaSafe","component"]);W.id||console.error("Radio:","id is required to make input accessible");const re=V.jsx("input",Object.assign({},W,{className:J(Pe.radioInput,b),type:"radio",onChange:this.handleChange,"aria-invalid":!d,disabled:h,checked:C||o},C===void 0&&{defaultChecked:S},!T&&{"aria-label":w},$i(qe.displayName,L!==void 0?L:this.state.ouiaStateId,M))),v=k&&!H||H==="label",n=v?"span":"label",P=T?V.jsx(n,{className:J(Pe.radioLabel,h&&Pe.modifiers.disabled),htmlFor:v?void 0:W.id,children:T}):null,j=H??(v?"label":"div");return V.jsxs(j,{className:J(Pe.radio,!T&&Pe.modifiers.standalone,m),htmlFor:v?W.id:void 0,children:[c==="start"?V.jsxs(V.Fragment,{children:[P,re]}):V.jsxs(V.Fragment,{children:[re,P]}),B&&V.jsx("span",{className:J(Pe.radioDescription),children:B}),F&&V.jsx("span",{className:J(Pe.radioBody),children:F})]})}}qe.displayName="Radio";qe.defaultProps={className:"",isDisabled:!1,isValid:!0,onChange:()=>{}};const fs=E=>{var{children:l,className:w,actions:C,selectableActions:m,id:b,onExpand:S,toggleButtonProps:k,isToggleRightAligned:c,hasWrap:o}=E,h=ue(E,["children","className","actions","selectableActions","id","onExpand","toggleButtonProps","isToggleRightAligned","hasWrap"]);return V.jsx(os,{children:d=>V.jsx(St.Consumer,{children:({cardId:T,isClickable:I,isSelectable:B,isSelected:F,isDisabled:L})=>{const M=V.jsx("div",{className:J($.cardHeaderToggle),children:V.jsx(ci,Object.assign({variant:"plain",type:"button",onClick:y=>{S(y,T)}},k,{icon:V.jsx("span",{className:J($.cardHeaderToggleIcon),children:V.jsx(as,{})})}))}),H=I&&!B||B&&!I;C?.actions&&H&&console.error(`Card: ${I?"Clickable":"Selectable"} only cards should not contain any other actions. If you wish to include additional actions, use a clickable and selectable card.`);const W=I&&!B;(W||B)&&!m?.selectableActionAriaLabel&&!m?.selectableActionAriaLabelledby&&console.error(`Card: ${W?"Clickable-only cards":"Cards with a selectable input"} must have either the selectableActions.selectableActionAriaLabel or selectableActions.selectableActionAriaLabelledby prop passed in order to provide an accessible name to the clickable element.`);const re=m?.variant==="single"?qe:us,v=()=>{var y,r;return Object.assign({className:J("pf-m-standalone"),inputClassName:J(m?.isHidden&&"pf-v6-screen-reader"),label:V.jsx(V.Fragment,{}),"aria-label":m.selectableActionAriaLabel,"aria-labelledby":m.selectableActionAriaLabelledby,id:(y=m.selectableActionId)!==null&&y!==void 0?y:`card-selectable-${d}`,name:m.name,isDisabled:L,onChange:m.onChange,isChecked:(r=m.isChecked)!==null&&r!==void 0?r:F},m.selectableActionProps)},n=m?.to!==void 0,P=n?"a":"button",j=()=>{const r=Object.assign({className:J("pf-v6-c-card__clickable-action",L&&n&&$.modifiers.disabled,m?.isHidden&&"pf-v6-screen-reader"),id:m.selectableActionId,"aria-label":m.selectableActionAriaLabel,"aria-labelledby":m.selectableActionAriaLabelledby},m.selectableActionProps);return n?Object.assign(Object.assign(Object.assign(Object.assign({},r),{href:m.to}),L&&{tabIndex:-1,"aria-disabled":!0}),m.isExternalLink&&{target:"_blank"}):Object.assign(Object.assign({},r),{type:"button",disabled:L,onClick:m.onClickAction})};return V.jsxs("div",Object.assign({className:J($.cardHeader,c&&$.modifiers.toggleRight,o&&$.modifiers.wrap,w),id:b},h,{children:[S&&!c&&M,(C||m&&(I||B))&&V.jsxs(mi,{className:C?.className,hasNoOffset:C?.hasNoOffset||m?.hasNoOffset,children:[C?.actions,m&&(I||B)&&V.jsxs(xi,{className:m?.className,children:[B&&V.jsx(re,Object.assign({},v())),W&&V.jsx(P,Object.assign({},j()))]})]}),l&&V.jsx(di,{children:l}),S&&c&&M]}))}})})};fs.displayName="CardHeader";const ae={dataList:"pf-v6-c-data-list",dataListCell:"pf-v6-c-data-list__cell",dataListCheck:"pf-v6-c-data-list__check",dataListExpandableContent:"pf-v6-c-data-list__expandable-content",dataListExpandableContentBody:"pf-v6-c-data-list__expandable-content-body",dataListItem:"pf-v6-c-data-list__item",dataListItemAction:"pf-v6-c-data-list__item-action",dataListItemContent:"pf-v6-c-data-list__item-content",dataListItemControl:"pf-v6-c-data-list__item-control",dataListItemDraggableButton:"pf-v6-c-data-list__item-draggable-button",dataListItemDraggableIcon:"pf-v6-c-data-list__item-draggable-icon",dataListItemRow:"pf-v6-c-data-list__item-row",dataListText:"pf-v6-c-data-list__text",dataListToggle:"pf-v6-c-data-list__toggle",dataListToggleIcon:"pf-v6-c-data-list__toggle-icon",modifiers:{icon:"pf-m-icon",alignRight:"pf-m-align-right",noFill:"pf-m-no-fill",flex_2:"pf-m-flex-2",flex_3:"pf-m-flex-3",flex_4:"pf-m-flex-4",flex_5:"pf-m-flex-5",gridNone:"pf-m-grid-none",gridSm:"pf-m-grid-sm",gridMd:"pf-m-grid-md",gridLg:"pf-m-grid-lg",gridXl:"pf-m-grid-xl",grid_2xl:"pf-m-grid-2xl",compact:"pf-m-compact",dragOver:"pf-m-drag-over",truncate:"pf-m-truncate",breakWord:"pf-m-break-word",nowrap:"pf-m-nowrap",clickable:"pf-m-clickable",selected:"pf-m-selected",ghostRow:"pf-m-ghost-row",expanded:"pf-m-expanded",disabled:"pf-m-disabled",hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",noPadding:"pf-m-no-padding"}},ds={none:ae.modifiers.gridNone,always:"pf-m-grid",sm:ae.modifiers.gridSm,md:ae.modifiers.gridMd,lg:ae.modifiers.gridLg,xl:ae.modifiers.gridXl,"2xl":ae.modifiers.grid_2xl};var Zt;(function(E){E.nowrap="nowrap",E.truncate="truncate",E.breakWord="breakWord"})(Zt||(Zt={}));const yi=te.createContext({isSelectable:!1}),vi=E=>{var{children:l=null,className:w="","aria-label":C,onSelectDataListItem:m,selectedDataListItemId:b="",isCompact:S=!1,gridBreakpoint:k="md",wrapModifier:c=null,onSelectableRowChange:o,innerRef:h}=E,d=ue(E,["children","className","aria-label","onSelectDataListItem","selectedDataListItemId","isCompact","gridBreakpoint","wrapModifier","onSelectableRowChange","innerRef"]);const T=m!==void 0,I=(B,F)=>{m(B,F)};return V.jsx(yi.Provider,{value:{isSelectable:T,selectedDataListItemId:b,updateSelectedDataListItem:I,onSelectableRowChange:o},children:V.jsx("ul",Object.assign({className:J(ae.dataList,S&&ae.modifiers.compact,ds[k],c&&ae.modifiers[c],w),style:d.style,role:"list","aria-label":C,ref:h},d,{children:l}))})};vi.displayName="DataListBase";const ms=te.forwardRef((E,l)=>V.jsx(vi,Object.assign({innerRef:l},E)));ms.displayName="DataList";const xs=E=>{var{children:l=null,className:w="",width:C=1,isFilled:m=!0,alignRight:b=!1,isIcon:S=!1,wrapModifier:k=null}=E,c=ue(E,["children","className","width","isFilled","alignRight","isIcon","wrapModifier"]);const o=te.useRef(null),[h,d]=te.useState(!1);return te.useEffect(()=>{if(!o.current||k!=="truncate")return;const T=o.current&&o.current.offsetWidth<o.current.scrollWidth;h!==T&&d(T)},[o,k,h]),V.jsxs("div",Object.assign({className:J(ae.dataListCell,C>1&&ae.modifiers[`flex_${C}`],!m&&ae.modifiers.noFill,b&&ae.modifiers.alignRight,S&&ae.modifiers.icon,w,k&&ae.modifiers[k])},h&&{tabIndex:0},{ref:o},c,{children:[l,h&&V.jsx(bt,{content:l,triggerRef:o})]}))};xs.displayName="DataListCell";class gi extends te.Component{render(){const l=this.props,{children:w,isExpanded:C,className:m,id:b,"aria-labelledby":S,selectableInputAriaLabel:k}=l,c=ue(l,["children","isExpanded","className","id","aria-labelledby","selectableInputAriaLabel"]);return V.jsx(yi.Consumer,{children:({isSelectable:o,selectedDataListItemId:h,updateSelectedDataListItem:d,onSelectableRowChange:T})=>{const I=M=>{let H=M.target;for(;M.currentTarget!==H;){if("onclick"in H&&H.onclick||H.parentNode.classList.contains(ae.dataListItemAction)||H.parentNode.classList.contains(ae.dataListItemControl))return;H=H.parentNode}d(M,b)},B=M=>{[Yt.Enter,Yt.Space].includes(M.key)&&(M.preventDefault(),d(M,b))},F=h===b,L=k?{"aria-label":k}:{"aria-labelledby":S};return V.jsxs("li",Object.assign({id:b,className:J(ae.dataListItem,C&&ae.modifiers.expanded,o&&ae.modifiers.clickable,h&&F&&ae.modifiers.selected,m)},o&&{tabIndex:0,onClick:I,onKeyDown:B},c,{children:[T&&V.jsx("input",Object.assign({className:"pf-v6-screen-reader",type:"radio",checked:F,onChange:M=>T(M,b),tabIndex:-1},L)),te.Children.map(w,M=>te.isValidElement(M)&&te.cloneElement(M,{rowid:S}))]}))}})}}gi.displayName="DataListItem";gi.defaultProps={isExpanded:!1,className:"",id:"",children:null,"aria-labelledby":""};const ys=E=>{var{className:l="",dataListCells:w,rowid:C=""}=E,m=ue(E,["className","dataListCells","rowid"]);return V.jsx("div",Object.assign({className:J(ae.dataListItemContent,l)},m,{children:w}))};ys.displayName="DataListItemCells";const vs=E=>{var{children:l,className:w="",rowid:C="",wrapModifier:m=null}=E,b=ue(E,["children","className","rowid","wrapModifier"]);return V.jsx("div",Object.assign({className:J(ae.dataListItemRow,w,m&&ae.modifiers[m])},b,{children:te.Children.map(l,S=>te.isValidElement(S)&&te.cloneElement(S,{rowid:C}))}))};vs.displayName="DataListItemRow";const se={label:"pf-v6-c-label",labelActions:"pf-v6-c-label__actions",labelContent:"pf-v6-c-label__content",labelIcon:"pf-v6-c-label__icon",labelText:"pf-v6-c-label__text",modifiers:{blue:"pf-m-blue",red:"pf-m-red",orange:"pf-m-orange",orangered:"pf-m-orangered",yellow:"pf-m-yellow",green:"pf-m-green",teal:"pf-m-teal",purple:"pf-m-purple",success:"pf-m-success",warning:"pf-m-warning",danger:"pf-m-danger",info:"pf-m-info",custom:"pf-m-custom",compact:"pf-m-compact",filled:"pf-m-filled",outline:"pf-m-outline",editable:"pf-m-editable",editableActive:"pf-m-editable-active",overflow:"pf-m-overflow",add:"pf-m-add",clickable:"pf-m-clickable",disabled:"pf-m-disabled"}},gs={labelGroup:"pf-v6-c-label-group",labelGroupClose:"pf-v6-c-label-group__close",labelGroupLabel:"pf-v6-c-label-group__label",labelGroupList:"pf-v6-c-label-group__list",labelGroupListItem:"pf-v6-c-label-group__list-item",labelGroupMain:"pf-v6-c-label-group__main",labelGroupTextarea:"pf-v6-c-label-group__textarea",modifiers:{category:"pf-m-category",vertical:"pf-m-vertical",editable:"pf-m-editable",textarea:"pf-m-textarea"}},bs={name:"--pf-v6-c-label__text--MaxWidth",value:"100%",var:"var(--pf-v6-c-label__text--MaxWidth)"},Ss={blue:se.modifiers.blue,teal:se.modifiers.teal,green:se.modifiers.green,orange:se.modifiers.orange,purple:se.modifiers.purple,red:se.modifiers.red,orangered:se.modifiers.orangered,yellow:se.modifiers.yellow,grey:""},ws={success:V.jsx(rs,{}),warning:V.jsx(ss,{}),danger:V.jsx(is,{}),info:V.jsx(ts,{}),custom:V.jsx(es,{})},Cs=E=>{var{children:l,className:w="",color:C="grey",variant:m="filled",status:b,isCompact:S=!1,isDisabled:k=!1,isEditable:c=!1,isClickable:o=!1,editableProps:h,textMaxWidth:d,tooltipPosition:T,icon:I,onClose:B,onClick:F,onEditCancel:L,onEditComplete:M,closeBtn:H,closeBtnAriaLabel:W,closeBtnProps:re,href:v,render:n}=E,P=ue(E,["children","className","color","variant","status","isCompact","isDisabled","isEditable","isClickable","editableProps","textMaxWidth","tooltipPosition","icon","onClose","onClick","onEditCancel","onEditComplete","closeBtn","closeBtnAriaLabel","closeBtnProps","href","render"]);const[j,y]=te.useState(!1),[r,s]=te.useState(l),p=te.useRef(void 0),g=te.useRef(void 0),N=m==="overflow",O=m==="add",X=o||F&&!N&&!O||v;let Q;b&&(Q=ws[b]),I&&(Q=I),te.useEffect(()=>(document.addEventListener("mousedown",Y),document.addEventListener("keydown",Z),()=>{document.removeEventListener("mousedown",Y),document.removeEventListener("keydown",Z)})),te.useEffect(()=>{F&&v?console.warn("Link labels cannot have onClick passed, this results in invalid HTML. Please remove either the href or onClick prop."):F&&c&&console.warn("Editable labels cannot have onClick passed, clicking starts the label edit process. Please remove either the isEditable or onClick prop.")},[F,v,c]);const Y=ee=>{j&&g&&g.current&&!g.current.contains(ee.target)&&(g.current.value&&M&&M(ee,g.current.value),y(!1))},Z=ee=>{var Ve,xe;const ge=ee.key;if(!(!j&&(!p||!p.current||!p.current.contains(ee.target))||j&&(!g||!g.current||!g.current.contains(ee.target)))&&(j&&(ge==="Enter"||ge==="Tab")&&(ee.preventDefault(),ee.stopImmediatePropagation(),g.current.value&&M&&M(ee,g.current.value),y(!1),(Ve=p?.current)===null||Ve===void 0||Ve.focus()),j&&ge==="Escape"&&(ee.preventDefault(),ee.stopImmediatePropagation(),g.current.value&&(g.current.value=l,L&&L(ee,l)),y(!1),(xe=p?.current)===null||xe===void 0||xe.focus()),!j&&ge==="Enter")){ee.preventDefault(),ee.stopImmediatePropagation(),y(!0);const De=ee.target,Ae=document.createRange(),Ne=window.getSelection();Ae.selectNodeContents(De),Ae.collapse(!1),Ne.removeAllRanges(),Ne.addRange(Ae)}},K=(v||F)&&k,Oe=V.jsx(ci,Object.assign({type:"button",variant:"plain",hasNoPadding:!0,onClick:B,"aria-label":W||`Close ${l}`},K&&{isDisabled:!0},re,{icon:V.jsx(ls,{})})),ye=V.jsx("span",{className:J(se.labelActions),children:H||Oe}),he=te.createRef(),me=te.useRef(void 0),[Te,Ke]=te.useState(!1);ns(()=>{const ee=c?p:he;j||Ke(ee.current&&ee.current.offsetWidth<ee.current.scrollWidth)},[j]);const Qe=V.jsxs(te.Fragment,{children:[Q&&V.jsx("span",{className:J(se.labelIcon),children:Q}),V.jsx("span",Object.assign({ref:he,className:J(se.labelText)},d&&{style:{[bs.name]:d}},{children:l}))]});te.useEffect(()=>{j&&g&&g.current&&g.current.focus()},[g,j]);const at=()=>{s(g.current.value)};let ve="span";v?ve="a":(c||F&&!N&&!O)&&(ve="button");const _e={type:"button",onClick:F},Re=ve==="button",Ye=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({className:J(se.labelContent,X&&se.modifiers.clickable)},Te&&{tabIndex:0}),v&&{href:v}),v&&k&&{onClick:ee=>ee.preventDefault()}),Re&&_e),c&&Object.assign({ref:p,onClick:ee=>{y(!0),ee.stopPropagation()}},h)),K&&Re&&{disabled:!0}),K&&v&&{tabIndex:-1,"aria-disabled":!0});let ke=V.jsx(ve,Object.assign({},Ye,{children:Qe}));n?ke=V.jsxs(te.Fragment,{children:[Te&&V.jsx(bt,{triggerRef:me,content:l,position:T}),n({className:se.labelContent,content:Qe,componentRef:me})]}):Te&&(ke=V.jsx(bt,{content:l,position:T,children:ke}));const Ue=N?"button":"span";return V.jsxs(Ue,Object.assign({},P,{className:J(se.label,K&&se.modifiers.disabled,Ss[C],m==="filled"&&se.modifiers.filled,m==="outline"&&se.modifiers.outline,b&&se.modifiers[b],N&&se.modifiers.overflow,S&&se.modifiers.compact,c&&gs.modifiers.editable,j&&se.modifiers.editableActive,X&&se.modifiers.clickable,O&&se.modifiers.add,w),onClick:N||O?F:void 0},Ue==="button"&&{type:"button"},{children:[!j&&ke,!j&&B&&ye,j&&V.jsx("input",Object.assign({className:J(se.labelContent),type:"text",id:"editable-input",ref:g,value:r,onChange:at},h))]}))};Cs.displayName="Label";const $t={gallery:"pf-v6-l-gallery",modifiers:{gutter:"pf-m-gutter"}},Ts={name:"--pf-v6-l-gallery--GridTemplateColumns--min",value:"250px",var:"var(--pf-v6-l-gallery--GridTemplateColumns--min)"},_s={name:"--pf-v6-l-gallery--GridTemplateColumns--max",value:"1fr",var:"var(--pf-v6-l-gallery--GridTemplateColumns--max)"},ks=E=>{var{children:l=null,className:w="",component:C="div",hasGutter:m=!1,minWidths:b,maxWidths:S}=E,k=ue(E,["children","className","component","hasGutter","minWidths","maxWidths"]);const c={},o=C;b&&Object.entries(b||{}).map(([T,I])=>c[`${Ts.name}${T!=="default"?`-on-${T}`:""}`]=I);const h={};S&&Object.entries(S||{}).map(([T,I])=>h[`${_s.name}${T!=="default"?`-on-${T}`:""}`]=I);const d=Object.assign(Object.assign({},c),h);return V.jsx(o,Object.assign({className:J($t.gallery,m&&$t.modifiers.gutter,w)},k,(b||S)&&{style:Object.assign(Object.assign({},d),k.style)},{children:l}))};ks.displayName="Gallery";const Es=E=>{var{children:l=null,component:w="div"}=E,C=ue(E,["children","component"]);const m=w;return V.jsx(m,Object.assign({},C,{children:l}))};Es.displayName="GalleryItem";const Je={modifiers:{wrap:"pf-m-wrap",fill:"pf-m-fill",gutter:"pf-m-gutter"},split:"pf-v6-l-split",splitItem:"pf-v6-l-split__item"},As=E=>{var{hasGutter:l=!1,isWrappable:w=!1,className:C="",children:m=null,component:b="div"}=E,S=ue(E,["hasGutter","isWrappable","className","children","component"]);const k=b;return V.jsx(k,Object.assign({},S,{className:J(Je.split,l&&Je.modifiers.gutter,w&&Je.modifiers.wrap,C),children:m}))};As.displayName="Split";const Ns=E=>{var{isFilled:l=!1,className:w="",children:C=null,component:m="div"}=E,b=ue(E,["isFilled","className","children","component"]);const S=m;return V.jsx(S,Object.assign({},b,{className:J(Je.splitItem,l&&Je.modifiers.fill,w),children:C}))};Ns.displayName="SplitItem";const Is={name:"ListIcon",height:512,width:512,svgPath:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z",yOffset:0,xOffset:0},Xs=pi(Is),Ps={name:"ThIcon",height:512,width:512,svgPath:"M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z",yOffset:0,xOffset:0},zs=pi(Ps);var ze={exports:{}},Ls=ze.exports,ei;function Le(){return ei||(ei=1,function(E,l){(function(w,C){C(l)})(Ls,function(w){var C=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],m=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],b="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",S="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",k={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"},c="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:c,"5module":c+" export import",6:c+" const class extends export import super"},h=/^in(stanceof)?$/,d=new RegExp("["+S+"]"),T=new RegExp("["+S+b+"]");function I(e,t){for(var i=65536,a=0;a<t.length;a+=2){if(i+=t[a],i>e)return!1;if(i+=t[a+1],i>=e)return!0}return!1}function B(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&d.test(String.fromCharCode(e)):t===!1?!1:I(e,m)}function F(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&T.test(String.fromCharCode(e)):t===!1?!1:I(e,m)||I(e,C)}var L=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function M(e,t){return new L(e,{beforeExpr:!0,binop:t})}var H={beforeExpr:!0},W={startsExpr:!0},re={};function v(e,t){return t===void 0&&(t={}),t.keyword=e,re[e]=new L(e,t)}var n={num:new L("num",W),regexp:new L("regexp",W),string:new L("string",W),name:new L("name",W),privateId:new L("privateId",W),eof:new L("eof"),bracketL:new L("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new L("]"),braceL:new L("{",{beforeExpr:!0,startsExpr:!0}),braceR:new L("}"),parenL:new L("(",{beforeExpr:!0,startsExpr:!0}),parenR:new L(")"),comma:new L(",",H),semi:new L(";",H),colon:new L(":",H),dot:new L("."),question:new L("?",H),questionDot:new L("?."),arrow:new L("=>",H),template:new L("template"),invalidTemplate:new L("invalidTemplate"),ellipsis:new L("...",H),backQuote:new L("`",W),dollarBraceL:new L("${",{beforeExpr:!0,startsExpr:!0}),eq:new L("=",{beforeExpr:!0,isAssign:!0}),assign:new L("_=",{beforeExpr:!0,isAssign:!0}),incDec:new L("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new L("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:M("||",1),logicalAND:M("&&",2),bitwiseOR:M("|",3),bitwiseXOR:M("^",4),bitwiseAND:M("&",5),equality:M("==/!=/===/!==",6),relational:M("</>/<=/>=",7),bitShift:M("<</>>/>>>",8),plusMin:new L("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:M("%",10),star:M("*",10),slash:M("/",10),starstar:new L("**",{beforeExpr:!0}),coalesce:M("??",1),_break:v("break"),_case:v("case",H),_catch:v("catch"),_continue:v("continue"),_debugger:v("debugger"),_default:v("default",H),_do:v("do",{isLoop:!0,beforeExpr:!0}),_else:v("else",H),_finally:v("finally"),_for:v("for",{isLoop:!0}),_function:v("function",W),_if:v("if"),_return:v("return",H),_switch:v("switch"),_throw:v("throw",H),_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",W),_super:v("super",W),_class:v("class",W),_extends:v("extends",H),_export:v("export"),_import:v("import",W),_null:v("null",W),_true:v("true",W),_false:v("false",W),_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})},P=/\r\n?|\n|\u2028|\u2029/,j=new RegExp(P.source,"g");function y(e){return e===10||e===13||e===8232||e===8233}function r(e,t,i){i===void 0&&(i=e.length);for(var a=t;a<i;a++){var u=e.charCodeAt(a);if(y(u))return a<i-1&&u===13&&e.charCodeAt(a+1)===10?a+2:a+1}return-1}var s=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,p=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,g=Object.prototype,N=g.hasOwnProperty,O=g.toString,X=Object.hasOwn||function(e,t){return N.call(e,t)},Q=Array.isArray||function(e){return O.call(e)==="[object Array]"},Y=Object.create(null);function Z(e){return Y[e]||(Y[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function K(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var Oe=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ye=function(t,i){this.line=t,this.column=i};ye.prototype.offset=function(t){return new ye(this.line,this.column+t)};var he=function(t,i,a){this.start=i,this.end=a,t.sourceFile!==null&&(this.source=t.sourceFile)};function me(e,t){for(var i=1,a=0;;){var u=r(e,a,t);if(u<0)return new ye(i,t-a);++i,a=u}}var Te={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},Ke=!1;function Qe(e){var t={};for(var i in Te)t[i]=e&&X(e,i)?e[i]:Te[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!Ke&&typeof console=="object"&&console.warn&&(Ke=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2
|
-
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),Q(t.onToken)){var a=t.onToken;t.onToken=function(u){return a.push(u)}}return Q(t.onComment)&&(t.onComment=at(t,t.onComment)),t}function at(e,t){return function(i,a,u,f,x,_){var A={type:i?"Block":"Line",value:a,start:u,end:f};e.locations&&(A.loc=new he(this,x,_)),e.ranges&&(A.range=[u,f]),t.push(A)}}var ve=1,_e=2,Re=4,Ye=8,ke=16,Ue=32,ee=64,Ve=128,xe=256,ge=512,De=ve|_e|xe;function Ae(e,t){return _e|(e?Re:0)|(t?Ye:0)}var Ne=0,nt=1,we=2,wt=3,Ct=4,Tt=5,ne=function(t,i,a){this.options=t=Qe(t),this.sourceFile=t.sourceFile,this.keywords=Z(o[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var u="";t.allowReserved!==!0&&(u=k[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(u+=" await")),this.reservedWords=Z(u);var f=(u?u+" ":"")+k.strict;this.reservedWordsStrict=Z(f),this.reservedWordsStrictBind=Z(f+" "+k.strictBind),this.input=String(i),this.containsEsc=!1,a?(this.pos=a,this.lineStart=this.input.lastIndexOf(`
|
|
3
|
-
`,a-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(P).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=n.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ve),this.regexpState=null,this.privateNameStack=[]},be={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};ne.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},be.inFunction.get=function(){return(this.currentVarScope().flags&_e)>0},be.inGenerator.get=function(){return(this.currentVarScope().flags&Ye)>0},be.inAsync.get=function(){return(this.currentVarScope().flags&Re)>0},be.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],i=t.flags;if(i&(xe|ge))return!1;if(i&_e)return(i&Re)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},be.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&ee)>0||this.options.allowSuperOutsideMethod},be.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ve)>0},be.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},be.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],i=t.flags;if(i&(xe|ge)||i&_e&&!(i&ke))return!0}return!1},be.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&xe)>0},ne.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var a=this,u=0;u<t.length;u++)a=t[u](a);return a},ne.parse=function(t,i){return new this(i,t).parse()},ne.parseExpressionAt=function(t,i,a){var u=new this(a,t,i);return u.nextToken(),u.parseExpression()},ne.tokenizer=function(t,i){return new this(i,t)},Object.defineProperties(ne.prototype,be);var le=ne.prototype,wi=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;le.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){p.lastIndex=e,e+=p.exec(this.input)[0].length;var t=wi.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){p.lastIndex=e+t[0].length;var i=p.exec(this.input),a=i.index+i[0].length,u=this.input.charAt(a);return u===";"||u==="}"||P.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(u)||u==="!"&&this.input.charAt(a+1)==="=")}e+=t[0].length,p.lastIndex=e,e+=p.exec(this.input)[0].length,this.input[e]===";"&&e++}},le.eat=function(e){return this.type===e?(this.next(),!0):!1},le.isContextual=function(e){return this.type===n.name&&this.value===e&&!this.containsEsc},le.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},le.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},le.canInsertSemicolon=function(){return this.type===n.eof||this.type===n.braceR||P.test(this.input.slice(this.lastTokEnd,this.start))},le.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},le.semicolon=function(){!this.eat(n.semi)&&!this.insertSemicolon()&&this.unexpected()},le.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},le.expect=function(e){this.eat(e)||this.unexpected()},le.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Ze=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};le.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")}},le.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,a=e.doubleProto;if(!t)return i>=0||a>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),a>=0&&this.raiseRecoverable(a,"Redefinition of __proto__ property")},le.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")},le.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var D=ne.prototype;D.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==n.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var a=0,u=Object.keys(this.undefinedExports);a<u.length;a+=1){var f=u[a];this.raiseRecoverable(this.undefinedExports[f].start,"Export '"+f+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var ot={kind:"loop"},Ci={kind:"switch"};D.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;p.lastIndex=this.pos;var t=p.exec(this.input),i=this.pos+t[0].length,a=this.input.charCodeAt(i);if(a===91||a===92)return!0;if(e)return!1;if(a===123||a>55295&&a<56320)return!0;if(B(a,!0)){for(var u=i+1;F(a=this.input.charCodeAt(u),!0);)++u;if(a===92||a>55295&&a<56320)return!0;var f=this.input.slice(i,u);if(!h.test(f))return!0}return!1},D.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;p.lastIndex=this.pos;var e=p.exec(this.input),t=this.pos+e[0].length,i;return!P.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(F(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))},D.parseStatement=function(e,t,i){var a=this.type,u=this.startNode(),f;switch(this.isLet(e)&&(a=n._var,f="let"),a){case n._break:case n._continue:return this.parseBreakContinueStatement(u,a.keyword);case n._debugger:return this.parseDebuggerStatement(u);case n._do:return this.parseDoStatement(u);case n._for:return this.parseForStatement(u);case n._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(u,!1,!e);case n._class:return e&&this.unexpected(),this.parseClass(u,!0);case n._if:return this.parseIfStatement(u);case n._return:return this.parseReturnStatement(u);case n._switch:return this.parseSwitchStatement(u);case n._throw:return this.parseThrowStatement(u);case n._try:return this.parseTryStatement(u);case n._const:case n._var:return f=f||this.value,e&&f!=="var"&&this.unexpected(),this.parseVarStatement(u,f);case n._while:return this.parseWhileStatement(u);case n._with:return this.parseWithStatement(u);case n.braceL:return this.parseBlock(!0,u);case n.semi:return this.parseEmptyStatement(u);case n._export:case n._import:if(this.options.ecmaVersion>10&&a===n._import){p.lastIndex=this.pos;var x=p.exec(this.input),_=this.pos+x[0].length,A=this.input.charCodeAt(_);if(A===40||A===46)return this.parseExpressionStatement(u,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'")),a===n._import?this.parseImport(u):this.parseExport(u,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(u,!0,!e);var G=this.value,U=this.parseExpression();return a===n.name&&U.type==="Identifier"&&this.eat(n.colon)?this.parseLabeledStatement(u,G,U,e):this.parseExpressionStatement(u,U)}},D.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(n.semi)||this.insertSemicolon()?e.label=null:this.type!==n.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var a=0;a<this.labels.length;++a){var u=this.labels[a];if((e.label==null||u.name===e.label.name)&&(u.kind!=null&&(i||u.kind==="loop")||e.label&&i))break}return a===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")},D.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},D.parseDoStatement=function(e){return this.next(),this.labels.push(ot),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(n._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(n.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},D.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ot),this.enterScope(0),this.expect(n.parenL),this.type===n.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===n._var||this.type===n._const||i){var a=this.startNode(),u=i?"let":this.value;return this.next(),this.parseVar(a,!0,u),this.finishNode(a,"VariableDeclaration"),(this.type===n._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&a.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===n._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,a)):(t>-1&&this.unexpected(t),this.parseFor(e,a))}var f=this.isContextual("let"),x=!1,_=this.containsEsc,A=new Ze,G=this.start,U=t>-1?this.parseExprSubscripts(A,"await"):this.parseExpression(!0,A);return this.type===n._in||(x=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===n._in&&this.unexpected(t),e.await=!0):x&&this.options.ecmaVersion>=8&&(U.start===G&&!_&&U.type==="Identifier"&&U.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),f&&x&&this.raise(U.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(U,!1,A),this.checkLValPattern(U),this.parseForIn(e,U)):(this.checkExpressionErrors(A,!0),t>-1&&this.unexpected(t),this.parseFor(e,U))},D.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,He|(i?0:ut),!1,t)},D.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(n._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},D.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(n.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},D.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(n.braceL),this.labels.push(Ci),this.enterScope(0);for(var t,i=!1;this.type!==n.braceR;)if(this.type===n._case||this.type===n._default){var a=this.type===n._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),a?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(n.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},D.parseThrowStatement=function(e){return this.next(),P.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 Ti=[];D.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Ue:0),this.checkLValPattern(e,t?Ct:we),this.expect(n.parenR),e},D.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===n._catch){var t=this.startNode();this.next(),this.eat(n.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(n._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},D.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},D.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(ot),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},D.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},D.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},D.parseLabeledStatement=function(e,t,i,a){for(var u=0,f=this.labels;u<f.length;u+=1){var x=f[u];x.name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var _=this.type.isLoop?"loop":this.type===n._switch?"switch":null,A=this.labels.length-1;A>=0;A--){var G=this.labels[A];if(G.statementStart===e.start)G.statementStart=this.start,G.kind=_;else break}return this.labels.push({name:t,kind:_,statementStart:this.start}),e.body=this.parseStatement(a?a.indexOf("label")===-1?a+"label":a:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},D.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},D.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(n.braceL),e&&this.enterScope(0);this.type!==n.braceR;){var a=this.parseStatement(null);t.body.push(a)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},D.parseFor=function(e,t){return e.init=t,this.expect(n.semi),e.test=this.type===n.semi?null:this.parseExpression(),this.expect(n.semi),e.update=this.type===n.parenR?null:this.parseExpression(),this.expect(n.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},D.parseForIn=function(e,t){var i=this.type===n._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(n.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},D.parseVar=function(e,t,i,a){for(e.declarations=[],e.kind=i;;){var u=this.startNode();if(this.parseVarId(u,i),this.eat(n.eq)?u.init=this.parseMaybeAssign(t):!a&&i==="const"&&!(this.type===n._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!a&&u.id.type!=="Identifier"&&!(t&&(this.type===n._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):u.init=null,e.declarations.push(this.finishNode(u,"VariableDeclarator")),!this.eat(n.comma))break}return e},D.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?nt:we,!1)};var He=1,ut=2,_t=4;D.parseFunction=function(e,t,i,a,u){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!a)&&(this.type===n.star&&t&ut&&this.unexpected(),e.generator=this.eat(n.star)),this.options.ecmaVersion>=8&&(e.async=!!a),t&He&&(e.id=t&_t&&this.type!==n.name?null:this.parseIdent(),e.id&&!(t&ut)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?nt:we:wt));var f=this.yieldPos,x=this.awaitPos,_=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ae(e.async,e.generator)),t&He||(e.id=this.type===n.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,u),this.yieldPos=f,this.awaitPos=x,this.awaitIdentPos=_,this.finishNode(e,t&He?"FunctionDeclaration":"FunctionExpression")},D.parseFunctionParams=function(e){this.expect(n.parenL),e.params=this.parseBindingList(n.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},D.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var a=this.enterClassBody(),u=this.startNode(),f=!1;for(u.body=[],this.expect(n.braceL);this.type!==n.braceR;){var x=this.parseClassElement(e.superClass!==null);x&&(u.body.push(x),x.type==="MethodDefinition"&&x.kind==="constructor"?(f&&this.raiseRecoverable(x.start,"Duplicate constructor in the same class"),f=!0):x.key&&x.key.type==="PrivateIdentifier"&&_i(a,x)&&this.raiseRecoverable(x.key.start,"Identifier '#"+x.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(u,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},D.parseClassElement=function(e){if(this.eat(n.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),a="",u=!1,f=!1,x="method",_=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(n.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===n.star?_=!0:a="static"}if(i.static=_,!a&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===n.star)&&!this.canInsertSemicolon()?f=!0:a="async"),!a&&(t>=9||!f)&&this.eat(n.star)&&(u=!0),!a&&!f&&!u){var A=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?x=A:a=A)}if(a?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=a,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===n.parenL||x!=="method"||u||f){var G=!i.static&&$e(i,"constructor"),U=G&&e;G&&x!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=G?"constructor":x,this.parseClassMethod(i,u,f,U)}else this.parseClassField(i);return i},D.isClassElementNameStart=function(){return this.type===n.name||this.type===n.privateId||this.type===n.num||this.type===n.string||this.type===n.bracketL||this.type.keyword},D.parseClassElementName=function(e){this.type===n.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},D.parseClassMethod=function(e,t,i,a){var u=e.key;e.kind==="constructor"?(t&&this.raise(u.start,"Constructor can't be a generator"),i&&this.raise(u.start,"Constructor can't be an async method")):e.static&&$e(e,"prototype")&&this.raise(u.start,"Classes may not have a static property named prototype");var f=e.value=this.parseMethod(t,i,a);return e.kind==="get"&&f.params.length!==0&&this.raiseRecoverable(f.start,"getter should have no params"),e.kind==="set"&&f.params.length!==1&&this.raiseRecoverable(f.start,"setter should have exactly one param"),e.kind==="set"&&f.params[0].type==="RestElement"&&this.raiseRecoverable(f.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},D.parseClassField=function(e){return $e(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&$e(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(n.eq)?(this.enterScope(ge|ee),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},D.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(xe|ee);this.type!==n.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},D.parseClassId=function(e,t){this.type===n.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,we,!1)):(t===!0&&this.unexpected(),e.id=null)},D.parseClassSuper=function(e){e.superClass=this.eat(n._extends)?this.parseExprSubscripts(null,!1):null},D.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},D.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var a=this.privateNameStack.length,u=a===0?null:this.privateNameStack[a-1],f=0;f<i.length;++f){var x=i[f];X(t,x.name)||(u?u.used.push(x):this.raiseRecoverable(x.start,"Private field '#"+x.name+"' must be declared in an enclosing class"))}};function _i(e,t){var i=t.key.name,a=e[i],u="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(u=(t.static?"s":"i")+t.kind),a==="iget"&&u==="iset"||a==="iset"&&u==="iget"||a==="sget"&&u==="sset"||a==="sset"&&u==="sget"?(e[i]="true",!1):a?!0:(e[i]=u,!1)}function $e(e,t){var i=e.computed,a=e.key;return!i&&(a.type==="Identifier"&&a.name===t||a.type==="Literal"&&a.value===t)}D.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!==n.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},D.parseExport=function(e,t){if(this.next(),this.eat(n.star))return this.parseExportAllDeclaration(e,t);if(this.eat(n._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==n.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var i=0,a=e.specifiers;i<a.length;i+=1){var u=a[i];this.checkUnreserved(u.local),this.checkLocalExport(u.local),u.local.type==="Literal"&&this.raise(u.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")},D.parseExportDeclaration=function(e){return this.parseStatement(null)},D.parseExportDefaultDeclaration=function(){var e;if(this.type===n._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,He|_t,!1,e)}else if(this.type===n._class){var i=this.startNode();return this.parseClass(i,"nullableID")}else{var a=this.parseMaybeAssign();return this.semicolon(),a}},D.checkExport=function(e,t,i){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),X(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)},D.checkPatternExport=function(e,t){var i=t.type;if(i==="Identifier")this.checkExport(e,t,t.start);else if(i==="ObjectPattern")for(var a=0,u=t.properties;a<u.length;a+=1){var f=u[a];this.checkPatternExport(e,f)}else if(i==="ArrayPattern")for(var x=0,_=t.elements;x<_.length;x+=1){var A=_[x];A&&this.checkPatternExport(e,A)}else i==="Property"?this.checkPatternExport(e,t.value):i==="AssignmentPattern"?this.checkPatternExport(e,t.left):i==="RestElement"&&this.checkPatternExport(e,t.argument)},D.checkVariableExport=function(e,t){if(e)for(var i=0,a=t;i<a.length;i+=1){var u=a[i];this.checkPatternExport(e,u.id)}},D.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},D.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")},D.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(n.braceL);!this.eat(n.braceR);){if(i)i=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;t.push(this.parseExportSpecifier(e))}return t},D.parseImport=function(e){return this.next(),this.type===n.string?(e.specifiers=Ti,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===n.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},D.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,we),this.finishNode(e,"ImportSpecifier")},D.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,we),this.finishNode(e,"ImportDefaultSpecifier")},D.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,we),this.finishNode(e,"ImportNamespaceSpecifier")},D.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===n.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(n.comma)))return e;if(this.type===n.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(n.braceL);!this.eat(n.braceR);){if(t)t=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;e.push(this.parseImportSpecifier())}return e},D.parseWithClause=function(){var e=[];if(!this.eat(n._with))return e;this.expect(n.braceL);for(var t={},i=!0;!this.eat(n.braceR);){if(i)i=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;var a=this.parseImportAttribute(),u=a.key.type==="Identifier"?a.key.name:a.key.value;X(t,u)&&this.raiseRecoverable(a.key.start,"Duplicate attribute key '"+u+"'"),t[u]=!0,e.push(a)}return e},D.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===n.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(n.colon),this.type!==n.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},D.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===n.string){var e=this.parseLiteral(this.value);return Oe.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},D.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},D.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var ce=ne.prototype;ce.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var a=0,u=e.properties;a<u.length;a+=1){var f=u[a];this.toAssignable(f,t),f.type==="RestElement"&&(f.argument.type==="ArrayPattern"||f.argument.type==="ObjectPattern")&&this.raise(f.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e},ce.toAssignableList=function(e,t){for(var i=e.length,a=0;a<i;a++){var u=e[a];u&&this.toAssignable(u,t)}if(i){var f=e[i-1];this.options.ecmaVersion===6&&t&&f&&f.type==="RestElement"&&f.argument.type!=="Identifier"&&this.unexpected(f.argument.start)}return e},ce.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},ce.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==n.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},ce.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case n.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(n.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case n.braceL:return this.parseObj(!0)}return this.parseIdent()},ce.parseBindingList=function(e,t,i,a){for(var u=[],f=!0;!this.eat(e);)if(f?f=!1:this.expect(n.comma),t&&this.type===n.comma)u.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===n.ellipsis){var x=this.parseRestBinding();this.parseBindingListItem(x),u.push(x),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else u.push(this.parseAssignableListItem(a))}return u},ce.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},ce.parseBindingListItem=function(e){return e},ce.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(n.eq))return i;var a=this.startNodeAt(e,t);return a.left=i,a.right=this.parseMaybeAssign(),this.finishNode(a,"AssignmentPattern")},ce.checkLValSimple=function(e,t,i){t===void 0&&(t=Ne);var a=t!==Ne;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(a?"Binding ":"Assigning to ")+e.name+" in strict mode"),a&&(t===we&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(X(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==Tt&&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":a&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return a&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(a?"Binding":"Assigning to")+" rvalue")}},ce.checkLValPattern=function(e,t,i){switch(t===void 0&&(t=Ne),e.type){case"ObjectPattern":for(var a=0,u=e.properties;a<u.length;a+=1){var f=u[a];this.checkLValInnerPattern(f,t,i)}break;case"ArrayPattern":for(var x=0,_=e.elements;x<_.length;x+=1){var A=_[x];A&&this.checkLValInnerPattern(A,t,i)}break;default:this.checkLValSimple(e,t,i)}},ce.checkLValInnerPattern=function(e,t,i){switch(t===void 0&&(t=Ne),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 pe=function(t,i,a,u,f){this.token=t,this.isExpr=!!i,this.preserveSpace=!!a,this.override=u,this.generator=!!f},ie={b_stat:new pe("{",!1),b_expr:new pe("{",!0),b_tmpl:new pe("${",!1),p_stat:new pe("(",!1),p_expr:new pe("(",!0),q_tmpl:new pe("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new pe("function",!1),f_expr:new pe("function",!0),f_expr_gen:new pe("function",!0,!1,null,!0),f_gen:new pe("function",!1,!1,null,!0)},Be=ne.prototype;Be.initialContext=function(){return[ie.b_stat]},Be.curContext=function(){return this.context[this.context.length-1]},Be.braceIsBlock=function(e){var t=this.curContext();return t===ie.f_expr||t===ie.f_stat?!0:e===n.colon&&(t===ie.b_stat||t===ie.b_expr)?!t.isExpr:e===n._return||e===n.name&&this.exprAllowed?P.test(this.input.slice(this.lastTokEnd,this.start)):e===n._else||e===n.semi||e===n.eof||e===n.parenR||e===n.arrow?!0:e===n.braceL?t===ie.b_stat:e===n._var||e===n._const||e===n.name?!1:!this.exprAllowed},Be.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1},Be.updateContext=function(e){var t,i=this.type;i.keyword&&e===n.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},Be.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},n.parenR.updateContext=n.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===ie.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},n.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ie.b_stat:ie.b_expr),this.exprAllowed=!0},n.dollarBraceL.updateContext=function(){this.context.push(ie.b_tmpl),this.exprAllowed=!0},n.parenL.updateContext=function(e){var t=e===n._if||e===n._for||e===n._with||e===n._while;this.context.push(t?ie.p_stat:ie.p_expr),this.exprAllowed=!0},n.incDec.updateContext=function(){},n._function.updateContext=n._class.updateContext=function(e){e.beforeExpr&&e!==n._else&&!(e===n.semi&&this.curContext()!==ie.p_stat)&&!(e===n._return&&P.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===n.colon||e===n.braceL)&&this.curContext()===ie.b_stat)?this.context.push(ie.f_expr):this.context.push(ie.f_stat),this.exprAllowed=!1},n.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},n.backQuote.updateContext=function(){this.curContext()===ie.q_tmpl?this.context.pop():this.context.push(ie.q_tmpl),this.exprAllowed=!1},n.star.updateContext=function(e){if(e===n._function){var t=this.context.length-1;this.context[t]===ie.f_expr?this.context[t]=ie.f_expr_gen:this.context[t]=ie.f_gen}this.exprAllowed=!0},n.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==n.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var q=ne.prototype;q.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var a=e.key,u;switch(a.type){case"Identifier":u=a.name;break;case"Literal":u=String(a.value);break;default:return}var f=e.kind;if(this.options.ecmaVersion>=6){u==="__proto__"&&f==="init"&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=a.start):this.raiseRecoverable(a.start,"Redefinition of __proto__ property")),t.proto=!0);return}u="$"+u;var x=t[u];if(x){var _;f==="init"?_=this.strict&&x.init||x.get||x.set:_=x.init||x[f],_&&this.raiseRecoverable(a.start,"Redefinition of property")}else x=t[u]={init:!1,get:!1,set:!1};x[f]=!0}},q.parseExpression=function(e,t){var i=this.start,a=this.startLoc,u=this.parseMaybeAssign(e,t);if(this.type===n.comma){var f=this.startNodeAt(i,a);for(f.expressions=[u];this.eat(n.comma);)f.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(f,"SequenceExpression")}return u},q.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var a=!1,u=-1,f=-1,x=-1;t?(u=t.parenthesizedAssign,f=t.trailingComma,x=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Ze,a=!0);var _=this.start,A=this.startLoc;(this.type===n.parenL||this.type===n.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var G=this.parseMaybeConditional(e,t);if(i&&(G=i.call(this,G,_,A)),this.type.isAssign){var U=this.startNodeAt(_,A);return U.operator=this.value,this.type===n.eq&&(G=this.toAssignable(G,!1,t)),a||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=G.start&&(t.shorthandAssign=-1),this.type===n.eq?this.checkLValPattern(G):this.checkLValSimple(G),U.left=G,this.next(),U.right=this.parseMaybeAssign(e),x>-1&&(t.doubleProto=x),this.finishNode(U,"AssignmentExpression")}else a&&this.checkExpressionErrors(t,!0);return u>-1&&(t.parenthesizedAssign=u),f>-1&&(t.trailingComma=f),G},q.parseMaybeConditional=function(e,t){var i=this.start,a=this.startLoc,u=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return u;if(this.eat(n.question)){var f=this.startNodeAt(i,a);return f.test=u,f.consequent=this.parseMaybeAssign(),this.expect(n.colon),f.alternate=this.parseMaybeAssign(e),this.finishNode(f,"ConditionalExpression")}return u},q.parseExprOps=function(e,t){var i=this.start,a=this.startLoc,u=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||u.start===i&&u.type==="ArrowFunctionExpression"?u:this.parseExprOp(u,i,a,-1,e)},q.parseExprOp=function(e,t,i,a,u){var f=this.type.binop;if(f!=null&&(!u||this.type!==n._in)&&f>a){var x=this.type===n.logicalOR||this.type===n.logicalAND,_=this.type===n.coalesce;_&&(f=n.logicalAND.binop);var A=this.value;this.next();var G=this.start,U=this.startLoc,oe=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,u),G,U,f,u),Ie=this.buildBinary(t,i,e,oe,A,x||_);return(x&&this.type===n.coalesce||_&&(this.type===n.logicalOR||this.type===n.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Ie,t,i,a,u)}return e},q.buildBinary=function(e,t,i,a,u,f){a.type==="PrivateIdentifier"&&this.raise(a.start,"Private identifier can only be left side of binary expression");var x=this.startNodeAt(e,t);return x.left=i,x.operator=u,x.right=a,this.finishNode(x,f?"LogicalExpression":"BinaryExpression")},q.parseMaybeUnary=function(e,t,i,a){var u=this.start,f=this.startLoc,x;if(this.isContextual("await")&&this.canAwait)x=this.parseAwait(a),t=!0;else if(this.type.prefix){var _=this.startNode(),A=this.type===n.incDec;_.operator=this.value,_.prefix=!0,this.next(),_.argument=this.parseMaybeUnary(null,!0,A,a),this.checkExpressionErrors(e,!0),A?this.checkLValSimple(_.argument):this.strict&&_.operator==="delete"&&kt(_.argument)?this.raiseRecoverable(_.start,"Deleting local variable in strict mode"):_.operator==="delete"&<(_.argument)?this.raiseRecoverable(_.start,"Private fields can not be deleted"):t=!0,x=this.finishNode(_,A?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===n.privateId)(a||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),x=this.parsePrivateIdent(),this.type!==n._in&&this.unexpected();else{if(x=this.parseExprSubscripts(e,a),this.checkExpressionErrors(e))return x;for(;this.type.postfix&&!this.canInsertSemicolon();){var G=this.startNodeAt(u,f);G.operator=this.value,G.prefix=!1,G.argument=x,this.checkLValSimple(x),this.next(),x=this.finishNode(G,"UpdateExpression")}}if(!i&&this.eat(n.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(u,f,x,this.parseMaybeUnary(null,!1,!1,a),"**",!1);else return x};function kt(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&kt(e.expression)}function lt(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&<(e.expression)||e.type==="ParenthesizedExpression"&<(e.expression)}q.parseExprSubscripts=function(e,t){var i=this.start,a=this.startLoc,u=this.parseExprAtom(e,t);if(u.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return u;var f=this.parseSubscripts(u,i,a,!1,t);return e&&f.type==="MemberExpression"&&(e.parenthesizedAssign>=f.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=f.start&&(e.parenthesizedBind=-1),e.trailingComma>=f.start&&(e.trailingComma=-1)),f},q.parseSubscripts=function(e,t,i,a,u){for(var f=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,x=!1;;){var _=this.parseSubscript(e,t,i,a,f,x,u);if(_.optional&&(x=!0),_===e||_.type==="ArrowFunctionExpression"){if(x){var A=this.startNodeAt(t,i);A.expression=_,_=this.finishNode(A,"ChainExpression")}return _}e=_}},q.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(n.arrow)},q.parseSubscriptAsyncArrow=function(e,t,i,a){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,a)},q.parseSubscript=function(e,t,i,a,u,f,x){var _=this.options.ecmaVersion>=11,A=_&&this.eat(n.questionDot);a&&A&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var G=this.eat(n.bracketL);if(G||A&&this.type!==n.parenL&&this.type!==n.backQuote||this.eat(n.dot)){var U=this.startNodeAt(t,i);U.object=e,G?(U.property=this.parseExpression(),this.expect(n.bracketR)):this.type===n.privateId&&e.type!=="Super"?U.property=this.parsePrivateIdent():U.property=this.parseIdent(this.options.allowReserved!=="never"),U.computed=!!G,_&&(U.optional=A),e=this.finishNode(U,"MemberExpression")}else if(!a&&this.eat(n.parenL)){var oe=new Ze,Ie=this.yieldPos,Xe=this.awaitPos,je=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var rt=this.parseExprList(n.parenR,this.options.ecmaVersion>=8,!1,oe);if(u&&!A&&this.shouldParseAsyncArrow())return this.checkPatternErrors(oe,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Ie,this.awaitPos=Xe,this.awaitIdentPos=je,this.parseSubscriptAsyncArrow(t,i,rt,x);this.checkExpressionErrors(oe,!0),this.yieldPos=Ie||this.yieldPos,this.awaitPos=Xe||this.awaitPos,this.awaitIdentPos=je||this.awaitIdentPos;var Fe=this.startNodeAt(t,i);Fe.callee=e,Fe.arguments=rt,_&&(Fe.optional=A),e=this.finishNode(Fe,"CallExpression")}else if(this.type===n.backQuote){(A||f)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Me=this.startNodeAt(t,i);Me.tag=e,Me.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(Me,"TaggedTemplateExpression")}return e},q.parseExprAtom=function(e,t,i){this.type===n.slash&&this.readRegexp();var a,u=this.potentialArrowAt===this.start;switch(this.type){case n._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),a=this.startNode(),this.next(),this.type===n.parenL&&!this.allowDirectSuper&&this.raise(a.start,"super() call outside constructor of a subclass"),this.type!==n.dot&&this.type!==n.bracketL&&this.type!==n.parenL&&this.unexpected(),this.finishNode(a,"Super");case n._this:return a=this.startNode(),this.next(),this.finishNode(a,"ThisExpression");case n.name:var f=this.start,x=this.startLoc,_=this.containsEsc,A=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!_&&A.name==="async"&&!this.canInsertSemicolon()&&this.eat(n._function))return this.overrideContext(ie.f_expr),this.parseFunction(this.startNodeAt(f,x),0,!1,!0,t);if(u&&!this.canInsertSemicolon()){if(this.eat(n.arrow))return this.parseArrowExpression(this.startNodeAt(f,x),[A],!1,t);if(this.options.ecmaVersion>=8&&A.name==="async"&&this.type===n.name&&!_&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return A=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(n.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(f,x),[A],!0,t)}return A;case n.regexp:var G=this.value;return a=this.parseLiteral(G.value),a.regex={pattern:G.pattern,flags:G.flags},a;case n.num:case n.string:return this.parseLiteral(this.value);case n._null:case n._true:case n._false:return a=this.startNode(),a.value=this.type===n._null?null:this.type===n._true,a.raw=this.type.keyword,this.next(),this.finishNode(a,"Literal");case n.parenL:var U=this.start,oe=this.parseParenAndDistinguishExpression(u,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(oe)&&(e.parenthesizedAssign=U),e.parenthesizedBind<0&&(e.parenthesizedBind=U)),oe;case n.bracketL:return a=this.startNode(),this.next(),a.elements=this.parseExprList(n.bracketR,!0,!0,e),this.finishNode(a,"ArrayExpression");case n.braceL:return this.overrideContext(ie.b_expr),this.parseObj(!1,e);case n._function:return a=this.startNode(),this.next(),this.parseFunction(a,0);case n._class:return this.parseClass(this.startNode(),!1);case n._new:return this.parseNew();case n.backQuote:return this.parseTemplate();case n._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},q.parseExprAtomDefault=function(){this.unexpected()},q.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===n.parenL&&!e)return this.parseDynamicImport(t);if(this.type===n.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)}else this.unexpected()},q.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(n.parenR)?e.options=null:(this.expect(n.comma),this.afterTrailingComma(n.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(n.parenR)||(this.expect(n.comma),this.afterTrailingComma(n.parenR)||this.unexpected())));else if(!this.eat(n.parenR)){var t=this.start;this.eat(n.comma)&&this.eat(n.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},q.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},q.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},q.parseParenExpression=function(){this.expect(n.parenL);var e=this.parseExpression();return this.expect(n.parenR),e},q.shouldParseArrow=function(e){return!this.canInsertSemicolon()},q.parseParenAndDistinguishExpression=function(e,t){var i=this.start,a=this.startLoc,u,f=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var x=this.start,_=this.startLoc,A=[],G=!0,U=!1,oe=new Ze,Ie=this.yieldPos,Xe=this.awaitPos,je;for(this.yieldPos=0,this.awaitPos=0;this.type!==n.parenR;)if(G?G=!1:this.expect(n.comma),f&&this.afterTrailingComma(n.parenR,!0)){U=!0;break}else if(this.type===n.ellipsis){je=this.start,A.push(this.parseParenItem(this.parseRestBinding())),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else A.push(this.parseMaybeAssign(!1,oe,this.parseParenItem));var rt=this.lastTokEnd,Fe=this.lastTokEndLoc;if(this.expect(n.parenR),e&&this.shouldParseArrow(A)&&this.eat(n.arrow))return this.checkPatternErrors(oe,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Ie,this.awaitPos=Xe,this.parseParenArrowList(i,a,A,t);(!A.length||U)&&this.unexpected(this.lastTokStart),je&&this.unexpected(je),this.checkExpressionErrors(oe,!0),this.yieldPos=Ie||this.yieldPos,this.awaitPos=Xe||this.awaitPos,A.length>1?(u=this.startNodeAt(x,_),u.expressions=A,this.finishNodeAt(u,"SequenceExpression",rt,Fe)):u=A[0]}else u=this.parseParenExpression();if(this.options.preserveParens){var Me=this.startNodeAt(i,a);return Me.expression=u,this.finishNode(Me,"ParenthesizedExpression")}else return u},q.parseParenItem=function(e){return e},q.parseParenArrowList=function(e,t,i,a){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,a)};var ki=[];q.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===n.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),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var a=this.start,u=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),a,u,!0,!1),this.eat(n.parenL)?e.arguments=this.parseExprList(n.parenR,this.options.ecmaVersion>=8,!1):e.arguments=ki,this.finishNode(e,"NewExpression")},q.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===n.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,`
|
|
4
|
-
`),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
5
|
-
`),cooked:this.value},this.next(),i.tail=this.type===n.backQuote,this.finishNode(i,"TemplateElement")},q.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var a=this.parseTemplateElement({isTagged:t});for(i.quasis=[a];!a.tail;)this.type===n.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(n.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(n.braceR),i.quasis.push(a=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},q.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===n.name||this.type===n.num||this.type===n.string||this.type===n.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===n.star)&&!P.test(this.input.slice(this.lastTokEnd,this.start))},q.parseObj=function(e,t){var i=this.startNode(),a=!0,u={};for(i.properties=[],this.next();!this.eat(n.braceR);){if(a)a=!1;else if(this.expect(n.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(n.braceR))break;var f=this.parseProperty(e,t);e||this.checkPropClash(f,u,t),i.properties.push(f)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},q.parseProperty=function(e,t){var i=this.startNode(),a,u,f,x;if(this.options.ecmaVersion>=9&&this.eat(n.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===n.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(f=this.start,x=this.startLoc),e||(a=this.eat(n.star)));var _=this.containsEsc;return this.parsePropertyName(i),!e&&!_&&this.options.ecmaVersion>=8&&!a&&this.isAsyncProp(i)?(u=!0,a=this.options.ecmaVersion>=9&&this.eat(n.star),this.parsePropertyName(i)):u=!1,this.parsePropertyValue(i,e,a,u,f,x,t,_),this.finishNode(i,"Property")},q.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var i=e.kind==="get"?0:1;if(e.value.params.length!==i){var a=e.value.start;e.kind==="get"?this.raiseRecoverable(a,"getter should have no params"):this.raiseRecoverable(a,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},q.parsePropertyValue=function(e,t,i,a,u,f,x,_){(i||a)&&this.type===n.colon&&this.unexpected(),this.eat(n.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,x),e.kind="init"):this.options.ecmaVersion>=6&&this.type===n.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(i,a),e.kind="init"):!t&&!_&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==n.comma&&this.type!==n.braceR&&this.type!==n.eq?((i||a)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||a)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=u),t?e.value=this.parseMaybeDefault(u,f,this.copyNode(e.key)):this.type===n.eq&&x?(x.shorthandAssign<0&&(x.shorthandAssign=this.start),e.value=this.parseMaybeDefault(u,f,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()},q.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(n.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(n.bracketR),e.key;e.computed=!1}return e.key=this.type===n.num||this.type===n.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},q.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},q.parseMethod=function(e,t,i){var a=this.startNode(),u=this.yieldPos,f=this.awaitPos,x=this.awaitIdentPos;return this.initFunction(a),this.options.ecmaVersion>=6&&(a.generator=e),this.options.ecmaVersion>=8&&(a.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ae(t,a.generator)|ee|(i?Ve:0)),this.expect(n.parenL),a.params=this.parseBindingList(n.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(a,!1,!0,!1),this.yieldPos=u,this.awaitPos=f,this.awaitIdentPos=x,this.finishNode(a,"FunctionExpression")},q.parseArrowExpression=function(e,t,i,a){var u=this.yieldPos,f=this.awaitPos,x=this.awaitIdentPos;return this.enterScope(Ae(i,!1)|ke),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,a),this.yieldPos=u,this.awaitPos=f,this.awaitIdentPos=x,this.finishNode(e,"ArrowFunctionExpression")},q.parseFunctionBody=function(e,t,i,a){var u=t&&this.type!==n.braceL,f=this.strict,x=!1;if(u)e.body=this.parseMaybeAssign(a),e.expression=!0,this.checkParams(e,!1);else{var _=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!f||_)&&(x=this.strictDirective(this.end),x&&_&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var A=this.labels;this.labels=[],x&&(this.strict=!0),this.checkParams(e,!f&&!x&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Tt),e.body=this.parseBlock(!1,void 0,x&&!f),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=A}this.exitScope()},q.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){var a=i[t];if(a.type!=="Identifier")return!1}return!0},q.checkParams=function(e,t){for(var i=Object.create(null),a=0,u=e.params;a<u.length;a+=1){var f=u[a];this.checkLValInnerPattern(f,nt,t?null:i)}},q.parseExprList=function(e,t,i,a){for(var u=[],f=!0;!this.eat(e);){if(f)f=!1;else if(this.expect(n.comma),t&&this.afterTrailingComma(e))break;var x=void 0;i&&this.type===n.comma?x=null:this.type===n.ellipsis?(x=this.parseSpread(a),a&&this.type===n.comma&&a.trailingComma<0&&(a.trailingComma=this.start)):x=this.parseMaybeAssign(!1,a),u.push(x)}return u},q.checkUnreserved=function(e){var t=e.start,i=e.end,a=e.name;if(this.inGenerator&&a==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&a==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&De)&&a==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(a==="arguments"||a==="await")&&this.raise(t,"Cannot use "+a+" in class static initialization block"),this.keywords.test(a)&&this.raise(t,"Unexpected keyword '"+a+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,i).indexOf("\\")!==-1)){var u=this.strict?this.reservedWordsStrict:this.reservedWords;u.test(a)&&(!this.inAsync&&a==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+a+"' is reserved"))}},q.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},q.parseIdentNode=function(){var e=this.startNode();return this.type===n.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=n.name):this.unexpected(),e},q.parsePrivateIdent=function(){var e=this.startNode();return this.type===n.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},q.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===n.semi||this.canInsertSemicolon()||this.type!==n.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(n.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},q.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 et=ne.prototype;et.raise=function(e,t){var i=me(this.input,e);t+=" ("+i.line+":"+i.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var a=new SyntaxError(t);throw a.pos=e,a.loc=i,a.raisedAt=this.pos,a},et.raiseRecoverable=et.raise,et.curPosition=function(){if(this.options.locations)return new ye(this.curLine,this.pos-this.lineStart)};var Ee=ne.prototype,Ei=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Ee.enterScope=function(e){this.scopeStack.push(new Ei(e))},Ee.exitScope=function(){this.scopeStack.pop()},Ee.treatFunctionsAsVarInScope=function(e){return e.flags&_e||!this.inModule&&e.flags&ve},Ee.declareName=function(e,t,i){var a=!1;if(t===we){var u=this.currentScope();a=u.lexical.indexOf(e)>-1||u.functions.indexOf(e)>-1||u.var.indexOf(e)>-1,u.lexical.push(e),this.inModule&&u.flags&ve&&delete this.undefinedExports[e]}else if(t===Ct){var f=this.currentScope();f.lexical.push(e)}else if(t===wt){var x=this.currentScope();this.treatFunctionsAsVar?a=x.lexical.indexOf(e)>-1:a=x.lexical.indexOf(e)>-1||x.var.indexOf(e)>-1,x.functions.push(e)}else for(var _=this.scopeStack.length-1;_>=0;--_){var A=this.scopeStack[_];if(A.lexical.indexOf(e)>-1&&!(A.flags&Ue&&A.lexical[0]===e)||!this.treatFunctionsAsVarInScope(A)&&A.functions.indexOf(e)>-1){a=!0;break}if(A.var.push(e),this.inModule&&A.flags&ve&&delete this.undefinedExports[e],A.flags&De)break}a&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},Ee.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Ee.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ee.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(De|ge|xe))return t}},Ee.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(De|ge|xe)&&!(t.flags&ke))return t}};var Ge=function(t,i,a){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new he(t,a)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},We=ne.prototype;We.startNode=function(){return new Ge(this,this.start,this.startLoc)},We.startNodeAt=function(e,t){return new Ge(this,e,t)};function Et(e,t,i,a){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=a),this.options.ranges&&(e.range[1]=i),e}We.finishNode=function(e,t){return Et.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},We.finishNodeAt=function(e,t,i,a){return Et.call(this,e,t,i,a)},We.copyNode=function(e){var t=new Ge(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Ai="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",At="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",Nt=At+" Extended_Pictographic",It=Nt,Pt=It+" EBase EComp EMod EPres ExtPict",Lt=Pt,Ni=Lt,Ii={9:At,10:Nt,11:It,12:Pt,13:Lt,14:Ni},Pi="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Li={9:"",10:"",11:"",12:"",13:"",14:Pi},Ot="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",Rt="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",Vt=Rt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Dt=Vt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Bt=Dt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",jt=Bt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Oi=jt+" "+Ai,Ri={9:Rt,10:Vt,11:Dt,12:Bt,13:jt,14:Oi},Ft={};function Vi(e){var t=Ft[e]={binary:Z(Ii[e]+" "+Ot),binaryOfStrings:Z(Li[e]),nonBinary:{General_Category:Z(Ot),Script:Z(Ri[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 ht=0,Mt=[9,10,11,12,13,14];ht<Mt.length;ht+=1){var Di=Mt[ht];Vi(Di)}var R=ne.prototype,tt=function(t,i){this.parent=t,this.base=i||this};tt.prototype.separatedFrom=function(t){for(var i=this;i;i=i.parent)for(var a=t;a;a=a.parent)if(i.base===a.base&&i!==a)return!0;return!1},tt.prototype.sibling=function(){return new tt(this.parent,this.base)};var Se=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ft[t.options.ecmaVersion>=14?14:t.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};Se.prototype.reset=function(t,i,a){var u=a.indexOf("v")!==-1,f=a.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=a,u&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=f&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=f&&this.parser.options.ecmaVersion>=9)},Se.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},Se.prototype.at=function(t,i){i===void 0&&(i=!1);var a=this.source,u=a.length;if(t>=u)return-1;var f=a.charCodeAt(t);if(!(i||this.switchU)||f<=55295||f>=57344||t+1>=u)return f;var x=a.charCodeAt(t+1);return x>=56320&&x<=57343?(f<<10)+x-56613888:f},Se.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var a=this.source,u=a.length;if(t>=u)return u;var f=a.charCodeAt(t),x;return!(i||this.switchU)||f<=55295||f>=57344||t+1>=u||(x=a.charCodeAt(t+1))<56320||x>57343?t+1:t+2},Se.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)},Se.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},Se.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)},Se.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1},Se.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var a=this.pos,u=0,f=t;u<f.length;u+=1){var x=f[u],_=this.at(a,i);if(_===-1||_!==x)return!1;a=this.nextIndex(a,i)}return this.pos=a,!0},R.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,a=!1,u=!1,f=0;f<i.length;f++){var x=i.charAt(f);t.indexOf(x)===-1&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(x,f+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),x==="u"&&(a=!0),x==="v"&&(u=!0)}this.options.ecmaVersion>=15&&a&&u&&this.raise(e.start,"Invalid regular expression flag")};function Bi(e){for(var t in e)return!0;return!1}R.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Bi(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},R.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 a=i[t];e.groupNames[a]||e.raise("Invalid named capture referenced")}},R.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new tt(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")},R.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},R.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},R.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},R.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},R.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},R.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var a=0,u=-1;if(this.regexp_eatDecimalDigits(e)&&(a=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(u=e.lastIntValue),e.eat(125)))return u!==-1&&u<a&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1},R.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)},R.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},R.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),a=e.eat(45);if(i||a){for(var u=0;u<i.length;u++){var f=i.charAt(u);i.indexOf(f,u+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(a){var x=this.regexp_eatModifiers(e);!i&&!x&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var _=0;_<x.length;_++){var A=x.charAt(_);(x.indexOf(A,_+1)>-1||i.indexOf(A)>-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},R.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},R.regexp_eatModifiers=function(e){for(var t="",i=0;(i=e.current())!==-1&&ji(i);)t+=K(i),e.advance();return t};function ji(e){return e===105||e===109||e===115}R.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)},R.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},R.regexp_eatSyntaxCharacter=function(e){var t=e.current();return qt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function qt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}R.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!qt(i);)e.advance();return e.pos!==t},R.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1},R.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 a=0,u=i;a<u.length;a+=1){var f=u[a];f.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}},R.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},R.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=K(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=K(e.lastIntValue);return!0}return!1},R.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,a=e.current(i);return e.advance(i),a===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(a=e.lastIntValue),Fi(a)?(e.lastIntValue=a,!0):(e.pos=t,!1)};function Fi(e){return B(e,!0)||e===36||e===95}R.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,a=e.current(i);return e.advance(i),a===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(a=e.lastIntValue),Mi(a)?(e.lastIntValue=a,!0):(e.pos=t,!1)};function Mi(e){return F(e,!0)||e===36||e===95||e===8204||e===8205}R.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},R.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},R.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},R.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)},R.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},R.regexp_eatZero=function(e){return e.current()===48&&!it(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},R.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1},R.regexp_eatControlLetter=function(e){var t=e.current();return Ut(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Ut(e){return e>=65&&e<=90||e>=97&&e<=122}R.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,a=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var u=e.lastIntValue;if(a&&u>=55296&&u<=56319){var f=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var x=e.lastIntValue;if(x>=56320&&x<=57343)return e.lastIntValue=(u-55296)*1024+(x-56320)+65536,!0}e.pos=f,e.lastIntValue=u}return!0}if(a&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&qi(e.lastIntValue))return!0;a&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function qi(e){return e>=0&&e<=1114111}R.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1},R.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 Ht=0,Ce=1,fe=2;R.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Ui(t))return e.lastIntValue=-1,e.advance(),Ce;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var a;if(e.eat(123)&&(a=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&a===fe&&e.raise("Invalid property name"),a;e.raise("Invalid property name")}return Ht};function Ui(e){return e===100||e===68||e===115||e===83||e===119||e===87}R.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 a=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,a),Ce}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var u=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,u)}return Ht},R.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){X(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},R.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Ce;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return fe;e.raise("Invalid property name")},R.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Gt(t=e.current());)e.lastStringValue+=K(t),e.advance();return e.lastStringValue!==""};function Gt(e){return Ut(e)||e===95}R.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Hi(t=e.current());)e.lastStringValue+=K(t),e.advance();return e.lastStringValue!==""};function Hi(e){return Gt(e)||it(e)}R.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},R.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===fe&&e.raise("Negated character class may contain strings"),!0}return!1},R.regexp_classContents=function(e){return e.current()===93?Ce:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Ce)},R.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&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}},R.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||zt(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var a=e.current();return a!==93?(e.lastIntValue=a,e.advance(),!0):!1},R.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)},R.regexp_classSetExpression=function(e){var t=Ce,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===fe&&(t=fe);for(var a=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==fe&&(t=Ce);continue}e.raise("Invalid character in character class")}if(a!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(a!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===fe&&(t=fe)}},R.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 a=e.lastIntValue;return i!==-1&&a!==-1&&i>a&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},R.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Ce:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},R.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),a=this.regexp_classContents(e);if(e.eat(93))return i&&a===fe&&e.raise("Negated character class may contain strings"),a;e.pos=t}if(e.eat(92)){var u=this.regexp_eatCharacterClassEscape(e);if(u)return u;e.pos=t}return null},R.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},R.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===fe&&(t=fe);return t},R.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Ce:fe},R.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&Gi(i)||Wi(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function Gi(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Wi(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}R.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Xi(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Xi(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}R.regexp_eatClassControlLetter=function(e){var t=e.current();return it(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},R.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},R.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;it(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function it(e){return e>=48&&e<=57}R.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Wt(i=e.current());)e.lastIntValue=16*e.lastIntValue+Xt(i),e.advance();return e.pos!==t};function Wt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Xt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}R.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1},R.regexp_eatOctalDigit=function(e){var t=e.current();return zt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function zt(e){return e>=48&&e<=55}R.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var a=0;a<t;++a){var u=e.current();if(!Wt(u))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+Xt(u),e.advance()}return!0};var st=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new he(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},z=ne.prototype;z.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 st(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},z.getToken=function(){return this.next(),new st(this)},typeof Symbol<"u"&&(z[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===n.eof,value:t}}}}),z.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(n.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},z.readToken=function(e){return B(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},z.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},z.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var a=void 0,u=t;(a=r(this.input,u,this.pos))>-1;)++this.curLine,u=this.lineStart=a;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},z.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),a=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!y(a);)a=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())},z.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&s.test(String.fromCharCode(e)))++this.pos;else break e}}},z.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)},z.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(n.ellipsis)):(++this.pos,this.finishToken(n.dot))},z.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(n.assign,2):this.finishOp(n.slash,1)},z.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,a=e===42?n.star:n.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,a=n.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(n.assign,i+1):this.finishOp(a,i)},z.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(n.assign,3)}return this.finishOp(e===124?n.logicalOR:n.logicalAND,2)}return t===61?this.finishOp(n.assign,2):this.finishOp(e===124?n.bitwiseOR:n.bitwiseAND,1)},z.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(n.assign,2):this.finishOp(n.bitwiseXOR,1)},z.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||P.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(n.incDec,2):t===61?this.finishOp(n.assign,2):this.finishOp(n.plusMin,1)},z.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(n.assign,i+1):this.finishOp(n.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(n.relational,i))},z.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(n.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(n.arrow)):this.finishOp(e===61?n.eq:n.prefix,1)},z.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(n.questionDot,2)}if(t===63){if(e>=12){var a=this.input.charCodeAt(this.pos+2);if(a===61)return this.finishOp(n.assign,3)}return this.finishOp(n.coalesce,2)}}return this.finishOp(n.question,1)},z.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),B(t,!0)||t===92))return this.finishToken(n.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+K(t)+"'")},z.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(n.parenL);case 41:return++this.pos,this.finishToken(n.parenR);case 59:return++this.pos,this.finishToken(n.semi);case 44:return++this.pos,this.finishToken(n.comma);case 91:return++this.pos,this.finishToken(n.bracketL);case 93:return++this.pos,this.finishToken(n.bracketR);case 123:return++this.pos,this.finishToken(n.braceL);case 125:return++this.pos,this.finishToken(n.braceR);case 58:return++this.pos,this.finishToken(n.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(n.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(n.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+K(e)+"'")},z.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},z.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var a=this.input.charAt(this.pos);if(P.test(a)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(a==="[")t=!0;else if(a==="]"&&t)t=!1;else if(a==="/"&&!t)break;e=a==="\\"}++this.pos}var u=this.input.slice(i,this.pos);++this.pos;var f=this.pos,x=this.readWord1();this.containsEsc&&this.unexpected(f);var _=this.regexpState||(this.regexpState=new Se(this));_.reset(i,u,x),this.validateRegExpFlags(_),this.validateRegExpPattern(_);var A=null;try{A=new RegExp(u,x)}catch{}return this.finishToken(n.regexp,{pattern:u,flags:x,value:A})},z.readInt=function(e,t,i){for(var a=this.options.ecmaVersion>=12&&t===void 0,u=i&&this.input.charCodeAt(this.pos)===48,f=this.pos,x=0,_=0,A=0,G=t??1/0;A<G;++A,++this.pos){var U=this.input.charCodeAt(this.pos),oe=void 0;if(a&&U===95){u&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),_===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),A===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),_=U;continue}if(U>=97?oe=U-97+10:U>=65?oe=U-65+10:U>=48&&U<=57?oe=U-48:oe=1/0,oe>=e)break;_=U,x=x*e+oe}return a&&_===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===f||t!=null&&this.pos-f!==t?null:x};function zi(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Jt(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}z.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=Jt(this.input.slice(t,this.pos)),++this.pos):B(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(n.num,i)},z.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var a=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&a===110){var u=Jt(this.input.slice(t,this.pos));return++this.pos,B(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(n.num,u)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),a===46&&!i&&(++this.pos,this.readInt(10),a=this.input.charCodeAt(this.pos)),(a===69||a===101)&&!i&&(a=this.input.charCodeAt(++this.pos),(a===43||a===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),B(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var f=zi(this.input.slice(t,this.pos),i);return this.finishToken(n.num,f)},z.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t},z.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var a=this.input.charCodeAt(this.pos);if(a===e)break;a===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):a===8232||a===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(y(a)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(n.string,t)};var Kt={};z.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Kt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},z.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Kt;this.raise(e,t)},z.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===n.template||this.type===n.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(n.dollarBraceL)):(++this.pos,this.finishToken(n.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(n.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(y(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
6
|
-
`;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},z.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(n.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
7
|
-
`&&++this.pos;case`
|
|
8
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},z.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
9
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return K(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var a=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],u=parseInt(a,8);return u>255&&(a=a.slice(0,-1),u=parseInt(a,8)),this.pos+=a.length-1,t=this.input.charCodeAt(this.pos),(a!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-a.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(u)}return y(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},z.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i},z.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,a=this.options.ecmaVersion>=6;this.pos<this.input.length;){var u=this.fullCharCodeAtPos();if(F(u,a))this.pos+=u<=65535?1:2;else if(u===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var f=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var x=this.readCodePoint();(t?B:F)(x,a)||this.invalidStringToken(f,"Invalid Unicode escape"),e+=K(x),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)},z.readWord=function(){var e=this.readWord1(),t=n.name;return this.keywords.test(e)&&(t=re[e]),this.finishToken(t,e)};var Qt="8.14.1";ne.acorn={Parser:ne,version:Qt,defaultOptions:Te,Position:ye,SourceLocation:he,getLineInfo:me,Node:Ge,TokenType:L,tokTypes:n,keywordTypes:re,TokContext:pe,tokContexts:ie,isIdentifierChar:F,isIdentifierStart:B,Token:st,isNewLine:y,lineBreak:P,lineBreakG:j,nonASCIIwhitespace:s};function Ji(e,t){return ne.parse(e,t)}function Ki(e,t,i){return ne.parseExpressionAt(e,t,i)}function Qi(e,t){return ne.tokenizer(e,t)}w.Node=Ge,w.Parser=ne,w.Position=ye,w.SourceLocation=he,w.TokContext=pe,w.Token=st,w.TokenType=L,w.defaultOptions=Te,w.getLineInfo=me,w.isIdentifierChar=F,w.isIdentifierStart=B,w.isNewLine=y,w.keywordTypes=re,w.lineBreak=P,w.lineBreakG=j,w.nonASCIIwhitespace=s,w.parse=Ji,w.parseExpressionAt=Ki,w.tokContexts=ie,w.tokTypes=n,w.tokenizer=Qi,w.version=Qt})}(ze,ze.exports)),ze.exports}var ct={exports:{}},pt,ti;function Os(){return ti||(ti=1,pt={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:"♦"}),pt}var ii;function Rs(){return ii||(ii=1,function(E){const l=Os(),w=/^[\da-fA-F]+$/,C=/^\d+$/,m=new WeakMap;function b(c){c=c.Parser.acorn||c;let o=m.get(c);if(!o){const h=c.tokTypes,d=c.TokContext,T=c.TokenType,I=new d("<tag",!1),B=new d("</tag",!1),F=new d("<tag>...</tag>",!0,!0),L={tc_oTag:I,tc_cTag:B,tc_expr:F},M={jsxName:new T("jsxName"),jsxText:new T("jsxText",{beforeExpr:!0}),jsxTagStart:new T("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new T("jsxTagEnd")};M.jsxTagStart.updateContext=function(){this.context.push(F),this.context.push(I),this.exprAllowed=!1},M.jsxTagEnd.updateContext=function(H){let W=this.context.pop();W===I&&H===h.slash||W===B?(this.context.pop(),this.exprAllowed=this.curContext()===F):this.exprAllowed=!0},o={tokContexts:L,tokTypes:M},m.set(c,o)}return o}function S(c){if(!c)return c;if(c.type==="JSXIdentifier")return c.name;if(c.type==="JSXNamespacedName")return c.namespace.name+":"+c.name.name;if(c.type==="JSXMemberExpression")return S(c.object)+"."+S(c.property)}E.exports=function(c){return c=c||{},function(o){return k({allowNamespaces:c.allowNamespaces!==!1,allowNamespacedObjects:!!c.allowNamespacedObjects},o)}},Object.defineProperty(E.exports,"tokTypes",{get:function(){return b(Le()).tokTypes},configurable:!0,enumerable:!0});function k(c,o){const h=o.acorn||Le(),d=b(h),T=h.tokTypes,I=d.tokTypes,B=h.tokContexts,F=d.tokContexts.tc_oTag,L=d.tokContexts.tc_cTag,M=d.tokContexts.tc_expr,H=h.isNewLine,W=h.isIdentifierStart,re=h.isIdentifierChar;return class extends o{static get acornJsx(){return d}jsx_readToken(){let v="",n=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let P=this.input.charCodeAt(this.pos);switch(P){case 60:case 123:return this.pos===this.start?P===60&&this.exprAllowed?(++this.pos,this.finishToken(I.jsxTagStart)):this.getTokenFromCode(P):(v+=this.input.slice(n,this.pos),this.finishToken(I.jsxText,v));case 38:v+=this.input.slice(n,this.pos),v+=this.jsx_readEntity(),n=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(P===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:H(P)?(v+=this.input.slice(n,this.pos),v+=this.jsx_readNewLine(!0),n=this.pos):++this.pos}}}jsx_readNewLine(v){let n=this.input.charCodeAt(this.pos),P;return++this.pos,n===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,P=v?`
|
|
10
|
-
`:`\r
|
|
11
|
-
`):P=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),P}jsx_readString(v){let n="",P=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let j=this.input.charCodeAt(this.pos);if(j===v)break;j===38?(n+=this.input.slice(P,this.pos),n+=this.jsx_readEntity(),P=this.pos):H(j)?(n+=this.input.slice(P,this.pos),n+=this.jsx_readNewLine(!1),P=this.pos):++this.pos}return n+=this.input.slice(P,this.pos++),this.finishToken(T.string,n)}jsx_readEntity(){let v="",n=0,P,j=this.input[this.pos];j!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let y=++this.pos;for(;this.pos<this.input.length&&n++<10;){if(j=this.input[this.pos++],j===";"){v[0]==="#"?v[1]==="x"?(v=v.substr(2),w.test(v)&&(P=String.fromCharCode(parseInt(v,16)))):(v=v.substr(1),C.test(v)&&(P=String.fromCharCode(parseInt(v,10)))):P=l[v];break}v+=j}return P||(this.pos=y,"&")}jsx_readWord(){let v,n=this.pos;do v=this.input.charCodeAt(++this.pos);while(re(v)||v===45);return this.finishToken(I.jsxName,this.input.slice(n,this.pos))}jsx_parseIdentifier(){let v=this.startNode();return this.type===I.jsxName?v.name=this.value:this.type.keyword?v.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(v,"JSXIdentifier")}jsx_parseNamespacedName(){let v=this.start,n=this.startLoc,P=this.jsx_parseIdentifier();if(!c.allowNamespaces||!this.eat(T.colon))return P;var j=this.startNodeAt(v,n);return j.namespace=P,j.name=this.jsx_parseIdentifier(),this.finishNode(j,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===I.jsxTagEnd)return"";let v=this.start,n=this.startLoc,P=this.jsx_parseNamespacedName();for(this.type===T.dot&&P.type==="JSXNamespacedName"&&!c.allowNamespacedObjects&&this.unexpected();this.eat(T.dot);){let j=this.startNodeAt(v,n);j.object=P,j.property=this.jsx_parseIdentifier(),P=this.finishNode(j,"JSXMemberExpression")}return P}jsx_parseAttributeValue(){switch(this.type){case T.braceL:let v=this.jsx_parseExpressionContainer();return v.expression.type==="JSXEmptyExpression"&&this.raise(v.start,"JSX attributes must only be assigned a non-empty expression"),v;case I.jsxTagStart:case T.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let v=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(v,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let v=this.startNode();return this.next(),v.expression=this.type===T.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(T.braceR),this.finishNode(v,"JSXExpressionContainer")}jsx_parseAttribute(){let v=this.startNode();return this.eat(T.braceL)?(this.expect(T.ellipsis),v.argument=this.parseMaybeAssign(),this.expect(T.braceR),this.finishNode(v,"JSXSpreadAttribute")):(v.name=this.jsx_parseNamespacedName(),v.value=this.eat(T.eq)?this.jsx_parseAttributeValue():null,this.finishNode(v,"JSXAttribute"))}jsx_parseOpeningElementAt(v,n){let P=this.startNodeAt(v,n);P.attributes=[];let j=this.jsx_parseElementName();for(j&&(P.name=j);this.type!==T.slash&&this.type!==I.jsxTagEnd;)P.attributes.push(this.jsx_parseAttribute());return P.selfClosing=this.eat(T.slash),this.expect(I.jsxTagEnd),this.finishNode(P,j?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(v,n){let P=this.startNodeAt(v,n),j=this.jsx_parseElementName();return j&&(P.name=j),this.expect(I.jsxTagEnd),this.finishNode(P,j?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(v,n){let P=this.startNodeAt(v,n),j=[],y=this.jsx_parseOpeningElementAt(v,n),r=null;if(!y.selfClosing){e:for(;;)switch(this.type){case I.jsxTagStart:if(v=this.start,n=this.startLoc,this.next(),this.eat(T.slash)){r=this.jsx_parseClosingElementAt(v,n);break e}j.push(this.jsx_parseElementAt(v,n));break;case I.jsxText:j.push(this.parseExprAtom());break;case T.braceL:j.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}S(r.name)!==S(y.name)&&this.raise(r.start,"Expected corresponding JSX closing tag for <"+S(y.name)+">")}let s=y.name?"Element":"Fragment";return P["opening"+s]=y,P["closing"+s]=r,P.children=j,this.type===T.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(P,"JSX"+s)}jsx_parseText(){let v=this.parseLiteral(this.value);return v.type="JSXText",v}jsx_parseElement(){let v=this.start,n=this.startLoc;return this.next(),this.jsx_parseElementAt(v,n)}parseExprAtom(v){return this.type===I.jsxText?this.jsx_parseText():this.type===I.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(v)}readToken(v){let n=this.curContext();if(n===M)return this.jsx_readToken();if(n===F||n===L){if(W(v))return this.jsx_readWord();if(v==62)return++this.pos,this.finishToken(I.jsxTagEnd);if((v===34||v===39)&&n==F)return this.jsx_readString(v)}return v===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(I.jsxTagStart)):super.readToken(v)}updateContext(v){if(this.type==T.braceL){var n=this.curContext();n==F?this.context.push(B.b_expr):n==M?this.context.push(B.b_tmpl):super.updateContext(v),this.exprAllowed=!0}else if(this.type===T.slash&&v===I.jsxTagStart)this.context.length-=2,this.context.push(L),this.exprAllowed=!1;else return super.updateContext(v)}}}}(ct)),ct.exports}var ft,si;function bi(){if(si)return ft;si=1;const E=Object.getPrototypeOf||(w=>w.__proto__),l=w=>{if(w.acorn)return w.acorn;const C=Le();if(C.version.indexOf("6.")!=0&&C.version.indexOf("6.0.")==0&&C.version.indexOf("7.")!=0)throw new Error(`acorn-private-class-elements requires acorn@^6.1.0 or acorn@7.0.0, not ${C.version}`);for(let m=w;m&&m!==C.Parser;m=E(m))if(m!==C.Parser)throw new Error("acorn-private-class-elements does not support mixing different acorn copies");return C};return ft=function(w){if(w.prototype.parsePrivateName)return w;const C=l(w);return w=class extends w{_branch(){return this.__branch=this.__branch||new w({ecmaVersion:this.options.ecmaVersion},this.input),this.__branch.end=this.end,this.__branch.pos=this.pos,this.__branch.type=this.type,this.__branch.value=this.value,this.__branch.containsEsc=this.containsEsc,this.__branch}parsePrivateClassElementName(m){m.computed=!1,m.key=this.parsePrivateName(),m.key.name=="constructor"&&this.raise(m.key.start,"Classes may not have a private element named constructor");const b={get:"set",set:"get"}[m.kind],S=this._privateBoundNames;return Object.prototype.hasOwnProperty.call(S,m.key.name)&&S[m.key.name]!==b&&this.raise(m.start,"Duplicate private element"),S[m.key.name]=m.kind||!0,delete this._unresolvedPrivateNames[m.key.name],m.key}parsePrivateName(){const m=this.startNode();return m.name=this.value,this.next(),this.finishNode(m,"PrivateIdentifier"),this.options.allowReserved=="never"&&this.checkUnreserved(m),m}getTokenFromCode(m){if(m===35){++this.pos;const b=this.readWord1();return this.finishToken(this.privateIdentifierToken,b)}return super.getTokenFromCode(m)}parseClass(m,b){const S=this._outerPrivateBoundNames;this._outerPrivateBoundNames=this._privateBoundNames,this._privateBoundNames=Object.create(this._privateBoundNames||null);const k=this._outerUnresolvedPrivateNames;this._outerUnresolvedPrivateNames=this._unresolvedPrivateNames,this._unresolvedPrivateNames=Object.create(null);const c=super.parseClass(m,b),o=this._unresolvedPrivateNames;if(this._privateBoundNames=this._outerPrivateBoundNames,this._outerPrivateBoundNames=S,this._unresolvedPrivateNames=this._outerUnresolvedPrivateNames,this._outerUnresolvedPrivateNames=k,this._unresolvedPrivateNames)Object.assign(this._unresolvedPrivateNames,o);else{const h=Object.keys(o);h.length&&(h.sort((d,T)=>o[d]-o[T]),this.raise(o[h[0]],"Usage of undeclared private name"))}return c}parseClassSuper(m){const b=this._privateBoundNames;this._privateBoundNames=this._outerPrivateBoundNames;const S=this._unresolvedPrivateNames;this._unresolvedPrivateNames=this._outerUnresolvedPrivateNames;const k=super.parseClassSuper(m);return this._privateBoundNames=b,this._unresolvedPrivateNames=S,k}parseSubscript(m,b,S,k,c,o){const h=this.options.ecmaVersion>=11&&C.tokTypes.questionDot,d=this._branch();if(!((d.eat(C.tokTypes.dot)||h&&d.eat(C.tokTypes.questionDot))&&d.type==this.privateIdentifierToken))return super.parseSubscript.apply(this,arguments);let T=!1;this.eat(C.tokTypes.dot)||(this.expect(C.tokTypes.questionDot),T=!0);let I=this.startNodeAt(b,S);return I.object=m,I.computed=!1,h&&(I.optional=T),this.type==this.privateIdentifierToken?(m.type=="Super"&&this.raise(this.start,"Cannot access private element on super"),I.property=this.parsePrivateName(),(!this._privateBoundNames||!this._privateBoundNames[I.property.name])&&(this._unresolvedPrivateNames||this.raise(I.property.start,"Usage of undeclared private name"),this._unresolvedPrivateNames[I.property.name]=I.property.start)):I.property=this.parseIdent(!0),this.finishNode(I,"MemberExpression")}parseMaybeUnary(m,b){const S=super.parseMaybeUnary(m,b);return S.operator=="delete"&&S.argument.type=="MemberExpression"&&S.argument.property.type=="PrivateIdentifier"&&this.raise(S.start,"Private elements may not be deleted"),S}},w.prototype.privateIdentifierToken=new C.TokenType("privateIdentifier"),w},ft}var dt,ri;function Vs(){if(ri)return dt;ri=1;const E=bi();return dt=function(l){const w=E(l),m=(l.acorn||Le()).tokTypes;return class extends w{_maybeParseFieldValue(b){if(this.eat(m.eq)){const S=this._inStaticFieldScope;this._inStaticFieldScope=this.currentThisScope(),b.value=this.parseExpression(),this._inStaticFieldScope=S}else b.value=null}parseClassElement(b){if(this.options.ecmaVersion<8||!this.isContextual("static"))return super.parseClassElement.apply(this,arguments);const S=this._branch();if(S.next(),[m.name,m.bracketL,m.string,m.num,this.privateIdentifierToken].indexOf(S.type)==-1&&!S.type.keyword)return super.parseClassElement.apply(this,arguments);if(S.type==m.bracketL){let c=0;do S.eat(m.bracketL)?++c:S.eat(m.bracketR)?--c:S.next();while(c>0)}else S.next();if(S.type!=m.eq&&!S.canInsertSemicolon()&&S.type!=m.semi)return super.parseClassElement.apply(this,arguments);const k=this.startNode();return k.static=this.eatContextual("static"),this.type==this.privateIdentifierToken?this.parsePrivateClassElementName(k):this.parsePropertyName(k),(k.key.type==="Identifier"&&k.key.name==="constructor"||k.key.type==="Literal"&&!k.computed&&k.key.value==="constructor")&&this.raise(k.key.start,"Classes may not have a field called constructor"),(k.key.name||k.key.value)==="prototype"&&!k.computed&&this.raise(k.key.start,"Classes may not have a static property named prototype"),this.enterScope(67),this._maybeParseFieldValue(k),this.exitScope(),this.finishNode(k,"PropertyDefinition"),this.semicolon(),k}parsePropertyName(b){b.static&&this.type==this.privateIdentifierToken?this.parsePrivateClassElementName(b):super.parsePropertyName(b)}parseIdent(b,S){const k=super.parseIdent(b,S);return this._inStaticFieldScope&&this.currentThisScope()===this._inStaticFieldScope&&k.name=="arguments"&&this.raise(k.start,"A static class field initializer may not contain arguments"),k}}},dt}var mt,ai;function Ds(){if(ai)return mt;ai=1;const E=bi();return mt=function(l){const C=(l.acorn||Le()).tokTypes;return l=E(l),class extends l{_maybeParseFieldValue(m){if(this.eat(C.eq)){const b=this._inFieldValue;this._inFieldValue=!0,this.type===C.name&&this.value==="await"&&(this.inAsync||this.options.allowAwaitOutsideFunction)?m.value=this.parseAwait():m.value=this.parseExpression(),this._inFieldValue=b}else m.value=null}parseClassElement(m){if(this.options.ecmaVersion>=8&&(this.type==C.name||this.type.keyword||this.type==this.privateIdentifierToken||this.type==C.bracketL||this.type==C.string||this.type==C.num)){const b=this._branch();if(b.type==C.bracketL){let k=0;do b.eat(C.bracketL)?++k:b.eat(C.bracketR)?--k:b.next();while(k>0)}else b.next(!0);let S=b.type==C.eq||b.type==C.semi;if(!S&&b.canInsertSemicolon()&&(S=b.type!=C.parenL),S){const k=this.startNode();return this.type==this.privateIdentifierToken?this.parsePrivateClassElementName(k):this.parsePropertyName(k),(k.key.type==="Identifier"&&k.key.name==="constructor"||k.key.type==="Literal"&&k.key.value==="constructor")&&this.raise(k.key.start,"Classes may not have a field called constructor"),this.enterScope(67),this._maybeParseFieldValue(k),this.exitScope(),this.finishNode(k,"PropertyDefinition"),this.semicolon(),k}}return super.parseClassElement.apply(this,arguments)}parseIdent(m,b){const S=super.parseIdent(m,b);return this._inFieldValue&&S.name=="arguments"&&this.raise(S.start,"A class field initializer may not contain arguments"),S}}},mt}var xt,ni;function Bs(){if(ni)return xt;ni=1;const E=Le(),l=E.tokTypes;function w(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}const C={any:"TSAnyKeyword",bigint:"TSBigIntKeyword",boolean:"TSBooleanKeyword",never:"TSNeverKeyword",null:"TSNullKeyword",number:"TSNumberKeyword",object:"TSObjectKeyword",string:"TSStringKeyword",symbol:"TSSymbolKeyword",undefined:"TSUndefinedKeyword",unknown:"TSUnknownKeyword",void:"TSVoidKeyword"},m={interface:1,type:2,enum:4,declare:8},b={typeof:1,keyof:2,infer:4},S={as:1,"!":2};return xt=k=>class extends k{constructor(...o){super(...o),this.reservedWords=/^(?:enum)$/,this.reservedWordsStrict=this.reservedWords}finishNode(o,h){return h.startsWith("TS")&&(this.options.sourceType="ts"),this.finishNodeAt.call(this,o,h,this.lastTokEnd,this.lastTokEndLoc)}computeLocByOffset(o){if(this.options.locations)return E.getLineInfo(this.input,o)}startNodeAtNode(o){return this.startNodeAt(o.start,this.computeLocByOffset(o.start))}tsPreparePreview(){const{pos:o,curLine:h,type:d,value:T,end:I,start:B,endLoc:F,startLoc:L,scopeStack:M,lastTokStartLoc:H,lastTokEndLoc:W,lastTokEnd:re,lastTokStart:v,context:n}=this;return()=>{this.pos=o,this.curLine=h,this.type=d,this.value=T,this.end=I,this.start=B,this.endLoc=F,this.startLoc=L,this.scopeStack=M,this.lastTokStartLoc=H,this.lastTokEndLoc=W,this.lastTokEnd=re,this.lastTokStart=v,this.context=n}}_isStartOfTypeParameters(){return this.value&&this.value.charCodeAt(0)===60}_isEndOfTypeParameters(){return this.value&&this.value.charCodeAt(0)===62}_hasPrecedingLineBreak(){return E.lineBreak.test(this.input.slice(this.lastTokEnd,this.start))}parseExpressionStatement(o,h){return h.type==="Identifier"?this._parseTSDeclaration(o,h):super.parseExpressionStatement(o,h)}parseBindingAtom(){const o=super.parseBindingAtom();return this.eat(l.colon)&&(o.typeAnnotation=this.parseTSTypeAnnotation(!1),o.end=o.typeAnnotation.end,this.options.locations&&(o.loc.end=o.typeAnnotation.loc.end)),o}parseMaybeDefault(o,h,d){return d||(d=this.parseBindingAtom(),this.eat(l.question)&&(d.optional=!0),this.eat(l.colon)&&(d.typeAnnotation=this.parseTSTypeAnnotation(!1),d.end=d.typeAnnotation.end,this.options.locations&&(d.loc.end=d.typeAnnotation.loc.end))),super.parseMaybeDefault(o,h,d)}parseMaybeAssign(o,h,d){let T=super.parseMaybeAssign(o,h,d);return T=this._parseMaybeTSExpression(T),T}parseFunctionParams(o){return o.typeParameters=this.parseMaybeTSTypeParameterDeclaration(),super.parseFunctionParams(o)}parseFunctionBody(o,h){this.eat(l.colon)&&(o.returnType=this.parseTSTypeAnnotation(!1)),super.parseFunctionBody(o,h)}parseParenAndDistinguishExpression(o){let h=this.start,d=this.startLoc,T,I=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();let B=this.start,F=this.startLoc,L=[],M=!0,H=!1,W=new w,re=this.yieldPos,v=this.awaitPos,n;for(this.yieldPos=0,this.awaitPos=0;this.type!==l.parenR;){if(M?M=!1:this.expect(l.comma),I&&this.afterTrailingComma(l.parenR,!0)){H=!0;break}else if(this.type===l.ellipsis){n=this.start,L.push(this.parseParenItem(this.parseRestBinding())),this.type===l.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else L.push(this.parseMaybeAssign(!1,W,this.parseParenItem));this.type===l.colon&&this.parseTSTypeAnnotation()}let P=this.start,j=this.startLoc;if(this.expect(l.parenR),o&&!this.canInsertSemicolon()){const y=this._branch();try{y.parseTSTypeAnnotation()&&y.eat(l.arrow)&&this.parseTSTypeAnnotation()}catch{}if(this.eat(l.arrow))return this.checkPatternErrors(W,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=re,this.awaitPos=v,this.parseParenArrowList(h,d,L)}(!L.length||H)&&this.unexpected(this.lastTokStart),n&&this.unexpected(n),this.checkExpressionErrors(W,!0),this.yieldPos=re||this.yieldPos,this.awaitPos=v||this.awaitPos,L.length>1?(T=this.startNodeAt(B,F),T.expressions=L,this.finishNodeAt(T,"SequenceExpression",P,j)):T=L[0]}else T=this.parseParenExpression();if(this.options.preserveParens){let B=this.startNodeAt(h,d);return B.expression=T,this.finishNode(B,"ParenthesizedExpression")}else return T}parseSubscript(o){const h=this._branch();if(this._isStartOfTypeParameters())try{h.parseTSTypeParameterInstantiation()&&h.eat(l.parenL)&&(o.typeParameters=this.parseTSTypeParameterInstantiation())}catch{}return super.parseSubscript.apply(this,arguments)}parseExpression(){const o=this.type===l.parenL,h=o?this.start:-1;let d=super.parseExpression();return o?(d.extra={parenthesized:o,parenStart:h},d):(d=this._parseMaybeTSExpression(d),d)}parseParenItem(o){return o=super.parseParenItem(o),o=this._parseMaybeTSExpression(o),o}parseClass(o,h){this.next();const d=this.strict;this.strict=!0,this.parseClassId(o,h),this.parseClassSuper(o);const T=this.enterClassBody(),I=this.startNode();let B=!1;for(I.body=[],this.parseMaybeTSTypeParameterInstantiation(),this.expect(l.braceL);this.type!==l.braceR;){const F=this.parseClassElement(o.superClass!==null);F&&(I.body.push(F),F.type==="MethodDefinition"&&F.kind==="constructor"?(B&&this.raise(F.start,"Duplicate constructor in the same class"),B=!0):F.key.type==="PrivateIdentifier"&&isPrivateNameConflicted(T,F)&&this.raiseRecoverable(F.key.start,`Identifier '#${F.key.name}' has already been declared`))}return this.strict=d,this.next(),o.body=this.finishNode(I,"ClassBody"),this.exitClassBody(),this.finishNode(o,h?"ClassDeclaration":"ClassExpression")}parseTSTypeAnnotation(o=!0){o&&this.expect(l.colon);const h=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);return this._parseTSTypeAnnotation(h),this.finishNode(h,"TSTypeAnnotation")}_parseTSType(){const o=this._parseNonConditionalType();return this.type===l._extends&&!this._hasPrecedingLineBreak()?this.parseTSConditionalType(o):o}_parseTSTypeAnnotation(o){o.typeAnnotation=this._parseTSType()}_parsePrimaryType(){let o;switch(this.type){case l.name:o=this.value in C?this.parseTSPredefinedType():this.parseTSTypeReference();break;case l.braceL:o=this.parseTSTypeLiteral();break;case l._void:case l._null:o=this.parseTSPredefinedType();break;case l.parenL:o=this.parseTSParenthesizedType();break;case l.bracketL:o=this.parseTSTupleType();break;case l.num:case l.string:case l._true:case l._false:o=this.parseTSLiteralType(this.type);break;case l._import:o=this.parseTSImportType(!1);break;default:return}return this.type===l.bracketL&&(o=this._parseMaybeTSArrayType(o)),o}_parseNonConditionalType(){let o;switch(this.type){case l.name:switch(b[this.value]){case b.infer:o=this.parseTSInferType();break;case b.keyof:o=this.parseTSKeyofType();break;default:o=this._parseTSUnionTypeOrIntersectionType()}break;case l._new:o=this.parseTSConstructorType();break;case l.parenL:const h=this.tsPreparePreview(),d=this._isStartOfTSFunctionType();h(),o=d?this.parseTSFunctionType():this.parseTSParenthesizedType();break;case l.relational:o=this._isStartOfTypeParameters()?this.parseTSFunctionType():this.unexpected();break;case l._typeof:o=this.parseTSTypeofType();break;default:o=this._parseTSUnionTypeOrIntersectionType();break}return o||this.unexpected()}_parseTSDeclaration(o,h){switch(m[h.name]){case m.interface:if(this.type===l.name)return this.parseTSInterfaceDeclaration();break;case m.type:if(this.type===l.name)return this.parseTSTypeAliasDeclaration();break}return super.parseExpressionStatement(o,h)}parseTSTypeReference(){const o=this.startNode();let h=this.parseIdent();return this.type===l.dot&&(h=this.parseTSQualifiedName(h)),o.typeName=h,this._isStartOfTypeParameters()&&(o.typeParameters=this.parseTSTypeParameterInstantiation()),this.finishNode(o,"TSTypeReference"),o}parseTSPredefinedType(){const o=this.startNode(),h=this.value;return this.next(),this.finishNode(o,C[h]),o}parseTSLiteralType(o){const h=this.startNode(),d=this.parseLiteral(this.value);return(o===l._true||o===l._false)&&(d.value=o===l._true),h.literal=d,this.finishNode(h,"TSLiteralType")}parseTSTupleType(){const o=this.startNode(),h=[];this.eat(l.bracketL);let d=!0;for(;!this.eat(l.bracketR);)switch(d?d=!1:this.expect(l.comma),this.type){case l.name:const T=this.parseTSTypeReference();this.type===l.question?h.push(this.parseTSOptionalType(T)):h.push(T);break;case l.ellipsis:h.push(this.parseTSRestType());break;case l.bracketR:break;default:this.unexpected()}return o.elementTypes=h,this.finishNode(o,"TSTupleType")}parseTSOptionalType(o){const h=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);return this.expect(l.question),h.typeAnnotation=o,this.finishNode(h,"TSOptionalType")}parseTSRestType(){const o=this.startNode();return this.expect(l.ellipsis),this._parseTSTypeAnnotation(o),this.finishNode(o,"TSRestType")}_parseMaybeTSArrayType(o){const h=this.startNodeAtNode(o);return this.expect(l.bracketL),this.eat(l.bracketR)?this.parseTSArrayType(h,o):this.parseTSIndexedAccessType(h,o)}parseTSArrayType(o,h){return o.elementType=h,this.finishNode(o,"TSArrayType")}parseTSIndexedAccessType(o,h){return o.objectType=h,o.indexType=this._parseTSType(),this.expect(l.bracketR),this.type===l.bracketL?this._parseMaybeTSArrayType(o,h):this.finishNode(o,"TSIndexedAccessType")}_isStartOfTSFunctionType(){switch(this.nextToken(),this.type){case l.parenR:case l.ellipsis:return!0;case l.name:case l._this:switch(this.nextToken(),this.type){case l.colon:case l.comma:case l.question:return!0;case l.parenR:return this.nextToken(),this.type===l.arrow;default:return!1}case l.braceL:case l.bracketL:switch(this.type===l.braceL?this.parseObj(!0):this.parseBindingAtom(),this.type){case l.colon:case l.comma:case l.question:return!0;case l.parenR:return this.nextToken(),this.type===l.arrow;default:return!1}default:return!1}}parseTSFunctionType(){const o=this.startNode(),h=Object.create(null);return o.typeParameters=this.parseMaybeTSTypeParameterDeclaration(),this.parseFunctionParams(h),o.parameters=h.params,this.expect(l.arrow),o.typeAnnotation=this.parseTSTypeAnnotation(!1),this.finishNode(o,"TSFunctionType")}parseTSParenthesizedType(){const o=this.startNode();return this.expect(l.parenL),this._parseTSTypeAnnotation(o),this.expect(l.parenR),this.eat(l.bracketL)&&this.expect(l.bracketR),this.finishNode(o,"TSParenthesizedType")}parseTSUnionType(o){const h=o?this.startNodeAtNode(o):this.startNode(),d=[];for(o&&d.push(o);this.eat(l.bitwiseOR);)d.push(this._parseTSIntersectionTypeOrPrimaryType());return d.length===1?o:(h.types=d,this.finishNode(h,"TSUnionType"))}parseTSIntersectionType(o){const h=o?this.startNodeAtNode(o):this.startNode(),d=[];for(o&&d.push(o);this.eat(l.bitwiseAND);)d.push(this._parsePrimaryType());return d.length===1?o:(h.types=d,this.finishNode(h,"TSIntersectionType"))}_parseTSIntersectionTypeOrPrimaryType(){this.eat(l.bitwiseAND);const o=this._parsePrimaryType();return this.type===l.bitwiseAND?this.parseTSIntersectionType(o):o}_parseTSUnionTypeOrIntersectionType(){this.eat(l.bitwiseOR);const o=this._parseTSIntersectionTypeOrPrimaryType();return this.type===l.bitwiseOR?this.parseTSUnionType(o):o}parseTSConditionalType(o){const h=this.startNodeAtNode(o);return h.checkType=o,this.expect(l._extends),h.extendsType=this._parseNonConditionalType(),this.expect(l.question),h.trueType=this._parseNonConditionalType(),this.expect(l.colon),h.falseType=this._parseNonConditionalType(),this.finishNode(h,"TSConditionalType")}parseTSInferType(){const o=this.startNode();return this.next(),o.typeParameter=this.parseTSTypeParameter(),this.finishNode(o,"TSInferType")}parseTSKeyofType(){const o=this.startNode();return this.next(),o.typeAnnotation=this.parseTSTypeAnnotation(!1),this.finishNode(o,"TSTypeOperator")}parseTSTypeQuery(){const o=this.startNode();return this.next(),o.exprName=this.parseIdent(),this.finishNode(o,"TSTypeQuery")}parseTSTypeofType(){const o=this.parseTSTypeQuery();if(this.eat(l.bracketL)){const h=this.startNode();return this.parseTSIndexedAccessType(h,o)}return o}parseTSImportType(o){const h=this.startNode();if(h.isTypeOf=o,this.expect(l._import),this.expect(l.parenL),h.parameter=this.parseTSLiteralType(this.type),this.expect(l.parenR),this.eat(l.dot)){let d=this.parseIdent();this.type===l.dot&&(d=this.parseTSQualifiedName(d)),h.qualifier=d}return this.finishNode(h,"TSImportType")}parseTSQualifiedName(o){let h=this.startNodeAtNode(o);return h.left=o,this.expect(l.dot),h.right=this.parseIdent(),h=this.finishNode(h,"TSQualifiedName"),this.type===l.dot&&(h=this.parseTSQualifiedName(h)),h}parseTSConstructorType(){const o=this.startNode();return this.expect(l._new),o.typeParameters=this.parseMaybeTSTypeParameterDeclaration(),this.expect(l.parenL),o.parameters=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8),this.expect(l.arrow),o.typeAnnotation=this.parseTSTypeAnnotation(!1),this.finishNode(o,"TSConstructorType")}parseTSConstructSignatureDeclaration(){const o=this.startNode();return this.expect(l._new),o.typeParameters=this.parseMaybeTSTypeParameterDeclaration(),this.expect(l.parenL),o.parameters=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8),this.eat(l.colon)&&(o.typeAnnotation=this.parseTSTypeAnnotation(!1)),this.finishNode(o,"TSConstructSignatureDeclaration")}parseTSTypeLiteral(){return this._parseObjectLikeType("TSTypeLiteral","members")}parseTSTypeAliasDeclaration(){const o=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);return o.id=this.parseIdent(),o.typeParameters=this.parseMaybeTSTypeParameterDeclaration(),this.expect(l.eq),this._parseTSTypeAnnotation(o),this.semicolon(),this.finishNode(o,"TSTypeAliasDeclaration")}parseTSInterfaceDeclaration(){const o=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);if(o.id=this.parseIdent(),o.typeParameters=this.parseMaybeTSTypeParameterDeclaration(),this.eat(l._extends)){const h=[];do h.push(this.parseTSExpressionWithTypeArguments());while(this.eat(l.comma));o.heritage=h}return o.body=this._parseObjectLikeType("TSInterfaceBody","body"),this.semicolon(),this.finishNode(o,"TSInterfaceDeclaration")}parseTSExpressionWithTypeArguments(){const o=this.startNode();let h=this.parseIdent();if(this.eat(l.dot)&&(h=this.parseTSQualifiedName(h)),o.expr=h,this._isStartOfTypeParameters()){const d=this.parseTSTypeParameterInstantiation();o.typeParameters=d,o.end=d.end,this.options.locations&&(o.loc.end=d.loc.end)}return this.finishNode(o,"TSExpressionWithTypeArguments")}parseTSTypeParameter(){const o=this.startNode();return this.type===l.name?(o.name=this.value,this.next()):this.unexpected(),this.eat(l._extends)&&(o.constraint=this._parseTSType()),this.eat(l.eq)&&(o.default=this._parseTSType()),this.finishNode(o,"TSTypeParameter")}parseMaybeTSTypeParameterDeclaration(){if(this._isStartOfTypeParameters()){const o=this.startNode(),h=[];let d=!0;for(this.next();!this.eat(l.relational)&&(d?d=!1:this.expect(l.comma),!this._isEndOfTypeParameters());)h.push(this.parseTSTypeParameter());return o.params=h,this.finishNode(o,"TSTypeParameterDeclaration")}}parseTSTypeParameterInstantiation(){const o=this.startNode(),h=[];this.next();let d=!0;for(;this.value&&!this._isEndOfTypeParameters()||this.type===l.comma;)d?d=!1:this.expect(l.comma),h.push(this._parseTSType());return this._isEndOfTypeParameters()&&this.next(),o.params=h,this.finishNode(o,"TSTypeParameterInstantiation")}parseMaybeTSTypeParameterInstantiation(){if(this._isStartOfTypeParameters())return this.parseTSTypeParameterInstantiation()}_parseObjectLikeType(o,h){const d=this.startNode();this.expect(l.braceL);const T=[];for(;!this.eat(l.braceR);)switch(this.type){case l.name:const I=this.parseIdent();switch(this.type){case l.parenL:case l.relational:T.push(this.parseTSMethodSignature(I));break;case l.colon:case l.semi:case l.comma:case l.braceR:case l.question:T.push(this.parseTSPropertySignature(I));break;default:if(this._hasPrecedingLineBreak()){T.push(this.parseTSPropertySignature(I));continue}this.unexpected()}break;case l.bracketL:const B=this.tsPreparePreview();if(this.nextToken(),this.type===l.name)switch(this.nextToken(),this.type){case l.colon:B(),T.push(this.parseTSIndexSignature());break;case l._in:if(T.length===0)return B(),this.parseTSMappedType();B(),T.push(this.parseTSPropertySignature(null,!0));break;default:B(),T.push(this.parseTSPropertySignature(null,!0))}else B(),T.push(this.parseTSPropertySignature(null,!0));break;case l._new:T.push(this.parseTSConstructSignatureDeclaration());break;default:this.unexpected()}return d[h]=T,this.finishNode(d,o)}parseTSMethodSignature(o){const h=this.startNodeAtNode(o);return h.key=o,this.eat(l.question)&&(h.optional=!0),h.typeParameters=this.parseMaybeTSTypeParameterDeclaration(),this.expect(l.parenL),h.parameters=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8),this.type===l.colon&&(h.typeAnnotation=this.parseTSTypeAnnotation(!0)),this.eat(l.comma)||this.eat(l.semi),this.finishNode(h,"TSMethodSignature")}parseTSPropertySignature(o,h=!1){let d;return h?(d=this.startNode(),this.expect(l.bracketL),d.key=this.parseExpression(),this.expect(l.bracketR)):(d=this.startNodeAtNode(o),d.key=o),d.computed=h,this.eat(l.question)&&(d.optional=!0),this.type===l.colon&&(d.typeAnnotation=this.parseTSTypeAnnotation(!0)),this.eat(l.comma)||this.eat(l.semi),this.finishNode(d,"TSPropertySignature")}parseTSIndexSignature(){const o=this.startNode();this.expect(l.bracketL);const h=this.parseIdent();return h.typeAnnotation=this.parseTSTypeAnnotation(!0),h.end=h.typeAnnotation.end,this.options.locations&&(h.loc.end=h.typeAnnotation.loc.end),o.index=h,this.expect(l.bracketR),o.typeAnnotation=this.parseTSTypeAnnotation(!0),this.eat(l.comma)||this.eat(l.semi),this.finishNode(o,"TSIndexSignature")}parseTSMappedType(){const o=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);return this.expect(l.bracketL),o.typeParameter=this._parseTSTypeParameterInTSMappedType(),this.expect(l.bracketR),this.eat(l.question)&&(o.optional=!0),this.type===l.colon&&(o.typeAnnotation=this.parseTSTypeAnnotation(!0)),this.semicolon(),this.expect(l.braceR),this.finishNode(o,"TSMappedType")}_parseTSTypeParameterInTSMappedType(){const o=this.startNode();return this.type===l.name?(o.name=this.value,this.next()):this.unexpected(),this.expect(l._in),o.constraint=this._parseNonConditionalType(),this.finishNode(o,"TSTypeParameter")}_parseMaybeTSExpression(o){return this.type===l.prefix&&S[this.value]===S["!"]&&(o=this.parseTSNonNullExpression(o)),this.type===l.name&&S[this.value]===S.as&&(o=this.parseTSAsExpression(o)),o}parseTSAsExpression(o){let h=o;for(;this.type===l.name&&S[this.value]===S.as;){const d=this.startNodeAtNode(h);this.next(),d.expression=h,this._parseTSTypeAnnotation(d),h=this.finishNode(d,"TSAsExpression")}return o}parseTSNonNullExpression(o){let h=o;for(;this.type===l.prefix&&S[this.value]===S["!"];){const d=this.startNodeAtNode(h);d.expression=h,this.next(),h=this.finishNode(d,"TSNonNullExpression")}return h}},xt}var yt,oi;function Si(){if(oi)return yt;oi=1;const{Parser:E}=Le(),l=Rs(),w=Vs(),C=Ds(),m=Bs(),b=E.extend(m,l(),C,w);return yt={parse(S){return b.parse(S,{ecmaVersion:2020,sourceType:"module",allowReturnOutsideFunction:!0})}},yt}var de={},ui;function js(){if(ui)return de;ui=1,Object.defineProperty(de,"__esModule",{value:!0}),de.generate=j,de.baseGenerator=de.GENERATOR=de.EXPRESSIONS_PRECEDENCE=de.NEEDS_PARENTHESES=void 0;function E(y,r){if(!(y instanceof r))throw new TypeError("Cannot call a class as a function")}function l(y,r){for(var s=0;s<r.length;s++){var p=r[s];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(y,p.key,p)}}function w(y,r,s){return r&&l(y.prototype,r),y}var C=JSON.stringify;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");var m={"||":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},b=17;de.NEEDS_PARENTHESES=b;var S={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:b,ClassExpression:b,FunctionExpression:b,ObjectExpression:b,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};de.EXPRESSIONS_PRECEDENCE=S;function k(y,r){var s=y.generator;if(y.write("("),r!=null&&r.length>0){s[r[0].type](r[0],y);for(var p=r.length,g=1;g<p;g++){var N=r[g];y.write(", "),s[N.type](N,y)}}y.write(")")}function c(y,r,s,p){var g=y.expressionsPrecedence[r.type];if(g===b)return!0;var N=y.expressionsPrecedence[s.type];return g!==N?!p&&g===15&&N===14&&s.operator==="**"||g<N:g!==13&&g!==14?!1:r.operator==="**"&&s.operator==="**"?!p:g===13&&N===13&&(r.operator==="??"||s.operator==="??")?!0:p?m[r.operator]<=m[s.operator]:m[r.operator]<m[s.operator]}function o(y,r,s,p){var g=y.generator;c(y,r,s,p)?(y.write("("),g[r.type](r,y),y.write(")")):g[r.type](r,y)}function h(y,r,s,p){var g=r.split(`
|
|
12
|
-
`),N=g.length-1;if(y.write(g[0].trim()),N>0){y.write(p);for(var O=1;O<N;O++)y.write(s+g[O].trim()+p);y.write(s+g[N].trim())}}function d(y,r,s,p){for(var g=r.length,N=0;N<g;N++){var O=r[N];y.write(s),O.type[0]==="L"?y.write("// "+O.value.trim()+`
|
|
13
|
-
`,O):(y.write("/*"),h(y,O.value,s,p),y.write("*/"+p))}}function T(y){for(var r=y;r!=null;){var s=r,p=s.type;if(p[0]==="C"&&p[1]==="a")return!0;if(p[0]==="M"&&p[1]==="e"&&p[2]==="m")r=r.object;else return!1}}function I(y,r){var s=y.generator,p=r.declarations;y.write(r.kind+" ");var g=p.length;if(g>0){s.VariableDeclarator(p[0],y);for(var N=1;N<g;N++)y.write(", "),s.VariableDeclarator(p[N],y)}}var B,F,L,M,H,W,re={Program:function(r,s){var p=s.indent.repeat(s.indentLevel),g=s.lineEnd,N=s.writeComments;N&&r.comments!=null&&d(s,r.comments,p,g);for(var O=r.body,X=O.length,Q=0;Q<X;Q++){var Y=O[Q];N&&Y.comments!=null&&d(s,Y.comments,p,g),s.write(p),this[Y.type](Y,s),s.write(g)}N&&r.trailingComments!=null&&d(s,r.trailingComments,p,g)},BlockStatement:W=function(r,s){var p=s.indent.repeat(s.indentLevel++),g=s.lineEnd,N=s.writeComments,O=p+s.indent;s.write("{");var X=r.body;if(X!=null&&X.length>0){s.write(g),N&&r.comments!=null&&d(s,r.comments,O,g);for(var Q=X.length,Y=0;Y<Q;Y++){var Z=X[Y];N&&Z.comments!=null&&d(s,Z.comments,O,g),s.write(O),this[Z.type](Z,s),s.write(g)}s.write(p)}else N&&r.comments!=null&&(s.write(g),d(s,r.comments,O,g),s.write(p));N&&r.trailingComments!=null&&d(s,r.trailingComments,O,g),s.write("}"),s.indentLevel--},ClassBody:W,StaticBlock:function(r,s){s.write("static "),this.BlockStatement(r,s)},EmptyStatement:function(r,s){s.write(";")},ExpressionStatement:function(r,s){var p=s.expressionsPrecedence[r.expression.type];p===b||p===3&&r.expression.left.type[0]==="O"?(s.write("("),this[r.expression.type](r.expression,s),s.write(")")):this[r.expression.type](r.expression,s),s.write(";")},IfStatement:function(r,s){s.write("if ("),this[r.test.type](r.test,s),s.write(") "),this[r.consequent.type](r.consequent,s),r.alternate!=null&&(s.write(" else "),this[r.alternate.type](r.alternate,s))},LabeledStatement:function(r,s){this[r.label.type](r.label,s),s.write(": "),this[r.body.type](r.body,s)},BreakStatement:function(r,s){s.write("break"),r.label!=null&&(s.write(" "),this[r.label.type](r.label,s)),s.write(";")},ContinueStatement:function(r,s){s.write("continue"),r.label!=null&&(s.write(" "),this[r.label.type](r.label,s)),s.write(";")},WithStatement:function(r,s){s.write("with ("),this[r.object.type](r.object,s),s.write(") "),this[r.body.type](r.body,s)},SwitchStatement:function(r,s){var p=s.indent.repeat(s.indentLevel++),g=s.lineEnd,N=s.writeComments;s.indentLevel++;var O=p+s.indent,X=O+s.indent;s.write("switch ("),this[r.discriminant.type](r.discriminant,s),s.write(") {"+g);for(var Q=r.cases,Y=Q.length,Z=0;Z<Y;Z++){var K=Q[Z];N&&K.comments!=null&&d(s,K.comments,O,g),K.test?(s.write(O+"case "),this[K.test.type](K.test,s),s.write(":"+g)):s.write(O+"default:"+g);for(var Oe=K.consequent,ye=Oe.length,he=0;he<ye;he++){var me=Oe[he];N&&me.comments!=null&&d(s,me.comments,X,g),s.write(X),this[me.type](me,s),s.write(g)}}s.indentLevel-=2,s.write(p+"}")},ReturnStatement:function(r,s){s.write("return"),r.argument&&(s.write(" "),this[r.argument.type](r.argument,s)),s.write(";")},ThrowStatement:function(r,s){s.write("throw "),this[r.argument.type](r.argument,s),s.write(";")},TryStatement:function(r,s){if(s.write("try "),this[r.block.type](r.block,s),r.handler){var p=r.handler;p.param==null?s.write(" catch "):(s.write(" catch ("),this[p.param.type](p.param,s),s.write(") ")),this[p.body.type](p.body,s)}r.finalizer&&(s.write(" finally "),this[r.finalizer.type](r.finalizer,s))},WhileStatement:function(r,s){s.write("while ("),this[r.test.type](r.test,s),s.write(") "),this[r.body.type](r.body,s)},DoWhileStatement:function(r,s){s.write("do "),this[r.body.type](r.body,s),s.write(" while ("),this[r.test.type](r.test,s),s.write(");")},ForStatement:function(r,s){if(s.write("for ("),r.init!=null){var p=r.init;p.type[0]==="V"?I(s,p):this[p.type](p,s)}s.write("; "),r.test&&this[r.test.type](r.test,s),s.write("; "),r.update&&this[r.update.type](r.update,s),s.write(") "),this[r.body.type](r.body,s)},ForInStatement:B=function(r,s){s.write("for ".concat(r.await?"await ":"","("));var p=r.left;p.type[0]==="V"?I(s,p):this[p.type](p,s),s.write(r.type[3]==="I"?" in ":" of "),this[r.right.type](r.right,s),s.write(") "),this[r.body.type](r.body,s)},ForOfStatement:B,DebuggerStatement:function(r,s){s.write("debugger;",r)},FunctionDeclaration:F=function(r,s){s.write((r.async?"async ":"")+(r.generator?"function* ":"function ")+(r.id?r.id.name:""),r),k(s,r.params),s.write(" "),this[r.body.type](r.body,s)},FunctionExpression:F,VariableDeclaration:function(r,s){I(s,r),s.write(";")},VariableDeclarator:function(r,s){this[r.id.type](r.id,s),r.init!=null&&(s.write(" = "),this[r.init.type](r.init,s))},ClassDeclaration:function(r,s){if(s.write("class "+(r.id?"".concat(r.id.name," "):""),r),r.superClass){s.write("extends ");var p=r.superClass,g=p.type,N=s.expressionsPrecedence[g];(g[0]!=="C"||g[1]!=="l"||g[5]!=="E")&&(N===b||N<s.expressionsPrecedence.ClassExpression)?(s.write("("),this[r.superClass.type](p,s),s.write(")")):this[p.type](p,s),s.write(" ")}this.ClassBody(r.body,s)},ImportDeclaration:function(r,s){s.write("import ");var p=r.specifiers,g=r.attributes,N=p.length,O=0;if(N>0){for(;O<N;){O>0&&s.write(", ");var X=p[O],Q=X.type[6];if(Q==="D")s.write(X.local.name,X),O++;else if(Q==="N")s.write("* as "+X.local.name,X),O++;else break}if(O<N){for(s.write("{");;){var Y=p[O],Z=Y.imported.name;if(s.write(Z,Y),Z!==Y.local.name&&s.write(" as "+Y.local.name),++O<N)s.write(", ");else break}s.write("}")}s.write(" from ")}if(this.Literal(r.source,s),g&&g.length>0){s.write(" with { ");for(var K=0;K<g.length;K++)this.ImportAttribute(g[K],s),K<g.length-1&&s.write(", ");s.write(" }")}s.write(";")},ImportAttribute:function(r,s){this.Identifier(r.key,s),s.write(": "),this.Literal(r.value,s)},ImportExpression:function(r,s){s.write("import("),this[r.source.type](r.source,s),s.write(")")},ExportDefaultDeclaration:function(r,s){s.write("export default "),this[r.declaration.type](r.declaration,s),s.expressionsPrecedence[r.declaration.type]!=null&&r.declaration.type[0]!=="F"&&s.write(";")},ExportNamedDeclaration:function(r,s){if(s.write("export "),r.declaration)this[r.declaration.type](r.declaration,s);else{s.write("{");var p=r.specifiers,g=p.length;if(g>0)for(var N=0;;){var O=p[N],X=O.local.name;if(s.write(X,O),X!==O.exported.name&&s.write(" as "+O.exported.name),++N<g)s.write(", ");else break}if(s.write("}"),r.source&&(s.write(" from "),this.Literal(r.source,s)),r.attributes&&r.attributes.length>0){s.write(" with { ");for(var Q=0;Q<r.attributes.length;Q++)this.ImportAttribute(r.attributes[Q],s),Q<r.attributes.length-1&&s.write(", ");s.write(" }")}s.write(";")}},ExportAllDeclaration:function(r,s){if(r.exported!=null?s.write("export * as "+r.exported.name+" from "):s.write("export * from "),this.Literal(r.source,s),r.attributes&&r.attributes.length>0){s.write(" with { ");for(var p=0;p<r.attributes.length;p++)this.ImportAttribute(r.attributes[p],s),p<r.attributes.length-1&&s.write(", ");s.write(" }")}s.write(";")},MethodDefinition:function(r,s){r.static&&s.write("static ");var p=r.kind[0];(p==="g"||p==="s")&&s.write(r.kind+" "),r.value.async&&s.write("async "),r.value.generator&&s.write("*"),r.computed?(s.write("["),this[r.key.type](r.key,s),s.write("]")):this[r.key.type](r.key,s),k(s,r.value.params),s.write(" "),this[r.value.body.type](r.value.body,s)},ClassExpression:function(r,s){this.ClassDeclaration(r,s)},ArrowFunctionExpression:function(r,s){s.write(r.async?"async ":"",r);var p=r.params;p!=null&&(p.length===1&&p[0].type[0]==="I"?s.write(p[0].name,p[0]):k(s,r.params)),s.write(" => "),r.body.type[0]==="O"?(s.write("("),this.ObjectExpression(r.body,s),s.write(")")):this[r.body.type](r.body,s)},ThisExpression:function(r,s){s.write("this",r)},Super:function(r,s){s.write("super",r)},RestElement:L=function(r,s){s.write("..."),this[r.argument.type](r.argument,s)},SpreadElement:L,YieldExpression:function(r,s){s.write(r.delegate?"yield*":"yield"),r.argument&&(s.write(" "),this[r.argument.type](r.argument,s))},AwaitExpression:function(r,s){s.write("await ",r),o(s,r.argument,r)},TemplateLiteral:function(r,s){var p=r.quasis,g=r.expressions;s.write("`");for(var N=g.length,O=0;O<N;O++){var X=g[O],Q=p[O];s.write(Q.value.raw,Q),s.write("${"),this[X.type](X,s),s.write("}")}var Y=p[p.length-1];s.write(Y.value.raw,Y),s.write("`")},TemplateElement:function(r,s){s.write(r.value.raw,r)},TaggedTemplateExpression:function(r,s){o(s,r.tag,r),this[r.quasi.type](r.quasi,s)},ArrayExpression:H=function(r,s){if(s.write("["),r.elements.length>0)for(var p=r.elements,g=p.length,N=0;;){var O=p[N];if(O!=null&&this[O.type](O,s),++N<g)s.write(", ");else{O==null&&s.write(", ");break}}s.write("]")},ArrayPattern:H,ObjectExpression:function(r,s){var p=s.indent.repeat(s.indentLevel++),g=s.lineEnd,N=s.writeComments,O=p+s.indent;if(s.write("{"),r.properties.length>0){s.write(g),N&&r.comments!=null&&d(s,r.comments,O,g);for(var X=","+g,Q=r.properties,Y=Q.length,Z=0;;){var K=Q[Z];if(N&&K.comments!=null&&d(s,K.comments,O,g),s.write(O),this[K.type](K,s),++Z<Y)s.write(X);else break}s.write(g),N&&r.trailingComments!=null&&d(s,r.trailingComments,O,g),s.write(p+"}")}else N?r.comments!=null?(s.write(g),d(s,r.comments,O,g),r.trailingComments!=null&&d(s,r.trailingComments,O,g),s.write(p+"}")):r.trailingComments!=null?(s.write(g),d(s,r.trailingComments,O,g),s.write(p+"}")):s.write("}"):s.write("}");s.indentLevel--},Property:function(r,s){r.method||r.kind[0]!=="i"?this.MethodDefinition(r,s):(r.shorthand||(r.computed?(s.write("["),this[r.key.type](r.key,s),s.write("]")):this[r.key.type](r.key,s),s.write(": ")),this[r.value.type](r.value,s))},PropertyDefinition:function(r,s){if(r.static&&s.write("static "),r.computed&&s.write("["),this[r.key.type](r.key,s),r.computed&&s.write("]"),r.value==null){r.key.type[0]!=="F"&&s.write(";");return}s.write(" = "),this[r.value.type](r.value,s),s.write(";")},ObjectPattern:function(r,s){if(s.write("{"),r.properties.length>0)for(var p=r.properties,g=p.length,N=0;this[p[N].type](p[N],s),++N<g;)s.write(", ");s.write("}")},SequenceExpression:function(r,s){k(s,r.expressions)},UnaryExpression:function(r,s){if(r.prefix){var p=r.operator,g=r.argument,N=r.argument.type;s.write(p);var O=c(s,g,r);!O&&(p.length>1||N[0]==="U"&&(N[1]==="n"||N[1]==="p")&&g.prefix&&g.operator[0]===p&&(p==="+"||p==="-"))&&s.write(" "),O?(s.write(p.length>1?" (":"("),this[N](g,s),s.write(")")):this[N](g,s)}else this[r.argument.type](r.argument,s),s.write(r.operator)},UpdateExpression:function(r,s){r.prefix?(s.write(r.operator),this[r.argument.type](r.argument,s)):(this[r.argument.type](r.argument,s),s.write(r.operator))},AssignmentExpression:function(r,s){this[r.left.type](r.left,s),s.write(" "+r.operator+" "),this[r.right.type](r.right,s)},AssignmentPattern:function(r,s){this[r.left.type](r.left,s),s.write(" = "),this[r.right.type](r.right,s)},BinaryExpression:M=function(r,s){var p=r.operator==="in";p&&s.write("("),o(s,r.left,r,!1),s.write(" "+r.operator+" "),o(s,r.right,r,!0),p&&s.write(")")},LogicalExpression:M,ConditionalExpression:function(r,s){var p=r.test,g=s.expressionsPrecedence[p.type];g===b||g<=s.expressionsPrecedence.ConditionalExpression?(s.write("("),this[p.type](p,s),s.write(")")):this[p.type](p,s),s.write(" ? "),this[r.consequent.type](r.consequent,s),s.write(" : "),this[r.alternate.type](r.alternate,s)},NewExpression:function(r,s){s.write("new ");var p=s.expressionsPrecedence[r.callee.type];p===b||p<s.expressionsPrecedence.CallExpression||T(r.callee)?(s.write("("),this[r.callee.type](r.callee,s),s.write(")")):this[r.callee.type](r.callee,s),k(s,r.arguments)},CallExpression:function(r,s){var p=s.expressionsPrecedence[r.callee.type];p===b||p<s.expressionsPrecedence.CallExpression?(s.write("("),this[r.callee.type](r.callee,s),s.write(")")):this[r.callee.type](r.callee,s),r.optional&&s.write("?."),k(s,r.arguments)},ChainExpression:function(r,s){this[r.expression.type](r.expression,s)},MemberExpression:function(r,s){var p=s.expressionsPrecedence[r.object.type];p===b||p<s.expressionsPrecedence.MemberExpression?(s.write("("),this[r.object.type](r.object,s),s.write(")")):this[r.object.type](r.object,s),r.computed?(r.optional&&s.write("?."),s.write("["),this[r.property.type](r.property,s),s.write("]")):(r.optional?s.write("?."):s.write("."),this[r.property.type](r.property,s))},MetaProperty:function(r,s){s.write(r.meta.name+"."+r.property.name,r)},Identifier:function(r,s){s.write(r.name,r)},PrivateIdentifier:function(r,s){s.write("#".concat(r.name),r)},Literal:function(r,s){r.raw!=null?s.write(r.raw,r):r.regex!=null?this.RegExpLiteral(r,s):r.bigint!=null?s.write(r.bigint+"n",r):s.write(C(r.value),r)},RegExpLiteral:function(r,s){var p=r.regex;s.write("/".concat(p.pattern,"/").concat(p.flags),r)}};de.GENERATOR=re;var v={},n=re;de.baseGenerator=n;var P=function(){function y(r){E(this,y);var s=r??v;this.output="",s.output!=null?(this.output=s.output,this.write=this.writeToStream):this.output="",this.generator=s.generator!=null?s.generator:re,this.expressionsPrecedence=s.expressionsPrecedence!=null?s.expressionsPrecedence:S,this.indent=s.indent!=null?s.indent:" ",this.lineEnd=s.lineEnd!=null?s.lineEnd:`
|
|
14
|
-
`,this.indentLevel=s.startingIndentLevel!=null?s.startingIndentLevel:0,this.writeComments=s.comments?s.comments:!1,s.sourceMap!=null&&(this.write=s.output==null?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=s.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split(`
|
|
15
|
-
`).length-1,this.mapping={original:null,generated:this,name:void 0,source:s.sourceMap.file||s.sourceMap._file})}return w(y,[{key:"write",value:function(s){this.output+=s}},{key:"writeToStream",value:function(s){this.output.write(s)}},{key:"writeAndMap",value:function(s,p){this.output+=s,this.map(s,p)}},{key:"writeToStreamAndMap",value:function(s,p){this.output.write(s),this.map(s,p)}},{key:"map",value:function(s,p){if(p!=null){var g=p.type;if(g[0]==="L"&&g[2]==="n"){this.column=0,this.line++;return}if(p.loc!=null){var N=this.mapping;N.original=p.loc.start,N.name=p.name,this.sourceMap.addMapping(N)}if(g[0]==="T"&&g[8]==="E"||g[0]==="L"&&g[1]==="i"&&typeof p.value=="string"){for(var O=s.length,X=this.column,Q=this.line,Y=0;Y<O;Y++)s[Y]===`
|
|
16
|
-
`?(X=0,Q++):X++;this.column=X,this.line=Q;return}}var Z=s.length,K=this.lineEnd;Z>0&&(this.lineEndSize>0&&(K.length===1?s[Z-1]===K:s.endsWith(K))?(this.line+=this.lineEndSize,this.column=0):this.column+=Z)}},{key:"toString",value:function(){return this.output}}]),y}();function j(y,r){var s=new P(r);return s.generator[y.type](y,s),s.output}return de}var vt,li;function Fs(){if(li)return vt;li=1;const{generate:E,baseGenerator:l}=js(),{parse:w}=Si(),C={...l,TSTypeAnnotation(){},TSTypeReference(){},TSLiteralType(){},TSTupleType(){},TSOptionalType(){},TSRestType(){},TSArrayType(){},TSIndexedAccessType(){},TSFunctionType(){},TSParenthesizedType(){},TSUnionType(){},TSIntersectionType(){},TSConditionalType(){},TSInferType(){},TSImportType(){},TSQualifiedName(){},TSConstructorType(){},TSConstructSignatureDeclaration(){},TSTypeLiteral(){},TSTypeAliasDeclaration(){},TSInterfaceBody(){},TSInterfaceDeclaration(){},TSExpressionWithTypeArguments(){},TSTypeParameter(){},TSTypeParameterDeclaration(){},TSTypeParameterInstantiation(){},TSMethodSignature(){},TSPropertySignature(){},TSIndexSignature(){},TSMappedType(){},TSTypeParameter(){},TSAsExpression(){},TSNonNullExpression(){},FieldDefinition(c,o){this[c.key.type](c.key,o),o.write(" = "),this[c.value.type](c.value,o),o.write(";")},PropertyDefinition(c,o){this.FieldDefinition(c,o)}},m={...C,JSXElement(c,o){o.write("React.createElement("),this.JSXOpeningElement(c.openingElement,o);for(var h=0;h<c.children.length;h++){var d=c.children[h];d.type!=="JSXText"&&o.write(","),this[d.type](d,o)}o.write(")")},JSXOpeningElement(c,o){this[c.name.type](c.name,o,c.name.name&&c.name.name[0]===c.name.name[0].toLowerCase()),o.write(",{");for(var h=0;h<c.attributes.length;h++){var d=c.attributes[h];this[d.type](d,o),h!==c.attributes.length-1&&o.write(",")}o.write("}")},JSXIdentifier(c,o,h){h?o.write(JSON.stringify(c.name)):o.write(c.name)},JSXMemberExpression(c,o){this[c.object.type](c.object,o),o.write("."),this[c.property.type](c.property,o)},JSXAttribute(c,o){this[c.name.type](c.name,o,!0),o.write(":"),c.value?this[c.value.type](c.value,o):o.write("true")},JSXExpressionContainer(c,o){this[c.expression.type](c.expression,o)},JSXText(c,o){c.value.trim()===""&&(c.value=null),c.value&&(o.write(',"'),o.write(c.value.replace(/"/g,'\\"').replace(/\n\s*/g," ")),o.write('"'))},JSXSpreadAttribute(c,o){o.write("...("),c.argument.type==="LogicalExpression"?(this[c.argument.left.type](c.argument.left,o),o.write(" "),o.write(c.argument.operator),o.write(" "),this[c.argument.right.type](c.argument.right,o)):this[c.argument.type](c.argument,o),o.write(")")},JSXFragment(c,o){this.JSXElement({openingElement:{attributes:[],name:{type:"JSXIdentifier",name:"React.Fragment"}},children:c.children},o)},JSXEmptyExpression(c,o){o.write("null")}},b={...C,JSXElement(c,o){if(o.write("<"),this[c.openingElement.type](c.openingElement,o),c.closingElement){o.write(">");for(var h=0;h<c.children.length;h++){var d=c.children[h];this[d.type](d,o)}o.write("</"),this[c.closingElement.type](c.closingElement,o),o.write(">")}else o.write(" />")},JSXOpeningElement(c,o){this[c.name.type](c.name,o);for(var h=0;h<c.attributes.length;h++){var d=c.attributes[h];this[d.type](d,o)}},JSXClosingElement(c,o){this[c.name.type](c.name,o)},JSXIdentifier(c,o){o.write(c.name)},JSXMemberExpression(c,o){this[c.object.type](c.object,o),o.write("."),this[c.property.type](c.property,o)},JSXAttribute(c,o){o.write(" "),this[c.name.type](c.name,o),c.value&&(o.write("="),this[c.value.type](c.value,o))},JSXNamespacedName(c,o){this[c.namespace.type](c.namespace,o),o.write(":"),this[c.name.type](c.name,o)},JSXExpressionContainer(c,o){o.write("{"),this[c.expression.type](c.expression,o),o.write("}")},JSXText(c,o){o.write(c.value)},JSXSpreadAttribute(c,o){o.write(" {..."),c.argument.type==="LogicalExpression"?(o.write("("),this[c.argument.left.type](c.argument.left,o),o.write(` ${c.argument.operator} `),this[c.argument.right.type](c.argument.right,o),o.write(")")):this[c.argument.type](c.argument,o),o.write("}")},JSXFragment(c,o){this.JSXElement({openingElement:{attributes:[],name:{type:"JSXIdentifier",name:""},type:"JSXOpeningElement"},closingElement:{attributes:[],name:{type:"JSXIdentifier",name:""},type:"JSXClosingElement"},children:c.children},o)},JSXEmptyExpression(c,o){o.write("{}")}};function S(c){const o=w(c);o.body=o.body.filter(d=>!["ImportDeclaration","ExportAllDeclaration"].includes(d.type));for(let d=0;d<o.body.length;d++)["ExportNamedDeclaration","ExportDefaultDeclaration"].includes(o.body[d].type)&&(o.body[d]=o.body[d].declaration);let h=o.body[o.body.length-1];if(h.type==="VariableDeclaration"){const{declarations:d}=h;if(d.length!==1)throw new Error("The last example variable declaration must be a single expression.");const T=d[0];h={type:"ExpressionStatement",expression:{type:"AssignmentExpression",operator:"=",left:T.id,right:T.init}}}return h.type==="ExpressionStatement"&&h.expression.type==="JSXElement"?o.body=[{type:"ReturnStatement",argument:{type:"FunctionDeclaration",id:{type:"Identifier",name:"PreviewComponent"},body:{type:"BlockStatement",body:[...o.body.slice(0,o.body.length-1),{type:"ReturnStatement",argument:h}]}}}]:o.body=[...o.body.slice(0,o.body.length-1),{type:"ReturnStatement",argument:h}],c=E(o,{generator:m}).trim(),{code:c,hasTS:o.sourceType==="ts"}}function k(c){const o=w(c);return c=E(o,{generator:b}).trim(),{code:c,hasTS:!1}}return vt={convertToReactComponent:S,convertToJSX:k},vt}var gt,hi;function Ms(){if(hi)return gt;hi=1;const{parse:E}=Si(),{convertToReactComponent:l,convertToJSX:w}=Fs();return gt={parse:E,convertToReactComponent:l,convertToJSX:w},gt}var Ks=Ms();export{fi as C,ms as D,ks as G,Xs as L,qe as R,As as S,zs as T,Ks as a,Es as b,fs as c,ps as d,hs as e,cs as f,Cs as g,gi as h,vs as i,ys as j,xs as k,Ns as l,St as m,ae as n,gs as o,se as p,vi as q,yi as r,$ as s,Zt as t,Is as u,Ps as v,bs as w,_s as x,Ts as y};
|