editor.md-next 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +32 -0
- package/dist/cdn/editormd-next.min.js +96 -0
- package/dist/cdn/index.css +2 -0
- package/dist/es/chunks/apl-BsW9fB9B.js +74 -0
- package/dist/es/chunks/asciiarmor-CZm6RLC5.js +30 -0
- package/dist/es/chunks/asn1-DBNYSAs9.js +86 -0
- package/dist/es/chunks/asterisk-XIYTp-BQ.js +63 -0
- package/dist/es/chunks/brainfuck-C03PadMX.js +26 -0
- package/dist/es/chunks/clike-QWVxZJBi.js +583 -0
- package/dist/es/chunks/clojure-DT_PY7rc.js +98 -0
- package/dist/es/chunks/cmake-DsoLxE-D.js +27 -0
- package/dist/es/chunks/cobol-CZjCUlI-.js +59 -0
- package/dist/es/chunks/coffeescript-CuHwxkgS.js +174 -0
- package/dist/es/chunks/commonlisp-CGpKWWCQ.js +90 -0
- package/dist/es/chunks/crystal-BH2tBqmL.js +159 -0
- package/dist/es/chunks/css-C6pN9rmb.js +314 -0
- package/dist/es/chunks/cypher-DknS4f0k.js +66 -0
- package/dist/es/chunks/d-zXrED2QC.js +121 -0
- package/dist/es/chunks/diff-Ca3g43eR.js +15 -0
- package/dist/es/chunks/dist-9Y-Blrkp.js +118 -0
- package/dist/es/chunks/dist-B0cBTTiS.js +408 -0
- package/dist/es/chunks/dist-BX9Ur1J1.js +74 -0
- package/dist/es/chunks/dist-BmAxhg3z.js +555 -0
- package/dist/es/chunks/dist-C6c_aHTh.js +269 -0
- package/dist/es/chunks/dist-CGdw3vqm.js +429 -0
- package/dist/es/chunks/dist-CNbWaVYs.js +11572 -0
- package/dist/es/chunks/dist-CR-jmTSB.js +1338 -0
- package/dist/es/chunks/dist-CahNaXTc.js +388 -0
- package/dist/es/chunks/dist-CeqtAM8-.js +438 -0
- package/dist/es/chunks/dist-Clo-Jkvm.js +291 -0
- package/dist/es/chunks/dist-Cpw9AD2K.js +372 -0
- package/dist/es/chunks/dist-Ct5FNAAH.js +406 -0
- package/dist/es/chunks/dist-D0OW86fR.js +605 -0
- package/dist/es/chunks/dist-DAlgXLzd.js +110 -0
- package/dist/es/chunks/dist-DL-UifMi.js +744 -0
- package/dist/es/chunks/dist-DQadNG25.js +523 -0
- package/dist/es/chunks/dist-DlAXkWGE.js +67 -0
- package/dist/es/chunks/dist-DoThxrrR.js +371 -0
- package/dist/es/chunks/dist-DrwgGib-.js +377 -0
- package/dist/es/chunks/dist-P5rAF7pi.js +197 -0
- package/dist/es/chunks/dist-fTCYxiV-.js +355 -0
- package/dist/es/chunks/dockerfile-BZSDl6MT.js +196 -0
- package/dist/es/chunks/dtd-DzUNfrcJ.js +77 -0
- package/dist/es/chunks/dylan-CFjlscB1.js +186 -0
- package/dist/es/chunks/ebnf-Vn9hWL1o.js +67 -0
- package/dist/es/chunks/ecl-CbjLeBF5.js +105 -0
- package/dist/es/chunks/eiffel-Dmm3m78y.js +49 -0
- package/dist/es/chunks/elm-CSe2F7PE.js +85 -0
- package/dist/es/chunks/erlang-D6YOoBpM.js +321 -0
- package/dist/es/chunks/factor-DAqyQvq1.js +165 -0
- package/dist/es/chunks/fcl-BZA_wXmw.js +99 -0
- package/dist/es/chunks/forth-MNc4axOK.js +45 -0
- package/dist/es/chunks/fortran-auI4bdzC.js +40 -0
- package/dist/es/chunks/gas-CZDp8wLI.js +167 -0
- package/dist/es/chunks/gherkin-B12NX28O.js +29 -0
- package/dist/es/chunks/groovy-CBShT4in.js +143 -0
- package/dist/es/chunks/haskell-DQf5nq2l.js +85 -0
- package/dist/es/chunks/haxe-CBKywepX.js +351 -0
- package/dist/es/chunks/http-B-vrcJu5.js +43 -0
- package/dist/es/chunks/idl-kztl-rIS.js +41 -0
- package/dist/es/chunks/javascript-COVyUmNV.js +636 -0
- package/dist/es/chunks/julia-C7x1UmUy.js +173 -0
- package/dist/es/chunks/livescript-BcSQznfC.js +250 -0
- package/dist/es/chunks/lua-CuzOmeFy.js +104 -0
- package/dist/es/chunks/mathematica-C_8O0eBN.js +37 -0
- package/dist/es/chunks/mbox-CgRq7o1s.js +65 -0
- package/dist/es/chunks/mirc-46fAnY_I.js +61 -0
- package/dist/es/chunks/mllike-DwngWEOH.js +260 -0
- package/dist/es/chunks/modelica-CLh6SOPZ.js +82 -0
- package/dist/es/chunks/mscgen-CqCKoWqr.js +287 -0
- package/dist/es/chunks/mumps-CTaGGpGh.js +24 -0
- package/dist/es/chunks/nginx-D8_Tx5a5.js +76 -0
- package/dist/es/chunks/nsis-LQ_3myBa.js +143 -0
- package/dist/es/chunks/ntriples-C8_f-qnr.js +76 -0
- package/dist/es/chunks/octave-Bg8pIvq8.js +40 -0
- package/dist/es/chunks/oz-fY6iPhaV.js +151 -0
- package/dist/es/chunks/pascal-yJGuSy92.js +66 -0
- package/dist/es/chunks/perl-Cp3_dIJp.js +626 -0
- package/dist/es/chunks/pig-Dp8CFFHM.js +49 -0
- package/dist/es/chunks/powershell-CFKKqebC.js +233 -0
- package/dist/es/chunks/properties-bVaZpKhj.js +19 -0
- package/dist/es/chunks/protobuf-CJ_NuiRp.js +14 -0
- package/dist/es/chunks/pug-CNVrzrF7.js +202 -0
- package/dist/es/chunks/puppet-DFrFlsRb.js +37 -0
- package/dist/es/chunks/python-DDOdLHWp.js +219 -0
- package/dist/es/chunks/q-CfAEY3XK.js +82 -0
- package/dist/es/chunks/r-D33f5qKA.js +133 -0
- package/dist/es/chunks/rolldown-runtime-QGRDbDUS.js +19 -0
- package/dist/es/chunks/rpm-KA2CbYVz.js +39 -0
- package/dist/es/chunks/ruby-DkaeL5UR.js +165 -0
- package/dist/es/chunks/sas-BMhoxqFi.js +73 -0
- package/dist/es/chunks/scheme-DiiFnhTV.js +116 -0
- package/dist/es/chunks/shell-BkraTAet.js +108 -0
- package/dist/es/chunks/sieve-CO0RsW8J.js +59 -0
- package/dist/es/chunks/simple-mode-DwMrk-pB.js +95 -0
- package/dist/es/chunks/smalltalk-susA3LoJ.js +43 -0
- package/dist/es/chunks/solr-Dyiozr6d.js +36 -0
- package/dist/es/chunks/sparql-svcWfrig.js +78 -0
- package/dist/es/chunks/spreadsheet-D64TPnFY.js +48 -0
- package/dist/es/chunks/sql-iy-in7fW.js +254 -0
- package/dist/es/chunks/stex-CK4iWXBq.js +108 -0
- package/dist/es/chunks/stylus-Bla1TtoF.js +281 -0
- package/dist/es/chunks/swift-BfLWtovc.js +158 -0
- package/dist/es/chunks/tcl-Cqsx32oK.js +71 -0
- package/dist/es/chunks/textile-CP9LptjR.js +215 -0
- package/dist/es/chunks/tiddlywiki-Ta-GM0jK.js +129 -0
- package/dist/es/chunks/tiki-CX4cONcl.js +160 -0
- package/dist/es/chunks/toml-BvD52WqI.js +27 -0
- package/dist/es/chunks/troff-CQ9EHWHs.js +29 -0
- package/dist/es/chunks/ttcn-DvhS_Gkc.js +117 -0
- package/dist/es/chunks/ttcn-cfg-GQi0YvSM.js +80 -0
- package/dist/es/chunks/turtle-VdGQLPpt.js +78 -0
- package/dist/es/chunks/vb-CPJS1Nrj.js +108 -0
- package/dist/es/chunks/vbscript-DEYreBb1.js +208 -0
- package/dist/es/chunks/velocity-BzjrTOAF.js +89 -0
- package/dist/es/chunks/verilog-Bc3Yq1WU.js +218 -0
- package/dist/es/chunks/vhdl-BD6jHQjr.js +102 -0
- package/dist/es/chunks/webidl-C5YO-ffA.js +102 -0
- package/dist/es/chunks/xquery-ugZJVSaq.js +204 -0
- package/dist/es/chunks/yacas-tAOeQ6Ok.js +72 -0
- package/dist/es/chunks/z80-DZa7RpgS.js +43 -0
- package/dist/es/index.js +19829 -0
- package/dist/iife/index.iife.js +96 -0
- package/dist/index.css +2 -0
- package/dist/types/cm/create-view.d.ts +19 -0
- package/dist/types/cm/create-view.d.ts.map +1 -0
- package/dist/types/cm/shortcuts.d.ts +11 -0
- package/dist/types/cm/shortcuts.d.ts.map +1 -0
- package/dist/types/cm/themes.d.ts +24 -0
- package/dist/types/cm/themes.d.ts.map +1 -0
- package/dist/types/cm/themes.test.d.ts +2 -0
- package/dist/types/cm/themes.test.d.ts.map +1 -0
- package/dist/types/defaults.d.ts +5 -0
- package/dist/types/defaults.d.ts.map +1 -0
- package/dist/types/dialogs/code.d.ts +5 -0
- package/dist/types/dialogs/code.d.ts.map +1 -0
- package/dist/types/dialogs/data/html-entities-data.d.ts +9 -0
- package/dist/types/dialogs/data/html-entities-data.d.ts.map +1 -0
- package/dist/types/dialogs/dialog.d.ts +37 -0
- package/dist/types/dialogs/dialog.d.ts.map +1 -0
- package/dist/types/dialogs/emoji.d.ts +4 -0
- package/dist/types/dialogs/emoji.d.ts.map +1 -0
- package/dist/types/dialogs/entities.d.ts +4 -0
- package/dist/types/dialogs/entities.d.ts.map +1 -0
- package/dist/types/dialogs/form.d.ts +12 -0
- package/dist/types/dialogs/form.d.ts.map +1 -0
- package/dist/types/dialogs/image.d.ts +4 -0
- package/dist/types/dialogs/image.d.ts.map +1 -0
- package/dist/types/dialogs/link.d.ts +6 -0
- package/dist/types/dialogs/link.d.ts.map +1 -0
- package/dist/types/dialogs/misc.d.ts +6 -0
- package/dist/types/dialogs/misc.d.ts.map +1 -0
- package/dist/types/dialogs/registry.d.ts +8 -0
- package/dist/types/dialogs/registry.d.ts.map +1 -0
- package/dist/types/dialogs/table.d.ts +4 -0
- package/dist/types/dialogs/table.d.ts.map +1 -0
- package/dist/types/editor.d.ts +105 -0
- package/dist/types/editor.d.ts.map +1 -0
- package/dist/types/features/paste-drop.d.ts +4 -0
- package/dist/types/features/paste-drop.d.ts.map +1 -0
- package/dist/types/features/view-modes.d.ts +8 -0
- package/dist/types/features/view-modes.d.ts.map +1 -0
- package/dist/types/i18n/en.d.ts +3 -0
- package/dist/types/i18n/en.d.ts.map +1 -0
- package/dist/types/i18n/index.d.ts +9 -0
- package/dist/types/i18n/index.d.ts.map +1 -0
- package/dist/types/i18n/zh-cn.d.ts +3 -0
- package/dist/types/i18n/zh-cn.d.ts.map +1 -0
- package/dist/types/i18n/zh-tw.d.ts +3 -0
- package/dist/types/i18n/zh-tw.d.ts.map +1 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lifecycle/layout.d.ts +11 -0
- package/dist/types/lifecycle/layout.d.ts.map +1 -0
- package/dist/types/lifecycle/mount.d.ts +12 -0
- package/dist/types/lifecycle/mount.d.ts.map +1 -0
- package/dist/types/markdown/cdn-lazy.d.ts +49 -0
- package/dist/types/markdown/cdn-lazy.d.ts.map +1 -0
- package/dist/types/markdown/data/emoji-data.d.ts +13 -0
- package/dist/types/markdown/data/emoji-data.d.ts.map +1 -0
- package/dist/types/markdown/data/emoji-unicode.d.ts +6 -0
- package/dist/types/markdown/data/emoji-unicode.d.ts.map +1 -0
- package/dist/types/markdown/data-attr.d.ts +10 -0
- package/dist/types/markdown/data-attr.d.ts.map +1 -0
- package/dist/types/markdown/engine.d.ts +18 -0
- package/dist/types/markdown/engine.d.ts.map +1 -0
- package/dist/types/markdown/engine.test.d.ts +2 -0
- package/dist/types/markdown/engine.test.d.ts.map +1 -0
- package/dist/types/markdown/highlight.d.ts +9 -0
- package/dist/types/markdown/highlight.d.ts.map +1 -0
- package/dist/types/markdown/plugin-emoji.d.ts +9 -0
- package/dist/types/markdown/plugin-emoji.d.ts.map +1 -0
- package/dist/types/markdown/plugin-fence.d.ts +3 -0
- package/dist/types/markdown/plugin-fence.d.ts.map +1 -0
- package/dist/types/markdown/plugin-misc.d.ts +9 -0
- package/dist/types/markdown/plugin-misc.d.ts.map +1 -0
- package/dist/types/markdown/plugin-tasks.d.ts +4 -0
- package/dist/types/markdown/plugin-tasks.d.ts.map +1 -0
- package/dist/types/markdown/plugin-tex.d.ts +3 -0
- package/dist/types/markdown/plugin-tex.d.ts.map +1 -0
- package/dist/types/markdown/plugin-toc.d.ts +18 -0
- package/dist/types/markdown/plugin-toc.d.ts.map +1 -0
- package/dist/types/normalize.d.ts +3 -0
- package/dist/types/normalize.d.ts.map +1 -0
- package/dist/types/preview/pane.d.ts +9 -0
- package/dist/types/preview/pane.d.ts.map +1 -0
- package/dist/types/preview/post-render.d.ts +19 -0
- package/dist/types/preview/post-render.d.ts.map +1 -0
- package/dist/types/preview/sync-scroll.d.ts +13 -0
- package/dist/types/preview/sync-scroll.d.ts.map +1 -0
- package/dist/types/preview/toc.d.ts +15 -0
- package/dist/types/preview/toc.d.ts.map +1 -0
- package/dist/types/render-to.d.ts +3 -0
- package/dist/types/render-to.d.ts.map +1 -0
- package/dist/types/toolbar/handlers.d.ts +4 -0
- package/dist/types/toolbar/handlers.d.ts.map +1 -0
- package/dist/types/toolbar/icons.d.ts +5 -0
- package/dist/types/toolbar/icons.d.ts.map +1 -0
- package/dist/types/toolbar/modes.d.ts +20 -0
- package/dist/types/toolbar/modes.d.ts.map +1 -0
- package/dist/types/toolbar/toolbar.d.ts +16 -0
- package/dist/types/toolbar/toolbar.d.ts.map +1 -0
- package/dist/types/types/common.d.ts +7 -0
- package/dist/types/types/common.d.ts.map +1 -0
- package/dist/types/types/events.d.ts +38 -0
- package/dist/types/types/events.d.ts.map +1 -0
- package/dist/types/types/lang.d.ts +95 -0
- package/dist/types/types/lang.d.ts.map +1 -0
- package/dist/types/types/settings.d.ts +171 -0
- package/dist/types/types/settings.d.ts.map +1 -0
- package/dist/umd/index.umd.cjs +96 -0
- package/package.json +69 -3
- package/README.md +0 -3
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/stylus.js
|
|
2
|
+
var e = /* @__PURE__ */ "a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.bgsound.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.nobr.noframes.noscript.object.ol.optgroup.option.output.p.param.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.track.u.ul.var.video".split("."), t = [
|
|
3
|
+
"domain",
|
|
4
|
+
"regexp",
|
|
5
|
+
"url-prefix",
|
|
6
|
+
"url"
|
|
7
|
+
], n = [
|
|
8
|
+
"all",
|
|
9
|
+
"aural",
|
|
10
|
+
"braille",
|
|
11
|
+
"handheld",
|
|
12
|
+
"print",
|
|
13
|
+
"projection",
|
|
14
|
+
"screen",
|
|
15
|
+
"tty",
|
|
16
|
+
"tv",
|
|
17
|
+
"embossed"
|
|
18
|
+
], r = /* @__PURE__ */ "width.min-width.max-width.height.min-height.max-height.device-width.min-device-width.max-device-width.device-height.min-device-height.max-device-height.aspect-ratio.min-aspect-ratio.max-aspect-ratio.device-aspect-ratio.min-device-aspect-ratio.max-device-aspect-ratio.color.min-color.max-color.color-index.min-color-index.max-color-index.monochrome.min-monochrome.max-monochrome.resolution.min-resolution.max-resolution.scan.grid.dynamic-range.video-dynamic-range".split("."), i = /* @__PURE__ */ "align-content.align-items.align-self.alignment-adjust.alignment-baseline.anchor-point.animation.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-timing-function.appearance.azimuth.backface-visibility.background.background-attachment.background-clip.background-color.background-image.background-origin.background-position.background-repeat.background-size.baseline-shift.binding.bleed.bookmark-label.bookmark-level.bookmark-state.bookmark-target.border.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-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-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-decoration-break.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.clear.clip.color.color-profile.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.content.counter-increment.counter-reset.crop.cue.cue-after.cue-before.cursor.direction.display.dominant-baseline.drop-initial-after-adjust.drop-initial-after-align.drop-initial-before-adjust.drop-initial-before-align.drop-initial-size.drop-initial-value.elevation.empty-cells.fit.fit-position.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.float-offset.flow-from.flow-into.font.font-feature-settings.font-family.font-kerning.font-language-override.font-size.font-size-adjust.font-stretch.font-style.font-synthesis.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-ligatures.font-variant-numeric.font-variant-position.font-weight.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-position.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphens.icon.image-orientation.image-rendering.image-resolution.inline-box-align.justify-content.left.letter-spacing.line-break.line-height.line-stacking.line-stacking-ruby.line-stacking-shift.line-stacking-strategy.list-style.list-style-image.list-style-position.list-style-type.margin.margin-bottom.margin-left.margin-right.margin-top.marker-offset.marks.marquee-direction.marquee-loop.marquee-play-count.marquee-speed.marquee-style.max-height.max-width.min-height.min-width.move-to.nav-down.nav-index.nav-left.nav-right.nav-up.object-fit.object-position.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-style.overflow-wrap.overflow-x.overflow-y.padding.padding-bottom.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.page-policy.pause.pause-after.pause-before.perspective.perspective-origin.pitch.pitch-range.play-during.position.presentation-level.punctuation-trim.quotes.region-break-after.region-break-before.region-break-inside.region-fragment.rendering-intent.resize.rest.rest-after.rest-before.richness.right.rotation.rotation-point.ruby-align.ruby-overhang.ruby-position.ruby-span.shape-image-threshold.shape-inside.shape-margin.shape-outside.size.speak.speak-as.speak-header.speak-numeral.speak-punctuation.speech-rate.stress.string-set.tab-size.table-layout.target.target-name.target-new.target-position.text-align.text-align-last.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-style.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-height.text-indent.text-justify.text-outline.text-overflow.text-shadow.text-size-adjust.text-space-collapse.text-transform.text-underline-position.text-wrap.top.transform.transform-origin.transform-style.transition.transition-delay.transition-duration.transition-property.transition-timing-function.unicode-bidi.vertical-align.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.volume.white-space.widows.width.will-change.word-break.word-spacing.word-wrap.z-index.clip-path.clip-rule.mask.enable-background.filter.flood-color.flood-opacity.lighting-color.stop-color.stop-opacity.pointer-events.color-interpolation.color-interpolation-filters.color-rendering.fill.fill-opacity.fill-rule.image-rendering.marker.marker-end.marker-mid.marker-start.shape-rendering.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-rendering.baseline-shift.dominant-baseline.glyph-orientation-horizontal.glyph-orientation-vertical.text-anchor.writing-mode.font-smoothing.osx-font-smoothing".split("."), a = [
|
|
19
|
+
"scrollbar-arrow-color",
|
|
20
|
+
"scrollbar-base-color",
|
|
21
|
+
"scrollbar-dark-shadow-color",
|
|
22
|
+
"scrollbar-face-color",
|
|
23
|
+
"scrollbar-highlight-color",
|
|
24
|
+
"scrollbar-shadow-color",
|
|
25
|
+
"scrollbar-3d-light-color",
|
|
26
|
+
"scrollbar-track-color",
|
|
27
|
+
"shape-inside",
|
|
28
|
+
"searchfield-cancel-button",
|
|
29
|
+
"searchfield-decoration",
|
|
30
|
+
"searchfield-results-button",
|
|
31
|
+
"searchfield-results-decoration",
|
|
32
|
+
"zoom"
|
|
33
|
+
], o = [
|
|
34
|
+
"font-family",
|
|
35
|
+
"src",
|
|
36
|
+
"unicode-range",
|
|
37
|
+
"font-variant",
|
|
38
|
+
"font-feature-settings",
|
|
39
|
+
"font-stretch",
|
|
40
|
+
"font-weight",
|
|
41
|
+
"font-style"
|
|
42
|
+
], s = /* @__PURE__ */ "aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen".split("."), c = /* @__PURE__ */ "above.absolute.activeborder.additive.activecaption.afar.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.amharic.amharic-abegede.antialiased.appworkspace.arabic-indic.armenian.asterisks.attr.auto.avoid.avoid-column.avoid-page.avoid-region.background.backwards.baseline.below.bidi-override.binary.bengali.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.buttonface.buttonhighlight.buttonshadow.buttontext.calc.cambodian.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.cjk-earthly-branch.cjk-heavenly-stem.cjk-ideographic.clear.clip.close-quote.col-resize.collapse.column.compact.condensed.conic-gradient.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.dashed.decimal.decimal-leading-zero.default.default-button.destination-atop.destination-in.destination-out.destination-over.devanagari.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic.ethiopic-abegede.ethiopic-abegede-am-et.ethiopic-abegede-gez.ethiopic-abegede-ti-er.ethiopic-abegede-ti-et.ethiopic-halehame-aa-er.ethiopic-halehame-aa-et.ethiopic-halehame-am-et.ethiopic-halehame-gez.ethiopic-halehame-om-et.ethiopic-halehame-sid-et.ethiopic-halehame-so-et.ethiopic-halehame-ti-er.ethiopic-halehame-ti-et.ethiopic-halehame-tig.ethiopic-numeric.ew-resize.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fixed.flat.flex.footnotes.forwards.from.geometricPrecision.georgian.graytext.groove.gujarati.gurmukhi.hand.hangul.hangul-consonant.hebrew.help.hidden.hide.high.higher.highlight.highlighttext.hiragana.hiragana-iroha.horizontal.hsl.hsla.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-table.inset.inside.intrinsic.invert.italic.japanese-formal.japanese-informal.justify.kannada.katakana.katakana-iroha.keep-all.khmer.korean-hangul-formal.korean-hanja-formal.korean-hanja-informal.landscape.lao.large.larger.left.level.lighter.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-alpha.lower-armenian.lower-greek.lower-hexadecimal.lower-latin.lower-norwegian.lower-roman.lowercase.ltr.malayalam.match.matrix.matrix3d.media-play-button.media-slider.media-sliderthumb.media-volume-slider.media-volume-sliderthumb.medium.menu.menulist.menulist-button.menutext.message-box.middle.min-intrinsic.mix.mongolian.monospace.move.multiple.myanmar.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.octal.open-quote.optimizeLegibility.optimizeSpeed.oriya.oromo.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.persian.perspective.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeating-conic-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row-resize.rtl.run-in.running.s-resize.sans-serif.scale.scale3d.scaleX.scaleY.scaleZ.scroll.scrollbar.scroll-position.se-resize.searchfield.searchfield-cancel-button.searchfield-decoration.searchfield-results-button.searchfield-results-decoration.semi-condensed.semi-expanded.separate.serif.show.sidama.simp-chinese-formal.simp-chinese-informal.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.solid.somali.source-atop.source-in.source-out.source-over.space.spell-out.square.square-button.standard.start.static.status-bar.stretch.stroke.sub.subpixel-antialiased.super.sw-resize.symbolic.symbols.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.tamil.telugu.text.text-bottom.text-top.textarea.textfield.thai.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.tibetan.tigre.tigrinya-er.tigrinya-er-abegede.tigrinya-et.tigrinya-et-abegede.to.top.trad-chinese-formal.trad-chinese-informal.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.up.upper-alpha.upper-armenian.upper-greek.upper-hexadecimal.upper-latin.upper-norwegian.upper-roman.uppercase.urdu.url.var.vertical.vertical-text.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.x-large.x-small.xor.xx-large.xx-small.bicubic.optimizespeed.grayscale.row.row-reverse.wrap.wrap-reverse.column-reverse.flex-start.flex-end.space-between.space-around.unset".split("."), l = [
|
|
43
|
+
"in",
|
|
44
|
+
"and",
|
|
45
|
+
"or",
|
|
46
|
+
"not",
|
|
47
|
+
"is not",
|
|
48
|
+
"is a",
|
|
49
|
+
"is",
|
|
50
|
+
"isnt",
|
|
51
|
+
"defined",
|
|
52
|
+
"if unless"
|
|
53
|
+
], u = [
|
|
54
|
+
"for",
|
|
55
|
+
"if",
|
|
56
|
+
"else",
|
|
57
|
+
"unless",
|
|
58
|
+
"from",
|
|
59
|
+
"to"
|
|
60
|
+
], d = [
|
|
61
|
+
"null",
|
|
62
|
+
"true",
|
|
63
|
+
"false",
|
|
64
|
+
"href",
|
|
65
|
+
"title",
|
|
66
|
+
"type",
|
|
67
|
+
"not-allowed",
|
|
68
|
+
"readonly",
|
|
69
|
+
"disabled"
|
|
70
|
+
], f = e.concat(t, n, r, i, a, s, c, o, l, u, d, [
|
|
71
|
+
"@font-face",
|
|
72
|
+
"@keyframes",
|
|
73
|
+
"@media",
|
|
74
|
+
"@viewport",
|
|
75
|
+
"@page",
|
|
76
|
+
"@host",
|
|
77
|
+
"@supports",
|
|
78
|
+
"@block",
|
|
79
|
+
"@css"
|
|
80
|
+
]);
|
|
81
|
+
function p(e) {
|
|
82
|
+
return e = e.sort(function(e, t) {
|
|
83
|
+
return t > e;
|
|
84
|
+
}), RegExp("^((" + e.join(")|(") + "))\\b");
|
|
85
|
+
}
|
|
86
|
+
function m(e) {
|
|
87
|
+
for (var t = {}, n = 0; n < e.length; ++n) t[e[n]] = !0;
|
|
88
|
+
return t;
|
|
89
|
+
}
|
|
90
|
+
function ee(e) {
|
|
91
|
+
return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
92
|
+
}
|
|
93
|
+
var te = m(e), h = /^(a|b|i|s|col|em)$/i, g = m(i), _ = m(a), v = m(c), y = m(s), b = m(t), x = p(t), S = m(r), C = m(n), w = m(o), ne = /^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/, re = p(l), T = m(u), E = /* @__PURE__ */ new RegExp(/^\-(moz|ms|o|webkit)-/i), D = m(d), O = "", k = {}, A, j, M, N;
|
|
94
|
+
function P(e, t) {
|
|
95
|
+
if (O = e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/), t.context.line.firstWord = O ? O[0].replace(/^\s*/, "") : "", t.context.line.indent = e.indentation(), A = e.peek(), e.match("//")) return e.skipToEnd(), ["comment", "comment"];
|
|
96
|
+
if (e.match("/*")) return t.tokenize = F, F(e, t);
|
|
97
|
+
if (A == "\"" || A == "'") return e.next(), t.tokenize = I(A), t.tokenize(e, t);
|
|
98
|
+
if (A == "@") return e.next(), e.eatWhile(/[\w\\-]/), ["def", e.current()];
|
|
99
|
+
if (A == "#") {
|
|
100
|
+
if (e.next(), e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i)) return ["atom", "atom"];
|
|
101
|
+
if (e.match(/^[a-z][\w-]*/i)) return ["builtin", "hash"];
|
|
102
|
+
}
|
|
103
|
+
return e.match(E) ? ["meta", "vendor-prefixes"] : e.match(/^-?[0-9]?\.?[0-9]/) ? (e.eatWhile(/[a-z%]/i), ["number", "unit"]) : A == "!" ? (e.next(), [e.match(/^(important|optional)/i) ? "keyword" : "operator", "important"]) : A == "." && e.match(/^\.[a-z][\w-]*/i) ? ["qualifier", "qualifier"] : e.match(x) ? (e.peek() == "(" && (t.tokenize = L), ["property", "word"]) : e.match(/^[a-z][\w-]*\(/i) ? (e.backUp(1), ["keyword", "mixin"]) : e.match(/^(\+|-)[a-z][\w-]*\(/i) ? (e.backUp(1), ["keyword", "block-mixin"]) : e.string.match(/^\s*&/) && e.match(/^[-_]+[a-z][\w-]*/) ? ["qualifier", "qualifier"] : e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/) ? (e.backUp(1), ["variableName.special", "reference"]) : e.match(/^&{1}\s*$/) ? ["variableName.special", "reference"] : e.match(re) ? ["operator", "operator"] : e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i) ? e.match(/^(\.|\[)[\w-\'\"\]]+/i, !1) && !U(e.current()) ? (e.match("."), ["variable", "variable-name"]) : ["variable", "word"] : e.match(ne) ? ["operator", e.current()] : /[:;,{}\[\]\(\)]/.test(A) ? (e.next(), [null, A]) : (e.next(), [null, null]);
|
|
104
|
+
}
|
|
105
|
+
function F(e, t) {
|
|
106
|
+
for (var n = !1, r; (r = e.next()) != null;) {
|
|
107
|
+
if (n && r == "/") {
|
|
108
|
+
t.tokenize = null;
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
n = r == "*";
|
|
112
|
+
}
|
|
113
|
+
return ["comment", "comment"];
|
|
114
|
+
}
|
|
115
|
+
function I(e) {
|
|
116
|
+
return function(t, n) {
|
|
117
|
+
for (var r = !1, i; (i = t.next()) != null;) {
|
|
118
|
+
if (i == e && !r) {
|
|
119
|
+
e == ")" && t.backUp(1);
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
r = !r && i == "\\";
|
|
123
|
+
}
|
|
124
|
+
return (i == e || !r && e != ")") && (n.tokenize = null), ["string", "string"];
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function L(e, t) {
|
|
128
|
+
return e.next(), t.tokenize = e.match(/\s*[\"\')]/, !1) ? null : I(")"), [null, "("];
|
|
129
|
+
}
|
|
130
|
+
function R(e, t, n, r) {
|
|
131
|
+
this.type = e, this.indent = t, this.prev = n, this.line = r || {
|
|
132
|
+
firstWord: "",
|
|
133
|
+
indent: 0
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
function z(e, t, n, r) {
|
|
137
|
+
return r = r >= 0 ? r : t.indentUnit, e.context = new R(n, t.indentation() + r, e.context), n;
|
|
138
|
+
}
|
|
139
|
+
function B(e, t, n) {
|
|
140
|
+
var r = e.context.indent - t.indentUnit;
|
|
141
|
+
return n ||= !1, e.context = e.context.prev, n && (e.context.indent = r), e.context.type;
|
|
142
|
+
}
|
|
143
|
+
function V(e, t, n) {
|
|
144
|
+
return k[n.context.type](e, t, n);
|
|
145
|
+
}
|
|
146
|
+
function H(e, t, n, r) {
|
|
147
|
+
for (var i = r || 1; i > 0; i--) n.context = n.context.prev;
|
|
148
|
+
return V(e, t, n);
|
|
149
|
+
}
|
|
150
|
+
function U(e) {
|
|
151
|
+
return e.toLowerCase() in te;
|
|
152
|
+
}
|
|
153
|
+
function W(e) {
|
|
154
|
+
return e = e.toLowerCase(), e in g || e in w;
|
|
155
|
+
}
|
|
156
|
+
function G(e) {
|
|
157
|
+
return e.toLowerCase() in T;
|
|
158
|
+
}
|
|
159
|
+
function K(e) {
|
|
160
|
+
return e.toLowerCase().match(E);
|
|
161
|
+
}
|
|
162
|
+
function q(e) {
|
|
163
|
+
var t = e.toLowerCase(), n = "variable";
|
|
164
|
+
return U(e) ? n = "tag" : G(e) ? n = "block-keyword" : W(e) ? n = "property" : t in v || t in D ? n = "atom" : t == "return" || t in y ? n = "keyword" : e.match(/^[A-Z]/) && (n = "string"), n;
|
|
165
|
+
}
|
|
166
|
+
function J(e, t) {
|
|
167
|
+
return Q(t) && (e == "{" || e == "]" || e == "hash" || e == "qualifier") || e == "block-mixin";
|
|
168
|
+
}
|
|
169
|
+
function Y(e, t) {
|
|
170
|
+
return e == "{" && t.match(/^\s*\$?[\w-]+/i, !1);
|
|
171
|
+
}
|
|
172
|
+
function X(e, t) {
|
|
173
|
+
return e == ":" && t.match(/^[a-z-]+/, !1);
|
|
174
|
+
}
|
|
175
|
+
function Z(e) {
|
|
176
|
+
return e.sol() || e.string.match(RegExp("^\\s*" + ee(e.current())));
|
|
177
|
+
}
|
|
178
|
+
function Q(e) {
|
|
179
|
+
return e.eol() || e.match(/^\s*$/, !1);
|
|
180
|
+
}
|
|
181
|
+
function $(e) {
|
|
182
|
+
var t = /^\s*[-_]*[a-z0-9]+[\w-]*/i, n = typeof e == "string" ? e.match(t) : e.string.match(t);
|
|
183
|
+
return n ? n[0].replace(/^\s*/, "") : "";
|
|
184
|
+
}
|
|
185
|
+
k.block = function(e, t, n) {
|
|
186
|
+
if (e == "comment" && Z(t) || e == "," && Q(t) || e == "mixin") return z(n, t, "block", 0);
|
|
187
|
+
if (Y(e, t)) return z(n, t, "interpolation");
|
|
188
|
+
if (Q(t) && e == "]" && !/^\s*(\.|#|:|\[|\*|&)/.test(t.string) && !U($(t))) return z(n, t, "block", 0);
|
|
189
|
+
if (J(e, t)) return z(n, t, "block");
|
|
190
|
+
if (e == "}" && Q(t)) return z(n, t, "block", 0);
|
|
191
|
+
if (e == "variable-name") return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/) || G($(t)) ? z(n, t, "variableName") : z(n, t, "variableName", 0);
|
|
192
|
+
if (e == "=") return !Q(t) && !G($(t)) ? z(n, t, "block", 0) : z(n, t, "block");
|
|
193
|
+
if (e == "*" && (Q(t) || t.match(/\s*(,|\.|#|\[|:|{)/, !1))) return N = "tag", z(n, t, "block");
|
|
194
|
+
if (X(e, t)) return z(n, t, "pseudo");
|
|
195
|
+
if (/@(font-face|media|supports|(-moz-)?document)/.test(e)) return z(n, t, Q(t) ? "block" : "atBlock");
|
|
196
|
+
if (/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e)) return z(n, t, "keyframes");
|
|
197
|
+
if (/@extends?/.test(e)) return z(n, t, "extend", 0);
|
|
198
|
+
if (e && e.charAt(0) == "@") return t.indentation() > 0 && W(t.current().slice(1)) ? (N = "variable", "block") : /(@import|@require|@charset)/.test(e) ? z(n, t, "block", 0) : z(n, t, "block");
|
|
199
|
+
if (e == "reference" && Q(t)) return z(n, t, "block");
|
|
200
|
+
if (e == "(") return z(n, t, "parens");
|
|
201
|
+
if (e == "vendor-prefixes") return z(n, t, "vendorPrefixes");
|
|
202
|
+
if (e == "word") {
|
|
203
|
+
var r = t.current();
|
|
204
|
+
if (N = q(r), N == "property") return Z(t) ? z(n, t, "block", 0) : (N = "atom", "block");
|
|
205
|
+
if (N == "tag") {
|
|
206
|
+
if (/embed|menu|pre|progress|sub|table/.test(r) && W($(t)) || t.string.match(RegExp("\\[\\s*" + r + "|" + r + "\\s*\\]"))) return N = "atom", "block";
|
|
207
|
+
if (h.test(r) && (Z(t) && t.string.match(/=/) || !Z(t) && !t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/) && !U($(t)))) return N = "variable", G($(t)) ? "block" : z(n, t, "block", 0);
|
|
208
|
+
if (Q(t)) return z(n, t, "block");
|
|
209
|
+
}
|
|
210
|
+
if (N == "block-keyword") return N = "keyword", t.current(/(if|unless)/) && !Z(t) ? "block" : z(n, t, "block");
|
|
211
|
+
if (r == "return") return z(n, t, "block", 0);
|
|
212
|
+
if (N == "variable" && t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)) return z(n, t, "block");
|
|
213
|
+
}
|
|
214
|
+
return n.context.type;
|
|
215
|
+
}, k.parens = function(e, t, n) {
|
|
216
|
+
if (e == "(") return z(n, t, "parens");
|
|
217
|
+
if (e == ")") return n.context.prev.type == "parens" ? B(n, t) : t.string.match(/^[a-z][\w-]*\(/i) && Q(t) || G($(t)) || /(\.|#|:|\[|\*|&|>|~|\+|\/)/.test($(t)) || !t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/) && U($(t)) ? z(n, t, "block") : t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/) || t.string.match(/^\s*(\(|\)|[0-9])/) || t.string.match(/^\s+[a-z][\w-]*\(/i) || t.string.match(/^\s+[\$-]?[a-z]/i) ? z(n, t, "block", 0) : Q(t) ? z(n, t, "block") : z(n, t, "block", 0);
|
|
218
|
+
if (e && e.charAt(0) == "@" && W(t.current().slice(1)) && (N = "variable"), e == "word") {
|
|
219
|
+
var r = t.current();
|
|
220
|
+
N = q(r), N == "tag" && h.test(r) && (N = "variable"), (N == "property" || r == "to") && (N = "atom");
|
|
221
|
+
}
|
|
222
|
+
return e == "variable-name" ? z(n, t, "variableName") : X(e, t) ? z(n, t, "pseudo") : n.context.type;
|
|
223
|
+
}, k.vendorPrefixes = function(e, t, n) {
|
|
224
|
+
return e == "word" ? (N = "property", z(n, t, "block", 0)) : B(n, t);
|
|
225
|
+
}, k.pseudo = function(e, t, n) {
|
|
226
|
+
return W($(t.string)) ? H(e, t, n) : (t.match(/^[a-z-]+/), N = "variableName.special", Q(t) ? z(n, t, "block") : B(n, t));
|
|
227
|
+
}, k.atBlock = function(e, t, n) {
|
|
228
|
+
if (e == "(") return z(n, t, "atBlock_parens");
|
|
229
|
+
if (J(e, t)) return z(n, t, "block");
|
|
230
|
+
if (Y(e, t)) return z(n, t, "interpolation");
|
|
231
|
+
if (e == "word") {
|
|
232
|
+
var r = t.current().toLowerCase();
|
|
233
|
+
if (N = /^(only|not|and|or)$/.test(r) ? "keyword" : b.hasOwnProperty(r) ? "tag" : C.hasOwnProperty(r) ? "attribute" : S.hasOwnProperty(r) ? "property" : _.hasOwnProperty(r) ? "string.special" : q(t.current()), N == "tag" && Q(t)) return z(n, t, "block");
|
|
234
|
+
}
|
|
235
|
+
return e == "operator" && /^(not|and|or)$/.test(t.current()) && (N = "keyword"), n.context.type;
|
|
236
|
+
}, k.atBlock_parens = function(e, t, n) {
|
|
237
|
+
if (e == "{" || e == "}") return n.context.type;
|
|
238
|
+
if (e == ")") return Q(t) ? z(n, t, "block") : z(n, t, "atBlock");
|
|
239
|
+
if (e == "word") {
|
|
240
|
+
var r = t.current().toLowerCase();
|
|
241
|
+
return N = q(r), /^(max|min)/.test(r) && (N = "property"), N == "tag" && (N = h.test(r) ? "variable" : "atom"), n.context.type;
|
|
242
|
+
}
|
|
243
|
+
return k.atBlock(e, t, n);
|
|
244
|
+
}, k.keyframes = function(e, t, n) {
|
|
245
|
+
return t.indentation() == "0" && (e == "}" && Z(t) || e == "]" || e == "hash" || e == "qualifier" || U(t.current())) ? H(e, t, n) : e == "{" ? z(n, t, "keyframes") : e == "}" ? Z(t) ? B(n, t, !0) : z(n, t, "keyframes") : e == "unit" && /^[0-9]+\%$/.test(t.current()) ? z(n, t, "keyframes") : e == "word" && (N = q(t.current()), N == "block-keyword") ? (N = "keyword", z(n, t, "keyframes")) : /@(font-face|media|supports|(-moz-)?document)/.test(e) ? z(n, t, Q(t) ? "block" : "atBlock") : e == "mixin" ? z(n, t, "block", 0) : n.context.type;
|
|
246
|
+
}, k.interpolation = function(e, t, n) {
|
|
247
|
+
return e == "{" && B(n, t) && z(n, t, "block"), e == "}" ? t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i) || t.string.match(/^\s*[a-z]/i) && U($(t)) ? z(n, t, "block") : !t.string.match(/^(\{|\s*\&)/) || t.match(/\s*[\w-]/, !1) ? z(n, t, "block", 0) : z(n, t, "block") : e == "variable-name" ? z(n, t, "variableName", 0) : (e == "word" && (N = q(t.current()), N == "tag" && (N = "atom")), n.context.type);
|
|
248
|
+
}, k.extend = function(e, t, n) {
|
|
249
|
+
return e == "[" || e == "=" ? "extend" : e == "]" ? B(n, t) : e == "word" ? (N = q(t.current()), "extend") : B(n, t);
|
|
250
|
+
}, k.variableName = function(e, t, n) {
|
|
251
|
+
return e == "string" || e == "[" || e == "]" || t.current().match(/^(\.|\$)/) ? (t.current().match(/^\.[\w-]+/i) && (N = "variable"), "variableName") : H(e, t, n);
|
|
252
|
+
};
|
|
253
|
+
var ie = {
|
|
254
|
+
name: "stylus",
|
|
255
|
+
startState: function() {
|
|
256
|
+
return {
|
|
257
|
+
tokenize: null,
|
|
258
|
+
state: "block",
|
|
259
|
+
context: new R("block", 0, null)
|
|
260
|
+
};
|
|
261
|
+
},
|
|
262
|
+
token: function(e, t) {
|
|
263
|
+
return !t.tokenize && e.eatSpace() ? null : (j = (t.tokenize || P)(e, t), j && typeof j == "object" && (M = j[1], j = j[0]), N = j, t.state = k[t.state](M, e, t), N);
|
|
264
|
+
},
|
|
265
|
+
indent: function(e, t, n) {
|
|
266
|
+
var r = e.context, i = t && t.charAt(0), a = r.indent, o = $(t), s = r.line.indent, c = e.context.prev ? e.context.prev.line.firstWord : "", l = e.context.prev ? e.context.prev.line.indent : s;
|
|
267
|
+
return r.prev && (i == "}" && (r.type == "block" || r.type == "atBlock" || r.type == "keyframes") || i == ")" && (r.type == "parens" || r.type == "atBlock_parens") || i == "{" && r.type == "at") ? a = r.indent - n.unit : /(\})/.test(i) || (/@|\$|\d/.test(i) || /^\{/.test(t) || /^\s*\/(\/|\*)/.test(t) || /^\s*\/\*/.test(c) || /^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t) || /^(\+|-)?[a-z][\w-]*\(/i.test(t) || /^return/.test(t) || G(o) ? a = s : /(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i) || U(o) ? a = /\,\s*$/.test(c) ? l : /(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(c) || U(c) ? s <= l ? l : l + n.unit : s : !/,\s*$/.test(t) && (K(o) || W(o)) && (a = G(c) ? s <= l ? l : l + n.unit : /^\{/.test(c) ? s <= l ? s : l + n.unit : K(c) || W(c) ? s >= l ? l : s : /^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(c) || /=\s*$/.test(c) || U(c) || /^\$[\w-\.\[\]\'\"]/.test(c) ? l + n.unit : s)), a;
|
|
268
|
+
},
|
|
269
|
+
languageData: {
|
|
270
|
+
indentOnInput: /^\s*\}$/,
|
|
271
|
+
commentTokens: {
|
|
272
|
+
line: "//",
|
|
273
|
+
block: {
|
|
274
|
+
open: "/*",
|
|
275
|
+
close: "*/"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
autocomplete: f
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
export { ie as stylus };
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/swift.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
for (var t = {}, n = 0; n < e.length; n++) t[e[n]] = !0;
|
|
4
|
+
return t;
|
|
5
|
+
}
|
|
6
|
+
var t = e(/* @__PURE__ */ "_.var.let.actor.class.enum.extension.import.protocol.struct.func.typealias.associatedtype.open.public.internal.fileprivate.private.deinit.init.new.override.self.subscript.super.convenience.dynamic.final.indirect.lazy.required.static.unowned.unowned(safe).unowned(unsafe).weak.as.is.break.case.continue.default.else.fallthrough.for.guard.if.in.repeat.switch.where.while.defer.return.inout.mutating.nonmutating.isolated.nonisolated.catch.do.rethrows.throw.throws.async.await.try.didSet.get.set.willSet.assignment.associativity.infix.left.none.operator.postfix.precedence.precedencegroup.prefix.right.Any.AnyObject.Type.dynamicType.Self.Protocol.__COLUMN__.__FILE__.__FUNCTION__.__LINE__".split(".")), n = e([
|
|
7
|
+
"var",
|
|
8
|
+
"let",
|
|
9
|
+
"actor",
|
|
10
|
+
"class",
|
|
11
|
+
"enum",
|
|
12
|
+
"extension",
|
|
13
|
+
"import",
|
|
14
|
+
"protocol",
|
|
15
|
+
"struct",
|
|
16
|
+
"func",
|
|
17
|
+
"typealias",
|
|
18
|
+
"associatedtype",
|
|
19
|
+
"for"
|
|
20
|
+
]), r = e([
|
|
21
|
+
"true",
|
|
22
|
+
"false",
|
|
23
|
+
"nil",
|
|
24
|
+
"self",
|
|
25
|
+
"super",
|
|
26
|
+
"_"
|
|
27
|
+
]), i = e([
|
|
28
|
+
"Array",
|
|
29
|
+
"Bool",
|
|
30
|
+
"Character",
|
|
31
|
+
"Dictionary",
|
|
32
|
+
"Double",
|
|
33
|
+
"Float",
|
|
34
|
+
"Int",
|
|
35
|
+
"Int8",
|
|
36
|
+
"Int16",
|
|
37
|
+
"Int32",
|
|
38
|
+
"Int64",
|
|
39
|
+
"Never",
|
|
40
|
+
"Optional",
|
|
41
|
+
"Set",
|
|
42
|
+
"String",
|
|
43
|
+
"UInt8",
|
|
44
|
+
"UInt16",
|
|
45
|
+
"UInt32",
|
|
46
|
+
"UInt64",
|
|
47
|
+
"Void"
|
|
48
|
+
]), a = "+-/*%=|&<>~^?!", o = ":;,.(){}[]", s = /^\-?0b[01][01_]*/, c = /^\-?0o[0-7][0-7_]*/, l = /^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/, u = /^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/, d = /^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/, f = /^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/, p = /^\#[A-Za-z]+/, m = /^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;
|
|
49
|
+
function h(e, h, g) {
|
|
50
|
+
if (e.sol() && (h.indented = e.indentation()), e.eatSpace()) return null;
|
|
51
|
+
var y = e.peek();
|
|
52
|
+
if (y == "/") {
|
|
53
|
+
if (e.match("//")) return e.skipToEnd(), "comment";
|
|
54
|
+
if (e.match("/*")) return h.tokenize.push(v), v(e, h);
|
|
55
|
+
}
|
|
56
|
+
if (e.match(p)) return "builtin";
|
|
57
|
+
if (e.match(m)) return "attribute";
|
|
58
|
+
if (e.match(s) || e.match(c) || e.match(l) || e.match(u)) return "number";
|
|
59
|
+
if (e.match(f)) return "property";
|
|
60
|
+
if (a.indexOf(y) > -1) return e.next(), "operator";
|
|
61
|
+
if (o.indexOf(y) > -1) return e.next(), e.match(".."), "punctuation";
|
|
62
|
+
var b;
|
|
63
|
+
if (b = e.match(/("""|"|')/)) {
|
|
64
|
+
var x = _.bind(null, b[0]);
|
|
65
|
+
return h.tokenize.push(x), x(e, h);
|
|
66
|
+
}
|
|
67
|
+
if (e.match(d)) {
|
|
68
|
+
var S = e.current();
|
|
69
|
+
return i.hasOwnProperty(S) ? "type" : r.hasOwnProperty(S) ? "atom" : t.hasOwnProperty(S) ? (n.hasOwnProperty(S) && (h.prev = "define"), "keyword") : g == "define" ? "def" : "variable";
|
|
70
|
+
}
|
|
71
|
+
return e.next(), null;
|
|
72
|
+
}
|
|
73
|
+
function g() {
|
|
74
|
+
var e = 0;
|
|
75
|
+
return function(t, n, r) {
|
|
76
|
+
var i = h(t, n, r);
|
|
77
|
+
if (i == "punctuation") {
|
|
78
|
+
if (t.current() == "(") ++e;
|
|
79
|
+
else if (t.current() == ")") {
|
|
80
|
+
if (e == 0) return t.backUp(1), n.tokenize.pop(), n.tokenize[n.tokenize.length - 1](t, n);
|
|
81
|
+
--e;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return i;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function _(e, t, n) {
|
|
88
|
+
for (var r = e.length == 1, i, a = !1; i = t.peek();) if (a) {
|
|
89
|
+
if (t.next(), i == "(") return n.tokenize.push(g()), "string";
|
|
90
|
+
a = !1;
|
|
91
|
+
} else if (t.match(e)) return n.tokenize.pop(), "string";
|
|
92
|
+
else t.next(), a = i == "\\";
|
|
93
|
+
return r && n.tokenize.pop(), "string";
|
|
94
|
+
}
|
|
95
|
+
function v(e, t) {
|
|
96
|
+
for (var n; n = e.next();) if (n === "/" && e.eat("*")) t.tokenize.push(v);
|
|
97
|
+
else if (n === "*" && e.eat("/")) {
|
|
98
|
+
t.tokenize.pop();
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
return "comment";
|
|
102
|
+
}
|
|
103
|
+
function y(e, t, n) {
|
|
104
|
+
this.prev = e, this.align = t, this.indented = n;
|
|
105
|
+
}
|
|
106
|
+
function b(e, t) {
|
|
107
|
+
var n = t.match(/^\s*($|\/[\/\*]|[)}\]])/, !1) ? null : t.column() + 1;
|
|
108
|
+
e.context = new y(e.context, n, e.indented);
|
|
109
|
+
}
|
|
110
|
+
function x(e) {
|
|
111
|
+
e.context &&= (e.indented = e.context.indented, e.context.prev);
|
|
112
|
+
}
|
|
113
|
+
var S = {
|
|
114
|
+
name: "swift",
|
|
115
|
+
startState: function() {
|
|
116
|
+
return {
|
|
117
|
+
prev: null,
|
|
118
|
+
context: null,
|
|
119
|
+
indented: 0,
|
|
120
|
+
tokenize: []
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
token: function(e, t) {
|
|
124
|
+
var n = t.prev;
|
|
125
|
+
t.prev = null;
|
|
126
|
+
var r = (t.tokenize[t.tokenize.length - 1] || h)(e, t, n);
|
|
127
|
+
if (!r || r == "comment" ? t.prev = n : t.prev ||= r, r == "punctuation") {
|
|
128
|
+
var i = /[\(\[\{]|([\]\)\}])/.exec(e.current());
|
|
129
|
+
i && (i[1] ? x : b)(t, e);
|
|
130
|
+
}
|
|
131
|
+
return r;
|
|
132
|
+
},
|
|
133
|
+
indent: function(e, t, n) {
|
|
134
|
+
var r = e.context;
|
|
135
|
+
if (!r) return 0;
|
|
136
|
+
var i = /^[\]\}\)]/.test(t);
|
|
137
|
+
return r.align == null ? r.indented + (i ? 0 : n.unit) : r.align - +!!i;
|
|
138
|
+
},
|
|
139
|
+
languageData: {
|
|
140
|
+
indentOnInput: /^\s*[\)\}\]]$/,
|
|
141
|
+
commentTokens: {
|
|
142
|
+
line: "//",
|
|
143
|
+
block: {
|
|
144
|
+
open: "/*",
|
|
145
|
+
close: "*/"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
closeBrackets: { brackets: [
|
|
149
|
+
"(",
|
|
150
|
+
"[",
|
|
151
|
+
"{",
|
|
152
|
+
"'",
|
|
153
|
+
"\"",
|
|
154
|
+
"`"
|
|
155
|
+
] }
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
export { S as swift };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/tcl.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
|
|
4
|
+
return t;
|
|
5
|
+
}
|
|
6
|
+
var t = e("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"), n = e("if elseif else and not or eq ne in ni for foreach while switch"), r = /[+\-*&%=<>!?^\/\|]/;
|
|
7
|
+
function i(e, t, n) {
|
|
8
|
+
return t.tokenize = n, n(e, t);
|
|
9
|
+
}
|
|
10
|
+
function a(e, a) {
|
|
11
|
+
var l = a.beforeParams;
|
|
12
|
+
a.beforeParams = !1;
|
|
13
|
+
var u = e.next();
|
|
14
|
+
if ((u == "\"" || u == "'") && a.inParams) return i(e, a, o(u));
|
|
15
|
+
if (/[\[\]{}\(\),;\.]/.test(u)) return u == "(" && l ? a.inParams = !0 : u == ")" && (a.inParams = !1), null;
|
|
16
|
+
if (/\d/.test(u)) return e.eatWhile(/[\w\.]/), "number";
|
|
17
|
+
if (u == "#") return e.eat("*") ? i(e, a, s) : u == "#" && e.match(/ *\[ *\[/) ? i(e, a, c) : (e.skipToEnd(), "comment");
|
|
18
|
+
if (u == "\"") return e.skipTo(/"/), "comment";
|
|
19
|
+
if (u == "$") return e.eatWhile(/[$_a-z0-9A-Z\.{:]/), e.eatWhile(/}/), a.beforeParams = !0, "builtin";
|
|
20
|
+
if (r.test(u)) return e.eatWhile(r), "comment";
|
|
21
|
+
e.eatWhile(/[\w\$_{}\xa1-\uffff]/);
|
|
22
|
+
var d = e.current().toLowerCase();
|
|
23
|
+
return t && t.propertyIsEnumerable(d) ? "keyword" : n && n.propertyIsEnumerable(d) ? (a.beforeParams = !0, "keyword") : null;
|
|
24
|
+
}
|
|
25
|
+
function o(e) {
|
|
26
|
+
return function(t, n) {
|
|
27
|
+
for (var r = !1, i, o = !1; (i = t.next()) != null;) {
|
|
28
|
+
if (i == e && !r) {
|
|
29
|
+
o = !0;
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
r = !r && i == "\\";
|
|
33
|
+
}
|
|
34
|
+
return o && (n.tokenize = a), "string";
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function s(e, t) {
|
|
38
|
+
for (var n = !1, r; r = e.next();) {
|
|
39
|
+
if (r == "#" && n) {
|
|
40
|
+
t.tokenize = a;
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
n = r == "*";
|
|
44
|
+
}
|
|
45
|
+
return "comment";
|
|
46
|
+
}
|
|
47
|
+
function c(e, t) {
|
|
48
|
+
for (var n = 0, r; r = e.next();) {
|
|
49
|
+
if (r == "#" && n == 2) {
|
|
50
|
+
t.tokenize = a;
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
r == "]" ? n++ : r != " " && (n = 0);
|
|
54
|
+
}
|
|
55
|
+
return "meta";
|
|
56
|
+
}
|
|
57
|
+
var l = {
|
|
58
|
+
name: "tcl",
|
|
59
|
+
startState: function() {
|
|
60
|
+
return {
|
|
61
|
+
tokenize: a,
|
|
62
|
+
beforeParams: !1,
|
|
63
|
+
inParams: !1
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
token: function(e, t) {
|
|
67
|
+
return e.eatSpace() ? null : t.tokenize(e, t);
|
|
68
|
+
},
|
|
69
|
+
languageData: { commentTokens: { line: "#" } }
|
|
70
|
+
};
|
|
71
|
+
export { l as tcl };
|