@arcadeai/design-system 5.0.1 → 5.0.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/dist/{CompositeItem-BWqRobLN.js → CompositeItem-RsjiqT-t.js} +3 -3
- package/dist/{CompositeList-DJUJLDbx.js → CompositeList-BUPONQmB.js} +5 -5
- package/dist/CompositeRoot-B_7HJZA1.js +166 -0
- package/dist/DialogRoot-xodRxCJ6.js +9 -0
- package/dist/DialogTrigger-BRWKaMYv.js +370 -0
- package/dist/{DirectionContext-B4CbbM--.js → DirectionContext-OzWG1tsQ.js} +1 -1
- package/dist/{FieldItemContext-4qBxodsW.js → FieldItemContext-C6kLzkCC.js} +1 -1
- package/dist/{FloatingPortalLite-B1JyBlt0.js → FloatingPortalLite-e0IaokaG.js} +2 -2
- package/dist/{LabelableContext-Q1Z-xUI9.js → LabelableContext-C6DIbcnY.js} +34 -18
- package/dist/{Separator-CgntgfMd.js → Separator-CJ3Gn6wf.js} +2 -2
- package/dist/{StickToBottom-CU0d65a_.js → StickToBottom-Bh9VDiPm.js} +3 -3
- package/dist/Toggle-waFXW8db.js +74 -0
- package/dist/{ToolbarRootContext-DVNA8Vkb.js → ToolbarRootContext-CDm74ob9.js} +2 -2
- package/dist/accordion-DimUia61.js +314 -0
- package/dist/{addEventListener-B4Gs94GY.js → addEventListener-BlQH_qk1.js} +1 -1
- package/dist/{alert-dialog-tBMDYzJ3.js → alert-dialog-BiDZwtP2.js} +4 -4
- package/dist/{angular-html-BDzibLIk.js → angular-html-CmQQGj3Q.js} +2 -2
- package/dist/{angular-html-D85fwMJh.js → angular-html-DkEUN79G.js} +2 -2
- package/dist/{angular-ts-D81F0-9A.js → angular-ts-4H9Tgcds.js} +2 -2
- package/dist/{angular-ts-C3bnauCX.js → angular-ts-wkihi9GZ.js} +2 -2
- package/dist/{apl-92oxg4m4.js → apl-C_-_9Ip6.js} +5 -5
- package/dist/assets/icons/microsoft-power-bi.js +88 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/tokens.css +1 -1
- package/dist/assets/variables.css +1 -1
- package/dist/{astro-BmZ7vV4W.js → astro-DKp4HZqy.js} +5 -5
- package/dist/{astro-Up1TtKOj.js → astro-nonP8tBz.js} +4 -4
- package/dist/{avatar-BSYWkGGc.js → avatar-B-lhJ-Gz.js} +35 -36
- package/dist/{blade-CpVdu14g.js → blade-6azK5Bl7.js} +6 -6
- package/dist/{blade-CsxOO3tZ.js → blade-Bm1wiaIl.js} +7 -7
- package/dist/{button-BNOmhdpM.js → button-BdQxLUOB.js} +3 -3
- package/dist/{c-CoKjrVSd.js → c-BLhjukKD.js} +1 -1
- package/dist/{c-DtxJex1m.js → c-D23WKKVZ.js} +1 -1
- package/dist/{calendar-DizaWURn.js → calendar-Ctzadwv-.js} +98 -97
- package/dist/checkbox-CZViOGvt.js +273 -0
- package/dist/{clamp-DQAQAGkj.js → clamp-DV0oJUnl.js} +2 -2
- package/dist/{cobol-DW9I8MrZ.js → cobol-cEewS-ES.js} +2 -2
- package/dist/{coffee-IcWixSuh.js → coffee-BWa7CtjQ.js} +1 -1
- package/dist/{coffee-B9lToztK.js → coffee-QapU4XnI.js} +1 -1
- package/dist/{collapsible-Dt__KKUJ.js → collapsible-DlF1q_cg.js} +14 -14
- package/dist/{command-ChimIUHM.js → command-DC-ESQ0C.js} +25 -25
- package/dist/components/index.js +147 -146
- package/dist/components/ui/atoms/accordion.js +1 -1
- package/dist/components/ui/atoms/alert-dialog.js +1 -1
- package/dist/components/ui/atoms/avatar.js +1 -1
- package/dist/components/ui/atoms/badge.js +2 -2
- package/dist/components/ui/atoms/breadcrumb.js +2 -2
- package/dist/components/ui/atoms/button.js +1 -1
- package/dist/components/ui/atoms/calendar.js +1 -1
- package/dist/components/ui/atoms/chart.d.ts.map +1 -1
- package/dist/components/ui/atoms/chart.js +7 -7
- package/dist/components/ui/atoms/chat-container.js +1 -1
- package/dist/components/ui/atoms/checkbox.js +1 -1
- package/dist/components/ui/atoms/code-block.js +1 -1
- package/dist/components/ui/atoms/collapsible.js +1 -1
- package/dist/components/ui/atoms/command.js +1 -1
- package/dist/components/ui/atoms/compute-flow-paths.js +16 -16
- package/dist/components/ui/atoms/copy-button.js +1 -1
- package/dist/components/ui/atoms/dialog.js +3 -3
- package/dist/components/ui/atoms/dropdown-menu.js +1 -1
- package/dist/components/ui/atoms/form.d.ts +1 -1
- package/dist/components/ui/atoms/form.d.ts.map +1 -1
- package/dist/components/ui/atoms/hover-card.js +1 -1
- package/dist/components/ui/atoms/icons/index.d.ts +1 -0
- package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/icons/index.js +63 -62
- package/dist/components/ui/atoms/icons/microsoft-power-bi.d.ts +4 -0
- package/dist/components/ui/atoms/icons/microsoft-power-bi.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/microsoft-power-bi.js +82 -0
- package/dist/components/ui/atoms/index.js +104 -103
- package/dist/components/ui/atoms/input-group.js +2 -2
- package/dist/components/ui/atoms/input.js +1 -1
- package/dist/components/ui/atoms/json-highlight.d.ts +2 -2
- package/dist/components/ui/atoms/json-highlight.d.ts.map +1 -1
- package/dist/components/ui/atoms/markdown.js +1 -1
- package/dist/components/ui/atoms/mobile-tooltip.js +2 -2
- package/dist/components/ui/atoms/popover.js +1 -1
- package/dist/components/ui/atoms/progress.js +1 -1
- package/dist/components/ui/atoms/radio-group.js +1 -1
- package/dist/components/ui/atoms/resizable.js +1 -1
- package/dist/components/ui/atoms/scroll-area.js +1 -1
- package/dist/components/ui/atoms/scroll-button.js +3 -3
- package/dist/components/ui/atoms/select.js +1 -1
- package/dist/components/ui/atoms/separator.js +1 -1
- package/dist/components/ui/atoms/sheet.js +3 -3
- package/dist/components/ui/atoms/sidebar.d.ts.map +1 -1
- package/dist/components/ui/atoms/sidebar.js +5 -5
- package/dist/components/ui/atoms/slider.js +1 -1
- package/dist/components/ui/atoms/sparkle-burst.d.ts.map +1 -1
- package/dist/components/ui/atoms/switch.js +1 -1
- package/dist/components/ui/atoms/tabs.js +1 -1
- package/dist/components/ui/atoms/toggle-group.js +1 -1
- package/dist/components/ui/atoms/toggle.js +1 -1
- package/dist/components/ui/atoms/tooltip.js +1 -1
- package/dist/components/ui/atoms/view-tools-control.js +1 -1
- package/dist/components/ui/atoms/virtualized-grid.js +1 -1
- package/dist/components/ui/blocks/demo.js +4 -4
- package/dist/components/ui/index.js +147 -146
- package/dist/components/ui/molecules/chat-history-item.js +1 -1
- package/dist/components/ui/molecules/client-secret-field.js +2 -2
- package/dist/components/ui/molecules/command-bar.js +1 -1
- package/dist/components/ui/molecules/confirm-popover.js +2 -2
- package/dist/components/ui/molecules/date-time-picker.js +4 -4
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.js +4 -4
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.js +2 -2
- package/dist/components/ui/molecules/mcp-server-picker/recommended-tools.js +2 -2
- package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/section-nav-header.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.js +2 -2
- package/dist/components/ui/molecules/mcp-server-picker/server-card.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.js +1 -1
- package/dist/components/ui/molecules/message.d.ts.map +1 -1
- package/dist/components/ui/molecules/message.js +3 -3
- package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
- package/dist/components/ui/molecules/prompt-input.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +1 -1
- package/dist/components/ui/molecules/steps-progress.js +1 -1
- package/dist/components/ui/molecules/tool-call-accordion.d.ts.map +1 -1
- package/dist/components/ui/molecules/tool-call-accordion.js +2 -2
- package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/tool-card.js +3 -3
- package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/user-nav.js +3 -3
- package/dist/components/ui/organisms/mcp-selection-summary-bar.js +1 -1
- package/dist/components/ui/pages/login-page.js +1 -1
- package/dist/composite-B-tEa-Zg.js +169 -0
- package/dist/{composite-BlDfbDkL.js → composite-COXvAbcT.js} +5 -5
- package/dist/constants-ouS7wtUt.js +5 -0
- package/dist/{cpp-BLc8IWxi.js → cpp-BBpqpcUG.js} +4 -4
- package/dist/{cpp-BEQCV3s5.js → cpp-CenmDznH.js} +3 -3
- package/dist/{createBaseUIEventDetails-ChcQXp54.js → createBaseUIEventDetails-C_dwdqj4.js} +3 -3
- package/dist/{crystal-Bpo57dB-.js → crystal-Cjt-cWZ3.js} +6 -6
- package/dist/{css-DSy_xl5Z.js → css-BT0UpMRG.js} +1 -1
- package/dist/{css-DcJEitGa.js → css-QsZubv6P.js} +1 -1
- package/dist/{dropdown-menu-dsg43mOw.js → dropdown-menu-CWWN1cXs.js} +515 -520
- package/dist/{edge-Crbn4Nhk.js → edge-nqxIbnup.js} +3 -3
- package/dist/{elixir-CIj8u1AY.js → elixir-IwV7soxp.js} +1 -1
- package/dist/{elm-CfYD1d_e.js → elm-Ogf1arfY.js} +1 -1
- package/dist/engine-ChH4dTze.js +6 -0
- package/dist/{erb-BJQo6_56.js → erb-BBpN-Ldx.js} +2 -2
- package/dist/{error-CAd3pM3X.js → error-C8bGkT0l.js} +1 -1
- package/dist/getPseudoElementBounds-D_dlkPnQ.js +345 -0
- package/dist/{git-rebase-DVA6p9-5.js → git-rebase-CqAmS_sI.js} +1 -1
- package/dist/{glimmer-js-DVJpm-CV.js → glimmer-js-C7DUODof.js} +4 -4
- package/dist/{glimmer-ts-kH8c2RJ9.js → glimmer-ts-DI4G9vW_.js} +4 -4
- package/dist/{glsl-Ckye8FrQ.js → glsl-CUfKtNbE.js} +2 -2
- package/dist/{glsl-7eSg02Gr.js → glsl-Cq85X97E.js} +2 -2
- package/dist/{graphql-CE7EXOgY.js → graphql-BCsR6dTa.js} +4 -4
- package/dist/{graphql-DEzE15R4.js → graphql-BsbTr8W_.js} +5 -5
- package/dist/{hack-o7fvIqt8.js → hack-bqdf8rRJ.js} +2 -2
- package/dist/{haml-BP5AnOwP.js → haml-BJXnS8Xp.js} +2 -2
- package/dist/{haml-C5GSorf3.js → haml-CWQgvV8s.js} +3 -3
- package/dist/{handlebars-Bhpj_d0s.js → handlebars-CKAb2CPX.js} +4 -4
- package/dist/{handlebars-BjC-t2fq.js → handlebars-DMloI5gH.js} +3 -3
- package/dist/{highlighted-body-OFNGDK62-BoSFtT5s.js → highlighted-body-OFNGDK62-BegvjYf8.js} +1 -1
- package/dist/{hover-card-z1GPavWa.js → hover-card-GELKDadU.js} +145 -157
- package/dist/{html-Ct25QrQu.js → html-CwG5RUst.js} +3 -3
- package/dist/{html-D4w9Dm28.js → html-DKmZbgBt.js} +3 -3
- package/dist/{html-derivative-Bj-VxhMx.js → html-derivative-B4jNkpq7.js} +1 -1
- package/dist/{html-derivative-DSKrIQn9.js → html-derivative-l83Yr46D.js} +1 -1
- package/dist/{http-BCk9QAjz.js → http-BFAjFcZG.js} +2 -2
- package/dist/{http-d-m0Mc7D.js → http-BhDBVFaP.js} +4 -4
- package/dist/{hurl-DWxVzahG.js → hurl-CjzrrhSW.js} +2 -2
- package/dist/{hurl-DfTnDfTu.js → hurl-DAdF3com.js} +2 -2
- package/dist/inertValue-BhczR0H5.js +7 -0
- package/dist/input-DZfZK6b1.js +91 -0
- package/dist/{isElementDisabled-Cibvw8mz.js → isElementDisabled-C1rd9-Ym.js} +1 -1
- package/dist/{java-CuIj5nvv.js → java-C_vVq3dw.js} +1 -1
- package/dist/{java-BKNJluE5.js → java-Ci5_G7qk.js} +1 -1
- package/dist/{javascript-C_3Wy_Gj.js → javascript-CV4d78q9.js} +1 -1
- package/dist/{javascript-Da2xmRTV.js → javascript-DIVSilR9.js} +1 -1
- package/dist/{jinja-DhkDj1Xi.js → jinja-Bs1LO7X2.js} +1 -1
- package/dist/{jinja-C8xQEEYN.js → jinja-Bwrf5aV2.js} +1 -1
- package/dist/{jison-CShmv6Fb.js → jison-C6eal2rW.js} +1 -1
- package/dist/{jison-CyKFq-6a.js → jison-Td0S7BdY.js} +1 -1
- package/dist/{json-Df3TJ3vS.js → json-BE9zjWXC.js} +1 -1
- package/dist/{jsx-CfQ2JFaq.js → jsx-Ba8CJaAV.js} +1 -1
- package/dist/{jsx-D0xGKDLn.js → jsx-DCFvZzWu.js} +1 -1
- package/dist/{julia-BMAFK3Gd.js → julia-Bm175Gof.js} +3 -3
- package/dist/{julia-BN-I8ZOK.js → julia-Bunkrw5e.js} +4 -4
- package/dist/{just-YBnaWXEe.js → just-1Pxadbli.js} +5 -5
- package/dist/{latex-C_OKc6Tr.js → latex-_x2UAXwa.js} +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/{lib-BeKETz9d.js → lib-_PLIHaUp.js} +623 -633
- package/dist/{liquid-BK9PRBL0.js → liquid-kYbXB26r.js} +4 -4
- package/dist/{lua-BLio8ECy.js → lua-CaVsjDyr.js} +2 -2
- package/dist/main.js +153 -152
- package/dist/{markdown-D3ExE6yF.js → markdown-BzQfFDNF.js} +2608 -2632
- package/dist/{marko-Fde_uU3F.js → marko-B5ZroO9K.js} +3 -3
- package/dist/{marko-DYmCev7q.js → marko-D0_WatvF.js} +3 -3
- package/dist/{mdc-wawAspAJ.js → mdc-Bv4e6tBf.js} +2 -2
- package/dist/{mdc-D7QSJBKx.js → mdc-Dh_sTTi8.js} +1 -1
- package/dist/mermaid-GHXKKRXX-B2aW3mwU.js +3 -0
- package/dist/metadata/oauth-providers.d.ts.map +1 -1
- package/dist/metadata/toolkit-icons.d.ts.map +1 -1
- package/dist/metadata/toolkit-icons.js +95 -93
- package/dist/metadata/toolkits.d.ts.map +1 -1
- package/dist/metadata/toolkits.js +13 -0
- package/dist/{nginx-WcmIS9lz.js → nginx-DKKP1Jsz.js} +1 -1
- package/dist/{nim-C_JBe3PW.js → nim-BeBji0Kd.js} +6 -6
- package/dist/owner-CyZnQOKt.js +6 -0
- package/dist/{perl-DxzDgnFP.js → perl-d6FT-kBo.js} +5 -5
- package/dist/{php-h4fQX9du.js → php-5ErYmDX1.js} +5 -5
- package/dist/{php-BslXz14x.js → php-DrB8vlsq.js} +6 -6
- package/dist/popover-Cne_hQUh.js +489 -0
- package/dist/{popupStateMapping-PdIQcWEz.js → popupStateMapping-C8W76brO.js} +461 -419
- package/dist/{progress-TdXkokPe.js → progress-D71iUjvg.js} +14 -14
- package/dist/{pug-yS-UC2lD.js → pug-DyZNXutA.js} +3 -3
- package/dist/{pug-CxpNRXGa.js → pug-pOLqHjih.js} +3 -3
- package/dist/{qml-tenACNq4.js → qml-Dox9P6il.js} +1 -1
- package/dist/{r-DdU4yNZO.js → r-CqHzjuOx.js} +1 -1
- package/dist/radio-group-CTqA-p0w.js +333 -0
- package/dist/{razor-D5yYWriQ.js → razor-BJnzh0vV.js} +1 -1
- package/dist/{regexp-Dnzoo8L8.js → regexp-BHMFwNmq.js} +1 -1
- package/dist/{regexp-BusfBBwF.js → regexp-Cr4z7tOG.js} +1 -1
- package/dist/{resizable-DkYW5Uwh.js → resizable-7RrCRLzm.js} +25 -22
- package/dist/resolveAriaLabelledBy-ChNE6KfK.js +15 -0
- package/dist/{rst-C-dkSMvp.js → rst-BBCY8q7E.js} +6 -6
- package/dist/{ruby-7kZgYYwi.js → ruby-B3ETTR3m.js} +12 -12
- package/dist/{safePolygon-CscU2iWL.js → safePolygon-os2F06tc.js} +109 -105
- package/dist/{sas-DtHo0e4p.js → sas-DUv_h98D.js} +1 -1
- package/dist/scroll-area-C0KbhRES.js +588 -0
- package/dist/{scrollEdges-VoRBF4DB.js → scrollEdges-CHZpP0us.js} +2 -2
- package/dist/{scss-bso_k44A.js → scss-CkVrpEfa.js} +2 -2
- package/dist/{scss-DaY16nmX.js → scss-CvRlGoAc.js} +2 -2
- package/dist/select-RvAj5g6e.js +1360 -0
- package/dist/{serializeValue-kHY7UUsW.js → serializeValue-CRwtWeFH.js} +1 -1
- package/dist/{shadowDom-C-4Ejp9R.js → shadowDom-BACsbimN.js} +1 -1
- package/dist/shared-q5mxNamF.js +24 -0
- package/dist/{shellscript-BWxNrzSf.js → shellscript-CxvlkwLY.js} +1 -1
- package/dist/{shellsession-IETTXW5g.js → shellsession-CgzvDd-J.js} +1 -1
- package/dist/{shim-ieZ_MRlN.js → shim-BX-2V17R.js} +6 -7
- package/dist/slider-Bhn1ogwZ.js +827 -0
- package/dist/{soy-33Xu8yiH.js → soy-BsfKKN9o.js} +1 -1
- package/dist/{sql-B432xaB7.js → sql-BHUsfCgB.js} +1 -1
- package/dist/{sql-8d8R_FnS.js → sql-DG63OdWS.js} +1 -1
- package/dist/{stata-B5wF29_Y.js → stata--mbf8UFb.js} +1 -1
- package/dist/{store-Bdrhndby.js → store-C-KXBzZ0.js} +9 -9
- package/dist/{surrealql-DYHeSEsk.js → surrealql-DhODgRt6.js} +1 -1
- package/dist/{svelte-BiN7hc1M.js → svelte-C7x6u-8L.js} +3 -3
- package/dist/{svelte-wsTs0hbr.js → svelte-DycOh1Oc.js} +3 -3
- package/dist/{switch-CP9j-8px.js → switch-D8M0xvzp.js} +65 -65
- package/dist/{tabs-C7JA8G0W.js → tabs-ttkDuwww.js} +181 -181
- package/dist/{templ-DEwqY_Qt.js → templ-MSt5oh4r.js} +2 -2
- package/dist/{tex-Bi7DoImG.js → tex-CVgVV9NK.js} +1 -1
- package/dist/toggle-group-CL_MBwuU.js +96 -0
- package/dist/{tooltip-34vRSwJG.js → tooltip-ZIywOFGf.js} +210 -196
- package/dist/{ts-tags-BK3ScQNp.js → ts-tags-Ck_QbMh4.js} +7 -7
- package/dist/{ts-tags-DOmIyh9G.js → ts-tags-DQKwVH4e.js} +7 -7
- package/dist/{tsx-D2IQdrsN.js → tsx-BfWxCQIa.js} +1 -1
- package/dist/{tsx-oo1y-gXD.js → tsx-DH8_xVXA.js} +1 -1
- package/dist/{twig-DxRYLs_L.js → twig-nd7fXiJI.js} +5 -5
- package/dist/{typescript-CWrXW5hv.js → typescript-Btp0Nz7Q.js} +1 -1
- package/dist/{typescript-C40nYMtR.js → typescript-CT-dRuB-.js} +1 -1
- package/dist/{ui-BaLLCKkd.js → ui-CttBuHXi.js} +2 -2
- package/dist/{useAnchoredPopupScrollLock-C8wRjuy0.js → useAnchoredPopupScrollLock-a2b_Frjv.js} +4 -4
- package/dist/{useAnimationFrame-xwbX87TY.js → useAnimationFrame-jkCXMP_8.js} +3 -3
- package/dist/{useAriaLabelledBy-DKl6aNOD.js → useAriaLabelledBy-WyUZP7Yf.js} +3 -3
- package/dist/{useBaseUiId-DOm5ACje.js → useBaseUiId-voePHgyX.js} +3 -3
- package/dist/{useButton-AXffhTAZ.js → useButton-DjF6Owsn.js} +7 -7
- package/dist/{useCollapsiblePanel-B7ERXY1c.js → useCollapsiblePanel-B6XZh6zH.js} +27 -24
- package/dist/{useCompositeItem-DA_RDTEI.js → useCompositeItem-JoGwOIGJ.js} +6 -11
- package/dist/{useCompositeListItem-xM6vOR9-.js → useCompositeListItem-C8B8UyMD.js} +5 -5
- package/dist/{useControlled-ZBScq72P.js → useControlled-Bu1mahWG.js} +2 -2
- package/dist/useFocus-DwJfNYN6.js +98 -0
- package/dist/{useIsoLayoutEffect-CKOv1bV_.js → useIsoLayoutEffect-4LGv3HzC.js} +1 -1
- package/dist/{useLabelableId-Dgoo7-Ly.js → useLabelableId-CC2YaILf.js} +6 -6
- package/dist/{useOnMount-Dirf6DNj.js → useOnMount-Chlmm7JB.js} +1 -1
- package/dist/{useOpenChangeComplete-DjMFUwhi.js → useOpenChangeComplete-Bs6gnxd9.js} +8 -8
- package/dist/useOpenInteractionType-DQhvPqO3.js +611 -0
- package/dist/{usePositioner-D65mUNMo.js → usePositioner-DkeyI5Le.js} +152 -152
- package/dist/useRender-D_s7850Q.js +7 -0
- package/dist/{useRenderElement-CmuWsiNa.js → useRenderElement-BToElZ97.js} +13 -13
- package/dist/{useStableCallback-CqEVb76s.js → useStableCallback-CrM0Nb2q.js} +3 -3
- package/dist/{useTimeout-B1x6NSZb.js → useTimeout-B0afjWAz.js} +3 -3
- package/dist/useTriggerFocusGuards-Qi8iK-AK.js +37 -0
- package/dist/{useValueAsRef-CCU3eUYq.js → useValueAsRef-CfO5zn2c.js} +3 -3
- package/dist/useValueChanged-26zHg3aX.js +15 -0
- package/dist/valueToPercent-BBx6BqbS.js +29 -0
- package/dist/{virtualized-grid-BQNJg029.js → virtualized-grid-DLNjqTNm.js} +16 -7
- package/dist/{visuallyHidden-CEAV1xeA.js → visuallyHidden-Cq5CW65k.js} +1 -1
- package/dist/{vue-COUaRKLt.js → vue-BMjk7Gaz.js} +5 -5
- package/dist/{vue-BEPn_TF_.js → vue-BoZyu9mR.js} +6 -6
- package/dist/{vue-html-CEiB3REn.js → vue-html-Dyr-sgcn.js} +1 -1
- package/dist/{vue-html-DjKFzwWo.js → vue-html-Fc3KYSrO.js} +1 -1
- package/dist/{vue-vine-D0Lpd94a.js → vue-vine-B-mxBKB2.js} +3 -3
- package/dist/{vue-vine-D6cSZo1M.js → vue-vine-BDclOuCR.js} +3 -3
- package/dist/{web-DF40pCMx.js → web-CqfgwsJY.js} +43 -43
- package/dist/{xml-DRTU1nx4.js → xml-CSo_-m7_.js} +2 -2
- package/dist/{xml-DL5p3-50.js → xml-tkp62giI.js} +2 -2
- package/dist/{xsl-3eu75y43.js → xsl-Dmc5gKQo.js} +1 -1
- package/dist/{yaml-6pzV2NiB.js → yaml-9hw4TgNw.js} +1 -1
- package/package.json +30 -30
- package/dist/CompositeRoot-BIh8l7ys.js +0 -179
- package/dist/DialogRoot-eVsH835b.js +0 -9
- package/dist/DialogTrigger-BuKadcdL.js +0 -379
- package/dist/FormContext-4NSsO4w6.js +0 -17
- package/dist/Toggle-CyMSF-Z7.js +0 -70
- package/dist/accordion-D-o5VBR2.js +0 -374
- package/dist/checkbox-CfF6tabe.js +0 -270
- package/dist/composite-HOje5ugx.js +0 -276
- package/dist/constants-VB9bsA8p.js +0 -4
- package/dist/detectBrowser-FBYSu3xM.js +0 -32
- package/dist/event-DWcDp5kt.js +0 -24
- package/dist/getPseudoElementBounds-DarjR4tH.js +0 -355
- package/dist/inertValue-C36grUTu.js +0 -7
- package/dist/input-CSc-AfAa.js +0 -91
- package/dist/mermaid-GHXKKRXX-B8Qglwis.js +0 -3
- package/dist/owner-BrzQrszh.js +0 -6
- package/dist/popover-CXSOUeVQ.js +0 -501
- package/dist/radio-group-Cc5ftdVj.js +0 -333
- package/dist/resolveAriaLabelledBy-DR9UHvi-.js +0 -10
- package/dist/scroll-area-53KPfESS.js +0 -559
- package/dist/select-CPTT__cT.js +0 -1363
- package/dist/slider-CN3uEkeD.js +0 -822
- package/dist/toggle-group-CDYMBO0F.js +0 -87
- package/dist/useFocus-DzHCrvH6.js +0 -97
- package/dist/useOpenInteractionType-D-ymktmc.js +0 -612
- package/dist/useRender-B4Oazk_w.js +0 -7
- package/dist/useTriggerFocusGuards-D1QlFlDK.js +0 -37
- package/dist/useValueChanged-j5e75XB6.js +0 -15
- package/dist/valueToPercent-9aZaNeTG.js +0 -24
- /package/dist/{chunk-Dqa2HsxW.js → rolldown-runtime-Dqa2HsxW.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./
|
|
1
|
+
import { n as e, r as t, t as n } from "./rolldown-runtime-Dqa2HsxW.js";
|
|
2
2
|
//#region ../../node_modules/.bun/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js
|
|
3
3
|
function r(e) {
|
|
4
4
|
let t = [], n = String(e || ""), r = n.indexOf(","), i = 0, a = !1;
|
|
@@ -62,93 +62,93 @@ g.prototype.attribute = "", g.prototype.booleanish = !1, g.prototype.boolean = !
|
|
|
62
62
|
//#endregion
|
|
63
63
|
//#region ../../node_modules/.bun/property-information@7.2.0/node_modules/property-information/lib/util/types.js
|
|
64
64
|
var _ = /* @__PURE__ */ e({
|
|
65
|
-
boolean: () =>
|
|
66
|
-
booleanish: () =>
|
|
67
|
-
commaOrSpaceSeparated: () =>
|
|
68
|
-
commaSeparated: () =>
|
|
69
|
-
number: () =>
|
|
70
|
-
overloadedBoolean: () =>
|
|
71
|
-
spaceSeparated: () =>
|
|
72
|
-
}),
|
|
73
|
-
function
|
|
74
|
-
return 2 ** ++
|
|
65
|
+
boolean: () => v,
|
|
66
|
+
booleanish: () => y,
|
|
67
|
+
commaOrSpaceSeparated: () => w,
|
|
68
|
+
commaSeparated: () => C,
|
|
69
|
+
number: () => x,
|
|
70
|
+
overloadedBoolean: () => b,
|
|
71
|
+
spaceSeparated: () => S
|
|
72
|
+
}), ee = 0, v = T(), y = T(), b = T(), x = T(), S = T(), C = T(), w = T();
|
|
73
|
+
function T() {
|
|
74
|
+
return 2 ** ++ee;
|
|
75
75
|
}
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region ../../node_modules/.bun/property-information@7.2.0/node_modules/property-information/lib/util/defined-info.js
|
|
78
|
-
var
|
|
78
|
+
var E = Object.keys(_), te = class extends g {
|
|
79
79
|
constructor(e, t, n, r) {
|
|
80
80
|
let i = -1;
|
|
81
|
-
if (super(e, t),
|
|
82
|
-
let e =
|
|
83
|
-
|
|
81
|
+
if (super(e, t), ne(this, "space", r), typeof n == "number") for (; ++i < E.length;) {
|
|
82
|
+
let e = E[i];
|
|
83
|
+
ne(this, E[i], (n & _[e]) === _[e]);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
|
|
88
|
-
function
|
|
87
|
+
te.prototype.defined = !0;
|
|
88
|
+
function ne(e, t, n) {
|
|
89
89
|
n && (e[t] = n);
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
92
|
//#region ../../node_modules/.bun/property-information@7.2.0/node_modules/property-information/lib/util/create.js
|
|
93
|
-
function
|
|
93
|
+
function D(e) {
|
|
94
94
|
let t = {}, n = {};
|
|
95
95
|
for (let [r, i] of Object.entries(e.properties)) {
|
|
96
|
-
let a = new
|
|
96
|
+
let a = new te(r, e.transform(e.attributes || {}, r), i, e.space);
|
|
97
97
|
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[h(r)] = r, n[h(a.attribute)] = r;
|
|
98
98
|
}
|
|
99
99
|
return new p(t, n, e.space);
|
|
100
100
|
}
|
|
101
101
|
//#endregion
|
|
102
102
|
//#region ../../node_modules/.bun/property-information@7.2.0/node_modules/property-information/lib/aria.js
|
|
103
|
-
var
|
|
103
|
+
var re = D({
|
|
104
104
|
properties: {
|
|
105
105
|
ariaActiveDescendant: null,
|
|
106
|
-
ariaAtomic:
|
|
106
|
+
ariaAtomic: y,
|
|
107
107
|
ariaAutoComplete: null,
|
|
108
|
-
ariaBusy:
|
|
109
|
-
ariaChecked:
|
|
110
|
-
ariaColCount:
|
|
111
|
-
ariaColIndex:
|
|
112
|
-
ariaColSpan:
|
|
113
|
-
ariaControls:
|
|
108
|
+
ariaBusy: y,
|
|
109
|
+
ariaChecked: y,
|
|
110
|
+
ariaColCount: x,
|
|
111
|
+
ariaColIndex: x,
|
|
112
|
+
ariaColSpan: x,
|
|
113
|
+
ariaControls: S,
|
|
114
114
|
ariaCurrent: null,
|
|
115
|
-
ariaDescribedBy:
|
|
115
|
+
ariaDescribedBy: S,
|
|
116
116
|
ariaDetails: null,
|
|
117
|
-
ariaDisabled:
|
|
118
|
-
ariaDropEffect:
|
|
117
|
+
ariaDisabled: y,
|
|
118
|
+
ariaDropEffect: S,
|
|
119
119
|
ariaErrorMessage: null,
|
|
120
|
-
ariaExpanded:
|
|
121
|
-
ariaFlowTo:
|
|
122
|
-
ariaGrabbed:
|
|
120
|
+
ariaExpanded: y,
|
|
121
|
+
ariaFlowTo: S,
|
|
122
|
+
ariaGrabbed: y,
|
|
123
123
|
ariaHasPopup: null,
|
|
124
|
-
ariaHidden:
|
|
124
|
+
ariaHidden: y,
|
|
125
125
|
ariaInvalid: null,
|
|
126
126
|
ariaKeyShortcuts: null,
|
|
127
127
|
ariaLabel: null,
|
|
128
|
-
ariaLabelledBy:
|
|
129
|
-
ariaLevel:
|
|
128
|
+
ariaLabelledBy: S,
|
|
129
|
+
ariaLevel: x,
|
|
130
130
|
ariaLive: null,
|
|
131
|
-
ariaModal:
|
|
132
|
-
ariaMultiLine:
|
|
133
|
-
ariaMultiSelectable:
|
|
131
|
+
ariaModal: y,
|
|
132
|
+
ariaMultiLine: y,
|
|
133
|
+
ariaMultiSelectable: y,
|
|
134
134
|
ariaOrientation: null,
|
|
135
|
-
ariaOwns:
|
|
135
|
+
ariaOwns: S,
|
|
136
136
|
ariaPlaceholder: null,
|
|
137
|
-
ariaPosInSet:
|
|
138
|
-
ariaPressed:
|
|
139
|
-
ariaReadOnly:
|
|
137
|
+
ariaPosInSet: x,
|
|
138
|
+
ariaPressed: y,
|
|
139
|
+
ariaReadOnly: y,
|
|
140
140
|
ariaRelevant: null,
|
|
141
|
-
ariaRequired:
|
|
142
|
-
ariaRoleDescription:
|
|
143
|
-
ariaRowCount:
|
|
144
|
-
ariaRowIndex:
|
|
145
|
-
ariaRowSpan:
|
|
146
|
-
ariaSelected:
|
|
147
|
-
ariaSetSize:
|
|
141
|
+
ariaRequired: y,
|
|
142
|
+
ariaRoleDescription: S,
|
|
143
|
+
ariaRowCount: x,
|
|
144
|
+
ariaRowIndex: x,
|
|
145
|
+
ariaRowSpan: x,
|
|
146
|
+
ariaSelected: y,
|
|
147
|
+
ariaSetSize: x,
|
|
148
148
|
ariaSort: null,
|
|
149
|
-
ariaValueMax:
|
|
150
|
-
ariaValueMin:
|
|
151
|
-
ariaValueNow:
|
|
149
|
+
ariaValueMax: x,
|
|
150
|
+
ariaValueMin: x,
|
|
151
|
+
ariaValueNow: x,
|
|
152
152
|
ariaValueText: null,
|
|
153
153
|
role: null
|
|
154
154
|
},
|
|
@@ -158,17 +158,17 @@ var ne = O({
|
|
|
158
158
|
});
|
|
159
159
|
//#endregion
|
|
160
160
|
//#region ../../node_modules/.bun/property-information@7.2.0/node_modules/property-information/lib/util/case-sensitive-transform.js
|
|
161
|
-
function
|
|
161
|
+
function ie(e, t) {
|
|
162
162
|
return t in e ? e[t] : t;
|
|
163
163
|
}
|
|
164
164
|
//#endregion
|
|
165
165
|
//#region ../../node_modules/.bun/property-information@7.2.0/node_modules/property-information/lib/util/case-insensitive-transform.js
|
|
166
|
-
function
|
|
167
|
-
return
|
|
166
|
+
function ae(e, t) {
|
|
167
|
+
return ie(e, t.toLowerCase());
|
|
168
168
|
}
|
|
169
169
|
//#endregion
|
|
170
170
|
//#region ../../node_modules/.bun/property-information@7.2.0/node_modules/property-information/lib/html.js
|
|
171
|
-
var
|
|
171
|
+
var oe = D({
|
|
172
172
|
attributes: {
|
|
173
173
|
acceptcharset: "accept-charset",
|
|
174
174
|
classname: "class",
|
|
@@ -183,50 +183,50 @@ var ae = O({
|
|
|
183
183
|
],
|
|
184
184
|
properties: {
|
|
185
185
|
abbr: null,
|
|
186
|
-
accept:
|
|
187
|
-
acceptCharset:
|
|
188
|
-
accessKey:
|
|
186
|
+
accept: C,
|
|
187
|
+
acceptCharset: S,
|
|
188
|
+
accessKey: S,
|
|
189
189
|
action: null,
|
|
190
190
|
allow: null,
|
|
191
|
-
allowFullScreen:
|
|
192
|
-
allowPaymentRequest:
|
|
193
|
-
allowUserMedia:
|
|
194
|
-
alpha:
|
|
191
|
+
allowFullScreen: v,
|
|
192
|
+
allowPaymentRequest: v,
|
|
193
|
+
allowUserMedia: v,
|
|
194
|
+
alpha: v,
|
|
195
195
|
alt: null,
|
|
196
196
|
as: null,
|
|
197
|
-
async:
|
|
197
|
+
async: v,
|
|
198
198
|
autoCapitalize: null,
|
|
199
|
-
autoComplete:
|
|
200
|
-
autoFocus:
|
|
201
|
-
autoPlay:
|
|
202
|
-
blocking:
|
|
199
|
+
autoComplete: S,
|
|
200
|
+
autoFocus: v,
|
|
201
|
+
autoPlay: v,
|
|
202
|
+
blocking: S,
|
|
203
203
|
capture: null,
|
|
204
204
|
charSet: null,
|
|
205
|
-
checked:
|
|
205
|
+
checked: v,
|
|
206
206
|
cite: null,
|
|
207
|
-
className:
|
|
207
|
+
className: S,
|
|
208
208
|
closedBy: null,
|
|
209
209
|
colorSpace: null,
|
|
210
|
-
cols:
|
|
211
|
-
colSpan:
|
|
210
|
+
cols: x,
|
|
211
|
+
colSpan: x,
|
|
212
212
|
command: null,
|
|
213
213
|
commandFor: null,
|
|
214
214
|
content: null,
|
|
215
|
-
contentEditable:
|
|
216
|
-
controls:
|
|
217
|
-
controlsList:
|
|
218
|
-
coords:
|
|
215
|
+
contentEditable: y,
|
|
216
|
+
controls: v,
|
|
217
|
+
controlsList: S,
|
|
218
|
+
coords: x | C,
|
|
219
219
|
crossOrigin: null,
|
|
220
220
|
data: null,
|
|
221
221
|
dateTime: null,
|
|
222
222
|
decoding: null,
|
|
223
|
-
default:
|
|
224
|
-
defer:
|
|
223
|
+
default: v,
|
|
224
|
+
defer: v,
|
|
225
225
|
dir: null,
|
|
226
226
|
dirName: null,
|
|
227
|
-
disabled:
|
|
228
|
-
download:
|
|
229
|
-
draggable:
|
|
227
|
+
disabled: v,
|
|
228
|
+
download: b,
|
|
229
|
+
draggable: y,
|
|
230
230
|
encType: null,
|
|
231
231
|
enterKeyHint: null,
|
|
232
232
|
fetchPriority: null,
|
|
@@ -234,50 +234,50 @@ var ae = O({
|
|
|
234
234
|
formAction: null,
|
|
235
235
|
formEncType: null,
|
|
236
236
|
formMethod: null,
|
|
237
|
-
formNoValidate:
|
|
237
|
+
formNoValidate: v,
|
|
238
238
|
formTarget: null,
|
|
239
|
-
headers:
|
|
240
|
-
height:
|
|
241
|
-
hidden:
|
|
242
|
-
high:
|
|
239
|
+
headers: S,
|
|
240
|
+
height: x,
|
|
241
|
+
hidden: b,
|
|
242
|
+
high: x,
|
|
243
243
|
href: null,
|
|
244
244
|
hrefLang: null,
|
|
245
|
-
htmlFor:
|
|
246
|
-
httpEquiv:
|
|
245
|
+
htmlFor: S,
|
|
246
|
+
httpEquiv: S,
|
|
247
247
|
id: null,
|
|
248
248
|
imageSizes: null,
|
|
249
249
|
imageSrcSet: null,
|
|
250
|
-
inert:
|
|
250
|
+
inert: v,
|
|
251
251
|
inputMode: null,
|
|
252
252
|
integrity: null,
|
|
253
253
|
is: null,
|
|
254
|
-
isMap:
|
|
254
|
+
isMap: v,
|
|
255
255
|
itemId: null,
|
|
256
|
-
itemProp:
|
|
257
|
-
itemRef:
|
|
258
|
-
itemScope:
|
|
259
|
-
itemType:
|
|
256
|
+
itemProp: S,
|
|
257
|
+
itemRef: S,
|
|
258
|
+
itemScope: v,
|
|
259
|
+
itemType: S,
|
|
260
260
|
kind: null,
|
|
261
261
|
label: null,
|
|
262
262
|
lang: null,
|
|
263
263
|
language: null,
|
|
264
264
|
list: null,
|
|
265
265
|
loading: null,
|
|
266
|
-
loop:
|
|
267
|
-
low:
|
|
266
|
+
loop: v,
|
|
267
|
+
low: x,
|
|
268
268
|
manifest: null,
|
|
269
269
|
max: null,
|
|
270
|
-
maxLength:
|
|
270
|
+
maxLength: x,
|
|
271
271
|
media: null,
|
|
272
272
|
method: null,
|
|
273
273
|
min: null,
|
|
274
|
-
minLength:
|
|
275
|
-
multiple:
|
|
276
|
-
muted:
|
|
274
|
+
minLength: x,
|
|
275
|
+
multiple: v,
|
|
276
|
+
muted: v,
|
|
277
277
|
name: null,
|
|
278
278
|
nonce: null,
|
|
279
|
-
noModule:
|
|
280
|
-
noValidate:
|
|
279
|
+
noModule: v,
|
|
280
|
+
noValidate: v,
|
|
281
281
|
onAbort: null,
|
|
282
282
|
onAfterPrint: null,
|
|
283
283
|
onAuxClick: null,
|
|
@@ -366,67 +366,67 @@ var ae = O({
|
|
|
366
366
|
onVolumeChange: null,
|
|
367
367
|
onWaiting: null,
|
|
368
368
|
onWheel: null,
|
|
369
|
-
open:
|
|
370
|
-
optimum:
|
|
369
|
+
open: v,
|
|
370
|
+
optimum: x,
|
|
371
371
|
pattern: null,
|
|
372
|
-
ping:
|
|
372
|
+
ping: S,
|
|
373
373
|
placeholder: null,
|
|
374
|
-
playsInline:
|
|
374
|
+
playsInline: v,
|
|
375
375
|
popover: null,
|
|
376
376
|
popoverTarget: null,
|
|
377
377
|
popoverTargetAction: null,
|
|
378
378
|
poster: null,
|
|
379
379
|
preload: null,
|
|
380
|
-
readOnly:
|
|
380
|
+
readOnly: v,
|
|
381
381
|
referrerPolicy: null,
|
|
382
|
-
rel:
|
|
383
|
-
required:
|
|
384
|
-
reversed:
|
|
385
|
-
rows:
|
|
386
|
-
rowSpan:
|
|
387
|
-
sandbox:
|
|
382
|
+
rel: S,
|
|
383
|
+
required: v,
|
|
384
|
+
reversed: v,
|
|
385
|
+
rows: x,
|
|
386
|
+
rowSpan: x,
|
|
387
|
+
sandbox: S,
|
|
388
388
|
scope: null,
|
|
389
|
-
scoped:
|
|
390
|
-
seamless:
|
|
391
|
-
selected:
|
|
392
|
-
shadowRootClonable:
|
|
393
|
-
shadowRootCustomElementRegistry:
|
|
394
|
-
shadowRootDelegatesFocus:
|
|
389
|
+
scoped: v,
|
|
390
|
+
seamless: v,
|
|
391
|
+
selected: v,
|
|
392
|
+
shadowRootClonable: v,
|
|
393
|
+
shadowRootCustomElementRegistry: v,
|
|
394
|
+
shadowRootDelegatesFocus: v,
|
|
395
395
|
shadowRootMode: null,
|
|
396
|
-
shadowRootSerializable:
|
|
396
|
+
shadowRootSerializable: v,
|
|
397
397
|
shape: null,
|
|
398
|
-
size:
|
|
398
|
+
size: x,
|
|
399
399
|
sizes: null,
|
|
400
400
|
slot: null,
|
|
401
|
-
span:
|
|
402
|
-
spellCheck:
|
|
401
|
+
span: x,
|
|
402
|
+
spellCheck: y,
|
|
403
403
|
src: null,
|
|
404
404
|
srcDoc: null,
|
|
405
405
|
srcLang: null,
|
|
406
406
|
srcSet: null,
|
|
407
|
-
start:
|
|
407
|
+
start: x,
|
|
408
408
|
step: null,
|
|
409
409
|
style: null,
|
|
410
|
-
tabIndex:
|
|
410
|
+
tabIndex: x,
|
|
411
411
|
target: null,
|
|
412
412
|
title: null,
|
|
413
413
|
translate: null,
|
|
414
414
|
type: null,
|
|
415
|
-
typeMustMatch:
|
|
415
|
+
typeMustMatch: v,
|
|
416
416
|
useMap: null,
|
|
417
|
-
value:
|
|
418
|
-
width:
|
|
417
|
+
value: y,
|
|
418
|
+
width: x,
|
|
419
419
|
wrap: null,
|
|
420
420
|
writingSuggestions: null,
|
|
421
421
|
align: null,
|
|
422
422
|
aLink: null,
|
|
423
|
-
archive:
|
|
423
|
+
archive: S,
|
|
424
424
|
axis: null,
|
|
425
425
|
background: null,
|
|
426
426
|
bgColor: null,
|
|
427
|
-
border:
|
|
427
|
+
border: x,
|
|
428
428
|
borderColor: null,
|
|
429
|
-
bottomMargin:
|
|
429
|
+
bottomMargin: x,
|
|
430
430
|
cellPadding: null,
|
|
431
431
|
cellSpacing: null,
|
|
432
432
|
char: null,
|
|
@@ -437,57 +437,57 @@ var ae = O({
|
|
|
437
437
|
codeBase: null,
|
|
438
438
|
codeType: null,
|
|
439
439
|
color: null,
|
|
440
|
-
compact:
|
|
441
|
-
declare:
|
|
440
|
+
compact: v,
|
|
441
|
+
declare: v,
|
|
442
442
|
event: null,
|
|
443
443
|
face: null,
|
|
444
444
|
frame: null,
|
|
445
445
|
frameBorder: null,
|
|
446
|
-
hSpace:
|
|
447
|
-
leftMargin:
|
|
446
|
+
hSpace: x,
|
|
447
|
+
leftMargin: x,
|
|
448
448
|
link: null,
|
|
449
449
|
longDesc: null,
|
|
450
450
|
lowSrc: null,
|
|
451
|
-
marginHeight:
|
|
452
|
-
marginWidth:
|
|
453
|
-
noResize:
|
|
454
|
-
noHref:
|
|
455
|
-
noShade:
|
|
456
|
-
noWrap:
|
|
451
|
+
marginHeight: x,
|
|
452
|
+
marginWidth: x,
|
|
453
|
+
noResize: v,
|
|
454
|
+
noHref: v,
|
|
455
|
+
noShade: v,
|
|
456
|
+
noWrap: v,
|
|
457
457
|
object: null,
|
|
458
458
|
profile: null,
|
|
459
459
|
prompt: null,
|
|
460
460
|
rev: null,
|
|
461
|
-
rightMargin:
|
|
461
|
+
rightMargin: x,
|
|
462
462
|
rules: null,
|
|
463
463
|
scheme: null,
|
|
464
|
-
scrolling:
|
|
464
|
+
scrolling: y,
|
|
465
465
|
standby: null,
|
|
466
466
|
summary: null,
|
|
467
467
|
text: null,
|
|
468
|
-
topMargin:
|
|
468
|
+
topMargin: x,
|
|
469
469
|
valueType: null,
|
|
470
470
|
version: null,
|
|
471
471
|
vAlign: null,
|
|
472
472
|
vLink: null,
|
|
473
|
-
vSpace:
|
|
473
|
+
vSpace: x,
|
|
474
474
|
allowTransparency: null,
|
|
475
475
|
autoCorrect: null,
|
|
476
476
|
autoSave: null,
|
|
477
|
-
credentialless:
|
|
478
|
-
disablePictureInPicture:
|
|
479
|
-
disableRemotePlayback:
|
|
480
|
-
exportParts:
|
|
481
|
-
part:
|
|
477
|
+
credentialless: v,
|
|
478
|
+
disablePictureInPicture: v,
|
|
479
|
+
disableRemotePlayback: v,
|
|
480
|
+
exportParts: C,
|
|
481
|
+
part: S,
|
|
482
482
|
prefix: null,
|
|
483
483
|
property: null,
|
|
484
|
-
results:
|
|
484
|
+
results: x,
|
|
485
485
|
security: null,
|
|
486
486
|
unselectable: null
|
|
487
487
|
},
|
|
488
488
|
space: "html",
|
|
489
|
-
transform:
|
|
490
|
-
}),
|
|
489
|
+
transform: ae
|
|
490
|
+
}), se = D({
|
|
491
491
|
attributes: {
|
|
492
492
|
accentHeight: "accent-height",
|
|
493
493
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -664,29 +664,29 @@ var ae = O({
|
|
|
664
664
|
timelineBegin: "timelinebegin"
|
|
665
665
|
},
|
|
666
666
|
properties: {
|
|
667
|
-
about:
|
|
668
|
-
accentHeight:
|
|
667
|
+
about: w,
|
|
668
|
+
accentHeight: x,
|
|
669
669
|
accumulate: null,
|
|
670
670
|
additive: null,
|
|
671
671
|
alignmentBaseline: null,
|
|
672
|
-
alphabetic:
|
|
673
|
-
amplitude:
|
|
672
|
+
alphabetic: x,
|
|
673
|
+
amplitude: x,
|
|
674
674
|
arabicForm: null,
|
|
675
|
-
ascent:
|
|
675
|
+
ascent: x,
|
|
676
676
|
attributeName: null,
|
|
677
677
|
attributeType: null,
|
|
678
|
-
azimuth:
|
|
678
|
+
azimuth: x,
|
|
679
679
|
bandwidth: null,
|
|
680
680
|
baselineShift: null,
|
|
681
681
|
baseFrequency: null,
|
|
682
682
|
baseProfile: null,
|
|
683
683
|
bbox: null,
|
|
684
684
|
begin: null,
|
|
685
|
-
bias:
|
|
685
|
+
bias: x,
|
|
686
686
|
by: null,
|
|
687
687
|
calcMode: null,
|
|
688
|
-
capHeight:
|
|
689
|
-
className:
|
|
688
|
+
capHeight: x,
|
|
689
|
+
className: S,
|
|
690
690
|
clip: null,
|
|
691
691
|
clipPath: null,
|
|
692
692
|
clipPathUnits: null,
|
|
@@ -706,26 +706,26 @@ var ae = O({
|
|
|
706
706
|
d: null,
|
|
707
707
|
dataType: null,
|
|
708
708
|
defaultAction: null,
|
|
709
|
-
descent:
|
|
710
|
-
diffuseConstant:
|
|
709
|
+
descent: x,
|
|
710
|
+
diffuseConstant: x,
|
|
711
711
|
direction: null,
|
|
712
712
|
display: null,
|
|
713
713
|
dur: null,
|
|
714
|
-
divisor:
|
|
714
|
+
divisor: x,
|
|
715
715
|
dominantBaseline: null,
|
|
716
|
-
download:
|
|
716
|
+
download: v,
|
|
717
717
|
dx: null,
|
|
718
718
|
dy: null,
|
|
719
719
|
edgeMode: null,
|
|
720
720
|
editable: null,
|
|
721
|
-
elevation:
|
|
721
|
+
elevation: x,
|
|
722
722
|
enableBackground: null,
|
|
723
723
|
end: null,
|
|
724
724
|
event: null,
|
|
725
|
-
exponent:
|
|
725
|
+
exponent: x,
|
|
726
726
|
externalResourcesRequired: null,
|
|
727
727
|
fill: null,
|
|
728
|
-
fillOpacity:
|
|
728
|
+
fillOpacity: x,
|
|
729
729
|
fillRule: null,
|
|
730
730
|
filter: null,
|
|
731
731
|
filterRes: null,
|
|
@@ -746,37 +746,37 @@ var ae = O({
|
|
|
746
746
|
from: null,
|
|
747
747
|
fx: null,
|
|
748
748
|
fy: null,
|
|
749
|
-
g1:
|
|
750
|
-
g2:
|
|
751
|
-
glyphName:
|
|
749
|
+
g1: C,
|
|
750
|
+
g2: C,
|
|
751
|
+
glyphName: C,
|
|
752
752
|
glyphOrientationHorizontal: null,
|
|
753
753
|
glyphOrientationVertical: null,
|
|
754
754
|
glyphRef: null,
|
|
755
755
|
gradientTransform: null,
|
|
756
756
|
gradientUnits: null,
|
|
757
757
|
handler: null,
|
|
758
|
-
hanging:
|
|
758
|
+
hanging: x,
|
|
759
759
|
hatchContentUnits: null,
|
|
760
760
|
hatchUnits: null,
|
|
761
761
|
height: null,
|
|
762
762
|
href: null,
|
|
763
763
|
hrefLang: null,
|
|
764
|
-
horizAdvX:
|
|
765
|
-
horizOriginX:
|
|
766
|
-
horizOriginY:
|
|
764
|
+
horizAdvX: x,
|
|
765
|
+
horizOriginX: x,
|
|
766
|
+
horizOriginY: x,
|
|
767
767
|
id: null,
|
|
768
|
-
ideographic:
|
|
768
|
+
ideographic: x,
|
|
769
769
|
imageRendering: null,
|
|
770
770
|
initialVisibility: null,
|
|
771
771
|
in: null,
|
|
772
772
|
in2: null,
|
|
773
|
-
intercept:
|
|
774
|
-
k:
|
|
775
|
-
k1:
|
|
776
|
-
k2:
|
|
777
|
-
k3:
|
|
778
|
-
k4:
|
|
779
|
-
kernelMatrix:
|
|
773
|
+
intercept: x,
|
|
774
|
+
k: x,
|
|
775
|
+
k1: x,
|
|
776
|
+
k2: x,
|
|
777
|
+
k3: x,
|
|
778
|
+
k4: x,
|
|
779
|
+
kernelMatrix: w,
|
|
780
780
|
kernelUnitLength: null,
|
|
781
781
|
keyPoints: null,
|
|
782
782
|
keySplines: null,
|
|
@@ -786,7 +786,7 @@ var ae = O({
|
|
|
786
786
|
lengthAdjust: null,
|
|
787
787
|
letterSpacing: null,
|
|
788
788
|
lightingColor: null,
|
|
789
|
-
limitingConeAngle:
|
|
789
|
+
limitingConeAngle: x,
|
|
790
790
|
local: null,
|
|
791
791
|
markerEnd: null,
|
|
792
792
|
markerMid: null,
|
|
@@ -803,7 +803,7 @@ var ae = O({
|
|
|
803
803
|
media: null,
|
|
804
804
|
mediaCharacterEncoding: null,
|
|
805
805
|
mediaContentEncodings: null,
|
|
806
|
-
mediaSize:
|
|
806
|
+
mediaSize: x,
|
|
807
807
|
mediaTime: null,
|
|
808
808
|
method: null,
|
|
809
809
|
min: null,
|
|
@@ -909,43 +909,43 @@ var ae = O({
|
|
|
909
909
|
origin: null,
|
|
910
910
|
overflow: null,
|
|
911
911
|
overlay: null,
|
|
912
|
-
overlinePosition:
|
|
913
|
-
overlineThickness:
|
|
912
|
+
overlinePosition: x,
|
|
913
|
+
overlineThickness: x,
|
|
914
914
|
paintOrder: null,
|
|
915
915
|
panose1: null,
|
|
916
916
|
path: null,
|
|
917
|
-
pathLength:
|
|
917
|
+
pathLength: x,
|
|
918
918
|
patternContentUnits: null,
|
|
919
919
|
patternTransform: null,
|
|
920
920
|
patternUnits: null,
|
|
921
921
|
phase: null,
|
|
922
|
-
ping:
|
|
922
|
+
ping: S,
|
|
923
923
|
pitch: null,
|
|
924
924
|
playbackOrder: null,
|
|
925
925
|
pointerEvents: null,
|
|
926
926
|
points: null,
|
|
927
|
-
pointsAtX:
|
|
928
|
-
pointsAtY:
|
|
929
|
-
pointsAtZ:
|
|
927
|
+
pointsAtX: x,
|
|
928
|
+
pointsAtY: x,
|
|
929
|
+
pointsAtZ: x,
|
|
930
930
|
preserveAlpha: null,
|
|
931
931
|
preserveAspectRatio: null,
|
|
932
932
|
primitiveUnits: null,
|
|
933
933
|
propagate: null,
|
|
934
|
-
property:
|
|
934
|
+
property: w,
|
|
935
935
|
r: null,
|
|
936
936
|
radius: null,
|
|
937
937
|
referrerPolicy: null,
|
|
938
938
|
refX: null,
|
|
939
939
|
refY: null,
|
|
940
|
-
rel:
|
|
941
|
-
rev:
|
|
940
|
+
rel: w,
|
|
941
|
+
rev: w,
|
|
942
942
|
renderingIntent: null,
|
|
943
943
|
repeatCount: null,
|
|
944
944
|
repeatDur: null,
|
|
945
|
-
requiredExtensions:
|
|
946
|
-
requiredFeatures:
|
|
947
|
-
requiredFonts:
|
|
948
|
-
requiredFormats:
|
|
945
|
+
requiredExtensions: w,
|
|
946
|
+
requiredFeatures: w,
|
|
947
|
+
requiredFonts: w,
|
|
948
|
+
requiredFormats: w,
|
|
949
949
|
resource: null,
|
|
950
950
|
restart: null,
|
|
951
951
|
result: null,
|
|
@@ -958,8 +958,8 @@ var ae = O({
|
|
|
958
958
|
side: null,
|
|
959
959
|
slope: null,
|
|
960
960
|
snapshotTime: null,
|
|
961
|
-
specularConstant:
|
|
962
|
-
specularExponent:
|
|
961
|
+
specularConstant: x,
|
|
962
|
+
specularExponent: x,
|
|
963
963
|
spreadMethod: null,
|
|
964
964
|
spacing: null,
|
|
965
965
|
startOffset: null,
|
|
@@ -969,30 +969,30 @@ var ae = O({
|
|
|
969
969
|
stitchTiles: null,
|
|
970
970
|
stopColor: null,
|
|
971
971
|
stopOpacity: null,
|
|
972
|
-
strikethroughPosition:
|
|
973
|
-
strikethroughThickness:
|
|
972
|
+
strikethroughPosition: x,
|
|
973
|
+
strikethroughThickness: x,
|
|
974
974
|
string: null,
|
|
975
975
|
stroke: null,
|
|
976
|
-
strokeDashArray:
|
|
976
|
+
strokeDashArray: w,
|
|
977
977
|
strokeDashOffset: null,
|
|
978
978
|
strokeLineCap: null,
|
|
979
979
|
strokeLineJoin: null,
|
|
980
|
-
strokeMiterLimit:
|
|
981
|
-
strokeOpacity:
|
|
980
|
+
strokeMiterLimit: x,
|
|
981
|
+
strokeOpacity: x,
|
|
982
982
|
strokeWidth: null,
|
|
983
983
|
style: null,
|
|
984
|
-
surfaceScale:
|
|
984
|
+
surfaceScale: x,
|
|
985
985
|
syncBehavior: null,
|
|
986
986
|
syncBehaviorDefault: null,
|
|
987
987
|
syncMaster: null,
|
|
988
988
|
syncTolerance: null,
|
|
989
989
|
syncToleranceDefault: null,
|
|
990
|
-
systemLanguage:
|
|
991
|
-
tabIndex:
|
|
990
|
+
systemLanguage: w,
|
|
991
|
+
tabIndex: x,
|
|
992
992
|
tableValues: null,
|
|
993
993
|
target: null,
|
|
994
|
-
targetX:
|
|
995
|
-
targetY:
|
|
994
|
+
targetX: x,
|
|
995
|
+
targetY: x,
|
|
996
996
|
textAnchor: null,
|
|
997
997
|
textDecoration: null,
|
|
998
998
|
textRendering: null,
|
|
@@ -1001,28 +1001,28 @@ var ae = O({
|
|
|
1001
1001
|
title: null,
|
|
1002
1002
|
transformBehavior: null,
|
|
1003
1003
|
type: null,
|
|
1004
|
-
typeOf:
|
|
1004
|
+
typeOf: w,
|
|
1005
1005
|
to: null,
|
|
1006
1006
|
transform: null,
|
|
1007
1007
|
transformOrigin: null,
|
|
1008
1008
|
u1: null,
|
|
1009
1009
|
u2: null,
|
|
1010
|
-
underlinePosition:
|
|
1011
|
-
underlineThickness:
|
|
1010
|
+
underlinePosition: x,
|
|
1011
|
+
underlineThickness: x,
|
|
1012
1012
|
unicode: null,
|
|
1013
1013
|
unicodeBidi: null,
|
|
1014
1014
|
unicodeRange: null,
|
|
1015
|
-
unitsPerEm:
|
|
1015
|
+
unitsPerEm: x,
|
|
1016
1016
|
values: null,
|
|
1017
|
-
vAlphabetic:
|
|
1018
|
-
vMathematical:
|
|
1017
|
+
vAlphabetic: x,
|
|
1018
|
+
vMathematical: x,
|
|
1019
1019
|
vectorEffect: null,
|
|
1020
|
-
vHanging:
|
|
1021
|
-
vIdeographic:
|
|
1020
|
+
vHanging: x,
|
|
1021
|
+
vIdeographic: x,
|
|
1022
1022
|
version: null,
|
|
1023
|
-
vertAdvY:
|
|
1024
|
-
vertOriginX:
|
|
1025
|
-
vertOriginY:
|
|
1023
|
+
vertAdvY: x,
|
|
1024
|
+
vertOriginX: x,
|
|
1025
|
+
vertOriginY: x,
|
|
1026
1026
|
viewBox: null,
|
|
1027
1027
|
viewTarget: null,
|
|
1028
1028
|
visibility: null,
|
|
@@ -1034,7 +1034,7 @@ var ae = O({
|
|
|
1034
1034
|
x1: null,
|
|
1035
1035
|
x2: null,
|
|
1036
1036
|
xChannelSelector: null,
|
|
1037
|
-
xHeight:
|
|
1037
|
+
xHeight: x,
|
|
1038
1038
|
y: null,
|
|
1039
1039
|
y1: null,
|
|
1040
1040
|
y2: null,
|
|
@@ -1043,8 +1043,8 @@ var ae = O({
|
|
|
1043
1043
|
zoomAndPan: null
|
|
1044
1044
|
},
|
|
1045
1045
|
space: "svg",
|
|
1046
|
-
transform:
|
|
1047
|
-
}),
|
|
1046
|
+
transform: ie
|
|
1047
|
+
}), ce = D({
|
|
1048
1048
|
properties: {
|
|
1049
1049
|
xLinkActuate: null,
|
|
1050
1050
|
xLinkArcRole: null,
|
|
@@ -1058,15 +1058,15 @@ var ae = O({
|
|
|
1058
1058
|
transform(e, t) {
|
|
1059
1059
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
1060
1060
|
}
|
|
1061
|
-
}),
|
|
1061
|
+
}), le = D({
|
|
1062
1062
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1063
1063
|
properties: {
|
|
1064
1064
|
xmlnsXLink: null,
|
|
1065
1065
|
xmlns: null
|
|
1066
1066
|
},
|
|
1067
1067
|
space: "xmlns",
|
|
1068
|
-
transform:
|
|
1069
|
-
}),
|
|
1068
|
+
transform: ae
|
|
1069
|
+
}), ue = D({
|
|
1070
1070
|
properties: {
|
|
1071
1071
|
xmlBase: null,
|
|
1072
1072
|
xmlLang: null,
|
|
@@ -1076,7 +1076,7 @@ var ae = O({
|
|
|
1076
1076
|
transform(e, t) {
|
|
1077
1077
|
return "xml:" + t.slice(3).toLowerCase();
|
|
1078
1078
|
}
|
|
1079
|
-
}),
|
|
1079
|
+
}), de = {
|
|
1080
1080
|
classId: "classID",
|
|
1081
1081
|
dataType: "datatype",
|
|
1082
1082
|
itemId: "itemID",
|
|
@@ -1094,147 +1094,147 @@ var ae = O({
|
|
|
1094
1094
|
xLinkTitle: "xlinkTitle",
|
|
1095
1095
|
xLinkType: "xlinkType",
|
|
1096
1096
|
xmlnsXLink: "xmlnsXlink"
|
|
1097
|
-
},
|
|
1098
|
-
function
|
|
1097
|
+
}, fe = /[A-Z]/g, pe = /-[a-z]/g, me = /^data[-\w.:]+$/i;
|
|
1098
|
+
function he(e, t) {
|
|
1099
1099
|
let n = h(t), r = t, i = g;
|
|
1100
1100
|
if (n in e.normal) return e.property[e.normal[n]];
|
|
1101
|
-
if (n.length > 4 && n.slice(0, 4) === "data" &&
|
|
1101
|
+
if (n.length > 4 && n.slice(0, 4) === "data" && me.test(t)) {
|
|
1102
1102
|
if (t.charAt(4) === "-") {
|
|
1103
|
-
let e = t.slice(5).replace(
|
|
1103
|
+
let e = t.slice(5).replace(pe, _e);
|
|
1104
1104
|
r = "data" + e.charAt(0).toUpperCase() + e.slice(1);
|
|
1105
1105
|
} else {
|
|
1106
1106
|
let e = t.slice(4);
|
|
1107
|
-
if (!
|
|
1108
|
-
let n = e.replace(
|
|
1107
|
+
if (!pe.test(e)) {
|
|
1108
|
+
let n = e.replace(fe, ge);
|
|
1109
1109
|
n.charAt(0) !== "-" && (n = "-" + n), t = "data" + n;
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
|
-
i =
|
|
1112
|
+
i = te;
|
|
1113
1113
|
}
|
|
1114
1114
|
return new i(r, t);
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function ge(e) {
|
|
1117
1117
|
return "-" + e.toLowerCase();
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function _e(e) {
|
|
1120
1120
|
return e.charAt(1).toUpperCase();
|
|
1121
1121
|
}
|
|
1122
1122
|
//#endregion
|
|
1123
1123
|
//#region ../../node_modules/.bun/property-information@7.2.0/node_modules/property-information/index.js
|
|
1124
|
-
var
|
|
1125
|
-
|
|
1126
|
-
ae,
|
|
1127
|
-
se,
|
|
1128
|
-
ce,
|
|
1129
|
-
le
|
|
1130
|
-
], "html"), k = m([
|
|
1131
|
-
ne,
|
|
1124
|
+
var ve = m([
|
|
1125
|
+
re,
|
|
1132
1126
|
oe,
|
|
1127
|
+
ce,
|
|
1128
|
+
le,
|
|
1129
|
+
ue
|
|
1130
|
+
], "html"), O = m([
|
|
1131
|
+
re,
|
|
1133
1132
|
se,
|
|
1134
1133
|
ce,
|
|
1135
|
-
le
|
|
1134
|
+
le,
|
|
1135
|
+
ue
|
|
1136
1136
|
], "svg");
|
|
1137
1137
|
//#endregion
|
|
1138
1138
|
//#region ../../node_modules/.bun/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js
|
|
1139
|
-
function
|
|
1139
|
+
function ye(e) {
|
|
1140
1140
|
let t = String(e || "").trim();
|
|
1141
1141
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function be(e) {
|
|
1144
1144
|
return e.join(" ").trim();
|
|
1145
1145
|
}
|
|
1146
1146
|
//#endregion
|
|
1147
1147
|
//#region ../../node_modules/.bun/inline-style-parser@0.2.7/node_modules/inline-style-parser/cjs/index.js
|
|
1148
|
-
var
|
|
1149
|
-
var n = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, r = /\n/g, i = /^\s*/, a = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, s = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, c = /^[;\s]*/, l = /^\s+|\s+$/g
|
|
1150
|
-
function
|
|
1148
|
+
var xe = /* @__PURE__ */ n(((e, t) => {
|
|
1149
|
+
var n = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, r = /\n/g, i = /^\s*/, a = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, s = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, c = /^[;\s]*/, l = /^\s+|\s+$/g;
|
|
1150
|
+
function u(e, t) {
|
|
1151
1151
|
if (typeof e != "string") throw TypeError("First argument must be a string");
|
|
1152
1152
|
if (!e) return [];
|
|
1153
1153
|
t ||= {};
|
|
1154
|
-
var l = 1,
|
|
1155
|
-
function
|
|
1154
|
+
var l = 1, u = 1;
|
|
1155
|
+
function f(e) {
|
|
1156
1156
|
var t = e.match(r);
|
|
1157
1157
|
t && (l += t.length);
|
|
1158
|
-
var n = e.lastIndexOf(
|
|
1159
|
-
|
|
1158
|
+
var n = e.lastIndexOf("\n");
|
|
1159
|
+
u = ~n ? e.length - n : u + e.length;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function p() {
|
|
1162
1162
|
var e = {
|
|
1163
1163
|
line: l,
|
|
1164
|
-
column:
|
|
1164
|
+
column: u
|
|
1165
1165
|
};
|
|
1166
1166
|
return function(t) {
|
|
1167
|
-
return t.position = new
|
|
1167
|
+
return t.position = new m(e), _(), t;
|
|
1168
1168
|
};
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function m(e) {
|
|
1171
1171
|
this.start = e, this.end = {
|
|
1172
1172
|
line: l,
|
|
1173
|
-
column:
|
|
1173
|
+
column: u
|
|
1174
1174
|
}, this.source = t.source;
|
|
1175
1175
|
}
|
|
1176
|
-
|
|
1177
|
-
function
|
|
1178
|
-
var r = /* @__PURE__ */ Error(t.source + ":" + l + ":" +
|
|
1179
|
-
if (r.reason = n, r.filename = t.source, r.line = l, r.column =
|
|
1176
|
+
m.prototype.content = e;
|
|
1177
|
+
function h(n) {
|
|
1178
|
+
var r = /* @__PURE__ */ Error(t.source + ":" + l + ":" + u + ": " + n);
|
|
1179
|
+
if (r.reason = n, r.filename = t.source, r.line = l, r.column = u, r.source = e, !t.silent) throw r;
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1181
|
+
function g(t) {
|
|
1182
1182
|
var n = t.exec(e);
|
|
1183
1183
|
if (n) {
|
|
1184
1184
|
var r = n[0];
|
|
1185
|
-
return
|
|
1185
|
+
return f(r), e = e.slice(r.length), n;
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1189
|
-
|
|
1188
|
+
function _() {
|
|
1189
|
+
g(i);
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function ee(e) {
|
|
1192
1192
|
var t;
|
|
1193
|
-
for (e ||= []; t =
|
|
1193
|
+
for (e ||= []; t = v();) t !== !1 && e.push(t);
|
|
1194
1194
|
return e;
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1197
|
-
var t =
|
|
1198
|
-
if (!(
|
|
1199
|
-
for (var n = 2;
|
|
1200
|
-
if (n += 2,
|
|
1196
|
+
function v() {
|
|
1197
|
+
var t = p();
|
|
1198
|
+
if (!(e.charAt(0) != "/" || e.charAt(1) != "*")) {
|
|
1199
|
+
for (var n = 2; e.charAt(n) != "" && (e.charAt(n) != "*" || e.charAt(n + 1) != "/");) ++n;
|
|
1200
|
+
if (n += 2, e.charAt(n - 1) === "") return h("End of comment missing");
|
|
1201
1201
|
var r = e.slice(2, n - 2);
|
|
1202
|
-
return
|
|
1203
|
-
type:
|
|
1202
|
+
return u += 2, f(r), e = e.slice(n), u += 2, t({
|
|
1203
|
+
type: "comment",
|
|
1204
1204
|
comment: r
|
|
1205
1205
|
});
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1209
|
-
var e =
|
|
1208
|
+
function y() {
|
|
1209
|
+
var e = p(), t = g(a);
|
|
1210
1210
|
if (t) {
|
|
1211
|
-
if (
|
|
1212
|
-
var r =
|
|
1213
|
-
type:
|
|
1214
|
-
property:
|
|
1215
|
-
value: r ?
|
|
1211
|
+
if (v(), !g(o)) return h("property missing ':'");
|
|
1212
|
+
var r = g(s), i = e({
|
|
1213
|
+
type: "declaration",
|
|
1214
|
+
property: d(t[0].replace(n, "")),
|
|
1215
|
+
value: r ? d(r[0].replace(n, "")) : ""
|
|
1216
1216
|
});
|
|
1217
|
-
return
|
|
1217
|
+
return g(c), i;
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function b() {
|
|
1221
1221
|
var e = [];
|
|
1222
|
-
|
|
1223
|
-
for (var t; t =
|
|
1222
|
+
ee(e);
|
|
1223
|
+
for (var t; t = y();) t !== !1 && (e.push(t), ee(e));
|
|
1224
1224
|
return e;
|
|
1225
1225
|
}
|
|
1226
|
-
return
|
|
1226
|
+
return _(), b();
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1229
|
-
return e ? e.replace(l,
|
|
1228
|
+
function d(e) {
|
|
1229
|
+
return e ? e.replace(l, "") : "";
|
|
1230
1230
|
}
|
|
1231
|
-
t.exports =
|
|
1232
|
-
})),
|
|
1231
|
+
t.exports = u;
|
|
1232
|
+
})), Se = /* @__PURE__ */ n(((e) => {
|
|
1233
1233
|
var t = e && e.__importDefault || function(e) {
|
|
1234
1234
|
return e && e.__esModule ? e : { default: e };
|
|
1235
1235
|
};
|
|
1236
1236
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = r;
|
|
1237
|
-
var n = t(
|
|
1237
|
+
var n = t(xe());
|
|
1238
1238
|
function r(e, t) {
|
|
1239
1239
|
let r = null;
|
|
1240
1240
|
if (!e || typeof e != "string") return r;
|
|
@@ -1245,7 +1245,7 @@ var be = /* @__PURE__ */ n(((e, t) => {
|
|
|
1245
1245
|
a ? t(n, i, e) : i && (r ||= {}, r[n] = i);
|
|
1246
1246
|
}), r;
|
|
1247
1247
|
}
|
|
1248
|
-
})),
|
|
1248
|
+
})), Ce = /* @__PURE__ */ n(((e) => {
|
|
1249
1249
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.camelCase = void 0;
|
|
1250
1250
|
var t = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, r = /^[^-]+$/, i = /^-(webkit|moz|ms|o|khtml)-/, a = /^-(ms)-/, o = function(e) {
|
|
1251
1251
|
return !e || r.test(e) || t.test(e);
|
|
@@ -1257,10 +1257,10 @@ var be = /* @__PURE__ */ n(((e, t) => {
|
|
|
1257
1257
|
e.camelCase = function(e, t) {
|
|
1258
1258
|
return t === void 0 && (t = {}), o(e) ? e : (e = e.toLowerCase(), e = t.reactCompat ? e.replace(a, c) : e.replace(i, c), e.replace(n, s));
|
|
1259
1259
|
};
|
|
1260
|
-
})),
|
|
1260
|
+
})), we = /* @__PURE__ */ n(((e, t) => {
|
|
1261
1261
|
var n = (e && e.__importDefault || function(e) {
|
|
1262
1262
|
return e && e.__esModule ? e : { default: e };
|
|
1263
|
-
})(
|
|
1263
|
+
})(Se()), r = Ce();
|
|
1264
1264
|
function i(e, t) {
|
|
1265
1265
|
var i = {};
|
|
1266
1266
|
return !e || typeof e != "string" || (0, n.default)(e, function(e, n) {
|
|
@@ -1268,7 +1268,7 @@ var be = /* @__PURE__ */ n(((e, t) => {
|
|
|
1268
1268
|
}), i;
|
|
1269
1269
|
}
|
|
1270
1270
|
i.default = i, t.exports = i;
|
|
1271
|
-
})),
|
|
1271
|
+
})), Te = Ee("end"), k = Ee("start");
|
|
1272
1272
|
function Ee(e) {
|
|
1273
1273
|
return t;
|
|
1274
1274
|
function t(t) {
|
|
@@ -1281,7 +1281,7 @@ function Ee(e) {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
1283
|
function De(e) {
|
|
1284
|
-
let t =
|
|
1284
|
+
let t = k(e), n = Te(e);
|
|
1285
1285
|
if (t && n) return {
|
|
1286
1286
|
start: t,
|
|
1287
1287
|
end: n
|
|
@@ -1325,23 +1325,23 @@ var A = class extends Error {
|
|
|
1325
1325
|
A.prototype.file = "", A.prototype.name = "", A.prototype.reason = "", A.prototype.message = "", A.prototype.stack = "", A.prototype.column = void 0, A.prototype.line = void 0, A.prototype.ancestors = void 0, A.prototype.cause = void 0, A.prototype.fatal = void 0, A.prototype.place = void 0, A.prototype.ruleId = void 0, A.prototype.source = void 0;
|
|
1326
1326
|
//#endregion
|
|
1327
1327
|
//#region ../../node_modules/.bun/hast-util-to-jsx-runtime@2.3.6+759ce506b1ed1a42/node_modules/hast-util-to-jsx-runtime/lib/index.js
|
|
1328
|
-
var Me = /* @__PURE__ */ t(
|
|
1328
|
+
var Me = /* @__PURE__ */ t(we(), 1), j = {}.hasOwnProperty, Ne = /* @__PURE__ */ new Map(), Pe = /[A-Z]/g, Fe = /* @__PURE__ */ new Set([
|
|
1329
1329
|
"table",
|
|
1330
1330
|
"tbody",
|
|
1331
1331
|
"thead",
|
|
1332
1332
|
"tfoot",
|
|
1333
1333
|
"tr"
|
|
1334
|
-
]), Ie = new Set(["td", "th"]);
|
|
1334
|
+
]), Ie = /* @__PURE__ */ new Set(["td", "th"]);
|
|
1335
1335
|
function Le(e, t) {
|
|
1336
1336
|
if (!t || t.Fragment === void 0) throw TypeError("Expected `Fragment` in options");
|
|
1337
1337
|
let n = t.filePath || void 0, r;
|
|
1338
1338
|
if (t.development) {
|
|
1339
1339
|
if (typeof t.jsxDEV != "function") throw TypeError("Expected `jsxDEV` in options when `development: true`");
|
|
1340
|
-
r =
|
|
1340
|
+
r = Je(n, t.jsxDEV);
|
|
1341
1341
|
} else {
|
|
1342
1342
|
if (typeof t.jsx != "function") throw TypeError("Expected `jsx` in production options");
|
|
1343
1343
|
if (typeof t.jsxs != "function") throw TypeError("Expected `jsxs` in production options");
|
|
1344
|
-
r =
|
|
1344
|
+
r = qe(n, t.jsx, t.jsxs);
|
|
1345
1345
|
}
|
|
1346
1346
|
let i = {
|
|
1347
1347
|
Fragment: t.Fragment,
|
|
@@ -1354,7 +1354,7 @@ function Le(e, t) {
|
|
|
1354
1354
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
1355
1355
|
passKeys: t.passKeys !== !1,
|
|
1356
1356
|
passNode: t.passNode || !1,
|
|
1357
|
-
schema: t.space === "svg" ?
|
|
1357
|
+
schema: t.space === "svg" ? O : ve,
|
|
1358
1358
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
1359
1359
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
1360
1360
|
}, a = Re(i, e, void 0);
|
|
@@ -1370,32 +1370,32 @@ function Re(e, t, n) {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
function ze(e, t, n) {
|
|
1372
1372
|
let r = e.schema, i = r;
|
|
1373
|
-
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i =
|
|
1374
|
-
let a =
|
|
1373
|
+
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = O, e.schema = i), e.ancestors.push(t);
|
|
1374
|
+
let a = et(e, t.tagName, !1), o = Ye(e, t), s = Ze(e, t);
|
|
1375
1375
|
return Fe.has(t.tagName) && (s = s.filter(function(e) {
|
|
1376
1376
|
return typeof e == "string" ? !d(e) : !0;
|
|
1377
|
-
})), Ge(e, o, a, t),
|
|
1377
|
+
})), Ge(e, o, a, t), Ke(o, s), e.ancestors.pop(), e.schema = r, e.create(t, a, o, n);
|
|
1378
1378
|
}
|
|
1379
1379
|
function Be(e, t) {
|
|
1380
1380
|
if (t.data && t.data.estree && e.evaluater) {
|
|
1381
1381
|
let n = t.data.estree.body[0];
|
|
1382
1382
|
return n.type, e.evaluater.evaluateExpression(n.expression);
|
|
1383
1383
|
}
|
|
1384
|
-
|
|
1384
|
+
M(e, t.position);
|
|
1385
1385
|
}
|
|
1386
1386
|
function Ve(e, t) {
|
|
1387
1387
|
if (t.data && t.data.estree && e.evaluater) return e.evaluater.evaluateProgram(t.data.estree);
|
|
1388
|
-
|
|
1388
|
+
M(e, t.position);
|
|
1389
1389
|
}
|
|
1390
1390
|
function He(e, t, n) {
|
|
1391
1391
|
let r = e.schema, i = r;
|
|
1392
|
-
t.name === "svg" && r.space === "html" && (i =
|
|
1393
|
-
let a = t.name === null ? e.Fragment :
|
|
1394
|
-
return Ge(e, o, a, t),
|
|
1392
|
+
t.name === "svg" && r.space === "html" && (i = O, e.schema = i), e.ancestors.push(t);
|
|
1393
|
+
let a = t.name === null ? e.Fragment : et(e, t.name, !0), o = Xe(e, t), s = Ze(e, t);
|
|
1394
|
+
return Ge(e, o, a, t), Ke(o, s), e.ancestors.pop(), e.schema = r, e.create(t, a, o, n);
|
|
1395
1395
|
}
|
|
1396
1396
|
function Ue(e, t, n) {
|
|
1397
1397
|
let r = {};
|
|
1398
|
-
return
|
|
1398
|
+
return Ke(r, Ze(e, t)), e.create(t, e.Fragment, r, n);
|
|
1399
1399
|
}
|
|
1400
1400
|
function We(e, t) {
|
|
1401
1401
|
return t.value;
|
|
@@ -1403,23 +1403,23 @@ function We(e, t) {
|
|
|
1403
1403
|
function Ge(e, t, n, r) {
|
|
1404
1404
|
typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function Ke(e, t) {
|
|
1407
1407
|
if (t.length > 0) {
|
|
1408
1408
|
let n = t.length > 1 ? t : t[0];
|
|
1409
1409
|
n && (e.children = n);
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1412
|
+
function qe(e, t, n) {
|
|
1413
1413
|
return r;
|
|
1414
1414
|
function r(e, r, i, a) {
|
|
1415
1415
|
let o = Array.isArray(i.children) ? n : t;
|
|
1416
1416
|
return a ? o(r, i, a) : o(r, i);
|
|
1417
1417
|
}
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function Je(e, t) {
|
|
1420
1420
|
return n;
|
|
1421
1421
|
function n(n, r, i, a) {
|
|
1422
|
-
let o = Array.isArray(i.children), s =
|
|
1422
|
+
let o = Array.isArray(i.children), s = k(n);
|
|
1423
1423
|
return t(r, i, a, o, {
|
|
1424
1424
|
columnNumber: s ? s.column - 1 : void 0,
|
|
1425
1425
|
fileName: e,
|
|
@@ -1427,10 +1427,10 @@ function qe(e, t) {
|
|
|
1427
1427
|
}, void 0);
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function Ye(e, t) {
|
|
1431
1431
|
let n = {}, r, i;
|
|
1432
1432
|
for (i in t.properties) if (i !== "children" && j.call(t.properties, i)) {
|
|
1433
|
-
let a =
|
|
1433
|
+
let a = Qe(e, i, t.properties[i]);
|
|
1434
1434
|
if (a) {
|
|
1435
1435
|
let [i, o] = a;
|
|
1436
1436
|
e.tableCellAlignToStyle && i === "align" && typeof o == "string" && Ie.has(t.tagName) ? r = o : n[i] = o;
|
|
@@ -1442,7 +1442,7 @@ function Je(e, t) {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
return n;
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1445
|
+
function Xe(e, t) {
|
|
1446
1446
|
let n = {};
|
|
1447
1447
|
for (let r of t.attributes) if (r.type === "mdxJsxExpressionAttribute") if (r.data && r.data.estree && e.evaluater) {
|
|
1448
1448
|
let t = r.data.estree.body[0];
|
|
@@ -1451,19 +1451,19 @@ function Ye(e, t) {
|
|
|
1451
1451
|
i.type;
|
|
1452
1452
|
let a = i.properties[0];
|
|
1453
1453
|
a.type, Object.assign(n, e.evaluater.evaluateExpression(a.argument));
|
|
1454
|
-
} else
|
|
1454
|
+
} else M(e, t.position);
|
|
1455
1455
|
else {
|
|
1456
1456
|
let i = r.name, a;
|
|
1457
1457
|
if (r.value && typeof r.value == "object") if (r.value.data && r.value.data.estree && e.evaluater) {
|
|
1458
1458
|
let t = r.value.data.estree.body[0];
|
|
1459
1459
|
t.type, a = e.evaluater.evaluateExpression(t.expression);
|
|
1460
|
-
} else
|
|
1460
|
+
} else M(e, t.position);
|
|
1461
1461
|
else a = r.value === null ? !0 : r.value;
|
|
1462
1462
|
n[i] = a;
|
|
1463
1463
|
}
|
|
1464
1464
|
return n;
|
|
1465
1465
|
}
|
|
1466
|
-
function
|
|
1466
|
+
function Ze(e, t) {
|
|
1467
1467
|
let n = [], r = -1, i = e.passKeys ? /* @__PURE__ */ new Map() : Ne;
|
|
1468
1468
|
for (; ++r < t.children.length;) {
|
|
1469
1469
|
let a = t.children[r], o;
|
|
@@ -1479,17 +1479,17 @@ function N(e, t) {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
return n;
|
|
1481
1481
|
}
|
|
1482
|
-
function
|
|
1483
|
-
let r =
|
|
1482
|
+
function Qe(e, t, n) {
|
|
1483
|
+
let r = he(e.schema, t);
|
|
1484
1484
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
|
1485
|
-
if (Array.isArray(n) && (n = r.commaSeparated ? i(n) :
|
|
1486
|
-
let t = typeof n == "object" ? n :
|
|
1487
|
-
return e.stylePropertyNameCase === "css" && (t =
|
|
1485
|
+
if (Array.isArray(n) && (n = r.commaSeparated ? i(n) : be(n)), r.property === "style") {
|
|
1486
|
+
let t = typeof n == "object" ? n : $e(e, String(n));
|
|
1487
|
+
return e.stylePropertyNameCase === "css" && (t = tt(t)), ["style", t];
|
|
1488
1488
|
}
|
|
1489
|
-
return [e.elementAttributeNameCase === "react" && r.space ?
|
|
1489
|
+
return [e.elementAttributeNameCase === "react" && r.space ? de[r.property] || r.property : r.attribute, n];
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function $e(e, t) {
|
|
1493
1493
|
try {
|
|
1494
1494
|
return (0, Me.default)(t, { reactCompat: !0 });
|
|
1495
1495
|
} catch (t) {
|
|
@@ -1503,7 +1503,7 @@ function Ze(e, t) {
|
|
|
1503
1503
|
throw r.file = e.filePath || void 0, r.url = "https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute", r;
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function et(e, t, n) {
|
|
1507
1507
|
let r;
|
|
1508
1508
|
if (!n) r = {
|
|
1509
1509
|
type: "Literal",
|
|
@@ -1540,9 +1540,9 @@ function Qe(e, t, n) {
|
|
|
1540
1540
|
return j.call(e.components, t) ? e.components[t] : t;
|
|
1541
1541
|
}
|
|
1542
1542
|
if (e.evaluater) return e.evaluater.evaluateExpression(r);
|
|
1543
|
-
|
|
1543
|
+
M(e);
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1545
|
+
function M(e, t) {
|
|
1546
1546
|
let n = new A("Cannot handle MDX estrees without `createEvaluater`", {
|
|
1547
1547
|
ancestors: e.ancestors,
|
|
1548
1548
|
place: t,
|
|
@@ -1551,51 +1551,51 @@ function P(e, t) {
|
|
|
1551
1551
|
});
|
|
1552
1552
|
throw n.file = e.filePath || void 0, n.url = "https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-handle-mdx-estrees-without-createevaluater", n;
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function tt(e) {
|
|
1555
1555
|
let t = {}, n;
|
|
1556
|
-
for (n in e) j.call(e, n) && (t[
|
|
1556
|
+
for (n in e) j.call(e, n) && (t[nt(n)] = e[n]);
|
|
1557
1557
|
return t;
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1560
|
-
let t = e.replace(Pe,
|
|
1559
|
+
function nt(e) {
|
|
1560
|
+
let t = e.replace(Pe, rt);
|
|
1561
1561
|
return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1563
|
+
function rt(e) {
|
|
1564
1564
|
return "-" + e.toLowerCase();
|
|
1565
1565
|
}
|
|
1566
1566
|
//#endregion
|
|
1567
1567
|
//#region ../../node_modules/.bun/@shikijs+vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.js
|
|
1568
|
-
function
|
|
1569
|
-
return
|
|
1568
|
+
function it(e) {
|
|
1569
|
+
return at(e);
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1572
|
-
return Array.isArray(e) ?
|
|
1571
|
+
function at(e) {
|
|
1572
|
+
return Array.isArray(e) ? ot(e) : e instanceof RegExp ? e : typeof e == "object" ? st(e) : e;
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1574
|
+
function ot(e) {
|
|
1575
1575
|
let t = [];
|
|
1576
|
-
for (let n = 0, r = e.length; n < r; n++) t[n] =
|
|
1576
|
+
for (let n = 0, r = e.length; n < r; n++) t[n] = at(e[n]);
|
|
1577
1577
|
return t;
|
|
1578
1578
|
}
|
|
1579
|
-
function
|
|
1579
|
+
function st(e) {
|
|
1580
1580
|
let t = {};
|
|
1581
|
-
for (let n in e) t[n] =
|
|
1581
|
+
for (let n in e) t[n] = at(e[n]);
|
|
1582
1582
|
return t;
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function ct(e, ...t) {
|
|
1585
1585
|
return t.forEach((t) => {
|
|
1586
1586
|
for (let n in t) e[n] = t[n];
|
|
1587
1587
|
}), e;
|
|
1588
1588
|
}
|
|
1589
|
-
function
|
|
1589
|
+
function lt(e) {
|
|
1590
1590
|
let t = ~e.lastIndexOf("/") || ~e.lastIndexOf("\\");
|
|
1591
|
-
return t === 0 ? e : ~t === e.length - 1 ?
|
|
1591
|
+
return t === 0 ? e : ~t === e.length - 1 ? lt(e.substring(0, e.length - 1)) : e.substr(~t + 1);
|
|
1592
1592
|
}
|
|
1593
|
-
var
|
|
1593
|
+
var ut = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g, N = class {
|
|
1594
1594
|
static hasCaptures(e) {
|
|
1595
|
-
return e === null ? !1 : (
|
|
1595
|
+
return e === null ? !1 : (ut.lastIndex = 0, ut.test(e));
|
|
1596
1596
|
}
|
|
1597
1597
|
static replaceCaptures(e, t, n) {
|
|
1598
|
-
return e.replace(
|
|
1598
|
+
return e.replace(ut, (e, r, i, a) => {
|
|
1599
1599
|
let o = n[parseInt(r || i, 10)];
|
|
1600
1600
|
if (o) {
|
|
1601
1601
|
let e = t.substring(o.start, o.end);
|
|
@@ -1609,30 +1609,30 @@ var ct = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g, F = class {
|
|
|
1609
1609
|
});
|
|
1610
1610
|
}
|
|
1611
1611
|
};
|
|
1612
|
-
function
|
|
1612
|
+
function dt(e, t) {
|
|
1613
1613
|
return e < t ? -1 : +(e > t);
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function ft(e, t) {
|
|
1616
1616
|
if (e === null && t === null) return 0;
|
|
1617
1617
|
if (!e) return -1;
|
|
1618
1618
|
if (!t) return 1;
|
|
1619
1619
|
let n = e.length, r = t.length;
|
|
1620
1620
|
if (n === r) {
|
|
1621
1621
|
for (let r = 0; r < n; r++) {
|
|
1622
|
-
let n =
|
|
1622
|
+
let n = dt(e[r], t[r]);
|
|
1623
1623
|
if (n !== 0) return n;
|
|
1624
1624
|
}
|
|
1625
1625
|
return 0;
|
|
1626
1626
|
}
|
|
1627
1627
|
return n - r;
|
|
1628
1628
|
}
|
|
1629
|
-
function
|
|
1629
|
+
function pt(e) {
|
|
1630
1630
|
return !!(/^#[0-9a-f]{6}$/i.test(e) || /^#[0-9a-f]{8}$/i.test(e) || /^#[0-9a-f]{3}$/i.test(e) || /^#[0-9a-f]{4}$/i.test(e));
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1632
|
+
function mt(e) {
|
|
1633
1633
|
return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, "\\$&");
|
|
1634
1634
|
}
|
|
1635
|
-
var
|
|
1635
|
+
var ht = class {
|
|
1636
1636
|
constructor(e) {
|
|
1637
1637
|
this.fn = e;
|
|
1638
1638
|
}
|
|
@@ -1642,17 +1642,17 @@ var pt = class {
|
|
|
1642
1642
|
let t = this.fn(e);
|
|
1643
1643
|
return this.cache.set(e, t), t;
|
|
1644
1644
|
}
|
|
1645
|
-
},
|
|
1645
|
+
}, P = class {
|
|
1646
1646
|
constructor(e, t, n) {
|
|
1647
1647
|
this._colorMap = e, this._defaults = t, this._root = n;
|
|
1648
1648
|
}
|
|
1649
1649
|
static createFromRawTheme(e, t) {
|
|
1650
|
-
return this.createFromParsedTheme(
|
|
1650
|
+
return this.createFromParsedTheme(yt(e), t);
|
|
1651
1651
|
}
|
|
1652
1652
|
static createFromParsedTheme(e, t) {
|
|
1653
|
-
return
|
|
1653
|
+
return St(e, t);
|
|
1654
1654
|
}
|
|
1655
|
-
_cachedMatchRoot = new
|
|
1655
|
+
_cachedMatchRoot = new ht((e) => this._root.match(e));
|
|
1656
1656
|
getColorMap() {
|
|
1657
1657
|
return this._colorMap.getColorMap();
|
|
1658
1658
|
}
|
|
@@ -1661,10 +1661,10 @@ var pt = class {
|
|
|
1661
1661
|
}
|
|
1662
1662
|
match(e) {
|
|
1663
1663
|
if (e === null) return this._defaults;
|
|
1664
|
-
let t = e.scopeName, n = this._cachedMatchRoot.get(t).find((t) =>
|
|
1665
|
-
return n ? new
|
|
1664
|
+
let t = e.scopeName, n = this._cachedMatchRoot.get(t).find((t) => gt(e.parent, t.parentScopes));
|
|
1665
|
+
return n ? new vt(n.fontStyle, n.foreground, n.background) : null;
|
|
1666
1666
|
}
|
|
1667
|
-
},
|
|
1667
|
+
}, F = class e {
|
|
1668
1668
|
constructor(e, t) {
|
|
1669
1669
|
this.parent = e, this.scopeName = t;
|
|
1670
1670
|
}
|
|
@@ -1697,7 +1697,7 @@ var pt = class {
|
|
|
1697
1697
|
return n === e ? t.reverse() : void 0;
|
|
1698
1698
|
}
|
|
1699
1699
|
};
|
|
1700
|
-
function
|
|
1700
|
+
function gt(e, t) {
|
|
1701
1701
|
if (t.length === 0) return !0;
|
|
1702
1702
|
for (let n = 0; n < t.length; n++) {
|
|
1703
1703
|
let r = t[n], i = !1;
|
|
@@ -1705,7 +1705,7 @@ function mt(e, t) {
|
|
|
1705
1705
|
if (n === t.length - 1) return !1;
|
|
1706
1706
|
r = t[++n], i = !0;
|
|
1707
1707
|
}
|
|
1708
|
-
for (; e && !
|
|
1708
|
+
for (; e && !_t(e.scopeName, r);) {
|
|
1709
1709
|
if (i) return !1;
|
|
1710
1710
|
e = e.parent;
|
|
1711
1711
|
}
|
|
@@ -1714,15 +1714,15 @@ function mt(e, t) {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
return !0;
|
|
1716
1716
|
}
|
|
1717
|
-
function
|
|
1717
|
+
function _t(e, t) {
|
|
1718
1718
|
return t === e || e.startsWith(t) && e[t.length] === ".";
|
|
1719
1719
|
}
|
|
1720
|
-
var
|
|
1720
|
+
var vt = class {
|
|
1721
1721
|
constructor(e, t, n) {
|
|
1722
1722
|
this.fontStyle = e, this.foregroundId = t, this.backgroundId = n;
|
|
1723
1723
|
}
|
|
1724
1724
|
};
|
|
1725
|
-
function
|
|
1725
|
+
function yt(e) {
|
|
1726
1726
|
if (!e || !e.settings || !Array.isArray(e.settings)) return [];
|
|
1727
1727
|
let t = e.settings, n = [], r = 0;
|
|
1728
1728
|
for (let e = 0, i = t.length; e < i; e++) {
|
|
@@ -1753,39 +1753,39 @@ function _t(e) {
|
|
|
1753
1753
|
}
|
|
1754
1754
|
}
|
|
1755
1755
|
let s = null;
|
|
1756
|
-
typeof i.settings.foreground == "string" &&
|
|
1756
|
+
typeof i.settings.foreground == "string" && pt(i.settings.foreground) && (s = i.settings.foreground);
|
|
1757
1757
|
let c = null;
|
|
1758
|
-
typeof i.settings.background == "string" &&
|
|
1758
|
+
typeof i.settings.background == "string" && pt(i.settings.background) && (c = i.settings.background);
|
|
1759
1759
|
for (let t = 0, i = a.length; t < i; t++) {
|
|
1760
1760
|
let i = a[t].trim().split(" "), l = i[i.length - 1], u = null;
|
|
1761
|
-
i.length > 1 && (u = i.slice(0, i.length - 1), u.reverse()), n[r++] = new
|
|
1761
|
+
i.length > 1 && (u = i.slice(0, i.length - 1), u.reverse()), n[r++] = new bt(l, u, e, o, s, c);
|
|
1762
1762
|
}
|
|
1763
1763
|
}
|
|
1764
1764
|
return n;
|
|
1765
1765
|
}
|
|
1766
|
-
var
|
|
1766
|
+
var bt = class {
|
|
1767
1767
|
constructor(e, t, n, r, i, a) {
|
|
1768
1768
|
this.scope = e, this.parentScopes = t, this.index = n, this.fontStyle = r, this.foreground = i, this.background = a;
|
|
1769
1769
|
}
|
|
1770
|
-
},
|
|
1771
|
-
function
|
|
1770
|
+
}, xt = /* @__PURE__ */ ((e) => (e[e.NotSet = -1] = "NotSet", e[e.None = 0] = "None", e[e.Italic = 1] = "Italic", e[e.Bold = 2] = "Bold", e[e.Underline = 4] = "Underline", e[e.Strikethrough = 8] = "Strikethrough", e))(xt || {});
|
|
1771
|
+
function St(e, t) {
|
|
1772
1772
|
e.sort((e, t) => {
|
|
1773
|
-
let n =
|
|
1774
|
-
return n !== 0 || (n =
|
|
1773
|
+
let n = dt(e.scope, t.scope);
|
|
1774
|
+
return n !== 0 || (n = ft(e.parentScopes, t.parentScopes), n !== 0) ? n : e.index - t.index;
|
|
1775
1775
|
});
|
|
1776
1776
|
let n = 0, r = "#000000", i = "#ffffff";
|
|
1777
1777
|
for (; e.length >= 1 && e[0].scope === "";) {
|
|
1778
1778
|
let t = e.shift();
|
|
1779
1779
|
t.fontStyle !== -1 && (n = t.fontStyle), t.foreground !== null && (r = t.foreground), t.background !== null && (i = t.background);
|
|
1780
1780
|
}
|
|
1781
|
-
let a = new
|
|
1781
|
+
let a = new Ct(t), o = new vt(n, a.getId(r), a.getId(i)), s = new Tt(new I(0, null, -1, 0, 0), []);
|
|
1782
1782
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1783
1783
|
let n = e[t];
|
|
1784
1784
|
s.insert(0, n.scope, n.parentScopes, n.fontStyle, a.getId(n.foreground), a.getId(n.background));
|
|
1785
1785
|
}
|
|
1786
|
-
return new
|
|
1786
|
+
return new P(a, o, s);
|
|
1787
1787
|
}
|
|
1788
|
-
var
|
|
1788
|
+
var Ct = class {
|
|
1789
1789
|
_isFrozen;
|
|
1790
1790
|
_lastColorId;
|
|
1791
1791
|
_id2color;
|
|
@@ -1807,14 +1807,14 @@ var xt = class {
|
|
|
1807
1807
|
getColorMap() {
|
|
1808
1808
|
return this._id2color.slice(0);
|
|
1809
1809
|
}
|
|
1810
|
-
},
|
|
1810
|
+
}, wt = Object.freeze([]), I = class e {
|
|
1811
1811
|
scopeDepth;
|
|
1812
1812
|
parentScopes;
|
|
1813
1813
|
fontStyle;
|
|
1814
1814
|
foreground;
|
|
1815
1815
|
background;
|
|
1816
1816
|
constructor(e, t, n, r, i) {
|
|
1817
|
-
this.scopeDepth = e, this.parentScopes = t ||
|
|
1817
|
+
this.scopeDepth = e, this.parentScopes = t || wt, this.fontStyle = n, this.foreground = r, this.background = i;
|
|
1818
1818
|
}
|
|
1819
1819
|
clone() {
|
|
1820
1820
|
return new e(this.scopeDepth, this.parentScopes, this.fontStyle, this.foreground, this.background);
|
|
@@ -1827,7 +1827,7 @@ var xt = class {
|
|
|
1827
1827
|
acceptOverwrite(e, t, n, r) {
|
|
1828
1828
|
this.scopeDepth > e ? console.log("how did this happen?") : this.scopeDepth = e, t !== -1 && (this.fontStyle = t), n !== 0 && (this.foreground = n), r !== 0 && (this.background = r);
|
|
1829
1829
|
}
|
|
1830
|
-
},
|
|
1830
|
+
}, Tt = class e {
|
|
1831
1831
|
constructor(e, t = [], n = {}) {
|
|
1832
1832
|
this._mainRule = e, this._children = n, this._rulesWithParentScopes = t;
|
|
1833
1833
|
}
|
|
@@ -1858,7 +1858,7 @@ var xt = class {
|
|
|
1858
1858
|
let s = n.indexOf("."), c, l;
|
|
1859
1859
|
s === -1 ? (c = n, l = "") : (c = n.substring(0, s), l = n.substring(s + 1));
|
|
1860
1860
|
let u;
|
|
1861
|
-
this._children.hasOwnProperty(c) ? u = this._children[c] : (u = new e(this._mainRule.clone(),
|
|
1861
|
+
this._children.hasOwnProperty(c) ? u = this._children[c] : (u = new e(this._mainRule.clone(), I.cloneArr(this._rulesWithParentScopes)), this._children[c] = u), u.insert(t + 1, l, r, i, a, o);
|
|
1862
1862
|
}
|
|
1863
1863
|
_doInsertHere(e, t, n, r, i) {
|
|
1864
1864
|
if (t === null) {
|
|
@@ -1867,14 +1867,14 @@ var xt = class {
|
|
|
1867
1867
|
}
|
|
1868
1868
|
for (let a = 0, o = this._rulesWithParentScopes.length; a < o; a++) {
|
|
1869
1869
|
let o = this._rulesWithParentScopes[a];
|
|
1870
|
-
if (
|
|
1870
|
+
if (ft(o.parentScopes, t) === 0) {
|
|
1871
1871
|
o.acceptOverwrite(e, n, r, i);
|
|
1872
1872
|
return;
|
|
1873
1873
|
}
|
|
1874
1874
|
}
|
|
1875
|
-
n === -1 && (n = this._mainRule.fontStyle), r === 0 && (r = this._mainRule.foreground), i === 0 && (i = this._mainRule.background), this._rulesWithParentScopes.push(new
|
|
1875
|
+
n === -1 && (n = this._mainRule.fontStyle), r === 0 && (r = this._mainRule.foreground), i === 0 && (i = this._mainRule.background), this._rulesWithParentScopes.push(new I(e, t, n, r, i));
|
|
1876
1876
|
}
|
|
1877
|
-
},
|
|
1877
|
+
}, L = class e {
|
|
1878
1878
|
static toBinaryStr(e) {
|
|
1879
1879
|
return e.toString(2).padStart(32, "0");
|
|
1880
1880
|
}
|
|
@@ -1908,17 +1908,17 @@ var xt = class {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
static set(t, n, r, i, a, o, s) {
|
|
1910
1910
|
let c = e.getLanguageId(t), l = e.getTokenType(t), u = +!!e.containsBalancedBrackets(t), d = e.getFontStyle(t), f = e.getForeground(t), p = e.getBackground(t);
|
|
1911
|
-
return n !== 0 && (c = n), r !== 8 && (l =
|
|
1911
|
+
return n !== 0 && (c = n), r !== 8 && (l = Dt(r)), i !== null && (u = +!!i), a !== -1 && (d = a), o !== 0 && (f = o), s !== 0 && (p = s), (c << 0 | l << 8 | u << 10 | d << 11 | f << 15 | p << 24) >>> 0;
|
|
1912
1912
|
}
|
|
1913
1913
|
};
|
|
1914
|
-
function
|
|
1914
|
+
function Et(e) {
|
|
1915
1915
|
return e;
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1917
|
+
function Dt(e) {
|
|
1918
1918
|
return e;
|
|
1919
1919
|
}
|
|
1920
|
-
function
|
|
1921
|
-
let n = [], r =
|
|
1920
|
+
function R(e, t) {
|
|
1921
|
+
let n = [], r = kt(e), i = r.next();
|
|
1922
1922
|
for (; i !== null;) {
|
|
1923
1923
|
let e = 0;
|
|
1924
1924
|
if (i.length === 2 && i.charAt(1) === ":") {
|
|
@@ -1952,11 +1952,11 @@ function z(e, t) {
|
|
|
1952
1952
|
let e = s();
|
|
1953
1953
|
return i === ")" && (i = r.next()), e;
|
|
1954
1954
|
}
|
|
1955
|
-
if (
|
|
1955
|
+
if (Ot(i)) {
|
|
1956
1956
|
let e = [];
|
|
1957
1957
|
do
|
|
1958
1958
|
e.push(i), i = r.next();
|
|
1959
|
-
while (
|
|
1959
|
+
while (Ot(i));
|
|
1960
1960
|
return (n) => t(e, n);
|
|
1961
1961
|
}
|
|
1962
1962
|
return null;
|
|
@@ -1977,10 +1977,10 @@ function z(e, t) {
|
|
|
1977
1977
|
return (t) => e.some((e) => e(t));
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function Ot(e) {
|
|
1981
1981
|
return !!e && !!e.match(/[\w\.:]+/);
|
|
1982
1982
|
}
|
|
1983
|
-
function
|
|
1983
|
+
function kt(e) {
|
|
1984
1984
|
let t = /([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g, n = t.exec(e);
|
|
1985
1985
|
return { next: () => {
|
|
1986
1986
|
if (!n) return null;
|
|
@@ -1988,24 +1988,24 @@ function Ot(e) {
|
|
|
1988
1988
|
return n = t.exec(e), r;
|
|
1989
1989
|
} };
|
|
1990
1990
|
}
|
|
1991
|
-
function
|
|
1991
|
+
function At(e) {
|
|
1992
1992
|
typeof e.dispose == "function" && e.dispose();
|
|
1993
1993
|
}
|
|
1994
|
-
var
|
|
1994
|
+
var z = class {
|
|
1995
1995
|
constructor(e) {
|
|
1996
1996
|
this.scopeName = e;
|
|
1997
1997
|
}
|
|
1998
1998
|
toKey() {
|
|
1999
1999
|
return this.scopeName;
|
|
2000
2000
|
}
|
|
2001
|
-
},
|
|
2001
|
+
}, jt = class {
|
|
2002
2002
|
constructor(e, t) {
|
|
2003
2003
|
this.scopeName = e, this.ruleName = t;
|
|
2004
2004
|
}
|
|
2005
2005
|
toKey() {
|
|
2006
2006
|
return `${this.scopeName}#${this.ruleName}`;
|
|
2007
2007
|
}
|
|
2008
|
-
},
|
|
2008
|
+
}, Mt = class {
|
|
2009
2009
|
_references = [];
|
|
2010
2010
|
_seenReferenceKeys = /* @__PURE__ */ new Set();
|
|
2011
2011
|
get references() {
|
|
@@ -2016,9 +2016,9 @@ var B = class {
|
|
|
2016
2016
|
let t = e.toKey();
|
|
2017
2017
|
this._seenReferenceKeys.has(t) || (this._seenReferenceKeys.add(t), this._references.push(e));
|
|
2018
2018
|
}
|
|
2019
|
-
},
|
|
2019
|
+
}, Nt = class {
|
|
2020
2020
|
constructor(e, t) {
|
|
2021
|
-
this.repo = e, this.initialScopeName = t, this.seenFullScopeRequests.add(this.initialScopeName), this.Q = [new
|
|
2021
|
+
this.repo = e, this.initialScopeName = t, this.seenFullScopeRequests.add(this.initialScopeName), this.Q = [new z(this.initialScopeName)];
|
|
2022
2022
|
}
|
|
2023
2023
|
seenFullScopeRequests = /* @__PURE__ */ new Set();
|
|
2024
2024
|
seenPartialScopeRequests = /* @__PURE__ */ new Set();
|
|
@@ -2026,9 +2026,9 @@ var B = class {
|
|
|
2026
2026
|
processQueue() {
|
|
2027
2027
|
let e = this.Q;
|
|
2028
2028
|
this.Q = [];
|
|
2029
|
-
let t = new
|
|
2030
|
-
for (let n of e)
|
|
2031
|
-
for (let e of t.references) if (e instanceof
|
|
2029
|
+
let t = new Mt();
|
|
2030
|
+
for (let n of e) Pt(n, this.initialScopeName, this.repo, t);
|
|
2031
|
+
for (let e of t.references) if (e instanceof z) {
|
|
2032
2032
|
if (this.seenFullScopeRequests.has(e.scopeName)) continue;
|
|
2033
2033
|
this.seenFullScopeRequests.add(e.scopeName), this.Q.push(e);
|
|
2034
2034
|
} else {
|
|
@@ -2037,25 +2037,25 @@ var B = class {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
}
|
|
2039
2039
|
};
|
|
2040
|
-
function
|
|
2040
|
+
function Pt(e, t, n, r) {
|
|
2041
2041
|
let i = n.lookup(e.scopeName);
|
|
2042
2042
|
if (!i) {
|
|
2043
2043
|
if (e.scopeName === t) throw Error(`No grammar provided for <${t}>`);
|
|
2044
2044
|
return;
|
|
2045
2045
|
}
|
|
2046
2046
|
let a = n.lookup(t);
|
|
2047
|
-
e instanceof
|
|
2047
|
+
e instanceof z ? V({
|
|
2048
2048
|
baseGrammar: a,
|
|
2049
2049
|
selfGrammar: i
|
|
2050
|
-
}, r) :
|
|
2050
|
+
}, r) : B(e.ruleName, {
|
|
2051
2051
|
baseGrammar: a,
|
|
2052
2052
|
selfGrammar: i,
|
|
2053
2053
|
repository: i.repository
|
|
2054
2054
|
}, r);
|
|
2055
2055
|
let o = n.injections(e.scopeName);
|
|
2056
|
-
if (o) for (let e of o) r.add(new
|
|
2056
|
+
if (o) for (let e of o) r.add(new z(e));
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2058
|
+
function B(e, t, n) {
|
|
2059
2059
|
if (t.repository && t.repository[e]) {
|
|
2060
2060
|
let r = t.repository[e];
|
|
2061
2061
|
H([r], t, n);
|
|
@@ -2074,7 +2074,7 @@ function H(e, t, n) {
|
|
|
2074
2074
|
for (let r of e) {
|
|
2075
2075
|
if (n.visitedRule.has(r)) continue;
|
|
2076
2076
|
n.visitedRule.add(r);
|
|
2077
|
-
let e = r.repository ?
|
|
2077
|
+
let e = r.repository ? ct({}, t.repository, r.repository) : t.repository;
|
|
2078
2078
|
Array.isArray(r.patterns) && H(r.patterns, {
|
|
2079
2079
|
...t,
|
|
2080
2080
|
repository: e
|
|
@@ -2093,7 +2093,7 @@ function H(e, t, n) {
|
|
|
2093
2093
|
V(t, n);
|
|
2094
2094
|
break;
|
|
2095
2095
|
case 2:
|
|
2096
|
-
|
|
2096
|
+
B(a.ruleName, {
|
|
2097
2097
|
...t,
|
|
2098
2098
|
repository: e
|
|
2099
2099
|
}, n);
|
|
@@ -2107,8 +2107,8 @@ function H(e, t, n) {
|
|
|
2107
2107
|
selfGrammar: r,
|
|
2108
2108
|
repository: e
|
|
2109
2109
|
};
|
|
2110
|
-
a.kind === 4 ?
|
|
2111
|
-
} else a.kind === 4 ? n.add(new
|
|
2110
|
+
a.kind === 4 ? B(a.ruleName, i, n) : V(i, n);
|
|
2111
|
+
} else a.kind === 4 ? n.add(new jt(a.scopeName, a.ruleName)) : n.add(new z(a.scopeName));
|
|
2112
2112
|
break;
|
|
2113
2113
|
}
|
|
2114
2114
|
}
|
|
@@ -2154,17 +2154,17 @@ var U = class {
|
|
|
2154
2154
|
_contentNameIsCapturing;
|
|
2155
2155
|
_contentName;
|
|
2156
2156
|
constructor(e, t, n, r) {
|
|
2157
|
-
this.$location = e, this.id = t, this._name = n || null, this._nameIsCapturing =
|
|
2157
|
+
this.$location = e, this.id = t, this._name = n || null, this._nameIsCapturing = N.hasCaptures(this._name), this._contentName = r || null, this._contentNameIsCapturing = N.hasCaptures(this._contentName);
|
|
2158
2158
|
}
|
|
2159
2159
|
get debugName() {
|
|
2160
|
-
let e = this.$location ? `${
|
|
2160
|
+
let e = this.$location ? `${lt(this.$location.filename)}:${this.$location.line}` : "unknown";
|
|
2161
2161
|
return `${this.constructor.name}#${this.id} @ ${e}`;
|
|
2162
2162
|
}
|
|
2163
2163
|
getName(e, t) {
|
|
2164
|
-
return !this._nameIsCapturing || this._name === null || e === null || t === null ? this._name :
|
|
2164
|
+
return !this._nameIsCapturing || this._name === null || e === null || t === null ? this._name : N.replaceCaptures(this._name, e, t);
|
|
2165
2165
|
}
|
|
2166
2166
|
getContentName(e, t) {
|
|
2167
|
-
return !this._contentNameIsCapturing || this._contentName === null ? this._contentName :
|
|
2167
|
+
return !this._contentNameIsCapturing || this._contentName === null ? this._contentName : N.replaceCaptures(this._contentName, e, t);
|
|
2168
2168
|
}
|
|
2169
2169
|
}, qt = class extends U {
|
|
2170
2170
|
retokenizeCapturedWithRuleId;
|
|
@@ -2328,7 +2328,7 @@ var U = class {
|
|
|
2328
2328
|
return t.id || n.registerRule((i) => {
|
|
2329
2329
|
if (t.id = i, t.match) return new Jt(t.$vscodeTextmateLocation, t.id, t.name, t.match, e._compileCaptures(t.captures, n, r));
|
|
2330
2330
|
if (t.begin === void 0) {
|
|
2331
|
-
t.repository && (r =
|
|
2331
|
+
t.repository && (r = ct({}, r, t.repository));
|
|
2332
2332
|
let i = t.patterns;
|
|
2333
2333
|
return i === void 0 && t.include && (i = [{ include: t.include }]), new Yt(t.$vscodeTextmateLocation, t.id, t.name, t.contentName, e._compilePatterns(i, n, r));
|
|
2334
2334
|
}
|
|
@@ -2415,7 +2415,7 @@ var U = class {
|
|
|
2415
2415
|
resolveBackReferences(e, t) {
|
|
2416
2416
|
if (typeof this.source != "string") throw Error("This method should only be called if the source is a string");
|
|
2417
2417
|
let n = t.map((t) => e.substring(t.start, t.end));
|
|
2418
|
-
return Ht.lastIndex = 0, this.source.replace(Ht, (e, t) =>
|
|
2418
|
+
return Ht.lastIndex = 0, this.source.replace(Ht, (e, t) => mt(n[parseInt(t, 10)] || ""));
|
|
2419
2419
|
}
|
|
2420
2420
|
_buildAnchorCache() {
|
|
2421
2421
|
if (typeof this.source != "string") throw Error("This method should only be called if the source is a string");
|
|
@@ -2512,7 +2512,7 @@ var U = class {
|
|
|
2512
2512
|
return t === null ? e._NULL_SCOPE_METADATA : this._getBasicScopeAttributes.get(t);
|
|
2513
2513
|
}
|
|
2514
2514
|
static _NULL_SCOPE_METADATA = new $t(0, 0);
|
|
2515
|
-
_getBasicScopeAttributes = new
|
|
2515
|
+
_getBasicScopeAttributes = new ht((e) => new $t(this._scopeToLanguage(e), this._toStandardTokenType(e)));
|
|
2516
2516
|
_scopeToLanguage(e) {
|
|
2517
2517
|
return this._embeddedLanguagesMatcher.match(e) || 0;
|
|
2518
2518
|
}
|
|
@@ -2535,7 +2535,7 @@ var U = class {
|
|
|
2535
2535
|
if (e.length === 0) this.values = null, this.scopesRegExp = null;
|
|
2536
2536
|
else {
|
|
2537
2537
|
this.values = new Map(e);
|
|
2538
|
-
let t = e.map(([e, t]) =>
|
|
2538
|
+
let t = e.map(([e, t]) => mt(e));
|
|
2539
2539
|
t.sort(), t.reverse(), this.scopesRegExp = RegExp(`^((${t.join(")|(")}))($|\\.)`, "");
|
|
2540
2540
|
}
|
|
2541
2541
|
}
|
|
@@ -2546,25 +2546,25 @@ var U = class {
|
|
|
2546
2546
|
}
|
|
2547
2547
|
};
|
|
2548
2548
|
typeof process < "u" && process.env.VSCODE_TEXTMATE_DEBUG;
|
|
2549
|
-
var nn =
|
|
2549
|
+
var nn = class {
|
|
2550
2550
|
constructor(e, t) {
|
|
2551
2551
|
this.stack = e, this.stoppedEarly = t;
|
|
2552
2552
|
}
|
|
2553
2553
|
};
|
|
2554
|
-
function
|
|
2554
|
+
function rn(e, t, n, r, i, a, o, s) {
|
|
2555
2555
|
let c = t.content.length, l = !1, u = -1;
|
|
2556
2556
|
if (o) {
|
|
2557
|
-
let o =
|
|
2557
|
+
let o = an(e, t, n, r, i, a);
|
|
2558
2558
|
i = o.stack, r = o.linePos, n = o.isFirstLine, u = o.anchorPosition;
|
|
2559
2559
|
}
|
|
2560
2560
|
let d = Date.now();
|
|
2561
2561
|
for (; !l;) {
|
|
2562
|
-
if (s !== 0 && Date.now() - d > s) return new
|
|
2562
|
+
if (s !== 0 && Date.now() - d > s) return new nn(i, !0);
|
|
2563
2563
|
f();
|
|
2564
2564
|
}
|
|
2565
|
-
return new
|
|
2565
|
+
return new nn(i, !1);
|
|
2566
2566
|
function f() {
|
|
2567
|
-
let o =
|
|
2567
|
+
let o = on(e, t, n, r, i, u);
|
|
2568
2568
|
if (!o) {
|
|
2569
2569
|
a.produce(i, c), l = !0;
|
|
2570
2570
|
return;
|
|
@@ -2606,7 +2606,7 @@ function an(e, t, n, r, i, a, o, s) {
|
|
|
2606
2606
|
s[0].end > r && (r = s[0].end, n = !1);
|
|
2607
2607
|
}
|
|
2608
2608
|
}
|
|
2609
|
-
function
|
|
2609
|
+
function an(e, t, n, r, i, a) {
|
|
2610
2610
|
let o = i.beginRuleCapturedEOL ? 0 : -1, s = [];
|
|
2611
2611
|
for (let t = i; t; t = t.pop()) {
|
|
2612
2612
|
let n = t.getRule(e);
|
|
@@ -2616,7 +2616,7 @@ function on(e, t, n, r, i, a) {
|
|
|
2616
2616
|
});
|
|
2617
2617
|
}
|
|
2618
2618
|
for (let c = s.pop(); c; c = s.pop()) {
|
|
2619
|
-
let { ruleScanner: s, findOptions: l } =
|
|
2619
|
+
let { ruleScanner: s, findOptions: l } = un(c.rule, e, c.stack.endRule, n, r === o), u = s.findNextMatchSync(t, r, l);
|
|
2620
2620
|
if (u) {
|
|
2621
2621
|
if (u.ruleId !== Wt) {
|
|
2622
2622
|
i = c.stack.pop();
|
|
@@ -2635,28 +2635,28 @@ function on(e, t, n, r, i, a) {
|
|
|
2635
2635
|
isFirstLine: n
|
|
2636
2636
|
};
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
2639
|
-
let o =
|
|
2638
|
+
function on(e, t, n, r, i, a) {
|
|
2639
|
+
let o = sn(e, t, n, r, i, a), s = e.getInjections();
|
|
2640
2640
|
if (s.length === 0) return o;
|
|
2641
|
-
let c =
|
|
2641
|
+
let c = cn(s, e, t, n, r, i, a);
|
|
2642
2642
|
if (!c) return o;
|
|
2643
2643
|
if (!o) return c;
|
|
2644
2644
|
let l = o.captureIndices[0].start, u = c.captureIndices[0].start;
|
|
2645
2645
|
return u < l || c.priorityMatch && u === l ? c : o;
|
|
2646
2646
|
}
|
|
2647
|
-
function
|
|
2648
|
-
let { ruleScanner: o, findOptions: s } =
|
|
2647
|
+
function sn(e, t, n, r, i, a) {
|
|
2648
|
+
let { ruleScanner: o, findOptions: s } = ln(i.getRule(e), e, i.endRule, n, r === a), c = o.findNextMatchSync(t, r, s);
|
|
2649
2649
|
return c ? {
|
|
2650
2650
|
captureIndices: c.captureIndices,
|
|
2651
2651
|
matchedRuleId: c.ruleId
|
|
2652
2652
|
} : null;
|
|
2653
2653
|
}
|
|
2654
|
-
function
|
|
2654
|
+
function cn(e, t, n, r, i, a, o) {
|
|
2655
2655
|
let s = Number.MAX_VALUE, c = null, l, u = 0, d = a.contentNameScopesList.getScopeNames();
|
|
2656
2656
|
for (let a = 0, f = e.length; a < f; a++) {
|
|
2657
2657
|
let f = e[a];
|
|
2658
2658
|
if (!f.matcher(d)) continue;
|
|
2659
|
-
let { ruleScanner: p, findOptions: m } =
|
|
2659
|
+
let { ruleScanner: p, findOptions: m } = ln(t.getRule(f.ruleId), t, null, r, i === o), h = p.findNextMatchSync(n, i, m);
|
|
2660
2660
|
if (!h) continue;
|
|
2661
2661
|
let g = h.captureIndices[0].start;
|
|
2662
2662
|
if (!(g >= s) && (s = g, c = h.captureIndices, l = h.ruleId, u = f.priority, s === i)) break;
|
|
@@ -2667,28 +2667,18 @@ function ln(e, t, n, r, i, a, o) {
|
|
|
2667
2667
|
matchedRuleId: l
|
|
2668
2668
|
} : null;
|
|
2669
2669
|
}
|
|
2670
|
-
function
|
|
2671
|
-
return
|
|
2672
|
-
ruleScanner: e.compile(t, n),
|
|
2673
|
-
findOptions: fn(r, i)
|
|
2674
|
-
} : {
|
|
2670
|
+
function ln(e, t, n, r, i) {
|
|
2671
|
+
return {
|
|
2675
2672
|
ruleScanner: e.compileAG(t, n, r, i),
|
|
2676
2673
|
findOptions: 0
|
|
2677
2674
|
};
|
|
2678
2675
|
}
|
|
2679
|
-
function
|
|
2680
|
-
return
|
|
2681
|
-
ruleScanner: e.compileWhile(t, n),
|
|
2682
|
-
findOptions: fn(r, i)
|
|
2683
|
-
} : {
|
|
2676
|
+
function un(e, t, n, r, i) {
|
|
2677
|
+
return {
|
|
2684
2678
|
ruleScanner: e.compileWhileAG(t, n, r, i),
|
|
2685
2679
|
findOptions: 0
|
|
2686
2680
|
};
|
|
2687
2681
|
}
|
|
2688
|
-
function fn(e, t) {
|
|
2689
|
-
let n = 0;
|
|
2690
|
-
return e || (n |= 1), t || (n |= 4), n;
|
|
2691
|
-
}
|
|
2692
2682
|
function q(e, t, n, r, i, a, o) {
|
|
2693
2683
|
if (a.length === 0) return;
|
|
2694
2684
|
let s = t.content, c = Math.min(a.length, o.length), l = [], u = o[0].end;
|
|
@@ -2701,29 +2691,29 @@ function q(e, t, n, r, i, a, o) {
|
|
|
2701
2691
|
for (; l.length > 0 && l[l.length - 1].endPos <= d.start;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
|
|
2702
2692
|
if (l.length > 0 ? i.produceFromScopes(l[l.length - 1].scopes, d.start) : i.produce(r, d.start), c.retokenizeCapturedWithRuleId) {
|
|
2703
2693
|
let t = c.getName(s, o), a = r.contentNameScopesList.pushAttributed(t, e), l = c.getContentName(s, o), u = a.pushAttributed(l, e), f = r.push(c.retokenizeCapturedWithRuleId, d.start, -1, !1, null, a, u), p = e.createOnigString(s.substring(0, d.end));
|
|
2704
|
-
|
|
2694
|
+
rn(e, p, n && d.start === 0, d.start, f, i, !1, 0), At(p);
|
|
2705
2695
|
continue;
|
|
2706
2696
|
}
|
|
2707
2697
|
let f = c.getName(s, o);
|
|
2708
2698
|
if (f !== null) {
|
|
2709
2699
|
let t = (l.length > 0 ? l[l.length - 1].scopes : r.contentNameScopesList).pushAttributed(f, e);
|
|
2710
|
-
l.push(new
|
|
2700
|
+
l.push(new dn(t, d.end));
|
|
2711
2701
|
}
|
|
2712
2702
|
}
|
|
2713
2703
|
for (; l.length > 0;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
|
|
2714
2704
|
}
|
|
2715
|
-
var
|
|
2705
|
+
var dn = class {
|
|
2716
2706
|
scopes;
|
|
2717
2707
|
endPos;
|
|
2718
2708
|
constructor(e, t) {
|
|
2719
2709
|
this.scopes = e, this.endPos = t;
|
|
2720
2710
|
}
|
|
2721
2711
|
};
|
|
2722
|
-
function
|
|
2723
|
-
return new
|
|
2712
|
+
function fn(e, t, n, r, i, a, o, s) {
|
|
2713
|
+
return new hn(e, t, n, r, i, a, o, s);
|
|
2724
2714
|
}
|
|
2725
|
-
function
|
|
2726
|
-
let a =
|
|
2715
|
+
function pn(e, t, n, r, i) {
|
|
2716
|
+
let a = R(t, J), o = Zt.getCompiledRuleId(n, r, i.repository);
|
|
2727
2717
|
for (let n of a) e.push({
|
|
2728
2718
|
debugSelector: t,
|
|
2729
2719
|
matcher: n.matcher,
|
|
@@ -2736,20 +2726,20 @@ function J(e, t) {
|
|
|
2736
2726
|
if (t.length < e.length) return !1;
|
|
2737
2727
|
let n = 0;
|
|
2738
2728
|
return e.every((e) => {
|
|
2739
|
-
for (let r = n; r < t.length; r++) if (
|
|
2729
|
+
for (let r = n; r < t.length; r++) if (mn(t[r], e)) return n = r + 1, !0;
|
|
2740
2730
|
return !1;
|
|
2741
2731
|
});
|
|
2742
2732
|
}
|
|
2743
|
-
function
|
|
2733
|
+
function mn(e, t) {
|
|
2744
2734
|
if (!e) return !1;
|
|
2745
2735
|
if (e === t) return !0;
|
|
2746
2736
|
let n = t.length;
|
|
2747
2737
|
return e.length > n && e.substr(0, n) === t && e[n] === ".";
|
|
2748
2738
|
}
|
|
2749
|
-
var
|
|
2739
|
+
var hn = class {
|
|
2750
2740
|
constructor(e, t, n, r, i, a, o, s) {
|
|
2751
|
-
if (this._rootScopeName = e, this.balancedBracketSelectors = a, this._onigLib = s, this._basicScopeAttributesProvider = new en(n, r), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = o, this._grammar =
|
|
2752
|
-
let t =
|
|
2741
|
+
if (this._rootScopeName = e, this.balancedBracketSelectors = a, this._onigLib = s, this._basicScopeAttributesProvider = new en(n, r), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = o, this._grammar = gn(t, null), this._injections = null, this._tokenTypeMatchers = [], i) for (let e of Object.keys(i)) {
|
|
2742
|
+
let t = R(e, J);
|
|
2753
2743
|
for (let n of t) this._tokenTypeMatchers.push({
|
|
2754
2744
|
matcher: n.matcher,
|
|
2755
2745
|
type: i[e]
|
|
@@ -2787,13 +2777,13 @@ var _n = class {
|
|
|
2787
2777
|
}, t = [], n = this._rootScopeName, r = e.lookup(n);
|
|
2788
2778
|
if (r) {
|
|
2789
2779
|
let e = r.injections;
|
|
2790
|
-
if (e) for (let n in e)
|
|
2780
|
+
if (e) for (let n in e) pn(t, n, e[n], this, r);
|
|
2791
2781
|
let i = this._grammarRepository.injections(n);
|
|
2792
2782
|
i && i.forEach((e) => {
|
|
2793
2783
|
let n = this.getExternalGrammar(e);
|
|
2794
2784
|
if (n) {
|
|
2795
2785
|
let e = n.injectionSelector;
|
|
2796
|
-
e &&
|
|
2786
|
+
e && pn(t, e, n, this, n);
|
|
2797
2787
|
}
|
|
2798
2788
|
});
|
|
2799
2789
|
}
|
|
@@ -2813,7 +2803,7 @@ var _n = class {
|
|
|
2813
2803
|
if (this._includedGrammars[e]) return this._includedGrammars[e];
|
|
2814
2804
|
if (this._grammarRepository) {
|
|
2815
2805
|
let n = this._grammarRepository.lookup(e);
|
|
2816
|
-
if (n) return this._includedGrammars[e] =
|
|
2806
|
+
if (n) return this._includedGrammars[e] = gn(n, t && t.$base), this._includedGrammars[e];
|
|
2817
2807
|
}
|
|
2818
2808
|
}
|
|
2819
2809
|
tokenizeLine(e, t, n = 0) {
|
|
@@ -2835,14 +2825,14 @@ var _n = class {
|
|
|
2835
2825
|
_tokenize(e, t, n, r) {
|
|
2836
2826
|
this._rootId === -1 && (this._rootId = Zt.getCompiledRuleId(this._grammar.repository.$self, this, this._grammar.repository), this.getInjections());
|
|
2837
2827
|
let i;
|
|
2838
|
-
if (!t || t ===
|
|
2828
|
+
if (!t || t === _n.NULL) {
|
|
2839
2829
|
i = !0;
|
|
2840
|
-
let e = this._basicScopeAttributesProvider.getDefaultAttributes(), n = this.themeProvider.getDefaults(), r =
|
|
2841
|
-
o = a ? Y.createRootAndLookUpScopeName(a, r, this) : Y.createRoot("unknown", r), t = new
|
|
2830
|
+
let e = this._basicScopeAttributesProvider.getDefaultAttributes(), n = this.themeProvider.getDefaults(), r = L.set(0, e.languageId, e.tokenType, null, n.fontStyle, n.foregroundId, n.backgroundId), a = this.getRule(this._rootId).getName(null, null), o;
|
|
2831
|
+
o = a ? Y.createRootAndLookUpScopeName(a, r, this) : Y.createRoot("unknown", r), t = new _n(null, this._rootId, -1, -1, !1, null, o, o);
|
|
2842
2832
|
} else i = !1, t.reset();
|
|
2843
2833
|
e += "\n";
|
|
2844
|
-
let a = this.createOnigString(e), o = a.content.length, s = new
|
|
2845
|
-
return
|
|
2834
|
+
let a = this.createOnigString(e), o = a.content.length, s = new yn(n, e, this._tokenTypeMatchers, this.balancedBracketSelectors), c = rn(this, a, i, 0, t, s, !0, r);
|
|
2835
|
+
return At(a), {
|
|
2846
2836
|
lineLength: o,
|
|
2847
2837
|
lineTokens: s,
|
|
2848
2838
|
ruleStack: c.stack,
|
|
@@ -2850,8 +2840,8 @@ var _n = class {
|
|
|
2850
2840
|
};
|
|
2851
2841
|
}
|
|
2852
2842
|
};
|
|
2853
|
-
function
|
|
2854
|
-
return e =
|
|
2843
|
+
function gn(e, t) {
|
|
2844
|
+
return e = it(e), e.repository = e.repository || {}, e.repository.$self = {
|
|
2855
2845
|
$vscodeTextmateLocation: e.$vscodeTextmateLocation,
|
|
2856
2846
|
patterns: e.patterns,
|
|
2857
2847
|
name: e.scopeName
|
|
@@ -2863,15 +2853,15 @@ var Y = class e {
|
|
|
2863
2853
|
}
|
|
2864
2854
|
static fromExtension(t, n) {
|
|
2865
2855
|
let r = t, i = t?.scopePath ?? null;
|
|
2866
|
-
for (let t of n) i =
|
|
2856
|
+
for (let t of n) i = F.push(i, t.scopeNames), r = new e(r, i, t.encodedTokenAttributes);
|
|
2867
2857
|
return r;
|
|
2868
2858
|
}
|
|
2869
2859
|
static createRoot(t, n) {
|
|
2870
|
-
return new e(null, new
|
|
2860
|
+
return new e(null, new F(null, t), n);
|
|
2871
2861
|
}
|
|
2872
2862
|
static createRootAndLookUpScopeName(t, n, r) {
|
|
2873
|
-
let i = r.getMetadataForScope(t), a = new
|
|
2874
|
-
return new e(null, a,
|
|
2863
|
+
let i = r.getMetadataForScope(t), a = new F(null, t), o = r.themeProvider.themeMatch(a), s = e.mergeAttributes(n, i, o);
|
|
2864
|
+
return new e(null, a, s);
|
|
2875
2865
|
}
|
|
2876
2866
|
get scopeName() {
|
|
2877
2867
|
return this.scopePath.scopeName;
|
|
@@ -2891,7 +2881,7 @@ var Y = class e {
|
|
|
2891
2881
|
}
|
|
2892
2882
|
static mergeAttributes(e, t, n) {
|
|
2893
2883
|
let r = -1, i = 0, a = 0;
|
|
2894
|
-
return n !== null && (r = n.fontStyle, i = n.foregroundId, a = n.backgroundId),
|
|
2884
|
+
return n !== null && (r = n.fontStyle, i = n.foregroundId, a = n.backgroundId), L.set(e, t.languageId, t.tokenType, null, r, i, a);
|
|
2895
2885
|
}
|
|
2896
2886
|
pushAttributed(t, n) {
|
|
2897
2887
|
if (t === null) return this;
|
|
@@ -2901,8 +2891,8 @@ var Y = class e {
|
|
|
2901
2891
|
return i;
|
|
2902
2892
|
}
|
|
2903
2893
|
static _pushAttributed(t, n, r) {
|
|
2904
|
-
let i = r.getMetadataForScope(n), a = t.scopePath.push(n), o = r.themeProvider.themeMatch(a);
|
|
2905
|
-
return new e(t, a,
|
|
2894
|
+
let i = r.getMetadataForScope(n), a = t.scopePath.push(n), o = r.themeProvider.themeMatch(a), s = e.mergeAttributes(t.tokenAttributes, i, o);
|
|
2895
|
+
return new e(t, a, s);
|
|
2906
2896
|
}
|
|
2907
2897
|
getScopeNames() {
|
|
2908
2898
|
return this.scopePath.getSegments();
|
|
@@ -2915,7 +2905,7 @@ var Y = class e {
|
|
|
2915
2905
|
}), n = n.parent;
|
|
2916
2906
|
return n === e ? t.reverse() : void 0;
|
|
2917
2907
|
}
|
|
2918
|
-
},
|
|
2908
|
+
}, _n = class e {
|
|
2919
2909
|
constructor(e, t, n, r, i, a, o, s) {
|
|
2920
2910
|
this.parent = e, this.ruleId = t, this.beginRuleCapturedEOL = i, this.endRule = a, this.nameScopesList = o, this.contentNameScopesList = s, this.depth = this.parent ? this.parent.depth + 1 : 1, this._enterPos = n, this._anchorPos = r;
|
|
2921
2911
|
}
|
|
@@ -2998,12 +2988,12 @@ var Y = class e {
|
|
|
2998
2988
|
let r = Y.fromExtension(t?.nameScopesList ?? null, n.nameScopesList);
|
|
2999
2989
|
return new e(t, Gt(n.ruleId), n.enterPos ?? -1, n.anchorPos ?? -1, n.beginRuleCapturedEOL, n.endRule, r, Y.fromExtension(r, n.contentNameScopesList));
|
|
3000
2990
|
}
|
|
3001
|
-
},
|
|
2991
|
+
}, vn = class {
|
|
3002
2992
|
balancedBracketScopes;
|
|
3003
2993
|
unbalancedBracketScopes;
|
|
3004
2994
|
allowAny = !1;
|
|
3005
2995
|
constructor(e, t) {
|
|
3006
|
-
this.balancedBracketScopes = e.flatMap((e) => e === "*" ? (this.allowAny = !0, []) :
|
|
2996
|
+
this.balancedBracketScopes = e.flatMap((e) => e === "*" ? (this.allowAny = !0, []) : R(e, J).map((e) => e.matcher)), this.unbalancedBracketScopes = t.flatMap((e) => R(e, J).map((e) => e.matcher));
|
|
3007
2997
|
}
|
|
3008
2998
|
get matchesAlways() {
|
|
3009
2999
|
return this.allowAny && this.unbalancedBracketScopes.length === 0;
|
|
@@ -3016,7 +3006,7 @@ var Y = class e {
|
|
|
3016
3006
|
for (let t of this.balancedBracketScopes) if (t(e)) return !0;
|
|
3017
3007
|
return this.allowAny;
|
|
3018
3008
|
}
|
|
3019
|
-
},
|
|
3009
|
+
}, yn = class {
|
|
3020
3010
|
constructor(e, t, n, r) {
|
|
3021
3011
|
this.balancedBracketSelectors = r, this._emitBinaryTokens = e, this._tokenTypeOverrides = n, this._lineText = null, this._tokens = [], this._binaryTokens = [], this._lastTokenEndIndex = 0;
|
|
3022
3012
|
}
|
|
@@ -3035,10 +3025,10 @@ var Y = class e {
|
|
|
3035
3025
|
let n = e?.tokenAttributes ?? 0, r = !1;
|
|
3036
3026
|
if (this.balancedBracketSelectors?.matchesAlways && (r = !0), this._tokenTypeOverrides.length > 0 || this.balancedBracketSelectors && !this.balancedBracketSelectors.matchesAlways && !this.balancedBracketSelectors.matchesNever) {
|
|
3037
3027
|
let t = e?.getScopeNames() ?? [];
|
|
3038
|
-
for (let e of this._tokenTypeOverrides) e.matcher(t) && (n =
|
|
3028
|
+
for (let e of this._tokenTypeOverrides) e.matcher(t) && (n = L.set(n, 0, Et(e.type), null, -1, 0, 0));
|
|
3039
3029
|
this.balancedBracketSelectors && (r = this.balancedBracketSelectors.match(t));
|
|
3040
3030
|
}
|
|
3041
|
-
if (r && (n =
|
|
3031
|
+
if (r && (n = L.set(n, 0, 8, r, -1, 0, 0)), this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 1] === n) {
|
|
3042
3032
|
this._lastTokenEndIndex = t;
|
|
3043
3033
|
return;
|
|
3044
3034
|
}
|
|
@@ -3061,7 +3051,7 @@ var Y = class e {
|
|
|
3061
3051
|
for (let e = 0, t = this._binaryTokens.length; e < t; e++) n[e] = this._binaryTokens[e];
|
|
3062
3052
|
return n;
|
|
3063
3053
|
}
|
|
3064
|
-
},
|
|
3054
|
+
}, bn = class {
|
|
3065
3055
|
constructor(e, t) {
|
|
3066
3056
|
this._onigLib = t, this._theme = e;
|
|
3067
3057
|
}
|
|
@@ -3097,22 +3087,22 @@ var Y = class e {
|
|
|
3097
3087
|
if (!this._grammars.has(e)) {
|
|
3098
3088
|
let a = this._rawGrammars.get(e);
|
|
3099
3089
|
if (!a) return null;
|
|
3100
|
-
this._grammars.set(e,
|
|
3090
|
+
this._grammars.set(e, fn(e, a, t, n, r, i, this, this._onigLib));
|
|
3101
3091
|
}
|
|
3102
3092
|
return this._grammars.get(e);
|
|
3103
3093
|
}
|
|
3104
|
-
},
|
|
3094
|
+
}, xn = class {
|
|
3105
3095
|
_options;
|
|
3106
3096
|
_syncRegistry;
|
|
3107
3097
|
_ensureGrammarCache;
|
|
3108
3098
|
constructor(e) {
|
|
3109
|
-
this._options = e, this._syncRegistry = new
|
|
3099
|
+
this._options = e, this._syncRegistry = new bn(P.createFromRawTheme(e.theme, e.colorMap), e.onigLib), this._ensureGrammarCache = /* @__PURE__ */ new Map();
|
|
3110
3100
|
}
|
|
3111
3101
|
dispose() {
|
|
3112
3102
|
this._syncRegistry.dispose();
|
|
3113
3103
|
}
|
|
3114
3104
|
setTheme(e, t) {
|
|
3115
|
-
this._syncRegistry.setTheme(
|
|
3105
|
+
this._syncRegistry.setTheme(P.createFromRawTheme(e, t));
|
|
3116
3106
|
}
|
|
3117
3107
|
getColorMap() {
|
|
3118
3108
|
return this._syncRegistry.getColorMap();
|
|
@@ -3121,13 +3111,13 @@ var Y = class e {
|
|
|
3121
3111
|
return this.loadGrammarWithConfiguration(e, t, { embeddedLanguages: n });
|
|
3122
3112
|
}
|
|
3123
3113
|
loadGrammarWithConfiguration(e, t, n) {
|
|
3124
|
-
return this._loadGrammar(e, t, n.embeddedLanguages, n.tokenTypes, new
|
|
3114
|
+
return this._loadGrammar(e, t, n.embeddedLanguages, n.tokenTypes, new vn(n.balancedBracketSelectors || [], n.unbalancedBracketSelectors || []));
|
|
3125
3115
|
}
|
|
3126
3116
|
loadGrammar(e) {
|
|
3127
3117
|
return this._loadGrammar(e, 0, null, null, null);
|
|
3128
3118
|
}
|
|
3129
3119
|
_loadGrammar(e, t, n, r, i) {
|
|
3130
|
-
let a = new
|
|
3120
|
+
let a = new Nt(this._syncRegistry, e);
|
|
3131
3121
|
for (; a.Q.length > 0;) a.Q.map((e) => this._loadSingleGrammar(e.scopeName)), a.processQueue();
|
|
3132
3122
|
return this._grammarForScopeName(e, t, n, r, i);
|
|
3133
3123
|
}
|
|
@@ -3147,7 +3137,7 @@ var Y = class e {
|
|
|
3147
3137
|
_grammarForScopeName(e, t = 0, n = null, r = null, i = null) {
|
|
3148
3138
|
return this._syncRegistry.grammarForScopeName(e, t, n, r, i);
|
|
3149
3139
|
}
|
|
3150
|
-
},
|
|
3140
|
+
}, Sn = _n.NULL, Cn = [
|
|
3151
3141
|
"area",
|
|
3152
3142
|
"base",
|
|
3153
3143
|
"basefont",
|
|
@@ -3168,14 +3158,14 @@ var Y = class e {
|
|
|
3168
3158
|
"source",
|
|
3169
3159
|
"track",
|
|
3170
3160
|
"wbr"
|
|
3171
|
-
],
|
|
3172
|
-
function
|
|
3161
|
+
], wn = {}.hasOwnProperty;
|
|
3162
|
+
function Tn(e, t) {
|
|
3173
3163
|
let n = t || {};
|
|
3174
3164
|
function r(t, ...n) {
|
|
3175
3165
|
let i = r.invalid, a = r.handlers;
|
|
3176
|
-
if (t &&
|
|
3166
|
+
if (t && wn.call(t, e)) {
|
|
3177
3167
|
let n = String(t[e]);
|
|
3178
|
-
i =
|
|
3168
|
+
i = wn.call(a, n) ? a[n] : r.unknown;
|
|
3179
3169
|
}
|
|
3180
3170
|
if (i) return i.call(this, t, ...n);
|
|
3181
3171
|
}
|
|
@@ -3183,10 +3173,10 @@ function Dn(e, t) {
|
|
|
3183
3173
|
}
|
|
3184
3174
|
//#endregion
|
|
3185
3175
|
//#region ../../node_modules/.bun/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js
|
|
3186
|
-
var
|
|
3187
|
-
function
|
|
3188
|
-
if (e = e.replace(t.subset ?
|
|
3189
|
-
return e.replace(
|
|
3176
|
+
var En = /["&'<>`]/g, Dn = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, On = /[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g, kn = /[|\\{}()[\]^$+*?.]/g, An = /* @__PURE__ */ new WeakMap();
|
|
3177
|
+
function jn(e, t) {
|
|
3178
|
+
if (e = e.replace(t.subset ? Mn(t.subset) : En, r), t.subset || t.escapeOnly) return e;
|
|
3179
|
+
return e.replace(Dn, n).replace(On, r);
|
|
3190
3180
|
function n(e, n, r) {
|
|
3191
3181
|
return t.format((e.charCodeAt(0) - 55296) * 1024 + e.charCodeAt(1) - 56320 + 65536, r.charCodeAt(n + 2), t);
|
|
3192
3182
|
}
|
|
@@ -3194,32 +3184,32 @@ function Nn(e, t) {
|
|
|
3194
3184
|
return t.format(e.charCodeAt(0), r.charCodeAt(n + 1), t);
|
|
3195
3185
|
}
|
|
3196
3186
|
}
|
|
3197
|
-
function
|
|
3198
|
-
let t =
|
|
3199
|
-
return t || (t =
|
|
3187
|
+
function Mn(e) {
|
|
3188
|
+
let t = An.get(e);
|
|
3189
|
+
return t || (t = Nn(e), An.set(e, t)), t;
|
|
3200
3190
|
}
|
|
3201
|
-
function
|
|
3191
|
+
function Nn(e) {
|
|
3202
3192
|
let t = [], n = -1;
|
|
3203
|
-
for (; ++n < e.length;) t.push(e[n].replace(
|
|
3193
|
+
for (; ++n < e.length;) t.push(e[n].replace(kn, "\\$&"));
|
|
3204
3194
|
return RegExp("(?:" + t.join("|") + ")", "g");
|
|
3205
3195
|
}
|
|
3206
3196
|
//#endregion
|
|
3207
3197
|
//#region ../../node_modules/.bun/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.js
|
|
3208
|
-
var
|
|
3209
|
-
function
|
|
3198
|
+
var Pn = /[\dA-Fa-f]/;
|
|
3199
|
+
function Fn(e, t, n) {
|
|
3210
3200
|
let r = "&#x" + e.toString(16).toUpperCase();
|
|
3211
|
-
return n && t && !
|
|
3201
|
+
return n && t && !Pn.test(String.fromCharCode(t)) ? r : r + ";";
|
|
3212
3202
|
}
|
|
3213
3203
|
//#endregion
|
|
3214
3204
|
//#region ../../node_modules/.bun/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.js
|
|
3215
|
-
var
|
|
3216
|
-
function
|
|
3205
|
+
var In = /\d/;
|
|
3206
|
+
function Ln(e, t, n) {
|
|
3217
3207
|
let r = "&#" + String(e);
|
|
3218
|
-
return n && t && !
|
|
3208
|
+
return n && t && !In.test(String.fromCharCode(t)) ? r : r + ";";
|
|
3219
3209
|
}
|
|
3220
3210
|
//#endregion
|
|
3221
3211
|
//#region ../../node_modules/.bun/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js
|
|
3222
|
-
var
|
|
3212
|
+
var Rn = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml".split("."), zn = {
|
|
3223
3213
|
nbsp: "\xA0",
|
|
3224
3214
|
iexcl: "¡",
|
|
3225
3215
|
cent: "¢",
|
|
@@ -3472,7 +3462,7 @@ var Bn = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.C
|
|
|
3472
3462
|
lsaquo: "‹",
|
|
3473
3463
|
rsaquo: "›",
|
|
3474
3464
|
euro: "€"
|
|
3475
|
-
},
|
|
3465
|
+
}, Bn = [
|
|
3476
3466
|
"cent",
|
|
3477
3467
|
"copy",
|
|
3478
3468
|
"divide",
|
|
@@ -3481,23 +3471,23 @@ var Bn = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.C
|
|
|
3481
3471
|
"not",
|
|
3482
3472
|
"para",
|
|
3483
3473
|
"times"
|
|
3484
|
-
],
|
|
3485
|
-
for (X in
|
|
3486
|
-
var
|
|
3487
|
-
function
|
|
3474
|
+
], Vn = {}.hasOwnProperty, Hn = {}, X;
|
|
3475
|
+
for (X in zn) Vn.call(zn, X) && (Hn[zn[X]] = X);
|
|
3476
|
+
var Un = /[^\dA-Za-z]/;
|
|
3477
|
+
function Wn(e, t, n, r) {
|
|
3488
3478
|
let i = String.fromCharCode(e);
|
|
3489
|
-
if (
|
|
3490
|
-
let e =
|
|
3491
|
-
return n &&
|
|
3479
|
+
if (Vn.call(Hn, i)) {
|
|
3480
|
+
let e = Hn[i], a = "&" + e;
|
|
3481
|
+
return n && Rn.includes(e) && !Bn.includes(e) && (!r || t && t !== 61 && Un.test(String.fromCharCode(t))) ? a : a + ";";
|
|
3492
3482
|
}
|
|
3493
3483
|
return "";
|
|
3494
3484
|
}
|
|
3495
3485
|
//#endregion
|
|
3496
3486
|
//#region ../../node_modules/.bun/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.js
|
|
3497
|
-
function
|
|
3498
|
-
let r =
|
|
3499
|
-
if ((n.useNamedReferences || n.useShortestReferences) && (i =
|
|
3500
|
-
let i =
|
|
3487
|
+
function Gn(e, t, n) {
|
|
3488
|
+
let r = Fn(e, t, n.omitOptionalSemicolons), i;
|
|
3489
|
+
if ((n.useNamedReferences || n.useShortestReferences) && (i = Wn(e, t, n.omitOptionalSemicolons, n.attribute)), (n.useShortestReferences || !i) && n.useShortestReferences) {
|
|
3490
|
+
let i = Ln(e, t, n.omitOptionalSemicolons);
|
|
3501
3491
|
i.length < r.length && (r = i);
|
|
3502
3492
|
}
|
|
3503
3493
|
return i && (!n.useShortestReferences || i.length < r.length) ? i : r;
|
|
@@ -3505,25 +3495,25 @@ function qn(e, t, n) {
|
|
|
3505
3495
|
//#endregion
|
|
3506
3496
|
//#region ../../node_modules/.bun/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js
|
|
3507
3497
|
function Z(e, t) {
|
|
3508
|
-
return
|
|
3498
|
+
return jn(e, Object.assign({ format: Gn }, t));
|
|
3509
3499
|
}
|
|
3510
3500
|
//#endregion
|
|
3511
3501
|
//#region ../../node_modules/.bun/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.js
|
|
3512
|
-
var
|
|
3513
|
-
function
|
|
3514
|
-
return r.settings.bogusComments ? "<?" + Z(e.value, Object.assign({}, r.settings.characterReferences, { subset:
|
|
3502
|
+
var Kn = /^>|^->|<!--|-->|--!>|<!-$/g, qn = [">"], Jn = ["<", ">"];
|
|
3503
|
+
function Yn(e, t, n, r) {
|
|
3504
|
+
return r.settings.bogusComments ? "<?" + Z(e.value, Object.assign({}, r.settings.characterReferences, { subset: qn })) + ">" : "<!--" + e.value.replace(Kn, i) + "-->";
|
|
3515
3505
|
function i(e) {
|
|
3516
|
-
return Z(e, Object.assign({}, r.settings.characterReferences, { subset:
|
|
3506
|
+
return Z(e, Object.assign({}, r.settings.characterReferences, { subset: Jn }));
|
|
3517
3507
|
}
|
|
3518
3508
|
}
|
|
3519
3509
|
//#endregion
|
|
3520
3510
|
//#region ../../node_modules/.bun/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.js
|
|
3521
|
-
function
|
|
3511
|
+
function Xn(e, t, n, r) {
|
|
3522
3512
|
return "<!" + (r.settings.upperDoctype ? "DOCTYPE" : "doctype") + (r.settings.tightDoctype ? "" : " ") + "html>";
|
|
3523
3513
|
}
|
|
3524
3514
|
//#endregion
|
|
3525
3515
|
//#region ../../node_modules/.bun/ccount@2.0.1/node_modules/ccount/index.js
|
|
3526
|
-
function
|
|
3516
|
+
function Zn(e, t) {
|
|
3527
3517
|
let n = String(e);
|
|
3528
3518
|
if (typeof t != "string") throw TypeError("Expected character");
|
|
3529
3519
|
let r = 0, i = n.indexOf(t);
|
|
@@ -3532,120 +3522,120 @@ function $n(e, t) {
|
|
|
3532
3522
|
}
|
|
3533
3523
|
//#endregion
|
|
3534
3524
|
//#region ../../node_modules/.bun/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.js
|
|
3535
|
-
var Q =
|
|
3536
|
-
function
|
|
3525
|
+
var Q = er(1), Qn = er(-1), $n = [];
|
|
3526
|
+
function er(e) {
|
|
3537
3527
|
return t;
|
|
3538
3528
|
function t(t, n, r) {
|
|
3539
|
-
let i = t ? t.children :
|
|
3529
|
+
let i = t ? t.children : $n, a = (n || 0) + e, o = i[a];
|
|
3540
3530
|
if (!r) for (; o && d(o);) a += e, o = i[a];
|
|
3541
3531
|
return o;
|
|
3542
3532
|
}
|
|
3543
3533
|
}
|
|
3544
3534
|
//#endregion
|
|
3545
3535
|
//#region ../../node_modules/.bun/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.js
|
|
3546
|
-
var
|
|
3547
|
-
function
|
|
3536
|
+
var tr = {}.hasOwnProperty;
|
|
3537
|
+
function nr(e) {
|
|
3548
3538
|
return t;
|
|
3549
3539
|
function t(t, n, r) {
|
|
3550
|
-
return
|
|
3540
|
+
return tr.call(e, t.tagName) && e[t.tagName](t, n, r);
|
|
3551
3541
|
}
|
|
3552
3542
|
}
|
|
3553
3543
|
//#endregion
|
|
3554
3544
|
//#region ../../node_modules/.bun/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.js
|
|
3555
|
-
var
|
|
3556
|
-
body:
|
|
3557
|
-
caption:
|
|
3558
|
-
colgroup:
|
|
3559
|
-
dd:
|
|
3560
|
-
dt:
|
|
3561
|
-
head:
|
|
3562
|
-
html:
|
|
3563
|
-
li:
|
|
3564
|
-
optgroup:
|
|
3565
|
-
option:
|
|
3566
|
-
p:
|
|
3567
|
-
rp:
|
|
3568
|
-
rt:
|
|
3569
|
-
tbody:
|
|
3570
|
-
td:
|
|
3571
|
-
tfoot:
|
|
3572
|
-
th:
|
|
3573
|
-
thead:
|
|
3574
|
-
tr:
|
|
3545
|
+
var rr = nr({
|
|
3546
|
+
body: or,
|
|
3547
|
+
caption: ir,
|
|
3548
|
+
colgroup: ir,
|
|
3549
|
+
dd: ur,
|
|
3550
|
+
dt: lr,
|
|
3551
|
+
head: ir,
|
|
3552
|
+
html: ar,
|
|
3553
|
+
li: cr,
|
|
3554
|
+
optgroup: fr,
|
|
3555
|
+
option: pr,
|
|
3556
|
+
p: sr,
|
|
3557
|
+
rp: dr,
|
|
3558
|
+
rt: dr,
|
|
3559
|
+
tbody: hr,
|
|
3560
|
+
td: vr,
|
|
3561
|
+
tfoot: gr,
|
|
3562
|
+
th: vr,
|
|
3563
|
+
thead: mr,
|
|
3564
|
+
tr: _r
|
|
3575
3565
|
});
|
|
3576
|
-
function
|
|
3566
|
+
function ir(e, t, n) {
|
|
3577
3567
|
let r = Q(n, t, !0);
|
|
3578
3568
|
return !r || r.type !== "comment" && !(r.type === "text" && d(r.value.charAt(0)));
|
|
3579
3569
|
}
|
|
3580
|
-
function
|
|
3570
|
+
function ar(e, t, n) {
|
|
3581
3571
|
let r = Q(n, t);
|
|
3582
3572
|
return !r || r.type !== "comment";
|
|
3583
3573
|
}
|
|
3584
|
-
function
|
|
3574
|
+
function or(e, t, n) {
|
|
3585
3575
|
let r = Q(n, t);
|
|
3586
3576
|
return !r || r.type !== "comment";
|
|
3587
3577
|
}
|
|
3588
|
-
function
|
|
3578
|
+
function sr(e, t, n) {
|
|
3589
3579
|
let r = Q(n, t);
|
|
3590
3580
|
return r ? r.type === "element" && (r.tagName === "address" || r.tagName === "article" || r.tagName === "aside" || r.tagName === "blockquote" || r.tagName === "details" || r.tagName === "div" || r.tagName === "dl" || r.tagName === "fieldset" || r.tagName === "figcaption" || r.tagName === "figure" || r.tagName === "footer" || r.tagName === "form" || r.tagName === "h1" || r.tagName === "h2" || r.tagName === "h3" || r.tagName === "h4" || r.tagName === "h5" || r.tagName === "h6" || r.tagName === "header" || r.tagName === "hgroup" || r.tagName === "hr" || r.tagName === "main" || r.tagName === "menu" || r.tagName === "nav" || r.tagName === "ol" || r.tagName === "p" || r.tagName === "pre" || r.tagName === "section" || r.tagName === "table" || r.tagName === "ul") : !n || !(n.type === "element" && (n.tagName === "a" || n.tagName === "audio" || n.tagName === "del" || n.tagName === "ins" || n.tagName === "map" || n.tagName === "noscript" || n.tagName === "video"));
|
|
3591
3581
|
}
|
|
3592
|
-
function
|
|
3582
|
+
function cr(e, t, n) {
|
|
3593
3583
|
let r = Q(n, t);
|
|
3594
3584
|
return !r || r.type === "element" && r.tagName === "li";
|
|
3595
3585
|
}
|
|
3596
|
-
function
|
|
3586
|
+
function lr(e, t, n) {
|
|
3597
3587
|
let r = Q(n, t);
|
|
3598
3588
|
return !!(r && r.type === "element" && (r.tagName === "dt" || r.tagName === "dd"));
|
|
3599
3589
|
}
|
|
3600
|
-
function
|
|
3590
|
+
function ur(e, t, n) {
|
|
3601
3591
|
let r = Q(n, t);
|
|
3602
3592
|
return !r || r.type === "element" && (r.tagName === "dt" || r.tagName === "dd");
|
|
3603
3593
|
}
|
|
3604
|
-
function
|
|
3594
|
+
function dr(e, t, n) {
|
|
3605
3595
|
let r = Q(n, t);
|
|
3606
3596
|
return !r || r.type === "element" && (r.tagName === "rp" || r.tagName === "rt");
|
|
3607
3597
|
}
|
|
3608
|
-
function
|
|
3598
|
+
function fr(e, t, n) {
|
|
3609
3599
|
let r = Q(n, t);
|
|
3610
3600
|
return !r || r.type === "element" && r.tagName === "optgroup";
|
|
3611
3601
|
}
|
|
3612
|
-
function
|
|
3602
|
+
function pr(e, t, n) {
|
|
3613
3603
|
let r = Q(n, t);
|
|
3614
3604
|
return !r || r.type === "element" && (r.tagName === "option" || r.tagName === "optgroup");
|
|
3615
3605
|
}
|
|
3616
|
-
function
|
|
3606
|
+
function mr(e, t, n) {
|
|
3617
3607
|
let r = Q(n, t);
|
|
3618
3608
|
return !!(r && r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot"));
|
|
3619
3609
|
}
|
|
3620
|
-
function
|
|
3610
|
+
function hr(e, t, n) {
|
|
3621
3611
|
let r = Q(n, t);
|
|
3622
3612
|
return !r || r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot");
|
|
3623
3613
|
}
|
|
3624
|
-
function
|
|
3614
|
+
function gr(e, t, n) {
|
|
3625
3615
|
return !Q(n, t);
|
|
3626
3616
|
}
|
|
3627
|
-
function
|
|
3617
|
+
function _r(e, t, n) {
|
|
3628
3618
|
let r = Q(n, t);
|
|
3629
3619
|
return !r || r.type === "element" && r.tagName === "tr";
|
|
3630
3620
|
}
|
|
3631
|
-
function
|
|
3621
|
+
function vr(e, t, n) {
|
|
3632
3622
|
let r = Q(n, t);
|
|
3633
3623
|
return !r || r.type === "element" && (r.tagName === "td" || r.tagName === "th");
|
|
3634
3624
|
}
|
|
3635
3625
|
//#endregion
|
|
3636
3626
|
//#region ../../node_modules/.bun/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.js
|
|
3637
|
-
var
|
|
3638
|
-
body:
|
|
3639
|
-
colgroup:
|
|
3640
|
-
head:
|
|
3641
|
-
html:
|
|
3642
|
-
tbody:
|
|
3627
|
+
var yr = nr({
|
|
3628
|
+
body: Sr,
|
|
3629
|
+
colgroup: Cr,
|
|
3630
|
+
head: xr,
|
|
3631
|
+
html: br,
|
|
3632
|
+
tbody: wr
|
|
3643
3633
|
});
|
|
3644
|
-
function
|
|
3634
|
+
function br(e) {
|
|
3645
3635
|
let t = Q(e, -1);
|
|
3646
3636
|
return !t || t.type !== "comment";
|
|
3647
3637
|
}
|
|
3648
|
-
function
|
|
3638
|
+
function xr(e) {
|
|
3649
3639
|
let t = /* @__PURE__ */ new Set();
|
|
3650
3640
|
for (let n of e.children) if (n.type === "element" && (n.tagName === "base" || n.tagName === "title")) {
|
|
3651
3641
|
if (t.has(n.tagName)) return !1;
|
|
@@ -3654,17 +3644,17 @@ function Cr(e) {
|
|
|
3654
3644
|
let n = e.children[0];
|
|
3655
3645
|
return !n || n.type === "element";
|
|
3656
3646
|
}
|
|
3657
|
-
function
|
|
3647
|
+
function Sr(e) {
|
|
3658
3648
|
let t = Q(e, -1, !0);
|
|
3659
3649
|
return !t || t.type !== "comment" && !(t.type === "text" && d(t.value.charAt(0))) && !(t.type === "element" && (t.tagName === "meta" || t.tagName === "link" || t.tagName === "script" || t.tagName === "style" || t.tagName === "template"));
|
|
3660
3650
|
}
|
|
3661
|
-
function
|
|
3662
|
-
let r =
|
|
3663
|
-
return n && r && r.type === "element" && r.tagName === "colgroup" &&
|
|
3651
|
+
function Cr(e, t, n) {
|
|
3652
|
+
let r = Qn(n, t), i = Q(e, -1, !0);
|
|
3653
|
+
return n && r && r.type === "element" && r.tagName === "colgroup" && rr(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "col");
|
|
3664
3654
|
}
|
|
3665
|
-
function
|
|
3666
|
-
let r =
|
|
3667
|
-
return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") &&
|
|
3655
|
+
function wr(e, t, n) {
|
|
3656
|
+
let r = Qn(n, t), i = Q(e, -1);
|
|
3657
|
+
return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") && rr(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "tr");
|
|
3668
3658
|
}
|
|
3669
3659
|
//#endregion
|
|
3670
3660
|
//#region ../../node_modules/.bun/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js
|
|
@@ -3674,17 +3664,17 @@ var $ = {
|
|
|
3674
3664
|
single: [["&'".split(""), "\"&'`".split("")], ["\0&'".split(""), "\0\"&'`".split("")]],
|
|
3675
3665
|
double: [["\"&".split(""), "\"&'`".split("")], ["\0\"&".split(""), "\0\"&'`".split("")]]
|
|
3676
3666
|
};
|
|
3677
|
-
function
|
|
3667
|
+
function Tr(e, t, n, r) {
|
|
3678
3668
|
let i = r.schema, a = i.space === "svg" ? !1 : r.settings.omitOptionalTags, o = i.space === "svg" ? r.settings.closeEmptyElements : r.settings.voids.includes(e.tagName.toLowerCase()), s = [], c;
|
|
3679
|
-
i.space === "html" && e.tagName === "svg" && (r.schema =
|
|
3680
|
-
let l =
|
|
3681
|
-
return r.schema = i, u && (o = !1), (l || !a || !
|
|
3669
|
+
i.space === "html" && e.tagName === "svg" && (r.schema = O);
|
|
3670
|
+
let l = Er(r, e.properties), u = r.all(i.space === "html" && e.tagName === "template" ? e.content : e);
|
|
3671
|
+
return r.schema = i, u && (o = !1), (l || !a || !yr(e, t, n)) && (s.push("<", e.tagName, l ? " " + l : ""), o && (i.space === "svg" || r.settings.closeSelfClosing) && (c = l.charAt(l.length - 1), (!r.settings.tightSelfClosing || c === "/" || c && c !== "\"" && c !== "'") && s.push(" "), s.push("/")), s.push(">")), s.push(u), !o && (!a || !rr(e, t, n)) && s.push("</" + e.tagName + ">"), s.join("");
|
|
3682
3672
|
}
|
|
3683
|
-
function
|
|
3673
|
+
function Er(e, t) {
|
|
3684
3674
|
let n = [], r = -1, i;
|
|
3685
3675
|
if (t) {
|
|
3686
3676
|
for (i in t) if (t[i] !== null && t[i] !== void 0) {
|
|
3687
|
-
let r =
|
|
3677
|
+
let r = Dr(e, i, t[i]);
|
|
3688
3678
|
r && n.push(r);
|
|
3689
3679
|
}
|
|
3690
3680
|
}
|
|
@@ -3694,63 +3684,63 @@ function Or(e, t) {
|
|
|
3694
3684
|
}
|
|
3695
3685
|
return n.join("");
|
|
3696
3686
|
}
|
|
3697
|
-
function
|
|
3698
|
-
let r =
|
|
3687
|
+
function Dr(e, t, n) {
|
|
3688
|
+
let r = he(e.schema, t), a = e.settings.allowParseErrors && e.schema.space === "html" ? 0 : 1, o = +!e.settings.allowDangerousCharacters, s = e.quote, c;
|
|
3699
3689
|
if (r.overloadedBoolean && (n === r.attribute || n === "") ? n = !0 : (r.boolean || r.overloadedBoolean) && (typeof n != "string" || n === r.attribute || n === "") && (n = !!n), n == null || n === !1 || typeof n == "number" && Number.isNaN(n)) return "";
|
|
3700
3690
|
let l = Z(r.attribute, Object.assign({}, e.settings.characterReferences, { subset: $.name[a][o] }));
|
|
3701
|
-
return n === !0 || (n = Array.isArray(n) ? (r.commaSeparated ? i :
|
|
3691
|
+
return n === !0 || (n = Array.isArray(n) ? (r.commaSeparated ? i : be)(n, { padLeft: !e.settings.tightCommaSeparatedLists }) : String(n), e.settings.collapseEmptyAttributes && !n) ? l : (e.settings.preferUnquoted && (c = Z(n, Object.assign({}, e.settings.characterReferences, {
|
|
3702
3692
|
attribute: !0,
|
|
3703
3693
|
subset: $.unquoted[a][o]
|
|
3704
|
-
}))), c !== n && (e.settings.quoteSmart &&
|
|
3694
|
+
}))), c !== n && (e.settings.quoteSmart && Zn(n, s) > Zn(n, e.alternative) && (s = e.alternative), c = s + Z(n, Object.assign({}, e.settings.characterReferences, {
|
|
3705
3695
|
subset: (s === "'" ? $.single : $.double)[a][o],
|
|
3706
3696
|
attribute: !0
|
|
3707
3697
|
})) + s), l + (c && "=" + c));
|
|
3708
3698
|
}
|
|
3709
3699
|
//#endregion
|
|
3710
3700
|
//#region ../../node_modules/.bun/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.js
|
|
3711
|
-
var
|
|
3712
|
-
function
|
|
3713
|
-
return n && n.type === "element" && (n.tagName === "script" || n.tagName === "style") ? e.value : Z(e.value, Object.assign({}, r.settings.characterReferences, { subset:
|
|
3701
|
+
var Or = ["<", "&"];
|
|
3702
|
+
function kr(e, t, n, r) {
|
|
3703
|
+
return n && n.type === "element" && (n.tagName === "script" || n.tagName === "style") ? e.value : Z(e.value, Object.assign({}, r.settings.characterReferences, { subset: Or }));
|
|
3714
3704
|
}
|
|
3715
3705
|
//#endregion
|
|
3716
3706
|
//#region ../../node_modules/.bun/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.js
|
|
3717
|
-
function
|
|
3718
|
-
return r.settings.allowDangerousHtml ? e.value :
|
|
3707
|
+
function Ar(e, t, n, r) {
|
|
3708
|
+
return r.settings.allowDangerousHtml ? e.value : kr(e, t, n, r);
|
|
3719
3709
|
}
|
|
3720
3710
|
//#endregion
|
|
3721
3711
|
//#region ../../node_modules/.bun/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.js
|
|
3722
|
-
function
|
|
3712
|
+
function jr(e, t, n, r) {
|
|
3723
3713
|
return r.all(e);
|
|
3724
3714
|
}
|
|
3725
3715
|
//#endregion
|
|
3726
3716
|
//#region ../../node_modules/.bun/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.js
|
|
3727
|
-
var
|
|
3728
|
-
invalid:
|
|
3729
|
-
unknown:
|
|
3717
|
+
var Mr = Tn("type", {
|
|
3718
|
+
invalid: Nr,
|
|
3719
|
+
unknown: Pr,
|
|
3730
3720
|
handlers: {
|
|
3731
|
-
comment:
|
|
3732
|
-
doctype:
|
|
3733
|
-
element:
|
|
3734
|
-
raw:
|
|
3735
|
-
root:
|
|
3736
|
-
text:
|
|
3721
|
+
comment: Yn,
|
|
3722
|
+
doctype: Xn,
|
|
3723
|
+
element: Tr,
|
|
3724
|
+
raw: Ar,
|
|
3725
|
+
root: jr,
|
|
3726
|
+
text: kr
|
|
3737
3727
|
}
|
|
3738
3728
|
});
|
|
3739
|
-
function
|
|
3729
|
+
function Nr(e) {
|
|
3740
3730
|
throw Error("Expected node, not `" + e + "`");
|
|
3741
3731
|
}
|
|
3742
|
-
function
|
|
3732
|
+
function Pr(e) {
|
|
3743
3733
|
throw Error("Cannot compile unknown node `" + e.type + "`");
|
|
3744
3734
|
}
|
|
3745
3735
|
//#endregion
|
|
3746
3736
|
//#region ../../node_modules/.bun/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js
|
|
3747
|
-
var
|
|
3748
|
-
function
|
|
3749
|
-
let n = t ||
|
|
3737
|
+
var Fr = {}, Ir = {}, Lr = [];
|
|
3738
|
+
function Rr(e, t) {
|
|
3739
|
+
let n = t || Fr, r = n.quote || "\"", i = r === "\"" ? "'" : "\"";
|
|
3750
3740
|
if (r !== "\"" && r !== "'") throw Error("Invalid quote `" + r + "`, expected `'` or `\"`");
|
|
3751
3741
|
return {
|
|
3752
|
-
one:
|
|
3753
|
-
all:
|
|
3742
|
+
one: zr,
|
|
3743
|
+
all: Br,
|
|
3754
3744
|
settings: {
|
|
3755
3745
|
omitOptionalTags: n.omitOptionalTags || !1,
|
|
3756
3746
|
allowParseErrors: n.allowParseErrors || !1,
|
|
@@ -3765,12 +3755,12 @@ function Br(e, t) {
|
|
|
3765
3755
|
tightSelfClosing: n.tightSelfClosing || !1,
|
|
3766
3756
|
collapseEmptyAttributes: n.collapseEmptyAttributes || !1,
|
|
3767
3757
|
allowDangerousHtml: n.allowDangerousHtml || !1,
|
|
3768
|
-
voids: n.voids ||
|
|
3769
|
-
characterReferences: n.characterReferences ||
|
|
3758
|
+
voids: n.voids || Cn,
|
|
3759
|
+
characterReferences: n.characterReferences || Ir,
|
|
3770
3760
|
closeSelfClosing: n.closeSelfClosing || !1,
|
|
3771
3761
|
closeEmptyElements: n.closeEmptyElements || !1
|
|
3772
3762
|
},
|
|
3773
|
-
schema: n.space === "svg" ?
|
|
3763
|
+
schema: n.space === "svg" ? O : ve,
|
|
3774
3764
|
quote: r,
|
|
3775
3765
|
alternative: i
|
|
3776
3766
|
}.one(Array.isArray(e) ? {
|
|
@@ -3778,13 +3768,13 @@ function Br(e, t) {
|
|
|
3778
3768
|
children: e
|
|
3779
3769
|
} : e, void 0, void 0);
|
|
3780
3770
|
}
|
|
3781
|
-
function
|
|
3782
|
-
return
|
|
3771
|
+
function zr(e, t, n) {
|
|
3772
|
+
return Mr(e, t, n, this);
|
|
3783
3773
|
}
|
|
3784
|
-
function
|
|
3785
|
-
let t = [], n = e && e.children ||
|
|
3774
|
+
function Br(e) {
|
|
3775
|
+
let t = [], n = e && e.children || Lr, r = -1;
|
|
3786
3776
|
for (; ++r < n.length;) t[r] = this.one(n[r], r, e);
|
|
3787
3777
|
return t.join("");
|
|
3788
3778
|
}
|
|
3789
3779
|
//#endregion
|
|
3790
|
-
export { r as C, a as S,
|
|
3780
|
+
export { r as C, a as S, be as _, L as a, he as b, xn as c, A as d, Oe as f, ye as g, De as h, Cn as i, P as l, k as m, Zn as n, xt as o, Te as p, Tn as r, Sn as s, Rr as t, Le as u, ve as v, i as w, h as x, O as y };
|