@mhmo91/schmancy 0.2.201 → 0.2.203
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/ai/chips.md +89 -123
- package/dist/ai/chips.md +89 -123
- package/dist/{animated-text-Dr60iE4v.js → animated-text-C6NhnKME.js} +3 -3
- package/dist/{animated-text-Dr60iE4v.js.map → animated-text-C6NhnKME.js.map} +1 -1
- package/dist/{animated-text-IaaGcNeD.cjs → animated-text-ogUuAHr-.cjs} +2 -2
- package/dist/{animated-text-IaaGcNeD.cjs.map → animated-text-ogUuAHr-.cjs.map} +1 -1
- package/dist/animated-text.cjs +1 -1
- package/dist/animated-text.js +1 -1
- package/dist/area.cjs +1 -1
- package/dist/{area.component-C2dpnyWJ.cjs → area.component-DZTCiVg0.cjs} +3 -3
- package/dist/area.component-DZTCiVg0.cjs.map +1 -0
- package/dist/{area.component-FmOhHylt.js → area.component-i8iXPKv2.js} +4 -4
- package/dist/area.component-i8iXPKv2.js.map +1 -0
- package/dist/area.js +1 -1
- package/dist/{autocomplete-D1_1Gh-W.js → autocomplete-Dq1Pxspz.js} +3 -3
- package/dist/{autocomplete-D1_1Gh-W.js.map → autocomplete-Dq1Pxspz.js.map} +1 -1
- package/dist/{autocomplete-Bw-YykAE.cjs → autocomplete-z9uOvooM.cjs} +2 -2
- package/dist/{autocomplete-Bw-YykAE.cjs.map → autocomplete-z9uOvooM.cjs.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/{avatar-CkolR0PQ.cjs → avatar-Cm9kPvQn.cjs} +2 -2
- package/dist/{avatar-CkolR0PQ.cjs.map → avatar-Cm9kPvQn.cjs.map} +1 -1
- package/dist/{avatar-DWQCLmQc.js → avatar-VYno4W6t.js} +43 -43
- package/dist/{avatar-DWQCLmQc.js.map → avatar-VYno4W6t.js.map} +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat-BOprkgg-.cjs → boat-BOo_pv2K.cjs} +2 -2
- package/dist/{boat-BOprkgg-.cjs.map → boat-BOo_pv2K.cjs.map} +1 -1
- package/dist/{boat-C6361uOb.js → boat-CgpGIvFX.js} +3 -3
- package/dist/{boat-C6361uOb.js.map → boat-CgpGIvFX.js.map} +1 -1
- package/dist/boat.cjs +1 -1
- package/dist/boat.js +1 -1
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-DtU97oO6.cjs → checkbox-BTfPNnQb.cjs} +2 -2
- package/dist/{checkbox-DtU97oO6.cjs.map → checkbox-BTfPNnQb.cjs.map} +1 -1
- package/dist/{checkbox-CTo4qcmS.js → checkbox-DPGAcnM6.js} +2 -2
- package/dist/{checkbox-CTo4qcmS.js.map → checkbox-DPGAcnM6.js.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-CwwieBdF.cjs → chips-cwc7cbIb.cjs} +2 -2
- package/dist/{chips-CwwieBdF.cjs.map → chips-cwc7cbIb.cjs.map} +1 -1
- package/dist/{chips-DMvV4T1B.js → chips-lV1yS98U.js} +3 -3
- package/dist/{chips-DMvV4T1B.js.map → chips-lV1yS98U.js.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- package/dist/{circular-progress-B4TOfd8J.js → circular-progress-D_PctKnQ.js} +3 -3
- package/dist/{circular-progress-B4TOfd8J.js.map → circular-progress-D_PctKnQ.js.map} +1 -1
- package/dist/{circular-progress-D3Jt291j.cjs → circular-progress-X9P3e4Eu.cjs} +2 -2
- package/dist/{circular-progress-D3Jt291j.cjs.map → circular-progress-X9P3e4Eu.cjs.map} +1 -1
- package/dist/circular-progress.cjs +1 -1
- package/dist/circular-progress.js +1 -1
- package/dist/code-highlight.cjs +1 -1
- package/dist/code-highlight.js +1 -1
- package/dist/{code-preview-CGtqgdc7.js → code-preview-BAuQVO86.js} +129 -124
- package/dist/{code-preview-CGtqgdc7.js.map → code-preview-BAuQVO86.js.map} +1 -1
- package/dist/{code-preview-BWAcgpVl.cjs → code-preview-vWTFUBks.cjs} +14 -9
- package/dist/{code-preview-BWAcgpVl.cjs.map → code-preview-vWTFUBks.cjs.map} +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{date-range-BPWHcYDO.js → date-range-DdLg5GYf.js} +3 -3
- package/dist/{date-range-BPWHcYDO.js.map → date-range-DdLg5GYf.js.map} +1 -1
- package/dist/{date-range-CrCwkBhk.cjs → date-range-UDe-qzrM.cjs} +2 -2
- package/dist/{date-range-CrCwkBhk.cjs.map → date-range-UDe-qzrM.cjs.map} +1 -1
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-DBEPTzJx.cjs → delay-Bdt1Z39R.cjs} +2 -2
- package/dist/{delay-DBEPTzJx.cjs.map → delay-Bdt1Z39R.cjs.map} +1 -1
- package/dist/{delay-BRK6QqCQ.js → delay-C9NokNv8.js} +2 -2
- package/dist/{delay-BRK6QqCQ.js.map → delay-C9NokNv8.js.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{dialog-content-DTW-jlGG.cjs → dialog-content-BR9WwPo4.cjs} +2 -2
- package/dist/{dialog-content-DTW-jlGG.cjs.map → dialog-content-BR9WwPo4.cjs.map} +1 -1
- package/dist/{dialog-content-3jFhSjfz.js → dialog-content-Cbg_9SMr.js} +3 -3
- package/dist/{dialog-content-3jFhSjfz.js.map → dialog-content-Cbg_9SMr.js.map} +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{divider-CUiOCxcv.cjs → divider-BEakpSXw.cjs} +2 -2
- package/dist/{divider-CUiOCxcv.cjs.map → divider-BEakpSXw.cjs.map} +1 -1
- package/dist/{divider-DLedYg2o.js → divider-BMdGT621.js} +3 -3
- package/dist/{divider-DLedYg2o.js.map → divider-BMdGT621.js.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-rLIDGVfK.cjs → dropdown-content-BtocjSsb.cjs} +2 -2
- package/dist/{dropdown-content-rLIDGVfK.cjs.map → dropdown-content-BtocjSsb.cjs.map} +1 -1
- package/dist/{dropdown-content-CHcK5vDp.js → dropdown-content-DQD8TJaD.js} +3 -3
- package/dist/{dropdown-content-CHcK5vDp.js.map → dropdown-content-DQD8TJaD.js.map} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/extra.cjs +1 -1
- package/dist/extra.js +1 -1
- package/dist/{flex-aKz0Ms65.cjs → flex-Dmn8v3mn.cjs} +2 -2
- package/dist/{flex-aKz0Ms65.cjs.map → flex-Dmn8v3mn.cjs.map} +1 -1
- package/dist/{flex-DDmzufXs.js → flex-Dw702rmj.js} +2 -2
- package/dist/{flex-DDmzufXs.js.map → flex-Dw702rmj.js.map} +1 -1
- package/dist/{form-BfeOUZjw.cjs → form-BrDcpWmJ.cjs} +2 -2
- package/dist/{form-BfeOUZjw.cjs.map → form-BrDcpWmJ.cjs.map} +1 -1
- package/dist/{form-CWCw7gLZ.js → form-D_AZUEHR.js} +2 -2
- package/dist/{form-CWCw7gLZ.js.map → form-D_AZUEHR.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{icon-DfDdy5YY.js → icon-Be5FlbNd.js} +2 -2
- package/dist/{icon-DfDdy5YY.js.map → icon-Be5FlbNd.js.map} +1 -1
- package/dist/{icon-DOMq_VrC.cjs → icon-Cj1u0n_a.cjs} +2 -2
- package/dist/{icon-DOMq_VrC.cjs.map → icon-Cj1u0n_a.cjs.map} +1 -1
- package/dist/{icon-button-BWO3kLWC.cjs → icon-button-BC1rxqaG.cjs} +2 -2
- package/dist/{icon-button-BWO3kLWC.cjs.map → icon-button-BC1rxqaG.cjs.map} +1 -1
- package/dist/{icon-button-Cq0E6Y7I.js → icon-button-DUXi9CUe.js} +3 -3
- package/dist/{icon-button-Cq0E6Y7I.js.map → icon-button-DUXi9CUe.js.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +41 -41
- package/dist/{input-BBi8YkYi.cjs → input-BSOQZoPV.cjs} +2 -2
- package/dist/{input-BBi8YkYi.cjs.map → input-BSOQZoPV.cjs.map} +1 -1
- package/dist/{input-DVdHjbNu.js → input-DwB1S4YZ.js} +2 -2
- package/dist/{input-DVdHjbNu.js.map → input-DwB1S4YZ.js.map} +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/{list-ByACnM5l.js → list-B-HxDXEd.js} +2 -2
- package/dist/{list-ByACnM5l.js.map → list-B-HxDXEd.js.map} +1 -1
- package/dist/{list-Bh9W7eBM.cjs → list-BG2rz5PS.cjs} +2 -2
- package/dist/{list-Bh9W7eBM.cjs.map → list-BG2rz5PS.cjs.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-BHvj00po.js → litElement.mixin-Bo7dfT3z.js} +2 -2
- package/dist/{litElement.mixin-BHvj00po.js.map → litElement.mixin-Bo7dfT3z.js.map} +1 -1
- package/dist/{litElement.mixin-Bk1VBCai.cjs → litElement.mixin-ELpkmWiH.cjs} +2 -2
- package/dist/{litElement.mixin-Bk1VBCai.cjs.map → litElement.mixin-ELpkmWiH.cjs.map} +1 -1
- package/dist/{menu-BIrEM0LW.cjs → menu-8hKcVCgl.cjs} +2 -2
- package/dist/{menu-BIrEM0LW.cjs.map → menu-8hKcVCgl.cjs.map} +1 -1
- package/dist/{menu-B0W8bS5x.js → menu-ACoDjBeN.js} +3 -3
- package/dist/{menu-B0W8bS5x.js.map → menu-ACoDjBeN.js.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/{notification-service-C8rKbKf8.js → notification-service-NA_EhllE.js} +3 -3
- package/dist/{notification-service-C8rKbKf8.js.map → notification-service-NA_EhllE.js.map} +1 -1
- package/dist/{notification-service-DID_WpGV.cjs → notification-service-pD7XLnQI.cjs} +2 -2
- package/dist/{notification-service-DID_WpGV.cjs.map → notification-service-pD7XLnQI.cjs.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-BlDPqrw1.cjs → option-B3O-fzAa.cjs} +2 -2
- package/dist/{option-BlDPqrw1.cjs.map → option-B3O-fzAa.cjs.map} +1 -1
- package/dist/{option-Cz1zyVde.js → option-DsCPYfpI.js} +2 -2
- package/dist/{option-Cz1zyVde.js.map → option-DsCPYfpI.js.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-Ct3M1hzR.cjs → payment-card-form-DDwFPRF7.cjs} +2 -2
- package/dist/{payment-card-form-Ct3M1hzR.cjs.map → payment-card-form-DDwFPRF7.cjs.map} +1 -1
- package/dist/{payment-card-form-CL8RwARO.js → payment-card-form-DHBuFtC3.js} +3 -3
- package/dist/{payment-card-form-CL8RwARO.js.map → payment-card-form-DHBuFtC3.js.map} +1 -1
- package/dist/{radio-button-BHeHYYA3.cjs → radio-button-CY_bJLYp.cjs} +2 -2
- package/dist/{radio-button-BHeHYYA3.cjs.map → radio-button-CY_bJLYp.cjs.map} +1 -1
- package/dist/{radio-button-CzA6BGJT.js → radio-button-CqIQF1OI.js} +2 -2
- package/dist/{radio-button-CzA6BGJT.js.map → radio-button-CqIQF1OI.js.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{schmancy-steps-container-CTgSYtS0.js → schmancy-steps-container-CmssPjCo.js} +2 -2
- package/dist/{schmancy-steps-container-CTgSYtS0.js.map → schmancy-steps-container-CmssPjCo.js.map} +1 -1
- package/dist/{schmancy-steps-container-Cl_oWCxT.cjs → schmancy-steps-container-Dj5B_eS0.cjs} +2 -2
- package/dist/{schmancy-steps-container-Cl_oWCxT.cjs.map → schmancy-steps-container-Dj5B_eS0.cjs.map} +1 -1
- package/dist/{select-BerRDrTL.cjs → select-C5Gjb2st.cjs} +2 -2
- package/dist/{select-BerRDrTL.cjs.map → select-C5Gjb2st.cjs.map} +1 -1
- package/dist/{select-DAMjx78G.js → select-DPB6LNWA.js} +3 -3
- package/dist/{select-DAMjx78G.js.map → select-DPB6LNWA.js.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-YHSlWQRv.cjs → sheet-DdIdtcIT.cjs} +2 -2
- package/dist/{sheet-YHSlWQRv.cjs.map → sheet-DdIdtcIT.cjs.map} +1 -1
- package/dist/{sheet-CrGvhxN3.js → sheet-DgdFEafN.js} +3 -3
- package/dist/{sheet-CrGvhxN3.js.map → sheet-DgdFEafN.js.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-CiRA-NEX.cjs → slider-BY7ZPg8k.cjs} +2 -2
- package/dist/{slider-CiRA-NEX.cjs.map → slider-BY7ZPg8k.cjs.map} +1 -1
- package/dist/{slider-BMijf5Js.js → slider-BhjD0lK9.js} +3 -3
- package/dist/{slider-BMijf5Js.js.map → slider-BhjD0lK9.js.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-uFgJCTW9.cjs → spinner-D_8I5QZd.cjs} +2 -2
- package/dist/{spinner-uFgJCTW9.cjs.map → spinner-D_8I5QZd.cjs.map} +1 -1
- package/dist/{spinner-FEk-Ttf7.js → spinner-DqTOWFQD.js} +3 -3
- package/dist/{spinner-FEk-Ttf7.js.map → spinner-DqTOWFQD.js.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{surface-AwNWjIdg.cjs → surface-D61K-ItN.cjs} +3 -3
- package/dist/{surface-AwNWjIdg.cjs.map → surface-D61K-ItN.cjs.map} +1 -1
- package/dist/{surface-BVF_3RnX.js → surface-Dw8305KR.js} +3 -3
- package/dist/{surface-BVF_3RnX.js.map → surface-Dw8305KR.js.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-CSCZMivU.js → table-B3QFHVvN.js} +2 -2
- package/dist/{table-CSCZMivU.js.map → table-B3QFHVvN.js.map} +1 -1
- package/dist/{table-D6sHLyxt.cjs → table-EfuHHTwt.cjs} +2 -2
- package/dist/{table-D6sHLyxt.cjs.map → table-EfuHHTwt.cjs.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-tx3PViNI.js → tabs-compatibility-BMuS5WrG.js} +2 -2
- package/dist/{tabs-compatibility-tx3PViNI.js.map → tabs-compatibility-BMuS5WrG.js.map} +1 -1
- package/dist/{tabs-compatibility-Dlij_WIx.cjs → tabs-compatibility-C_AbeQZJ.cjs} +2 -2
- package/dist/{tabs-compatibility-Dlij_WIx.cjs.map → tabs-compatibility-C_AbeQZJ.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-DK3nrJs-.js +43 -0
- package/dist/{tailwind.mixin-C3BFeflA.js.map → tailwind.mixin-DK3nrJs-.js.map} +1 -1
- package/dist/tailwind.mixin-DUe4ADKX.cjs +2 -0
- package/dist/{tailwind.mixin-Xs0QJUOE.cjs.map → tailwind.mixin-DUe4ADKX.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-Cam1Bejh.js → textarea-7h0HShQR.js} +2 -2
- package/dist/{textarea-Cam1Bejh.js.map → textarea-7h0HShQR.js.map} +1 -1
- package/dist/{textarea-qDsdI_sm.cjs → textarea-CD2XNMnM.cjs} +2 -2
- package/dist/{textarea-qDsdI_sm.cjs.map → textarea-CD2XNMnM.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-B3jMXzi4.cjs → theme-button-B-vpp1dq.cjs} +2 -2
- package/dist/{theme-button-B3jMXzi4.cjs.map → theme-button-B-vpp1dq.cjs.map} +1 -1
- package/dist/{theme-button-delusSKh.js → theme-button-VhAr3UYc.js} +2 -2
- package/dist/{theme-button-delusSKh.js.map → theme-button-VhAr3UYc.js.map} +1 -1
- package/dist/theme-button.cjs +1 -1
- package/dist/theme-button.js +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/{theme.component-C9jqo1WB.cjs → theme.component--s3cWu_k.cjs} +2 -2
- package/dist/{theme.component-C9jqo1WB.cjs.map → theme.component--s3cWu_k.cjs.map} +1 -1
- package/dist/{theme.component-D3rDl8K0.js → theme.component-ik0h6HFq.js} +2 -2
- package/dist/{theme.component-D3rDl8K0.js.map → theme.component-ik0h6HFq.js.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-B9QDIwnj.cjs → timezone-9357oWpA.cjs} +2 -2
- package/dist/{timezone-B9QDIwnj.cjs.map → timezone-9357oWpA.cjs.map} +1 -1
- package/dist/{timezone-rultNrNC.js → timezone-BWBf76zb.js} +3 -3
- package/dist/{timezone-rultNrNC.js.map → timezone-BWBf76zb.js.map} +1 -1
- package/dist/{tooltip-DLqcf-Co.cjs → tooltip-BzRGzM4m.cjs} +2 -2
- package/dist/{tooltip-DLqcf-Co.cjs.map → tooltip-BzRGzM4m.cjs.map} +1 -1
- package/dist/{tooltip-CmBYAmna.js → tooltip-DTFl4_O8.js} +2 -2
- package/dist/{tooltip-CmBYAmna.js.map → tooltip-DTFl4_O8.js.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-Bqxzo_84.js → tree-2DZOmw8x.js} +2 -2
- package/dist/{tree-Bqxzo_84.js.map → tree-2DZOmw8x.js.map} +1 -1
- package/dist/{tree-DTO2h6VT.cjs → tree-DiuMa-E3.cjs} +2 -2
- package/dist/{tree-DTO2h6VT.cjs.map → tree-DiuMa-E3.cjs.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-BHnCxd9O.js → typewriter-Cv9vvTSz.js} +4 -4
- package/dist/{typewriter-BHnCxd9O.js.map → typewriter-Cv9vvTSz.js.map} +1 -1
- package/dist/{typewriter-Bw0LLuVh.cjs → typewriter-D3mIe5Fd.cjs} +2 -2
- package/dist/{typewriter-Bw0LLuVh.cjs.map → typewriter-D3mIe5Fd.cjs.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/typography-BHkdocbi.js +304 -0
- package/dist/typography-BHkdocbi.js.map +1 -0
- package/dist/typography-CJxLMGmy.cjs +286 -0
- package/dist/typography-CJxLMGmy.cjs.map +1 -0
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +15 -15
- package/types/src/area/area.component.d.ts +1 -1
- package/types/src/area/router.types.d.ts +1 -1
- package/types/src/surface/surface.d.ts +1 -1
- package/types/src/typography/typography.d.ts +7 -10
- package/dist/area.component-C2dpnyWJ.cjs.map +0 -1
- package/dist/area.component-FmOhHylt.js.map +0 -1
- package/dist/tailwind.mixin-C3BFeflA.js +0 -43
- package/dist/tailwind.mixin-Xs0QJUOE.cjs +0 -2
- package/dist/typography-BLd8VN8Q.cjs +0 -10
- package/dist/typography-BLd8VN8Q.cjs.map +0 -1
- package/dist/typography-ClEPUgIN.js +0 -37
- package/dist/typography-ClEPUgIN.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "rxjs";
|
|
2
2
|
import "lit/directives/class-map.js";
|
|
3
3
|
import "lit/directives/style-map.js";
|
|
4
|
-
import { T as
|
|
5
|
-
import { css as
|
|
6
|
-
import { property as ye, state as
|
|
4
|
+
import { T as on } from "./tailwind.mixin-DK3nrJs-.js";
|
|
5
|
+
import { css as sn, html as He } from "lit";
|
|
6
|
+
import { property as ye, state as cn, customElement as ln } from "lit/decorators.js";
|
|
7
7
|
import { g as In } from "./_commonjsHelpers-Dw9sPFZy.js";
|
|
8
8
|
var Ue, tn;
|
|
9
9
|
function Ln() {
|
|
@@ -175,13 +175,13 @@ function Ln() {
|
|
|
175
175
|
return u;
|
|
176
176
|
}).map((d) => `(${d})`).join(n);
|
|
177
177
|
}
|
|
178
|
-
const re = "[a-zA-Z]\\w*", W = "[a-zA-Z_]\\w*", H = "\\b\\d+(\\.\\d+)?", ve = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",
|
|
178
|
+
const re = "[a-zA-Z]\\w*", W = "[a-zA-Z_]\\w*", H = "\\b\\d+(\\.\\d+)?", ve = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", oe = "\\b(0b[01]+)", Q = { begin: "\\\\[\\s\\S]", relevance: 0 }, xe = { scope: "string", begin: "'", end: "'", illegal: "\\n", contains: [Q] }, ue = { scope: "string", begin: '"', end: '"', illegal: "\\n", contains: [Q] }, se = function(e, n, a = {}) {
|
|
179
179
|
const d = f({ scope: "comment", begin: e, end: n, contains: [] }, a);
|
|
180
180
|
d.contains.push({ scope: "doctag", begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)", end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/, excludeBegin: !0, relevance: 0 });
|
|
181
181
|
const E = F("I", "a", "is", "so", "us", "to", "at", "if", "in", "it", "on", /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, /[A-Za-z]+[-][a-z]+/, /[A-Za-z][a-z]{2,}/);
|
|
182
182
|
return d.contains.push({ begin: P(/[ ]+/, "(", E, /[.]?[:]?([.][ ]|[ ])/, "){3}") }), d;
|
|
183
|
-
}, ke =
|
|
184
|
-
var ce = Object.freeze({ __proto__: null, APOS_STRING_MODE: xe, BACKSLASH_ESCAPE: Q, BINARY_NUMBER_MODE: ee, BINARY_NUMBER_RE:
|
|
183
|
+
}, ke = se("//", "$"), he = se("/\\*", "\\*/"), _e = se("#", "$"), L = { scope: "number", begin: H, relevance: 0 }, Y = { scope: "number", begin: ve, relevance: 0 }, ee = { scope: "number", begin: oe, relevance: 0 }, ne = { scope: "regexp", begin: /\/(?=[^/\n]*\/)/, end: /\/[gimuy]*/, contains: [Q, { begin: /\[/, end: /\]/, relevance: 0, contains: [Q] }] }, te = { scope: "title", begin: re, relevance: 0 }, pe = { scope: "title", begin: W, relevance: 0 }, me = { begin: "\\.\\s*" + W, relevance: 0 };
|
|
184
|
+
var ce = Object.freeze({ __proto__: null, APOS_STRING_MODE: xe, BACKSLASH_ESCAPE: Q, BINARY_NUMBER_MODE: ee, BINARY_NUMBER_RE: oe, COMMENT: se, C_BLOCK_COMMENT_MODE: he, C_LINE_COMMENT_MODE: ke, C_NUMBER_MODE: Y, C_NUMBER_RE: ve, END_SAME_AS_BEGIN: function(e) {
|
|
185
185
|
return Object.assign(e, { "on:begin": (n, a) => {
|
|
186
186
|
a.data._beginMatch = n[1];
|
|
187
187
|
}, "on:end": (n, a) => {
|
|
@@ -196,32 +196,32 @@ function Ln() {
|
|
|
196
196
|
function Ne(e, n) {
|
|
197
197
|
e.input[e.index - 1] === "." && n.ignoreMatch();
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function wn(e, n) {
|
|
200
200
|
e.className !== void 0 && (e.scope = e.className, delete e.className);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function En(e, n) {
|
|
203
203
|
n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.i = Ne, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function xn(e, n) {
|
|
206
206
|
Array.isArray(e.illegal) && (e.illegal = F(...e.illegal));
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function kn(e, n) {
|
|
209
209
|
if (e.match) {
|
|
210
210
|
if (e.begin || e.end) throw new Error("begin & end are not supported with match");
|
|
211
211
|
e.begin = e.match, delete e.match;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function _n(e, n) {
|
|
215
215
|
e.relevance === void 0 && (e.relevance = 1);
|
|
216
216
|
}
|
|
217
|
-
const
|
|
217
|
+
const Nn = (e, n) => {
|
|
218
218
|
if (!e.beforeMatch) return;
|
|
219
219
|
if (e.starts) throw new Error("beforeMatch cannot be used with starts");
|
|
220
220
|
const a = Object.assign({}, e);
|
|
221
221
|
Object.keys(e).forEach((d) => {
|
|
222
222
|
delete e[d];
|
|
223
223
|
}), e.keywords = a.keywords, e.begin = P(a.beforeMatch, G(a.begin)), e.starts = { relevance: 0, contains: [Object.assign(a, { endsParent: !0 })] }, e.relevance = 0, delete a.beforeMatch;
|
|
224
|
-
},
|
|
224
|
+
}, An = ["of", "and", "for", "in", "not", "or", "if", "then", "parent", "list", "value"];
|
|
225
225
|
function Ze(e, n, a = "keyword") {
|
|
226
226
|
const d = /* @__PURE__ */ Object.create(null);
|
|
227
227
|
return typeof e == "string" ? E(a, e.split(" ")) : Array.isArray(e) ? E(a, e) : Object.keys(e).forEach(function(r) {
|
|
@@ -230,13 +230,13 @@ function Ln() {
|
|
|
230
230
|
function E(r, u) {
|
|
231
231
|
n && (u = u.map((c) => c.toLowerCase())), u.forEach(function(c) {
|
|
232
232
|
const j = c.split("|");
|
|
233
|
-
d[j[0]] = [r,
|
|
233
|
+
d[j[0]] = [r, Sn(j[0], j[1])];
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Sn(e, n) {
|
|
238
238
|
return n ? Number(n) : function(a) {
|
|
239
|
-
return
|
|
239
|
+
return An.includes(a.toLowerCase());
|
|
240
240
|
}(e) ? 0 : 1;
|
|
241
241
|
}
|
|
242
242
|
const Ge = {}, we = (e, n) => {
|
|
@@ -248,7 +248,7 @@ function Ln() {
|
|
|
248
248
|
for (let c = 1; c <= n.length; c++) u[c + d] = E[c], r[c + d] = !0, d += K(n[c - 1]);
|
|
249
249
|
e[a] = u, e[a]._emit = r, e[a]._multi = !0;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function On(e) {
|
|
252
252
|
(function(n) {
|
|
253
253
|
n.scope && typeof n.scope == "object" && n.scope !== null && (n.beginScope = n.scope, delete n.scope);
|
|
254
254
|
})(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), function(n) {
|
|
@@ -263,7 +263,7 @@ function Ln() {
|
|
|
263
263
|
}
|
|
264
264
|
}(e);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Mn(e) {
|
|
267
267
|
function n(E, r) {
|
|
268
268
|
return new RegExp(D(E), "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (r ? "g" : ""));
|
|
269
269
|
}
|
|
@@ -320,7 +320,7 @@ function Ln() {
|
|
|
320
320
|
return e.classNameAliases = f(e.classNameAliases || {}), function E(r, u) {
|
|
321
321
|
const c = r;
|
|
322
322
|
if (r.isCompiled) return c;
|
|
323
|
-
[
|
|
323
|
+
[wn, kn, On, Nn].forEach((S) => S(r, u)), e.compilerExtensions.forEach((S) => S(r, u)), r.i = null, [En, xn, _n].forEach((S) => S(r, u)), r.isCompiled = !0;
|
|
324
324
|
let j = null;
|
|
325
325
|
return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), j = r.keywords.$pattern, delete r.keywords.$pattern), j = j || /\w+/, r.keywords && (r.keywords = Ze(r.keywords, e.case_insensitive)), c.keywordPatternRe = n(j, !0), u && (r.begin || (r.begin = /\B|\b/), c.beginRe = n(c.begin), r.end || r.endsWithParent || (r.end = /\B|\b/), r.end && (c.endRe = n(c.end)), c.terminatorEnd = D(c.end) || "", r.endsWithParent && u.terminatorEnd && (c.terminatorEnd += (r.end ? "|" : "") + u.terminatorEnd)), r.illegal && (c.illegalRe = n(r.illegal)), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(S) {
|
|
326
326
|
return function(_) {
|
|
@@ -339,7 +339,7 @@ function Ln() {
|
|
|
339
339
|
function Ke(e) {
|
|
340
340
|
return !!e && (e.endsWithParent || Ke(e.starts));
|
|
341
341
|
}
|
|
342
|
-
class
|
|
342
|
+
class Rn extends Error {
|
|
343
343
|
constructor(n, a) {
|
|
344
344
|
super(n), this.name = "HTMLInjectionError", this.html = a;
|
|
345
345
|
}
|
|
@@ -349,27 +349,27 @@ function Ln() {
|
|
|
349
349
|
let E = !0;
|
|
350
350
|
const r = "Could not find the language '{}', did you forget to load/include a language module?", u = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
351
351
|
let c = { ignoreUnescapedHTML: !1, throwUnescapedHTML: !1, noHighlightRe: /^(no-?highlight)$/i, languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i, classPrefix: "hljs-", cssSelector: "pre code", languages: null, o: M };
|
|
352
|
-
function j(
|
|
353
|
-
return c.noHighlightRe.test(
|
|
352
|
+
function j(s) {
|
|
353
|
+
return c.noHighlightRe.test(s);
|
|
354
354
|
}
|
|
355
|
-
function S(
|
|
355
|
+
function S(s, h, y) {
|
|
356
356
|
let B = "", R = "";
|
|
357
|
-
typeof h == "object" ? (B =
|
|
358
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), R =
|
|
357
|
+
typeof h == "object" ? (B = s, y = h.ignoreIllegals, R = h.language) : (we("10.7.0", "highlight(lang, code, ...args) has been deprecated."), we("10.7.0", `Please use highlight(code, options) instead.
|
|
358
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), R = s, B = h), y === void 0 && (y = !0);
|
|
359
359
|
const C = { code: B, language: R };
|
|
360
360
|
Me("before:highlight", C);
|
|
361
361
|
const I = C.result ? C.result : _(C.language, C.code, y);
|
|
362
362
|
return I.code = C.code, Me("after:highlight", I), I;
|
|
363
363
|
}
|
|
364
|
-
function _(
|
|
364
|
+
function _(s, h, y, B) {
|
|
365
365
|
const R = /* @__PURE__ */ Object.create(null);
|
|
366
366
|
function C() {
|
|
367
367
|
if (!p.keywords) return void z.addText(k);
|
|
368
|
-
let
|
|
368
|
+
let o = 0;
|
|
369
369
|
p.keywordPatternRe.lastIndex = 0;
|
|
370
370
|
let g = p.keywordPatternRe.exec(k), x = "";
|
|
371
371
|
for (; g; ) {
|
|
372
|
-
x += k.substring(
|
|
372
|
+
x += k.substring(o, g.index);
|
|
373
373
|
const N = J.case_insensitive ? g[0].toLowerCase() : g[0], $ = (w = N, p.keywords[w]);
|
|
374
374
|
if ($) {
|
|
375
375
|
const [ie, Pe] = $;
|
|
@@ -379,84 +379,84 @@ https://github.com/highlightjs/highlight.js/issues/2277`), R = o, B = h), y ===
|
|
|
379
379
|
Z(g[0], je);
|
|
380
380
|
}
|
|
381
381
|
} else x += g[0];
|
|
382
|
-
|
|
382
|
+
o = p.keywordPatternRe.lastIndex, g = p.keywordPatternRe.exec(k);
|
|
383
383
|
}
|
|
384
384
|
var w;
|
|
385
|
-
x += k.substring(
|
|
385
|
+
x += k.substring(o), z.addText(x);
|
|
386
386
|
}
|
|
387
387
|
function I() {
|
|
388
388
|
p.subLanguage != null ? function() {
|
|
389
389
|
if (k === "") return;
|
|
390
|
-
let
|
|
390
|
+
let o = null;
|
|
391
391
|
if (typeof p.subLanguage == "string") {
|
|
392
392
|
if (!n[p.subLanguage]) return void z.addText(k);
|
|
393
|
-
|
|
394
|
-
} else
|
|
395
|
-
p.relevance > 0 && (Te +=
|
|
393
|
+
o = _(p.subLanguage, k, !0, nn[p.subLanguage]), nn[p.subLanguage] = o._top;
|
|
394
|
+
} else o = le(k, p.subLanguage.length ? p.subLanguage : null);
|
|
395
|
+
p.relevance > 0 && (Te += o.relevance), z.t(o._emitter, o.language);
|
|
396
396
|
}() : C(), k = "";
|
|
397
397
|
}
|
|
398
|
-
function Z(
|
|
399
|
-
|
|
398
|
+
function Z(o, g) {
|
|
399
|
+
o !== "" && (z.startScope(g), z.addText(o), z.endScope());
|
|
400
400
|
}
|
|
401
|
-
function O(
|
|
401
|
+
function O(o, g) {
|
|
402
402
|
let x = 1;
|
|
403
403
|
const w = g.length - 1;
|
|
404
404
|
for (; x <= w; ) {
|
|
405
|
-
if (!
|
|
405
|
+
if (!o._emit[x]) {
|
|
406
406
|
x++;
|
|
407
407
|
continue;
|
|
408
408
|
}
|
|
409
|
-
const N = J.classNameAliases[
|
|
409
|
+
const N = J.classNameAliases[o[x]] || o[x], $ = g[x];
|
|
410
410
|
N ? Z($, N) : (k = $, C(), k = ""), x++;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
function q(
|
|
414
|
-
return
|
|
413
|
+
function q(o, g) {
|
|
414
|
+
return o.scope && typeof o.scope == "string" && z.openNode(J.classNameAliases[o.scope] || o.scope), o.beginScope && (o.beginScope._wrap ? (Z(k, J.classNameAliases[o.beginScope._wrap] || o.beginScope._wrap), k = "") : o.beginScope._multi && (O(o.beginScope, g), k = "")), p = Object.create(o, { parent: { value: p } }), p;
|
|
415
415
|
}
|
|
416
|
-
function Ye(
|
|
416
|
+
function Ye(o, g, x) {
|
|
417
417
|
let w = function(N, $) {
|
|
418
418
|
const ie = N && N.exec($);
|
|
419
419
|
return ie && ie.index === 0;
|
|
420
|
-
}(
|
|
420
|
+
}(o.endRe, x);
|
|
421
421
|
if (w) {
|
|
422
|
-
if (
|
|
423
|
-
const N = new l(
|
|
424
|
-
|
|
422
|
+
if (o["on:end"]) {
|
|
423
|
+
const N = new l(o);
|
|
424
|
+
o["on:end"](g, N), N.isMatchIgnored && (w = !1);
|
|
425
425
|
}
|
|
426
426
|
if (w) {
|
|
427
|
-
for (;
|
|
428
|
-
return
|
|
427
|
+
for (; o.endsParent && o.parent; ) o = o.parent;
|
|
428
|
+
return o;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
if (
|
|
431
|
+
if (o.endsWithParent) return Ye(o.parent, g, x);
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
return p.matcher.regexIndex === 0 ? (k +=
|
|
433
|
+
function Tn(o) {
|
|
434
|
+
return p.matcher.regexIndex === 0 ? (k += o[0], 1) : (De = !0, 0);
|
|
435
435
|
}
|
|
436
|
-
function
|
|
437
|
-
const g =
|
|
436
|
+
function jn(o) {
|
|
437
|
+
const g = o[0], x = h.substring(o.index), w = Ye(p, o, x);
|
|
438
438
|
if (!w) return We;
|
|
439
439
|
const N = p;
|
|
440
|
-
p.endScope && p.endScope._wrap ? (I(), Z(g, p.endScope._wrap)) : p.endScope && p.endScope._multi ? (I(), O(p.endScope,
|
|
440
|
+
p.endScope && p.endScope._wrap ? (I(), Z(g, p.endScope._wrap)) : p.endScope && p.endScope._multi ? (I(), O(p.endScope, o)) : N.skip ? k += g : (N.returnEnd || N.excludeEnd || (k += g), I(), N.excludeEnd && (k = g));
|
|
441
441
|
do
|
|
442
442
|
p.scope && z.closeNode(), p.skip || p.subLanguage || (Te += p.relevance), p = p.parent;
|
|
443
443
|
while (p !== w.parent);
|
|
444
|
-
return w.starts && q(w.starts,
|
|
444
|
+
return w.starts && q(w.starts, o), N.returnEnd ? 0 : g.length;
|
|
445
445
|
}
|
|
446
446
|
let Re = {};
|
|
447
|
-
function en(
|
|
447
|
+
function en(o, g) {
|
|
448
448
|
const x = g && g[0];
|
|
449
|
-
if (k +=
|
|
449
|
+
if (k += o, x == null) return I(), 0;
|
|
450
450
|
if (Re.type === "begin" && g.type === "end" && Re.index === g.index && x === "") {
|
|
451
451
|
if (k += h.slice(g.index, g.index + 1), !E) {
|
|
452
|
-
const w = new Error(`0 width match regex (${
|
|
453
|
-
throw w.languageName =
|
|
452
|
+
const w = new Error(`0 width match regex (${s})`);
|
|
453
|
+
throw w.languageName = s, w.badRule = Re.rule, w;
|
|
454
454
|
}
|
|
455
455
|
return 1;
|
|
456
456
|
}
|
|
457
457
|
if (Re = g, g.type === "begin") return function(w) {
|
|
458
458
|
const N = w[0], $ = w.rule, ie = new l($), Pe = [$.i, $["on:begin"]];
|
|
459
|
-
for (const je of Pe) if (je && (je(w, ie), ie.isMatchIgnored)) return
|
|
459
|
+
for (const je of Pe) if (je && (je(w, ie), ie.isMatchIgnored)) return Tn(N);
|
|
460
460
|
return $.skip ? k += N : ($.excludeBegin && (k += N), I(), $.returnBegin || $.excludeBegin || (k = N)), q($, w), $.returnBegin ? 0 : N.length;
|
|
461
461
|
}(g);
|
|
462
462
|
if (g.type === "illegal" && !y) {
|
|
@@ -464,7 +464,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), R = o, B = h), y ===
|
|
|
464
464
|
throw w.mode = p, w;
|
|
465
465
|
}
|
|
466
466
|
if (g.type === "end") {
|
|
467
|
-
const w =
|
|
467
|
+
const w = jn(g);
|
|
468
468
|
if (w !== We) return w;
|
|
469
469
|
}
|
|
470
470
|
if (g.type === "illegal" && x === "") return k += `
|
|
@@ -473,15 +473,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), R = o, B = h), y ===
|
|
|
473
473
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
474
474
|
return k += x, x.length;
|
|
475
475
|
}
|
|
476
|
-
const J = de(
|
|
477
|
-
if (!J) throw r.replace("{}",
|
|
478
|
-
const
|
|
479
|
-
let ze = "", p = B ||
|
|
476
|
+
const J = de(s);
|
|
477
|
+
if (!J) throw r.replace("{}", s), new Error('Unknown language: "' + s + '"');
|
|
478
|
+
const Cn = Mn(J);
|
|
479
|
+
let ze = "", p = B || Cn;
|
|
480
480
|
const nn = {}, z = new c.o(c);
|
|
481
481
|
(function() {
|
|
482
|
-
const
|
|
483
|
-
for (let g = p; g !== J; g = g.parent) g.scope &&
|
|
484
|
-
|
|
482
|
+
const o = [];
|
|
483
|
+
for (let g = p; g !== J; g = g.parent) g.scope && o.unshift(g.scope);
|
|
484
|
+
o.forEach((g) => z.openNode(g));
|
|
485
485
|
})();
|
|
486
486
|
let k = "", Te = 0, be = 0, $e = 0, De = !1;
|
|
487
487
|
try {
|
|
@@ -489,26 +489,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), R = o, B = h), y ===
|
|
|
489
489
|
else {
|
|
490
490
|
for (p.matcher.considerAll(); ; ) {
|
|
491
491
|
$e++, De ? De = !1 : p.matcher.considerAll(), p.matcher.lastIndex = be;
|
|
492
|
-
const
|
|
493
|
-
if (!
|
|
494
|
-
const g = en(h.substring(be,
|
|
495
|
-
be =
|
|
492
|
+
const o = p.matcher.exec(h);
|
|
493
|
+
if (!o) break;
|
|
494
|
+
const g = en(h.substring(be, o.index), o);
|
|
495
|
+
be = o.index + g;
|
|
496
496
|
}
|
|
497
497
|
en(h.substring(be));
|
|
498
498
|
}
|
|
499
|
-
return z.finalize(), ze = z.toHTML(), { language:
|
|
500
|
-
} catch (
|
|
501
|
-
if (
|
|
502
|
-
if (E) return { language:
|
|
503
|
-
throw
|
|
499
|
+
return z.finalize(), ze = z.toHTML(), { language: s, value: ze, relevance: Te, illegal: !1, _emitter: z, _top: p };
|
|
500
|
+
} catch (o) {
|
|
501
|
+
if (o.message && o.message.includes("Illegal")) return { language: s, value: Le(h), illegal: !0, relevance: 0, _illegalBy: { message: o.message, index: be, context: h.slice(be - 100, be + 100), mode: o.mode, resultSoFar: ze }, _emitter: z };
|
|
502
|
+
if (E) return { language: s, value: Le(h), illegal: !1, relevance: 0, errorRaised: o, _emitter: z, _top: p };
|
|
503
|
+
throw o;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function le(
|
|
506
|
+
function le(s, h) {
|
|
507
507
|
h = h || c.languages || Object.keys(n);
|
|
508
508
|
const y = function(O) {
|
|
509
509
|
const q = { value: Le(O), illegal: !1, relevance: 0, _top: u, _emitter: new c.o(c) };
|
|
510
510
|
return q._emitter.addText(O), q;
|
|
511
|
-
}(
|
|
511
|
+
}(s), B = h.filter(de).filter(Qe).map((O) => _(O, s, !1));
|
|
512
512
|
B.unshift(y);
|
|
513
513
|
const R = B.sort((O, q) => {
|
|
514
514
|
if (O.relevance !== q.relevance) return q.relevance - O.relevance;
|
|
@@ -520,7 +520,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), R = o, B = h), y ===
|
|
|
520
520
|
}), [C, I] = R, Z = C;
|
|
521
521
|
return Z.secondBest = I, Z;
|
|
522
522
|
}
|
|
523
|
-
function Be(
|
|
523
|
+
function Be(s) {
|
|
524
524
|
let h = null;
|
|
525
525
|
const y = function(C) {
|
|
526
526
|
let I = C.className + " ";
|
|
@@ -531,16 +531,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), R = o, B = h), y ===
|
|
|
531
531
|
return O || r.replace("{}", Z[1]), O ? Z[1] : "no-highlight";
|
|
532
532
|
}
|
|
533
533
|
return I.split(/\s+/).find((O) => j(O) || de(O));
|
|
534
|
-
}(
|
|
535
|
-
if (j(y) || (Me("before:highlightElement", { el:
|
|
536
|
-
if (
|
|
537
|
-
throw new
|
|
538
|
-
h =
|
|
534
|
+
}(s);
|
|
535
|
+
if (j(y) || (Me("before:highlightElement", { el: s, language: y }), s.dataset.highlighted)) return;
|
|
536
|
+
if (s.children.length > 0 && (c.ignoreUnescapedHTML, c.throwUnescapedHTML))
|
|
537
|
+
throw new Rn("One of your code blocks includes unescaped HTML.", s.innerHTML);
|
|
538
|
+
h = s;
|
|
539
539
|
const B = h.textContent, R = y ? S(B, { language: y, ignoreIllegals: !0 }) : le(B);
|
|
540
|
-
|
|
540
|
+
s.innerHTML = R.value, s.dataset.highlighted = "yes", function(C, I, Z) {
|
|
541
541
|
const O = I && a[I] || Z;
|
|
542
542
|
C.classList.add("hljs"), C.classList.add(`language-${O}`);
|
|
543
|
-
}(
|
|
543
|
+
}(s, y, R.language), s.result = { language: R.language, re: R.relevance, relevance: R.relevance }, R.secondBest && (s.secondBest = { language: R.secondBest.language, relevance: R.secondBest.relevance }), Me("after:highlightElement", { el: s, result: R, text: B });
|
|
544
544
|
}
|
|
545
545
|
let Je = !1;
|
|
546
546
|
function Oe() {
|
|
@@ -549,63 +549,63 @@ https://github.com/highlightjs/highlight.js/issues/2277`), R = o, B = h), y ===
|
|
|
549
549
|
}, !1), void (Je = !0);
|
|
550
550
|
document.querySelectorAll(c.cssSelector).forEach(Be);
|
|
551
551
|
}
|
|
552
|
-
function de(
|
|
553
|
-
return
|
|
552
|
+
function de(s) {
|
|
553
|
+
return s = (s || "").toLowerCase(), n[s] || n[a[s]];
|
|
554
554
|
}
|
|
555
|
-
function Ve(
|
|
556
|
-
typeof
|
|
555
|
+
function Ve(s, { languageName: h }) {
|
|
556
|
+
typeof s == "string" && (s = [s]), s.forEach((y) => {
|
|
557
557
|
a[y.toLowerCase()] = h;
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
function Qe(
|
|
561
|
-
const h = de(
|
|
560
|
+
function Qe(s) {
|
|
561
|
+
const h = de(s);
|
|
562
562
|
return h && !h.disableAutodetect;
|
|
563
563
|
}
|
|
564
|
-
function Me(
|
|
565
|
-
const y =
|
|
564
|
+
function Me(s, h) {
|
|
565
|
+
const y = s;
|
|
566
566
|
d.forEach(function(B) {
|
|
567
567
|
B[y] && B[y](h);
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
|
-
Object.assign(e, { highlight: S, highlightAuto: le, highlightAll: Oe, highlightElement: Be, highlightBlock: function(
|
|
571
|
-
return we("10.7.0", "highlightBlock will be removed entirely in v12.0"), we("10.7.0", "Please use highlightElement now."), Be(
|
|
572
|
-
}, configure: function(
|
|
573
|
-
c = Xe(c,
|
|
570
|
+
Object.assign(e, { highlight: S, highlightAuto: le, highlightAll: Oe, highlightElement: Be, highlightBlock: function(s) {
|
|
571
|
+
return we("10.7.0", "highlightBlock will be removed entirely in v12.0"), we("10.7.0", "Please use highlightElement now."), Be(s);
|
|
572
|
+
}, configure: function(s) {
|
|
573
|
+
c = Xe(c, s);
|
|
574
574
|
}, initHighlighting: () => {
|
|
575
575
|
Oe(), we("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
576
576
|
}, initHighlightingOnLoad: function() {
|
|
577
577
|
Oe(), we("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
578
|
-
}, registerLanguage: function(
|
|
578
|
+
}, registerLanguage: function(s, h) {
|
|
579
579
|
let y = null;
|
|
580
580
|
try {
|
|
581
581
|
y = h(e);
|
|
582
582
|
} catch (B) {
|
|
583
|
-
if ("Language definition for '{}' could not be registered.".replace("{}",
|
|
583
|
+
if ("Language definition for '{}' could not be registered.".replace("{}", s), !E) throw B;
|
|
584
584
|
y = u;
|
|
585
585
|
}
|
|
586
|
-
y.name || (y.name =
|
|
587
|
-
}, unregisterLanguage: function(
|
|
588
|
-
delete n[
|
|
589
|
-
for (const h of Object.keys(a)) a[h] ===
|
|
586
|
+
y.name || (y.name = s), n[s] = y, y.rawDefinition = h.bind(null, e), y.aliases && Ve(y.aliases, { languageName: s });
|
|
587
|
+
}, unregisterLanguage: function(s) {
|
|
588
|
+
delete n[s];
|
|
589
|
+
for (const h of Object.keys(a)) a[h] === s && delete a[h];
|
|
590
590
|
}, listLanguages: function() {
|
|
591
591
|
return Object.keys(n);
|
|
592
|
-
}, getLanguage: de, registerAliases: Ve, autoDetection: Qe, inherit: Xe, addPlugin: function(
|
|
592
|
+
}, getLanguage: de, registerAliases: Ve, autoDetection: Qe, inherit: Xe, addPlugin: function(s) {
|
|
593
593
|
(function(h) {
|
|
594
594
|
h["before:highlightBlock"] && !h["before:highlightElement"] && (h["before:highlightElement"] = (y) => {
|
|
595
595
|
h["before:highlightBlock"](Object.assign({ block: y.el }, y));
|
|
596
596
|
}), h["after:highlightBlock"] && !h["after:highlightElement"] && (h["after:highlightElement"] = (y) => {
|
|
597
597
|
h["after:highlightBlock"](Object.assign({ block: y.el }, y));
|
|
598
598
|
});
|
|
599
|
-
})(
|
|
600
|
-
}, removePlugin: function(
|
|
601
|
-
const h = d.indexOf(
|
|
599
|
+
})(s), d.push(s);
|
|
600
|
+
}, removePlugin: function(s) {
|
|
601
|
+
const h = d.indexOf(s);
|
|
602
602
|
h !== -1 && d.splice(h, 1);
|
|
603
603
|
} }), e.debugMode = function() {
|
|
604
604
|
E = !1;
|
|
605
605
|
}, e.safeMode = function() {
|
|
606
606
|
E = !0;
|
|
607
607
|
}, e.versionString = "11.11.1", e.regex = { concat: P, lookahead: G, either: F, optional: U, anyNumberOfTimes: T };
|
|
608
|
-
for (const
|
|
608
|
+
for (const s in ce) typeof ce[s] == "object" && t(ce[s]);
|
|
609
609
|
return Object.assign(e, ce), e;
|
|
610
610
|
}, Ee = qe({});
|
|
611
611
|
return Ee.newInstance = () => qe({}), Ue = Ee, Ee.HighlightJS = Ee, Ee.default = Ee, Ue;
|
|
@@ -615,7 +615,7 @@ function an(t) {
|
|
|
615
615
|
const l = t.regex, i = l.concat(/[\p{L}_]/u, l.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), f = { className: "symbol", begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/ }, m = { begin: /\s/, contains: [{ className: "keyword", begin: /#?[a-z_][a-z1-9_-]+/, illegal: /\n/ }] }, b = t.inherit(m, { begin: /\(/, end: /\)/ }), v = t.inherit(t.APOS_STRING_MODE, { className: "string" }), A = t.inherit(t.QUOTE_STRING_MODE, { className: "string" }), M = { endsWithParent: !0, illegal: /</, relevance: 0, contains: [{ className: "attr", begin: /[\p{L}0-9._:-]+/u, relevance: 0 }, { begin: /=\s*/, relevance: 0, contains: [{ className: "string", endsParent: !0, variants: [{ begin: /"/, end: /"/, contains: [f] }, { begin: /'/, end: /'/, contains: [f] }, { begin: /[^\s"'=<>`]+/ }] }] }] };
|
|
616
616
|
return { name: "HTML, XML", aliases: ["html", "xhtml", "rss", "atom", "xjb", "xsd", "xsl", "plist", "wsf", "svg"], case_insensitive: !0, unicodeRegex: !0, contains: [{ className: "meta", begin: /<![a-z]/, end: />/, relevance: 10, contains: [m, A, v, b, { begin: /\[/, end: /\]/, contains: [{ className: "meta", begin: /<![a-z]/, end: />/, contains: [m, b, A, v] }] }] }, t.COMMENT(/<!--/, /-->/, { relevance: 10 }), { begin: /<!\[CDATA\[/, end: /\]\]>/, relevance: 10 }, f, { className: "meta", end: /\?>/, variants: [{ begin: /<\?xml/, relevance: 10, contains: [A] }, { begin: /<\?[a-z][a-z0-9]+/ }] }, { className: "tag", begin: /<style(?=\s|>)/, end: />/, keywords: { name: "style" }, contains: [M], starts: { end: /<\/style>/, returnEnd: !0, subLanguage: ["css", "xml"] } }, { className: "tag", begin: /<script(?=\s|>)/, end: />/, keywords: { name: "script" }, contains: [M], starts: { end: /<\/script>/, returnEnd: !0, subLanguage: ["javascript", "handlebars", "xml"] } }, { className: "tag", begin: /<>|<\/>/ }, { className: "tag", begin: l.concat(/</, l.lookahead(l.concat(i, l.either(/\/>/, />/, /\s/)))), end: /\/?>/, contains: [{ className: "name", begin: i, relevance: 0, starts: M }] }, { className: "tag", begin: l.concat(/<\//, l.lookahead(l.concat(i, />/))), contains: [{ className: "name", begin: i, relevance: 0 }, { begin: />/, relevance: 0, endsParent: !0 }] }] };
|
|
617
617
|
}
|
|
618
|
-
const rn = "[A-Za-z$_][0-9A-Za-z$_]*", Bn = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends", "using"], zn = ["true", "false", "null", "undefined", "NaN", "Infinity"],
|
|
618
|
+
const rn = "[A-Za-z$_][0-9A-Za-z$_]*", Bn = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends", "using"], zn = ["true", "false", "null", "undefined", "NaN", "Infinity"], dn = ["Object", "Function", "Boolean", "Symbol", "Math", "Date", "Number", "BigInt", "String", "RegExp", "Array", "Float32Array", "Float64Array", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Int32Array", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array", "Set", "Map", "WeakSet", "WeakMap", "ArrayBuffer", "SharedArrayBuffer", "Atomics", "DataView", "JSON", "Promise", "Generator", "GeneratorFunction", "AsyncFunction", "Reflect", "Proxy", "Intl", "WebAssembly"], gn = ["Error", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"], un = ["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"], $n = ["arguments", "this", "super", "console", "window", "document", "localStorage", "sessionStorage", "module", "global"], Dn = [].concat(un, dn, gn), Ie = "[A-Za-z$_][0-9A-Za-z$_]*", hn = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends", "using"], pn = ["true", "false", "null", "undefined", "NaN", "Infinity"], mn = ["Object", "Function", "Boolean", "Symbol", "Math", "Date", "Number", "BigInt", "String", "RegExp", "Array", "Float32Array", "Float64Array", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Int32Array", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array", "Set", "Map", "WeakSet", "WeakMap", "ArrayBuffer", "SharedArrayBuffer", "Atomics", "DataView", "JSON", "Promise", "Generator", "GeneratorFunction", "AsyncFunction", "Reflect", "Proxy", "Intl", "WebAssembly"], bn = ["Error", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"], fn = ["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"], yn = ["arguments", "this", "super", "console", "window", "document", "localStorage", "sessionStorage", "module", "global"], vn = [].concat(fn, mn, bn);
|
|
619
619
|
function Pn(t) {
|
|
620
620
|
const l = t.regex, i = Ie, f = "<>", m = "</>", b = { begin: /<[A-Za-z0-9\\._:-]+/, end: /\/[A-Za-z0-9\\._:-]+>|\/>/, isTrulyOpeningTag: (L, Y) => {
|
|
621
621
|
const ee = L[0].length + L.index, ne = L.input[ee];
|
|
@@ -627,12 +627,12 @@ function Pn(t) {
|
|
|
627
627
|
})(L, { after: ee }) || Y.ignoreMatch());
|
|
628
628
|
const pe = L.input.substring(ee);
|
|
629
629
|
((te = pe.match(/^\s*=/)) || (te = pe.match(/^\s+extends\s+/)) && te.index === 0) && Y.ignoreMatch();
|
|
630
|
-
} }, v = { $pattern: Ie, keyword:
|
|
630
|
+
} }, v = { $pattern: Ie, keyword: hn, literal: pn, built_in: vn, "variable.language": yn }, A = "[0-9](_?[0-9])*", M = `\\.(${A})`, D = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", G = { className: "number", variants: [{ begin: `(\\b(${D})((${M})|\\.)?|(${M}))[eE][+-]?(${A})\\b` }, { begin: `\\b(${D})\\b((${M})\\b|\\.)?|(${M})\\b` }, { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" }, { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, { begin: "\\b0[0-7]+n?\\b" }], relevance: 0 }, T = { className: "subst", begin: "\\$\\{", end: "\\}", keywords: v, contains: [] }, U = { begin: ".?html`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "xml" } }, P = { begin: ".?css`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "css" } }, F = { begin: ".?gql`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "graphql" } }, K = { className: "string", begin: "`", end: "`", contains: [t.BACKSLASH_ESCAPE, T] }, X = { className: "comment", variants: [t.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, contains: [{ begin: "(?=@[A-Za-z]+)", relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }, { className: "type", begin: "\\{", end: "\\}", excludeEnd: !0, excludeBegin: !0, relevance: 0 }, { className: "variable", begin: i + "(?=\\s*(-)|$)", endsParent: !0, relevance: 0 }, { begin: /(?=[^\n])\s/, relevance: 0 }] }] }), t.C_BLOCK_COMMENT_MODE, t.C_LINE_COMMENT_MODE] }, V = [t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, P, F, K, { match: /\$\d+/ }, G];
|
|
631
631
|
T.contains = V.concat({ begin: /\{/, end: /\}/, keywords: v, contains: ["self"].concat(V) });
|
|
632
|
-
const re = [].concat(X, T.contains), W = re.concat([{ begin: /(\s*)\(/, end: /\)/, keywords: v, contains: ["self"].concat(re) }]), H = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: v, contains: W }, ve = { variants: [{ match: [/class/, /\s+/, i, /\s+/, /extends/, /\s+/, l.concat(i, "(", l.concat(/\./, i), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, i], scope: { 1: "keyword", 3: "title.class" } }] },
|
|
632
|
+
const re = [].concat(X, T.contains), W = re.concat([{ begin: /(\s*)\(/, end: /\)/, keywords: v, contains: ["self"].concat(re) }]), H = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: v, contains: W }, ve = { variants: [{ match: [/class/, /\s+/, i, /\s+/, /extends/, /\s+/, l.concat(i, "(", l.concat(/\./, i), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, i], scope: { 1: "keyword", 3: "title.class" } }] }, oe = { relevance: 0, match: l.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), className: "title.class", keywords: { _: [...mn, ...bn] } }, Q = { variants: [{ match: [/function/, /\s+/, i, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], className: { 1: "keyword", 3: "title.function" }, label: "func.def", contains: [H], illegal: /%/ }, xe = { match: l.concat(/\b/, (ue = [...fn, "super", "import"].map((L) => `${L}\\s*\\(`), l.concat("(?!", ue.join("|"), ")")), i, l.lookahead(/\s*\(/)), className: "title.function", relevance: 0 };
|
|
633
633
|
var ue;
|
|
634
|
-
const
|
|
635
|
-
return { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: v, exports: { PARAMS_CONTAINS: W, CLASS_REFERENCE:
|
|
634
|
+
const se = { begin: l.concat(/\./, l.lookahead(l.concat(i, /(?![0-9A-Za-z$_(])/))), end: i, excludeBegin: !0, keywords: "prototype", className: "property", relevance: 0 }, ke = { match: [/get|set/, /\s+/, i, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, H] }, he = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + t.UNDERSCORE_IDENT_RE + ")\\s*=>", _e = { match: [/const|var|let/, /\s+/, i, /\s*/, /=\s*/, /(async\s*)?/, l.lookahead(he)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [H] };
|
|
635
|
+
return { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: v, exports: { PARAMS_CONTAINS: W, CLASS_REFERENCE: oe }, illegal: /#(?![$_A-z])/, contains: [t.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }), { label: "use_strict", className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ }, t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, P, F, K, X, { match: /\$\d+/ }, G, oe, { scope: "attr", match: i + l.lookahead(":"), relevance: 0 }, _e, { begin: "(" + t.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, contains: [X, t.REGEXP_MODE, { className: "function", begin: he, returnBegin: !0, end: "\\s*=>", contains: [{ className: "params", variants: [{ begin: t.UNDERSCORE_IDENT_RE, relevance: 0 }, { className: null, begin: /\(\s*\)/, skip: !0 }, { begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: v, contains: W }] }] }, { begin: /,/, relevance: 0 }, { match: /\s+/, relevance: 0 }, { variants: [{ begin: f, end: m }, { match: /<[A-Za-z0-9\\._:-]+\s*\/>/ }, { begin: b.begin, "on:begin": b.isTrulyOpeningTag, end: b.end }], subLanguage: "xml", contains: [{ begin: b.begin, end: b.end, skip: !0, contains: ["self"] }] }] }, Q, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + t.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", returnBegin: !0, label: "func.def", contains: [H, t.inherit(t.TITLE_MODE, { begin: i, className: "title.function" })] }, { match: /\.\.\./, relevance: 0 }, se, { match: "\\$" + i, relevance: 0 }, { match: [/\bconstructor(?=\s*\()/], className: { 1: "title.function" }, contains: [H] }, xe, { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" }, ve, ke, { match: /\$[(.]/ }] };
|
|
636
636
|
}
|
|
637
637
|
const Un = ["a", "abbr", "address", "article", "aside", "audio", "b", "blockquote", "body", "button", "canvas", "caption", "cite", "code", "dd", "del", "details", "dfn", "div", "dl", "dt", "em", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "mark", "menu", "nav", "object", "ol", "optgroup", "option", "p", "picture", "q", "quote", "samp", "section", "select", "source", "span", "strong", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "ul", "var", "video", "defs", "g", "marker", "mask", "pattern", "svg", "switch", "symbol", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feFlood", "feGaussianBlur", "feImage", "feMerge", "feMorphology", "feOffset", "feSpecularLighting", "feTile", "feTurbulence", "linearGradient", "radialGradient", "stop", "circle", "ellipse", "image", "line", "path", "polygon", "polyline", "rect", "text", "use", "textPath", "tspan", "foreignObject", "clipPath"], Hn = ["any-hover", "any-pointer", "aspect-ratio", "color", "color-gamut", "color-index", "device-aspect-ratio", "device-height", "device-width", "display-mode", "forced-colors", "grid", "height", "hover", "inverted-colors", "monochrome", "orientation", "overflow-block", "overflow-inline", "pointer", "prefers-color-scheme", "prefers-contrast", "prefers-reduced-motion", "prefers-reduced-transparency", "resolution", "scan", "scripting", "update", "width", "min-width", "max-width", "min-height", "max-height"].sort().reverse(), Zn = ["active", "any-link", "blank", "checked", "current", "default", "defined", "dir", "disabled", "drop", "empty", "enabled", "first", "first-child", "first-of-type", "fullscreen", "future", "focus", "focus-visible", "focus-within", "has", "host", "host-context", "hover", "indeterminate", "in-range", "invalid", "is", "lang", "last-child", "last-of-type", "left", "link", "local-link", "not", "nth-child", "nth-col", "nth-last-child", "nth-last-col", "nth-last-of-type", "nth-of-type", "only-child", "only-of-type", "optional", "out-of-range", "past", "placeholder-shown", "read-only", "read-write", "required", "right", "root", "scope", "target", "target-within", "user-invalid", "valid", "visited", "where"].sort().reverse(), Gn = ["after", "backdrop", "before", "cue", "cue-region", "first-letter", "first-line", "grammar-error", "marker", "part", "placeholder", "selection", "slotted", "spelling-error"].sort().reverse(), Fn = ["accent-color", "align-content", "align-items", "align-self", "alignment-baseline", "all", "anchor-name", "animation", "animation-composition", "animation-delay", "animation-direction", "animation-duration", "animation-fill-mode", "animation-iteration-count", "animation-name", "animation-play-state", "animation-range", "animation-range-end", "animation-range-start", "animation-timeline", "animation-timing-function", "appearance", "aspect-ratio", "backdrop-filter", "backface-visibility", "background", "background-attachment", "background-blend-mode", "background-clip", "background-color", "background-image", "background-origin", "background-position", "background-position-x", "background-position-y", "background-repeat", "background-size", "baseline-shift", "block-size", "border", "border-block", "border-block-color", "border-block-end", "border-block-end-color", "border-block-end-style", "border-block-end-width", "border-block-start", "border-block-start-color", "border-block-start-style", "border-block-start-width", "border-block-style", "border-block-width", "border-bottom", "border-bottom-color", "border-bottom-left-radius", "border-bottom-right-radius", "border-bottom-style", "border-bottom-width", "border-collapse", "border-color", "border-end-end-radius", "border-end-start-radius", "border-image", "border-image-outset", "border-image-repeat", "border-image-slice", "border-image-source", "border-image-width", "border-inline", "border-inline-color", "border-inline-end", "border-inline-end-color", "border-inline-end-style", "border-inline-end-width", "border-inline-start", "border-inline-start-color", "border-inline-start-style", "border-inline-start-width", "border-inline-style", "border-inline-width", "border-left", "border-left-color", "border-left-style", "border-left-width", "border-radius", "border-right", "border-right-color", "border-right-style", "border-right-width", "border-spacing", "border-start-end-radius", "border-start-start-radius", "border-style", "border-top", "border-top-color", "border-top-left-radius", "border-top-right-radius", "border-top-style", "border-top-width", "border-width", "bottom", "box-align", "box-decoration-break", "box-direction", "box-flex", "box-flex-group", "box-lines", "box-ordinal-group", "box-orient", "box-pack", "box-shadow", "box-sizing", "break-after", "break-before", "break-inside", "caption-side", "caret-color", "clear", "clip", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "color-scheme", "column-count", "column-fill", "column-gap", "column-rule", "column-rule-color", "column-rule-style", "column-rule-width", "column-span", "column-width", "columns", "contain", "contain-intrinsic-block-size", "contain-intrinsic-height", "contain-intrinsic-inline-size", "contain-intrinsic-size", "contain-intrinsic-width", "container", "container-name", "container-type", "content", "content-visibility", "counter-increment", "counter-reset", "counter-set", "cue", "cue-after", "cue-before", "cursor", "cx", "cy", "direction", "display", "dominant-baseline", "empty-cells", "enable-background", "field-sizing", "fill", "fill-opacity", "fill-rule", "filter", "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "float", "flood-color", "flood-opacity", "flow", "font", "font-display", "font-family", "font-feature-settings", "font-kerning", "font-language-override", "font-optical-sizing", "font-palette", "font-size", "font-size-adjust", "font-smooth", "font-smoothing", "font-stretch", "font-style", "font-synthesis", "font-synthesis-position", "font-synthesis-small-caps", "font-synthesis-style", "font-synthesis-weight", "font-variant", "font-variant-alternates", "font-variant-caps", "font-variant-east-asian", "font-variant-emoji", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-variation-settings", "font-weight", "forced-color-adjust", "gap", "glyph-orientation-horizontal", "glyph-orientation-vertical", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns", "grid-template-rows", "hanging-punctuation", "height", "hyphenate-character", "hyphenate-limit-chars", "hyphens", "icon", "image-orientation", "image-rendering", "image-resolution", "ime-mode", "initial-letter", "initial-letter-align", "inline-size", "inset", "inset-area", "inset-block", "inset-block-end", "inset-block-start", "inset-inline", "inset-inline-end", "inset-inline-start", "isolation", "justify-content", "justify-items", "justify-self", "kerning", "left", "letter-spacing", "lighting-color", "line-break", "line-height", "line-height-step", "list-style", "list-style-image", "list-style-position", "list-style-type", "margin", "margin-block", "margin-block-end", "margin-block-start", "margin-bottom", "margin-inline", "margin-inline-end", "margin-inline-start", "margin-left", "margin-right", "margin-top", "margin-trim", "marker", "marker-end", "marker-mid", "marker-start", "marks", "mask", "mask-border", "mask-border-mode", "mask-border-outset", "mask-border-repeat", "mask-border-slice", "mask-border-source", "mask-border-width", "mask-clip", "mask-composite", "mask-image", "mask-mode", "mask-origin", "mask-position", "mask-repeat", "mask-size", "mask-type", "masonry-auto-flow", "math-depth", "math-shift", "math-style", "max-block-size", "max-height", "max-inline-size", "max-width", "min-block-size", "min-height", "min-inline-size", "min-width", "mix-blend-mode", "nav-down", "nav-index", "nav-left", "nav-right", "nav-up", "none", "normal", "object-fit", "object-position", "offset", "offset-anchor", "offset-distance", "offset-path", "offset-position", "offset-rotate", "opacity", "order", "orphans", "outline", "outline-color", "outline-offset", "outline-style", "outline-width", "overflow", "overflow-anchor", "overflow-block", "overflow-clip-margin", "overflow-inline", "overflow-wrap", "overflow-x", "overflow-y", "overlay", "overscroll-behavior", "overscroll-behavior-block", "overscroll-behavior-inline", "overscroll-behavior-x", "overscroll-behavior-y", "padding", "padding-block", "padding-block-end", "padding-block-start", "padding-bottom", "padding-inline", "padding-inline-end", "padding-inline-start", "padding-left", "padding-right", "padding-top", "page", "page-break-after", "page-break-before", "page-break-inside", "paint-order", "pause", "pause-after", "pause-before", "perspective", "perspective-origin", "place-content", "place-items", "place-self", "pointer-events", "position", "position-anchor", "position-visibility", "print-color-adjust", "quotes", "r", "resize", "rest", "rest-after", "rest-before", "right", "rotate", "row-gap", "ruby-align", "ruby-position", "scale", "scroll-behavior", "scroll-margin", "scroll-margin-block", "scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom", "scroll-margin-inline", "scroll-margin-inline-end", "scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right", "scroll-margin-top", "scroll-padding", "scroll-padding-block", "scroll-padding-block-end", "scroll-padding-block-start", "scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end", "scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right", "scroll-padding-top", "scroll-snap-align", "scroll-snap-stop", "scroll-snap-type", "scroll-timeline", "scroll-timeline-axis", "scroll-timeline-name", "scrollbar-color", "scrollbar-gutter", "scrollbar-width", "shape-image-threshold", "shape-margin", "shape-outside", "shape-rendering", "speak", "speak-as", "src", "stop-color", "stop-opacity", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "tab-size", "table-layout", "text-align", "text-align-all", "text-align-last", "text-anchor", "text-combine-upright", "text-decoration", "text-decoration-color", "text-decoration-line", "text-decoration-skip", "text-decoration-skip-ink", "text-decoration-style", "text-decoration-thickness", "text-emphasis", "text-emphasis-color", "text-emphasis-position", "text-emphasis-style", "text-indent", "text-justify", "text-orientation", "text-overflow", "text-rendering", "text-shadow", "text-size-adjust", "text-transform", "text-underline-offset", "text-underline-position", "text-wrap", "text-wrap-mode", "text-wrap-style", "timeline-scope", "top", "touch-action", "transform", "transform-box", "transform-origin", "transform-style", "transition", "transition-behavior", "transition-delay", "transition-duration", "transition-property", "transition-timing-function", "translate", "unicode-bidi", "user-modify", "user-select", "vector-effect", "vertical-align", "view-timeline", "view-timeline-axis", "view-timeline-inset", "view-timeline-name", "view-transition-name", "visibility", "voice-balance", "voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress", "voice-volume", "white-space", "white-space-collapse", "widows", "width", "will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "x", "y", "z-index", "zoom"].sort().reverse();
|
|
638
638
|
var Kn = Object.defineProperty, Xn = Object.getOwnPropertyDescriptor, fe = (t, l, i, f) => {
|
|
@@ -652,12 +652,12 @@ ae.registerLanguage("xml", an), ae.registerLanguage("html", an), ae.registerLang
|
|
|
652
652
|
((te = pe.match(/^\s*=/)) || (te = pe.match(/^\s+extends\s+/)) && te.index === 0) && Y.ignoreMatch();
|
|
653
653
|
} }, v = { $pattern: rn, keyword: Bn, literal: zn, built_in: Dn, "variable.language": $n }, A = "[0-9](_?[0-9])*", M = `\\.(${A})`, D = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", G = { className: "number", variants: [{ begin: `(\\b(${D})((${M})|\\.)?|(${M}))[eE][+-]?(${A})\\b` }, { begin: `\\b(${D})\\b((${M})\\b|\\.)?|(${M})\\b` }, { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" }, { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, { begin: "\\b0[0-7]+n?\\b" }], relevance: 0 }, T = { className: "subst", begin: "\\$\\{", end: "\\}", keywords: v, contains: [] }, U = { begin: ".?html`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "xml" } }, P = { begin: ".?css`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "css" } }, F = { begin: ".?gql`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "graphql" } }, K = { className: "string", begin: "`", end: "`", contains: [t.BACKSLASH_ESCAPE, T] }, X = { className: "comment", variants: [t.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, contains: [{ begin: "(?=@[A-Za-z]+)", relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }, { className: "type", begin: "\\{", end: "\\}", excludeEnd: !0, excludeBegin: !0, relevance: 0 }, { className: "variable", begin: i + "(?=\\s*(-)|$)", endsParent: !0, relevance: 0 }, { begin: /(?=[^\n])\s/, relevance: 0 }] }] }), t.C_BLOCK_COMMENT_MODE, t.C_LINE_COMMENT_MODE] }, V = [t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, P, F, K, { match: /\$\d+/ }, G];
|
|
654
654
|
T.contains = V.concat({ begin: /\{/, end: /\}/, keywords: v, contains: ["self"].concat(V) });
|
|
655
|
-
const re = [].concat(X, T.contains), W = re.concat([{ begin: /(\s*)\(/, end: /\)/, keywords: v, contains: ["self"].concat(re) }]), H = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: v, contains: W }, ve = { variants: [{ match: [/class/, /\s+/, i, /\s+/, /extends/, /\s+/, l.concat(i, "(", l.concat(/\./, i), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, i], scope: { 1: "keyword", 3: "title.class" } }] },
|
|
655
|
+
const re = [].concat(X, T.contains), W = re.concat([{ begin: /(\s*)\(/, end: /\)/, keywords: v, contains: ["self"].concat(re) }]), H = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: v, contains: W }, ve = { variants: [{ match: [/class/, /\s+/, i, /\s+/, /extends/, /\s+/, l.concat(i, "(", l.concat(/\./, i), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, i], scope: { 1: "keyword", 3: "title.class" } }] }, oe = { relevance: 0, match: l.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), className: "title.class", keywords: { _: [...dn, ...gn] } }, Q = { variants: [{ match: [/function/, /\s+/, i, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], className: { 1: "keyword", 3: "title.function" }, label: "func.def", contains: [H], illegal: /%/ }, xe = { match: l.concat(/\b/, (ue = [...un, "super", "import"].map((L) => `${L}\\s*\\(`), l.concat("(?!", ue.join("|"), ")")), i, l.lookahead(/\s*\(/)), className: "title.function", relevance: 0 };
|
|
656
656
|
var ue;
|
|
657
|
-
const
|
|
658
|
-
return { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: v, exports: { PARAMS_CONTAINS: W, CLASS_REFERENCE:
|
|
657
|
+
const se = { begin: l.concat(/\./, l.lookahead(l.concat(i, /(?![0-9A-Za-z$_(])/))), end: i, excludeBegin: !0, keywords: "prototype", className: "property", relevance: 0 }, ke = { match: [/get|set/, /\s+/, i, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, H] }, he = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + t.UNDERSCORE_IDENT_RE + ")\\s*=>", _e = { match: [/const|var|let/, /\s+/, i, /\s*/, /=\s*/, /(async\s*)?/, l.lookahead(he)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [H] };
|
|
658
|
+
return { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: v, exports: { PARAMS_CONTAINS: W, CLASS_REFERENCE: oe }, illegal: /#(?![$_A-z])/, contains: [t.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }), { label: "use_strict", className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ }, t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, P, F, K, X, { match: /\$\d+/ }, G, oe, { scope: "attr", match: i + l.lookahead(":"), relevance: 0 }, _e, { begin: "(" + t.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, contains: [X, t.REGEXP_MODE, { className: "function", begin: he, returnBegin: !0, end: "\\s*=>", contains: [{ className: "params", variants: [{ begin: t.UNDERSCORE_IDENT_RE, relevance: 0 }, { className: null, begin: /\(\s*\)/, skip: !0 }, { begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: v, contains: W }] }] }, { begin: /,/, relevance: 0 }, { match: /\s+/, relevance: 0 }, { variants: [{ begin: f, end: m }, { match: /<[A-Za-z0-9\\._:-]+\s*\/>/ }, { begin: b.begin, "on:begin": b.isTrulyOpeningTag, end: b.end }], subLanguage: "xml", contains: [{ begin: b.begin, end: b.end, skip: !0, contains: ["self"] }] }] }, Q, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + t.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", returnBegin: !0, label: "func.def", contains: [H, t.inherit(t.TITLE_MODE, { begin: i, className: "title.function" })] }, { match: /\.\.\./, relevance: 0 }, se, { match: "\\$" + i, relevance: 0 }, { match: [/\bconstructor(?=\s*\()/], className: { 1: "title.function" }, contains: [H] }, xe, { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" }, ve, ke, { match: /\$[(.]/ }] };
|
|
659
659
|
}), ae.registerLanguage("typescript", function(t) {
|
|
660
|
-
const l = t.regex, i = Pn(t), f = Ie, m = ["any", "void", "number", "boolean", "string", "object", "never", "symbol", "bigint", "unknown"], b = { begin: [/namespace/, /\s+/, t.IDENT_RE], beginScope: { 1: "keyword", 3: "title.class" } }, v = { beginKeywords: "interface", end: /\{/, excludeEnd: !0, keywords: { keyword: "interface extends", built_in: m }, contains: [i.exports.CLASS_REFERENCE] }, A = { $pattern: Ie, keyword:
|
|
660
|
+
const l = t.regex, i = Pn(t), f = Ie, m = ["any", "void", "number", "boolean", "string", "object", "never", "symbol", "bigint", "unknown"], b = { begin: [/namespace/, /\s+/, t.IDENT_RE], beginScope: { 1: "keyword", 3: "title.class" } }, v = { beginKeywords: "interface", end: /\{/, excludeEnd: !0, keywords: { keyword: "interface extends", built_in: m }, contains: [i.exports.CLASS_REFERENCE] }, A = { $pattern: Ie, keyword: hn.concat(["type", "interface", "public", "private", "protected", "implements", "declare", "abstract", "readonly", "enum", "override", "satisfies"]), literal: pn, built_in: vn.concat(m), "variable.language": yn }, M = { className: "meta", begin: "@" + f }, D = (U, P, F) => {
|
|
661
661
|
const K = U.contains.findIndex((X) => X.label === P);
|
|
662
662
|
if (K === -1) throw new Error("can not find mode to replace");
|
|
663
663
|
U.contains.splice(K, 1, F);
|
|
@@ -679,7 +679,7 @@ ae.registerLanguage("xml", an), ae.registerLanguage("html", an), ae.registerLang
|
|
|
679
679
|
const M = { begin: /\$?\(\(/, end: /\)\)/, contains: [{ begin: /\d+#[0-9a-f]+/, className: "number" }, t.NUMBER_MODE, i] }, D = t.SHEBANG({ binary: `(${["fish", "bash", "zsh", "sh", "csh", "ksh", "tcsh", "dash", "scsh"].join("|")})`, relevance: 10 }), G = { className: "function", begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/, returnBegin: !0, contains: [t.inherit(t.TITLE_MODE, { begin: /\w[\w\d_]*/ })], relevance: 0 };
|
|
680
680
|
return { name: "Bash", aliases: ["sh", "zsh"], keywords: { $pattern: /\b[a-z][a-z0-9._-]+\b/, keyword: ["if", "then", "else", "elif", "fi", "time", "for", "while", "until", "in", "do", "done", "case", "esac", "coproc", "function", "select"], literal: ["true", "false"], built_in: ["break", "cd", "continue", "eval", "exec", "exit", "export", "getopts", "hash", "pwd", "readonly", "return", "shift", "test", "times", "trap", "umask", "unset", "alias", "bind", "builtin", "caller", "command", "declare", "echo", "enable", "help", "let", "local", "logout", "mapfile", "printf", "read", "readarray", "source", "sudo", "type", "typeset", "ulimit", "unalias", "set", "shopt", "autoload", "bg", "bindkey", "bye", "cap", "chdir", "clone", "comparguments", "compcall", "compctl", "compdescribe", "compfiles", "compgroups", "compquote", "comptags", "comptry", "compvalues", "dirs", "disable", "disown", "echotc", "echoti", "emulate", "fc", "fg", "float", "functions", "getcap", "getln", "history", "integer", "jobs", "kill", "limit", "log", "noglob", "popd", "print", "pushd", "pushln", "rehash", "sched", "setcap", "setopt", "stat", "suspend", "ttyctl", "unfunction", "unhash", "unlimit", "unsetopt", "vared", "wait", "whence", "where", "which", "zcompile", "zformat", "zftp", "zle", "zmodload", "zparseopts", "zprof", "zpty", "zregexparse", "zsocket", "zstyle", "ztcp", "chcon", "chgrp", "chown", "chmod", "cp", "dd", "df", "dir", "dircolors", "ln", "ls", "mkdir", "mkfifo", "mknod", "mktemp", "mv", "realpath", "rm", "rmdir", "shred", "sync", "touch", "truncate", "vdir", "b2sum", "base32", "base64", "cat", "cksum", "comm", "csplit", "cut", "expand", "fmt", "fold", "head", "join", "md5sum", "nl", "numfmt", "od", "paste", "ptx", "pr", "sha1sum", "sha224sum", "sha256sum", "sha384sum", "sha512sum", "shuf", "sort", "split", "sum", "tac", "tail", "tr", "tsort", "unexpand", "uniq", "wc", "arch", "basename", "chroot", "date", "dirname", "du", "echo", "env", "expr", "factor", "groups", "hostid", "id", "link", "logname", "nice", "nohup", "nproc", "pathchk", "pinky", "printenv", "printf", "pwd", "readlink", "runcon", "seq", "sleep", "stat", "stdbuf", "stty", "tee", "test", "timeout", "tty", "uname", "unlink", "uptime", "users", "who", "whoami", "yes"] }, contains: [D, t.SHEBANG(), G, M, b, v, { match: /(\/[a-z._-]+)+/ }, A, { match: /\\"/ }, { className: "string", begin: /'/, end: /'/ }, { match: /\\'/ }, i] };
|
|
681
681
|
});
|
|
682
|
-
let ge = class extends sn
|
|
682
|
+
let ge = class extends on(sn`
|
|
683
683
|
:host {
|
|
684
684
|
display: block;
|
|
685
685
|
width: 100%;
|
|
@@ -817,12 +817,17 @@ let ge = class extends sn(Cn`
|
|
|
817
817
|
`;
|
|
818
818
|
}
|
|
819
819
|
};
|
|
820
|
-
fe([ye({ type: String })], ge.prototype, "language", 2), fe([ye({ type: String })], ge.prototype, "code", 2), fe([ye({ type: String })], ge.prototype, "filename", 2), fe([ye({ type: Boolean })], ge.prototype, "lineNumbers", 2), fe([ye({ type: Boolean })], ge.prototype, "copyButton", 2), fe([
|
|
820
|
+
fe([ye({ type: String })], ge.prototype, "language", 2), fe([ye({ type: String })], ge.prototype, "code", 2), fe([ye({ type: String })], ge.prototype, "filename", 2), fe([ye({ type: Boolean })], ge.prototype, "lineNumbers", 2), fe([ye({ type: Boolean })], ge.prototype, "copyButton", 2), fe([cn()], ge.prototype, "copied", 2), ge = fe([ln("schmancy-code")], ge);
|
|
821
821
|
var Wn = Object.defineProperty, qn = Object.getOwnPropertyDescriptor, Ce = (t, l, i, f) => {
|
|
822
822
|
for (var m, b = f > 1 ? void 0 : f ? qn(l, i) : l, v = t.length - 1; v >= 0; v--) (m = t[v]) && (b = (f ? m(l, i, b) : m(b)) || b);
|
|
823
823
|
return f && b && Wn(l, i, b), b;
|
|
824
824
|
};
|
|
825
|
-
let Ae = class extends sn
|
|
825
|
+
let Ae = class extends on(sn`:host{
|
|
826
|
+
display:block;
|
|
827
|
+
overflow:hidden;
|
|
828
|
+
position:relative;
|
|
829
|
+
inset:0;
|
|
830
|
+
}`) {
|
|
826
831
|
constructor() {
|
|
827
832
|
super(...arguments), this.language = "html", this.layout = "vertical", this.slotContent = "";
|
|
828
833
|
}
|
|
@@ -868,9 +873,9 @@ let Ae = class extends sn() {
|
|
|
868
873
|
`;
|
|
869
874
|
}
|
|
870
875
|
};
|
|
871
|
-
Ce([ye({ type: String })], Ae.prototype, "language", 2), Ce([ye({ type: String })], Ae.prototype, "layout", 2), Ce([
|
|
876
|
+
Ce([ye({ type: String })], Ae.prototype, "language", 2), Ce([ye({ type: String })], Ae.prototype, "layout", 2), Ce([cn()], Ae.prototype, "slotContent", 2), Ae = Ce([ln("schmancy-code-preview")], Ae);
|
|
872
877
|
export {
|
|
873
878
|
ge as S,
|
|
874
879
|
Ae as a
|
|
875
880
|
};
|
|
876
|
-
//# sourceMappingURL=code-preview-
|
|
881
|
+
//# sourceMappingURL=code-preview-BAuQVO86.js.map
|