| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  | import type { LanguageFn } from "highlight.js"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  | const byMimeType: Record<string, (Promise<{ default: LanguageFn}> | null)> = { | 
					
						
							|  |  |  |     "text/plain": import("highlight.js/lib/languages/plaintext"), | 
					
						
							|  |  |  |     "application/dart": import("highlight.js/lib/languages/dart"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "application/edn": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "application/javascript;env=backend": import("highlight.js/lib/languages/javascript"), | 
					
						
							|  |  |  |     "application/javascript;env=frontend": import("highlight.js/lib/languages/javascript"), | 
					
						
							|  |  |  |     "application/json": import("highlight.js/lib/languages/json"), | 
					
						
							|  |  |  |     "application/ld+json": import("highlight.js/lib/languages/json"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "application/mbox": null, | 
					
						
							|  |  |  |     "application/n-triples": null, | 
					
						
							|  |  |  |     "application/pgp": null, | 
					
						
							|  |  |  |     "application/sieve": null, | 
					
						
							|  |  |  |     "application/sparql-query": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "application/typescript": import("highlight.js/lib/languages/typescript"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "application/x-aspx": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "application/x-bat": import("highlight.js/lib/languages/dos"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "application/x-cypher-query": null, | 
					
						
							|  |  |  |     "application/x-ejs": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "application/x-erb": import("highlight.js/lib/languages/erb"), | 
					
						
							|  |  |  |     "application/x-jsp": import("highlight.js/lib/languages/java"), | 
					
						
							|  |  |  |     "application/x-powershell": import("highlight.js/lib/languages/powershell"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "application/xml-dtd": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "application/xquery": import("highlight.js/lib/languages/xquery"), | 
					
						
							|  |  |  |     "message/http": import("highlight.js/lib/languages/http"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/apl": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/coffeescript": import("highlight.js/lib/languages/coffeescript"), | 
					
						
							|  |  |  |     "text/css": import("highlight.js/lib/languages/css"), | 
					
						
							|  |  |  |     "text/html": import("highlight.js/lib/languages/xml"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/jinja2": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/jsx": import("highlight.js/lib/languages/javascript"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/mirc": null, | 
					
						
							|  |  |  |     "text/tiki": null, | 
					
						
							|  |  |  |     "text/troff": null, | 
					
						
							|  |  |  |     "text/turtle": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/typescript-jsx": import("highlight.js/lib/languages/typescript"), | 
					
						
							|  |  |  |     "text/vbscript": import("highlight.js/lib/languages/vbscript"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/velocity": null, | 
					
						
							|  |  |  |     "text/vnd.mermaid": null, | 
					
						
							|  |  |  |     "text/mermaid": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-asm-mips": import("highlight.js/lib/languages/mipsasm"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-asterisk": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-brainfuck": import("highlight.js/lib/languages/brainfuck"), | 
					
						
							|  |  |  |     "text/x-c++src": import("highlight.js/lib/languages/cpp"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-cassandra": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-clojure": import("highlight.js/lib/languages/clojure"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-clojurescript": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-cmake": import("highlight.js/lib/languages/cmake"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-cobol": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-common-lisp": import("highlight.js/lib/languages/lisp"), | 
					
						
							|  |  |  |     "text/x-crystal": import("highlight.js/lib/languages/crystal"), | 
					
						
							|  |  |  |     "text/x-csharp": import("highlight.js/lib/languages/csharp"), | 
					
						
							|  |  |  |     "text/x-csrc": import("highlight.js/lib/languages/c"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-cython": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-d": import("highlight.js/lib/languages/d"), | 
					
						
							|  |  |  |     "text/x-diff": import("highlight.js/lib/languages/diff"), | 
					
						
							|  |  |  |     "text/x-django": import("highlight.js/lib/languages/django"), | 
					
						
							|  |  |  |     "text/x-dockerfile": import("highlight.js/lib/languages/dockerfile"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-dylan": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-ebnf": import("highlight.js/lib/languages/ebnf"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-ecl": null, | 
					
						
							|  |  |  |     "text/x-eiffel": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-elm": import("highlight.js/lib/languages/elm"), | 
					
						
							|  |  |  |     "text/x-erlang": import("highlight.js/lib/languages/erlang"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-esper": null, | 
					
						
							|  |  |  |     "text/x-factor": null, | 
					
						
							|  |  |  |     "text/x-fcl": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-feature": import("highlight.js/lib/languages/gherkin"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-forth": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-fortran": import("highlight.js/lib/languages/fortran"), | 
					
						
							|  |  |  |     "text/x-fsharp": import("highlight.js/lib/languages/fsharp"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-gas": null, | 
					
						
							|  |  |  |     "text/x-gdscript": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-gfm": import("highlight.js/lib/languages/markdown"), | 
					
						
							|  |  |  |     "text/x-go": import("highlight.js/lib/languages/go"), | 
					
						
							|  |  |  |     "text/x-groovy": import("highlight.js/lib/languages/groovy"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-gss": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-haml": import("highlight.js/lib/languages/haml"), | 
					
						
							|  |  |  |     "text/x-haskell": import("highlight.js/lib/languages/haskell"), | 
					
						
							|  |  |  |     "text/x-haxe": import("highlight.js/lib/languages/haxe"), | 
					
						
							|  |  |  |     "text/x-hcl": import("./languages/terraform.js"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-hxml": null, | 
					
						
							|  |  |  |     "text/x-idl": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-java": import("highlight.js/lib/languages/java"), | 
					
						
							|  |  |  |     "text/x-julia": import("highlight.js/lib/languages/julia"), | 
					
						
							|  |  |  |     "text/x-kotlin": import("highlight.js/lib/languages/kotlin"), | 
					
						
							|  |  |  |     "text/x-latex": import("highlight.js/lib/languages/latex"), | 
					
						
							|  |  |  |     "text/x-less": import("highlight.js/lib/languages/less"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-literate-haskell": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-livescript": import("highlight.js/lib/languages/livescript"), | 
					
						
							|  |  |  |     "text/x-lua": import("highlight.js/lib/languages/lua"), | 
					
						
							|  |  |  |     "text/x-mariadb": import("highlight.js/lib/languages/sql"), | 
					
						
							|  |  |  |     "text/x-markdown": import("highlight.js/lib/languages/markdown"), | 
					
						
							|  |  |  |     "text/x-mathematica": import("highlight.js/lib/languages/mathematica"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-modelica": null, | 
					
						
							|  |  |  |     "text/x-mscgen": null, | 
					
						
							|  |  |  |     "text/x-msgenny": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-mssql": import("highlight.js/lib/languages/sql"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-mumps": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-mysql": import("highlight.js/lib/languages/sql"), | 
					
						
							|  |  |  |     "text/x-nix": import("highlight.js/lib/languages/nix"), | 
					
						
							|  |  |  |     "text/x-nginx-conf": import("highlight.js/lib/languages/nginx"), | 
					
						
							|  |  |  |     "text/x-nsis": import("highlight.js/lib/languages/nsis"), | 
					
						
							|  |  |  |     "text/x-objectivec": import("highlight.js/lib/languages/objectivec"), | 
					
						
							|  |  |  |     "text/x-ocaml": import("highlight.js/lib/languages/ocaml"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-octave": null, | 
					
						
							|  |  |  |     "text/x-oz": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-pascal": import("highlight.js/lib/languages/delphi"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-perl": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-pgsql": import("highlight.js/lib/languages/sql"), | 
					
						
							|  |  |  |     "text/x-php": import("highlight.js/lib/languages/php"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-pig": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-plsql": import("highlight.js/lib/languages/sql"), | 
					
						
							|  |  |  |     "text/x-properties": import("highlight.js/lib/languages/properties"), | 
					
						
							|  |  |  |     "text/x-protobuf": import("highlight.js/lib/languages/protobuf"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-pug": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-puppet": import("highlight.js/lib/languages/puppet"), | 
					
						
							|  |  |  |     "text/x-python": import("highlight.js/lib/languages/python"), | 
					
						
							|  |  |  |     "text/x-q": import("highlight.js/lib/languages/q"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-rpm-changes": null, | 
					
						
							|  |  |  |     "text/x-rpm-spec": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-rsrc": import("highlight.js/lib/languages/r"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-rst": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-ruby": import("highlight.js/lib/languages/ruby"), | 
					
						
							|  |  |  |     "text/x-rustsrc": import("highlight.js/lib/languages/rust"), | 
					
						
							|  |  |  |     "text/x-sas": import("highlight.js/lib/languages/sas"), | 
					
						
							|  |  |  |     "text/x-sass": import("highlight.js/lib/languages/scss"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-scala": null, | 
					
						
							|  |  |  |     "text/x-scheme": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-scss": import("highlight.js/lib/languages/scss"), | 
					
						
							|  |  |  |     "text/x-sh": import("highlight.js/lib/languages/bash"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-slim": null, | 
					
						
							|  |  |  |     "text/x-smarty": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-sml": import("highlight.js/lib/languages/sml"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-solr": null, | 
					
						
							|  |  |  |     "text/x-soy": null, | 
					
						
							|  |  |  |     "text/x-spreadsheet": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-sql": import("highlight.js/lib/languages/sql"), | 
					
						
							|  |  |  |     "text/x-sqlite;schema=trilium": import("highlight.js/lib/languages/sql"), | 
					
						
							|  |  |  |     "text/x-sqlite": import("highlight.js/lib/languages/sql"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-squirrel": null, | 
					
						
							|  |  |  |     "text/x-stex": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-stsrc": import("highlight.js/lib/languages/smalltalk"), | 
					
						
							|  |  |  |     "text/x-styl": import("highlight.js/lib/languages/stylus"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-swift": null, | 
					
						
							|  |  |  |     "text/x-systemverilog": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-tcl": import("highlight.js/lib/languages/tcl"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-textile": null, | 
					
						
							|  |  |  |     "text/x-tiddlywiki": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-toml": import("highlight.js/lib/languages/ini"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-tornado": null, | 
					
						
							|  |  |  |     "text/x-ttcn-asn": null, | 
					
						
							|  |  |  |     "text/x-ttcn-cfg": null, | 
					
						
							|  |  |  |     "text/x-ttcn": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-twig": import("highlight.js/lib/languages/twig"), | 
					
						
							|  |  |  |     "text/x-vb": import("highlight.js/lib/languages/vbnet"), | 
					
						
							|  |  |  |     "text/x-verilog": import("highlight.js/lib/languages/verilog"), | 
					
						
							|  |  |  |     "text/x-vhdl": import("highlight.js/lib/languages/vhdl"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-vue": null, | 
					
						
							|  |  |  |     "text/x-webidl": null, | 
					
						
							|  |  |  |     "text/x-xu": null, | 
					
						
							|  |  |  |     "text/x-yacas": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/x-yaml": import("highlight.js/lib/languages/yaml"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  |     "text/x-z80": null, | 
					
						
							| 
									
										
										
										
											2025-05-18 14:24:54 +03:00
										 |  |  |     "text/xml": import("highlight.js/lib/languages/xml"), | 
					
						
							| 
									
										
										
										
											2025-05-18 10:13:38 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default byMimeType; |