@l1yp/file-viewer 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +134 -0
  3. package/dist/FileViewer.js +7 -0
  4. package/dist/FileViewer.vue.d.ts +37 -0
  5. package/dist/FileViewer.vue_vue_type_script_setup_true_lang.js +103 -0
  6. package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
  7. package/dist/components/AppxViewer.js +7 -0
  8. package/dist/components/AppxViewer.vue.d.ts +18 -0
  9. package/dist/components/AppxViewer.vue_vue_type_script_setup_true_lang.js +174 -0
  10. package/dist/components/ArchiveBrowser.js +7 -0
  11. package/dist/components/ArchiveBrowser.vue.d.ts +18 -0
  12. package/dist/components/ArchiveBrowser.vue_vue_type_script_setup_true_lang.js +279 -0
  13. package/dist/components/AudioViewer.js +7 -0
  14. package/dist/components/AudioViewer.vue.d.ts +21 -0
  15. package/dist/components/AudioViewer.vue_vue_type_script_setup_true_lang.js +201 -0
  16. package/dist/components/BinObjBrowser.js +7 -0
  17. package/dist/components/BinObjBrowser.vue.d.ts +19 -0
  18. package/dist/components/BinObjBrowser.vue_vue_type_script_setup_true_lang.js +141 -0
  19. package/dist/components/CertViewer.js +7 -0
  20. package/dist/components/CertViewer.vue.d.ts +17 -0
  21. package/dist/components/CertViewer.vue_vue_type_script_setup_true_lang.js +251 -0
  22. package/dist/components/ClassViewer.js +7 -0
  23. package/dist/components/ClassViewer.vue.d.ts +15 -0
  24. package/dist/components/ClassViewer.vue_vue_type_script_setup_true_lang.js +164 -0
  25. package/dist/components/CodeBlock.js +7 -0
  26. package/dist/components/CodeBlock.vue.d.ts +17 -0
  27. package/dist/components/CodeBlock.vue_vue_type_script_setup_true_lang.js +79 -0
  28. package/dist/components/CodeView.js +7 -0
  29. package/dist/components/CodeView.vue.d.ts +21 -0
  30. package/dist/components/CodeView.vue_vue_type_script_setup_true_lang.js +180 -0
  31. package/dist/components/CsvViewer.js +7 -0
  32. package/dist/components/CsvViewer.vue.d.ts +26 -0
  33. package/dist/components/CsvViewer.vue_vue_type_script_setup_true_lang.js +187 -0
  34. package/dist/components/DicomViewer.js +7 -0
  35. package/dist/components/DicomViewer.vue.d.ts +30 -0
  36. package/dist/components/DicomViewer.vue_vue_type_script_setup_true_lang.js +362 -0
  37. package/dist/components/DocxViewer.js +7 -0
  38. package/dist/components/DocxViewer.vue.d.ts +19 -0
  39. package/dist/components/DocxViewer.vue_vue_type_script_setup_true_lang.js +59 -0
  40. package/dist/components/DrawioViewer.js +7 -0
  41. package/dist/components/DrawioViewer.vue.d.ts +16 -0
  42. package/dist/components/DrawioViewer.vue_vue_type_script_setup_true_lang.js +38 -0
  43. package/dist/components/DxfViewer.js +7 -0
  44. package/dist/components/DxfViewer.vue.d.ts +14 -0
  45. package/dist/components/DxfViewer.vue_vue_type_script_setup_true_lang.js +239 -0
  46. package/dist/components/EbookViewer.js +7 -0
  47. package/dist/components/EbookViewer.vue.d.ts +22 -0
  48. package/dist/components/EbookViewer.vue_vue_type_script_setup_true_lang.js +170 -0
  49. package/dist/components/EmlViewer.js +7 -0
  50. package/dist/components/EmlViewer.vue.d.ts +21 -0
  51. package/dist/components/EmlViewer.vue_vue_type_script_setup_true_lang.js +193 -0
  52. package/dist/components/EplViewer.js +7 -0
  53. package/dist/components/EplViewer.vue.d.ts +19 -0
  54. package/dist/components/EplViewer.vue_vue_type_script_setup_true_lang.js +201 -0
  55. package/dist/components/FileViewerBody.js +7 -0
  56. package/dist/components/FileViewerBody.vue.d.ts +47 -0
  57. package/dist/components/FileViewerBody.vue_vue_type_script_setup_true_lang.js +599 -0
  58. package/dist/components/FileViewerPanel.js +7 -0
  59. package/dist/components/FileViewerPanel.vue.d.ts +3 -0
  60. package/dist/components/FileViewerPanel.vue_vue_type_script_setup_true_lang.js +207 -0
  61. package/dist/components/FontViewer.js +7 -0
  62. package/dist/components/FontViewer.vue.d.ts +17 -0
  63. package/dist/components/FontViewer.vue_vue_type_script_setup_true_lang.js +120 -0
  64. package/dist/components/FrontmatterCard.js +7 -0
  65. package/dist/components/FrontmatterCard.vue.d.ts +11 -0
  66. package/dist/components/FrontmatterCard.vue_vue_type_script_setup_true_lang.js +30 -0
  67. package/dist/components/GeoViewer.js +7 -0
  68. package/dist/components/GeoViewer.vue.d.ts +17 -0
  69. package/dist/components/GeoViewer.vue_vue_type_script_setup_true_lang.js +255 -0
  70. package/dist/components/HarViewer.js +7 -0
  71. package/dist/components/HarViewer.vue.d.ts +20 -0
  72. package/dist/components/HarViewer.vue_vue_type_script_setup_true_lang.js +322 -0
  73. package/dist/components/HexViewer.js +7 -0
  74. package/dist/components/HexViewer.vue.d.ts +22 -0
  75. package/dist/components/HexViewer.vue_vue_type_script_setup_true_lang.js +121 -0
  76. package/dist/components/HprofViewer.js +7 -0
  77. package/dist/components/HprofViewer.vue.d.ts +27 -0
  78. package/dist/components/HprofViewer.vue_vue_type_script_setup_true_lang.js +561 -0
  79. package/dist/components/ImageLightbox.js +7 -0
  80. package/dist/components/ImageLightbox.vue.d.ts +3 -0
  81. package/dist/components/ImageLightbox.vue_vue_type_script_setup_true_lang.js +86 -0
  82. package/dist/components/InlineText.d.ts +29 -0
  83. package/dist/components/InlineText.js +21 -0
  84. package/dist/components/JksViewer.js +7 -0
  85. package/dist/components/JksViewer.vue.d.ts +22 -0
  86. package/dist/components/JksViewer.vue_vue_type_script_setup_true_lang.js +353 -0
  87. package/dist/components/JsonlViewer.js +7 -0
  88. package/dist/components/JsonlViewer.vue.d.ts +15 -0
  89. package/dist/components/JsonlViewer.vue_vue_type_script_setup_true_lang.js +103 -0
  90. package/dist/components/LogViewer.js +7 -0
  91. package/dist/components/LogViewer.vue.d.ts +29 -0
  92. package/dist/components/LogViewer.vue_vue_type_script_setup_true_lang.js +670 -0
  93. package/dist/components/LrcViewer.js +7 -0
  94. package/dist/components/LrcViewer.vue.d.ts +17 -0
  95. package/dist/components/LrcViewer.vue_vue_type_script_setup_true_lang.js +106 -0
  96. package/dist/components/MarkdownTable.js +7 -0
  97. package/dist/components/MarkdownTable.vue.d.ts +19 -0
  98. package/dist/components/MarkdownTable.vue_vue_type_script_setup_true_lang.js +71 -0
  99. package/dist/components/MarkdownText.d.ts +30 -0
  100. package/dist/components/MarkdownText.js +21 -0
  101. package/dist/components/MhtViewer.js +7 -0
  102. package/dist/components/MhtViewer.vue.d.ts +22 -0
  103. package/dist/components/MhtViewer.vue_vue_type_script_setup_true_lang.js +112 -0
  104. package/dist/components/MindMapView.js +7 -0
  105. package/dist/components/MindMapView.vue.d.ts +23 -0
  106. package/dist/components/MindMapView.vue_vue_type_script_setup_true_lang.js +337 -0
  107. package/dist/components/MissingDependency.js +7 -0
  108. package/dist/components/MissingDependency.vue.d.ts +17 -0
  109. package/dist/components/MissingDependency.vue_vue_type_script_setup_true_lang.js +37 -0
  110. package/dist/components/ModelViewer.js +7 -0
  111. package/dist/components/ModelViewer.vue.d.ts +18 -0
  112. package/dist/components/ModelViewer.vue_vue_type_script_setup_true_lang.js +157 -0
  113. package/dist/components/MsiViewer.js +7 -0
  114. package/dist/components/MsiViewer.vue.d.ts +19 -0
  115. package/dist/components/MsiViewer.vue_vue_type_script_setup_true_lang.js +136 -0
  116. package/dist/components/NotebookViewer.js +7 -0
  117. package/dist/components/NotebookViewer.vue.d.ts +20 -0
  118. package/dist/components/NotebookViewer.vue_vue_type_script_setup_true_lang.js +125 -0
  119. package/dist/components/PdfViewer.js +7 -0
  120. package/dist/components/PdfViewer.vue.d.ts +19 -0
  121. package/dist/components/PdfViewer.vue_vue_type_script_setup_true_lang.js +114 -0
  122. package/dist/components/PptxViewer.js +7 -0
  123. package/dist/components/PptxViewer.vue.d.ts +20 -0
  124. package/dist/components/PptxViewer.vue_vue_type_script_setup_true_lang.js +73 -0
  125. package/dist/components/PsdViewer.js +7 -0
  126. package/dist/components/PsdViewer.vue.d.ts +15 -0
  127. package/dist/components/PsdViewer.vue_vue_type_script_setup_true_lang.js +218 -0
  128. package/dist/components/QmcAudioViewer.js +7 -0
  129. package/dist/components/QmcAudioViewer.vue.d.ts +18 -0
  130. package/dist/components/QmcAudioViewer.vue_vue_type_script_setup_true_lang.js +92 -0
  131. package/dist/components/RasterViewer.js +7 -0
  132. package/dist/components/RasterViewer.vue.d.ts +21 -0
  133. package/dist/components/RasterViewer.vue_vue_type_script_setup_true_lang.js +161 -0
  134. package/dist/components/RtfViewer.js +7 -0
  135. package/dist/components/RtfViewer.vue.d.ts +21 -0
  136. package/dist/components/RtfViewer.vue_vue_type_script_setup_true_lang.js +66 -0
  137. package/dist/components/SevenZipBrowser.js +7 -0
  138. package/dist/components/SevenZipBrowser.vue.d.ts +13 -0
  139. package/dist/components/SevenZipBrowser.vue_vue_type_script_setup_true_lang.js +366 -0
  140. package/dist/components/SqliteViewer.js +7 -0
  141. package/dist/components/SqliteViewer.vue.d.ts +18 -0
  142. package/dist/components/SqliteViewer.vue_vue_type_script_setup_true_lang.js +186 -0
  143. package/dist/components/SubtitleViewer.js +7 -0
  144. package/dist/components/SubtitleViewer.vue.d.ts +15 -0
  145. package/dist/components/SubtitleViewer.vue_vue_type_script_setup_true_lang.js +48 -0
  146. package/dist/components/XlsxChart.js +7 -0
  147. package/dist/components/XlsxChart.vue.d.ts +14 -0
  148. package/dist/components/XlsxChart.vue_vue_type_script_setup_true_lang.js +240 -0
  149. package/dist/components/XlsxViewer.js +7 -0
  150. package/dist/components/XlsxViewer.vue.d.ts +22 -0
  151. package/dist/components/XlsxViewer.vue_vue_type_script_setup_true_lang.js +814 -0
  152. package/dist/components/XmindViewer.js +7 -0
  153. package/dist/components/XmindViewer.vue.d.ts +13 -0
  154. package/dist/components/XmindViewer.vue_vue_type_script_setup_true_lang.js +48 -0
  155. package/dist/components/ZipBrowser.js +7 -0
  156. package/dist/components/ZipBrowser.vue.d.ts +14 -0
  157. package/dist/components/ZipBrowser.vue_vue_type_script_setup_true_lang.js +326 -0
  158. package/dist/components/ZoomImage.js +7 -0
  159. package/dist/components/ZoomImage.vue.d.ts +29 -0
  160. package/dist/components/ZoomImage.vue_vue_type_script_setup_true_lang.js +147 -0
  161. package/dist/components/epl/EplCodeBlock.js +7 -0
  162. package/dist/components/epl/EplCodeBlock.vue.d.ts +15 -0
  163. package/dist/components/epl/EplCodeBlock.vue_vue_type_script_setup_true_lang.js +72 -0
  164. package/dist/components/epl/EplDoc.js +7 -0
  165. package/dist/components/epl/EplDoc.vue.d.ts +19 -0
  166. package/dist/components/epl/EplDoc.vue_vue_type_script_setup_true_lang.js +327 -0
  167. package/dist/components/epl/EplMethod.js +7 -0
  168. package/dist/components/epl/EplMethod.vue.d.ts +14 -0
  169. package/dist/components/epl/EplMethod.vue_vue_type_script_setup_true_lang.js +100 -0
  170. package/dist/components/epl/EplResource.js +7 -0
  171. package/dist/components/epl/EplResource.vue.d.ts +15 -0
  172. package/dist/components/epl/EplResource.vue_vue_type_script_setup_true_lang.js +204 -0
  173. package/dist/components/epl/EplTree.js +7 -0
  174. package/dist/components/epl/EplTree.vue.d.ts +27 -0
  175. package/dist/components/epl/EplTree.vue_vue_type_script_setup_true_lang.js +123 -0
  176. package/dist/components/epl/EplVarTable.js +7 -0
  177. package/dist/components/epl/EplVarTable.vue.d.ts +21 -0
  178. package/dist/components/epl/EplVarTable.vue_vue_type_script_setup_true_lang.js +60 -0
  179. package/dist/components/epl/docTypes.d.ts +12 -0
  180. package/dist/components/epl/numbering.d.ts +21 -0
  181. package/dist/components/epl/numbering.js +14 -0
  182. package/dist/components/icons/Icon.js +7 -0
  183. package/dist/components/icons/Icon.vue.d.ts +14 -0
  184. package/dist/components/icons/Icon.vue_vue_type_script_setup_true_lang.js +33 -0
  185. package/dist/components/icons/iconPaths.d.ts +60 -0
  186. package/dist/components/icons/iconPaths.js +54 -0
  187. package/dist/components/optionalViewer.d.ts +14 -0
  188. package/dist/components/optionalViewer.js +37 -0
  189. package/dist/components/ui/ClampBlock.d.ts +82 -0
  190. package/dist/components/ui/ClampBlock.js +63 -0
  191. package/dist/composables/useFileViewer.d.ts +428 -0
  192. package/dist/composables/useFileViewer.js +27 -0
  193. package/dist/composables/useLightbox.d.ts +33 -0
  194. package/dist/composables/useLightbox.js +17 -0
  195. package/dist/composables/useLogRules.d.ts +47 -0
  196. package/dist/composables/useLogRules.js +74 -0
  197. package/dist/index.d.ts +44 -0
  198. package/dist/index.js +30 -0
  199. package/dist/lib/aes.d.ts +25 -0
  200. package/dist/lib/aes.js +99 -0
  201. package/dist/lib/appx.d.ts +66 -0
  202. package/dist/lib/appx.js +112 -0
  203. package/dist/lib/archive.d.ts +29 -0
  204. package/dist/lib/asn1.d.ts +47 -0
  205. package/dist/lib/asn1.js +122 -0
  206. package/dist/lib/binobj.d.ts +69 -0
  207. package/dist/lib/binobj.js +430 -0
  208. package/dist/lib/brotli.d.ts +14 -0
  209. package/dist/lib/brotli.js +16 -0
  210. package/dist/lib/bzip2.d.ts +14 -0
  211. package/dist/lib/bzip2.js +161 -0
  212. package/dist/lib/classfile.d.ts +72 -0
  213. package/dist/lib/classfile.js +210 -0
  214. package/dist/lib/codePreview.d.ts +22 -0
  215. package/dist/lib/codePreview.js +27 -0
  216. package/dist/lib/codefold.d.ts +14 -0
  217. package/dist/lib/codefold.js +30 -0
  218. package/dist/lib/codeformat.d.ts +21 -0
  219. package/dist/lib/codeformat.js +130 -0
  220. package/dist/lib/csv.d.ts +19 -0
  221. package/dist/lib/csv.js +74 -0
  222. package/dist/lib/des.d.ts +17 -0
  223. package/dist/lib/des.js +928 -0
  224. package/dist/lib/diagram.d.ts +5 -0
  225. package/dist/lib/diagram.js +479 -0
  226. package/dist/lib/dicom.d.ts +69 -0
  227. package/dist/lib/dicom.js +442 -0
  228. package/dist/lib/dicomCodecs.d.ts +28 -0
  229. package/dist/lib/dicomCodecs.js +156 -0
  230. package/dist/lib/dicomRender.d.ts +46 -0
  231. package/dist/lib/dicomRender.js +114 -0
  232. package/dist/lib/dxf.d.ts +86 -0
  233. package/dist/lib/dxf.js +399 -0
  234. package/dist/lib/eml.d.ts +40 -0
  235. package/dist/lib/eml.js +46 -0
  236. package/dist/lib/encoding.d.ts +28 -0
  237. package/dist/lib/encoding.js +44 -0
  238. package/dist/lib/epl/code/ast.d.ts +150 -0
  239. package/dist/lib/epl/code/codeDataParser.d.ts +3 -0
  240. package/dist/lib/epl/code/codeDataParser.js +330 -0
  241. package/dist/lib/epl/code/codeLines.d.ts +20 -0
  242. package/dist/lib/epl/code/codeLines.js +191 -0
  243. package/dist/lib/epl/code/structures.d.ts +86 -0
  244. package/dist/lib/epl/code/textCode.d.ts +29 -0
  245. package/dist/lib/epl/code/textCode.js +150 -0
  246. package/dist/lib/epl/code/variable.d.ts +25 -0
  247. package/dist/lib/epl/eplDocument.d.ts +21 -0
  248. package/dist/lib/epl/eplDocument.js +36 -0
  249. package/dist/lib/epl/imageList.d.ts +28 -0
  250. package/dist/lib/epl/imageList.js +66 -0
  251. package/dist/lib/epl/index.d.ts +53 -0
  252. package/dist/lib/epl/index.js +45 -0
  253. package/dist/lib/epl/io/binaryReader.d.ts +56 -0
  254. package/dist/lib/epl/io/binaryReader.js +119 -0
  255. package/dist/lib/epl/io/encoding.d.ts +16 -0
  256. package/dist/lib/epl/io/encoding.js +27 -0
  257. package/dist/lib/epl/model/eplSystemId.d.ts +64 -0
  258. package/dist/lib/epl/model/eplSystemId.js +16 -0
  259. package/dist/lib/epl/model/section.d.ts +46 -0
  260. package/dist/lib/epl/names/eplLibData.js +39 -0
  261. package/dist/lib/epl/names/idToNameMap.d.ts +33 -0
  262. package/dist/lib/epl/names/idToNameMap.js +130 -0
  263. package/dist/lib/epl/names/libNameProvider.d.ts +15 -0
  264. package/dist/lib/epl/names/libNameProvider.js +18 -0
  265. package/dist/lib/epl/program.d.ts +120 -0
  266. package/dist/lib/epl/program.js +134 -0
  267. package/dist/lib/epl/projectFileReader.d.ts +23 -0
  268. package/dist/lib/epl/projectFileReader.js +65 -0
  269. package/dist/lib/epl/sections/code.d.ts +20 -0
  270. package/dist/lib/epl/sections/esystemInfo.d.ts +14 -0
  271. package/dist/lib/epl/sections/losable.d.ts +11 -0
  272. package/dist/lib/epl/sections/projectConfig.d.ts +23 -0
  273. package/dist/lib/epl/sections/resource.d.ts +57 -0
  274. package/dist/lib/fb2.d.ts +14 -0
  275. package/dist/lib/fb2.js +62 -0
  276. package/dist/lib/fileType.d.ts +315 -0
  277. package/dist/lib/fileType.js +800 -0
  278. package/dist/lib/fonts.d.ts +8 -0
  279. package/dist/lib/fonts.js +4 -0
  280. package/dist/lib/format.d.ts +16 -0
  281. package/dist/lib/format.js +38 -0
  282. package/dist/lib/frontmatter.d.ts +13 -0
  283. package/dist/lib/frontmatter.js +23 -0
  284. package/dist/lib/geo.d.ts +30 -0
  285. package/dist/lib/geo.js +235 -0
  286. package/dist/lib/har.d.ts +171 -0
  287. package/dist/lib/har.js +397 -0
  288. package/dist/lib/highlight.d.ts +18 -0
  289. package/dist/lib/highlight.js +34 -0
  290. package/dist/lib/highlightLangs.d.ts +15 -0
  291. package/dist/lib/highlightLangs.js +93 -0
  292. package/dist/lib/hprof.d.ts +211 -0
  293. package/dist/lib/hprof.js +709 -0
  294. package/dist/lib/ipynb.d.ts +48 -0
  295. package/dist/lib/ipynb.js +130 -0
  296. package/dist/lib/jks.d.ts +86 -0
  297. package/dist/lib/jks.js +167 -0
  298. package/dist/lib/jsonl.d.ts +29 -0
  299. package/dist/lib/jsonl.js +24 -0
  300. package/dist/lib/lrc.d.ts +32 -0
  301. package/dist/lib/lrc.js +84 -0
  302. package/dist/lib/lzma.d.ts +70 -0
  303. package/dist/lib/lzma.js +204 -0
  304. package/dist/lib/markdown/blocks.d.ts +9 -0
  305. package/dist/lib/markdown/blocks.js +221 -0
  306. package/dist/lib/markdown/index.d.ts +3 -0
  307. package/dist/lib/markdown/inline.d.ts +33 -0
  308. package/dist/lib/markdown/inline.js +84 -0
  309. package/dist/lib/markdown/math.d.ts +5 -0
  310. package/dist/lib/markdown/math.js +25 -0
  311. package/dist/lib/markdown/segmentize.d.ts +11 -0
  312. package/dist/lib/markdown/segmentize.js +28 -0
  313. package/dist/lib/markdown/styles.d.ts +26 -0
  314. package/dist/lib/markdown/styles.js +135 -0
  315. package/dist/lib/mht.d.ts +51 -0
  316. package/dist/lib/mht.js +122 -0
  317. package/dist/lib/midi.d.ts +28 -0
  318. package/dist/lib/midi.js +84 -0
  319. package/dist/lib/mime.d.ts +82 -0
  320. package/dist/lib/mime.js +151 -0
  321. package/dist/lib/mindmap.d.ts +51 -0
  322. package/dist/lib/mindmap.js +113 -0
  323. package/dist/lib/mobi.d.ts +15 -0
  324. package/dist/lib/mobi.js +68 -0
  325. package/dist/lib/msi.d.ts +50 -0
  326. package/dist/lib/msi.js +332 -0
  327. package/dist/lib/optionalDep.d.ts +26 -0
  328. package/dist/lib/optionalDep.js +20 -0
  329. package/dist/lib/pkcs12.d.ts +56 -0
  330. package/dist/lib/pkcs12.js +356 -0
  331. package/dist/lib/qmc.d.ts +50 -0
  332. package/dist/lib/qmc.js +213 -0
  333. package/dist/lib/rar.d.ts +16 -0
  334. package/dist/lib/rar.js +40 -0
  335. package/dist/lib/rawPreview.d.ts +12 -0
  336. package/dist/lib/rawPreview.js +54 -0
  337. package/dist/lib/rc2.d.ts +12 -0
  338. package/dist/lib/rc2.js +298 -0
  339. package/dist/lib/resolveInput.d.ts +22 -0
  340. package/dist/lib/resolveInput.js +55 -0
  341. package/dist/lib/rtf.d.ts +53 -0
  342. package/dist/lib/rtf.js +413 -0
  343. package/dist/lib/sevenZip.d.ts +82 -0
  344. package/dist/lib/sevenZip.js +395 -0
  345. package/dist/lib/sha1.d.ts +24 -0
  346. package/dist/lib/sha1.js +53 -0
  347. package/dist/lib/sha256.d.ts +21 -0
  348. package/dist/lib/sha256.js +119 -0
  349. package/dist/lib/speechAudio.d.ts +36 -0
  350. package/dist/lib/speechAudio.js +85 -0
  351. package/dist/lib/sqlite.d.ts +38 -0
  352. package/dist/lib/sqlite.js +104 -0
  353. package/dist/lib/subtitle.d.ts +26 -0
  354. package/dist/lib/subtitle.js +99 -0
  355. package/dist/lib/tarball.d.ts +20 -0
  356. package/dist/lib/tarball.js +248 -0
  357. package/dist/lib/viewerFormats.d.ts +35 -0
  358. package/dist/lib/viewerFormats.js +83 -0
  359. package/dist/lib/viewerKind.d.ts +36 -0
  360. package/dist/lib/viewerKind.js +233 -0
  361. package/dist/lib/x509.d.ts +68 -0
  362. package/dist/lib/x509.js +267 -0
  363. package/dist/lib/xlsx.d.ts +55 -0
  364. package/dist/lib/xlsx.js +321 -0
  365. package/dist/lib/xlsxCharts.d.ts +34 -0
  366. package/dist/lib/xlsxCharts.js +152 -0
  367. package/dist/lib/xmind.d.ts +6 -0
  368. package/dist/lib/xmind.js +124 -0
  369. package/dist/lib/zip.d.ts +56 -0
  370. package/dist/lib/zip.js +169 -0
  371. package/dist/style.css +2 -0
  372. package/dist/types.d.ts +42 -0
  373. package/package.json +128 -0
@@ -0,0 +1,800 @@
1
+ //#region src/lib/fileType.ts
2
+ function e(e) {
3
+ let t = (e || "").split(/[\\/]/).pop() ?? "", n = t.lastIndexOf(".");
4
+ return n > 0 ? t.slice(n + 1).toLowerCase() : "";
5
+ }
6
+ var t = {
7
+ js: "javascript",
8
+ mjs: "javascript",
9
+ cjs: "javascript",
10
+ jsx: "javascript",
11
+ ts: "typescript",
12
+ tsx: "typescript",
13
+ mts: "typescript",
14
+ cts: "typescript",
15
+ py: "python",
16
+ pyw: "python",
17
+ rb: "ruby",
18
+ rs: "rust",
19
+ kt: "kotlin",
20
+ kts: "kotlin",
21
+ java: "java",
22
+ c: "c",
23
+ h: "c",
24
+ cc: "cpp",
25
+ cpp: "cpp",
26
+ cxx: "cpp",
27
+ hpp: "cpp",
28
+ hh: "cpp",
29
+ cs: "csharp",
30
+ go: "go",
31
+ php: "php",
32
+ swift: "swift",
33
+ scala: "scala",
34
+ sh: "bash",
35
+ bash: "bash",
36
+ zsh: "bash",
37
+ fish: "bash",
38
+ ps1: "powershell",
39
+ psm1: "powershell",
40
+ bat: "dos",
41
+ cmd: "dos",
42
+ yml: "yaml",
43
+ yaml: "yaml",
44
+ toml: "ini",
45
+ ini: "ini",
46
+ cfg: "ini",
47
+ conf: "ini",
48
+ properties: "properties",
49
+ json: "json",
50
+ json5: "json",
51
+ xml: "xml",
52
+ html: "xml",
53
+ htm: "xml",
54
+ svg: "xml",
55
+ vue: "xml",
56
+ svelte: "xml",
57
+ opml: "xml",
58
+ mm: "xml",
59
+ css: "css",
60
+ scss: "scss",
61
+ sass: "scss",
62
+ less: "less",
63
+ sql: "sql",
64
+ md: "markdown",
65
+ markdown: "markdown",
66
+ gradle: "gradle",
67
+ groovy: "groovy",
68
+ lua: "lua",
69
+ r: "r",
70
+ dart: "dart",
71
+ pl: "perl",
72
+ diff: "diff",
73
+ patch: "diff"
74
+ }, n = new Set([
75
+ "txt",
76
+ "text",
77
+ "log",
78
+ "csv",
79
+ "tsv",
80
+ "env",
81
+ "lock",
82
+ "gitignore",
83
+ "srt",
84
+ "vtt"
85
+ ]), r = new Set([
86
+ "dockerfile",
87
+ "makefile",
88
+ "license",
89
+ "readme",
90
+ "changelog",
91
+ "authors",
92
+ ".gitignore",
93
+ ".env"
94
+ ]), i = new Set([
95
+ "application/json",
96
+ "application/ld+json",
97
+ "application/xml",
98
+ "application/xhtml+xml",
99
+ "application/javascript",
100
+ "application/ecmascript",
101
+ "application/x-sh",
102
+ "application/x-shellscript",
103
+ "application/x-python",
104
+ "application/x-python-code",
105
+ "application/x-yaml",
106
+ "application/yaml",
107
+ "application/toml",
108
+ "application/x-toml",
109
+ "application/sql",
110
+ "application/graphql",
111
+ "application/x-httpd-php",
112
+ "application/csv",
113
+ "application/markdown",
114
+ "image/svg+xml"
115
+ ]);
116
+ function a(a, o) {
117
+ let s = (o || "").toLowerCase().trim();
118
+ if (s && s !== "application/octet-stream") {
119
+ if (s.startsWith("text/") || i.has(s)) return !0;
120
+ if (s.startsWith("image/") || s.startsWith("audio/") || s.startsWith("video/")) return !1;
121
+ }
122
+ let c = e(a);
123
+ return c ? c in t || n.has(c) : r.has((a || "").toLowerCase());
124
+ }
125
+ var o = 1024 * 1024;
126
+ function s(t, n, r) {
127
+ return e(t) === "log" ? !0 : (r ?? 0) >= 1048576 && a(t, n);
128
+ }
129
+ var c = new Set(["csv", "tsv"]), ee = new Set([
130
+ "text/csv",
131
+ "application/csv",
132
+ "text/tab-separated-values",
133
+ "text/tsv"
134
+ ]);
135
+ function te(t, n) {
136
+ let r = (n || "").toLowerCase().trim();
137
+ if (r && r !== "application/octet-stream") {
138
+ if (ee.has(r)) return !0;
139
+ if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
140
+ }
141
+ return c.has(e(t));
142
+ }
143
+ var ne = new Set(["jsonl", "ndjson"]), l = new Set([
144
+ "application/jsonl",
145
+ "application/x-jsonl",
146
+ "application/jsonlines",
147
+ "application/x-jsonlines",
148
+ "application/x-ndjson",
149
+ "application/ndjson"
150
+ ]);
151
+ function u(t, n) {
152
+ let r = (n || "").toLowerCase().trim();
153
+ if (r && r !== "application/octet-stream") {
154
+ if (l.has(r)) return !0;
155
+ if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
156
+ }
157
+ return ne.has(e(t));
158
+ }
159
+ var d = new Set([
160
+ "application/zip",
161
+ "application/x-zip",
162
+ "application/x-zip-compressed",
163
+ "multipart/x-zip",
164
+ "application/java-archive",
165
+ "application/x-java-archive",
166
+ "application/vnd.android.package-archive"
167
+ ]), f = new Set([
168
+ "zip",
169
+ "jar",
170
+ "war",
171
+ "ear",
172
+ "apk",
173
+ "aar"
174
+ ]);
175
+ function p(t, n) {
176
+ let r = (n || "").toLowerCase().trim();
177
+ if (r && r !== "application/octet-stream") {
178
+ if (d.has(r)) return !0;
179
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
180
+ }
181
+ return f.has(e(t));
182
+ }
183
+ var m = new Set(["application/x-7z-compressed", "application/x-7z"]);
184
+ function h(t, n) {
185
+ let r = (n || "").toLowerCase().trim();
186
+ if (r && r !== "application/octet-stream") {
187
+ if (m.has(r)) return !0;
188
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
189
+ }
190
+ return e(t) === "7z";
191
+ }
192
+ var g = new Set([
193
+ "application/x-tar",
194
+ "application/gzip",
195
+ "application/x-gzip",
196
+ "application/x-gtar",
197
+ "application/x-bzip2",
198
+ "application/x-bzip",
199
+ "application/x-xz",
200
+ "application/x-brotli"
201
+ ]), _ = new Set([
202
+ "tar",
203
+ "gz",
204
+ "tgz",
205
+ "taz",
206
+ "xz",
207
+ "txz",
208
+ "bz2",
209
+ "tbz2",
210
+ "tbz",
211
+ "tb2",
212
+ "br",
213
+ "tbr"
214
+ ]);
215
+ function v(t, n) {
216
+ let r = (n || "").toLowerCase().trim();
217
+ if (r && r !== "application/octet-stream") {
218
+ if (g.has(r)) return !0;
219
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
220
+ }
221
+ return _.has(e(t));
222
+ }
223
+ var y = new Set([
224
+ "application/vnd.rar",
225
+ "application/x-rar-compressed",
226
+ "application/x-rar"
227
+ ]);
228
+ function b(t, n) {
229
+ let r = (n || "").toLowerCase().trim();
230
+ if (r && r !== "application/octet-stream") {
231
+ if (y.has(r)) return !0;
232
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
233
+ }
234
+ return e(t) === "rar";
235
+ }
236
+ var x = new Set([
237
+ "application/dicom",
238
+ "application/dicom+json",
239
+ "image/dicom"
240
+ ]);
241
+ function S(t, n) {
242
+ let r = (n || "").toLowerCase().trim();
243
+ if (r && r !== "application/octet-stream") {
244
+ if (x.has(r)) return !0;
245
+ if (r.startsWith("text/") || r.startsWith("image/") && r !== "image/dicom" || r.startsWith("audio/") || r.startsWith("video/")) return !1;
246
+ }
247
+ let i = e(t);
248
+ return i === "dcm" || i === "dicom";
249
+ }
250
+ var C = new Set([
251
+ "png",
252
+ "jpg",
253
+ "jpeg",
254
+ "gif",
255
+ "webp",
256
+ "bmp",
257
+ "ico",
258
+ "avif",
259
+ "apng",
260
+ "jfif"
261
+ ]), w = new Set([
262
+ "mp4",
263
+ "m4v",
264
+ "webm",
265
+ "ogv",
266
+ "mov",
267
+ "mkv",
268
+ "avi"
269
+ ]);
270
+ function T(t, n) {
271
+ let r = (n || "").toLowerCase().trim();
272
+ if (r && r !== "application/octet-stream") {
273
+ if (r === "image/svg+xml") return !1;
274
+ if (r.startsWith("image/")) return !0;
275
+ if (r.startsWith("text/") || r.startsWith("video/") || r.startsWith("audio/")) return !1;
276
+ }
277
+ return C.has(e(t));
278
+ }
279
+ var E = new Set(["tif", "tiff"]), D = new Set(["psd", "psb"]), O = new Set([
280
+ "heic",
281
+ "heif",
282
+ "hif"
283
+ ]), k = new Set([
284
+ "cr2",
285
+ "cr3",
286
+ "crw",
287
+ "nef",
288
+ "nrw",
289
+ "arw",
290
+ "sr2",
291
+ "srf",
292
+ "dng",
293
+ "raf",
294
+ "rw2",
295
+ "orf",
296
+ "srw",
297
+ "pef",
298
+ "x3f"
299
+ ]);
300
+ function A(t, n) {
301
+ let r = (n || "").toLowerCase().trim();
302
+ if (r && r !== "application/octet-stream") {
303
+ if (r === "image/tiff" || r === "image/x-tiff") return "tiff";
304
+ if (r === "image/vnd.adobe.photoshop" || r === "image/x-photoshop" || r === "application/x-photoshop" || r === "image/psd") return "psd";
305
+ if (r.startsWith("image/heic") || r.startsWith("image/heif")) return "heic";
306
+ }
307
+ let i = e(t);
308
+ return E.has(i) ? "tiff" : D.has(i) ? "psd" : O.has(i) ? "heic" : k.has(i) ? "raw" : null;
309
+ }
310
+ function j(t, n) {
311
+ let r = (n || "").toLowerCase().trim();
312
+ if (r && r !== "application/octet-stream") {
313
+ if (r === "application/epub+zip") return "epub";
314
+ if (r === "application/x-fictionbook+xml" || r === "application/fb2+xml") return "fb2";
315
+ if (r === "application/x-mobipocket-ebook" || r === "application/vnd.amazon.ebook") return "mobi";
316
+ if (r === "image/vnd.djvu" || r === "image/x-djvu") return "djvu";
317
+ }
318
+ let i = e(t);
319
+ return i === "epub" ? "epub" : i === "fb2" ? "fb2" : i === "mobi" || i === "azw" || i === "azw3" || i === "prc" ? "mobi" : i === "djvu" || i === "djv" ? "djvu" : null;
320
+ }
321
+ function M(t, n) {
322
+ let r = (n || "").toLowerCase().trim();
323
+ return r && r !== "application/octet-stream" ? r === "image/svg+xml" : e(t) === "svg";
324
+ }
325
+ function N(t, n) {
326
+ let r = (n || "").toLowerCase().trim();
327
+ if (r && r !== "application/octet-stream") {
328
+ if (r.startsWith("video/")) return !0;
329
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/")) return !1;
330
+ }
331
+ return w.has(e(t));
332
+ }
333
+ function P(t, n) {
334
+ let r = (n || "").toLowerCase().trim();
335
+ if (r && r !== "application/octet-stream") return r === "text/html" || r === "application/xhtml+xml";
336
+ let i = e(t);
337
+ return i === "html" || i === "htm";
338
+ }
339
+ var F = [
340
+ "exe",
341
+ "dll",
342
+ "sys",
343
+ "ocx",
344
+ "cpl",
345
+ "scr",
346
+ "efi",
347
+ "drv",
348
+ "mui",
349
+ "node"
350
+ ], I = [
351
+ "elf",
352
+ "ko",
353
+ "o"
354
+ ];
355
+ function L(t, n) {
356
+ let r = (n || "").toLowerCase().trim();
357
+ if (r && r !== "application/octet-stream" && (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/"))) return !1;
358
+ let i = e(t);
359
+ return F.includes(i) || I.includes(i) ? !0 : /\.so(\.\d+)*$/.test((t || "").toLowerCase());
360
+ }
361
+ function R(t, n) {
362
+ let r = (n || "").toLowerCase().trim();
363
+ if (r && r !== "application/octet-stream" && (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/"))) return !1;
364
+ let i = e(t);
365
+ return i === "e" || i === "ec";
366
+ }
367
+ var z = new Set([
368
+ "application/java-vm",
369
+ "application/x-java-vm",
370
+ "application/java",
371
+ "application/x-java-class",
372
+ "application/java-byte-code"
373
+ ]);
374
+ function B(t, n) {
375
+ let r = (n || "").toLowerCase().trim();
376
+ if (r && r !== "application/octet-stream") {
377
+ if (z.has(r)) return !0;
378
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
379
+ }
380
+ return e(t) === "class";
381
+ }
382
+ var V = new Set(["application/vnd.java.hprof", "application/x-hprof"]);
383
+ function H(t, n) {
384
+ let r = (n || "").toLowerCase().trim();
385
+ if (r && r !== "application/octet-stream") {
386
+ if (V.has(r)) return !0;
387
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
388
+ }
389
+ return e(t) === "hprof";
390
+ }
391
+ var U = new Set(["application/x-msi", "application/vnd.ms-msi"]), W = new Set([
392
+ "msi",
393
+ "msp",
394
+ "msm"
395
+ ]);
396
+ function G(t, n) {
397
+ let r = (n || "").toLowerCase().trim();
398
+ if (r && r !== "application/octet-stream") {
399
+ if (U.has(r)) return !0;
400
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
401
+ }
402
+ return W.has(e(t));
403
+ }
404
+ var K = new Set([
405
+ "application/appx",
406
+ "application/msix",
407
+ "application/appxbundle",
408
+ "application/msixbundle",
409
+ "application/vnd.ms-appx",
410
+ "application/windows.appx"
411
+ ]), q = new Set([
412
+ "appx",
413
+ "msix",
414
+ "appxbundle",
415
+ "msixbundle"
416
+ ]);
417
+ function J(t, n) {
418
+ let r = (n || "").toLowerCase().trim();
419
+ if (r && r !== "application/octet-stream") {
420
+ if (K.has(r)) return !0;
421
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/")) return !1;
422
+ }
423
+ return q.has(e(t));
424
+ }
425
+ var Y = new Set(["application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"]);
426
+ function X(t, n) {
427
+ let r = (n || "").toLowerCase().trim();
428
+ if (r && r !== "application/octet-stream") {
429
+ if (Y.has(r)) return !0;
430
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
431
+ }
432
+ return e(t) === "docx";
433
+ }
434
+ var Z = new Set([
435
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
436
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",
437
+ "application/vnd.ms-excel.sheet.macroenabled.12"
438
+ ]);
439
+ function re(t, n) {
440
+ let r = (n || "").toLowerCase().trim();
441
+ if (r && r !== "application/octet-stream") {
442
+ if (Z.has(r)) return !0;
443
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
444
+ }
445
+ let i = e(t);
446
+ return i === "xlsx" || i === "xlsm";
447
+ }
448
+ var ie = new Set([
449
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation",
450
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml",
451
+ "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
452
+ "application/vnd.ms-powerpoint.presentation.macroenabled.12",
453
+ "application/vnd.ms-powerpoint.slideshow.macroenabled.12"
454
+ ]);
455
+ function ae(t, n) {
456
+ let r = (n || "").toLowerCase().trim();
457
+ if (r && r !== "application/octet-stream") {
458
+ if (ie.has(r)) return !0;
459
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
460
+ }
461
+ let i = e(t);
462
+ return i === "pptx" || i === "pptm" || i === "ppsx";
463
+ }
464
+ var oe = new Set([
465
+ "application/rtf",
466
+ "text/rtf",
467
+ "application/x-rtf",
468
+ "text/richtext"
469
+ ]);
470
+ function se(t, n) {
471
+ let r = (n || "").toLowerCase().trim();
472
+ if (r && r !== "application/octet-stream") {
473
+ if (oe.has(r)) return !0;
474
+ if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
475
+ }
476
+ return e(t) === "rtf";
477
+ }
478
+ var ce = new Set([
479
+ "application/pdf",
480
+ "application/x-pdf",
481
+ "application/acrobat"
482
+ ]);
483
+ function le(t, n) {
484
+ let r = (n || "").toLowerCase().trim();
485
+ if (r && r !== "application/octet-stream") {
486
+ if (ce.has(r)) return !0;
487
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
488
+ }
489
+ return e(t) === "pdf";
490
+ }
491
+ var ue = new Set([
492
+ "text/x-opml",
493
+ "text/x-opml+xml",
494
+ "application/xml+opml",
495
+ "application/x-freemind",
496
+ "application/x-freeplane"
497
+ ]);
498
+ function de(t, n) {
499
+ let r = (n || "").toLowerCase().trim();
500
+ if (r && r !== "application/octet-stream") {
501
+ if (ue.has(r)) return !0;
502
+ if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/") || r === "text/html") return !1;
503
+ }
504
+ let i = e(t);
505
+ return i === "opml" || i === "mm";
506
+ }
507
+ var fe = new Set([
508
+ "application/vnd.xmind.workbook",
509
+ "application/x-xmind",
510
+ "application/xmind"
511
+ ]);
512
+ function pe(t, n) {
513
+ let r = (n || "").toLowerCase().trim();
514
+ if (r && r !== "application/octet-stream") {
515
+ if (fe.has(r)) return !0;
516
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
517
+ }
518
+ return e(t) === "xmind";
519
+ }
520
+ var Q = new Set([
521
+ "image/vnd.dxf",
522
+ "application/dxf",
523
+ "application/x-dxf",
524
+ "drawing/x-dxf"
525
+ ]);
526
+ function me(t, n) {
527
+ let r = (n || "").toLowerCase().trim();
528
+ if (r && r !== "application/octet-stream") {
529
+ if (Q.has(r)) return !0;
530
+ if ((r.startsWith("audio/") || r.startsWith("video/") || r.startsWith("image/")) && !Q.has(r)) return !1;
531
+ }
532
+ return e(t) === "dxf";
533
+ }
534
+ var he = new Set([
535
+ "message/rfc822",
536
+ "application/eml",
537
+ "text/eml",
538
+ "message/global"
539
+ ]);
540
+ function ge(t, n) {
541
+ let r = e(t);
542
+ if (r === "mht" || r === "mhtml") return !1;
543
+ let i = (n || "").toLowerCase().trim();
544
+ if (i && i !== "application/octet-stream") {
545
+ if (he.has(i)) return !0;
546
+ if (i.startsWith("image/") || i.startsWith("audio/") || i.startsWith("video/")) return !1;
547
+ }
548
+ return r === "eml";
549
+ }
550
+ function _e(t, n) {
551
+ let r = e(t);
552
+ if (r === "mht" || r === "mhtml") return !0;
553
+ let i = (n || "").toLowerCase().trim();
554
+ return i === "multipart/related" || i === "application/x-mimearchive";
555
+ }
556
+ var ve = new Set(["application/har+json", "application/x-har"]);
557
+ function ye(t, n) {
558
+ let r = (n || "").toLowerCase().trim();
559
+ if (r && r !== "application/octet-stream") {
560
+ if (ve.has(r)) return !0;
561
+ if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
562
+ }
563
+ return e(t) === "har";
564
+ }
565
+ var be = new Set([
566
+ "application/x-sqlite3",
567
+ "application/vnd.sqlite3",
568
+ "application/x-sqlite"
569
+ ]), xe = new Set([
570
+ "sqlite",
571
+ "sqlite3",
572
+ "db",
573
+ "db3",
574
+ "sqlitedb"
575
+ ]);
576
+ function Se(t, n) {
577
+ let r = (n || "").toLowerCase().trim();
578
+ if (r && r !== "application/octet-stream") {
579
+ if (be.has(r)) return !0;
580
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
581
+ }
582
+ return xe.has(e(t));
583
+ }
584
+ var Ce = new Set([
585
+ "pem",
586
+ "crt",
587
+ "cer",
588
+ "der",
589
+ "csr",
590
+ "req",
591
+ "key",
592
+ "p7b",
593
+ "p7c"
594
+ ]), we = new Set([
595
+ "application/x-x509-ca-cert",
596
+ "application/x-x509-user-cert",
597
+ "application/x-x509-cert",
598
+ "application/pkix-cert",
599
+ "application/pkix-crl",
600
+ "application/x-pem-file",
601
+ "application/pkcs8",
602
+ "application/pkcs10",
603
+ "application/x-pkcs7-certificates"
604
+ ]);
605
+ function Te(t, n) {
606
+ let r = (n || "").toLowerCase().trim();
607
+ if (r && r !== "application/octet-stream") {
608
+ if (we.has(r)) return !0;
609
+ if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
610
+ }
611
+ return Ce.has(e(t));
612
+ }
613
+ var Ee = new Set([
614
+ "application/x-java-keystore",
615
+ "application/x-java-jce-keystore",
616
+ "application/x-pkcs12",
617
+ "application/pkcs12"
618
+ ]), De = new Set([
619
+ "jks",
620
+ "keystore",
621
+ "ks",
622
+ "jceks",
623
+ "truststore",
624
+ "p12",
625
+ "pfx"
626
+ ]);
627
+ function Oe(t, n) {
628
+ let r = (n || "").toLowerCase().trim();
629
+ if (r && r !== "application/octet-stream") {
630
+ if (Ee.has(r)) return !0;
631
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
632
+ }
633
+ return De.has(e(t));
634
+ }
635
+ var ke = new Set([
636
+ "geojson",
637
+ "kml",
638
+ "gpx"
639
+ ]), Ae = new Set([
640
+ "application/geo+json",
641
+ "application/vnd.geo+json",
642
+ "application/vnd.google-earth.kml+xml",
643
+ "application/gpx+xml",
644
+ "application/x-gpx+xml"
645
+ ]);
646
+ function je(t, n) {
647
+ let r = (n || "").toLowerCase().trim();
648
+ if (r && r !== "application/octet-stream") {
649
+ if (Ae.has(r)) return !0;
650
+ if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
651
+ }
652
+ return ke.has(e(t));
653
+ }
654
+ var Me = new Set([
655
+ "srt",
656
+ "vtt",
657
+ "ass",
658
+ "ssa"
659
+ ]), Ne = new Set([
660
+ "application/x-subrip",
661
+ "application/x-subrip+srt",
662
+ "text/vtt",
663
+ "text/x-ssa",
664
+ "text/x-ass"
665
+ ]);
666
+ function Pe(t, n) {
667
+ let r = (n || "").toLowerCase().trim();
668
+ if (r && r !== "application/octet-stream") {
669
+ if (Ne.has(r)) return !0;
670
+ if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
671
+ }
672
+ return Me.has(e(t));
673
+ }
674
+ var $ = new Set([
675
+ "stl",
676
+ "obj",
677
+ "ply",
678
+ "glb",
679
+ "gltf"
680
+ ]), Fe = new Set([
681
+ "model/gltf-binary",
682
+ "model/gltf+json",
683
+ "model/stl",
684
+ "application/sla",
685
+ "application/vnd.ms-pki.stl",
686
+ "model/obj",
687
+ "model/ply"
688
+ ]);
689
+ function Ie(t, n) {
690
+ let r = (n || "").toLowerCase().trim();
691
+ if (r && r !== "application/octet-stream") {
692
+ if (Fe.has(r) || r.startsWith("model/")) return !0;
693
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
694
+ }
695
+ return $.has(e(t));
696
+ }
697
+ var Le = new Set([
698
+ "mp3",
699
+ "wav",
700
+ "flac",
701
+ "ogg",
702
+ "oga",
703
+ "m4a",
704
+ "aac",
705
+ "opus",
706
+ "weba",
707
+ "mid",
708
+ "midi",
709
+ "amr",
710
+ "awb",
711
+ "silk",
712
+ "slk"
713
+ ]);
714
+ function Re(t, n) {
715
+ let r = (n || "").toLowerCase().trim();
716
+ if (r && r !== "application/octet-stream") {
717
+ if (r.startsWith("audio/")) return !0;
718
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("video/")) return !1;
719
+ }
720
+ return Le.has(e(t));
721
+ }
722
+ var ze = new Set(["application/x-ipynb+json", "application/ipynb+json"]);
723
+ function Be(t, n) {
724
+ let r = (n || "").toLowerCase().trim();
725
+ if (r && r !== "application/octet-stream") {
726
+ if (ze.has(r)) return !0;
727
+ if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
728
+ }
729
+ return e(t) === "ipynb";
730
+ }
731
+ var Ve = new Set([
732
+ "ttf",
733
+ "otf",
734
+ "woff",
735
+ "woff2"
736
+ ]), He = new Set([
737
+ "font/ttf",
738
+ "font/otf",
739
+ "font/woff",
740
+ "font/woff2",
741
+ "font/sfnt",
742
+ "application/font-woff",
743
+ "application/font-woff2",
744
+ "application/x-font-ttf",
745
+ "application/x-font-otf",
746
+ "application/x-font-truetype",
747
+ "application/x-font-opentype",
748
+ "application/font-sfnt",
749
+ "application/vnd.ms-opentype"
750
+ ]);
751
+ function Ue(t, n) {
752
+ let r = (n || "").toLowerCase().trim();
753
+ if (r && r !== "application/octet-stream") {
754
+ if (He.has(r)) return !0;
755
+ if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
756
+ }
757
+ return Ve.has(e(t));
758
+ }
759
+ var We = new Set([
760
+ "mflac",
761
+ "mflac0",
762
+ "mflac1",
763
+ "mflaca",
764
+ "mgg",
765
+ "mgg0",
766
+ "mgg1",
767
+ "mggl"
768
+ ]);
769
+ function Ge(t, n) {
770
+ let r = (n || "").toLowerCase().trim();
771
+ return r && r !== "application/octet-stream" && (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("video/")) ? !1 : We.has(e(t));
772
+ }
773
+ var Ke = new Set([
774
+ "application/lrc",
775
+ "text/lrc",
776
+ "application/x-lrc"
777
+ ]);
778
+ function qe(t, n) {
779
+ let r = (n || "").toLowerCase().trim();
780
+ if (r && r !== "application/octet-stream") {
781
+ if (Ke.has(r)) return !0;
782
+ if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
783
+ }
784
+ return e(t) === "lrc";
785
+ }
786
+ function Je(n, r) {
787
+ let i = e(n);
788
+ if (i && i in t) return t[i];
789
+ let a = (r || "").toLowerCase().trim();
790
+ if (a === "text/markdown" || a === "application/markdown") return "markdown";
791
+ if (a === "application/json" || a === "application/ld+json") return "json";
792
+ if (a === "application/xml" || a === "application/xhtml+xml" || a === "image/svg+xml" || a === "text/html") return "xml";
793
+ if (a.includes("yaml")) return "yaml";
794
+ if (a === "text/css") return "css";
795
+ if (a === "application/javascript" || a === "application/ecmascript") return "javascript";
796
+ let o = (n || "").toLowerCase();
797
+ return o === "dockerfile" ? "dockerfile" : o === "makefile" ? "makefile" : "";
798
+ }
799
+ //#endregion
800
+ export { o as LARGE_TEXT_BYTES, j as ebookKind, e as fileExt, Je as hljsLang, J as isAppxFile, Re as isAudioFile, L as isBinaryObjFile, Te as isCertFile, te as isCsvFile, S as isDicomFile, X as isDocxFile, me as isDxfFile, ge as isEmlFile, R as isEplFile, Ue as isFontFile, je as isGeoFile, ye as isHarFile, H as isHprofFile, P as isHtmlFile, T as isImageFile, B as isJavaClassFile, Oe as isJksFile, u as isJsonlFile, s as isLogFile, qe as isLrcFile, _e as isMhtFile, de as isMindMapFile, Ie as isModelFile, G as isMsiFile, Be as isNotebookFile, le as isPdfFile, ae as isPptxFile, Ge as isQmcAudioFile, b as isRarFile, se as isRtfFile, h as isSevenZipFile, Se as isSqliteFile, Pe as isSubtitleFile, M as isSvgFile, v as isTarballFile, a as isTextFile, N as isVideoFile, re as isXlsxFile, pe as isXmindFile, p as isZipFile, A as rasterImageKind };