iobroker.vis-jsontemplate 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (514) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +536 -0
  3. package/admin/vis-jsontemplate.png +0 -0
  4. package/admin/words.js +6 -0
  5. package/io-package.json +115 -0
  6. package/package.json +72 -0
  7. package/widgets/eslint.config.mjs +27 -0
  8. package/widgets/package.json +14 -0
  9. package/widgets/vis-jsontemplate/css/agate.css +108 -0
  10. package/widgets/vis-jsontemplate/css/doc.css +163 -0
  11. package/widgets/vis-jsontemplate/css/style.css +4 -0
  12. package/widgets/vis-jsontemplate/dist/jsontemplate-dist.js +1344 -0
  13. package/widgets/vis-jsontemplate/dist/jsontemplate-dist.js.map +7 -0
  14. package/widgets/vis-jsontemplate/i18n/words.json +54 -0
  15. package/widgets/vis-jsontemplate/img/jsontemplate.png +0 -0
  16. package/widgets/vis-jsontemplate/js/bundle.js +2 -0
  17. package/widgets/vis-jsontemplate/js/ejs.js +1532 -0
  18. package/widgets/vis-jsontemplate/js/jsontemplate.js +346 -0
  19. package/widgets/vis-jsontemplate/js/mode-ejs.js +3025 -0
  20. package/widgets/vis-jsontemplate.html +19 -0
  21. package/widgets/vis2vis-jsontemplate/assets/JSONTemplateWidget-CgoV9KML.js +1563 -0
  22. package/widgets/vis2vis-jsontemplate/assets/_commonjsHelpers-DsqdWQfm.js +1 -0
  23. package/widgets/vis2vis-jsontemplate/assets/abap-DfmzwOny.js +1 -0
  24. package/widgets/vis2vis-jsontemplate/assets/abc-CwfNa2Co.js +32 -0
  25. package/widgets/vis2vis-jsontemplate/assets/actionscript-i2dYZlPV.js +158 -0
  26. package/widgets/vis2vis-jsontemplate/assets/ada-D8cv3bAk.js +1 -0
  27. package/widgets/vis2vis-jsontemplate/assets/alda-BnZCAn_Y.js +1 -0
  28. package/widgets/vis2vis-jsontemplate/assets/apache_conf-B2jcq9vM.js +1 -0
  29. package/widgets/vis2vis-jsontemplate/assets/apex-BnDrFY2n.js +1 -0
  30. package/widgets/vis2vis-jsontemplate/assets/applescript-Dtx6iIWt.js +1 -0
  31. package/widgets/vis2vis-jsontemplate/assets/aql-CR8jDz4P.js +1 -0
  32. package/widgets/vis2vis-jsontemplate/assets/asciidoc-CTtTEKKR.js +1 -0
  33. package/widgets/vis2vis-jsontemplate/assets/asl-CGDnhWkr.js +1 -0
  34. package/widgets/vis2vis-jsontemplate/assets/assembly_arm32-DmUGZg4l.js +1 -0
  35. package/widgets/vis2vis-jsontemplate/assets/assembly_x86-CgGhNn_8.js +1 -0
  36. package/widgets/vis2vis-jsontemplate/assets/astro-C6vYAtVy.js +1 -0
  37. package/widgets/vis2vis-jsontemplate/assets/autohotkey-DL7PtRJU.js +1 -0
  38. package/widgets/vis2vis-jsontemplate/assets/basic-DpGwy_JF.js +1 -0
  39. package/widgets/vis2vis-jsontemplate/assets/batchfile-CMUqBaJo.js +1 -0
  40. package/widgets/vis2vis-jsontemplate/assets/bibtex-CBKG4IBI.js +1 -0
  41. package/widgets/vis2vis-jsontemplate/assets/c9search-BzbdQPPO.js +1 -0
  42. package/widgets/vis2vis-jsontemplate/assets/c_cpp-D4DfiamA.js +132 -0
  43. package/widgets/vis2vis-jsontemplate/assets/cirru-UmvTEMH2.js +1 -0
  44. package/widgets/vis2vis-jsontemplate/assets/clojure-BvfuACp1.js +91 -0
  45. package/widgets/vis2vis-jsontemplate/assets/clue-q0X5feRk.js +1 -0
  46. package/widgets/vis2vis-jsontemplate/assets/cobol-CJDamiOp.js +1 -0
  47. package/widgets/vis2vis-jsontemplate/assets/coffee-DKyPKpfN.js +96 -0
  48. package/widgets/vis2vis-jsontemplate/assets/coldfusion-jQBfC77-.js +1 -0
  49. package/widgets/vis2vis-jsontemplate/assets/createSvgIcon-BzWa0w5J.js +7 -0
  50. package/widgets/vis2vis-jsontemplate/assets/crystal-Xmewh1AX.js +1 -0
  51. package/widgets/vis2vis-jsontemplate/assets/csharp-BX2hMNfl.js +1 -0
  52. package/widgets/vis2vis-jsontemplate/assets/csound_document-BYTAf4zh.js +11 -0
  53. package/widgets/vis2vis-jsontemplate/assets/csound_orchestra-Bkyfk74i.js +48 -0
  54. package/widgets/vis2vis-jsontemplate/assets/csound_score-DhKjTAqK.js +1 -0
  55. package/widgets/vis2vis-jsontemplate/assets/csp-BVgLU7jE.js +1 -0
  56. package/widgets/vis2vis-jsontemplate/assets/css-DZLpieJP.js +968 -0
  57. package/widgets/vis2vis-jsontemplate/assets/csv-D_5OW9bB.js +1 -0
  58. package/widgets/vis2vis-jsontemplate/assets/curly-D0Tb-q1n.js +1 -0
  59. package/widgets/vis2vis-jsontemplate/assets/cuttlefish-BB4QY2Rz.js +1 -0
  60. package/widgets/vis2vis-jsontemplate/assets/d-ZKWDuB0_.js +1 -0
  61. package/widgets/vis2vis-jsontemplate/assets/dart-BNJffOyh.js +84 -0
  62. package/widgets/vis2vis-jsontemplate/assets/defaultTheme-WWPLMFZt.js +16 -0
  63. package/widgets/vis2vis-jsontemplate/assets/diff-BEYejKtJ.js +1 -0
  64. package/widgets/vis2vis-jsontemplate/assets/django-DKKc_ed5.js +109 -0
  65. package/widgets/vis2vis-jsontemplate/assets/dockerfile-DZXH_6WL.js +1 -0
  66. package/widgets/vis2vis-jsontemplate/assets/dot-CSB_DfTc.js +1 -0
  67. package/widgets/vis2vis-jsontemplate/assets/drools-nRr1FiNd.js +20 -0
  68. package/widgets/vis2vis-jsontemplate/assets/edifact-BVKa_fHy.js +241 -0
  69. package/widgets/vis2vis-jsontemplate/assets/eiffel-uT8kjWRN.js +1 -0
  70. package/widgets/vis2vis-jsontemplate/assets/elixir-DtwfFhQ8.js +1 -0
  71. package/widgets/vis2vis-jsontemplate/assets/elm-D4pytUf9.js +1 -0
  72. package/widgets/vis2vis-jsontemplate/assets/erlang-DLPi5bw-.js +161 -0
  73. package/widgets/vis2vis-jsontemplate/assets/ext-beautify-B7kCn5eA.js +3 -0
  74. package/widgets/vis2vis-jsontemplate/assets/ext-code_lens-Cd0L1scq.js +23 -0
  75. package/widgets/vis2vis-jsontemplate/assets/ext-command_bar-CACcXZrU.js +115 -0
  76. package/widgets/vis2vis-jsontemplate/assets/ext-diff-Dv4WtRZc.js +151 -0
  77. package/widgets/vis2vis-jsontemplate/assets/ext-elastic_tabstops_lite-VRqnv66z.js +1 -0
  78. package/widgets/vis2vis-jsontemplate/assets/ext-emmet-CZ96P7gQ.js +14 -0
  79. package/widgets/vis2vis-jsontemplate/assets/ext-error_marker-BkxAtjZn.js +1 -0
  80. package/widgets/vis2vis-jsontemplate/assets/ext-hardwrap-DOx3BiAc.js +2 -0
  81. package/widgets/vis2vis-jsontemplate/assets/ext-inline_autocomplete-9gt-h0ru.js +235 -0
  82. package/widgets/vis2vis-jsontemplate/assets/ext-keybinding_menu-gzsgTxEE.js +64 -0
  83. package/widgets/vis2vis-jsontemplate/assets/ext-linking-wSRE0KER.js +1 -0
  84. package/widgets/vis2vis-jsontemplate/assets/ext-modelist-CKVsSg9k.js +1 -0
  85. package/widgets/vis2vis-jsontemplate/assets/ext-options-BXmc73M0.js +64 -0
  86. package/widgets/vis2vis-jsontemplate/assets/ext-prompt-Cj8XYZzP.js +178 -0
  87. package/widgets/vis2vis-jsontemplate/assets/ext-rtl-Bwce-jN9.js +1 -0
  88. package/widgets/vis2vis-jsontemplate/assets/ext-searchbox-BRgKKnhq.js +164 -0
  89. package/widgets/vis2vis-jsontemplate/assets/ext-settings_menu-B3vu25Es.js +64 -0
  90. package/widgets/vis2vis-jsontemplate/assets/ext-simple_tokenizer-MkPEmA4u.js +1 -0
  91. package/widgets/vis2vis-jsontemplate/assets/ext-spellcheck-DAWtK7lF.js +1 -0
  92. package/widgets/vis2vis-jsontemplate/assets/ext-static_highlight-BwPaHOba.js +41 -0
  93. package/widgets/vis2vis-jsontemplate/assets/ext-statusbar-Dkmz7M2l.js +1 -0
  94. package/widgets/vis2vis-jsontemplate/assets/ext-textarea-MRaqZ_vl.js +1 -0
  95. package/widgets/vis2vis-jsontemplate/assets/ext-themelist-DSJRISt7.js +1 -0
  96. package/widgets/vis2vis-jsontemplate/assets/ext-whitespace-CIw_x4la.js +1 -0
  97. package/widgets/vis2vis-jsontemplate/assets/flix-BnYChX6M.js +1 -0
  98. package/widgets/vis2vis-jsontemplate/assets/forth-C7qLFM9f.js +1 -0
  99. package/widgets/vis2vis-jsontemplate/assets/fortran-D7LyTru1.js +1 -0
  100. package/widgets/vis2vis-jsontemplate/assets/fsharp-BLTDJuay.js +1 -0
  101. package/widgets/vis2vis-jsontemplate/assets/fsl-CdTU_n9i.js +10 -0
  102. package/widgets/vis2vis-jsontemplate/assets/ftl-C9sNDcIo.js +1 -0
  103. package/widgets/vis2vis-jsontemplate/assets/gcode--LKSXs7E.js +1 -0
  104. package/widgets/vis2vis-jsontemplate/assets/gherkin-DF5zs6Z9.js +1 -0
  105. package/widgets/vis2vis-jsontemplate/assets/gitignore-DUetkVs4.js +1 -0
  106. package/widgets/vis2vis-jsontemplate/assets/glsl-COGwuk5H.js +1 -0
  107. package/widgets/vis2vis-jsontemplate/assets/gobstones-Br2Q_Ugk.js +1705 -0
  108. package/widgets/vis2vis-jsontemplate/assets/golang-CNkGUfhJ.js +1 -0
  109. package/widgets/vis2vis-jsontemplate/assets/graphqlschema-7tZ2HYRX.js +33 -0
  110. package/widgets/vis2vis-jsontemplate/assets/groovy-DLai4UlA.js +1 -0
  111. package/widgets/vis2vis-jsontemplate/assets/haml-Ddk-m970.js +21 -0
  112. package/widgets/vis2vis-jsontemplate/assets/handlebars-ChbQGB3d.js +1 -0
  113. package/widgets/vis2vis-jsontemplate/assets/haskell-DwAb6s6I.js +83 -0
  114. package/widgets/vis2vis-jsontemplate/assets/haskell_cabal-BETkhooQ.js +1 -0
  115. package/widgets/vis2vis-jsontemplate/assets/haxe-BAeGzG-s.js +1 -0
  116. package/widgets/vis2vis-jsontemplate/assets/hjson-Cn5g-vro.js +1 -0
  117. package/widgets/vis2vis-jsontemplate/assets/hostInit-BDi6DR-Y.js +2 -0
  118. package/widgets/vis2vis-jsontemplate/assets/html-Y77dZPwR.js +854 -0
  119. package/widgets/vis2vis-jsontemplate/assets/html_elixir-BZT1fAVA.js +1 -0
  120. package/widgets/vis2vis-jsontemplate/assets/html_ruby-ZJfpYv6X.js +1 -0
  121. package/widgets/vis2vis-jsontemplate/assets/index-1uf8j2YM.js +228 -0
  122. package/widgets/vis2vis-jsontemplate/assets/index-BiSoXv7x.js +9 -0
  123. package/widgets/vis2vis-jsontemplate/assets/index-DYmfCyJR.js +1 -0
  124. package/widgets/vis2vis-jsontemplate/assets/index-Dp6AGEHk.js +1 -0
  125. package/widgets/vis2vis-jsontemplate/assets/index-DxU1QEIH.js +24 -0
  126. package/widgets/vis2vis-jsontemplate/assets/index-s1k6Tdvt.js +934 -0
  127. package/widgets/vis2vis-jsontemplate/assets/ini-DOrp8VAL.js +1 -0
  128. package/widgets/vis2vis-jsontemplate/assets/io-B6WPW4S3.js +7 -0
  129. package/widgets/vis2vis-jsontemplate/assets/ion-BxjKPSGO.js +1 -0
  130. package/widgets/vis2vis-jsontemplate/assets/jack-DrJMuola.js +1 -0
  131. package/widgets/vis2vis-jsontemplate/assets/jade-CbhHZW3W.js +1 -0
  132. package/widgets/vis2vis-jsontemplate/assets/java-L1LAgMtF.js +241 -0
  133. package/widgets/vis2vis-jsontemplate/assets/javascript-DBBdZ2gE.js +196 -0
  134. package/widgets/vis2vis-jsontemplate/assets/jexl-Dnikqs0-.js +1 -0
  135. package/widgets/vis2vis-jsontemplate/assets/json-cePerCHg.js +1 -0
  136. package/widgets/vis2vis-jsontemplate/assets/json5-CEf7P4mW.js +1 -0
  137. package/widgets/vis2vis-jsontemplate/assets/jsoniq-CBTitV1b.js +62 -0
  138. package/widgets/vis2vis-jsontemplate/assets/jsp-GnrKeHhA.js +100 -0
  139. package/widgets/vis2vis-jsontemplate/assets/jssm-CNl_ppkL.js +1 -0
  140. package/widgets/vis2vis-jsontemplate/assets/jsx-Dcd392cc.js +1 -0
  141. package/widgets/vis2vis-jsontemplate/assets/jsx-runtime-BAfZVaXB.js +9 -0
  142. package/widgets/vis2vis-jsontemplate/assets/julia-C9h3gepL.js +1 -0
  143. package/widgets/vis2vis-jsontemplate/assets/keybinding-emacs-BaUjXW98.js +51 -0
  144. package/widgets/vis2vis-jsontemplate/assets/keybinding-sublime-YH75Ct6d.js +1 -0
  145. package/widgets/vis2vis-jsontemplate/assets/keybinding-vim-CaVW7c9r.js +65 -0
  146. package/widgets/vis2vis-jsontemplate/assets/keybinding-vscode-BDZTuICh.js +1 -0
  147. package/widgets/vis2vis-jsontemplate/assets/kotlin-fH8Pursa.js +1 -0
  148. package/widgets/vis2vis-jsontemplate/assets/latex-Br5EtP_p.js +1 -0
  149. package/widgets/vis2vis-jsontemplate/assets/latte-DHpZVVJ2.js +1 -0
  150. package/widgets/vis2vis-jsontemplate/assets/less-B35SVqSd.js +1 -0
  151. package/widgets/vis2vis-jsontemplate/assets/liquid-qyWKOevD.js +882 -0
  152. package/widgets/vis2vis-jsontemplate/assets/lisp-Bn4vKlba.js +1 -0
  153. package/widgets/vis2vis-jsontemplate/assets/livescript-DhxGkJ79.js +1 -0
  154. package/widgets/vis2vis-jsontemplate/assets/logiql-BFSlSEOg.js +1 -0
  155. package/widgets/vis2vis-jsontemplate/assets/logtalk-x5SPdOmO.js +1 -0
  156. package/widgets/vis2vis-jsontemplate/assets/lsl-CkX2tYha.js +1233 -0
  157. package/widgets/vis2vis-jsontemplate/assets/lua-B6tQSosf.js +22 -0
  158. package/widgets/vis2vis-jsontemplate/assets/luapage-BQOhc2op.js +1 -0
  159. package/widgets/vis2vis-jsontemplate/assets/lucene-B_Ui40TE.js +1 -0
  160. package/widgets/vis2vis-jsontemplate/assets/makefile-DCaIcxsE.js +5 -0
  161. package/widgets/vis2vis-jsontemplate/assets/markdown-Ds-l5XVV.js +89 -0
  162. package/widgets/vis2vis-jsontemplate/assets/mask-DzUgFl4f.js +1 -0
  163. package/widgets/vis2vis-jsontemplate/assets/matlab-DMmM5wsi.js +1 -0
  164. package/widgets/vis2vis-jsontemplate/assets/maze-Dtm3r2jA.js +10 -0
  165. package/widgets/vis2vis-jsontemplate/assets/mediawiki-DJkwyw9T.js +1 -0
  166. package/widgets/vis2vis-jsontemplate/assets/mel-T4CX3Ax0.js +1 -0
  167. package/widgets/vis2vis-jsontemplate/assets/mips-D0HfPNMe.js +1 -0
  168. package/widgets/vis2vis-jsontemplate/assets/mixal-CHOHPvAw.js +1 -0
  169. package/widgets/vis2vis-jsontemplate/assets/mode-abap-Cx2uGxmu.js +1 -0
  170. package/widgets/vis2vis-jsontemplate/assets/mode-abc-DNxxXgCn.js +1 -0
  171. package/widgets/vis2vis-jsontemplate/assets/mode-actionscript-Lqs4aUly.js +1 -0
  172. package/widgets/vis2vis-jsontemplate/assets/mode-ada-DMVjprza.js +1 -0
  173. package/widgets/vis2vis-jsontemplate/assets/mode-alda-C227mkWP.js +1 -0
  174. package/widgets/vis2vis-jsontemplate/assets/mode-apache_conf-DUgycb9k.js +1 -0
  175. package/widgets/vis2vis-jsontemplate/assets/mode-apex-WVQriCPM.js +1 -0
  176. package/widgets/vis2vis-jsontemplate/assets/mode-applescript-BIn6R63y.js +1 -0
  177. package/widgets/vis2vis-jsontemplate/assets/mode-aql-DO0Ecwp8.js +1 -0
  178. package/widgets/vis2vis-jsontemplate/assets/mode-asciidoc-CrgKnY1x.js +1 -0
  179. package/widgets/vis2vis-jsontemplate/assets/mode-asl-BYJnt3jo.js +1 -0
  180. package/widgets/vis2vis-jsontemplate/assets/mode-assembly_arm32-CetKLDV4.js +1 -0
  181. package/widgets/vis2vis-jsontemplate/assets/mode-assembly_x86-CubIXjg2.js +1 -0
  182. package/widgets/vis2vis-jsontemplate/assets/mode-astro-Dr-YkJd2.js +5 -0
  183. package/widgets/vis2vis-jsontemplate/assets/mode-autohotkey-CGdAUSVJ.js +1 -0
  184. package/widgets/vis2vis-jsontemplate/assets/mode-basic-YPMOcp_T.js +1 -0
  185. package/widgets/vis2vis-jsontemplate/assets/mode-batchfile-B-Zv3TtT.js +1 -0
  186. package/widgets/vis2vis-jsontemplate/assets/mode-bibtex-TG2Wchr5.js +1 -0
  187. package/widgets/vis2vis-jsontemplate/assets/mode-c9search-B7V8RiOe.js +1 -0
  188. package/widgets/vis2vis-jsontemplate/assets/mode-c_cpp-ZsOtduiQ.js +1 -0
  189. package/widgets/vis2vis-jsontemplate/assets/mode-cirru-CEOsriet.js +1 -0
  190. package/widgets/vis2vis-jsontemplate/assets/mode-clojure-BXwnpilm.js +1 -0
  191. package/widgets/vis2vis-jsontemplate/assets/mode-clue-BZbZE0ou.js +1 -0
  192. package/widgets/vis2vis-jsontemplate/assets/mode-cobol-Dfq9SVVZ.js +1 -0
  193. package/widgets/vis2vis-jsontemplate/assets/mode-coffee-xrjY_rju.js +1 -0
  194. package/widgets/vis2vis-jsontemplate/assets/mode-coldfusion-OZwNZrIZ.js +5 -0
  195. package/widgets/vis2vis-jsontemplate/assets/mode-crystal-BIG_YDiU.js +1 -0
  196. package/widgets/vis2vis-jsontemplate/assets/mode-csharp-DBF-FKTE.js +1 -0
  197. package/widgets/vis2vis-jsontemplate/assets/mode-csound_document-DLDvhrWv.js +1 -0
  198. package/widgets/vis2vis-jsontemplate/assets/mode-csound_orchestra-Yrq2iOqw.js +1 -0
  199. package/widgets/vis2vis-jsontemplate/assets/mode-csound_score-B80xm_9p.js +1 -0
  200. package/widgets/vis2vis-jsontemplate/assets/mode-csp-D74FoMl0.js +1 -0
  201. package/widgets/vis2vis-jsontemplate/assets/mode-css-C3msDUrB.js +1 -0
  202. package/widgets/vis2vis-jsontemplate/assets/mode-csv-CdmtvoKD.js +1 -0
  203. package/widgets/vis2vis-jsontemplate/assets/mode-curly-CCqoptjF.js +5 -0
  204. package/widgets/vis2vis-jsontemplate/assets/mode-cuttlefish-B1PQW5qP.js +1 -0
  205. package/widgets/vis2vis-jsontemplate/assets/mode-d-tHqFRuWz.js +1 -0
  206. package/widgets/vis2vis-jsontemplate/assets/mode-dart-BUry-_Uq.js +1 -0
  207. package/widgets/vis2vis-jsontemplate/assets/mode-diff-CXDWrh6N.js +1 -0
  208. package/widgets/vis2vis-jsontemplate/assets/mode-django-l3su_Wch.js +5 -0
  209. package/widgets/vis2vis-jsontemplate/assets/mode-dockerfile-D00fpghG.js +3 -0
  210. package/widgets/vis2vis-jsontemplate/assets/mode-dot-CRgOy-4H.js +1 -0
  211. package/widgets/vis2vis-jsontemplate/assets/mode-drools-CdNIEfYS.js +1 -0
  212. package/widgets/vis2vis-jsontemplate/assets/mode-edifact-BJt5WRnI.js +1 -0
  213. package/widgets/vis2vis-jsontemplate/assets/mode-eiffel-CjOQ59Mh.js +1 -0
  214. package/widgets/vis2vis-jsontemplate/assets/mode-elixir-BBYnnLNP.js +17 -0
  215. package/widgets/vis2vis-jsontemplate/assets/mode-elm-C4hPf63s.js +1 -0
  216. package/widgets/vis2vis-jsontemplate/assets/mode-erlang-DTO4AJg8.js +1 -0
  217. package/widgets/vis2vis-jsontemplate/assets/mode-flix-WJhDWOJK.js +1 -0
  218. package/widgets/vis2vis-jsontemplate/assets/mode-forth-D5yqLhHX.js +1 -0
  219. package/widgets/vis2vis-jsontemplate/assets/mode-fortran-FuOeWb1y.js +3 -0
  220. package/widgets/vis2vis-jsontemplate/assets/mode-fsharp-DWB4FB5I.js +1 -0
  221. package/widgets/vis2vis-jsontemplate/assets/mode-fsl-BbD49gQN.js +1 -0
  222. package/widgets/vis2vis-jsontemplate/assets/mode-ftl-DCBaSrCS.js +1 -0
  223. package/widgets/vis2vis-jsontemplate/assets/mode-gcode-DyycwyUB.js +1 -0
  224. package/widgets/vis2vis-jsontemplate/assets/mode-gherkin-ClzVT6c8.js +1 -0
  225. package/widgets/vis2vis-jsontemplate/assets/mode-gitignore-Cm81mNe0.js +1 -0
  226. package/widgets/vis2vis-jsontemplate/assets/mode-glsl-BmnhJ7jD.js +1 -0
  227. package/widgets/vis2vis-jsontemplate/assets/mode-gobstones-DsTc490f.js +5 -0
  228. package/widgets/vis2vis-jsontemplate/assets/mode-golang-W5yNK8NQ.js +1 -0
  229. package/widgets/vis2vis-jsontemplate/assets/mode-graphqlschema-C1W1BXTc.js +1 -0
  230. package/widgets/vis2vis-jsontemplate/assets/mode-groovy-Dtz-6Z7P.js +5 -0
  231. package/widgets/vis2vis-jsontemplate/assets/mode-haml-DzRoVgZi.js +1 -0
  232. package/widgets/vis2vis-jsontemplate/assets/mode-handlebars-CmnS29SD.js +5 -0
  233. package/widgets/vis2vis-jsontemplate/assets/mode-haskell-BoBVITB9.js +1 -0
  234. package/widgets/vis2vis-jsontemplate/assets/mode-haskell_cabal-CKxlr3jF.js +1 -0
  235. package/widgets/vis2vis-jsontemplate/assets/mode-haxe-E5rGLUJe.js +1 -0
  236. package/widgets/vis2vis-jsontemplate/assets/mode-hjson-BeLPW_Cs.js +20 -0
  237. package/widgets/vis2vis-jsontemplate/assets/mode-html-Dk56Z7Z_.js +5 -0
  238. package/widgets/vis2vis-jsontemplate/assets/mode-html_elixir-COi9C8Yo.js +21 -0
  239. package/widgets/vis2vis-jsontemplate/assets/mode-html_ruby-C2Pmjq37.js +5 -0
  240. package/widgets/vis2vis-jsontemplate/assets/mode-ini-BtBiRyI-.js +1 -0
  241. package/widgets/vis2vis-jsontemplate/assets/mode-io-BbkCkGZV.js +1 -0
  242. package/widgets/vis2vis-jsontemplate/assets/mode-ion-CcLU5PF_.js +1 -0
  243. package/widgets/vis2vis-jsontemplate/assets/mode-jack-CE-rcZti.js +1 -0
  244. package/widgets/vis2vis-jsontemplate/assets/mode-jade-BwjId9Hq.js +1 -0
  245. package/widgets/vis2vis-jsontemplate/assets/mode-java-CVwdagwT.js +5 -0
  246. package/widgets/vis2vis-jsontemplate/assets/mode-javascript-Uyq4Qy-A.js +5 -0
  247. package/widgets/vis2vis-jsontemplate/assets/mode-jexl-D6x9rXM4.js +1 -0
  248. package/widgets/vis2vis-jsontemplate/assets/mode-json-DfI0el-U.js +1 -0
  249. package/widgets/vis2vis-jsontemplate/assets/mode-json5-DfkyvMXq.js +1 -0
  250. package/widgets/vis2vis-jsontemplate/assets/mode-jsoniq-DOLnf8m6.js +9 -0
  251. package/widgets/vis2vis-jsontemplate/assets/mode-jsp-B5pQE_to.js +1 -0
  252. package/widgets/vis2vis-jsontemplate/assets/mode-jssm-BIUeda1N.js +1 -0
  253. package/widgets/vis2vis-jsontemplate/assets/mode-jsx-CpHuKZot.js +5 -0
  254. package/widgets/vis2vis-jsontemplate/assets/mode-julia-CVO3urMQ.js +1 -0
  255. package/widgets/vis2vis-jsontemplate/assets/mode-kotlin-GZHgeC2A.js +1 -0
  256. package/widgets/vis2vis-jsontemplate/assets/mode-latex-DVUjduXc.js +1 -0
  257. package/widgets/vis2vis-jsontemplate/assets/mode-latte-DC_69hWX.js +5 -0
  258. package/widgets/vis2vis-jsontemplate/assets/mode-less-CSc_gwBA.js +1 -0
  259. package/widgets/vis2vis-jsontemplate/assets/mode-liquid-QYoisl9P.js +5 -0
  260. package/widgets/vis2vis-jsontemplate/assets/mode-lisp-DIPlJoHD.js +1 -0
  261. package/widgets/vis2vis-jsontemplate/assets/mode-livescript-BiuZjE9L.js +1 -0
  262. package/widgets/vis2vis-jsontemplate/assets/mode-logiql-r7GQoTD0.js +3 -0
  263. package/widgets/vis2vis-jsontemplate/assets/mode-logtalk-BV-XKcB-.js +1 -0
  264. package/widgets/vis2vis-jsontemplate/assets/mode-lsl-ByqelXin.js +1 -0
  265. package/widgets/vis2vis-jsontemplate/assets/mode-lua-D4smnGmf.js +4 -0
  266. package/widgets/vis2vis-jsontemplate/assets/mode-luapage-DEfuUOVr.js +8 -0
  267. package/widgets/vis2vis-jsontemplate/assets/mode-lucene-B_rvFXb1.js +1 -0
  268. package/widgets/vis2vis-jsontemplate/assets/mode-makefile-CkPrIwmp.js +1 -0
  269. package/widgets/vis2vis-jsontemplate/assets/mode-markdown-BTLnpScr.js +7 -0
  270. package/widgets/vis2vis-jsontemplate/assets/mode-mask-qkR1KcB4.js +1 -0
  271. package/widgets/vis2vis-jsontemplate/assets/mode-matlab-CHyUpJ53.js +2 -0
  272. package/widgets/vis2vis-jsontemplate/assets/mode-maze-eSasdKn2.js +1 -0
  273. package/widgets/vis2vis-jsontemplate/assets/mode-mediawiki-T6AAK_tx.js +1 -0
  274. package/widgets/vis2vis-jsontemplate/assets/mode-mel-CP7h_hli.js +1 -0
  275. package/widgets/vis2vis-jsontemplate/assets/mode-mips-CeblmH_t.js +1 -0
  276. package/widgets/vis2vis-jsontemplate/assets/mode-mixal-7NVNCscn.js +1 -0
  277. package/widgets/vis2vis-jsontemplate/assets/mode-mushcode-B5DAQUWZ.js +3 -0
  278. package/widgets/vis2vis-jsontemplate/assets/mode-mysql-deurkNTd.js +1 -0
  279. package/widgets/vis2vis-jsontemplate/assets/mode-nasal-CQ9lZVT-.js +1 -0
  280. package/widgets/vis2vis-jsontemplate/assets/mode-nginx-BksCWuoQ.js +1 -0
  281. package/widgets/vis2vis-jsontemplate/assets/mode-nim-De0rRhWG.js +1 -0
  282. package/widgets/vis2vis-jsontemplate/assets/mode-nix-Dl4ZMj6A.js +1 -0
  283. package/widgets/vis2vis-jsontemplate/assets/mode-nsis-CbIaTlyP.js +3 -0
  284. package/widgets/vis2vis-jsontemplate/assets/mode-nunjucks-BkQiW6bx.js +5 -0
  285. package/widgets/vis2vis-jsontemplate/assets/mode-objectivec-V4CgVWvp.js +1 -0
  286. package/widgets/vis2vis-jsontemplate/assets/mode-ocaml-B0OJypGp.js +1 -0
  287. package/widgets/vis2vis-jsontemplate/assets/mode-odin-BuYsmItT.js +1 -0
  288. package/widgets/vis2vis-jsontemplate/assets/mode-partiql-COxrAtTa.js +1 -0
  289. package/widgets/vis2vis-jsontemplate/assets/mode-pascal-BXBvzrNQ.js +1 -0
  290. package/widgets/vis2vis-jsontemplate/assets/mode-perl-CONjBhej.js +1 -0
  291. package/widgets/vis2vis-jsontemplate/assets/mode-pgsql-XzNsFflv.js +1 -0
  292. package/widgets/vis2vis-jsontemplate/assets/mode-php-DQuLmOUU.js +5 -0
  293. package/widgets/vis2vis-jsontemplate/assets/mode-php_laravel_blade-Bblwdsl-.js +5 -0
  294. package/widgets/vis2vis-jsontemplate/assets/mode-pig-C_t1Waqf.js +1 -0
  295. package/widgets/vis2vis-jsontemplate/assets/mode-plain_text-CFhhAAmr.js +1 -0
  296. package/widgets/vis2vis-jsontemplate/assets/mode-plsql-DgP7Cdl4.js +1 -0
  297. package/widgets/vis2vis-jsontemplate/assets/mode-powershell-BGCPchLY.js +1 -0
  298. package/widgets/vis2vis-jsontemplate/assets/mode-praat-6bojCYuv.js +1 -0
  299. package/widgets/vis2vis-jsontemplate/assets/mode-prisma-CzIylCeU.js +1 -0
  300. package/widgets/vis2vis-jsontemplate/assets/mode-prolog-C7MZwLMP.js +1 -0
  301. package/widgets/vis2vis-jsontemplate/assets/mode-properties-Bnn9HTVN.js +1 -0
  302. package/widgets/vis2vis-jsontemplate/assets/mode-protobuf-Dup4k2m0.js +1 -0
  303. package/widgets/vis2vis-jsontemplate/assets/mode-prql-YLxZHTUj.js +1 -0
  304. package/widgets/vis2vis-jsontemplate/assets/mode-puppet-qLcrfeOR.js +1 -0
  305. package/widgets/vis2vis-jsontemplate/assets/mode-python-BZz04ov9.js +3 -0
  306. package/widgets/vis2vis-jsontemplate/assets/mode-qml-DqZ3lPSS.js +1 -0
  307. package/widgets/vis2vis-jsontemplate/assets/mode-r-e10wKfR-.js +1 -0
  308. package/widgets/vis2vis-jsontemplate/assets/mode-raku-Dsga_hxk.js +1 -0
  309. package/widgets/vis2vis-jsontemplate/assets/mode-razor-HQ3WO4ht.js +5 -0
  310. package/widgets/vis2vis-jsontemplate/assets/mode-rdoc-DX5Wf-Fm.js +1 -0
  311. package/widgets/vis2vis-jsontemplate/assets/mode-red-BT--KnCa.js +1 -0
  312. package/widgets/vis2vis-jsontemplate/assets/mode-redshift-3AJ9eyaU.js +1 -0
  313. package/widgets/vis2vis-jsontemplate/assets/mode-rhtml-DTeq1gof.js +8 -0
  314. package/widgets/vis2vis-jsontemplate/assets/mode-robot-Cx7Ll-f_.js +1 -0
  315. package/widgets/vis2vis-jsontemplate/assets/mode-rst-66KrgJvy.js +1 -0
  316. package/widgets/vis2vis-jsontemplate/assets/mode-ruby-Bjton-Z6.js +1 -0
  317. package/widgets/vis2vis-jsontemplate/assets/mode-rust-C_dVH8Xm.js +1 -0
  318. package/widgets/vis2vis-jsontemplate/assets/mode-sac-CT3iemsq.js +1 -0
  319. package/widgets/vis2vis-jsontemplate/assets/mode-sass-BkHxYZza.js +1 -0
  320. package/widgets/vis2vis-jsontemplate/assets/mode-scad-DeOrShi9.js +1 -0
  321. package/widgets/vis2vis-jsontemplate/assets/mode-scala-BVbB_f1z.js +5 -0
  322. package/widgets/vis2vis-jsontemplate/assets/mode-scheme-B5C4oJuT.js +1 -0
  323. package/widgets/vis2vis-jsontemplate/assets/mode-scrypt-PF2qJgu2.js +1 -0
  324. package/widgets/vis2vis-jsontemplate/assets/mode-scss-DXZoSuRb.js +1 -0
  325. package/widgets/vis2vis-jsontemplate/assets/mode-sh-D24LzE3p.js +3 -0
  326. package/widgets/vis2vis-jsontemplate/assets/mode-sjs-BmDEcJsO.js +5 -0
  327. package/widgets/vis2vis-jsontemplate/assets/mode-slim-Cl_LtZ3D.js +7 -0
  328. package/widgets/vis2vis-jsontemplate/assets/mode-smarty-B7H45xSz.js +5 -0
  329. package/widgets/vis2vis-jsontemplate/assets/mode-smithy-20d5kx_y.js +1 -0
  330. package/widgets/vis2vis-jsontemplate/assets/mode-snippets-D8Hbyw7T.js +1 -0
  331. package/widgets/vis2vis-jsontemplate/assets/mode-soy_template-D0sFgNSx.js +5 -0
  332. package/widgets/vis2vis-jsontemplate/assets/mode-space-DSHFQGmQ.js +1 -0
  333. package/widgets/vis2vis-jsontemplate/assets/mode-sparql-DHyU529t.js +1 -0
  334. package/widgets/vis2vis-jsontemplate/assets/mode-sql-CVfIZpNN.js +1 -0
  335. package/widgets/vis2vis-jsontemplate/assets/mode-sqlserver-BJxt32YN.js +1 -0
  336. package/widgets/vis2vis-jsontemplate/assets/mode-stylus-0wnzE15x.js +1 -0
  337. package/widgets/vis2vis-jsontemplate/assets/mode-svg-Dw3_4UiU.js +5 -0
  338. package/widgets/vis2vis-jsontemplate/assets/mode-swift-CkQ9K8Zi.js +1 -0
  339. package/widgets/vis2vis-jsontemplate/assets/mode-tcl-CZjLIvue.js +1 -0
  340. package/widgets/vis2vis-jsontemplate/assets/mode-terraform-CoemOqbf.js +1 -0
  341. package/widgets/vis2vis-jsontemplate/assets/mode-tex-DderkMrs.js +1 -0
  342. package/widgets/vis2vis-jsontemplate/assets/mode-text-Cq8AEtu7.js +1 -0
  343. package/widgets/vis2vis-jsontemplate/assets/mode-textile-cQ4nh_8l.js +1 -0
  344. package/widgets/vis2vis-jsontemplate/assets/mode-toml-C7N8acrX.js +1 -0
  345. package/widgets/vis2vis-jsontemplate/assets/mode-tsv-BW4F9Csx.js +1 -0
  346. package/widgets/vis2vis-jsontemplate/assets/mode-tsx-DYTFAwD0.js +5 -0
  347. package/widgets/vis2vis-jsontemplate/assets/mode-turtle-D1Gj0Td4.js +1 -0
  348. package/widgets/vis2vis-jsontemplate/assets/mode-twig-BmRjVW7I.js +5 -0
  349. package/widgets/vis2vis-jsontemplate/assets/mode-typescript-B4UIWQGF.js +5 -0
  350. package/widgets/vis2vis-jsontemplate/assets/mode-vala-CQgsR3Iz.js +14 -0
  351. package/widgets/vis2vis-jsontemplate/assets/mode-vbscript-BkEqgnMM.js +4 -0
  352. package/widgets/vis2vis-jsontemplate/assets/mode-velocity-Bq3AJheK.js +5 -0
  353. package/widgets/vis2vis-jsontemplate/assets/mode-verilog-Cs9gK34N.js +1 -0
  354. package/widgets/vis2vis-jsontemplate/assets/mode-vhdl-B7El2bJx.js +1 -0
  355. package/widgets/vis2vis-jsontemplate/assets/mode-visualforce-hTvPHkdm.js +5 -0
  356. package/widgets/vis2vis-jsontemplate/assets/mode-vue-Bl9prrPT.js +5 -0
  357. package/widgets/vis2vis-jsontemplate/assets/mode-wollok-D--hCjHs.js +5 -0
  358. package/widgets/vis2vis-jsontemplate/assets/mode-xml-Ctgb3fQi.js +5 -0
  359. package/widgets/vis2vis-jsontemplate/assets/mode-xquery-CARgpScm.js +9 -0
  360. package/widgets/vis2vis-jsontemplate/assets/mode-yaml-anyfmPQH.js +1 -0
  361. package/widgets/vis2vis-jsontemplate/assets/mode-zeek-C0daUwuH.js +1 -0
  362. package/widgets/vis2vis-jsontemplate/assets/mode-zig-CTS8ECFM.js +1 -0
  363. package/widgets/vis2vis-jsontemplate/assets/mushcode-BmgSkBy5.js +1 -0
  364. package/widgets/vis2vis-jsontemplate/assets/mysql-3WOKxHIv.js +1 -0
  365. package/widgets/vis2vis-jsontemplate/assets/nasal-BgEGeagV.js +1 -0
  366. package/widgets/vis2vis-jsontemplate/assets/nginx-CRl0FtfM.js +1 -0
  367. package/widgets/vis2vis-jsontemplate/assets/nim-CuG1Iqzn.js +1 -0
  368. package/widgets/vis2vis-jsontemplate/assets/nix-1eqDJaJA.js +1 -0
  369. package/widgets/vis2vis-jsontemplate/assets/nsis-e4bU-iiA.js +1 -0
  370. package/widgets/vis2vis-jsontemplate/assets/nunjucks-BMaA-k2J.js +1 -0
  371. package/widgets/vis2vis-jsontemplate/assets/objectivec-CL_sencn.js +1 -0
  372. package/widgets/vis2vis-jsontemplate/assets/ocaml-BoV7EcQd.js +1 -0
  373. package/widgets/vis2vis-jsontemplate/assets/odin-BOFCi3x8.js +1 -0
  374. package/widgets/vis2vis-jsontemplate/assets/partiql-DoK4_fue.js +1 -0
  375. package/widgets/vis2vis-jsontemplate/assets/pascal-CocCapcg.js +1 -0
  376. package/widgets/vis2vis-jsontemplate/assets/perl-ixlOVPTq.js +348 -0
  377. package/widgets/vis2vis-jsontemplate/assets/pgsql-BravoAfx.js +1 -0
  378. package/widgets/vis2vis-jsontemplate/assets/php-Be-UnEia.js +384 -0
  379. package/widgets/vis2vis-jsontemplate/assets/php_laravel_blade-B93ny3oF.js +1 -0
  380. package/widgets/vis2vis-jsontemplate/assets/pig-D2exIm4c.js +1 -0
  381. package/widgets/vis2vis-jsontemplate/assets/plain_text-B8XuaXJO.js +1 -0
  382. package/widgets/vis2vis-jsontemplate/assets/plsql-D7a_3sch.js +1 -0
  383. package/widgets/vis2vis-jsontemplate/assets/powershell-1s7ZzFVb.js +1 -0
  384. package/widgets/vis2vis-jsontemplate/assets/praat-DUyb5Bk6.js +1 -0
  385. package/widgets/vis2vis-jsontemplate/assets/preload-helper-4fGslNWJ.js +1 -0
  386. package/widgets/vis2vis-jsontemplate/assets/prisma-mdDN7d2R.js +1 -0
  387. package/widgets/vis2vis-jsontemplate/assets/prolog-DqDHt9zx.js +1 -0
  388. package/widgets/vis2vis-jsontemplate/assets/properties-DZWGPhQI.js +1 -0
  389. package/widgets/vis2vis-jsontemplate/assets/protobuf-CXiyd_Mb.js +1 -0
  390. package/widgets/vis2vis-jsontemplate/assets/prql-IGFRnbNC.js +1 -0
  391. package/widgets/vis2vis-jsontemplate/assets/puppet-BtdJ4V45.js +1 -0
  392. package/widgets/vis2vis-jsontemplate/assets/python-U8q4K0Vt.js +159 -0
  393. package/widgets/vis2vis-jsontemplate/assets/qml-BWbXwHD7.js +1 -0
  394. package/widgets/vis2vis-jsontemplate/assets/r-CcxRgptb.js +122 -0
  395. package/widgets/vis2vis-jsontemplate/assets/raku-DVMDIfIU.js +1 -0
  396. package/widgets/vis2vis-jsontemplate/assets/razor-BbN5JHhl.js +1 -0
  397. package/widgets/vis2vis-jsontemplate/assets/rdoc-DciWg7B6.js +1 -0
  398. package/widgets/vis2vis-jsontemplate/assets/red-Ck9uqHNN.js +1 -0
  399. package/widgets/vis2vis-jsontemplate/assets/redshift-CAPRCA78.js +1 -0
  400. package/widgets/vis2vis-jsontemplate/assets/rhtml-CJbSFlVV.js +1 -0
  401. package/widgets/vis2vis-jsontemplate/assets/robot-BMbcQLsf.js +70 -0
  402. package/widgets/vis2vis-jsontemplate/assets/rst-Dcwn5Muz.js +23 -0
  403. package/widgets/vis2vis-jsontemplate/assets/ruby-CdOCDKFD.js +929 -0
  404. package/widgets/vis2vis-jsontemplate/assets/rust-CfkJXaem.js +1 -0
  405. package/widgets/vis2vis-jsontemplate/assets/sac-Cb2eIKD_.js +1 -0
  406. package/widgets/vis2vis-jsontemplate/assets/sass-iV1YOFQN.js +1 -0
  407. package/widgets/vis2vis-jsontemplate/assets/scad-CPs5wJAG.js +1 -0
  408. package/widgets/vis2vis-jsontemplate/assets/scala-DA1JuV2S.js +1 -0
  409. package/widgets/vis2vis-jsontemplate/assets/scheme-BFQyaXim.js +1 -0
  410. package/widgets/vis2vis-jsontemplate/assets/scrypt-CTtbT4Qh.js +1 -0
  411. package/widgets/vis2vis-jsontemplate/assets/scss-DWqyVAcU.js +1 -0
  412. package/widgets/vis2vis-jsontemplate/assets/sh-BHHjLho8.js +84 -0
  413. package/widgets/vis2vis-jsontemplate/assets/sjs-0z-JZE7a.js +1 -0
  414. package/widgets/vis2vis-jsontemplate/assets/slim-D60OEg6E.js +1 -0
  415. package/widgets/vis2vis-jsontemplate/assets/smarty-DsAF1IC8.js +1 -0
  416. package/widgets/vis2vis-jsontemplate/assets/smithy-WcmAd33S.js +1 -0
  417. package/widgets/vis2vis-jsontemplate/assets/snippets-CO92SWiA.js +10 -0
  418. package/widgets/vis2vis-jsontemplate/assets/soy_template-ChNi14w3.js +1 -0
  419. package/widgets/vis2vis-jsontemplate/assets/space-Czl6zHqh.js +1 -0
  420. package/widgets/vis2vis-jsontemplate/assets/sparql-Dt8_8yD1.js +1 -0
  421. package/widgets/vis2vis-jsontemplate/assets/sql-DXeZ8-B5.js +1 -0
  422. package/widgets/vis2vis-jsontemplate/assets/sqlserver-BgjEIbVF.js +70 -0
  423. package/widgets/vis2vis-jsontemplate/assets/stylus-DGub6yQ6.js +1 -0
  424. package/widgets/vis2vis-jsontemplate/assets/svg-BhLwQfQt.js +1 -0
  425. package/widgets/vis2vis-jsontemplate/assets/swift-C6jmn2lM.js +1 -0
  426. package/widgets/vis2vis-jsontemplate/assets/tcl-1m9QfSGo.js +93 -0
  427. package/widgets/vis2vis-jsontemplate/assets/terraform-C_A1grPI.js +1 -0
  428. package/widgets/vis2vis-jsontemplate/assets/tex-CnhL2AXi.js +191 -0
  429. package/widgets/vis2vis-jsontemplate/assets/text-BFTmH0YI.js +1 -0
  430. package/widgets/vis2vis-jsontemplate/assets/textile-DlCA5JQb.js +31 -0
  431. package/widgets/vis2vis-jsontemplate/assets/theme-ambiance-QsY8qCgd.js +221 -0
  432. package/widgets/vis2vis-jsontemplate/assets/theme-chaos-8iMnZQxF.js +160 -0
  433. package/widgets/vis2vis-jsontemplate/assets/theme-cloud9_day-DQoca-VF.js +161 -0
  434. package/widgets/vis2vis-jsontemplate/assets/theme-cloud9_night-DssalqUo.js +147 -0
  435. package/widgets/vis2vis-jsontemplate/assets/theme-cloud9_night_low_color-CmQdrSgm.js +135 -0
  436. package/widgets/vis2vis-jsontemplate/assets/theme-cloud_editor-D5Nbnfj-.js +220 -0
  437. package/widgets/vis2vis-jsontemplate/assets/theme-cloud_editor_dark-fj58gio2.js +223 -0
  438. package/widgets/vis2vis-jsontemplate/assets/theme-clouds-DrqFoPBZ.js +116 -0
  439. package/widgets/vis2vis-jsontemplate/assets/theme-cobalt-_ffUuzsT.js +138 -0
  440. package/widgets/vis2vis-jsontemplate/assets/theme-crimson_editor-CTFG4SkN.js +148 -0
  441. package/widgets/vis2vis-jsontemplate/assets/theme-dawn-NpopD5_s.js +131 -0
  442. package/widgets/vis2vis-jsontemplate/assets/theme-dracula-AuJ122rA.js +166 -0
  443. package/widgets/vis2vis-jsontemplate/assets/theme-dreamweaver-Ce_xMjNm.js +181 -0
  444. package/widgets/vis2vis-jsontemplate/assets/theme-eclipse-DDmYr769.js +118 -0
  445. package/widgets/vis2vis-jsontemplate/assets/theme-github-ChbFyXoG.js +129 -0
  446. package/widgets/vis2vis-jsontemplate/assets/theme-github_dark-DmOOvJg3.js +134 -0
  447. package/widgets/vis2vis-jsontemplate/assets/theme-github_light_default-jezXjzZJ.js +165 -0
  448. package/widgets/vis2vis-jsontemplate/assets/theme-gob-D4kuHx9p.js +134 -0
  449. package/widgets/vis2vis-jsontemplate/assets/theme-gruvbox-C-iK1SXn.js +100 -0
  450. package/widgets/vis2vis-jsontemplate/assets/theme-gruvbox_dark_hard-BcmKgsyJ.js +164 -0
  451. package/widgets/vis2vis-jsontemplate/assets/theme-gruvbox_light_hard-DOcAP-lF.js +168 -0
  452. package/widgets/vis2vis-jsontemplate/assets/theme-idle_fingers-Bwqiu7LM.js +117 -0
  453. package/widgets/vis2vis-jsontemplate/assets/theme-iplastic-DbYdo16h.js +145 -0
  454. package/widgets/vis2vis-jsontemplate/assets/theme-katzenmilch-BOYOV2ro.js +152 -0
  455. package/widgets/vis2vis-jsontemplate/assets/theme-kr_theme-BlP9076h.js +128 -0
  456. package/widgets/vis2vis-jsontemplate/assets/theme-kuroir-BlOX3HeP.js +79 -0
  457. package/widgets/vis2vis-jsontemplate/assets/theme-merbivore-Bvz6URwN.js +114 -0
  458. package/widgets/vis2vis-jsontemplate/assets/theme-merbivore_soft-D1HtoKW7.js +115 -0
  459. package/widgets/vis2vis-jsontemplate/assets/theme-mono_industrial-Dg8N7vqY.js +130 -0
  460. package/widgets/vis2vis-jsontemplate/assets/theme-nord_dark-zxguBIHl.js +112 -0
  461. package/widgets/vis2vis-jsontemplate/assets/theme-one_dark-CJuVaTY9.js +165 -0
  462. package/widgets/vis2vis-jsontemplate/assets/theme-pastel_on_dark-BWcTv7Gy.js +133 -0
  463. package/widgets/vis2vis-jsontemplate/assets/theme-solarized_dark-Bs2LPFFX.js +105 -0
  464. package/widgets/vis2vis-jsontemplate/assets/theme-solarized_light-CHLCOOLs.js +110 -0
  465. package/widgets/vis2vis-jsontemplate/assets/theme-sqlserver-Bu0pTZZV.js +172 -0
  466. package/widgets/vis2vis-jsontemplate/assets/theme-terminal-BNpfswc0.js +136 -0
  467. package/widgets/vis2vis-jsontemplate/assets/theme-textmate-C4jlQA6W.js +1 -0
  468. package/widgets/vis2vis-jsontemplate/assets/theme-tomorrow-CLBnQF3e.js +129 -0
  469. package/widgets/vis2vis-jsontemplate/assets/theme-tomorrow_night-CwCiF1XX.js +129 -0
  470. package/widgets/vis2vis-jsontemplate/assets/theme-tomorrow_night_blue-CE7iCYb0.js +126 -0
  471. package/widgets/vis2vis-jsontemplate/assets/theme-tomorrow_night_bright-Bf9pHl9K.js +145 -0
  472. package/widgets/vis2vis-jsontemplate/assets/theme-tomorrow_night_eighties-BW98rqfA.js +129 -0
  473. package/widgets/vis2vis-jsontemplate/assets/theme-twilight-CYW0LbgP.js +131 -0
  474. package/widgets/vis2vis-jsontemplate/assets/theme-vibrant_ink-D2R0WlUq.js +114 -0
  475. package/widgets/vis2vis-jsontemplate/assets/theme-xcode-DmV08Rqt.js +107 -0
  476. package/widgets/vis2vis-jsontemplate/assets/toml-BppM0J9G.js +1 -0
  477. package/widgets/vis2vis-jsontemplate/assets/translations-RCQ_bOWv.js +1 -0
  478. package/widgets/vis2vis-jsontemplate/assets/tsv-QCUAN7tM.js +1 -0
  479. package/widgets/vis2vis-jsontemplate/assets/tsx-DlBDpjXp.js +1 -0
  480. package/widgets/vis2vis-jsontemplate/assets/turtle-Bhvju8e_.js +1 -0
  481. package/widgets/vis2vis-jsontemplate/assets/twig-Dz6fJaYS.js +1 -0
  482. package/widgets/vis2vis-jsontemplate/assets/typescript-Dlq5jwkb.js +1 -0
  483. package/widgets/vis2vis-jsontemplate/assets/useTheme-CUUL_k-V.js +1 -0
  484. package/widgets/vis2vis-jsontemplate/assets/vala-CCClIoiP.js +72 -0
  485. package/widgets/vis2vis-jsontemplate/assets/vbscript-BmjSniHm.js +1 -0
  486. package/widgets/vis2vis-jsontemplate/assets/velocity-Eetpg6IF.js +29 -0
  487. package/widgets/vis2vis-jsontemplate/assets/verilog-JLsQfqCE.js +1 -0
  488. package/widgets/vis2vis-jsontemplate/assets/vhdl-BDSCxoSn.js +1 -0
  489. package/widgets/vis2vis-jsontemplate/assets/virtualExposes-6ZILnKxp.js +2 -0
  490. package/widgets/vis2vis-jsontemplate/assets/vis2visjsonTemplateWidgets__loadShare___mf_0_mui_mf_1_icons_mf_2_material__loadShare__-DQFbdvr3.js +1 -0
  491. package/widgets/vis2vis-jsontemplate/assets/vis2visjsonTemplateWidgets__loadShare__react__loadShare__-DIw4pDHA.js +1 -0
  492. package/widgets/vis2vis-jsontemplate/assets/vis2visjsonTemplateWidgets__mf_v__runtimeInit__mf_v__-Bg5OEhrp.js +5 -0
  493. package/widgets/vis2vis-jsontemplate/assets/visualforce-Bfu1Ak61.js +1 -0
  494. package/widgets/vis2vis-jsontemplate/assets/vue-BGFTp4kK.js +1 -0
  495. package/widgets/vis2vis-jsontemplate/assets/wollok-BRp-wwGk.js +85 -0
  496. package/widgets/vis2vis-jsontemplate/assets/worker-base-BPnv-em4.js +7 -0
  497. package/widgets/vis2vis-jsontemplate/assets/worker-coffee-BGt0WG_T.js +121 -0
  498. package/widgets/vis2vis-jsontemplate/assets/worker-css-DUK_OUGr.js +24 -0
  499. package/widgets/vis2vis-jsontemplate/assets/worker-html-DnXGSuo3.js +28 -0
  500. package/widgets/vis2vis-jsontemplate/assets/worker-javascript-DKHkjovd.js +26 -0
  501. package/widgets/vis2vis-jsontemplate/assets/worker-json-BD5o_G43.js +9 -0
  502. package/widgets/vis2vis-jsontemplate/assets/worker-lua-RZJAMBtk.js +10 -0
  503. package/widgets/vis2vis-jsontemplate/assets/worker-php-D7_ufyP-.js +9 -0
  504. package/widgets/vis2vis-jsontemplate/assets/worker-xml-BwUcqzAQ.js +8 -0
  505. package/widgets/vis2vis-jsontemplate/assets/worker-xquery-Bdainhib.js +53 -0
  506. package/widgets/vis2vis-jsontemplate/assets/worker-yaml-BtpWJJU1.js +36 -0
  507. package/widgets/vis2vis-jsontemplate/assets/xml-BH-GvKPg.js +1 -0
  508. package/widgets/vis2vis-jsontemplate/assets/xquery-BfjQchp6.js +62 -0
  509. package/widgets/vis2vis-jsontemplate/assets/yaml-B4Fo_RhL.js +1 -0
  510. package/widgets/vis2vis-jsontemplate/assets/zeek-CcoNTi-1.js +1 -0
  511. package/widgets/vis2vis-jsontemplate/assets/zig-syO4L9BM.js +1 -0
  512. package/widgets/vis2vis-jsontemplate/customWidgets.js +2 -0
  513. package/widgets/vis2vis-jsontemplate/img/jsontemplate.png +0 -0
  514. package/widgets/vis2vis-jsontemplate/img/vis-widget-demo.png +0 -0
@@ -0,0 +1,1344 @@
1
+ (() => {
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined") return require.apply(this, arguments);
12
+ throw Error('Dynamic require of "' + x + '" is not supported');
13
+ });
14
+ var __esm = (fn, res) => function __init() {
15
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
16
+ };
17
+ var __commonJS = (cb, mod) => function __require2() {
18
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+ var __async = (__this, __arguments, generator) => {
37
+ return new Promise((resolve, reject) => {
38
+ var fulfilled = (value) => {
39
+ try {
40
+ step(generator.next(value));
41
+ } catch (e) {
42
+ reject(e);
43
+ }
44
+ };
45
+ var rejected = (value) => {
46
+ try {
47
+ step(generator.throw(value));
48
+ } catch (e) {
49
+ reject(e);
50
+ }
51
+ };
52
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
53
+ step((generator = generator.apply(__this, __arguments)).next());
54
+ });
55
+ };
56
+
57
+ // ../package.json
58
+ var version;
59
+ var init_package = __esm({
60
+ "../package.json"() {
61
+ version = "4.0.1";
62
+ }
63
+ });
64
+
65
+ // vis-jsontemplate/js/jsontemplate.js
66
+ var require_jsontemplate = __commonJS({
67
+ "vis-jsontemplate/js/jsontemplate.js"(exports) {
68
+ "use strict";
69
+ init_package();
70
+ fetch("widgets/vis-jsontemplate/i18n/words.json").then((res) => __async(null, null, function* () {
71
+ const i18n = yield res.json();
72
+ $.extend(true, systemDictionary, i18n);
73
+ }));
74
+ vis.binds["jsontemplate"] = {
75
+ version,
76
+ /**
77
+ * Log the version of jsontemplate and remove it.
78
+ * Should be called from the main thread, as it logs to the console.
79
+ */
80
+ showVersion: function() {
81
+ if (vis.binds["jsontemplate"].version) {
82
+ console.log(`Version jsontemplate: ${vis.binds["jsontemplate"].version}`);
83
+ vis.binds["jsontemplate"].version = null;
84
+ }
85
+ },
86
+ jsontemplate4: {
87
+ /**
88
+ * Initializes and creates a JSON template widget.
89
+ *
90
+ * @param widgetID - The ID of the widget element.
91
+ * @param view - The view object containing widget information.
92
+ * @param data - Contains configuration data for the widget, including JSON object ID and template.
93
+ * @param style - Style settings for the widget. *
94
+ * The function checks for the widget element by its ID. If not found, it retries after a delay.
95
+ * It parses the JSON data from the specified object ID, processes additional data points,
96
+ * and binds states if necessary. It then renders the widget using the EJS template with
97
+ * the provided data and style.
98
+
99
+ Testtemplate:
100
+
101
+ <%
102
+
103
+ debugger;
104
+ req = await sendToAsync("admin.0","selectSendTo");
105
+ console.log(JSON.stringify(req));
106
+ %>
107
+ <%- JSON.stringify(req) %>
108
+ <%
109
+ async function sendToAsync(instance, command, sendData) {
110
+ return new Promise((resolve, reject) => {
111
+ try {
112
+ vis.conn.sendTo(instance, command, sendData, function (receiveData) {
113
+ resolve(receiveData);
114
+ });
115
+ } catch (error) {
116
+ reject(error);
117
+ }
118
+ });
119
+ }
120
+ %>
121
+ */
122
+ createWidget: function(widgetID, view, data, style) {
123
+ const $div = $(`#${widgetID}`);
124
+ if (!$div.length) {
125
+ return setTimeout(function() {
126
+ vis.binds["jsontemplate"].jsontemplate4.createWidget(widgetID, view, data, style);
127
+ }, 100);
128
+ }
129
+ const bound = [];
130
+ if (data.json_oid) {
131
+ bound.push(data.json_oid);
132
+ }
133
+ const dpCount = data.json_dpCount ? data.json_dpCount : 1;
134
+ const datapoints = [];
135
+ for (let i = 1; i <= dpCount; i++) {
136
+ if (data[`json_dp${i}`]) {
137
+ datapoints[data[`json_dp${i}`]] = vis.states.attr(`${data[`json_dp${i}`]}.val`);
138
+ bound.push(data[`json_dp${i}`]);
139
+ }
140
+ }
141
+ if (bound) {
142
+ if (!vis.editMode) {
143
+ vis.binds["jsontemplate"].bindStates(
144
+ $div,
145
+ bound,
146
+ vis.binds["jsontemplate"].jsontemplate4.onChange.bind({
147
+ widgetID,
148
+ view,
149
+ data,
150
+ style
151
+ })
152
+ );
153
+ }
154
+ }
155
+ this.render(widgetID, view, data);
156
+ },
157
+ /**
158
+ * Will be called if the value of the bound data point changes.
159
+ *
160
+ * @param e event object
161
+ * @param newVal new value of the bound data point
162
+ */
163
+ onChange: function(e, newVal) {
164
+ if (newVal) {
165
+ vis.binds["jsontemplate"].jsontemplate4.render(this.widgetID, this.view, this.data, this.style);
166
+ }
167
+ },
168
+ /**
169
+ * Renders the widget using the provided EJS template.
170
+ *
171
+ * @param widgetID - The ID of the widget element to be rendered.
172
+ * @param view - The view object containing widget information.
173
+ * @param data - Contains configuration data for the widget, including JSON object ID and template.
174
+ *
175
+ * The function retrieves data associated with the JSON object ID and additional data points.
176
+ * It then uses EJS to render the template with the provided data and updates the widget's HTML content.
177
+ * In case of an error during rendering, it escapes and formats the error message to display it in the widget.
178
+ */
179
+ render: function(widgetID, view, data) {
180
+ return __async(this, null, function* () {
181
+ const oiddata = data.json_oid ? JSON.parse(vis.states.attr(`${data.json_oid}.val`)) : {};
182
+ const dpCount = data.json_dpCount ? data.json_dpCount : 1;
183
+ const template = data.json_template ? data.json_template : "";
184
+ const datapoints = [];
185
+ for (let i = 1; i <= dpCount; i++) {
186
+ if (data[`json_dp${i}`]) {
187
+ datapoints[data[`json_dp${i}`]] = vis.states.attr(`${data[`json_dp${i}`]}.val`);
188
+ }
189
+ }
190
+ let text = "";
191
+ try {
192
+ text = yield ejs.render(
193
+ template,
194
+ { widgetID, data: oiddata, dp: datapoints },
195
+ { async: true }
196
+ );
197
+ } catch (e) {
198
+ text = vis.binds["jsontemplate"].escapeHTML(e.message).replace(/(?:\r\n|\r|\n)/g, "<br>");
199
+ text = text.replace(/ /gm, "&nbsp;");
200
+ text = `<code style="color:red;">${text}</code>`;
201
+ }
202
+ $(`#${widgetID}`).html(text);
203
+ });
204
+ }
205
+ },
206
+ /**
207
+ * Bind states to an element.
208
+ *
209
+ * First unbind all previously bound states and then get the current values of the states.
210
+ * Then subscribe to the states and bind the callback to the states.
211
+ * Finally, update the states of the element.
212
+ *
213
+ * @param elem - the element to bind the states to
214
+ * @param bound - the states to bind
215
+ * @param change_callback - the callback to call if one of the states changes
216
+ */
217
+ bindStates: function(elem, bound, change_callback) {
218
+ const $div = $(elem);
219
+ const boundstates = $div.data("bound");
220
+ if (boundstates) {
221
+ for (let i = 0; i < boundstates.length; i++) {
222
+ vis.states.unbind(boundstates[i], change_callback);
223
+ }
224
+ }
225
+ $div.data("bound", null);
226
+ $div.data("bindHandler", null);
227
+ vis.conn.gettingStates = 0;
228
+ vis.conn.getStates(
229
+ bound,
230
+ function(error, states) {
231
+ vis.conn.subscribe(bound);
232
+ $div.data("bound", bound);
233
+ $div.data("bindHandler", change_callback);
234
+ for (let i = 0; i < bound.length; i++) {
235
+ bound[i] = `${bound[i]}.val`;
236
+ vis.states.bind(bound[i], change_callback);
237
+ }
238
+ vis.updateStates(states);
239
+ }.bind({ change_callback })
240
+ );
241
+ },
242
+ /**
243
+ * Escapes HTML special characters in a given string.
244
+ *
245
+ * @param html - The string to escape.
246
+ * @returns The escaped string.
247
+ */
248
+ escapeHTML: function(html) {
249
+ let escapeEl = document.createElement("textarea");
250
+ escapeEl.textContent = html;
251
+ const ret = escapeEl.innerHTML;
252
+ escapeEl = null;
253
+ return ret;
254
+ },
255
+ /**
256
+ * Shows a dialog for editing a template.
257
+ *
258
+ * @param widAttr - The attribute of the widget to edit.
259
+ * @returns A object with two properties: 'input' and 'button'. 'input' is a string containing the HTML of a
260
+ * 'textarea' element with id 'inspect_<widAttr>'. 'button' is an object with properties 'icon', 'text', 'title',
261
+ * 'click'. 'click' is a function which is called when the button is clicked. The function shows a dialog with
262
+ * the 'textarea' element. The dialog has a 'save' and a 'cancel' button. The 'save' button saves the changes to
263
+ * the attribute and closes the dialog. The 'cancel' button just closes the dialog.
264
+ */
265
+ editEjs: function(widAttr) {
266
+ const that = vis;
267
+ const line = {
268
+ input: `<textarea id="inspect_${widAttr}"></textarea>`
269
+ };
270
+ line.button = {
271
+ icon: "ui-icon-note",
272
+ text: false,
273
+ title: _("Select color"),
274
+ click: function() {
275
+ const wdata = $(this).data("wdata");
276
+ let data = {};
277
+ if (that.config["dialog-edit-text"]) {
278
+ data = JSON.parse(that.config["dialog-edit-text"]);
279
+ }
280
+ ace.config.setModuleUrl("ace/mode/ejs", "widgets/jsontemplate/js/mode-ejs.js");
281
+ const editor = ace.edit("dialog-edit-text-textarea");
282
+ let changed = false;
283
+ $("#dialog-edit-text").dialog({
284
+ autoOpen: true,
285
+ width: data.width || 800,
286
+ height: data.height || 600,
287
+ modal: true,
288
+ resize: function() {
289
+ editor.resize();
290
+ },
291
+ open: function(event) {
292
+ $(event.target).parent().find(".ui-dialog-titlebar-close .ui-button-text").html("");
293
+ $(this).parent().css({ "z-index": 1e3 });
294
+ if (data.top !== void 0) {
295
+ if (data.top >= 0) {
296
+ $(this).parent().css({ top: data.top });
297
+ } else {
298
+ $(this).parent().css({ top: 0 });
299
+ }
300
+ }
301
+ if (data.left !== void 0) {
302
+ if (data.left >= 0) {
303
+ $(this).parent().css({ left: data.left });
304
+ } else {
305
+ $(this).parent().css({ left: 0 });
306
+ }
307
+ }
308
+ editor.getSession().setMode("ace/mode/ejs");
309
+ editor.setOptions({
310
+ enableBasicAutocompletion: true,
311
+ enableLiveAutocompletion: true
312
+ });
313
+ editor.$blockScrolling = Infinity;
314
+ editor.getSession().setUseWrapMode(true);
315
+ editor.setValue($(`#inspect_${wdata.attr}`).val());
316
+ editor.navigateFileEnd();
317
+ editor.focus();
318
+ editor.getSession().on("change", function() {
319
+ changed = true;
320
+ });
321
+ },
322
+ beforeClose: function() {
323
+ const $parent = $("#dialog-edit-text").parent();
324
+ const pos = $parent.position();
325
+ that.editSaveConfig(
326
+ "dialog-edit-text",
327
+ JSON.stringify({
328
+ top: pos.top > 0 ? pos.top : 0,
329
+ left: pos.left > 0 ? pos.left : 0,
330
+ width: $parent.width(),
331
+ height: $parent.height() + 9
332
+ })
333
+ );
334
+ if (changed) {
335
+ if (!window.confirm(_("Changes are not saved!. Continue?"))) {
336
+ return false;
337
+ }
338
+ }
339
+ },
340
+ buttons: [
341
+ {
342
+ text: _("Ok"),
343
+ click: function() {
344
+ $(`#inspect_${wdata.attr}`).val(editor.getValue()).trigger("change");
345
+ changed = false;
346
+ $(this).dialog("close");
347
+ }
348
+ },
349
+ {
350
+ text: _("Cancel"),
351
+ click: function() {
352
+ $(this).dialog("close");
353
+ }
354
+ }
355
+ ]
356
+ }).show();
357
+ }
358
+ };
359
+ return line;
360
+ }
361
+ };
362
+ vis.binds["jsontemplate"].showVersion();
363
+ }
364
+ });
365
+
366
+ // vis-jsontemplate/js/ejs.js
367
+ var require_ejs = __commonJS({
368
+ "vis-jsontemplate/js/ejs.js"(exports, module) {
369
+ (function(f) {
370
+ if (typeof exports === "object" && typeof module !== "undefined") {
371
+ module.exports = f();
372
+ } else if (typeof define === "function" && define.amd) {
373
+ define([], f);
374
+ } else {
375
+ var g;
376
+ if (typeof window !== "undefined") {
377
+ g = window;
378
+ } else if (typeof global !== "undefined") {
379
+ g = global;
380
+ } else if (typeof self !== "undefined") {
381
+ g = self;
382
+ } else {
383
+ g = this;
384
+ }
385
+ g.ejs = f();
386
+ }
387
+ })(function() {
388
+ var define2, module2, exports2;
389
+ return (/* @__PURE__ */ function() {
390
+ function e(t, n, r) {
391
+ function s(o2, u) {
392
+ if (!n[o2]) {
393
+ if (!t[o2]) {
394
+ var a = typeof __require == "function" && __require;
395
+ if (!u && a) return a(o2, true);
396
+ if (i) return i(o2, true);
397
+ var f = new Error("Cannot find module '" + o2 + "'");
398
+ throw f.code = "MODULE_NOT_FOUND", f;
399
+ }
400
+ var l = n[o2] = { exports: {} };
401
+ t[o2][0].call(l.exports, function(e2) {
402
+ var n2 = t[o2][1][e2];
403
+ return s(n2 ? n2 : e2);
404
+ }, l, l.exports, e, t, n, r);
405
+ }
406
+ return n[o2].exports;
407
+ }
408
+ var i = typeof __require == "function" && __require;
409
+ for (var o = 0; o < r.length; o++) s(r[o]);
410
+ return s;
411
+ }
412
+ return e;
413
+ }())({ 1: [function(require2, module3, exports3) {
414
+ "use strict";
415
+ var fs = require2("fs");
416
+ var path = require2("path");
417
+ var utils = require2("./utils");
418
+ var scopeOptionWarned = false;
419
+ var _VERSION_STRING = require2("../package.json").version;
420
+ var _DEFAULT_OPEN_DELIMITER = "<";
421
+ var _DEFAULT_CLOSE_DELIMITER = ">";
422
+ var _DEFAULT_DELIMITER = "%";
423
+ var _DEFAULT_LOCALS_NAME = "locals";
424
+ var _NAME = "ejs";
425
+ var _REGEX_STRING = "(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)";
426
+ var _OPTS_PASSABLE_WITH_DATA = [
427
+ "delimiter",
428
+ "scope",
429
+ "context",
430
+ "debug",
431
+ "compileDebug",
432
+ "client",
433
+ "_with",
434
+ "rmWhitespace",
435
+ "strict",
436
+ "filename",
437
+ "async"
438
+ ];
439
+ var _OPTS_PASSABLE_WITH_DATA_EXPRESS = _OPTS_PASSABLE_WITH_DATA.concat("cache");
440
+ var _BOM = /^\uFEFF/;
441
+ exports3.cache = utils.cache;
442
+ exports3.fileLoader = fs.readFileSync;
443
+ exports3.localsName = _DEFAULT_LOCALS_NAME;
444
+ exports3.promiseImpl = new Function("return this;")().Promise;
445
+ exports3.resolveInclude = function(name, filename, isDir) {
446
+ var dirname = path.dirname;
447
+ var extname = path.extname;
448
+ var resolve = path.resolve;
449
+ var includePath = resolve(isDir ? filename : dirname(filename), name);
450
+ var ext = extname(name);
451
+ if (!ext) {
452
+ includePath += ".ejs";
453
+ }
454
+ return includePath;
455
+ };
456
+ function getIncludePath(path2, options) {
457
+ var includePath;
458
+ var filePath;
459
+ var views = options.views;
460
+ var match = /^[A-Za-z]+:\\|^\//.exec(path2);
461
+ if (match && match.length) {
462
+ includePath = exports3.resolveInclude(path2.replace(/^\/*/, ""), options.root || "/", true);
463
+ } else {
464
+ if (options.filename) {
465
+ filePath = exports3.resolveInclude(path2, options.filename);
466
+ if (fs.existsSync(filePath)) {
467
+ includePath = filePath;
468
+ }
469
+ }
470
+ if (!includePath) {
471
+ if (Array.isArray(views) && views.some(function(v) {
472
+ filePath = exports3.resolveInclude(path2, v, true);
473
+ return fs.existsSync(filePath);
474
+ })) {
475
+ includePath = filePath;
476
+ }
477
+ }
478
+ if (!includePath) {
479
+ throw new Error('Could not find the include file "' + options.escapeFunction(path2) + '"');
480
+ }
481
+ }
482
+ return includePath;
483
+ }
484
+ function handleCache(options, template) {
485
+ var func;
486
+ var filename = options.filename;
487
+ var hasTemplate = arguments.length > 1;
488
+ if (options.cache) {
489
+ if (!filename) {
490
+ throw new Error("cache option requires a filename");
491
+ }
492
+ func = exports3.cache.get(filename);
493
+ if (func) {
494
+ return func;
495
+ }
496
+ if (!hasTemplate) {
497
+ template = fileLoader(filename).toString().replace(_BOM, "");
498
+ }
499
+ } else if (!hasTemplate) {
500
+ if (!filename) {
501
+ throw new Error("Internal EJS error: no file name or template provided");
502
+ }
503
+ template = fileLoader(filename).toString().replace(_BOM, "");
504
+ }
505
+ func = exports3.compile(template, options);
506
+ if (options.cache) {
507
+ exports3.cache.set(filename, func);
508
+ }
509
+ return func;
510
+ }
511
+ function tryHandleCache(options, data, cb) {
512
+ var result;
513
+ if (!cb) {
514
+ if (typeof exports3.promiseImpl == "function") {
515
+ return new exports3.promiseImpl(function(resolve, reject) {
516
+ try {
517
+ result = handleCache(options)(data);
518
+ resolve(result);
519
+ } catch (err) {
520
+ reject(err);
521
+ }
522
+ });
523
+ } else {
524
+ throw new Error("Please provide a callback function");
525
+ }
526
+ } else {
527
+ try {
528
+ result = handleCache(options)(data);
529
+ } catch (err) {
530
+ return cb(err);
531
+ }
532
+ cb(null, result);
533
+ }
534
+ }
535
+ function fileLoader(filePath) {
536
+ return exports3.fileLoader(filePath);
537
+ }
538
+ function includeFile(path2, options) {
539
+ var opts = utils.shallowCopy({}, options);
540
+ opts.filename = getIncludePath(path2, opts);
541
+ return handleCache(opts);
542
+ }
543
+ function rethrow(err, str, flnm, lineno, esc) {
544
+ var lines = str.split("\n");
545
+ var start = Math.max(lineno - 3, 0);
546
+ var end = Math.min(lines.length, lineno + 3);
547
+ var filename = esc(flnm);
548
+ var context = lines.slice(start, end).map(function(line, i) {
549
+ var curr = i + start + 1;
550
+ return (curr == lineno ? " >> " : " ") + curr + "| " + line;
551
+ }).join("\n");
552
+ err.path = filename;
553
+ err.message = (filename || "ejs") + ":" + lineno + "\n" + context + "\n\n" + err.message;
554
+ throw err;
555
+ }
556
+ function stripSemi(str) {
557
+ return str.replace(/;(\s*$)/, "$1");
558
+ }
559
+ exports3.compile = function compile(template, opts) {
560
+ var templ;
561
+ if (opts && opts.scope) {
562
+ if (!scopeOptionWarned) {
563
+ console.warn("`scope` option is deprecated and will be removed in EJS 3");
564
+ scopeOptionWarned = true;
565
+ }
566
+ if (!opts.context) {
567
+ opts.context = opts.scope;
568
+ }
569
+ delete opts.scope;
570
+ }
571
+ templ = new Template(template, opts);
572
+ return templ.compile();
573
+ };
574
+ exports3.render = function(template, d, o) {
575
+ var data = d || {};
576
+ var opts = o || {};
577
+ if (arguments.length == 2) {
578
+ utils.shallowCopyFromList(opts, data, _OPTS_PASSABLE_WITH_DATA);
579
+ }
580
+ return handleCache(opts, template)(data);
581
+ };
582
+ exports3.renderFile = function() {
583
+ var args = Array.prototype.slice.call(arguments);
584
+ var filename = args.shift();
585
+ var cb;
586
+ var opts = { filename };
587
+ var data;
588
+ var viewOpts;
589
+ if (typeof arguments[arguments.length - 1] == "function") {
590
+ cb = args.pop();
591
+ }
592
+ if (args.length) {
593
+ data = args.shift();
594
+ if (args.length) {
595
+ utils.shallowCopy(opts, args.pop());
596
+ } else {
597
+ if (data.settings) {
598
+ if (data.settings.views) {
599
+ opts.views = data.settings.views;
600
+ }
601
+ if (data.settings["view cache"]) {
602
+ opts.cache = true;
603
+ }
604
+ viewOpts = data.settings["view options"];
605
+ if (viewOpts) {
606
+ utils.shallowCopy(opts, viewOpts);
607
+ }
608
+ }
609
+ utils.shallowCopyFromList(opts, data, _OPTS_PASSABLE_WITH_DATA_EXPRESS);
610
+ }
611
+ opts.filename = filename;
612
+ } else {
613
+ data = {};
614
+ }
615
+ return tryHandleCache(opts, data, cb);
616
+ };
617
+ exports3.Template = Template;
618
+ exports3.clearCache = function() {
619
+ exports3.cache.reset();
620
+ };
621
+ function Template(text, opts) {
622
+ opts = opts || {};
623
+ var options = {};
624
+ this.templateText = text;
625
+ this.mode = null;
626
+ this.truncate = false;
627
+ this.currentLine = 1;
628
+ this.source = "";
629
+ this.dependencies = [];
630
+ options.client = opts.client || false;
631
+ options.escapeFunction = opts.escape || opts.escapeFunction || utils.escapeXML;
632
+ options.compileDebug = opts.compileDebug !== false;
633
+ options.debug = !!opts.debug;
634
+ options.filename = opts.filename;
635
+ options.openDelimiter = opts.openDelimiter || exports3.openDelimiter || _DEFAULT_OPEN_DELIMITER;
636
+ options.closeDelimiter = opts.closeDelimiter || exports3.closeDelimiter || _DEFAULT_CLOSE_DELIMITER;
637
+ options.delimiter = opts.delimiter || exports3.delimiter || _DEFAULT_DELIMITER;
638
+ options.strict = opts.strict || false;
639
+ options.context = opts.context;
640
+ options.cache = opts.cache || false;
641
+ options.rmWhitespace = opts.rmWhitespace;
642
+ options.root = opts.root;
643
+ options.outputFunctionName = opts.outputFunctionName;
644
+ options.localsName = opts.localsName || exports3.localsName || _DEFAULT_LOCALS_NAME;
645
+ options.views = opts.views;
646
+ options.async = opts.async;
647
+ options.destructuredLocals = opts.destructuredLocals;
648
+ options.legacyInclude = typeof opts.legacyInclude != "undefined" ? !!opts.legacyInclude : true;
649
+ if (options.strict) {
650
+ options._with = false;
651
+ } else {
652
+ options._with = typeof opts._with != "undefined" ? opts._with : true;
653
+ }
654
+ this.opts = options;
655
+ this.regex = this.createRegex();
656
+ }
657
+ Template.modes = {
658
+ EVAL: "eval",
659
+ ESCAPED: "escaped",
660
+ RAW: "raw",
661
+ COMMENT: "comment",
662
+ LITERAL: "literal"
663
+ };
664
+ Template.prototype = {
665
+ createRegex: function() {
666
+ var str = _REGEX_STRING;
667
+ var delim = utils.escapeRegExpChars(this.opts.delimiter);
668
+ var open = utils.escapeRegExpChars(this.opts.openDelimiter);
669
+ var close = utils.escapeRegExpChars(this.opts.closeDelimiter);
670
+ str = str.replace(/%/g, delim).replace(/</g, open).replace(/>/g, close);
671
+ return new RegExp(str);
672
+ },
673
+ compile: function() {
674
+ var src;
675
+ var fn;
676
+ var opts = this.opts;
677
+ var prepended = "";
678
+ var appended = "";
679
+ var escapeFn = opts.escapeFunction;
680
+ var ctor;
681
+ if (!this.source) {
682
+ this.generateSource();
683
+ prepended += ' var __output = "";\n function __append(s) { if (s !== undefined && s !== null) __output += s }\n';
684
+ if (opts.outputFunctionName) {
685
+ prepended += " var " + opts.outputFunctionName + " = __append;\n";
686
+ }
687
+ if (opts.destructuredLocals && opts.destructuredLocals.length) {
688
+ var destructuring = " var __locals = (" + opts.localsName + " || {}),\n";
689
+ for (var i = 0; i < opts.destructuredLocals.length; i++) {
690
+ var name = opts.destructuredLocals[i];
691
+ if (i > 0) {
692
+ destructuring += ",\n ";
693
+ }
694
+ destructuring += name + " = __locals." + name;
695
+ }
696
+ prepended += destructuring + ";\n";
697
+ }
698
+ if (opts._with !== false) {
699
+ prepended += " with (" + opts.localsName + " || {}) {\n";
700
+ appended += " }\n";
701
+ }
702
+ appended += " return __output;\n";
703
+ this.source = prepended + this.source + appended;
704
+ }
705
+ if (opts.compileDebug) {
706
+ src = "var __line = 1\n , __lines = " + JSON.stringify(this.templateText) + "\n , __filename = " + (opts.filename ? JSON.stringify(opts.filename) : "undefined") + ";\ntry {\n" + this.source + "} catch (e) {\n rethrow(e, __lines, __filename, __line, escapeFn);\n}\n";
707
+ } else {
708
+ src = this.source;
709
+ }
710
+ if (opts.client) {
711
+ src = "escapeFn = escapeFn || " + escapeFn.toString() + ";\n" + src;
712
+ if (opts.compileDebug) {
713
+ src = "rethrow = rethrow || " + rethrow.toString() + ";\n" + src;
714
+ }
715
+ }
716
+ if (opts.strict) {
717
+ src = '"use strict";\n' + src;
718
+ }
719
+ if (opts.debug) {
720
+ console.log(src);
721
+ }
722
+ if (opts.compileDebug && opts.filename) {
723
+ src = src + "\n//# sourceURL=" + opts.filename + "\n";
724
+ }
725
+ try {
726
+ if (opts.async) {
727
+ try {
728
+ ctor = new Function("return (async function(){}).constructor;")();
729
+ } catch (e) {
730
+ if (e instanceof SyntaxError) {
731
+ throw new Error("This environment does not support async/await");
732
+ } else {
733
+ throw e;
734
+ }
735
+ }
736
+ } else {
737
+ ctor = Function;
738
+ }
739
+ fn = new ctor(opts.localsName + ", escapeFn, include, rethrow", src);
740
+ } catch (e) {
741
+ if (e instanceof SyntaxError) {
742
+ if (opts.filename) {
743
+ e.message += " in " + opts.filename;
744
+ }
745
+ e.message += " while compiling ejs\n\n";
746
+ e.message += "If the above error is not helpful, you may want to try EJS-Lint:\n";
747
+ e.message += "https://github.com/RyanZim/EJS-Lint";
748
+ if (!opts.async) {
749
+ e.message += "\n";
750
+ e.message += "Or, if you meant to create an async function, pass `async: true` as an option.";
751
+ }
752
+ }
753
+ throw e;
754
+ }
755
+ var returnedFn = opts.client ? fn : function anonymous(data) {
756
+ var include = function(path2, includeData) {
757
+ var d = utils.shallowCopy({}, data);
758
+ if (includeData) {
759
+ d = utils.shallowCopy(d, includeData);
760
+ }
761
+ return includeFile(path2, opts)(d);
762
+ };
763
+ return fn.apply(opts.context, [data || {}, escapeFn, include, rethrow]);
764
+ };
765
+ returnedFn.dependencies = this.dependencies;
766
+ if (opts.filename && typeof Object.defineProperty === "function") {
767
+ var filename = opts.filename;
768
+ var basename = path.basename(filename, path.extname(filename));
769
+ try {
770
+ Object.defineProperty(returnedFn, "name", {
771
+ value: basename,
772
+ writable: false,
773
+ enumerable: false,
774
+ configurable: true
775
+ });
776
+ } catch (e) {
777
+ }
778
+ }
779
+ return returnedFn;
780
+ },
781
+ generateSource: function() {
782
+ var opts = this.opts;
783
+ if (opts.rmWhitespace) {
784
+ this.templateText = this.templateText.replace(/[\r\n]+/g, "\n").replace(/^\s+|\s+$/gm, "");
785
+ }
786
+ this.templateText = this.templateText.replace(/[ \t]*<%_/gm, "<%_").replace(/_%>[ \t]*/gm, "_%>");
787
+ var self2 = this;
788
+ var matches = this.parseTemplateText();
789
+ var d = this.opts.delimiter;
790
+ var o = this.opts.openDelimiter;
791
+ var c = this.opts.closeDelimiter;
792
+ if (matches && matches.length) {
793
+ matches.forEach(function(line, index) {
794
+ var closing;
795
+ if (line.indexOf(o + d) === 0 && line.indexOf(o + d + d) !== 0) {
796
+ closing = matches[index + 2];
797
+ if (!(closing == d + c || closing == "-" + d + c || closing == "_" + d + c)) {
798
+ throw new Error('Could not find matching close tag for "' + line + '".');
799
+ }
800
+ }
801
+ self2.scanLine(line);
802
+ });
803
+ }
804
+ },
805
+ parseTemplateText: function() {
806
+ var str = this.templateText;
807
+ var pat = this.regex;
808
+ var result = pat.exec(str);
809
+ var arr = [];
810
+ var firstPos;
811
+ while (result) {
812
+ firstPos = result.index;
813
+ if (firstPos !== 0) {
814
+ arr.push(str.substring(0, firstPos));
815
+ str = str.slice(firstPos);
816
+ }
817
+ arr.push(result[0]);
818
+ str = str.slice(result[0].length);
819
+ result = pat.exec(str);
820
+ }
821
+ if (str) {
822
+ arr.push(str);
823
+ }
824
+ return arr;
825
+ },
826
+ _addOutput: function(line) {
827
+ if (this.truncate) {
828
+ line = line.replace(/^(?:\r\n|\r|\n)/, "");
829
+ this.truncate = false;
830
+ }
831
+ if (!line) {
832
+ return line;
833
+ }
834
+ line = line.replace(/\\/g, "\\\\");
835
+ line = line.replace(/\n/g, "\\n");
836
+ line = line.replace(/\r/g, "\\r");
837
+ line = line.replace(/"/g, '\\"');
838
+ this.source += ' ; __append("' + line + '")\n';
839
+ },
840
+ scanLine: function(line) {
841
+ var self2 = this;
842
+ var d = this.opts.delimiter;
843
+ var o = this.opts.openDelimiter;
844
+ var c = this.opts.closeDelimiter;
845
+ var newLineCount = 0;
846
+ newLineCount = line.split("\n").length - 1;
847
+ switch (line) {
848
+ case o + d:
849
+ case o + d + "_":
850
+ this.mode = Template.modes.EVAL;
851
+ break;
852
+ case o + d + "=":
853
+ this.mode = Template.modes.ESCAPED;
854
+ break;
855
+ case o + d + "-":
856
+ this.mode = Template.modes.RAW;
857
+ break;
858
+ case o + d + "#":
859
+ this.mode = Template.modes.COMMENT;
860
+ break;
861
+ case o + d + d:
862
+ this.mode = Template.modes.LITERAL;
863
+ this.source += ' ; __append("' + line.replace(o + d + d, o + d) + '")\n';
864
+ break;
865
+ case d + d + c:
866
+ this.mode = Template.modes.LITERAL;
867
+ this.source += ' ; __append("' + line.replace(d + d + c, d + c) + '")\n';
868
+ break;
869
+ case d + c:
870
+ case "-" + d + c:
871
+ case "_" + d + c:
872
+ if (this.mode == Template.modes.LITERAL) {
873
+ this._addOutput(line);
874
+ }
875
+ this.mode = null;
876
+ this.truncate = line.indexOf("-") === 0 || line.indexOf("_") === 0;
877
+ break;
878
+ default:
879
+ if (this.mode) {
880
+ switch (this.mode) {
881
+ case Template.modes.EVAL:
882
+ case Template.modes.ESCAPED:
883
+ case Template.modes.RAW:
884
+ if (line.lastIndexOf("//") > line.lastIndexOf("\n")) {
885
+ line += "\n";
886
+ }
887
+ }
888
+ switch (this.mode) {
889
+ // Just executing code
890
+ case Template.modes.EVAL:
891
+ this.source += " ; " + line + "\n";
892
+ break;
893
+ // Exec, esc, and output
894
+ case Template.modes.ESCAPED:
895
+ this.source += " ; __append(escapeFn(" + stripSemi(line) + "))\n";
896
+ break;
897
+ // Exec and output
898
+ case Template.modes.RAW:
899
+ this.source += " ; __append(" + stripSemi(line) + ")\n";
900
+ break;
901
+ case Template.modes.COMMENT:
902
+ break;
903
+ // Literal <%% mode, append as raw output
904
+ case Template.modes.LITERAL:
905
+ this._addOutput(line);
906
+ break;
907
+ }
908
+ } else {
909
+ this._addOutput(line);
910
+ }
911
+ }
912
+ if (self2.opts.compileDebug && newLineCount) {
913
+ this.currentLine += newLineCount;
914
+ this.source += " ; __line = " + this.currentLine + "\n";
915
+ }
916
+ }
917
+ };
918
+ exports3.escapeXML = utils.escapeXML;
919
+ exports3.__express = exports3.renderFile;
920
+ exports3.VERSION = _VERSION_STRING;
921
+ exports3.name = _NAME;
922
+ if (typeof window != "undefined") {
923
+ window.ejs = exports3;
924
+ }
925
+ }, { "../package.json": 6, "./utils": 2, "fs": 3, "path": 4 }], 2: [function(require2, module3, exports3) {
926
+ "use strict";
927
+ var regExpChars = /[|\\{}()[\]^$+*?.]/g;
928
+ exports3.escapeRegExpChars = function(string) {
929
+ if (!string) {
930
+ return "";
931
+ }
932
+ return String(string).replace(regExpChars, "\\$&");
933
+ };
934
+ var _ENCODE_HTML_RULES = {
935
+ "&": "&amp;",
936
+ "<": "&lt;",
937
+ ">": "&gt;",
938
+ '"': "&#34;",
939
+ "'": "&#39;"
940
+ };
941
+ var _MATCH_HTML = /[&<>'"]/g;
942
+ function encode_char(c) {
943
+ return _ENCODE_HTML_RULES[c] || c;
944
+ }
945
+ var escapeFuncStr = `var _ENCODE_HTML_RULES = {
946
+ "&": "&amp;"
947
+ , "<": "&lt;"
948
+ , ">": "&gt;"
949
+ , '"': "&#34;"
950
+ , "'": "&#39;"
951
+ }
952
+ , _MATCH_HTML = /[&<>'"]/g;
953
+ function encode_char(c) {
954
+ return _ENCODE_HTML_RULES[c] || c;
955
+ };
956
+ `;
957
+ exports3.escapeXML = function(markup) {
958
+ return markup == void 0 ? "" : String(markup).replace(_MATCH_HTML, encode_char);
959
+ };
960
+ exports3.escapeXML.toString = function() {
961
+ return Function.prototype.toString.call(this) + ";\n" + escapeFuncStr;
962
+ };
963
+ exports3.shallowCopy = function(to, from) {
964
+ from = from || {};
965
+ for (var p in from) {
966
+ to[p] = from[p];
967
+ }
968
+ return to;
969
+ };
970
+ exports3.shallowCopyFromList = function(to, from, list) {
971
+ for (var i = 0; i < list.length; i++) {
972
+ var p = list[i];
973
+ if (typeof from[p] != "undefined") {
974
+ to[p] = from[p];
975
+ }
976
+ }
977
+ return to;
978
+ };
979
+ exports3.cache = {
980
+ _data: {},
981
+ set: function(key, val) {
982
+ this._data[key] = val;
983
+ },
984
+ get: function(key) {
985
+ return this._data[key];
986
+ },
987
+ remove: function(key) {
988
+ delete this._data[key];
989
+ },
990
+ reset: function() {
991
+ this._data = {};
992
+ }
993
+ };
994
+ }, {}], 3: [function(require2, module3, exports3) {
995
+ }, {}], 4: [function(require2, module3, exports3) {
996
+ (function(process) {
997
+ function normalizeArray(parts, allowAboveRoot) {
998
+ var up = 0;
999
+ for (var i = parts.length - 1; i >= 0; i--) {
1000
+ var last = parts[i];
1001
+ if (last === ".") {
1002
+ parts.splice(i, 1);
1003
+ } else if (last === "..") {
1004
+ parts.splice(i, 1);
1005
+ up++;
1006
+ } else if (up) {
1007
+ parts.splice(i, 1);
1008
+ up--;
1009
+ }
1010
+ }
1011
+ if (allowAboveRoot) {
1012
+ for (; up--; up) {
1013
+ parts.unshift("..");
1014
+ }
1015
+ }
1016
+ return parts;
1017
+ }
1018
+ var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
1019
+ var splitPath = function(filename) {
1020
+ return splitPathRe.exec(filename).slice(1);
1021
+ };
1022
+ exports3.resolve = function() {
1023
+ var resolvedPath = "", resolvedAbsolute = false;
1024
+ for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
1025
+ var path = i >= 0 ? arguments[i] : process.cwd();
1026
+ if (typeof path !== "string") {
1027
+ throw new TypeError("Arguments to path.resolve must be strings");
1028
+ } else if (!path) {
1029
+ continue;
1030
+ }
1031
+ resolvedPath = path + "/" + resolvedPath;
1032
+ resolvedAbsolute = path.charAt(0) === "/";
1033
+ }
1034
+ resolvedPath = normalizeArray(filter(resolvedPath.split("/"), function(p) {
1035
+ return !!p;
1036
+ }), !resolvedAbsolute).join("/");
1037
+ return (resolvedAbsolute ? "/" : "") + resolvedPath || ".";
1038
+ };
1039
+ exports3.normalize = function(path) {
1040
+ var isAbsolute = exports3.isAbsolute(path), trailingSlash = substr(path, -1) === "/";
1041
+ path = normalizeArray(filter(path.split("/"), function(p) {
1042
+ return !!p;
1043
+ }), !isAbsolute).join("/");
1044
+ if (!path && !isAbsolute) {
1045
+ path = ".";
1046
+ }
1047
+ if (path && trailingSlash) {
1048
+ path += "/";
1049
+ }
1050
+ return (isAbsolute ? "/" : "") + path;
1051
+ };
1052
+ exports3.isAbsolute = function(path) {
1053
+ return path.charAt(0) === "/";
1054
+ };
1055
+ exports3.join = function() {
1056
+ var paths = Array.prototype.slice.call(arguments, 0);
1057
+ return exports3.normalize(filter(paths, function(p, index) {
1058
+ if (typeof p !== "string") {
1059
+ throw new TypeError("Arguments to path.join must be strings");
1060
+ }
1061
+ return p;
1062
+ }).join("/"));
1063
+ };
1064
+ exports3.relative = function(from, to) {
1065
+ from = exports3.resolve(from).substr(1);
1066
+ to = exports3.resolve(to).substr(1);
1067
+ function trim(arr) {
1068
+ var start = 0;
1069
+ for (; start < arr.length; start++) {
1070
+ if (arr[start] !== "") break;
1071
+ }
1072
+ var end = arr.length - 1;
1073
+ for (; end >= 0; end--) {
1074
+ if (arr[end] !== "") break;
1075
+ }
1076
+ if (start > end) return [];
1077
+ return arr.slice(start, end - start + 1);
1078
+ }
1079
+ var fromParts = trim(from.split("/"));
1080
+ var toParts = trim(to.split("/"));
1081
+ var length = Math.min(fromParts.length, toParts.length);
1082
+ var samePartsLength = length;
1083
+ for (var i = 0; i < length; i++) {
1084
+ if (fromParts[i] !== toParts[i]) {
1085
+ samePartsLength = i;
1086
+ break;
1087
+ }
1088
+ }
1089
+ var outputParts = [];
1090
+ for (var i = samePartsLength; i < fromParts.length; i++) {
1091
+ outputParts.push("..");
1092
+ }
1093
+ outputParts = outputParts.concat(toParts.slice(samePartsLength));
1094
+ return outputParts.join("/");
1095
+ };
1096
+ exports3.sep = "/";
1097
+ exports3.delimiter = ":";
1098
+ exports3.dirname = function(path) {
1099
+ var result = splitPath(path), root = result[0], dir = result[1];
1100
+ if (!root && !dir) {
1101
+ return ".";
1102
+ }
1103
+ if (dir) {
1104
+ dir = dir.substr(0, dir.length - 1);
1105
+ }
1106
+ return root + dir;
1107
+ };
1108
+ exports3.basename = function(path, ext) {
1109
+ var f = splitPath(path)[2];
1110
+ if (ext && f.substr(-1 * ext.length) === ext) {
1111
+ f = f.substr(0, f.length - ext.length);
1112
+ }
1113
+ return f;
1114
+ };
1115
+ exports3.extname = function(path) {
1116
+ return splitPath(path)[3];
1117
+ };
1118
+ function filter(xs, f) {
1119
+ if (xs.filter) return xs.filter(f);
1120
+ var res = [];
1121
+ for (var i = 0; i < xs.length; i++) {
1122
+ if (f(xs[i], i, xs)) res.push(xs[i]);
1123
+ }
1124
+ return res;
1125
+ }
1126
+ var substr = "ab".substr(-1) === "b" ? function(str, start, len) {
1127
+ return str.substr(start, len);
1128
+ } : function(str, start, len) {
1129
+ if (start < 0) start = str.length + start;
1130
+ return str.substr(start, len);
1131
+ };
1132
+ }).call(this, require2("_process"));
1133
+ }, { "_process": 5 }], 5: [function(require2, module3, exports3) {
1134
+ var process = module3.exports = {};
1135
+ var cachedSetTimeout;
1136
+ var cachedClearTimeout;
1137
+ function defaultSetTimout() {
1138
+ throw new Error("setTimeout has not been defined");
1139
+ }
1140
+ function defaultClearTimeout() {
1141
+ throw new Error("clearTimeout has not been defined");
1142
+ }
1143
+ (function() {
1144
+ try {
1145
+ if (typeof setTimeout === "function") {
1146
+ cachedSetTimeout = setTimeout;
1147
+ } else {
1148
+ cachedSetTimeout = defaultSetTimout;
1149
+ }
1150
+ } catch (e) {
1151
+ cachedSetTimeout = defaultSetTimout;
1152
+ }
1153
+ try {
1154
+ if (typeof clearTimeout === "function") {
1155
+ cachedClearTimeout = clearTimeout;
1156
+ } else {
1157
+ cachedClearTimeout = defaultClearTimeout;
1158
+ }
1159
+ } catch (e) {
1160
+ cachedClearTimeout = defaultClearTimeout;
1161
+ }
1162
+ })();
1163
+ function runTimeout(fun) {
1164
+ if (cachedSetTimeout === setTimeout) {
1165
+ return setTimeout(fun, 0);
1166
+ }
1167
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
1168
+ cachedSetTimeout = setTimeout;
1169
+ return setTimeout(fun, 0);
1170
+ }
1171
+ try {
1172
+ return cachedSetTimeout(fun, 0);
1173
+ } catch (e) {
1174
+ try {
1175
+ return cachedSetTimeout.call(null, fun, 0);
1176
+ } catch (e2) {
1177
+ return cachedSetTimeout.call(this, fun, 0);
1178
+ }
1179
+ }
1180
+ }
1181
+ function runClearTimeout(marker) {
1182
+ if (cachedClearTimeout === clearTimeout) {
1183
+ return clearTimeout(marker);
1184
+ }
1185
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
1186
+ cachedClearTimeout = clearTimeout;
1187
+ return clearTimeout(marker);
1188
+ }
1189
+ try {
1190
+ return cachedClearTimeout(marker);
1191
+ } catch (e) {
1192
+ try {
1193
+ return cachedClearTimeout.call(null, marker);
1194
+ } catch (e2) {
1195
+ return cachedClearTimeout.call(this, marker);
1196
+ }
1197
+ }
1198
+ }
1199
+ var queue = [];
1200
+ var draining = false;
1201
+ var currentQueue;
1202
+ var queueIndex = -1;
1203
+ function cleanUpNextTick() {
1204
+ if (!draining || !currentQueue) {
1205
+ return;
1206
+ }
1207
+ draining = false;
1208
+ if (currentQueue.length) {
1209
+ queue = currentQueue.concat(queue);
1210
+ } else {
1211
+ queueIndex = -1;
1212
+ }
1213
+ if (queue.length) {
1214
+ drainQueue();
1215
+ }
1216
+ }
1217
+ function drainQueue() {
1218
+ if (draining) {
1219
+ return;
1220
+ }
1221
+ var timeout = runTimeout(cleanUpNextTick);
1222
+ draining = true;
1223
+ var len = queue.length;
1224
+ while (len) {
1225
+ currentQueue = queue;
1226
+ queue = [];
1227
+ while (++queueIndex < len) {
1228
+ if (currentQueue) {
1229
+ currentQueue[queueIndex].run();
1230
+ }
1231
+ }
1232
+ queueIndex = -1;
1233
+ len = queue.length;
1234
+ }
1235
+ currentQueue = null;
1236
+ draining = false;
1237
+ runClearTimeout(timeout);
1238
+ }
1239
+ process.nextTick = function(fun) {
1240
+ var args = new Array(arguments.length - 1);
1241
+ if (arguments.length > 1) {
1242
+ for (var i = 1; i < arguments.length; i++) {
1243
+ args[i - 1] = arguments[i];
1244
+ }
1245
+ }
1246
+ queue.push(new Item(fun, args));
1247
+ if (queue.length === 1 && !draining) {
1248
+ runTimeout(drainQueue);
1249
+ }
1250
+ };
1251
+ function Item(fun, array) {
1252
+ this.fun = fun;
1253
+ this.array = array;
1254
+ }
1255
+ Item.prototype.run = function() {
1256
+ this.fun.apply(null, this.array);
1257
+ };
1258
+ process.title = "browser";
1259
+ process.browser = true;
1260
+ process.env = {};
1261
+ process.argv = [];
1262
+ process.version = "";
1263
+ process.versions = {};
1264
+ function noop() {
1265
+ }
1266
+ process.on = noop;
1267
+ process.addListener = noop;
1268
+ process.once = noop;
1269
+ process.off = noop;
1270
+ process.removeListener = noop;
1271
+ process.removeAllListeners = noop;
1272
+ process.emit = noop;
1273
+ process.prependListener = noop;
1274
+ process.prependOnceListener = noop;
1275
+ process.listeners = function(name) {
1276
+ return [];
1277
+ };
1278
+ process.binding = function(name) {
1279
+ throw new Error("process.binding is not supported");
1280
+ };
1281
+ process.cwd = function() {
1282
+ return "/";
1283
+ };
1284
+ process.chdir = function(dir) {
1285
+ throw new Error("process.chdir is not supported");
1286
+ };
1287
+ process.umask = function() {
1288
+ return 0;
1289
+ };
1290
+ }, {}], 6: [function(require2, module3, exports3) {
1291
+ module3.exports = {
1292
+ "name": "ejs",
1293
+ "description": "Embedded JavaScript templates",
1294
+ "keywords": [
1295
+ "template",
1296
+ "engine",
1297
+ "ejs"
1298
+ ],
1299
+ "version": "3.0.1",
1300
+ "author": "Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",
1301
+ "license": "Apache-2.0",
1302
+ "main": "./lib/ejs.js",
1303
+ "repository": {
1304
+ "type": "git",
1305
+ "url": "git://github.com/mde/ejs.git"
1306
+ },
1307
+ "bugs": "https://github.com/mde/ejs/issues",
1308
+ "homepage": "https://github.com/mde/ejs",
1309
+ "dependencies": {},
1310
+ "devDependencies": {
1311
+ "browserify": "^13.1.1",
1312
+ "eslint": "^4.14.0",
1313
+ "git-directory-deploy": "^1.5.1",
1314
+ "jake": "^10.3.1",
1315
+ "jsdoc": "^3.4.0",
1316
+ "lru-cache": "^4.0.1",
1317
+ "mocha": "^5.0.5",
1318
+ "uglify-js": "^3.3.16"
1319
+ },
1320
+ "engines": {
1321
+ "node": ">=0.10.0"
1322
+ },
1323
+ "scripts": {
1324
+ "test": "mocha",
1325
+ "postinstall": "node ./postinstall.js"
1326
+ }
1327
+ };
1328
+ }, {}] }, {}, [1])(1);
1329
+ });
1330
+ }
1331
+ });
1332
+
1333
+ // vis-jsontemplate/js/bundle.js
1334
+ var import_jsontemplate = __toESM(require_jsontemplate());
1335
+ var import_ejs = __toESM(require_ejs());
1336
+ })();
1337
+ /**
1338
+ * @file Embedded JavaScript templating engine. {@link http://ejs.co}
1339
+ * @author Matthew Eernisse <mde@fleegix.org>
1340
+ * @author Tiancheng "Timothy" Gu <timothygu99@gmail.com>
1341
+ * @project EJS
1342
+ * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
1343
+ */
1344
+ //# sourceMappingURL=jsontemplate-dist.js.map