docmedown 0.1.7 → 0.9.0
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/LICENSE +201 -21
- package/README.md +86 -37
- package/dist/architecture-7GRP2DOG-B8Xs9IfY.mjs +2 -0
- package/dist/architecture-7GRP2DOG-Vdsw7WC7.js +1 -0
- package/dist/cli.js +672 -1294
- package/dist/cynefin-OW5HDTMX-DU6kwwck.js +1 -0
- package/dist/cynefin-OW5HDTMX-F0P2M_lQ.mjs +2 -0
- package/dist/docmedown-compiler.js +228 -0
- package/dist/docmedown-mermaid.js +3588 -0
- package/dist/docmedown.cjs +7264 -80
- package/dist/docmedown.iife.js +7624 -424
- package/dist/docmedown.mjs +15531 -15009
- package/dist/docmedown.web.js +7628 -0
- package/dist/eventmodeling-NTZA5JFV-D58ICByZ.js +1 -0
- package/dist/eventmodeling-NTZA5JFV-SxxTo5cJ.mjs +2 -0
- package/dist/gitGraph-4MIJSDKK-C_R2a4aQ.mjs +2 -0
- package/dist/gitGraph-4MIJSDKK-CdMj8HJ8.js +1 -0
- package/dist/info-A6RAGUB7-CG4UBCfn.js +1 -0
- package/dist/info-A6RAGUB7-DmjQlHTj.mjs +2 -0
- package/dist/mermaid-BvOI3ZSW.js +3334 -0
- package/dist/mermaid-Cx9uSfoz.mjs +116948 -0
- package/dist/packet-AYTQ26CC-CMuoEJn0.js +1 -0
- package/dist/packet-AYTQ26CC-tdMo_iPL.mjs +2 -0
- package/dist/pie-WAS4IAKB-C1hjX8y0.js +1 -0
- package/dist/pie-WAS4IAKB-DG2Bio1G.mjs +2 -0
- package/dist/prism-CeBRmKvl.js +2 -0
- package/dist/prism-CummdiZX.mjs +1588 -0
- package/dist/radar-RG4KPBEZ-DHxYOB0f.mjs +2 -0
- package/dist/radar-RG4KPBEZ-Dvyo3gdA.js +1 -0
- package/dist/railroad-74A4TZTK-1sb9Z_QQ.js +1 -0
- package/dist/railroad-74A4TZTK-CwztrSkE.mjs +2 -0
- package/dist/railroad-abnf-HS5TGJTU-4264fZjH.js +1 -0
- package/dist/railroad-abnf-HS5TGJTU-BKCsR9iC.mjs +2 -0
- package/dist/railroad-ebnf-LZEXJU2U-BXErl5kO.js +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-DzDOfuxK.mjs +2 -0
- package/dist/railroad-peg-WCYAUIDC-B6gNHamV.mjs +2 -0
- package/dist/railroad-peg-WCYAUIDC-D7pSwRGa.js +1 -0
- package/dist/rolldown-runtime-B0aSnxlc.mjs +20 -0
- package/dist/rolldown-runtime-DF3sbh8G.js +1 -0
- package/dist/svelte-compiler-loader-Deqbdbvf.js +1 -0
- package/dist/svelte-compiler-loader-DtYQgEKV.mjs +50 -0
- package/dist/svelte-runtime-Brc440dp.js +5 -0
- package/dist/svelte-runtime-CgCk_bw1.mjs +40 -0
- package/dist/treeView-Q6P3EWNA-DArM8kFH.mjs +2 -0
- package/dist/treeView-Q6P3EWNA-JstiGzov.js +1 -0
- package/dist/treemap-WGGIJYW6-CMIcmEVN.mjs +2 -0
- package/dist/treemap-WGGIJYW6-Dq6fFckz.js +1 -0
- package/dist/ts-compiler-BMDmcNn5.mjs +93 -0
- package/dist/ts-compiler-U7pTMJjY.js +3 -0
- package/dist/types/runtime/bridges/dynamic-component.d.ts +43 -0
- package/dist/types/runtime/bridges/element-bridge.d.ts +24 -0
- package/dist/types/runtime/bridges/index.d.ts +3 -0
- package/dist/types/runtime/bridges/react-bridge.d.ts +35 -0
- package/dist/types/runtime/compiler-cache.d.ts +18 -0
- package/dist/types/runtime/config-schema.d.ts +2 -0
- package/dist/types/runtime/favicons.d.ts +28 -0
- package/dist/types/runtime/loader/local-loader.d.ts +13 -0
- package/dist/types/runtime/markdown/component-body.d.ts +7 -0
- package/dist/types/runtime/markdown/escape.d.ts +1 -0
- package/dist/types/runtime/markdown/highlighter.d.ts +32 -6
- package/dist/types/runtime/markdown/katex.d.ts +5 -0
- package/dist/types/runtime/markdown/mermaid-engine.d.ts +1 -0
- package/dist/types/runtime/markdown/mermaid-loader.d.ts +19 -0
- package/dist/types/runtime/markdown/mermaid.d.ts +6 -0
- package/dist/types/runtime/markdown/tables.d.ts +68 -0
- package/dist/types/runtime/media.d.ts +30 -0
- package/dist/types/runtime/motion.d.ts +134 -0
- package/dist/types/runtime/offline-export.d.ts +9 -2
- package/dist/types/runtime/router.d.ts +40 -2
- package/dist/types/runtime/splash.d.ts +90 -0
- package/dist/types/runtime/svelte-compiler-engine.d.ts +1 -0
- package/dist/types/runtime/svelte-compiler-loader.d.ts +14 -0
- package/dist/types/runtime/svelte-runtime.d.ts +29 -0
- package/dist/types/runtime/svelte-tag.d.ts +7 -0
- package/dist/types/runtime/ts-compiler.d.ts +24 -0
- package/dist/types/runtime/types.d.ts +1 -0
- package/dist/types/ui/doc-context.svelte.d.ts +198 -0
- package/dist/types/ui/index.d.ts +33 -0
- package/dist/types/ui/registry.d.ts +52 -0
- package/dist/types/ui/theme.svelte.d.ts +32 -0
- package/dist/wardley-WFR3VGLG-BK9BA6h6.mjs +2 -0
- package/dist/wardley-WFR3VGLG-Cbs7W-dU.js +1 -0
- package/package.json +61 -48
- package/schemas/docs.schema.json +186 -181
- package/templates/.dmd/CounterWidget.svelte +29 -0
- package/templates/README.md +2 -2
- package/templates/favicon.svg +12 -0
- package/templates/favicons/favicon-book.svg +11 -0
- package/templates/favicons/favicon-markdown.svg +11 -0
- package/templates/favicons/favicon-minimal.svg +15 -0
- package/templates/favicons/favicon-terminal.svg +14 -0
- package/templates/favicons/favicon.svg +12 -0
- package/templates/guides/custom-components.md +82 -22
- package/templates/index.html +6 -3
- package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +0 -89
- package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +0 -1
- package/dist/arc-DgPKXEdT.mjs +0 -82
- package/dist/arc-n7TW7Bis.js +0 -1
- package/dist/architecture-7GRP2DOG-B7myQ46f.js +0 -1
- package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +0 -3
- package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +0 -36
- package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +0 -4154
- package/dist/array-CApNbSU9.mjs +0 -6
- package/dist/array-DZSRzHA_.js +0 -1
- package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +0 -129
- package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +0 -1922
- package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +0 -38
- package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +0 -3010
- package/dist/channel-LgHproiI.mjs +0 -5
- package/dist/channel-yqu0m4cl.js +0 -1
- package/dist/chunk-2E4U76K2-BOyeRQsI.js +0 -1
- package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +0 -348
- package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +0 -15
- package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +0 -1
- package/dist/chunk-4HAMMTFA-GFyfmcSO.js +0 -62
- package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +0 -4188
- package/dist/chunk-5VM5RSS4-GINalzIv.js +0 -15
- package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +0 -5
- package/dist/chunk-75Z2AOVW-DYouz5MZ.js +0 -2
- package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +0 -1330
- package/dist/chunk-CLGD4ZFX-C5J-e2io.js +0 -1
- package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +0 -14
- package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +0 -3836
- package/dist/chunk-DU6HZSFF-CWc5ewtb.js +0 -127
- package/dist/chunk-F27PBJKO-8jvY_jJK.js +0 -1
- package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +0 -61
- package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +0 -21456
- package/dist/chunk-FOHPRMQF-tmTlwTeH.js +0 -161
- package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +0 -1863
- package/dist/chunk-GMAD6QVW-DEQiTa0c.js +0 -72
- package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +0 -37
- package/dist/chunk-GVQU2GXP-CdJIWN41.js +0 -1
- package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +0 -2042
- package/dist/chunk-IMKFNOWR-CPJsszGN.js +0 -231
- package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +0 -8
- package/dist/chunk-JWPE2WC7-p1fYVdYc.js +0 -1
- package/dist/chunk-L3NEJ4N5-TzDiVs78.js +0 -1
- package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +0 -245
- package/dist/chunk-LNGE3PJU-BQX75wkM.js +0 -34
- package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +0 -1521
- package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +0 -672
- package/dist/chunk-OSK3NFVY-CHzvVe8m.js +0 -10
- package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +0 -67
- package/dist/chunk-P2QGCYS3-DKZzpRQW.js +0 -1
- package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +0 -26
- package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +0 -1
- package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +0 -275
- package/dist/chunk-PWAF6VOD-DxZLuCEw.js +0 -1
- package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +0 -4183
- package/dist/chunk-SHT3W25Y-BQjHSn5K.js +0 -168
- package/dist/chunk-SVP7TREG-BFMd615E.js +0 -88
- package/dist/chunk-SVP7TREG-CynckzeF.mjs +0 -490
- package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +0 -3357
- package/dist/chunk-TICWLB2K-agcyBfUp.js +0 -206
- package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +0 -59
- package/dist/chunk-TLUHSLCS-Drx_a7am.js +0 -1
- package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +0 -1
- package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +0 -9
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +0 -1
- package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +0 -12
- package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +0 -1
- package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +0 -1
- package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +0 -30
- package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +0 -1
- package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +0 -2253
- package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +0 -3
- package/dist/cynefin-OW5HDTMX-lNKysi7S.js +0 -1
- package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +0 -62
- package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +0 -355
- package/dist/cytoscape.esm-C5TvPYYm.mjs +0 -18148
- package/dist/cytoscape.esm-CBmWJr5M.js +0 -321
- package/dist/dagre-CZ6P9L_h.js +0 -1
- package/dist/dagre-GXQ25YYZ-CQszk-7P.js +0 -4
- package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +0 -425
- package/dist/dagre-J_1oH0eY.mjs +0 -1934
- package/dist/defaultLocale-N-0uLSyg.mjs +0 -198
- package/dist/defaultLocale-ybN1Vtvg.js +0 -1
- package/dist/diagram-S7CK7UJ4-CTMvxX__.js +0 -30
- package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +0 -301
- package/dist/diagram-UQ7AKVKN-1viEkqlG.js +0 -41
- package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +0 -214
- package/dist/diagram-VSXAHHWV-DgVT19mq.js +0 -3
- package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +0 -432
- package/dist/diagram-VX7I27RA-CNw0pOX_.js +0 -24
- package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +0 -527
- package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +0 -134
- package/dist/diagram-Z3DM3KII-CPkBr3FT.js +0 -24
- package/dist/dist-CXWJafG_.js +0 -1
- package/dist/dist-DNdLIC8h.mjs +0 -59
- package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +0 -1
- package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +0 -100
- package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +0 -99
- package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +0 -1966
- package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +0 -1
- package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +0 -3
- package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +0 -1
- package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +0 -17
- package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +0 -3072
- package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +0 -292
- package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +0 -1
- package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +0 -3
- package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +0 -106
- package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +0 -733
- package/dist/graphlib-BaETKKSa.js +0 -1
- package/dist/graphlib-XW-Jr8pF.mjs +0 -1267
- package/dist/info-A6RAGUB7-ClYskpn6.mjs +0 -3
- package/dist/info-A6RAGUB7-DDvvt-fW.js +0 -1
- package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +0 -20
- package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +0 -2
- package/dist/init-BJdqMO10.js +0 -1
- package/dist/init-CsQUQz36.mjs +0 -13
- package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +0 -70
- package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +0 -719
- package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +0 -139
- package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +0 -884
- package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +0 -976
- package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +0 -89
- package/dist/line-BEwhHSLl.js +0 -1
- package/dist/line-CiXRog8O.mjs +0 -34
- package/dist/linear-75tfjrny.js +0 -1
- package/dist/linear-Ncx_RuON.mjs +0 -288
- package/dist/mermaid-parser.core-BBApyu_y.js +0 -6
- package/dist/mermaid-parser.core-BRHibdUE.mjs +0 -638
- package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +0 -1006
- package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +0 -96
- package/dist/ordinal-B1BNQwUR.mjs +0 -65
- package/dist/ordinal-B9aFWmF9.js +0 -1
- package/dist/packet-AYTQ26CC-CorIy9Ul.js +0 -1
- package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +0 -3
- package/dist/path-CnWkkRiY.mjs +0 -84
- package/dist/path-DIS6ck99.js +0 -1
- package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +0 -1
- package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +0 -94
- package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +0 -3
- package/dist/pie-WAS4IAKB-D84xrSoY.js +0 -1
- package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +0 -39
- package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +0 -203
- package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +0 -7
- package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +0 -2001
- package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +0 -3
- package/dist/radar-RG4KPBEZ-R2sQOLL9.js +0 -1
- package/dist/railroad-74A4TZTK-BOZIf6ts.js +0 -1
- package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +0 -3
- package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +0 -3
- package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +0 -3
- package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +0 -3
- package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +0 -1
- package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +0 -76
- package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +0 -1
- package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +0 -84
- package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +0 -2224
- package/dist/rough.esm-ChRLLRha.js +0 -1
- package/dist/rough.esm-DXYGHN3m.mjs +0 -1361
- package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +0 -972
- package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +0 -40
- package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +0 -162
- package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +0 -4156
- package/dist/sizeCapture-INFHLROL-BihkCH-7.js +0 -1
- package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +0 -46
- package/dist/src-B4mN2BMl.js +0 -1
- package/dist/src-D_hsMyeP.mjs +0 -2154
- package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +0 -220
- package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +0 -1
- package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +0 -30
- package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +0 -1
- package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +0 -4979
- package/dist/swimlanes-42K2YHIH-DlggBCTy.js +0 -1
- package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +0 -8
- package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +0 -31
- package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +0 -120
- package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +0 -1069
- package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +0 -3
- package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +0 -1
- package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +0 -3
- package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +0 -1
- package/dist/types/runtime/app.d.ts +0 -9
- package/dist/types/runtime/components/AppearanceMenu.d.ts +0 -2
- package/dist/types/runtime/components/Builtins.d.ts +0 -44
- package/dist/types/runtime/components/Content.d.ts +0 -2
- package/dist/types/runtime/components/DmdRegistry.d.ts +0 -19
- package/dist/types/runtime/components/Layout.d.ts +0 -2
- package/dist/types/runtime/components/MermaidDiagram.d.ts +0 -16
- package/dist/types/runtime/components/Navbar.d.ts +0 -2
- package/dist/types/runtime/components/OfflineDownloadButton.d.ts +0 -2
- package/dist/types/runtime/components/OfflineNotice.d.ts +0 -6
- package/dist/types/runtime/components/Sidebar.d.ts +0 -2
- package/dist/types/runtime/components/TableOfContents.d.ts +0 -8
- package/dist/types/runtime/index.d.ts +0 -8
- package/dist/types/runtime/markdown/renderer.d.ts +0 -7
- package/dist/types/runtime/provider/DocProvider.d.ts +0 -40
- package/dist/types/runtime/provider/ThemeProvider.d.ts +0 -25
- package/dist/types/runtime/search/SearchModal.d.ts +0 -11
- package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +0 -34
- package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +0 -1880
- package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +0 -3
- package/dist/wardley-WFR3VGLG-DWDqJSgm.js +0 -1
- package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +0 -78
- package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +0 -645
- package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +0 -7
- package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +0 -2210
- package/templates/.dmd/components.js +0 -25
|
@@ -0,0 +1,1588 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-B0aSnxlc.mjs";
|
|
2
|
+
//#region node_modules/prismjs/prism.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
+
var n = function(e) {
|
|
5
|
+
var t = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, n = 0, r = {}, i = {
|
|
6
|
+
manual: e.Prism && e.Prism.manual,
|
|
7
|
+
disableWorkerMessageHandler: e.Prism && e.Prism.disableWorkerMessageHandler,
|
|
8
|
+
util: {
|
|
9
|
+
encode: function e(t) {
|
|
10
|
+
return t instanceof a ? new a(t.type, e(t.content), t.alias) : Array.isArray(t) ? t.map(e) : t.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
11
|
+
},
|
|
12
|
+
type: function(e) {
|
|
13
|
+
return Object.prototype.toString.call(e).slice(8, -1);
|
|
14
|
+
},
|
|
15
|
+
objId: function(e) {
|
|
16
|
+
return e.__id || Object.defineProperty(e, "__id", { value: ++n }), e.__id;
|
|
17
|
+
},
|
|
18
|
+
clone: function e(t, n) {
|
|
19
|
+
n ||= {};
|
|
20
|
+
var r, a;
|
|
21
|
+
switch (i.util.type(t)) {
|
|
22
|
+
case "Object":
|
|
23
|
+
if (a = i.util.objId(t), n[a]) return n[a];
|
|
24
|
+
for (var o in r = {}, n[a] = r, t) t.hasOwnProperty(o) && (r[o] = e(t[o], n));
|
|
25
|
+
return r;
|
|
26
|
+
case "Array": return a = i.util.objId(t), n[a] ? n[a] : (r = [], n[a] = r, t.forEach(function(t, i) {
|
|
27
|
+
r[i] = e(t, n);
|
|
28
|
+
}), r);
|
|
29
|
+
default: return t;
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
getLanguage: function(e) {
|
|
33
|
+
for (; e;) {
|
|
34
|
+
var n = t.exec(e.className);
|
|
35
|
+
if (n) return n[1].toLowerCase();
|
|
36
|
+
e = e.parentElement;
|
|
37
|
+
}
|
|
38
|
+
return "none";
|
|
39
|
+
},
|
|
40
|
+
setLanguage: function(e, n) {
|
|
41
|
+
e.className = e.className.replace(RegExp(t, "gi"), ""), e.classList.add("language-" + n);
|
|
42
|
+
},
|
|
43
|
+
currentScript: function() {
|
|
44
|
+
if (typeof document > "u") return null;
|
|
45
|
+
if (document.currentScript && document.currentScript.tagName === "SCRIPT") return document.currentScript;
|
|
46
|
+
try {
|
|
47
|
+
throw Error();
|
|
48
|
+
} catch (r) {
|
|
49
|
+
var e = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack) || [])[1];
|
|
50
|
+
if (e) {
|
|
51
|
+
var t = document.getElementsByTagName("script");
|
|
52
|
+
for (var n in t) if (t[n].src == e) return t[n];
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
isActive: function(e, t, n) {
|
|
58
|
+
for (var r = "no-" + t; e;) {
|
|
59
|
+
var i = e.classList;
|
|
60
|
+
if (i.contains(t)) return !0;
|
|
61
|
+
if (i.contains(r)) return !1;
|
|
62
|
+
e = e.parentElement;
|
|
63
|
+
}
|
|
64
|
+
return !!n;
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
languages: {
|
|
68
|
+
plain: r,
|
|
69
|
+
plaintext: r,
|
|
70
|
+
text: r,
|
|
71
|
+
txt: r,
|
|
72
|
+
extend: function(e, t) {
|
|
73
|
+
var n = i.util.clone(i.languages[e]);
|
|
74
|
+
for (var r in t) n[r] = t[r];
|
|
75
|
+
return n;
|
|
76
|
+
},
|
|
77
|
+
insertBefore: function(e, t, n, r) {
|
|
78
|
+
r ||= i.languages;
|
|
79
|
+
var a = r[e], o = {};
|
|
80
|
+
for (var s in a) if (a.hasOwnProperty(s)) {
|
|
81
|
+
if (s == t) for (var c in n) n.hasOwnProperty(c) && (o[c] = n[c]);
|
|
82
|
+
n.hasOwnProperty(s) || (o[s] = a[s]);
|
|
83
|
+
}
|
|
84
|
+
var l = r[e];
|
|
85
|
+
return r[e] = o, i.languages.DFS(i.languages, function(t, n) {
|
|
86
|
+
n === l && t != e && (this[t] = o);
|
|
87
|
+
}), o;
|
|
88
|
+
},
|
|
89
|
+
DFS: function e(t, n, r, a) {
|
|
90
|
+
a ||= {};
|
|
91
|
+
var o = i.util.objId;
|
|
92
|
+
for (var s in t) if (t.hasOwnProperty(s)) {
|
|
93
|
+
n.call(t, s, t[s], r || s);
|
|
94
|
+
var c = t[s], l = i.util.type(c);
|
|
95
|
+
l === "Object" && !a[o(c)] ? (a[o(c)] = !0, e(c, n, null, a)) : l === "Array" && !a[o(c)] && (a[o(c)] = !0, e(c, n, s, a));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
plugins: {},
|
|
100
|
+
highlightAll: function(e, t) {
|
|
101
|
+
i.highlightAllUnder(document, e, t);
|
|
102
|
+
},
|
|
103
|
+
highlightAllUnder: function(e, t, n) {
|
|
104
|
+
var r = {
|
|
105
|
+
callback: n,
|
|
106
|
+
container: e,
|
|
107
|
+
selector: "code[class*=\"language-\"], [class*=\"language-\"] code, code[class*=\"lang-\"], [class*=\"lang-\"] code"
|
|
108
|
+
};
|
|
109
|
+
i.hooks.run("before-highlightall", r), r.elements = Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)), i.hooks.run("before-all-elements-highlight", r);
|
|
110
|
+
for (var a = 0, o; o = r.elements[a++];) i.highlightElement(o, t === !0, r.callback);
|
|
111
|
+
},
|
|
112
|
+
highlightElement: function(t, n, r) {
|
|
113
|
+
var a = i.util.getLanguage(t), o = i.languages[a];
|
|
114
|
+
i.util.setLanguage(t, a);
|
|
115
|
+
var s = t.parentElement;
|
|
116
|
+
s && s.nodeName.toLowerCase() === "pre" && i.util.setLanguage(s, a);
|
|
117
|
+
var c = {
|
|
118
|
+
element: t,
|
|
119
|
+
language: a,
|
|
120
|
+
grammar: o,
|
|
121
|
+
code: t.textContent
|
|
122
|
+
};
|
|
123
|
+
function l(e) {
|
|
124
|
+
c.highlightedCode = e, i.hooks.run("before-insert", c), c.element.innerHTML = c.highlightedCode, i.hooks.run("after-highlight", c), i.hooks.run("complete", c), r && r.call(c.element);
|
|
125
|
+
}
|
|
126
|
+
if (i.hooks.run("before-sanity-check", c), s = c.element.parentElement, s && s.nodeName.toLowerCase() === "pre" && !s.hasAttribute("tabindex") && s.setAttribute("tabindex", "0"), !c.code) {
|
|
127
|
+
i.hooks.run("complete", c), r && r.call(c.element);
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
if (i.hooks.run("before-highlight", c), !c.grammar) {
|
|
131
|
+
l(i.util.encode(c.code));
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
if (n && e.Worker) {
|
|
135
|
+
var u = new Worker(i.filename);
|
|
136
|
+
u.onmessage = function(e) {
|
|
137
|
+
l(e.data);
|
|
138
|
+
}, u.postMessage(JSON.stringify({
|
|
139
|
+
language: c.language,
|
|
140
|
+
code: c.code,
|
|
141
|
+
immediateClose: !0
|
|
142
|
+
}));
|
|
143
|
+
} else l(i.highlight(c.code, c.grammar, c.language));
|
|
144
|
+
},
|
|
145
|
+
highlight: function(e, t, n) {
|
|
146
|
+
var r = {
|
|
147
|
+
code: e,
|
|
148
|
+
grammar: t,
|
|
149
|
+
language: n
|
|
150
|
+
};
|
|
151
|
+
if (i.hooks.run("before-tokenize", r), !r.grammar) throw Error("The language \"" + r.language + "\" has no grammar.");
|
|
152
|
+
return r.tokens = i.tokenize(r.code, r.grammar), i.hooks.run("after-tokenize", r), a.stringify(i.util.encode(r.tokens), r.language);
|
|
153
|
+
},
|
|
154
|
+
tokenize: function(e, t) {
|
|
155
|
+
var n = t.rest;
|
|
156
|
+
if (n) {
|
|
157
|
+
for (var r in n) t[r] = n[r];
|
|
158
|
+
delete t.rest;
|
|
159
|
+
}
|
|
160
|
+
var i = new c();
|
|
161
|
+
return l(i, i.head, e), s(e, i, t, i.head, 0), d(i);
|
|
162
|
+
},
|
|
163
|
+
hooks: {
|
|
164
|
+
all: {},
|
|
165
|
+
add: function(e, t) {
|
|
166
|
+
var n = i.hooks.all;
|
|
167
|
+
n[e] = n[e] || [], n[e].push(t);
|
|
168
|
+
},
|
|
169
|
+
run: function(e, t) {
|
|
170
|
+
var n = i.hooks.all[e];
|
|
171
|
+
if (!(!n || !n.length)) for (var r = 0, a; a = n[r++];) a(t);
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
Token: a
|
|
175
|
+
};
|
|
176
|
+
e.Prism = i;
|
|
177
|
+
function a(e, t, n, r) {
|
|
178
|
+
this.type = e, this.content = t, this.alias = n, this.length = (r || "").length | 0;
|
|
179
|
+
}
|
|
180
|
+
a.stringify = function e(t, n) {
|
|
181
|
+
if (typeof t == "string") return t;
|
|
182
|
+
if (Array.isArray(t)) {
|
|
183
|
+
var r = "";
|
|
184
|
+
return t.forEach(function(t) {
|
|
185
|
+
r += e(t, n);
|
|
186
|
+
}), r;
|
|
187
|
+
}
|
|
188
|
+
var a = {
|
|
189
|
+
type: t.type,
|
|
190
|
+
content: e(t.content, n),
|
|
191
|
+
tag: "span",
|
|
192
|
+
classes: ["token", t.type],
|
|
193
|
+
attributes: {},
|
|
194
|
+
language: n
|
|
195
|
+
}, o = t.alias;
|
|
196
|
+
o && (Array.isArray(o) ? Array.prototype.push.apply(a.classes, o) : a.classes.push(o)), i.hooks.run("wrap", a);
|
|
197
|
+
var s = "";
|
|
198
|
+
for (var c in a.attributes) s += " " + c + "=\"" + (a.attributes[c] || "").replace(/"/g, """) + "\"";
|
|
199
|
+
return "<" + a.tag + " class=\"" + a.classes.join(" ") + "\"" + s + ">" + a.content + "</" + a.tag + ">";
|
|
200
|
+
};
|
|
201
|
+
function o(e, t, n, r) {
|
|
202
|
+
e.lastIndex = t;
|
|
203
|
+
var i = e.exec(n);
|
|
204
|
+
if (i && r && i[1]) {
|
|
205
|
+
var a = i[1].length;
|
|
206
|
+
i.index += a, i[0] = i[0].slice(a);
|
|
207
|
+
}
|
|
208
|
+
return i;
|
|
209
|
+
}
|
|
210
|
+
function s(e, t, n, r, c, d) {
|
|
211
|
+
for (var f in n) if (!(!n.hasOwnProperty(f) || !n[f])) {
|
|
212
|
+
var p = n[f];
|
|
213
|
+
p = Array.isArray(p) ? p : [p];
|
|
214
|
+
for (var m = 0; m < p.length; ++m) {
|
|
215
|
+
if (d && d.cause == f + "," + m) return;
|
|
216
|
+
var h = p[m], g = h.inside, _ = !!h.lookbehind, v = !!h.greedy, y = h.alias;
|
|
217
|
+
if (v && !h.pattern.global) {
|
|
218
|
+
var b = h.pattern.toString().match(/[imsuy]*$/)[0];
|
|
219
|
+
h.pattern = RegExp(h.pattern.source, b + "g");
|
|
220
|
+
}
|
|
221
|
+
for (var x = h.pattern || h, S = r.next, C = c; S !== t.tail && !(d && C >= d.reach); C += S.value.length, S = S.next) {
|
|
222
|
+
var w = S.value;
|
|
223
|
+
if (t.length > e.length) return;
|
|
224
|
+
if (!(w instanceof a)) {
|
|
225
|
+
var T = 1, E;
|
|
226
|
+
if (v) {
|
|
227
|
+
if (E = o(x, C, e, _), !E || E.index >= e.length) break;
|
|
228
|
+
var D = E.index, O = E.index + E[0].length, k = C;
|
|
229
|
+
for (k += S.value.length; D >= k;) S = S.next, k += S.value.length;
|
|
230
|
+
if (k -= S.value.length, C = k, S.value instanceof a) continue;
|
|
231
|
+
for (var A = S; A !== t.tail && (k < O || typeof A.value == "string"); A = A.next) T++, k += A.value.length;
|
|
232
|
+
T--, w = e.slice(C, k), E.index -= C;
|
|
233
|
+
} else if (E = o(x, 0, w, _), !E) continue;
|
|
234
|
+
var D = E.index, j = E[0], M = w.slice(0, D), N = w.slice(D + j.length), P = C + w.length;
|
|
235
|
+
d && P > d.reach && (d.reach = P);
|
|
236
|
+
var F = S.prev;
|
|
237
|
+
M && (F = l(t, F, M), C += M.length), u(t, F, T);
|
|
238
|
+
var I = new a(f, g ? i.tokenize(j, g) : j, y, j);
|
|
239
|
+
if (S = l(t, F, I), N && l(t, S, N), T > 1) {
|
|
240
|
+
var L = {
|
|
241
|
+
cause: f + "," + m,
|
|
242
|
+
reach: P
|
|
243
|
+
};
|
|
244
|
+
s(e, t, n, S.prev, C, L), d && L.reach > d.reach && (d.reach = L.reach);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
function c() {
|
|
252
|
+
var e = {
|
|
253
|
+
value: null,
|
|
254
|
+
prev: null,
|
|
255
|
+
next: null
|
|
256
|
+
}, t = {
|
|
257
|
+
value: null,
|
|
258
|
+
prev: e,
|
|
259
|
+
next: null
|
|
260
|
+
};
|
|
261
|
+
e.next = t, this.head = e, this.tail = t, this.length = 0;
|
|
262
|
+
}
|
|
263
|
+
function l(e, t, n) {
|
|
264
|
+
var r = t.next, i = {
|
|
265
|
+
value: n,
|
|
266
|
+
prev: t,
|
|
267
|
+
next: r
|
|
268
|
+
};
|
|
269
|
+
return t.next = i, r.prev = i, e.length++, i;
|
|
270
|
+
}
|
|
271
|
+
function u(e, t, n) {
|
|
272
|
+
for (var r = t.next, i = 0; i < n && r !== e.tail; i++) r = r.next;
|
|
273
|
+
t.next = r, r.prev = t, e.length -= i;
|
|
274
|
+
}
|
|
275
|
+
function d(e) {
|
|
276
|
+
for (var t = [], n = e.head.next; n !== e.tail;) t.push(n.value), n = n.next;
|
|
277
|
+
return t;
|
|
278
|
+
}
|
|
279
|
+
if (!e.document) return e.addEventListener && (i.disableWorkerMessageHandler || e.addEventListener("message", function(t) {
|
|
280
|
+
var n = JSON.parse(t.data), r = n.language, a = n.code, o = n.immediateClose;
|
|
281
|
+
e.postMessage(i.highlight(a, i.languages[r], r)), o && e.close();
|
|
282
|
+
}, !1)), i;
|
|
283
|
+
var f = i.util.currentScript();
|
|
284
|
+
f && (i.filename = f.src, f.hasAttribute("data-manual") && (i.manual = !0));
|
|
285
|
+
function p() {
|
|
286
|
+
i.manual || i.highlightAll();
|
|
287
|
+
}
|
|
288
|
+
if (!i.manual) {
|
|
289
|
+
var m = document.readyState;
|
|
290
|
+
m === "loading" || m === "interactive" && f && f.defer ? document.addEventListener("DOMContentLoaded", p) : window.requestAnimationFrame ? window.requestAnimationFrame(p) : window.setTimeout(p, 16);
|
|
291
|
+
}
|
|
292
|
+
return i;
|
|
293
|
+
}(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
|
|
294
|
+
t !== void 0 && t.exports && (t.exports = n), typeof global < "u" && (global.Prism = n), n.languages.markup = {
|
|
295
|
+
comment: {
|
|
296
|
+
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
297
|
+
greedy: !0
|
|
298
|
+
},
|
|
299
|
+
prolog: {
|
|
300
|
+
pattern: /<\?[\s\S]+?\?>/,
|
|
301
|
+
greedy: !0
|
|
302
|
+
},
|
|
303
|
+
doctype: {
|
|
304
|
+
pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
|
|
305
|
+
greedy: !0,
|
|
306
|
+
inside: {
|
|
307
|
+
"internal-subset": {
|
|
308
|
+
pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
|
|
309
|
+
lookbehind: !0,
|
|
310
|
+
greedy: !0,
|
|
311
|
+
inside: null
|
|
312
|
+
},
|
|
313
|
+
string: {
|
|
314
|
+
pattern: /"[^"]*"|'[^']*'/,
|
|
315
|
+
greedy: !0
|
|
316
|
+
},
|
|
317
|
+
punctuation: /^<!|>$|[[\]]/,
|
|
318
|
+
"doctype-tag": /^DOCTYPE/i,
|
|
319
|
+
name: /[^\s<>'"]+/
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
cdata: {
|
|
323
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
324
|
+
greedy: !0
|
|
325
|
+
},
|
|
326
|
+
tag: {
|
|
327
|
+
pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
|
|
328
|
+
greedy: !0,
|
|
329
|
+
inside: {
|
|
330
|
+
tag: {
|
|
331
|
+
pattern: /^<\/?[^\s>\/]+/,
|
|
332
|
+
inside: {
|
|
333
|
+
punctuation: /^<\/?/,
|
|
334
|
+
namespace: /^[^\s>\/:]+:/
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"special-attr": [],
|
|
338
|
+
"attr-value": {
|
|
339
|
+
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
|
|
340
|
+
inside: { punctuation: [{
|
|
341
|
+
pattern: /^=/,
|
|
342
|
+
alias: "attr-equals"
|
|
343
|
+
}, {
|
|
344
|
+
pattern: /^(\s*)["']|["']$/,
|
|
345
|
+
lookbehind: !0
|
|
346
|
+
}] }
|
|
347
|
+
},
|
|
348
|
+
punctuation: /\/?>/,
|
|
349
|
+
"attr-name": {
|
|
350
|
+
pattern: /[^\s>\/]+/,
|
|
351
|
+
inside: { namespace: /^[^\s>\/:]+:/ }
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
entity: [{
|
|
356
|
+
pattern: /&[\da-z]{1,8};/i,
|
|
357
|
+
alias: "named-entity"
|
|
358
|
+
}, /&#x?[\da-f]{1,8};/i]
|
|
359
|
+
}, n.languages.markup.tag.inside["attr-value"].inside.entity = n.languages.markup.entity, n.languages.markup.doctype.inside["internal-subset"].inside = n.languages.markup, n.hooks.add("wrap", function(e) {
|
|
360
|
+
e.type === "entity" && (e.attributes.title = e.content.replace(/&/, "&"));
|
|
361
|
+
}), Object.defineProperty(n.languages.markup.tag, "addInlined", { value: function(e, t) {
|
|
362
|
+
var r = {};
|
|
363
|
+
r["language-" + t] = {
|
|
364
|
+
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
365
|
+
lookbehind: !0,
|
|
366
|
+
inside: n.languages[t]
|
|
367
|
+
}, r.cdata = /^<!\[CDATA\[|\]\]>$/i;
|
|
368
|
+
var i = { "included-cdata": {
|
|
369
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
370
|
+
inside: r
|
|
371
|
+
} };
|
|
372
|
+
i["language-" + t] = {
|
|
373
|
+
pattern: /[\s\S]+/,
|
|
374
|
+
inside: n.languages[t]
|
|
375
|
+
};
|
|
376
|
+
var a = {};
|
|
377
|
+
a[e] = {
|
|
378
|
+
pattern: RegExp("(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)".replace(/__/g, function() {
|
|
379
|
+
return e;
|
|
380
|
+
}), "i"),
|
|
381
|
+
lookbehind: !0,
|
|
382
|
+
greedy: !0,
|
|
383
|
+
inside: i
|
|
384
|
+
}, n.languages.insertBefore("markup", "cdata", a);
|
|
385
|
+
} }), Object.defineProperty(n.languages.markup.tag, "addAttribute", { value: function(e, t) {
|
|
386
|
+
n.languages.markup.tag.inside["special-attr"].push({
|
|
387
|
+
pattern: RegExp("(^|[\"'\\s])(?:" + e + ")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))", "i"),
|
|
388
|
+
lookbehind: !0,
|
|
389
|
+
inside: {
|
|
390
|
+
"attr-name": /^[^\s=]+/,
|
|
391
|
+
"attr-value": {
|
|
392
|
+
pattern: /=[\s\S]+/,
|
|
393
|
+
inside: {
|
|
394
|
+
value: {
|
|
395
|
+
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
|
|
396
|
+
lookbehind: !0,
|
|
397
|
+
alias: [t, "language-" + t],
|
|
398
|
+
inside: n.languages[t]
|
|
399
|
+
},
|
|
400
|
+
punctuation: [{
|
|
401
|
+
pattern: /^=/,
|
|
402
|
+
alias: "attr-equals"
|
|
403
|
+
}, /"|'/]
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
} }), n.languages.html = n.languages.markup, n.languages.mathml = n.languages.markup, n.languages.svg = n.languages.markup, n.languages.xml = n.languages.extend("markup", {}), n.languages.ssml = n.languages.xml, n.languages.atom = n.languages.xml, n.languages.rss = n.languages.xml, (function(e) {
|
|
409
|
+
var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
410
|
+
e.languages.css = {
|
|
411
|
+
comment: /\/\*[\s\S]*?\*\//,
|
|
412
|
+
atrule: {
|
|
413
|
+
pattern: RegExp("@[\\w-](?:[^;{\\s\"']|\\s+(?!\\s)|" + t.source + ")*?(?:;|(?=\\s*\\{))"),
|
|
414
|
+
inside: {
|
|
415
|
+
rule: /^@[\w-]+/,
|
|
416
|
+
"selector-function-argument": {
|
|
417
|
+
pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
|
|
418
|
+
lookbehind: !0,
|
|
419
|
+
alias: "selector"
|
|
420
|
+
},
|
|
421
|
+
keyword: {
|
|
422
|
+
pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
|
|
423
|
+
lookbehind: !0
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
url: {
|
|
428
|
+
pattern: RegExp("\\burl\\((?:" + t.source + "|(?:[^\\\\\\r\\n()\"']|\\\\[\\s\\S])*)\\)", "i"),
|
|
429
|
+
greedy: !0,
|
|
430
|
+
inside: {
|
|
431
|
+
function: /^url/i,
|
|
432
|
+
punctuation: /^\(|\)$/,
|
|
433
|
+
string: {
|
|
434
|
+
pattern: RegExp("^" + t.source + "$"),
|
|
435
|
+
alias: "url"
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
selector: {
|
|
440
|
+
pattern: RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|" + t.source + ")*(?=\\s*\\{)"),
|
|
441
|
+
lookbehind: !0
|
|
442
|
+
},
|
|
443
|
+
string: {
|
|
444
|
+
pattern: t,
|
|
445
|
+
greedy: !0
|
|
446
|
+
},
|
|
447
|
+
property: {
|
|
448
|
+
pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
|
|
449
|
+
lookbehind: !0
|
|
450
|
+
},
|
|
451
|
+
important: /!important\b/i,
|
|
452
|
+
function: {
|
|
453
|
+
pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
|
|
454
|
+
lookbehind: !0
|
|
455
|
+
},
|
|
456
|
+
punctuation: /[(){};:,]/
|
|
457
|
+
}, e.languages.css.atrule.inside.rest = e.languages.css;
|
|
458
|
+
var n = e.languages.markup;
|
|
459
|
+
n && (n.tag.addInlined("style", "css"), n.tag.addAttribute("style", "css"));
|
|
460
|
+
})(n), n.languages.clike = {
|
|
461
|
+
comment: [{
|
|
462
|
+
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
463
|
+
lookbehind: !0,
|
|
464
|
+
greedy: !0
|
|
465
|
+
}, {
|
|
466
|
+
pattern: /(^|[^\\:])\/\/.*/,
|
|
467
|
+
lookbehind: !0,
|
|
468
|
+
greedy: !0
|
|
469
|
+
}],
|
|
470
|
+
string: {
|
|
471
|
+
pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
472
|
+
greedy: !0
|
|
473
|
+
},
|
|
474
|
+
"class-name": {
|
|
475
|
+
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
|
|
476
|
+
lookbehind: !0,
|
|
477
|
+
inside: { punctuation: /[.\\]/ }
|
|
478
|
+
},
|
|
479
|
+
keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
|
|
480
|
+
boolean: /\b(?:false|true)\b/,
|
|
481
|
+
function: /\b\w+(?=\()/,
|
|
482
|
+
number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
|
|
483
|
+
operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
|
|
484
|
+
punctuation: /[{}[\];(),.:]/
|
|
485
|
+
}, n.languages.javascript = n.languages.extend("clike", {
|
|
486
|
+
"class-name": [n.languages.clike["class-name"], {
|
|
487
|
+
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
|
|
488
|
+
lookbehind: !0
|
|
489
|
+
}],
|
|
490
|
+
keyword: [{
|
|
491
|
+
pattern: /((?:^|\})\s*)catch\b/,
|
|
492
|
+
lookbehind: !0
|
|
493
|
+
}, {
|
|
494
|
+
pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
|
|
495
|
+
lookbehind: !0
|
|
496
|
+
}],
|
|
497
|
+
function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
|
|
498
|
+
number: {
|
|
499
|
+
pattern: RegExp("(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])"),
|
|
500
|
+
lookbehind: !0
|
|
501
|
+
},
|
|
502
|
+
operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
|
|
503
|
+
}), n.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, n.languages.insertBefore("javascript", "keyword", {
|
|
504
|
+
regex: {
|
|
505
|
+
pattern: RegExp("((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))"),
|
|
506
|
+
lookbehind: !0,
|
|
507
|
+
greedy: !0,
|
|
508
|
+
inside: {
|
|
509
|
+
"regex-source": {
|
|
510
|
+
pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
|
|
511
|
+
lookbehind: !0,
|
|
512
|
+
alias: "language-regex",
|
|
513
|
+
inside: n.languages.regex
|
|
514
|
+
},
|
|
515
|
+
"regex-delimiter": /^\/|\/$/,
|
|
516
|
+
"regex-flags": /^[a-z]+$/
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"function-variable": {
|
|
520
|
+
pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
|
|
521
|
+
alias: "function"
|
|
522
|
+
},
|
|
523
|
+
parameter: [
|
|
524
|
+
{
|
|
525
|
+
pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
|
|
526
|
+
lookbehind: !0,
|
|
527
|
+
inside: n.languages.javascript
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
|
|
531
|
+
lookbehind: !0,
|
|
532
|
+
inside: n.languages.javascript
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
|
|
536
|
+
lookbehind: !0,
|
|
537
|
+
inside: n.languages.javascript
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
|
|
541
|
+
lookbehind: !0,
|
|
542
|
+
inside: n.languages.javascript
|
|
543
|
+
}
|
|
544
|
+
],
|
|
545
|
+
constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
|
|
546
|
+
}), n.languages.insertBefore("javascript", "string", {
|
|
547
|
+
hashbang: {
|
|
548
|
+
pattern: /^#!.*/,
|
|
549
|
+
greedy: !0,
|
|
550
|
+
alias: "comment"
|
|
551
|
+
},
|
|
552
|
+
"template-string": {
|
|
553
|
+
pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
|
|
554
|
+
greedy: !0,
|
|
555
|
+
inside: {
|
|
556
|
+
"template-punctuation": {
|
|
557
|
+
pattern: /^`|`$/,
|
|
558
|
+
alias: "string"
|
|
559
|
+
},
|
|
560
|
+
interpolation: {
|
|
561
|
+
pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
|
|
562
|
+
lookbehind: !0,
|
|
563
|
+
inside: {
|
|
564
|
+
"interpolation-punctuation": {
|
|
565
|
+
pattern: /^\$\{|\}$/,
|
|
566
|
+
alias: "punctuation"
|
|
567
|
+
},
|
|
568
|
+
rest: n.languages.javascript
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
string: /[\s\S]+/
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
"string-property": {
|
|
575
|
+
pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
|
|
576
|
+
lookbehind: !0,
|
|
577
|
+
greedy: !0,
|
|
578
|
+
alias: "property"
|
|
579
|
+
}
|
|
580
|
+
}), n.languages.insertBefore("javascript", "operator", { "literal-property": {
|
|
581
|
+
pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
|
|
582
|
+
lookbehind: !0,
|
|
583
|
+
alias: "property"
|
|
584
|
+
} }), n.languages.markup && (n.languages.markup.tag.addInlined("script", "javascript"), n.languages.markup.tag.addAttribute("on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)", "javascript")), n.languages.js = n.languages.javascript, (function() {
|
|
585
|
+
if (n === void 0 || typeof document > "u") return;
|
|
586
|
+
Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
|
|
587
|
+
var e = "Loading…", t = function(e, t) {
|
|
588
|
+
return "✖ Error " + e + " while fetching file: " + t;
|
|
589
|
+
}, r = "✖ Error: File does not exist or is empty", i = {
|
|
590
|
+
js: "javascript",
|
|
591
|
+
py: "python",
|
|
592
|
+
rb: "ruby",
|
|
593
|
+
ps1: "powershell",
|
|
594
|
+
psm1: "powershell",
|
|
595
|
+
sh: "bash",
|
|
596
|
+
bat: "batch",
|
|
597
|
+
h: "c",
|
|
598
|
+
tex: "latex"
|
|
599
|
+
}, a = "data-src-status", o = "loading", s = "loaded", c = "failed", l = "pre[data-src]:not([" + a + "=\"" + s + "\"]):not([" + a + "=\"" + o + "\"])";
|
|
600
|
+
function u(e, n, i) {
|
|
601
|
+
var a = new XMLHttpRequest();
|
|
602
|
+
a.open("GET", e, !0), a.onreadystatechange = function() {
|
|
603
|
+
a.readyState == 4 && (a.status < 400 && a.responseText ? n(a.responseText) : a.status >= 400 ? i(t(a.status, a.statusText)) : i(r));
|
|
604
|
+
}, a.send(null);
|
|
605
|
+
}
|
|
606
|
+
function d(e) {
|
|
607
|
+
var t = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e || "");
|
|
608
|
+
if (t) {
|
|
609
|
+
var n = Number(t[1]), r = t[2], i = t[3];
|
|
610
|
+
return r ? i ? [n, Number(i)] : [n, void 0] : [n, n];
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
n.hooks.add("before-highlightall", function(e) {
|
|
614
|
+
e.selector += ", " + l;
|
|
615
|
+
}), n.hooks.add("before-sanity-check", function(t) {
|
|
616
|
+
var r = t.element;
|
|
617
|
+
if (r.matches(l)) {
|
|
618
|
+
t.code = "", r.setAttribute(a, o);
|
|
619
|
+
var f = r.appendChild(document.createElement("CODE"));
|
|
620
|
+
f.textContent = e;
|
|
621
|
+
var p = r.getAttribute("data-src"), m = t.language;
|
|
622
|
+
if (m === "none") {
|
|
623
|
+
var h = (/\.(\w+)$/.exec(p) || [, "none"])[1];
|
|
624
|
+
m = i[h] || h;
|
|
625
|
+
}
|
|
626
|
+
n.util.setLanguage(f, m), n.util.setLanguage(r, m);
|
|
627
|
+
var g = n.plugins.autoloader;
|
|
628
|
+
g && g.loadLanguages(m), u(p, function(e) {
|
|
629
|
+
r.setAttribute(a, s);
|
|
630
|
+
var t = d(r.getAttribute("data-range"));
|
|
631
|
+
if (t) {
|
|
632
|
+
var i = e.split(/\r\n?|\n/g), o = t[0], c = t[1] == null ? i.length : t[1];
|
|
633
|
+
o < 0 && (o += i.length), o = Math.max(0, Math.min(o - 1, i.length)), c < 0 && (c += i.length), c = Math.max(0, Math.min(c, i.length)), e = i.slice(o, c).join("\n"), r.hasAttribute("data-start") || r.setAttribute("data-start", String(o + 1));
|
|
634
|
+
}
|
|
635
|
+
f.textContent = e, n.highlightElement(f);
|
|
636
|
+
}, function(e) {
|
|
637
|
+
r.setAttribute(a, c), f.textContent = e;
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
}), n.plugins.fileHighlight = { highlight: function(e) {
|
|
641
|
+
for (var t = (e || document).querySelectorAll(l), r = 0, i; i = t[r++];) n.highlightElement(i);
|
|
642
|
+
} };
|
|
643
|
+
var f = !1;
|
|
644
|
+
n.fileHighlight = function() {
|
|
645
|
+
f ||= (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
646
|
+
};
|
|
647
|
+
})();
|
|
648
|
+
}));
|
|
649
|
+
Prism.languages.clike = {
|
|
650
|
+
comment: [{
|
|
651
|
+
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
652
|
+
lookbehind: !0,
|
|
653
|
+
greedy: !0
|
|
654
|
+
}, {
|
|
655
|
+
pattern: /(^|[^\\:])\/\/.*/,
|
|
656
|
+
lookbehind: !0,
|
|
657
|
+
greedy: !0
|
|
658
|
+
}],
|
|
659
|
+
string: {
|
|
660
|
+
pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
661
|
+
greedy: !0
|
|
662
|
+
},
|
|
663
|
+
"class-name": {
|
|
664
|
+
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
|
|
665
|
+
lookbehind: !0,
|
|
666
|
+
inside: { punctuation: /[.\\]/ }
|
|
667
|
+
},
|
|
668
|
+
keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
|
|
669
|
+
boolean: /\b(?:false|true)\b/,
|
|
670
|
+
function: /\b\w+(?=\()/,
|
|
671
|
+
number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
|
|
672
|
+
operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
|
|
673
|
+
punctuation: /[{}[\];(),.:]/
|
|
674
|
+
}, Prism.languages.javascript = Prism.languages.extend("clike", {
|
|
675
|
+
"class-name": [Prism.languages.clike["class-name"], {
|
|
676
|
+
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
|
|
677
|
+
lookbehind: !0
|
|
678
|
+
}],
|
|
679
|
+
keyword: [{
|
|
680
|
+
pattern: /((?:^|\})\s*)catch\b/,
|
|
681
|
+
lookbehind: !0
|
|
682
|
+
}, {
|
|
683
|
+
pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
|
|
684
|
+
lookbehind: !0
|
|
685
|
+
}],
|
|
686
|
+
function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
|
|
687
|
+
number: {
|
|
688
|
+
pattern: RegExp("(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])"),
|
|
689
|
+
lookbehind: !0
|
|
690
|
+
},
|
|
691
|
+
operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
|
|
692
|
+
}), Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, Prism.languages.insertBefore("javascript", "keyword", {
|
|
693
|
+
regex: {
|
|
694
|
+
pattern: RegExp("((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))"),
|
|
695
|
+
lookbehind: !0,
|
|
696
|
+
greedy: !0,
|
|
697
|
+
inside: {
|
|
698
|
+
"regex-source": {
|
|
699
|
+
pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
|
|
700
|
+
lookbehind: !0,
|
|
701
|
+
alias: "language-regex",
|
|
702
|
+
inside: Prism.languages.regex
|
|
703
|
+
},
|
|
704
|
+
"regex-delimiter": /^\/|\/$/,
|
|
705
|
+
"regex-flags": /^[a-z]+$/
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
"function-variable": {
|
|
709
|
+
pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
|
|
710
|
+
alias: "function"
|
|
711
|
+
},
|
|
712
|
+
parameter: [
|
|
713
|
+
{
|
|
714
|
+
pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
|
|
715
|
+
lookbehind: !0,
|
|
716
|
+
inside: Prism.languages.javascript
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
|
|
720
|
+
lookbehind: !0,
|
|
721
|
+
inside: Prism.languages.javascript
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
|
|
725
|
+
lookbehind: !0,
|
|
726
|
+
inside: Prism.languages.javascript
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
|
|
730
|
+
lookbehind: !0,
|
|
731
|
+
inside: Prism.languages.javascript
|
|
732
|
+
}
|
|
733
|
+
],
|
|
734
|
+
constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
|
|
735
|
+
}), Prism.languages.insertBefore("javascript", "string", {
|
|
736
|
+
hashbang: {
|
|
737
|
+
pattern: /^#!.*/,
|
|
738
|
+
greedy: !0,
|
|
739
|
+
alias: "comment"
|
|
740
|
+
},
|
|
741
|
+
"template-string": {
|
|
742
|
+
pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
|
|
743
|
+
greedy: !0,
|
|
744
|
+
inside: {
|
|
745
|
+
"template-punctuation": {
|
|
746
|
+
pattern: /^`|`$/,
|
|
747
|
+
alias: "string"
|
|
748
|
+
},
|
|
749
|
+
interpolation: {
|
|
750
|
+
pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
|
|
751
|
+
lookbehind: !0,
|
|
752
|
+
inside: {
|
|
753
|
+
"interpolation-punctuation": {
|
|
754
|
+
pattern: /^\$\{|\}$/,
|
|
755
|
+
alias: "punctuation"
|
|
756
|
+
},
|
|
757
|
+
rest: Prism.languages.javascript
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
string: /[\s\S]+/
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
"string-property": {
|
|
764
|
+
pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
|
|
765
|
+
lookbehind: !0,
|
|
766
|
+
greedy: !0,
|
|
767
|
+
alias: "property"
|
|
768
|
+
}
|
|
769
|
+
}), Prism.languages.insertBefore("javascript", "operator", { "literal-property": {
|
|
770
|
+
pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
|
|
771
|
+
lookbehind: !0,
|
|
772
|
+
alias: "property"
|
|
773
|
+
} }), Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "javascript"), Prism.languages.markup.tag.addAttribute("on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)", "javascript")), Prism.languages.js = Prism.languages.javascript, (function(e) {
|
|
774
|
+
e.languages.typescript = e.languages.extend("javascript", {
|
|
775
|
+
"class-name": {
|
|
776
|
+
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
|
|
777
|
+
lookbehind: !0,
|
|
778
|
+
greedy: !0,
|
|
779
|
+
inside: null
|
|
780
|
+
},
|
|
781
|
+
builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/
|
|
782
|
+
}), e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
|
|
783
|
+
var t = e.languages.extend("typescript", {});
|
|
784
|
+
delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", {
|
|
785
|
+
decorator: {
|
|
786
|
+
pattern: /@[$\w\xA0-\uFFFF]+/,
|
|
787
|
+
inside: {
|
|
788
|
+
at: {
|
|
789
|
+
pattern: /^@/,
|
|
790
|
+
alias: "operator"
|
|
791
|
+
},
|
|
792
|
+
function: /^[\s\S]+/
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
"generic-function": {
|
|
796
|
+
pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
|
|
797
|
+
greedy: !0,
|
|
798
|
+
inside: {
|
|
799
|
+
function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
|
|
800
|
+
generic: {
|
|
801
|
+
pattern: /<[\s\S]+/,
|
|
802
|
+
alias: "class-name",
|
|
803
|
+
inside: t
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}), e.languages.ts = e.languages.typescript;
|
|
808
|
+
})(Prism), (function(e) {
|
|
809
|
+
var t = e.util.clone(e.languages.javascript), n = "(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)", r = "(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})", i = "(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})";
|
|
810
|
+
function a(e, t) {
|
|
811
|
+
return e = e.replace(/<S>/g, function() {
|
|
812
|
+
return n;
|
|
813
|
+
}).replace(/<BRACES>/g, function() {
|
|
814
|
+
return r;
|
|
815
|
+
}).replace(/<SPREAD>/g, function() {
|
|
816
|
+
return i;
|
|
817
|
+
}), RegExp(e, t);
|
|
818
|
+
}
|
|
819
|
+
i = a(i).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = a("<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:\"(?:\\\\[\\s\\S]|[^\\\\\"])*\"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'\"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>"), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", { spread: {
|
|
820
|
+
pattern: a("<SPREAD>"),
|
|
821
|
+
inside: e.languages.jsx
|
|
822
|
+
} }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: {
|
|
823
|
+
pattern: a("=<BRACES>"),
|
|
824
|
+
alias: "language-javascript",
|
|
825
|
+
inside: {
|
|
826
|
+
"script-punctuation": {
|
|
827
|
+
pattern: /^=(?=\{)/,
|
|
828
|
+
alias: "punctuation"
|
|
829
|
+
},
|
|
830
|
+
rest: e.languages.jsx
|
|
831
|
+
}
|
|
832
|
+
} }, e.languages.jsx.tag);
|
|
833
|
+
var o = function(e) {
|
|
834
|
+
return e ? typeof e == "string" ? e : typeof e.content == "string" ? e.content : e.content.map(o).join("") : "";
|
|
835
|
+
}, s = function(t) {
|
|
836
|
+
for (var n = [], r = 0; r < t.length; r++) {
|
|
837
|
+
var i = t[r], a = !1;
|
|
838
|
+
if (typeof i != "string" && (i.type === "tag" && i.content[0] && i.content[0].type === "tag" ? i.content[0].content[0].content === "</" ? n.length > 0 && n[n.length - 1].tagName === o(i.content[0].content[1]) && n.pop() : i.content[i.content.length - 1].content === "/>" || n.push({
|
|
839
|
+
tagName: o(i.content[0].content[1]),
|
|
840
|
+
openedBraces: 0
|
|
841
|
+
}) : n.length > 0 && i.type === "punctuation" && i.content === "{" ? n[n.length - 1].openedBraces++ : n.length > 0 && n[n.length - 1].openedBraces > 0 && i.type === "punctuation" && i.content === "}" ? n[n.length - 1].openedBraces-- : a = !0), (a || typeof i == "string") && n.length > 0 && n[n.length - 1].openedBraces === 0) {
|
|
842
|
+
var c = o(i);
|
|
843
|
+
r < t.length - 1 && (typeof t[r + 1] == "string" || t[r + 1].type === "plain-text") && (c += o(t[r + 1]), t.splice(r + 1, 1)), r > 0 && (typeof t[r - 1] == "string" || t[r - 1].type === "plain-text") && (c = o(t[r - 1]) + c, t.splice(r - 1, 1), r--), t[r] = new e.Token("plain-text", c, null, c);
|
|
844
|
+
}
|
|
845
|
+
i.content && typeof i.content != "string" && s(i.content);
|
|
846
|
+
}
|
|
847
|
+
};
|
|
848
|
+
e.hooks.add("after-tokenize", function(e) {
|
|
849
|
+
(e.language === "jsx" || e.language === "tsx") && s(e.tokens);
|
|
850
|
+
});
|
|
851
|
+
})(Prism), (function(e) {
|
|
852
|
+
var t = e.util.clone(e.languages.typescript);
|
|
853
|
+
e.languages.tsx = e.languages.extend("jsx", t), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"];
|
|
854
|
+
var n = e.languages.tsx.tag;
|
|
855
|
+
n.pattern = RegExp("(^|[^\\w$]|(?=<\\/))(?:" + n.pattern.source + ")", n.pattern.flags), n.lookbehind = !0;
|
|
856
|
+
})(Prism), (function(e) {
|
|
857
|
+
var t = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", n = {
|
|
858
|
+
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
859
|
+
lookbehind: !0,
|
|
860
|
+
alias: "punctuation",
|
|
861
|
+
inside: null
|
|
862
|
+
}, r = {
|
|
863
|
+
bash: n,
|
|
864
|
+
environment: {
|
|
865
|
+
pattern: RegExp("\\$" + t),
|
|
866
|
+
alias: "constant"
|
|
867
|
+
},
|
|
868
|
+
variable: [
|
|
869
|
+
{
|
|
870
|
+
pattern: /\$?\(\([\s\S]+?\)\)/,
|
|
871
|
+
greedy: !0,
|
|
872
|
+
inside: {
|
|
873
|
+
variable: [{
|
|
874
|
+
pattern: /(^\$\(\([\s\S]+)\)\)/,
|
|
875
|
+
lookbehind: !0
|
|
876
|
+
}, /^\$\(\(/],
|
|
877
|
+
number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
|
|
878
|
+
operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
|
|
879
|
+
punctuation: /\(\(?|\)\)?|,|;/
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
|
|
884
|
+
greedy: !0,
|
|
885
|
+
inside: { variable: /^\$\(|^`|\)$|`$/ }
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
pattern: /\$\{[^}]+\}/,
|
|
889
|
+
greedy: !0,
|
|
890
|
+
inside: {
|
|
891
|
+
operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
|
|
892
|
+
punctuation: /[\[\]]/,
|
|
893
|
+
environment: {
|
|
894
|
+
pattern: RegExp("(\\{)" + t),
|
|
895
|
+
lookbehind: !0,
|
|
896
|
+
alias: "constant"
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
},
|
|
900
|
+
/\$(?:\w+|[#?*!@$])/
|
|
901
|
+
],
|
|
902
|
+
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
903
|
+
};
|
|
904
|
+
e.languages.bash = {
|
|
905
|
+
shebang: {
|
|
906
|
+
pattern: /^#!\s*\/.*/,
|
|
907
|
+
alias: "important"
|
|
908
|
+
},
|
|
909
|
+
comment: {
|
|
910
|
+
pattern: /(^|[^"{\\$])#.*/,
|
|
911
|
+
lookbehind: !0
|
|
912
|
+
},
|
|
913
|
+
"function-name": [{
|
|
914
|
+
pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
|
|
915
|
+
lookbehind: !0,
|
|
916
|
+
alias: "function"
|
|
917
|
+
}, {
|
|
918
|
+
pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
|
|
919
|
+
alias: "function"
|
|
920
|
+
}],
|
|
921
|
+
"for-or-select": {
|
|
922
|
+
pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
|
|
923
|
+
alias: "variable",
|
|
924
|
+
lookbehind: !0
|
|
925
|
+
},
|
|
926
|
+
"assign-left": {
|
|
927
|
+
pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
|
|
928
|
+
inside: { environment: {
|
|
929
|
+
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + t),
|
|
930
|
+
lookbehind: !0,
|
|
931
|
+
alias: "constant"
|
|
932
|
+
} },
|
|
933
|
+
alias: "variable",
|
|
934
|
+
lookbehind: !0
|
|
935
|
+
},
|
|
936
|
+
parameter: {
|
|
937
|
+
pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
|
|
938
|
+
alias: "variable",
|
|
939
|
+
lookbehind: !0
|
|
940
|
+
},
|
|
941
|
+
string: [
|
|
942
|
+
{
|
|
943
|
+
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
944
|
+
lookbehind: !0,
|
|
945
|
+
greedy: !0,
|
|
946
|
+
inside: r
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
|
|
950
|
+
lookbehind: !0,
|
|
951
|
+
greedy: !0,
|
|
952
|
+
inside: { bash: n }
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
956
|
+
lookbehind: !0,
|
|
957
|
+
greedy: !0,
|
|
958
|
+
inside: r
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
pattern: /(^|[^$\\])'[^']*'/,
|
|
962
|
+
lookbehind: !0,
|
|
963
|
+
greedy: !0
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
967
|
+
greedy: !0,
|
|
968
|
+
inside: { entity: r.entity }
|
|
969
|
+
}
|
|
970
|
+
],
|
|
971
|
+
environment: {
|
|
972
|
+
pattern: RegExp("\\$?" + t),
|
|
973
|
+
alias: "constant"
|
|
974
|
+
},
|
|
975
|
+
variable: r.variable,
|
|
976
|
+
function: {
|
|
977
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
978
|
+
lookbehind: !0
|
|
979
|
+
},
|
|
980
|
+
keyword: {
|
|
981
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
|
|
982
|
+
lookbehind: !0
|
|
983
|
+
},
|
|
984
|
+
builtin: {
|
|
985
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
|
|
986
|
+
lookbehind: !0,
|
|
987
|
+
alias: "class-name"
|
|
988
|
+
},
|
|
989
|
+
boolean: {
|
|
990
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
|
|
991
|
+
lookbehind: !0
|
|
992
|
+
},
|
|
993
|
+
"file-descriptor": {
|
|
994
|
+
pattern: /\B&\d\b/,
|
|
995
|
+
alias: "important"
|
|
996
|
+
},
|
|
997
|
+
operator: {
|
|
998
|
+
pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
|
|
999
|
+
inside: { "file-descriptor": {
|
|
1000
|
+
pattern: /^\d/,
|
|
1001
|
+
alias: "important"
|
|
1002
|
+
} }
|
|
1003
|
+
},
|
|
1004
|
+
punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
|
|
1005
|
+
number: {
|
|
1006
|
+
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
1007
|
+
lookbehind: !0
|
|
1008
|
+
}
|
|
1009
|
+
}, n.inside = e.languages.bash;
|
|
1010
|
+
for (var i = [
|
|
1011
|
+
"comment",
|
|
1012
|
+
"function-name",
|
|
1013
|
+
"for-or-select",
|
|
1014
|
+
"assign-left",
|
|
1015
|
+
"parameter",
|
|
1016
|
+
"string",
|
|
1017
|
+
"environment",
|
|
1018
|
+
"function",
|
|
1019
|
+
"keyword",
|
|
1020
|
+
"builtin",
|
|
1021
|
+
"boolean",
|
|
1022
|
+
"file-descriptor",
|
|
1023
|
+
"operator",
|
|
1024
|
+
"punctuation",
|
|
1025
|
+
"number"
|
|
1026
|
+
], a = r.variable[1].inside, o = 0; o < i.length; o++) a[i[o]] = e.languages.bash[i[o]];
|
|
1027
|
+
e.languages.sh = e.languages.bash, e.languages.shell = e.languages.bash;
|
|
1028
|
+
})(Prism), Prism.languages.json = {
|
|
1029
|
+
property: {
|
|
1030
|
+
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
1031
|
+
lookbehind: !0,
|
|
1032
|
+
greedy: !0
|
|
1033
|
+
},
|
|
1034
|
+
string: {
|
|
1035
|
+
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
|
|
1036
|
+
lookbehind: !0,
|
|
1037
|
+
greedy: !0
|
|
1038
|
+
},
|
|
1039
|
+
comment: {
|
|
1040
|
+
pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
|
|
1041
|
+
greedy: !0
|
|
1042
|
+
},
|
|
1043
|
+
number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
|
|
1044
|
+
punctuation: /[{}[\],]/,
|
|
1045
|
+
operator: /:/,
|
|
1046
|
+
boolean: /\b(?:false|true)\b/,
|
|
1047
|
+
null: {
|
|
1048
|
+
pattern: /\bnull\b/,
|
|
1049
|
+
alias: "keyword"
|
|
1050
|
+
}
|
|
1051
|
+
}, Prism.languages.webmanifest = Prism.languages.json, (function(e) {
|
|
1052
|
+
var t = /[*&][^\s[\]{},]+/, n = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, r = "(?:" + n.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + n.source + ")?)", i = "(?:[^\\s\\x00-\\x08\\x0e-\\x1f!\"#%&'*,\\-:>?@[\\]`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \\t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*".replace(/<PLAIN>/g, function() {
|
|
1053
|
+
return "[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]";
|
|
1054
|
+
}), a = "\"(?:[^\"\\\\\\r\\n]|\\\\.)*\"|'(?:[^'\\\\\\r\\n]|\\\\.)*'";
|
|
1055
|
+
function o(e, t) {
|
|
1056
|
+
t = (t || "").replace(/m/g, "") + "m";
|
|
1057
|
+
var n = "([:\\-,[{]\\s*(?:\\s<<prop>>[ \\t]+)?)(?:<<value>>)(?=[ \\t]*(?:$|,|\\]|\\}|(?:[\\r\\n]\\s*)?#))".replace(/<<prop>>/g, function() {
|
|
1058
|
+
return r;
|
|
1059
|
+
}).replace(/<<value>>/g, function() {
|
|
1060
|
+
return e;
|
|
1061
|
+
});
|
|
1062
|
+
return RegExp(n, t);
|
|
1063
|
+
}
|
|
1064
|
+
e.languages.yaml = {
|
|
1065
|
+
scalar: {
|
|
1066
|
+
pattern: RegExp("([\\-:]\\s*(?:\\s<<prop>>[ \\t]+)?[|>])[ \\t]*(?:((?:\\r?\\n|\\r)[ \\t]+)\\S[^\\r\\n]*(?:\\2[^\\r\\n]+)*)".replace(/<<prop>>/g, function() {
|
|
1067
|
+
return r;
|
|
1068
|
+
})),
|
|
1069
|
+
lookbehind: !0,
|
|
1070
|
+
alias: "string"
|
|
1071
|
+
},
|
|
1072
|
+
comment: /#.*/,
|
|
1073
|
+
key: {
|
|
1074
|
+
pattern: RegExp("((?:^|[:\\-,[{\\r\\n?])[ \\t]*(?:<<prop>>[ \\t]+)?)<<key>>(?=\\s*:\\s)".replace(/<<prop>>/g, function() {
|
|
1075
|
+
return r;
|
|
1076
|
+
}).replace(/<<key>>/g, function() {
|
|
1077
|
+
return "(?:" + i + "|" + a + ")";
|
|
1078
|
+
})),
|
|
1079
|
+
lookbehind: !0,
|
|
1080
|
+
greedy: !0,
|
|
1081
|
+
alias: "atrule"
|
|
1082
|
+
},
|
|
1083
|
+
directive: {
|
|
1084
|
+
pattern: /(^[ \t]*)%.+/m,
|
|
1085
|
+
lookbehind: !0,
|
|
1086
|
+
alias: "important"
|
|
1087
|
+
},
|
|
1088
|
+
datetime: {
|
|
1089
|
+
pattern: o("\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \\t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \\t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?"),
|
|
1090
|
+
lookbehind: !0,
|
|
1091
|
+
alias: "number"
|
|
1092
|
+
},
|
|
1093
|
+
boolean: {
|
|
1094
|
+
pattern: o("false|true", "i"),
|
|
1095
|
+
lookbehind: !0,
|
|
1096
|
+
alias: "important"
|
|
1097
|
+
},
|
|
1098
|
+
null: {
|
|
1099
|
+
pattern: o("null|~", "i"),
|
|
1100
|
+
lookbehind: !0,
|
|
1101
|
+
alias: "important"
|
|
1102
|
+
},
|
|
1103
|
+
string: {
|
|
1104
|
+
pattern: o(a),
|
|
1105
|
+
lookbehind: !0,
|
|
1106
|
+
greedy: !0
|
|
1107
|
+
},
|
|
1108
|
+
number: {
|
|
1109
|
+
pattern: o("[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)", "i"),
|
|
1110
|
+
lookbehind: !0
|
|
1111
|
+
},
|
|
1112
|
+
tag: n,
|
|
1113
|
+
important: t,
|
|
1114
|
+
punctuation: /---|[:[\]{}\-,|>?]|\.\.\./
|
|
1115
|
+
}, e.languages.yml = e.languages.yaml;
|
|
1116
|
+
})(Prism), (function(e) {
|
|
1117
|
+
var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
1118
|
+
e.languages.css = {
|
|
1119
|
+
comment: /\/\*[\s\S]*?\*\//,
|
|
1120
|
+
atrule: {
|
|
1121
|
+
pattern: RegExp("@[\\w-](?:[^;{\\s\"']|\\s+(?!\\s)|" + t.source + ")*?(?:;|(?=\\s*\\{))"),
|
|
1122
|
+
inside: {
|
|
1123
|
+
rule: /^@[\w-]+/,
|
|
1124
|
+
"selector-function-argument": {
|
|
1125
|
+
pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
|
|
1126
|
+
lookbehind: !0,
|
|
1127
|
+
alias: "selector"
|
|
1128
|
+
},
|
|
1129
|
+
keyword: {
|
|
1130
|
+
pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
|
|
1131
|
+
lookbehind: !0
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
url: {
|
|
1136
|
+
pattern: RegExp("\\burl\\((?:" + t.source + "|(?:[^\\\\\\r\\n()\"']|\\\\[\\s\\S])*)\\)", "i"),
|
|
1137
|
+
greedy: !0,
|
|
1138
|
+
inside: {
|
|
1139
|
+
function: /^url/i,
|
|
1140
|
+
punctuation: /^\(|\)$/,
|
|
1141
|
+
string: {
|
|
1142
|
+
pattern: RegExp("^" + t.source + "$"),
|
|
1143
|
+
alias: "url"
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
selector: {
|
|
1148
|
+
pattern: RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|" + t.source + ")*(?=\\s*\\{)"),
|
|
1149
|
+
lookbehind: !0
|
|
1150
|
+
},
|
|
1151
|
+
string: {
|
|
1152
|
+
pattern: t,
|
|
1153
|
+
greedy: !0
|
|
1154
|
+
},
|
|
1155
|
+
property: {
|
|
1156
|
+
pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
|
|
1157
|
+
lookbehind: !0
|
|
1158
|
+
},
|
|
1159
|
+
important: /!important\b/i,
|
|
1160
|
+
function: {
|
|
1161
|
+
pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
|
|
1162
|
+
lookbehind: !0
|
|
1163
|
+
},
|
|
1164
|
+
punctuation: /[(){};:,]/
|
|
1165
|
+
}, e.languages.css.atrule.inside.rest = e.languages.css;
|
|
1166
|
+
var n = e.languages.markup;
|
|
1167
|
+
n && (n.tag.addInlined("style", "css"), n.tag.addAttribute("style", "css"));
|
|
1168
|
+
})(Prism), (function(e) {
|
|
1169
|
+
function t(e) {
|
|
1170
|
+
return e = e.replace(/<inner>/g, function() {
|
|
1171
|
+
return "(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))";
|
|
1172
|
+
}), RegExp("((?:^|[^\\\\])(?:\\\\{2})*)(?:" + e + ")");
|
|
1173
|
+
}
|
|
1174
|
+
var n = "(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+", r = "\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))".replace(/__/g, function() {
|
|
1175
|
+
return n;
|
|
1176
|
+
}), i = "\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)";
|
|
1177
|
+
e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", {
|
|
1178
|
+
"front-matter-block": {
|
|
1179
|
+
pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
|
|
1180
|
+
lookbehind: !0,
|
|
1181
|
+
greedy: !0,
|
|
1182
|
+
inside: {
|
|
1183
|
+
punctuation: /^---|---$/,
|
|
1184
|
+
"front-matter": {
|
|
1185
|
+
pattern: /\S+(?:\s+\S+)*/,
|
|
1186
|
+
alias: ["yaml", "language-yaml"],
|
|
1187
|
+
inside: e.languages.yaml
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
1191
|
+
blockquote: {
|
|
1192
|
+
pattern: /^>(?:[\t ]*>)*/m,
|
|
1193
|
+
alias: "punctuation"
|
|
1194
|
+
},
|
|
1195
|
+
table: {
|
|
1196
|
+
pattern: RegExp("^" + r + i + "(?:" + r + ")*", "m"),
|
|
1197
|
+
inside: {
|
|
1198
|
+
"table-data-rows": {
|
|
1199
|
+
pattern: RegExp("^(" + r + i + ")(?:" + r + ")*$"),
|
|
1200
|
+
lookbehind: !0,
|
|
1201
|
+
inside: {
|
|
1202
|
+
"table-data": {
|
|
1203
|
+
pattern: RegExp(n),
|
|
1204
|
+
inside: e.languages.markdown
|
|
1205
|
+
},
|
|
1206
|
+
punctuation: /\|/
|
|
1207
|
+
}
|
|
1208
|
+
},
|
|
1209
|
+
"table-line": {
|
|
1210
|
+
pattern: RegExp("^(" + r + ")" + i + "$"),
|
|
1211
|
+
lookbehind: !0,
|
|
1212
|
+
inside: { punctuation: /\||:?-{3,}:?/ }
|
|
1213
|
+
},
|
|
1214
|
+
"table-header-row": {
|
|
1215
|
+
pattern: RegExp("^" + r + "$"),
|
|
1216
|
+
inside: {
|
|
1217
|
+
"table-header": {
|
|
1218
|
+
pattern: RegExp(n),
|
|
1219
|
+
alias: "important",
|
|
1220
|
+
inside: e.languages.markdown
|
|
1221
|
+
},
|
|
1222
|
+
punctuation: /\|/
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
code: [{
|
|
1228
|
+
pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
|
|
1229
|
+
lookbehind: !0,
|
|
1230
|
+
alias: "keyword"
|
|
1231
|
+
}, {
|
|
1232
|
+
pattern: /^```[\s\S]*?^```$/m,
|
|
1233
|
+
greedy: !0,
|
|
1234
|
+
inside: {
|
|
1235
|
+
"code-block": {
|
|
1236
|
+
pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
|
|
1237
|
+
lookbehind: !0
|
|
1238
|
+
},
|
|
1239
|
+
"code-language": {
|
|
1240
|
+
pattern: /^(```).+/,
|
|
1241
|
+
lookbehind: !0
|
|
1242
|
+
},
|
|
1243
|
+
punctuation: /```/
|
|
1244
|
+
}
|
|
1245
|
+
}],
|
|
1246
|
+
title: [{
|
|
1247
|
+
pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
|
|
1248
|
+
alias: "important",
|
|
1249
|
+
inside: { punctuation: /==+$|--+$/ }
|
|
1250
|
+
}, {
|
|
1251
|
+
pattern: /(^\s*)#.+/m,
|
|
1252
|
+
lookbehind: !0,
|
|
1253
|
+
alias: "important",
|
|
1254
|
+
inside: { punctuation: /^#+|#+$/ }
|
|
1255
|
+
}],
|
|
1256
|
+
hr: {
|
|
1257
|
+
pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
|
|
1258
|
+
lookbehind: !0,
|
|
1259
|
+
alias: "punctuation"
|
|
1260
|
+
},
|
|
1261
|
+
list: {
|
|
1262
|
+
pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
|
|
1263
|
+
lookbehind: !0,
|
|
1264
|
+
alias: "punctuation"
|
|
1265
|
+
},
|
|
1266
|
+
"url-reference": {
|
|
1267
|
+
pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
|
|
1268
|
+
inside: {
|
|
1269
|
+
variable: {
|
|
1270
|
+
pattern: /^(!?\[)[^\]]+/,
|
|
1271
|
+
lookbehind: !0
|
|
1272
|
+
},
|
|
1273
|
+
string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
|
|
1274
|
+
punctuation: /^[\[\]!:]|[<>]/
|
|
1275
|
+
},
|
|
1276
|
+
alias: "url"
|
|
1277
|
+
},
|
|
1278
|
+
bold: {
|
|
1279
|
+
pattern: t("\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*"),
|
|
1280
|
+
lookbehind: !0,
|
|
1281
|
+
greedy: !0,
|
|
1282
|
+
inside: {
|
|
1283
|
+
content: {
|
|
1284
|
+
pattern: /(^..)[\s\S]+(?=..$)/,
|
|
1285
|
+
lookbehind: !0,
|
|
1286
|
+
inside: {}
|
|
1287
|
+
},
|
|
1288
|
+
punctuation: /\*\*|__/
|
|
1289
|
+
}
|
|
1290
|
+
},
|
|
1291
|
+
italic: {
|
|
1292
|
+
pattern: t("\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*"),
|
|
1293
|
+
lookbehind: !0,
|
|
1294
|
+
greedy: !0,
|
|
1295
|
+
inside: {
|
|
1296
|
+
content: {
|
|
1297
|
+
pattern: /(^.)[\s\S]+(?=.$)/,
|
|
1298
|
+
lookbehind: !0,
|
|
1299
|
+
inside: {}
|
|
1300
|
+
},
|
|
1301
|
+
punctuation: /[*_]/
|
|
1302
|
+
}
|
|
1303
|
+
},
|
|
1304
|
+
strike: {
|
|
1305
|
+
pattern: t("(~~?)(?:(?!~)<inner>)+\\2"),
|
|
1306
|
+
lookbehind: !0,
|
|
1307
|
+
greedy: !0,
|
|
1308
|
+
inside: {
|
|
1309
|
+
content: {
|
|
1310
|
+
pattern: /(^~~?)[\s\S]+(?=\1$)/,
|
|
1311
|
+
lookbehind: !0,
|
|
1312
|
+
inside: {}
|
|
1313
|
+
},
|
|
1314
|
+
punctuation: /~~?/
|
|
1315
|
+
}
|
|
1316
|
+
},
|
|
1317
|
+
"code-snippet": {
|
|
1318
|
+
pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
|
|
1319
|
+
lookbehind: !0,
|
|
1320
|
+
greedy: !0,
|
|
1321
|
+
alias: ["code", "keyword"]
|
|
1322
|
+
},
|
|
1323
|
+
url: {
|
|
1324
|
+
pattern: t("!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+\"(?:\\\\.|[^\"\\\\])*\")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])"),
|
|
1325
|
+
lookbehind: !0,
|
|
1326
|
+
greedy: !0,
|
|
1327
|
+
inside: {
|
|
1328
|
+
operator: /^!/,
|
|
1329
|
+
content: {
|
|
1330
|
+
pattern: /(^\[)[^\]]+(?=\])/,
|
|
1331
|
+
lookbehind: !0,
|
|
1332
|
+
inside: {}
|
|
1333
|
+
},
|
|
1334
|
+
variable: {
|
|
1335
|
+
pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
|
|
1336
|
+
lookbehind: !0
|
|
1337
|
+
},
|
|
1338
|
+
url: {
|
|
1339
|
+
pattern: /(^\]\()[^\s)]+/,
|
|
1340
|
+
lookbehind: !0
|
|
1341
|
+
},
|
|
1342
|
+
string: {
|
|
1343
|
+
pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
|
|
1344
|
+
lookbehind: !0
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
}), [
|
|
1349
|
+
"url",
|
|
1350
|
+
"bold",
|
|
1351
|
+
"italic",
|
|
1352
|
+
"strike"
|
|
1353
|
+
].forEach(function(t) {
|
|
1354
|
+
[
|
|
1355
|
+
"url",
|
|
1356
|
+
"bold",
|
|
1357
|
+
"italic",
|
|
1358
|
+
"strike",
|
|
1359
|
+
"code-snippet"
|
|
1360
|
+
].forEach(function(n) {
|
|
1361
|
+
t !== n && (e.languages.markdown[t].inside.content.inside[n] = e.languages.markdown[n]);
|
|
1362
|
+
});
|
|
1363
|
+
}), e.hooks.add("after-tokenize", function(e) {
|
|
1364
|
+
if (e.language !== "markdown" && e.language !== "md") return;
|
|
1365
|
+
function t(e) {
|
|
1366
|
+
if (!(!e || typeof e == "string")) for (var n = 0, r = e.length; n < r; n++) {
|
|
1367
|
+
var i = e[n];
|
|
1368
|
+
if (i.type !== "code") {
|
|
1369
|
+
t(i.content);
|
|
1370
|
+
continue;
|
|
1371
|
+
}
|
|
1372
|
+
var a = i.content[1], o = i.content[3];
|
|
1373
|
+
if (a && o && a.type === "code-language" && o.type === "code-block" && typeof a.content == "string") {
|
|
1374
|
+
var s = a.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
|
1375
|
+
s = (/[a-z][\w-]*/i.exec(s) || [""])[0].toLowerCase();
|
|
1376
|
+
var c = "language-" + s;
|
|
1377
|
+
o.alias ? typeof o.alias == "string" ? o.alias = [o.alias, c] : o.alias.push(c) : o.alias = [c];
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
t(e.tokens);
|
|
1382
|
+
}), e.hooks.add("wrap", function(t) {
|
|
1383
|
+
if (t.type === "code-block") {
|
|
1384
|
+
for (var n = "", r = 0, i = t.classes.length; r < i; r++) {
|
|
1385
|
+
var a = t.classes[r], o = /language-(.+)/.exec(a);
|
|
1386
|
+
if (o) {
|
|
1387
|
+
n = o[1];
|
|
1388
|
+
break;
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
var s = e.languages[n];
|
|
1392
|
+
if (s) t.content = e.highlight(c(t.content), s, n);
|
|
1393
|
+
else if (n && n !== "none" && e.plugins.autoloader) {
|
|
1394
|
+
var l = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 0x2386f26fc10000);
|
|
1395
|
+
t.attributes.id = l, e.plugins.autoloader.loadLanguages(n, function() {
|
|
1396
|
+
var t = document.getElementById(l);
|
|
1397
|
+
t && (t.innerHTML = e.highlight(t.textContent, e.languages[n], n));
|
|
1398
|
+
});
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
});
|
|
1402
|
+
var a = RegExp(e.languages.markup.tag.pattern.source, "gi"), o = {
|
|
1403
|
+
amp: "&",
|
|
1404
|
+
lt: "<",
|
|
1405
|
+
gt: ">",
|
|
1406
|
+
quot: "\""
|
|
1407
|
+
}, s = String.fromCodePoint || String.fromCharCode;
|
|
1408
|
+
function c(e) {
|
|
1409
|
+
var t = e.replace(a, "");
|
|
1410
|
+
return t = t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(e, t) {
|
|
1411
|
+
return t = t.toLowerCase(), t[0] === "#" ? s(t[1] === "x" ? parseInt(t.slice(2), 16) : Number(t.slice(1))) : o[t] || e;
|
|
1412
|
+
}), t;
|
|
1413
|
+
}
|
|
1414
|
+
e.languages.md = e.languages.markdown;
|
|
1415
|
+
})(Prism), Prism.languages.markup = {
|
|
1416
|
+
comment: {
|
|
1417
|
+
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
1418
|
+
greedy: !0
|
|
1419
|
+
},
|
|
1420
|
+
prolog: {
|
|
1421
|
+
pattern: /<\?[\s\S]+?\?>/,
|
|
1422
|
+
greedy: !0
|
|
1423
|
+
},
|
|
1424
|
+
doctype: {
|
|
1425
|
+
pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
|
|
1426
|
+
greedy: !0,
|
|
1427
|
+
inside: {
|
|
1428
|
+
"internal-subset": {
|
|
1429
|
+
pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
|
|
1430
|
+
lookbehind: !0,
|
|
1431
|
+
greedy: !0,
|
|
1432
|
+
inside: null
|
|
1433
|
+
},
|
|
1434
|
+
string: {
|
|
1435
|
+
pattern: /"[^"]*"|'[^']*'/,
|
|
1436
|
+
greedy: !0
|
|
1437
|
+
},
|
|
1438
|
+
punctuation: /^<!|>$|[[\]]/,
|
|
1439
|
+
"doctype-tag": /^DOCTYPE/i,
|
|
1440
|
+
name: /[^\s<>'"]+/
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
cdata: {
|
|
1444
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
1445
|
+
greedy: !0
|
|
1446
|
+
},
|
|
1447
|
+
tag: {
|
|
1448
|
+
pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
|
|
1449
|
+
greedy: !0,
|
|
1450
|
+
inside: {
|
|
1451
|
+
tag: {
|
|
1452
|
+
pattern: /^<\/?[^\s>\/]+/,
|
|
1453
|
+
inside: {
|
|
1454
|
+
punctuation: /^<\/?/,
|
|
1455
|
+
namespace: /^[^\s>\/:]+:/
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
"special-attr": [],
|
|
1459
|
+
"attr-value": {
|
|
1460
|
+
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
|
|
1461
|
+
inside: { punctuation: [{
|
|
1462
|
+
pattern: /^=/,
|
|
1463
|
+
alias: "attr-equals"
|
|
1464
|
+
}, {
|
|
1465
|
+
pattern: /^(\s*)["']|["']$/,
|
|
1466
|
+
lookbehind: !0
|
|
1467
|
+
}] }
|
|
1468
|
+
},
|
|
1469
|
+
punctuation: /\/?>/,
|
|
1470
|
+
"attr-name": {
|
|
1471
|
+
pattern: /[^\s>\/]+/,
|
|
1472
|
+
inside: { namespace: /^[^\s>\/:]+:/ }
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
},
|
|
1476
|
+
entity: [{
|
|
1477
|
+
pattern: /&[\da-z]{1,8};/i,
|
|
1478
|
+
alias: "named-entity"
|
|
1479
|
+
}, /&#x?[\da-f]{1,8};/i]
|
|
1480
|
+
}, Prism.languages.markup.tag.inside["attr-value"].inside.entity = Prism.languages.markup.entity, Prism.languages.markup.doctype.inside["internal-subset"].inside = Prism.languages.markup, Prism.hooks.add("wrap", function(e) {
|
|
1481
|
+
e.type === "entity" && (e.attributes.title = e.content.replace(/&/, "&"));
|
|
1482
|
+
}), Object.defineProperty(Prism.languages.markup.tag, "addInlined", { value: function(e, t) {
|
|
1483
|
+
var n = {};
|
|
1484
|
+
n["language-" + t] = {
|
|
1485
|
+
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
1486
|
+
lookbehind: !0,
|
|
1487
|
+
inside: Prism.languages[t]
|
|
1488
|
+
}, n.cdata = /^<!\[CDATA\[|\]\]>$/i;
|
|
1489
|
+
var r = { "included-cdata": {
|
|
1490
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
1491
|
+
inside: n
|
|
1492
|
+
} };
|
|
1493
|
+
r["language-" + t] = {
|
|
1494
|
+
pattern: /[\s\S]+/,
|
|
1495
|
+
inside: Prism.languages[t]
|
|
1496
|
+
};
|
|
1497
|
+
var i = {};
|
|
1498
|
+
i[e] = {
|
|
1499
|
+
pattern: RegExp("(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)".replace(/__/g, function() {
|
|
1500
|
+
return e;
|
|
1501
|
+
}), "i"),
|
|
1502
|
+
lookbehind: !0,
|
|
1503
|
+
greedy: !0,
|
|
1504
|
+
inside: r
|
|
1505
|
+
}, Prism.languages.insertBefore("markup", "cdata", i);
|
|
1506
|
+
} }), Object.defineProperty(Prism.languages.markup.tag, "addAttribute", { value: function(e, t) {
|
|
1507
|
+
Prism.languages.markup.tag.inside["special-attr"].push({
|
|
1508
|
+
pattern: RegExp("(^|[\"'\\s])(?:" + e + ")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))", "i"),
|
|
1509
|
+
lookbehind: !0,
|
|
1510
|
+
inside: {
|
|
1511
|
+
"attr-name": /^[^\s=]+/,
|
|
1512
|
+
"attr-value": {
|
|
1513
|
+
pattern: /=[\s\S]+/,
|
|
1514
|
+
inside: {
|
|
1515
|
+
value: {
|
|
1516
|
+
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
|
|
1517
|
+
lookbehind: !0,
|
|
1518
|
+
alias: [t, "language-" + t],
|
|
1519
|
+
inside: Prism.languages[t]
|
|
1520
|
+
},
|
|
1521
|
+
punctuation: [{
|
|
1522
|
+
pattern: /^=/,
|
|
1523
|
+
alias: "attr-equals"
|
|
1524
|
+
}, /"|'/]
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
});
|
|
1529
|
+
} }), Prism.languages.html = Prism.languages.markup, Prism.languages.mathml = Prism.languages.markup, Prism.languages.svg = Prism.languages.markup, Prism.languages.xml = Prism.languages.extend("markup", {}), Prism.languages.ssml = Prism.languages.xml, Prism.languages.atom = Prism.languages.xml, Prism.languages.rss = Prism.languages.xml, Prism.languages.python = {
|
|
1530
|
+
comment: {
|
|
1531
|
+
pattern: /(^|[^\\])#.*/,
|
|
1532
|
+
lookbehind: !0,
|
|
1533
|
+
greedy: !0
|
|
1534
|
+
},
|
|
1535
|
+
"string-interpolation": {
|
|
1536
|
+
pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
|
|
1537
|
+
greedy: !0,
|
|
1538
|
+
inside: {
|
|
1539
|
+
interpolation: {
|
|
1540
|
+
pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
|
|
1541
|
+
lookbehind: !0,
|
|
1542
|
+
inside: {
|
|
1543
|
+
"format-spec": {
|
|
1544
|
+
pattern: /(:)[^:(){}]+(?=\}$)/,
|
|
1545
|
+
lookbehind: !0
|
|
1546
|
+
},
|
|
1547
|
+
"conversion-option": {
|
|
1548
|
+
pattern: //,
|
|
1549
|
+
alias: "punctuation"
|
|
1550
|
+
},
|
|
1551
|
+
rest: null
|
|
1552
|
+
}
|
|
1553
|
+
},
|
|
1554
|
+
string: /[\s\S]+/
|
|
1555
|
+
}
|
|
1556
|
+
},
|
|
1557
|
+
"triple-quoted-string": {
|
|
1558
|
+
pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
|
|
1559
|
+
greedy: !0,
|
|
1560
|
+
alias: "string"
|
|
1561
|
+
},
|
|
1562
|
+
string: {
|
|
1563
|
+
pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
|
|
1564
|
+
greedy: !0
|
|
1565
|
+
},
|
|
1566
|
+
function: {
|
|
1567
|
+
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
|
|
1568
|
+
lookbehind: !0
|
|
1569
|
+
},
|
|
1570
|
+
"class-name": {
|
|
1571
|
+
pattern: /(\bclass\s+)\w+/i,
|
|
1572
|
+
lookbehind: !0
|
|
1573
|
+
},
|
|
1574
|
+
decorator: {
|
|
1575
|
+
pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
|
|
1576
|
+
lookbehind: !0,
|
|
1577
|
+
alias: ["annotation", "punctuation"],
|
|
1578
|
+
inside: { punctuation: /\./ }
|
|
1579
|
+
},
|
|
1580
|
+
keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
|
|
1581
|
+
builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
|
|
1582
|
+
boolean: /\b(?:False|None|True)\b/,
|
|
1583
|
+
number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
|
|
1584
|
+
operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
|
|
1585
|
+
punctuation: /[{}[\];(),.:]/
|
|
1586
|
+
}, Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python;
|
|
1587
|
+
//#endregion
|
|
1588
|
+
export { t };
|