@glodon-aiot/react-components 3.3.0-beta.14 → 3.3.0-beta.17

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.
Files changed (414) hide show
  1. package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
  2. package/dist/es/_virtual/index.mjs +4 -0
  3. package/dist/es/_virtual/index2.mjs +4 -0
  4. package/dist/es/_virtual/index3.mjs +4 -0
  5. package/dist/es/_virtual/lib.mjs +4 -0
  6. package/dist/es/_virtual/prism-core.mjs +4 -0
  7. package/dist/es/_virtual/types.mjs +4 -0
  8. package/dist/es/_virtual/ua-parser.min.mjs +4 -0
  9. package/dist/es/components/Copy/index.mjs +44 -0
  10. package/dist/es/components/Copy/style.less.mjs +4 -0
  11. package/dist/es/components/Markdown/ATag/index.mjs +47 -0
  12. package/dist/es/components/Markdown/Code/index.mjs +69 -0
  13. package/dist/es/components/Markdown/Image/index.mjs +60 -0
  14. package/dist/es/components/Markdown/Video/index.mjs +22 -0
  15. package/dist/es/components/Markdown/index.mjs +75 -0
  16. package/dist/es/components/Markdown/style.less.mjs +4 -0
  17. package/dist/es/index.mjs +30 -25
  18. package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
  19. package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
  20. package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
  21. package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
  22. package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
  23. package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
  24. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
  25. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
  26. package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
  27. package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
  28. package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
  29. package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
  30. package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
  31. package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
  32. package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
  33. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
  34. package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
  35. package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
  36. package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +908 -0
  37. package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
  38. package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +242 -0
  39. package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
  40. package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
  41. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
  42. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +78 -0
  43. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
  44. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
  45. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +178 -0
  46. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +83 -0
  47. package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
  48. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
  49. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
  50. package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
  51. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
  52. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
  53. package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
  54. package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
  55. package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
  56. package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
  57. package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
  58. package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
  59. package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +11 -0
  60. package/dist/es/node_modules/antd-mobile/es/utils/dev-log.mjs +7 -0
  61. package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
  62. package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
  63. package/dist/es/node_modules/antd-mobile/es/utils/is-dev.mjs +4 -0
  64. package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
  65. package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
  66. package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +47 -0
  67. package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
  68. package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
  69. package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
  70. package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
  71. package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
  72. package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
  73. package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
  74. package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
  75. package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
  76. package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
  77. package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
  78. package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
  79. package/dist/es/node_modules/character-reference-invalid/index.json.mjs +33 -0
  80. package/dist/es/node_modules/classnames/index.mjs +42 -0
  81. package/dist/es/node_modules/hast-util-parse-selector/index.mjs +14 -0
  82. package/dist/es/node_modules/is-alphabetical/index.mjs +8 -0
  83. package/dist/es/node_modules/is-alphanumerical/index.mjs +9 -0
  84. package/dist/es/node_modules/is-decimal/index.mjs +8 -0
  85. package/dist/es/node_modules/is-hexadecimal/index.mjs +8 -0
  86. package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +8 -0
  87. package/dist/es/node_modules/parse-entities/index.mjs +83 -0
  88. package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +217 -0
  89. package/dist/es/node_modules/property-information/find.mjs +25 -0
  90. package/dist/es/node_modules/property-information/html.mjs +10 -0
  91. package/dist/es/node_modules/property-information/lib/aria.mjs +63 -0
  92. package/dist/es/node_modules/property-information/lib/html.mjs +354 -0
  93. package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +8 -0
  94. package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +7 -0
  95. package/dist/es/node_modules/property-information/lib/util/create.mjs +13 -0
  96. package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +18 -0
  97. package/dist/es/node_modules/property-information/lib/util/info.mjs +19 -0
  98. package/dist/es/node_modules/property-information/lib/util/merge.mjs +11 -0
  99. package/dist/es/node_modules/property-information/lib/util/schema.mjs +10 -0
  100. package/dist/es/node_modules/property-information/lib/util/types.mjs +15 -0
  101. package/dist/es/node_modules/property-information/lib/xlink.mjs +20 -0
  102. package/dist/es/node_modules/property-information/lib/xml.mjs +16 -0
  103. package/dist/es/node_modules/property-information/lib/xmlns.mjs +16 -0
  104. package/dist/es/node_modules/property-information/normalize.mjs +7 -0
  105. package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
  106. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +7 -0
  107. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +101 -0
  108. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +283 -0
  109. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +4 -0
  110. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
  111. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +195 -0
  112. package/dist/es/node_modules/refractor/core.mjs +111 -0
  113. package/dist/es/node_modules/refractor/index.mjs +553 -0
  114. package/dist/es/node_modules/refractor/lang/abap.mjs +60 -0
  115. package/dist/es/node_modules/refractor/lang/abnf.mjs +63 -0
  116. package/dist/es/node_modules/refractor/lang/actionscript.mjs +22 -0
  117. package/dist/es/node_modules/refractor/lang/ada.mjs +28 -0
  118. package/dist/es/node_modules/refractor/lang/agda.mjs +35 -0
  119. package/dist/es/node_modules/refractor/lang/al.mjs +35 -0
  120. package/dist/es/node_modules/refractor/lang/antlr4.mjs +72 -0
  121. package/dist/es/node_modules/refractor/lang/apacheconf.mjs +59 -0
  122. package/dist/es/node_modules/refractor/lang/apex.mjs +69 -0
  123. package/dist/es/node_modules/refractor/lang/apl.mjs +44 -0
  124. package/dist/es/node_modules/refractor/lang/applescript.mjs +26 -0
  125. package/dist/es/node_modules/refractor/lang/aql.mjs +57 -0
  126. package/dist/es/node_modules/refractor/lang/arduino.mjs +20 -0
  127. package/dist/es/node_modules/refractor/lang/arff.mjs +22 -0
  128. package/dist/es/node_modules/refractor/lang/asciidoc.mjs +208 -0
  129. package/dist/es/node_modules/refractor/lang/asm6502.mjs +41 -0
  130. package/dist/es/node_modules/refractor/lang/asmatmel.mjs +53 -0
  131. package/dist/es/node_modules/refractor/lang/aspnet.mjs +53 -0
  132. package/dist/es/node_modules/refractor/lang/autohotkey.mjs +40 -0
  133. package/dist/es/node_modules/refractor/lang/autoit.mjs +43 -0
  134. package/dist/es/node_modules/refractor/lang/avisynth.mjs +167 -0
  135. package/dist/es/node_modules/refractor/lang/avro-idl.mjs +50 -0
  136. package/dist/es/node_modules/refractor/lang/bash.mjs +206 -0
  137. package/dist/es/node_modules/refractor/lang/basic.mjs +29 -0
  138. package/dist/es/node_modules/refractor/lang/batch.mjs +95 -0
  139. package/dist/es/node_modules/refractor/lang/bbcode.mjs +36 -0
  140. package/dist/es/node_modules/refractor/lang/bicep.mjs +72 -0
  141. package/dist/es/node_modules/refractor/lang/birb.mjs +32 -0
  142. package/dist/es/node_modules/refractor/lang/bison.mjs +52 -0
  143. package/dist/es/node_modules/refractor/lang/bnf.mjs +31 -0
  144. package/dist/es/node_modules/refractor/lang/brainfuck.mjs +32 -0
  145. package/dist/es/node_modules/refractor/lang/brightscript.mjs +55 -0
  146. package/dist/es/node_modules/refractor/lang/bro.mjs +39 -0
  147. package/dist/es/node_modules/refractor/lang/bsl.mjs +77 -0
  148. package/dist/es/node_modules/refractor/lang/c.mjs +78 -0
  149. package/dist/es/node_modules/refractor/lang/cfscript.mjs +44 -0
  150. package/dist/es/node_modules/refractor/lang/chaiscript.mjs +65 -0
  151. package/dist/es/node_modules/refractor/lang/cil.mjs +31 -0
  152. package/dist/es/node_modules/refractor/lang/clike.mjs +36 -0
  153. package/dist/es/node_modules/refractor/lang/clojure.mjs +42 -0
  154. package/dist/es/node_modules/refractor/lang/cmake.mjs +41 -0
  155. package/dist/es/node_modules/refractor/lang/cobol.mjs +58 -0
  156. package/dist/es/node_modules/refractor/lang/coffeescript.mjs +86 -0
  157. package/dist/es/node_modules/refractor/lang/concurnas.mjs +69 -0
  158. package/dist/es/node_modules/refractor/lang/coq.mjs +52 -0
  159. package/dist/es/node_modules/refractor/lang/cpp.mjs +98 -0
  160. package/dist/es/node_modules/refractor/lang/crystal.mjs +63 -0
  161. package/dist/es/node_modules/refractor/lang/csharp.mjs +277 -0
  162. package/dist/es/node_modules/refractor/lang/cshtml.mjs +104 -0
  163. package/dist/es/node_modules/refractor/lang/csp.mjs +61 -0
  164. package/dist/es/node_modules/refractor/lang/css-extras.mjs +109 -0
  165. package/dist/es/node_modules/refractor/lang/css.mjs +63 -0
  166. package/dist/es/node_modules/refractor/lang/csv.mjs +16 -0
  167. package/dist/es/node_modules/refractor/lang/cypher.mjs +44 -0
  168. package/dist/es/node_modules/refractor/lang/d.mjs +77 -0
  169. package/dist/es/node_modules/refractor/lang/dart.mjs +72 -0
  170. package/dist/es/node_modules/refractor/lang/dataweave.mjs +49 -0
  171. package/dist/es/node_modules/refractor/lang/dax.mjs +39 -0
  172. package/dist/es/node_modules/refractor/lang/dhall.mjs +74 -0
  173. package/dist/es/node_modules/refractor/lang/diff.mjs +54 -0
  174. package/dist/es/node_modules/refractor/lang/django.mjs +60 -0
  175. package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +40 -0
  176. package/dist/es/node_modules/refractor/lang/docker.mjs +83 -0
  177. package/dist/es/node_modules/refractor/lang/dot.mjs +75 -0
  178. package/dist/es/node_modules/refractor/lang/ebnf.mjs +32 -0
  179. package/dist/es/node_modules/refractor/lang/editorconfig.mjs +39 -0
  180. package/dist/es/node_modules/refractor/lang/eiffel.mjs +46 -0
  181. package/dist/es/node_modules/refractor/lang/ejs.mjs +33 -0
  182. package/dist/es/node_modules/refractor/lang/elixir.mjs +100 -0
  183. package/dist/es/node_modules/refractor/lang/elm.mjs +54 -0
  184. package/dist/es/node_modules/refractor/lang/erb.mjs +35 -0
  185. package/dist/es/node_modules/refractor/lang/erlang.mjs +47 -0
  186. package/dist/es/node_modules/refractor/lang/etlua.mjs +33 -0
  187. package/dist/es/node_modules/refractor/lang/excel-formula.mjs +74 -0
  188. package/dist/es/node_modules/refractor/lang/factor.mjs +569 -0
  189. package/dist/es/node_modules/refractor/lang/false.mjs +39 -0
  190. package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +43 -0
  191. package/dist/es/node_modules/refractor/lang/flow.mjs +31 -0
  192. package/dist/es/node_modules/refractor/lang/fortran.mjs +49 -0
  193. package/dist/es/node_modules/refractor/lang/fsharp.mjs +76 -0
  194. package/dist/es/node_modules/refractor/lang/ftl.mjs +102 -0
  195. package/dist/es/node_modules/refractor/lang/gap.mjs +57 -0
  196. package/dist/es/node_modules/refractor/lang/gcode.mjs +28 -0
  197. package/dist/es/node_modules/refractor/lang/gdscript.mjs +36 -0
  198. package/dist/es/node_modules/refractor/lang/gedcom.mjs +40 -0
  199. package/dist/es/node_modules/refractor/lang/gherkin.mjs +94 -0
  200. package/dist/es/node_modules/refractor/lang/git.mjs +75 -0
  201. package/dist/es/node_modules/refractor/lang/glsl.mjs +18 -0
  202. package/dist/es/node_modules/refractor/lang/gml.mjs +19 -0
  203. package/dist/es/node_modules/refractor/lang/gn.mjs +55 -0
  204. package/dist/es/node_modules/refractor/lang/go-module.mjs +34 -0
  205. package/dist/es/node_modules/refractor/lang/go.mjs +36 -0
  206. package/dist/es/node_modules/refractor/lang/graphql.mjs +133 -0
  207. package/dist/es/node_modules/refractor/lang/groovy.mjs +58 -0
  208. package/dist/es/node_modules/refractor/lang/haml.mjs +132 -0
  209. package/dist/es/node_modules/refractor/lang/handlebars.mjs +46 -0
  210. package/dist/es/node_modules/refractor/lang/haskell.mjs +76 -0
  211. package/dist/es/node_modules/refractor/lang/haxe.mjs +84 -0
  212. package/dist/es/node_modules/refractor/lang/hcl.mjs +68 -0
  213. package/dist/es/node_modules/refractor/lang/hlsl.mjs +31 -0
  214. package/dist/es/node_modules/refractor/lang/hoon.mjs +26 -0
  215. package/dist/es/node_modules/refractor/lang/hpkp.mjs +20 -0
  216. package/dist/es/node_modules/refractor/lang/hsts.mjs +20 -0
  217. package/dist/es/node_modules/refractor/lang/http.mjs +126 -0
  218. package/dist/es/node_modules/refractor/lang/ichigojam.mjs +25 -0
  219. package/dist/es/node_modules/refractor/lang/icon.mjs +32 -0
  220. package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +136 -0
  221. package/dist/es/node_modules/refractor/lang/idris.mjs +30 -0
  222. package/dist/es/node_modules/refractor/lang/iecst.mjs +38 -0
  223. package/dist/es/node_modules/refractor/lang/ignore.mjs +30 -0
  224. package/dist/es/node_modules/refractor/lang/inform7.mjs +69 -0
  225. package/dist/es/node_modules/refractor/lang/ini.mjs +52 -0
  226. package/dist/es/node_modules/refractor/lang/io.mjs +34 -0
  227. package/dist/es/node_modules/refractor/lang/j.mjs +40 -0
  228. package/dist/es/node_modules/refractor/lang/java.mjs +86 -0
  229. package/dist/es/node_modules/refractor/lang/javadoc.mjs +89 -0
  230. package/dist/es/node_modules/refractor/lang/javadoclike.mjs +60 -0
  231. package/dist/es/node_modules/refractor/lang/javascript.mjs +114 -0
  232. package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +146 -0
  233. package/dist/es/node_modules/refractor/lang/jexl.mjs +26 -0
  234. package/dist/es/node_modules/refractor/lang/jolie.mjs +51 -0
  235. package/dist/es/node_modules/refractor/lang/jq.mjs +71 -0
  236. package/dist/es/node_modules/refractor/lang/js-extras.mjs +104 -0
  237. package/dist/es/node_modules/refractor/lang/js-templates.mjs +153 -0
  238. package/dist/es/node_modules/refractor/lang/jsdoc.mjs +83 -0
  239. package/dist/es/node_modules/refractor/lang/json.mjs +36 -0
  240. package/dist/es/node_modules/refractor/lang/json5.mjs +32 -0
  241. package/dist/es/node_modules/refractor/lang/jsonp.mjs +20 -0
  242. package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +53 -0
  243. package/dist/es/node_modules/refractor/lang/jsx.mjs +61 -0
  244. package/dist/es/node_modules/refractor/lang/julia.mjs +47 -0
  245. package/dist/es/node_modules/refractor/lang/keepalived.mjs +54 -0
  246. package/dist/es/node_modules/refractor/lang/keyman.mjs +55 -0
  247. package/dist/es/node_modules/refractor/lang/kotlin.mjs +81 -0
  248. package/dist/es/node_modules/refractor/lang/kumir.mjs +85 -0
  249. package/dist/es/node_modules/refractor/lang/kusto.mjs +47 -0
  250. package/dist/es/node_modules/refractor/lang/latex.mjs +68 -0
  251. package/dist/es/node_modules/refractor/lang/latte.mjs +68 -0
  252. package/dist/es/node_modules/refractor/lang/less.mjs +51 -0
  253. package/dist/es/node_modules/refractor/lang/lilypond.mjs +77 -0
  254. package/dist/es/node_modules/refractor/lang/liquid.mjs +68 -0
  255. package/dist/es/node_modules/refractor/lang/lisp.mjs +158 -0
  256. package/dist/es/node_modules/refractor/lang/livescript.mjs +119 -0
  257. package/dist/es/node_modules/refractor/lang/llvm.mjs +31 -0
  258. package/dist/es/node_modules/refractor/lang/log.mjs +103 -0
  259. package/dist/es/node_modules/refractor/lang/lolcode.mjs +57 -0
  260. package/dist/es/node_modules/refractor/lang/lua.mjs +29 -0
  261. package/dist/es/node_modules/refractor/lang/magma.mjs +42 -0
  262. package/dist/es/node_modules/refractor/lang/makefile.mjs +42 -0
  263. package/dist/es/node_modules/refractor/lang/markdown.mjs +306 -0
  264. package/dist/es/node_modules/refractor/lang/markup-templating.mjs +74 -0
  265. package/dist/es/node_modules/refractor/lang/markup.mjs +154 -0
  266. package/dist/es/node_modules/refractor/lang/matlab.mjs +25 -0
  267. package/dist/es/node_modules/refractor/lang/maxscript.mjs +70 -0
  268. package/dist/es/node_modules/refractor/lang/mel.mjs +49 -0
  269. package/dist/es/node_modules/refractor/lang/mermaid.mjs +116 -0
  270. package/dist/es/node_modules/refractor/lang/mizar.mjs +24 -0
  271. package/dist/es/node_modules/refractor/lang/mongodb.mjs +287 -0
  272. package/dist/es/node_modules/refractor/lang/monkey.mjs +40 -0
  273. package/dist/es/node_modules/refractor/lang/moonscript.mjs +63 -0
  274. package/dist/es/node_modules/refractor/lang/n1ql.mjs +34 -0
  275. package/dist/es/node_modules/refractor/lang/n4js.mjs +22 -0
  276. package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
  277. package/dist/es/node_modules/refractor/lang/naniscript.mjs +140 -0
  278. package/dist/es/node_modules/refractor/lang/nasm.mjs +31 -0
  279. package/dist/es/node_modules/refractor/lang/neon.mjs +52 -0
  280. package/dist/es/node_modules/refractor/lang/nevod.mjs +125 -0
  281. package/dist/es/node_modules/refractor/lang/nginx.mjs +61 -0
  282. package/dist/es/node_modules/refractor/lang/nim.mjs +54 -0
  283. package/dist/es/node_modules/refractor/lang/nix.mjs +45 -0
  284. package/dist/es/node_modules/refractor/lang/nsis.mjs +37 -0
  285. package/dist/es/node_modules/refractor/lang/objectivec.mjs +23 -0
  286. package/dist/es/node_modules/refractor/lang/ocaml.mjs +64 -0
  287. package/dist/es/node_modules/refractor/lang/opencl.mjs +62 -0
  288. package/dist/es/node_modules/refractor/lang/openqasm.mjs +29 -0
  289. package/dist/es/node_modules/refractor/lang/oz.mjs +37 -0
  290. package/dist/es/node_modules/refractor/lang/parigp.mjs +36 -0
  291. package/dist/es/node_modules/refractor/lang/parser.mjs +80 -0
  292. package/dist/es/node_modules/refractor/lang/pascal.mjs +66 -0
  293. package/dist/es/node_modules/refractor/lang/pascaligo.mjs +70 -0
  294. package/dist/es/node_modules/refractor/lang/pcaxis.mjs +63 -0
  295. package/dist/es/node_modules/refractor/lang/peoplecode.mjs +51 -0
  296. package/dist/es/node_modules/refractor/lang/perl.mjs +134 -0
  297. package/dist/es/node_modules/refractor/lang/php-extras.mjs +29 -0
  298. package/dist/es/node_modules/refractor/lang/php.mjs +301 -0
  299. package/dist/es/node_modules/refractor/lang/phpdoc.mjs +34 -0
  300. package/dist/es/node_modules/refractor/lang/plsql.mjs +30 -0
  301. package/dist/es/node_modules/refractor/lang/powerquery.mjs +44 -0
  302. package/dist/es/node_modules/refractor/lang/powershell.mjs +58 -0
  303. package/dist/es/node_modules/refractor/lang/processing.mjs +25 -0
  304. package/dist/es/node_modules/refractor/lang/prolog.mjs +31 -0
  305. package/dist/es/node_modules/refractor/lang/promql.mjs +74 -0
  306. package/dist/es/node_modules/refractor/lang/properties.mjs +21 -0
  307. package/dist/es/node_modules/refractor/lang/protobuf.mjs +47 -0
  308. package/dist/es/node_modules/refractor/lang/psl.mjs +47 -0
  309. package/dist/es/node_modules/refractor/lang/pug.mjs +173 -0
  310. package/dist/es/node_modules/refractor/lang/puppet.mjs +140 -0
  311. package/dist/es/node_modules/refractor/lang/pure.mjs +72 -0
  312. package/dist/es/node_modules/refractor/lang/purebasic.mjs +63 -0
  313. package/dist/es/node_modules/refractor/lang/purescript.mjs +41 -0
  314. package/dist/es/node_modules/refractor/lang/python.mjs +73 -0
  315. package/dist/es/node_modules/refractor/lang/q.mjs +62 -0
  316. package/dist/es/node_modules/refractor/lang/qml.mjs +67 -0
  317. package/dist/es/node_modules/refractor/lang/qore.mjs +32 -0
  318. package/dist/es/node_modules/refractor/lang/qsharp.mjs +93 -0
  319. package/dist/es/node_modules/refractor/lang/r.mjs +31 -0
  320. package/dist/es/node_modules/refractor/lang/racket.mjs +29 -0
  321. package/dist/es/node_modules/refractor/lang/reason.mjs +33 -0
  322. package/dist/es/node_modules/refractor/lang/regex.mjs +97 -0
  323. package/dist/es/node_modules/refractor/lang/rego.mjs +37 -0
  324. package/dist/es/node_modules/refractor/lang/renpy.mjs +30 -0
  325. package/dist/es/node_modules/refractor/lang/rest.mjs +199 -0
  326. package/dist/es/node_modules/refractor/lang/rip.mjs +41 -0
  327. package/dist/es/node_modules/refractor/lang/roboconf.mjs +39 -0
  328. package/dist/es/node_modules/refractor/lang/robotframework.mjs +95 -0
  329. package/dist/es/node_modules/refractor/lang/ruby.mjs +159 -0
  330. package/dist/es/node_modules/refractor/lang/rust.mjs +122 -0
  331. package/dist/es/node_modules/refractor/lang/sas.mjs +305 -0
  332. package/dist/es/node_modules/refractor/lang/sass.mjs +69 -0
  333. package/dist/es/node_modules/refractor/lang/scala.mjs +59 -0
  334. package/dist/es/node_modules/refractor/lang/scheme.mjs +120 -0
  335. package/dist/es/node_modules/refractor/lang/scss.mjs +82 -0
  336. package/dist/es/node_modules/refractor/lang/shell-session.mjs +69 -0
  337. package/dist/es/node_modules/refractor/lang/smali.mjs +84 -0
  338. package/dist/es/node_modules/refractor/lang/smalltalk.mjs +47 -0
  339. package/dist/es/node_modules/refractor/lang/smarty.mjs +106 -0
  340. package/dist/es/node_modules/refractor/lang/sml.mjs +64 -0
  341. package/dist/es/node_modules/refractor/lang/solidity.mjs +28 -0
  342. package/dist/es/node_modules/refractor/lang/solution-file.mjs +58 -0
  343. package/dist/es/node_modules/refractor/lang/soy.mjs +77 -0
  344. package/dist/es/node_modules/refractor/lang/sparql.mjs +24 -0
  345. package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +36 -0
  346. package/dist/es/node_modules/refractor/lang/sqf.mjs +42 -0
  347. package/dist/es/node_modules/refractor/lang/sql.mjs +42 -0
  348. package/dist/es/node_modules/refractor/lang/squirrel.mjs +50 -0
  349. package/dist/es/node_modules/refractor/lang/stan.mjs +63 -0
  350. package/dist/es/node_modules/refractor/lang/stylus.mjs +141 -0
  351. package/dist/es/node_modules/refractor/lang/swift.mjs +125 -0
  352. package/dist/es/node_modules/refractor/lang/systemd.mjs +65 -0
  353. package/dist/es/node_modules/refractor/lang/t4-cs.mjs +17 -0
  354. package/dist/es/node_modules/refractor/lang/t4-templating.mjs +57 -0
  355. package/dist/es/node_modules/refractor/lang/t4-vb.mjs +17 -0
  356. package/dist/es/node_modules/refractor/lang/tap.mjs +35 -0
  357. package/dist/es/node_modules/refractor/lang/tcl.mjs +51 -0
  358. package/dist/es/node_modules/refractor/lang/textile.mjs +248 -0
  359. package/dist/es/node_modules/refractor/lang/toml.mjs +54 -0
  360. package/dist/es/node_modules/refractor/lang/tremor.mjs +67 -0
  361. package/dist/es/node_modules/refractor/lang/tsx.mjs +22 -0
  362. package/dist/es/node_modules/refractor/lang/tt2.mjs +53 -0
  363. package/dist/es/node_modules/refractor/lang/turtle.mjs +62 -0
  364. package/dist/es/node_modules/refractor/lang/twig.mjs +48 -0
  365. package/dist/es/node_modules/refractor/lang/typescript.mjs +57 -0
  366. package/dist/es/node_modules/refractor/lang/typoscript.mjs +81 -0
  367. package/dist/es/node_modules/refractor/lang/unrealscript.mjs +50 -0
  368. package/dist/es/node_modules/refractor/lang/uorazor.mjs +57 -0
  369. package/dist/es/node_modules/refractor/lang/uri.mjs +92 -0
  370. package/dist/es/node_modules/refractor/lang/v.mjs +85 -0
  371. package/dist/es/node_modules/refractor/lang/vala.mjs +87 -0
  372. package/dist/es/node_modules/refractor/lang/vbnet.mjs +34 -0
  373. package/dist/es/node_modules/refractor/lang/velocity.mjs +75 -0
  374. package/dist/es/node_modules/refractor/lang/verilog.mjs +38 -0
  375. package/dist/es/node_modules/refractor/lang/vhdl.mjs +35 -0
  376. package/dist/es/node_modules/refractor/lang/vim.mjs +22 -0
  377. package/dist/es/node_modules/refractor/lang/visual-basic.mjs +38 -0
  378. package/dist/es/node_modules/refractor/lang/warpscript.mjs +33 -0
  379. package/dist/es/node_modules/refractor/lang/wasm.mjs +36 -0
  380. package/dist/es/node_modules/refractor/lang/web-idl.mjs +89 -0
  381. package/dist/es/node_modules/refractor/lang/wiki.mjs +86 -0
  382. package/dist/es/node_modules/refractor/lang/wolfram.mjs +37 -0
  383. package/dist/es/node_modules/refractor/lang/wren.mjs +97 -0
  384. package/dist/es/node_modules/refractor/lang/xeora.mjs +121 -0
  385. package/dist/es/node_modules/refractor/lang/xml-doc.mjs +35 -0
  386. package/dist/es/node_modules/refractor/lang/xojo.mjs +30 -0
  387. package/dist/es/node_modules/refractor/lang/xquery.mjs +89 -0
  388. package/dist/es/node_modules/refractor/lang/yaml.mjs +78 -0
  389. package/dist/es/node_modules/refractor/lang/yang.mjs +32 -0
  390. package/dist/es/node_modules/refractor/lang/zig.mjs +80 -0
  391. package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +16 -0
  392. package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +77 -0
  393. package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +8 -0
  394. package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +5 -0
  395. package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +720 -0
  396. package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +14 -0
  397. package/dist/es/node_modules/tslib/tslib.es6.mjs +30 -0
  398. package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +123 -0
  399. package/dist/es/node_modules/xtend/immutable.mjs +12 -0
  400. package/dist/es/utils/clipboard.mjs +38 -0
  401. package/dist/es/utils/markdown/index.mjs +29 -0
  402. package/dist/lib/index.js +25 -1
  403. package/dist/src/components/Copy/index.d.ts +5 -0
  404. package/dist/src/components/Markdown/ATag/index.d.ts +2 -0
  405. package/dist/src/components/Markdown/Code/index.d.ts +2 -0
  406. package/dist/src/components/Markdown/Image/index.d.ts +2 -0
  407. package/dist/src/components/Markdown/Video/index.d.ts +2 -0
  408. package/dist/src/components/Markdown/index.d.ts +9 -0
  409. package/dist/src/index.d.ts +2 -0
  410. package/dist/src/utils/clipboard.d.ts +11 -0
  411. package/dist/src/utils/markdown/index.d.ts +10 -0
  412. package/package.json +18 -2
  413. package/dist/es/style.css +0 -1
  414. package/dist/lib/style.css +0 -1
@@ -0,0 +1,720 @@
1
+ import { commonjsGlobal as J } from "../../../../../_virtual/_commonjsHelpers.mjs";
2
+ import { __module as U } from "../../../../../_virtual/prism-core.mjs";
3
+ (function(q) {
4
+ var k = typeof window != "undefined" ? window : typeof WorkerGlobalScope != "undefined" && self instanceof WorkerGlobalScope ? self : {};
5
+ /**
6
+ * Prism: Lightweight, robust, elegant syntax highlighting
7
+ *
8
+ * @license MIT <https://opensource.org/licenses/MIT>
9
+ * @author Lea Verou <https://lea.verou.me>
10
+ * @namespace
11
+ * @public
12
+ */
13
+ var z = function(c) {
14
+ var G = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, R = 0, A = {}, t = {
15
+ /**
16
+ * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
17
+ * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
18
+ * additional languages or plugins yourself.
19
+ *
20
+ * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
21
+ *
22
+ * You obviously have to change this value before the automatic highlighting started. To do this, you can add an
23
+ * empty Prism object into the global scope before loading the Prism script like this:
24
+ *
25
+ * ```js
26
+ * window.Prism = window.Prism || {};
27
+ * Prism.manual = true;
28
+ * // add a new <script> to load Prism's script
29
+ * ```
30
+ *
31
+ * @default false
32
+ * @type {boolean}
33
+ * @memberof Prism
34
+ * @public
35
+ */
36
+ manual: c.Prism && c.Prism.manual,
37
+ /**
38
+ * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
39
+ * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
40
+ * own worker, you don't want it to do this.
41
+ *
42
+ * By setting this value to `true`, Prism will not add its own listeners to the worker.
43
+ *
44
+ * You obviously have to change this value before Prism executes. To do this, you can add an
45
+ * empty Prism object into the global scope before loading the Prism script like this:
46
+ *
47
+ * ```js
48
+ * window.Prism = window.Prism || {};
49
+ * Prism.disableWorkerMessageHandler = true;
50
+ * // Load Prism's script
51
+ * ```
52
+ *
53
+ * @default false
54
+ * @type {boolean}
55
+ * @memberof Prism
56
+ * @public
57
+ */
58
+ disableWorkerMessageHandler: c.Prism && c.Prism.disableWorkerMessageHandler,
59
+ /**
60
+ * A namespace for utility methods.
61
+ *
62
+ * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
63
+ * change or disappear at any time.
64
+ *
65
+ * @namespace
66
+ * @memberof Prism
67
+ */
68
+ util: {
69
+ encode: function a(e) {
70
+ return e instanceof d ? new d(e.type, a(e.content), e.alias) : Array.isArray(e) ? e.map(a) : e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
71
+ },
72
+ /**
73
+ * Returns the name of the type of the given value.
74
+ *
75
+ * @param {any} o
76
+ * @returns {string}
77
+ * @example
78
+ * type(null) === 'Null'
79
+ * type(undefined) === 'Undefined'
80
+ * type(123) === 'Number'
81
+ * type('foo') === 'String'
82
+ * type(true) === 'Boolean'
83
+ * type([1, 2]) === 'Array'
84
+ * type({}) === 'Object'
85
+ * type(String) === 'Function'
86
+ * type(/abc+/) === 'RegExp'
87
+ */
88
+ type: function(a) {
89
+ return Object.prototype.toString.call(a).slice(8, -1);
90
+ },
91
+ /**
92
+ * Returns a unique number for the given object. Later calls will still return the same number.
93
+ *
94
+ * @param {Object} obj
95
+ * @returns {number}
96
+ */
97
+ objId: function(a) {
98
+ return a.__id || Object.defineProperty(a, "__id", {
99
+ value: ++R
100
+ }), a.__id;
101
+ },
102
+ /**
103
+ * Creates a deep clone of the given object.
104
+ *
105
+ * The main intended use of this function is to clone language definitions.
106
+ *
107
+ * @param {T} o
108
+ * @param {Record<number, any>} [visited]
109
+ * @returns {T}
110
+ * @template T
111
+ */
112
+ clone: function a(e, n) {
113
+ n = n || {};
114
+ var r, i;
115
+ switch (t.util.type(e)) {
116
+ case "Object":
117
+ if (i = t.util.objId(e), n[i])
118
+ return n[i];
119
+ r = /** @type {Record<string, any>} */
120
+ {}, n[i] = r;
121
+ for (var l in e)
122
+ e.hasOwnProperty(l) && (r[l] = a(e[l], n));
123
+ return (
124
+ /** @type {any} */
125
+ r
126
+ );
127
+ case "Array":
128
+ return i = t.util.objId(e), n[i] ? n[i] : (r = [], n[i] = r, /** @type {Array} */
129
+ /** @type {any} */
130
+ e.forEach(function(o, u) {
131
+ r[u] = a(o, n);
132
+ }), /** @type {any} */
133
+ r);
134
+ default:
135
+ return e;
136
+ }
137
+ },
138
+ /**
139
+ * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
140
+ *
141
+ * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
142
+ *
143
+ * @param {Element} element
144
+ * @returns {string}
145
+ */
146
+ getLanguage: function(a) {
147
+ for (; a; ) {
148
+ var e = G.exec(a.className);
149
+ if (e)
150
+ return e[1].toLowerCase();
151
+ a = a.parentElement;
152
+ }
153
+ return "none";
154
+ },
155
+ /**
156
+ * Sets the Prism `language-xxxx` class of the given element.
157
+ *
158
+ * @param {Element} element
159
+ * @param {string} language
160
+ * @returns {void}
161
+ */
162
+ setLanguage: function(a, e) {
163
+ a.className = a.className.replace(RegExp(G, "gi"), ""), a.classList.add("language-" + e);
164
+ },
165
+ /**
166
+ * Returns the script element that is currently executing.
167
+ *
168
+ * This does __not__ work for line script element.
169
+ *
170
+ * @returns {HTMLScriptElement | null}
171
+ */
172
+ currentScript: function() {
173
+ if (typeof document == "undefined")
174
+ return null;
175
+ if ("currentScript" in document && 1 < 2)
176
+ return (
177
+ /** @type {any} */
178
+ document.currentScript
179
+ );
180
+ try {
181
+ throw new Error();
182
+ } catch (r) {
183
+ var a = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack) || [])[1];
184
+ if (a) {
185
+ var e = document.getElementsByTagName("script");
186
+ for (var n in e)
187
+ if (e[n].src == a)
188
+ return e[n];
189
+ }
190
+ return null;
191
+ }
192
+ },
193
+ /**
194
+ * Returns whether a given class is active for `element`.
195
+ *
196
+ * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
197
+ * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
198
+ * given class is just the given class with a `no-` prefix.
199
+ *
200
+ * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
201
+ * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
202
+ * ancestors have the given class or the negated version of it, then the default activation will be returned.
203
+ *
204
+ * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
205
+ * version of it, the class is considered active.
206
+ *
207
+ * @param {Element} element
208
+ * @param {string} className
209
+ * @param {boolean} [defaultActivation=false]
210
+ * @returns {boolean}
211
+ */
212
+ isActive: function(a, e, n) {
213
+ for (var r = "no-" + e; a; ) {
214
+ var i = a.classList;
215
+ if (i.contains(e))
216
+ return !0;
217
+ if (i.contains(r))
218
+ return !1;
219
+ a = a.parentElement;
220
+ }
221
+ return !!n;
222
+ }
223
+ },
224
+ /**
225
+ * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
226
+ *
227
+ * @namespace
228
+ * @memberof Prism
229
+ * @public
230
+ */
231
+ languages: {
232
+ /**
233
+ * The grammar for plain, unformatted text.
234
+ */
235
+ plain: A,
236
+ plaintext: A,
237
+ text: A,
238
+ txt: A,
239
+ /**
240
+ * Creates a deep copy of the language with the given id and appends the given tokens.
241
+ *
242
+ * If a token in `redef` also appears in the copied language, then the existing token in the copied language
243
+ * will be overwritten at its original position.
244
+ *
245
+ * ## Best practices
246
+ *
247
+ * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
248
+ * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
249
+ * understand the language definition because, normally, the order of tokens matters in Prism grammars.
250
+ *
251
+ * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
252
+ * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
253
+ *
254
+ * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
255
+ * @param {Grammar} redef The new tokens to append.
256
+ * @returns {Grammar} The new language created.
257
+ * @public
258
+ * @example
259
+ * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
260
+ * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
261
+ * // at its original position
262
+ * 'comment': { ... },
263
+ * // CSS doesn't have a 'color' token, so this token will be appended
264
+ * 'color': /\b(?:red|green|blue)\b/
265
+ * });
266
+ */
267
+ extend: function(a, e) {
268
+ var n = t.util.clone(t.languages[a]);
269
+ for (var r in e)
270
+ n[r] = e[r];
271
+ return n;
272
+ },
273
+ /**
274
+ * Inserts tokens _before_ another token in a language definition or any other grammar.
275
+ *
276
+ * ## Usage
277
+ *
278
+ * This helper method makes it easy to modify existing languages. For example, the CSS language definition
279
+ * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
280
+ * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
281
+ * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
282
+ * this:
283
+ *
284
+ * ```js
285
+ * Prism.languages.markup.style = {
286
+ * // token
287
+ * };
288
+ * ```
289
+ *
290
+ * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
291
+ * before existing tokens. For the CSS example above, you would use it like this:
292
+ *
293
+ * ```js
294
+ * Prism.languages.insertBefore('markup', 'cdata', {
295
+ * 'style': {
296
+ * // token
297
+ * }
298
+ * });
299
+ * ```
300
+ *
301
+ * ## Special cases
302
+ *
303
+ * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
304
+ * will be ignored.
305
+ *
306
+ * This behavior can be used to insert tokens after `before`:
307
+ *
308
+ * ```js
309
+ * Prism.languages.insertBefore('markup', 'comment', {
310
+ * 'comment': Prism.languages.markup.comment,
311
+ * // tokens after 'comment'
312
+ * });
313
+ * ```
314
+ *
315
+ * ## Limitations
316
+ *
317
+ * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
318
+ * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
319
+ * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
320
+ * deleting properties which is necessary to insert at arbitrary positions.
321
+ *
322
+ * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
323
+ * Instead, it will create a new object and replace all references to the target object with the new one. This
324
+ * can be done without temporarily deleting properties, so the iteration order is well-defined.
325
+ *
326
+ * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
327
+ * you hold the target object in a variable, then the value of the variable will not change.
328
+ *
329
+ * ```js
330
+ * var oldMarkup = Prism.languages.markup;
331
+ * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
332
+ *
333
+ * assert(oldMarkup !== Prism.languages.markup);
334
+ * assert(newMarkup === Prism.languages.markup);
335
+ * ```
336
+ *
337
+ * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
338
+ * object to be modified.
339
+ * @param {string} before The key to insert before.
340
+ * @param {Grammar} insert An object containing the key-value pairs to be inserted.
341
+ * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
342
+ * object to be modified.
343
+ *
344
+ * Defaults to `Prism.languages`.
345
+ * @returns {Grammar} The new grammar object.
346
+ * @public
347
+ */
348
+ insertBefore: function(a, e, n, r) {
349
+ r = r || /** @type {any} */
350
+ t.languages;
351
+ var i = r[a], l = {};
352
+ for (var o in i)
353
+ if (i.hasOwnProperty(o)) {
354
+ if (o == e)
355
+ for (var u in n)
356
+ n.hasOwnProperty(u) && (l[u] = n[u]);
357
+ n.hasOwnProperty(o) || (l[o] = i[o]);
358
+ }
359
+ var g = r[a];
360
+ return r[a] = l, t.languages.DFS(t.languages, function(f, p) {
361
+ p === g && f != a && (this[f] = l);
362
+ }), l;
363
+ },
364
+ // Traverse a language definition with Depth First Search
365
+ DFS: function a(e, n, r, i) {
366
+ i = i || {};
367
+ var l = t.util.objId;
368
+ for (var o in e)
369
+ if (e.hasOwnProperty(o)) {
370
+ n.call(e, o, e[o], r || o);
371
+ var u = e[o], g = t.util.type(u);
372
+ g === "Object" && !i[l(u)] ? (i[l(u)] = !0, a(u, n, null, i)) : g === "Array" && !i[l(u)] && (i[l(u)] = !0, a(u, n, o, i));
373
+ }
374
+ }
375
+ },
376
+ plugins: {},
377
+ /**
378
+ * This is the most high-level function in Prism’s API.
379
+ * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
380
+ * each one of them.
381
+ *
382
+ * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
383
+ *
384
+ * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
385
+ * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
386
+ * @memberof Prism
387
+ * @public
388
+ */
389
+ highlightAll: function(a, e) {
390
+ t.highlightAllUnder(document, a, e);
391
+ },
392
+ /**
393
+ * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
394
+ * {@link Prism.highlightElement} on each one of them.
395
+ *
396
+ * The following hooks will be run:
397
+ * 1. `before-highlightall`
398
+ * 2. `before-all-elements-highlight`
399
+ * 3. All hooks of {@link Prism.highlightElement} for each element.
400
+ *
401
+ * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
402
+ * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
403
+ * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
404
+ * @memberof Prism
405
+ * @public
406
+ */
407
+ highlightAllUnder: function(a, e, n) {
408
+ var r = {
409
+ callback: n,
410
+ container: a,
411
+ selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
412
+ };
413
+ t.hooks.run("before-highlightall", r), r.elements = Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)), t.hooks.run("before-all-elements-highlight", r);
414
+ for (var i = 0, l; l = r.elements[i++]; )
415
+ t.highlightElement(l, e === !0, r.callback);
416
+ },
417
+ /**
418
+ * Highlights the code inside a single element.
419
+ *
420
+ * The following hooks will be run:
421
+ * 1. `before-sanity-check`
422
+ * 2. `before-highlight`
423
+ * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
424
+ * 4. `before-insert`
425
+ * 5. `after-highlight`
426
+ * 6. `complete`
427
+ *
428
+ * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
429
+ * the element's language.
430
+ *
431
+ * @param {Element} element The element containing the code.
432
+ * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
433
+ * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
434
+ * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
435
+ * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
436
+ *
437
+ * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
438
+ * asynchronous highlighting to work. You can build your own bundle on the
439
+ * [Download page](https://prismjs.com/download.html).
440
+ * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
441
+ * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
442
+ * @memberof Prism
443
+ * @public
444
+ */
445
+ highlightElement: function(a, e, n) {
446
+ var r = t.util.getLanguage(a), i = t.languages[r];
447
+ t.util.setLanguage(a, r);
448
+ var l = a.parentElement;
449
+ l && l.nodeName.toLowerCase() === "pre" && t.util.setLanguage(l, r);
450
+ var o = a.textContent, u = {
451
+ element: a,
452
+ language: r,
453
+ grammar: i,
454
+ code: o
455
+ };
456
+ function g(p) {
457
+ u.highlightedCode = p, t.hooks.run("before-insert", u), u.element.innerHTML = u.highlightedCode, t.hooks.run("after-highlight", u), t.hooks.run("complete", u), n && n.call(u.element);
458
+ }
459
+ if (t.hooks.run("before-sanity-check", u), l = u.element.parentElement, l && l.nodeName.toLowerCase() === "pre" && !l.hasAttribute("tabindex") && l.setAttribute("tabindex", "0"), !u.code) {
460
+ t.hooks.run("complete", u), n && n.call(u.element);
461
+ return;
462
+ }
463
+ if (t.hooks.run("before-highlight", u), !u.grammar) {
464
+ g(t.util.encode(u.code));
465
+ return;
466
+ }
467
+ if (e && c.Worker) {
468
+ var f = new Worker(t.filename);
469
+ f.onmessage = function(p) {
470
+ g(p.data);
471
+ }, f.postMessage(JSON.stringify({
472
+ language: u.language,
473
+ code: u.code,
474
+ immediateClose: !0
475
+ }));
476
+ } else
477
+ g(t.highlight(u.code, u.grammar, u.language));
478
+ },
479
+ /**
480
+ * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
481
+ * and the language definitions to use, and returns a string with the HTML produced.
482
+ *
483
+ * The following hooks will be run:
484
+ * 1. `before-tokenize`
485
+ * 2. `after-tokenize`
486
+ * 3. `wrap`: On each {@link Token}.
487
+ *
488
+ * @param {string} text A string with the code to be highlighted.
489
+ * @param {Grammar} grammar An object containing the tokens to use.
490
+ *
491
+ * Usually a language definition like `Prism.languages.markup`.
492
+ * @param {string} language The name of the language definition passed to `grammar`.
493
+ * @returns {string} The highlighted HTML.
494
+ * @memberof Prism
495
+ * @public
496
+ * @example
497
+ * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
498
+ */
499
+ highlight: function(a, e, n) {
500
+ var r = {
501
+ code: a,
502
+ grammar: e,
503
+ language: n
504
+ };
505
+ if (t.hooks.run("before-tokenize", r), !r.grammar)
506
+ throw new Error('The language "' + r.language + '" has no grammar.');
507
+ return r.tokens = t.tokenize(r.code, r.grammar), t.hooks.run("after-tokenize", r), d.stringify(t.util.encode(r.tokens), r.language);
508
+ },
509
+ /**
510
+ * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
511
+ * and the language definitions to use, and returns an array with the tokenized code.
512
+ *
513
+ * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
514
+ *
515
+ * This method could be useful in other contexts as well, as a very crude parser.
516
+ *
517
+ * @param {string} text A string with the code to be highlighted.
518
+ * @param {Grammar} grammar An object containing the tokens to use.
519
+ *
520
+ * Usually a language definition like `Prism.languages.markup`.
521
+ * @returns {TokenStream} An array of strings and tokens, a token stream.
522
+ * @memberof Prism
523
+ * @public
524
+ * @example
525
+ * let code = `var foo = 0;`;
526
+ * let tokens = Prism.tokenize(code, Prism.languages.javascript);
527
+ * tokens.forEach(token => {
528
+ * if (token instanceof Prism.Token && token.type === 'number') {
529
+ * console.log(`Found numeric literal: ${token.content}`);
530
+ * }
531
+ * });
532
+ */
533
+ tokenize: function(a, e) {
534
+ var n = e.rest;
535
+ if (n) {
536
+ for (var r in n)
537
+ e[r] = n[r];
538
+ delete e.rest;
539
+ }
540
+ var i = new K();
541
+ return b(i, i.head, a), D(a, i, e, i.head, 0), V(i);
542
+ },
543
+ /**
544
+ * @namespace
545
+ * @memberof Prism
546
+ * @public
547
+ */
548
+ hooks: {
549
+ all: {},
550
+ /**
551
+ * Adds the given callback to the list of callbacks for the given hook.
552
+ *
553
+ * The callback will be invoked when the hook it is registered for is run.
554
+ * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
555
+ *
556
+ * One callback function can be registered to multiple hooks and the same hook multiple times.
557
+ *
558
+ * @param {string} name The name of the hook.
559
+ * @param {HookCallback} callback The callback function which is given environment variables.
560
+ * @public
561
+ */
562
+ add: function(a, e) {
563
+ var n = t.hooks.all;
564
+ n[a] = n[a] || [], n[a].push(e);
565
+ },
566
+ /**
567
+ * Runs a hook invoking all registered callbacks with the given environment variables.
568
+ *
569
+ * Callbacks will be invoked synchronously and in the order in which they were registered.
570
+ *
571
+ * @param {string} name The name of the hook.
572
+ * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
573
+ * @public
574
+ */
575
+ run: function(a, e) {
576
+ var n = t.hooks.all[a];
577
+ if (!(!n || !n.length))
578
+ for (var r = 0, i; i = n[r++]; )
579
+ i(e);
580
+ }
581
+ },
582
+ Token: d
583
+ };
584
+ c.Prism = t;
585
+ function d(a, e, n, r) {
586
+ this.type = a, this.content = e, this.alias = n, this.length = (r || "").length | 0;
587
+ }
588
+ d.stringify = function a(e, n) {
589
+ if (typeof e == "string")
590
+ return e;
591
+ if (Array.isArray(e)) {
592
+ var r = "";
593
+ return e.forEach(function(g) {
594
+ r += a(g, n);
595
+ }), r;
596
+ }
597
+ var i = {
598
+ type: e.type,
599
+ content: a(e.content, n),
600
+ tag: "span",
601
+ classes: ["token", e.type],
602
+ attributes: {},
603
+ language: n
604
+ }, l = e.alias;
605
+ l && (Array.isArray(l) ? Array.prototype.push.apply(i.classes, l) : i.classes.push(l)), t.hooks.run("wrap", i);
606
+ var o = "";
607
+ for (var u in i.attributes)
608
+ o += " " + u + '="' + (i.attributes[u] || "").replace(/"/g, "&quot;") + '"';
609
+ return "<" + i.tag + ' class="' + i.classes.join(" ") + '"' + o + ">" + i.content + "</" + i.tag + ">";
610
+ };
611
+ function H(a, e, n, r) {
612
+ a.lastIndex = e;
613
+ var i = a.exec(n);
614
+ if (i && r && i[1]) {
615
+ var l = i[1].length;
616
+ i.index += l, i[0] = i[0].slice(l);
617
+ }
618
+ return i;
619
+ }
620
+ function D(a, e, n, r, i, l) {
621
+ for (var o in n)
622
+ if (!(!n.hasOwnProperty(o) || !n[o])) {
623
+ var u = n[o];
624
+ u = Array.isArray(u) ? u : [u];
625
+ for (var g = 0; g < u.length; ++g) {
626
+ if (l && l.cause == o + "," + g)
627
+ return;
628
+ var f = u[g], p = f.inside, T = !!f.lookbehind, $ = !!f.greedy, X = f.alias;
629
+ if ($ && !f.pattern.global) {
630
+ var Y = f.pattern.toString().match(/[imsuy]*$/)[0];
631
+ f.pattern = RegExp(f.pattern.source, Y + "g");
632
+ }
633
+ for (var B = f.pattern || f, s = r.next, v = i; s !== e.tail && !(l && v >= l.reach); v += s.value.length, s = s.next) {
634
+ var x = s.value;
635
+ if (e.length > a.length)
636
+ return;
637
+ if (!(x instanceof d)) {
638
+ var E = 1, h;
639
+ if ($) {
640
+ if (h = H(B, v, a, T), !h || h.index >= a.length)
641
+ break;
642
+ var P = h.index, Z = h.index + h[0].length, y = v;
643
+ for (y += s.value.length; P >= y; )
644
+ s = s.next, y += s.value.length;
645
+ if (y -= s.value.length, v = y, s.value instanceof d)
646
+ continue;
647
+ for (var w = s; w !== e.tail && (y < Z || typeof w.value == "string"); w = w.next)
648
+ E++, y += w.value.length;
649
+ E--, x = a.slice(v, y), h.index -= v;
650
+ } else if (h = H(B, 0, x, T), !h)
651
+ continue;
652
+ var P = h.index, C = h[0], I = x.slice(0, P), F = x.slice(P + C.length), M = v + x.length;
653
+ l && M > l.reach && (l.reach = M);
654
+ var S = s.prev;
655
+ I && (S = b(e, S, I), v += I.length), Q(e, S, E);
656
+ var _ = new d(o, p ? t.tokenize(C, p) : C, X, C);
657
+ if (s = b(e, S, _), F && b(e, s, F), E > 1) {
658
+ var W = {
659
+ cause: o + "," + g,
660
+ reach: M
661
+ };
662
+ D(a, e, n, s.prev, v, W), l && W.reach > l.reach && (l.reach = W.reach);
663
+ }
664
+ }
665
+ }
666
+ }
667
+ }
668
+ }
669
+ function K() {
670
+ var a = {
671
+ value: null,
672
+ prev: null,
673
+ next: null
674
+ }, e = {
675
+ value: null,
676
+ prev: a,
677
+ next: null
678
+ };
679
+ a.next = e, this.head = a, this.tail = e, this.length = 0;
680
+ }
681
+ function b(a, e, n) {
682
+ var r = e.next, i = {
683
+ value: n,
684
+ prev: e,
685
+ next: r
686
+ };
687
+ return e.next = i, r.prev = i, a.length++, i;
688
+ }
689
+ function Q(a, e, n) {
690
+ for (var r = e.next, i = 0; i < n && r !== a.tail; i++)
691
+ r = r.next;
692
+ e.next = r, r.prev = e, a.length -= i;
693
+ }
694
+ function V(a) {
695
+ for (var e = [], n = a.head.next; n !== a.tail; )
696
+ e.push(n.value), n = n.next;
697
+ return e;
698
+ }
699
+ if (!c.document)
700
+ return c.addEventListener && (t.disableWorkerMessageHandler || c.addEventListener("message", function(a) {
701
+ var e = JSON.parse(a.data), n = e.language, r = e.code, i = e.immediateClose;
702
+ c.postMessage(t.highlight(r, t.languages[n], n)), i && c.close();
703
+ }, !1)), t;
704
+ var m = t.util.currentScript();
705
+ m && (t.filename = m.src, m.hasAttribute("data-manual") && (t.manual = !0));
706
+ function L() {
707
+ t.manual || t.highlightAll();
708
+ }
709
+ if (!t.manual) {
710
+ var O = document.readyState;
711
+ O === "loading" || O === "interactive" && m && m.defer ? document.addEventListener("DOMContentLoaded", L) : window.requestAnimationFrame ? window.requestAnimationFrame(L) : window.setTimeout(L, 16);
712
+ }
713
+ return t;
714
+ }(k);
715
+ q.exports && (q.exports = z), typeof J != "undefined" && (J.Prism = z);
716
+ })(U);
717
+ var ee = U.exports;
718
+ export {
719
+ ee as p
720
+ };