argous 1.2.132 → 1.2.136

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 (554) hide show
  1. package/dist/api/index.d.ts +1 -0
  2. package/dist/api/index.js +18 -1
  3. package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +21 -0
  4. package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +331 -0
  5. package/dist/components/Compartilhar/Compartilhar.js +1 -1
  6. package/lib/actions/index.ts +57 -0
  7. package/lib/api/WebSocket.js +148 -0
  8. package/lib/api/index.js +402 -0
  9. package/lib/api/ws.js +27 -0
  10. package/lib/components/Alert/Alert.d.ts +8 -0
  11. package/lib/components/Alert/Alert.js +49 -0
  12. package/lib/components/Alert/index.d.ts +2 -0
  13. package/lib/components/Alert/index.js +1 -0
  14. package/lib/components/ArgousAction/ArgousAction.d.ts +8 -0
  15. package/lib/components/ArgousAction/ArgousAction.js +78 -0
  16. package/lib/components/ArgousAction/index.d.ts +2 -0
  17. package/lib/components/ArgousAction/index.js +1 -0
  18. package/lib/components/ArgousAvatar/ArgousAvatar.d.ts +14 -0
  19. package/lib/components/ArgousAvatar/ArgousAvatar.js +79 -0
  20. package/lib/components/ArgousAvatar/index.d.ts +2 -0
  21. package/lib/components/ArgousAvatar/index.js +1 -0
  22. package/lib/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +76 -0
  23. package/lib/components/ArgousComplexPagination/ArgousComplexPagination.js +182 -0
  24. package/lib/components/ArgousComplexPagination/index.d.ts +2 -0
  25. package/lib/components/ArgousComplexPagination/index.js +1 -0
  26. package/lib/components/ArgousComplexTable/ArgousComplexTable.d.ts +131 -0
  27. package/lib/components/ArgousComplexTable/ArgousComplexTable.js +360 -0
  28. package/lib/components/ArgousComplexTable/index.d.ts +2 -0
  29. package/lib/components/ArgousComplexTable/index.js +1 -0
  30. package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +177 -0
  31. package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.js +162 -0
  32. package/lib/components/ArgousComplexTableBody/index.d.ts +2 -0
  33. package/lib/components/ArgousComplexTableBody/index.js +1 -0
  34. package/lib/components/ArgousComplexTableHead/ArgousComplexTableHead.d.ts +73 -0
  35. package/lib/components/ArgousComplexTableHead/ArgousComplexTableHead.js +98 -0
  36. package/lib/components/ArgousComplexTableHead/index.d.ts +2 -0
  37. package/lib/components/ArgousComplexTableHead/index.js +1 -0
  38. package/lib/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.d.ts +58 -0
  39. package/lib/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +66 -0
  40. package/lib/components/ArgousComplexTableToolbar/index.d.ts +2 -0
  41. package/lib/components/ArgousComplexTableToolbar/index.js +1 -0
  42. package/lib/components/ArgousInput/ArgousInput.d.ts +8 -0
  43. package/lib/components/ArgousInput/ArgousInput.js +616 -0
  44. package/lib/components/ArgousInput/index.d.ts +2 -0
  45. package/lib/components/ArgousInput/index.js +1 -0
  46. package/lib/components/ArgousPagination/ArgousPagination.d.ts +8 -0
  47. package/lib/components/ArgousPagination/ArgousPagination.js +43 -0
  48. package/lib/components/ArgousPagination/index.d.ts +2 -0
  49. package/lib/components/ArgousPagination/index.js +1 -0
  50. package/lib/components/ArgousProgressBar/ArgousProgressBar.d.ts +22 -0
  51. package/lib/components/ArgousProgressBar/ArgousProgressBar.js +167 -0
  52. package/lib/components/ArgousProgressBar/index.d.ts +2 -0
  53. package/lib/components/ArgousProgressBar/index.js +1 -0
  54. package/lib/components/ArgousSimpleTable/ArgousSimpleTable.d.ts +8 -0
  55. package/lib/components/ArgousSimpleTable/ArgousSimpleTable.js +241 -0
  56. package/lib/components/ArgousSimpleTable/index.d.ts +2 -0
  57. package/lib/components/ArgousSimpleTable/index.js +1 -0
  58. package/lib/components/AutoComplete/AutoComplete.d.ts +8 -0
  59. package/lib/components/AutoComplete/AutoComplete.js +189 -0
  60. package/lib/components/AutoComplete/index.d.ts +2 -0
  61. package/lib/components/AutoComplete/index.js +1 -0
  62. package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.js +298 -0
  63. package/lib/components/BarChart/BarChart.d.ts +8 -0
  64. package/lib/components/BarChart/BarChart.js +92 -0
  65. package/lib/components/BarChart/index.d.ts +2 -0
  66. package/lib/components/BarChart/index.js +1 -0
  67. package/lib/components/BarraFerramentas/BarraFerramentas.d.ts +21 -0
  68. package/lib/components/BarraFerramentas/BarraFerramentas.js +277 -0
  69. package/lib/components/BarraFerramentas/index.d.ts +2 -0
  70. package/lib/components/BarraFerramentas/index.js +1 -0
  71. package/lib/components/Button/Button.d.ts +8 -0
  72. package/lib/components/Button/Button.js +135 -0
  73. package/lib/components/Button/index.d.ts +2 -0
  74. package/lib/components/Button/index.js +1 -0
  75. package/lib/components/Cabecalho/Cabecalho.d.ts +8 -0
  76. package/lib/components/Cabecalho/Cabecalho.js +245 -0
  77. package/lib/components/Cabecalho/index.d.ts +2 -0
  78. package/lib/components/Cabecalho/index.js +1 -0
  79. package/lib/components/Calendar/Calendar.d.ts +8 -0
  80. package/lib/components/Calendar/Calendar.js +156 -0
  81. package/lib/components/Calendar/index.d.ts +2 -0
  82. package/lib/components/Calendar/index.js +1 -0
  83. package/lib/components/CartaoUsuario/CartaoUsuario.d.ts +9 -0
  84. package/lib/components/CartaoUsuario/CartaoUsuario.js +108 -0
  85. package/lib/components/CartaoUsuario/index.d.ts +2 -0
  86. package/lib/components/CartaoUsuario/index.js +1 -0
  87. package/lib/components/Collapse/Collapse.d.ts +60 -0
  88. package/lib/components/Collapse/Collapse.js +317 -0
  89. package/lib/components/Collapse/index.d.ts +3 -0
  90. package/lib/components/Collapse/index.js +1 -0
  91. package/lib/components/Compartilhar/Compartilhar.d.ts +7 -0
  92. package/lib/components/Compartilhar/Compartilhar.js +314 -0
  93. package/lib/components/Compartilhar/index.d.ts +2 -0
  94. package/lib/components/Compartilhar/index.js +1 -0
  95. package/lib/components/ConfirmModal/BasicModal.tsx +63 -0
  96. package/lib/components/ConfirmModal/ModalProvider.tsx +81 -0
  97. package/lib/components/ConfirmModal/WrapperModal.tsx +33 -0
  98. package/lib/components/ConfirmModal/index.d.ts +20 -0
  99. package/lib/components/ConfirmModal/index.js +8 -0
  100. package/lib/components/DropArea/DropArea.d.ts +21 -0
  101. package/lib/components/DropArea/DropArea.js +90 -0
  102. package/lib/components/DropArea/Html5FileSelector.js +164 -0
  103. package/lib/components/DropArea/index.d.ts +2 -0
  104. package/lib/components/DropArea/index.js +1 -0
  105. package/lib/components/Editor/Events.ts +83 -0
  106. package/lib/components/Editor/ScriptLoader.ts +96 -0
  107. package/lib/components/Editor/TinyMCE.ts +19 -0
  108. package/lib/components/Editor/Utils.ts +95 -0
  109. package/lib/components/Editor/components/Editor.tsx +375 -0
  110. package/lib/components/Editor/components/EditorPropTypes.ts +106 -0
  111. package/lib/components/Editor/index.tsx +11 -0
  112. package/lib/components/Editor/skins/content/dark/content.css +72 -0
  113. package/lib/components/Editor/skins/content/dark/content.min.css +8 -0
  114. package/lib/components/Editor/skins/content/dark/content.min.css.map +1 -0
  115. package/lib/components/Editor/skins/content/default/content.css +67 -0
  116. package/lib/components/Editor/skins/content/default/content.min.css +8 -0
  117. package/lib/components/Editor/skins/content/default/content.min.css.map +1 -0
  118. package/lib/components/Editor/skins/content/document/content.css +72 -0
  119. package/lib/components/Editor/skins/content/document/content.min.css +8 -0
  120. package/lib/components/Editor/skins/content/document/content.min.css.map +1 -0
  121. package/lib/components/Editor/skins/content/writer/content.css +68 -0
  122. package/lib/components/Editor/skins/content/writer/content.min.css +8 -0
  123. package/lib/components/Editor/skins/content/writer/content.min.css.map +1 -0
  124. package/lib/components/Editor/skins/ui/dark/content.css +714 -0
  125. package/lib/components/Editor/skins/ui/dark/content.inline.css +726 -0
  126. package/lib/components/Editor/skins/ui/dark/content.inline.min.css +8 -0
  127. package/lib/components/Editor/skins/ui/dark/content.inline.min.css.map +1 -0
  128. package/lib/components/Editor/skins/ui/dark/content.min.css +8 -0
  129. package/lib/components/Editor/skins/ui/dark/content.min.css.map +1 -0
  130. package/lib/components/Editor/skins/ui/dark/content.mobile.css +29 -0
  131. package/lib/components/Editor/skins/ui/dark/content.mobile.min.css +8 -0
  132. package/lib/components/Editor/skins/ui/dark/content.mobile.min.css.map +1 -0
  133. package/lib/components/Editor/skins/ui/dark/fonts/tinymce-mobile.woff +0 -0
  134. package/lib/components/Editor/skins/ui/dark/skin.css +3034 -0
  135. package/lib/components/Editor/skins/ui/dark/skin.min.css +8 -0
  136. package/lib/components/Editor/skins/ui/dark/skin.min.css.map +1 -0
  137. package/lib/components/Editor/skins/ui/dark/skin.mobile.css +673 -0
  138. package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css +8 -0
  139. package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css.map +1 -0
  140. package/lib/components/Editor/skins/ui/dark/skin.shadowdom.css +37 -0
  141. package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css +8 -0
  142. package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css.map +1 -0
  143. package/lib/components/Editor/skins/ui/default/content.css +732 -0
  144. package/lib/components/Editor/skins/ui/default/content.inline.css +726 -0
  145. package/lib/components/Editor/skins/ui/default/content.inline.min.css +8 -0
  146. package/lib/components/Editor/skins/ui/default/content.inline.min.css.map +1 -0
  147. package/lib/components/Editor/skins/ui/default/content.min.css +8 -0
  148. package/lib/components/Editor/skins/ui/default/content.min.css.map +1 -0
  149. package/lib/components/Editor/skins/ui/default/content.mobile.css +29 -0
  150. package/lib/components/Editor/skins/ui/default/content.mobile.min.css +8 -0
  151. package/lib/components/Editor/skins/ui/default/content.mobile.min.css.map +1 -0
  152. package/lib/components/Editor/skins/ui/default/fonts/tinymce-mobile.woff +0 -0
  153. package/lib/components/Editor/skins/ui/default/skin.css +3034 -0
  154. package/lib/components/Editor/skins/ui/default/skin.min.css +8 -0
  155. package/lib/components/Editor/skins/ui/default/skin.min.css.map +1 -0
  156. package/lib/components/Editor/skins/ui/default/skin.mobile.css +673 -0
  157. package/lib/components/Editor/skins/ui/default/skin.mobile.min.css +8 -0
  158. package/lib/components/Editor/skins/ui/default/skin.mobile.min.css.map +1 -0
  159. package/lib/components/Editor/skins/ui/default/skin.shadowdom.css +37 -0
  160. package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css +8 -0
  161. package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css.map +1 -0
  162. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/fonts/tinymce-mobile.woff +0 -0
  163. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.css +1641 -0
  164. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css +8 -0
  165. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css.map +1 -0
  166. package/lib/components/Editor/tinymce/README.md +63 -0
  167. package/lib/components/Editor/tinymce/icons/default/icons.js +172 -0
  168. package/lib/components/Editor/tinymce/icons/default/icons.min.js +1 -0
  169. package/lib/components/Editor/tinymce/jquery.tinymce.min.js +92 -0
  170. package/lib/components/Editor/tinymce/langs/README.md +3 -0
  171. package/lib/components/Editor/tinymce/langs/pt_BR.js +419 -0
  172. package/lib/components/Editor/tinymce/license.txt +504 -0
  173. package/lib/components/Editor/tinymce/plugins/advlist/plugin.js +280 -0
  174. package/lib/components/Editor/tinymce/plugins/advlist/plugin.min.js +9 -0
  175. package/lib/components/Editor/tinymce/plugins/anchor/plugin.js +216 -0
  176. package/lib/components/Editor/tinymce/plugins/anchor/plugin.min.js +9 -0
  177. package/lib/components/Editor/tinymce/plugins/autolink/plugin.js +185 -0
  178. package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +9 -0
  179. package/lib/components/Editor/tinymce/plugins/autoresize/plugin.js +171 -0
  180. package/lib/components/Editor/tinymce/plugins/autoresize/plugin.min.js +9 -0
  181. package/lib/components/Editor/tinymce/plugins/autosave/plugin.js +212 -0
  182. package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +9 -0
  183. package/lib/components/Editor/tinymce/plugins/bbcode/plugin.js +99 -0
  184. package/lib/components/Editor/tinymce/plugins/bbcode/plugin.min.js +9 -0
  185. package/lib/components/Editor/tinymce/plugins/charmap/plugin.js +1706 -0
  186. package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +9 -0
  187. package/lib/components/Editor/tinymce/plugins/code/plugin.js +92 -0
  188. package/lib/components/Editor/tinymce/plugins/code/plugin.min.js +9 -0
  189. package/lib/components/Editor/tinymce/plugins/codesample/plugin.js +2332 -0
  190. package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +9 -0
  191. package/{dist/components/Editor/tinymce/plugins/textcolor → lib/components/Editor/tinymce/plugins/colorpicker}/plugin.js +8 -5
  192. package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.min.js +9 -0
  193. package/{dist/components/Editor/tinymce/plugins/colorpicker → lib/components/Editor/tinymce/plugins/contextmenu}/plugin.js +8 -5
  194. package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.min.js +9 -0
  195. package/lib/components/Editor/tinymce/plugins/directionality/plugin.js +320 -0
  196. package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +9 -0
  197. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.js +9424 -0
  198. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.min.js +3 -0
  199. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.js +9423 -0
  200. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.min.js +2 -0
  201. package/lib/components/Editor/tinymce/plugins/emoticons/plugin.js +605 -0
  202. package/lib/components/Editor/tinymce/plugins/emoticons/plugin.min.js +9 -0
  203. package/lib/components/Editor/tinymce/plugins/fullpage/plugin.js +544 -0
  204. package/lib/components/Editor/tinymce/plugins/fullpage/plugin.min.js +9 -0
  205. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.js +979 -0
  206. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +9 -0
  207. package/lib/components/Editor/tinymce/plugins/help/plugin.js +873 -0
  208. package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +9 -0
  209. package/lib/components/Editor/tinymce/plugins/hr/plugin.js +46 -0
  210. package/lib/components/Editor/tinymce/plugins/hr/plugin.min.js +9 -0
  211. package/lib/components/Editor/tinymce/plugins/image/plugin.js +1661 -0
  212. package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +9 -0
  213. package/lib/components/Editor/tinymce/plugins/imagetools/plugin.js +1354 -0
  214. package/lib/components/Editor/tinymce/plugins/imagetools/plugin.min.js +9 -0
  215. package/lib/components/Editor/tinymce/plugins/importcss/plugin.js +343 -0
  216. package/lib/components/Editor/tinymce/plugins/importcss/plugin.min.js +9 -0
  217. package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.js +177 -0
  218. package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.min.js +9 -0
  219. package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.js +199 -0
  220. package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.min.js +9 -0
  221. package/lib/components/Editor/tinymce/plugins/link/plugin.js +1287 -0
  222. package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +9 -0
  223. package/lib/components/Editor/tinymce/plugins/lists/plugin.js +2286 -0
  224. package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +9 -0
  225. package/lib/components/Editor/tinymce/plugins/media/plugin.js +1382 -0
  226. package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +9 -0
  227. package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.js +101 -0
  228. package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.min.js +9 -0
  229. package/lib/components/Editor/tinymce/plugins/noneditable/plugin.js +117 -0
  230. package/lib/components/Editor/tinymce/plugins/noneditable/plugin.min.js +9 -0
  231. package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.js +105 -0
  232. package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.min.js +9 -0
  233. package/lib/components/Editor/tinymce/plugins/paste/plugin.js +1764 -0
  234. package/lib/components/Editor/tinymce/plugins/paste/plugin.min.js +9 -0
  235. package/lib/components/Editor/tinymce/plugins/preview/plugin.js +127 -0
  236. package/lib/components/Editor/tinymce/plugins/preview/plugin.min.js +9 -0
  237. package/lib/components/Editor/tinymce/plugins/print/plugin.js +53 -0
  238. package/lib/components/Editor/tinymce/plugins/print/plugin.min.js +9 -0
  239. package/lib/components/Editor/tinymce/plugins/quickbars/plugin.js +489 -0
  240. package/lib/components/Editor/tinymce/plugins/quickbars/plugin.min.js +9 -0
  241. package/lib/components/Editor/tinymce/plugins/save/plugin.js +119 -0
  242. package/lib/components/Editor/tinymce/plugins/save/plugin.min.js +9 -0
  243. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.js +1163 -0
  244. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +9 -0
  245. package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.js +731 -0
  246. package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.min.js +9 -0
  247. package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.js +129 -0
  248. package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.min.js +9 -0
  249. package/lib/components/Editor/tinymce/plugins/table/plugin.js +10938 -0
  250. package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +9 -0
  251. package/lib/components/Editor/tinymce/plugins/template/plugin.js +577 -0
  252. package/lib/components/Editor/tinymce/plugins/template/plugin.min.js +9 -0
  253. package/{dist/components/Editor/tinymce/plugins/contextmenu → lib/components/Editor/tinymce/plugins/textcolor}/plugin.js +8 -5
  254. package/lib/components/Editor/tinymce/plugins/textcolor/plugin.min.js +9 -0
  255. package/lib/components/Editor/tinymce/plugins/textpattern/plugin.js +1394 -0
  256. package/lib/components/Editor/tinymce/plugins/textpattern/plugin.min.js +9 -0
  257. package/lib/components/Editor/tinymce/plugins/toc/plugin.js +236 -0
  258. package/lib/components/Editor/tinymce/plugins/toc/plugin.min.js +9 -0
  259. package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.js +104 -0
  260. package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.min.js +9 -0
  261. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.js +541 -0
  262. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +9 -0
  263. package/lib/components/Editor/tinymce/plugins/wordcount/plugin.js +416 -0
  264. package/lib/components/Editor/tinymce/plugins/wordcount/plugin.min.js +9 -0
  265. package/lib/components/Editor/tinymce/skins/content/dark/content.css +72 -0
  266. package/lib/components/Editor/tinymce/skins/content/dark/content.min.css +8 -0
  267. package/lib/components/Editor/tinymce/skins/content/dark/content.min.css.map +1 -0
  268. package/lib/components/Editor/tinymce/skins/content/default/content.css +67 -0
  269. package/lib/components/Editor/tinymce/skins/content/default/content.min.css +8 -0
  270. package/lib/components/Editor/tinymce/skins/content/default/content.min.css.map +1 -0
  271. package/lib/components/Editor/tinymce/skins/content/document/content.css +72 -0
  272. package/lib/components/Editor/tinymce/skins/content/document/content.min.css +8 -0
  273. package/lib/components/Editor/tinymce/skins/content/document/content.min.css.map +1 -0
  274. package/lib/components/Editor/tinymce/skins/content/writer/content.css +68 -0
  275. package/lib/components/Editor/tinymce/skins/content/writer/content.min.css +8 -0
  276. package/lib/components/Editor/tinymce/skins/content/writer/content.min.css.map +1 -0
  277. package/lib/components/Editor/tinymce/skins/ui/oxide/content.css +732 -0
  278. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.css +726 -0
  279. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +8 -0
  280. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css.map +1 -0
  281. package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css +8 -0
  282. package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css.map +1 -0
  283. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.css +29 -0
  284. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css +8 -0
  285. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css.map +1 -0
  286. package/lib/components/Editor/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
  287. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.css +3034 -0
  288. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css +8 -0
  289. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css.map +1 -0
  290. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.css +673 -0
  291. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css +8 -0
  292. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css.map +1 -0
  293. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +37 -0
  294. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +8 -0
  295. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css.map +1 -0
  296. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.css +714 -0
  297. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +726 -0
  298. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +8 -0
  299. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css.map +1 -0
  300. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +8 -0
  301. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css.map +1 -0
  302. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.css +29 -0
  303. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css +8 -0
  304. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css.map +1 -0
  305. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
  306. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.css +3034 -0
  307. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +8 -0
  308. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css.map +1 -0
  309. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.css +673 -0
  310. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +8 -0
  311. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css.map +1 -0
  312. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +37 -0
  313. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +8 -0
  314. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -0
  315. package/lib/components/Editor/tinymce/themes/mobile/theme.js +13587 -0
  316. package/lib/components/Editor/tinymce/themes/mobile/theme.min.js +9 -0
  317. package/lib/components/Editor/tinymce/themes/silver/theme.js +32480 -0
  318. package/lib/components/Editor/tinymce/themes/silver/theme.min.js +9 -0
  319. package/lib/components/Editor/tinymce/tinymce.d.ts +2963 -0
  320. package/lib/components/Editor/tinymce/tinymce.js +30106 -0
  321. package/lib/components/Editor/tinymce/tinymce.min.js +30106 -0
  322. package/lib/components/FilePreparer/FilePreparer.d.ts +26 -0
  323. package/lib/components/FilePreparer/FilePreparer.js +247 -0
  324. package/lib/components/FilePreparer/index.d.ts +2 -0
  325. package/lib/components/FilePreparer/index.js +1 -0
  326. package/lib/components/FileUploader/FileUploader.d.ts +9 -0
  327. package/lib/components/FileUploader/FileUploader.js +318 -0
  328. package/lib/components/FileUploader/index.d.ts +2 -0
  329. package/lib/components/FileUploader/index.js +1 -0
  330. package/lib/components/FormVisualizer/FormVisualizer.d.ts +92 -0
  331. package/lib/components/FormVisualizer/FormVisualizer.js +289 -0
  332. package/lib/components/FormVisualizer/index.d.ts +2 -0
  333. package/lib/components/FormVisualizer/index.js +1 -0
  334. package/lib/components/Highlight/Highlight.d.ts +7 -0
  335. package/lib/components/Highlight/Highlight.js +51 -0
  336. package/lib/components/Highlight/index.d.ts +2 -0
  337. package/lib/components/Highlight/index.js +1 -0
  338. package/lib/components/ImageResize/ImageResize.d.ts +28 -0
  339. package/lib/components/ImageResize/ImageResize.js +479 -0
  340. package/lib/components/ImageResize/index.d.ts +2 -0
  341. package/lib/components/ImageResize/index.js +1 -0
  342. package/lib/components/ImageResizeButton/ImageResizeButton.d.ts +26 -0
  343. package/lib/components/ImageResizeButton/ImageResizeButton.js +65 -0
  344. package/lib/components/ImageResizeButton/index.d.ts +2 -0
  345. package/lib/components/ImageResizeButton/index.js +1 -0
  346. package/lib/components/Input/Input.d.ts +8 -0
  347. package/lib/components/Input/Input.js +353 -0
  348. package/lib/components/Input/index.d.ts +2 -0
  349. package/lib/components/Input/index.js +1 -0
  350. package/lib/components/InputTags/InputTags.d.ts +8 -0
  351. package/lib/components/InputTags/InputTags.js +94 -0
  352. package/lib/components/InputTags/index.d.ts +2 -0
  353. package/lib/components/InputTags/index.js +1 -0
  354. package/lib/components/ListSelect/ListSelect.d.ts +8 -0
  355. package/lib/components/ListSelect/ListSelect.js +94 -0
  356. package/lib/components/ListSelect/index.d.ts +2 -0
  357. package/lib/components/ListSelect/index.js +1 -0
  358. package/lib/components/MaterialButton/MaterialButton.d.ts +13 -0
  359. package/lib/components/MaterialButton/MaterialButton.js +177 -0
  360. package/lib/components/MaterialButton/index.d.ts +2 -0
  361. package/lib/components/MaterialButton/index.js +1 -0
  362. package/lib/components/MenuBar/MenuBar.d.ts +8 -0
  363. package/lib/components/MenuBar/MenuBar.js +139 -0
  364. package/lib/components/MenuBar/index.d.ts +2 -0
  365. package/lib/components/MenuBar/index.js +1 -0
  366. package/lib/components/MonthPicker/MonthPicker.d.ts +8 -0
  367. package/lib/components/MonthPicker/MonthPicker.js +313 -0
  368. package/lib/components/MonthPicker/index.d.ts +2 -0
  369. package/lib/components/MonthPicker/index.js +1 -0
  370. package/lib/components/MultipleSelect/MultipleSelect.d.ts +8 -0
  371. package/lib/components/MultipleSelect/MultipleSelect.js +106 -0
  372. package/lib/components/MultipleSelect/index.d.ts +2 -0
  373. package/lib/components/MultipleSelect/index.js +1 -0
  374. package/lib/components/OtpInput/OtpInput.tsx +244 -0
  375. package/lib/components/OtpInput/index.d.ts +2 -0
  376. package/lib/components/OtpInput/index.js +1 -0
  377. package/lib/components/OutputText/OutputText.d.ts +8 -0
  378. package/lib/components/OutputText/OutputText.js +57 -0
  379. package/lib/components/OutputText/index.d.ts +2 -0
  380. package/lib/components/OutputText/index.js +1 -0
  381. package/lib/components/Pagination/Pagination.d.ts +8 -0
  382. package/lib/components/Pagination/Pagination.js +32 -0
  383. package/lib/components/Pagination/index.d.ts +2 -0
  384. package/lib/components/Pagination/index.js +1 -0
  385. package/lib/components/Programa/Programa.d.ts +31 -0
  386. package/lib/components/Programa/Programa.js +172 -0
  387. package/lib/components/Programa/index.d.ts +2 -0
  388. package/lib/components/Programa/index.js +1 -0
  389. package/lib/components/ProgressBar/ProgressBar.d.ts +8 -0
  390. package/lib/components/ProgressBar/ProgressBar.js +71 -0
  391. package/lib/components/ProgressBar/index.d.ts +2 -0
  392. package/lib/components/ProgressBar/index.js +1 -0
  393. package/lib/components/Select/Select.d.ts +8 -0
  394. package/lib/components/Select/Select.js +117 -0
  395. package/lib/components/Select/index.d.ts +2 -0
  396. package/lib/components/Select/index.js +1 -0
  397. package/lib/components/SimpleTable/SimpleTable.d.ts +13 -0
  398. package/lib/components/SimpleTable/SimpleTable.js +504 -0
  399. package/lib/components/SimpleTable/index.d.ts +2 -0
  400. package/lib/components/SimpleTable/index.js +2 -0
  401. package/lib/components/Stepper/Stepper.d.ts +54 -0
  402. package/lib/components/Stepper/Stepper.js +222 -0
  403. package/lib/components/Stepper/index.d.ts +2 -0
  404. package/lib/components/Stepper/index.js +1 -0
  405. package/lib/components/TablePicker/TablePicker.d.ts +8 -0
  406. package/lib/components/TablePicker/TablePicker.js +238 -0
  407. package/lib/components/TablePicker/index.d.ts +2 -0
  408. package/lib/components/TablePicker/index.js +1 -0
  409. package/lib/components/Tabs/Tabs.d.ts +8 -0
  410. package/lib/components/Tabs/Tabs.js +59 -0
  411. package/lib/components/Tabs/index.d.ts +2 -0
  412. package/lib/components/Tabs/index.js +1 -0
  413. package/lib/components/TextArea/TextArea.d.ts +8 -0
  414. package/lib/components/TextArea/TextArea.js +123 -0
  415. package/lib/components/TextArea/index.d.ts +2 -0
  416. package/lib/components/TextArea/index.js +1 -0
  417. package/lib/components/ThreadLog/ThreadLog.d.ts +8 -0
  418. package/lib/components/ThreadLog/ThreadLog.js +189 -0
  419. package/lib/components/ThreadLog/index.d.ts +2 -0
  420. package/lib/components/ThreadLog/index.js +1 -0
  421. package/lib/components/UtilAutoComplete/UtilAutoComplete.d.ts +93 -0
  422. package/lib/components/UtilAutoComplete/UtilAutoComplete.js +130 -0
  423. package/lib/components/UtilAutoComplete/index.d.ts +2 -0
  424. package/lib/components/UtilAutoComplete/index.js +1 -0
  425. package/lib/components/index.d.ts +148 -0
  426. package/lib/components/index.js +146 -0
  427. package/lib/fieldsRedux/createField.d.ts +8 -0
  428. package/lib/fieldsRedux/createField.js +120 -0
  429. package/lib/fieldsRedux/fieldsRedux.d.ts +71 -0
  430. package/lib/fieldsRedux/fieldsRedux.js +391 -0
  431. package/lib/fieldsRedux/index.d.ts +4 -0
  432. package/lib/fieldsRedux/index.js +5 -0
  433. package/lib/fieldsRedux/passFields.d.ts +5 -0
  434. package/lib/fieldsRedux/passFields.js +76 -0
  435. package/lib/reducers/argous.ts +103 -0
  436. package/lib/reducers/index.ts +6 -0
  437. package/lib/types.d.ts +144 -0
  438. package/lib/utils/api.ts +153 -0
  439. package/lib/utils/config.ts +12 -0
  440. package/lib/utils/date.ts +63 -0
  441. package/lib/utils/index.ts +314 -0
  442. package/lib/utils/rippleEffect.js +211 -0
  443. package/lib/utils/store.ts +11 -0
  444. package/lib/utils/xmlToJson.js +117 -0
  445. package/package.json +1 -1
  446. package/dist/components/ArgousComplexTableBody/dnd/Container.d.ts +0 -55
  447. package/dist/components/ArgousComplexTableBody/dnd/Container.js +0 -173
  448. package/dist/components/ArgousComplexTableBody/dnd/Draggable.d.ts +0 -14
  449. package/dist/components/ArgousComplexTableBody/dnd/Draggable.js +0 -73
  450. package/dist/components/ArgousComplexTableBody/dnd/index.d.ts +0 -2
  451. package/dist/components/ArgousComplexTableBody/dnd/index.js +0 -10
  452. package/dist/components/ConfirmModal/useModal.d.ts +0 -2
  453. package/dist/components/ConfirmModal/useModal.js +0 -9
  454. package/dist/components/DropArea/worker.d.ts +0 -1
  455. package/dist/components/DropArea/worker.js +0 -55
  456. package/dist/components/Editor/tinymce/icons/default/icons.d.ts +0 -0
  457. package/dist/components/Editor/tinymce/icons/default/icons.js +0 -173
  458. package/dist/components/Editor/tinymce/plugins/advlist/plugin.d.ts +0 -0
  459. package/dist/components/Editor/tinymce/plugins/advlist/plugin.js +0 -271
  460. package/dist/components/Editor/tinymce/plugins/anchor/plugin.d.ts +0 -0
  461. package/dist/components/Editor/tinymce/plugins/anchor/plugin.js +0 -207
  462. package/dist/components/Editor/tinymce/plugins/autolink/plugin.d.ts +0 -0
  463. package/dist/components/Editor/tinymce/plugins/autolink/plugin.js +0 -187
  464. package/dist/components/Editor/tinymce/plugins/autoresize/plugin.d.ts +0 -0
  465. package/dist/components/Editor/tinymce/plugins/autoresize/plugin.js +0 -163
  466. package/dist/components/Editor/tinymce/plugins/autosave/plugin.d.ts +0 -0
  467. package/dist/components/Editor/tinymce/plugins/autosave/plugin.js +0 -199
  468. package/dist/components/Editor/tinymce/plugins/bbcode/plugin.d.ts +0 -0
  469. package/dist/components/Editor/tinymce/plugins/bbcode/plugin.js +0 -94
  470. package/dist/components/Editor/tinymce/plugins/charmap/plugin.d.ts +0 -0
  471. package/dist/components/Editor/tinymce/plugins/charmap/plugin.js +0 -1691
  472. package/dist/components/Editor/tinymce/plugins/code/plugin.d.ts +0 -0
  473. package/dist/components/Editor/tinymce/plugins/code/plugin.js +0 -85
  474. package/dist/components/Editor/tinymce/plugins/codesample/plugin.js +0 -2331
  475. package/dist/components/Editor/tinymce/plugins/colorpicker/plugin.d.ts +0 -0
  476. package/dist/components/Editor/tinymce/plugins/contextmenu/plugin.d.ts +0 -0
  477. package/dist/components/Editor/tinymce/plugins/directionality/plugin.d.ts +0 -0
  478. package/dist/components/Editor/tinymce/plugins/directionality/plugin.js +0 -300
  479. package/dist/components/Editor/tinymce/plugins/emoticons/js/emojiimages.d.ts +0 -0
  480. package/dist/components/Editor/tinymce/plugins/emoticons/js/emojiimages.js +0 -9425
  481. package/dist/components/Editor/tinymce/plugins/emoticons/js/emojis.d.ts +0 -0
  482. package/dist/components/Editor/tinymce/plugins/emoticons/js/emojis.js +0 -9424
  483. package/dist/components/Editor/tinymce/plugins/emoticons/plugin.d.ts +0 -0
  484. package/dist/components/Editor/tinymce/plugins/emoticons/plugin.js +0 -585
  485. package/dist/components/Editor/tinymce/plugins/fullpage/plugin.d.ts +0 -0
  486. package/dist/components/Editor/tinymce/plugins/fullpage/plugin.js +0 -539
  487. package/dist/components/Editor/tinymce/plugins/fullscreen/plugin.d.ts +0 -0
  488. package/dist/components/Editor/tinymce/plugins/fullscreen/plugin.js +0 -962
  489. package/dist/components/Editor/tinymce/plugins/help/plugin.d.ts +0 -0
  490. package/dist/components/Editor/tinymce/plugins/help/plugin.js +0 -850
  491. package/dist/components/Editor/tinymce/plugins/hr/plugin.d.ts +0 -0
  492. package/dist/components/Editor/tinymce/plugins/hr/plugin.js +0 -41
  493. package/dist/components/Editor/tinymce/plugins/image/plugin.d.ts +0 -0
  494. package/dist/components/Editor/tinymce/plugins/image/plugin.js +0 -1673
  495. package/dist/components/Editor/tinymce/plugins/imagetools/plugin.d.ts +0 -0
  496. package/dist/components/Editor/tinymce/plugins/imagetools/plugin.js +0 -1335
  497. package/dist/components/Editor/tinymce/plugins/importcss/plugin.d.ts +0 -0
  498. package/dist/components/Editor/tinymce/plugins/importcss/plugin.js +0 -346
  499. package/dist/components/Editor/tinymce/plugins/insertdatetime/plugin.d.ts +0 -0
  500. package/dist/components/Editor/tinymce/plugins/insertdatetime/plugin.js +0 -171
  501. package/dist/components/Editor/tinymce/plugins/legacyoutput/plugin.d.ts +0 -0
  502. package/dist/components/Editor/tinymce/plugins/legacyoutput/plugin.js +0 -193
  503. package/dist/components/Editor/tinymce/plugins/link/plugin.d.ts +0 -0
  504. package/dist/components/Editor/tinymce/plugins/link/plugin.js +0 -1282
  505. package/dist/components/Editor/tinymce/plugins/lists/plugin.d.ts +0 -0
  506. package/dist/components/Editor/tinymce/plugins/lists/plugin.js +0 -2256
  507. package/dist/components/Editor/tinymce/plugins/media/plugin.d.ts +0 -0
  508. package/dist/components/Editor/tinymce/plugins/media/plugin.js +0 -1374
  509. package/dist/components/Editor/tinymce/plugins/nonbreaking/plugin.d.ts +0 -0
  510. package/dist/components/Editor/tinymce/plugins/nonbreaking/plugin.js +0 -93
  511. package/dist/components/Editor/tinymce/plugins/noneditable/plugin.d.ts +0 -0
  512. package/dist/components/Editor/tinymce/plugins/noneditable/plugin.js +0 -114
  513. package/dist/components/Editor/tinymce/plugins/pagebreak/plugin.d.ts +0 -0
  514. package/dist/components/Editor/tinymce/plugins/pagebreak/plugin.js +0 -96
  515. package/dist/components/Editor/tinymce/plugins/paste/plugin.d.ts +0 -0
  516. package/dist/components/Editor/tinymce/plugins/paste/plugin.js +0 -1747
  517. package/dist/components/Editor/tinymce/plugins/preview/plugin.d.ts +0 -0
  518. package/dist/components/Editor/tinymce/plugins/preview/plugin.js +0 -119
  519. package/dist/components/Editor/tinymce/plugins/print/plugin.d.ts +0 -0
  520. package/dist/components/Editor/tinymce/plugins/print/plugin.js +0 -48
  521. package/dist/components/Editor/tinymce/plugins/quickbars/plugin.d.ts +0 -0
  522. package/dist/components/Editor/tinymce/plugins/quickbars/plugin.js +0 -475
  523. package/dist/components/Editor/tinymce/plugins/save/plugin.d.ts +0 -0
  524. package/dist/components/Editor/tinymce/plugins/save/plugin.js +0 -112
  525. package/dist/components/Editor/tinymce/plugins/searchreplace/plugin.d.ts +0 -0
  526. package/dist/components/Editor/tinymce/plugins/searchreplace/plugin.js +0 -1149
  527. package/dist/components/Editor/tinymce/plugins/spellchecker/plugin.d.ts +0 -0
  528. package/dist/components/Editor/tinymce/plugins/spellchecker/plugin.js +0 -723
  529. package/dist/components/Editor/tinymce/plugins/tabfocus/plugin.d.ts +0 -0
  530. package/dist/components/Editor/tinymce/plugins/tabfocus/plugin.js +0 -124
  531. package/dist/components/Editor/tinymce/plugins/table/plugin.d.ts +0 -0
  532. package/dist/components/Editor/tinymce/plugins/table/plugin.js +0 -10853
  533. package/dist/components/Editor/tinymce/plugins/template/plugin.d.ts +0 -0
  534. package/dist/components/Editor/tinymce/plugins/template/plugin.js +0 -561
  535. package/dist/components/Editor/tinymce/plugins/textcolor/plugin.d.ts +0 -0
  536. package/dist/components/Editor/tinymce/plugins/textpattern/plugin.d.ts +0 -0
  537. package/dist/components/Editor/tinymce/plugins/textpattern/plugin.js +0 -1393
  538. package/dist/components/Editor/tinymce/plugins/toc/plugin.d.ts +0 -0
  539. package/dist/components/Editor/tinymce/plugins/toc/plugin.js +0 -227
  540. package/dist/components/Editor/tinymce/plugins/visualblocks/plugin.d.ts +0 -0
  541. package/dist/components/Editor/tinymce/plugins/visualblocks/plugin.js +0 -94
  542. package/dist/components/Editor/tinymce/plugins/visualchars/plugin.d.ts +0 -0
  543. package/dist/components/Editor/tinymce/plugins/visualchars/plugin.js +0 -521
  544. package/dist/components/Editor/tinymce/plugins/wordcount/plugin.d.ts +0 -0
  545. package/dist/components/Editor/tinymce/plugins/wordcount/plugin.js +0 -397
  546. package/dist/components/Editor/tinymce/themes/mobile/theme.js +0 -13348
  547. package/dist/components/Editor/tinymce/themes/silver/theme.js +0 -32028
  548. package/dist/components/Editor/tinymce/tinymce.js +0 -30486
  549. package/dist/components/FilePreparer/worker.d.ts +0 -2
  550. package/dist/components/FilePreparer/worker.js +0 -31
  551. package/dist/convertReacticons.d.ts +0 -1
  552. package/dist/convertReacticons.js +0 -62
  553. package/dist/utils/Fields.d.ts +0 -0
  554. package/dist/utils/Fields.js +0 -1
@@ -1,2331 +0,0 @@
1
- "use strict";
2
- /**
3
- * Copyright (c) Tiny Technologies, Inc. All rights reserved.
4
- * Licensed under the LGPL or a commercial license.
5
- * For LGPL see License.txt in the project root for license information.
6
- * For commercial licenses see https://www.tiny.cloud/
7
- *
8
- * Version: 5.9.0 (TBD)
9
- */
10
- (function () {
11
- 'use strict';
12
- var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
13
- var noop = function () {
14
- };
15
- var constant = function (value) {
16
- return function () {
17
- return value;
18
- };
19
- };
20
- var never = constant(false);
21
- var always = constant(true);
22
- var none = function () {
23
- return NONE;
24
- };
25
- var NONE = function () {
26
- var eq = function (o) {
27
- return o.isNone();
28
- };
29
- var call = function (thunk) {
30
- return thunk();
31
- };
32
- var id = function (n) {
33
- return n;
34
- };
35
- var me = {
36
- fold: function (n, _s) {
37
- return n();
38
- },
39
- is: never,
40
- isSome: never,
41
- isNone: always,
42
- getOr: id,
43
- getOrThunk: call,
44
- getOrDie: function (msg) {
45
- throw new Error(msg || 'error: getOrDie called on none.');
46
- },
47
- getOrNull: constant(null),
48
- getOrUndefined: constant(undefined),
49
- or: id,
50
- orThunk: call,
51
- map: none,
52
- each: noop,
53
- bind: none,
54
- exists: never,
55
- forall: always,
56
- filter: none,
57
- equals: eq,
58
- equals_: eq,
59
- toArray: function () {
60
- return [];
61
- },
62
- toString: constant('none()')
63
- };
64
- return me;
65
- }();
66
- var some = function (a) {
67
- var constant_a = constant(a);
68
- var self = function () {
69
- return me;
70
- };
71
- var bind = function (f) {
72
- return f(a);
73
- };
74
- var me = {
75
- fold: function (n, s) {
76
- return s(a);
77
- },
78
- is: function (v) {
79
- return a === v;
80
- },
81
- isSome: always,
82
- isNone: never,
83
- getOr: constant_a,
84
- getOrThunk: constant_a,
85
- getOrDie: constant_a,
86
- getOrNull: constant_a,
87
- getOrUndefined: constant_a,
88
- or: self,
89
- orThunk: self,
90
- map: function (f) {
91
- return some(f(a));
92
- },
93
- each: function (f) {
94
- f(a);
95
- },
96
- bind: bind,
97
- exists: bind,
98
- forall: bind,
99
- filter: function (f) {
100
- return f(a) ? me : NONE;
101
- },
102
- toArray: function () {
103
- return [a];
104
- },
105
- toString: function () {
106
- return 'some(' + a + ')';
107
- },
108
- equals: function (o) {
109
- return o.is(a);
110
- },
111
- equals_: function (o, elementEq) {
112
- return o.fold(never, function (b) {
113
- return elementEq(a, b);
114
- });
115
- }
116
- };
117
- return me;
118
- };
119
- var from = function (value) {
120
- return value === null || value === undefined ? NONE : some(value);
121
- };
122
- var Optional = {
123
- some: some,
124
- none: none,
125
- from: from
126
- };
127
- var get = function (xs, i) {
128
- return i >= 0 && i < xs.length ? Optional.some(xs[i]) : Optional.none();
129
- };
130
- var head = function (xs) {
131
- return get(xs, 0);
132
- };
133
- var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
134
- var isCodeSample = function (elm) {
135
- return elm && elm.nodeName === 'PRE' && elm.className.indexOf('language-') !== -1;
136
- };
137
- var trimArg = function (predicateFn) {
138
- return function (arg1, arg2) {
139
- return predicateFn(arg2);
140
- };
141
- };
142
- var Global = typeof window !== 'undefined' ? window : Function('return this;')();
143
- var exports$1 = {}, module = { exports: exports$1 }, global$2 = {};
144
- (function (define, exports, module, require) {
145
- var oldprism = window.Prism;
146
- window.Prism = { manual: true };
147
- (function (f) {
148
- if (typeof exports === 'object' && typeof module !== 'undefined') {
149
- module.exports = f();
150
- }
151
- else if (typeof define === 'function' && define.amd) {
152
- define([], f);
153
- }
154
- else {
155
- var g;
156
- if (typeof window !== 'undefined') {
157
- g = window;
158
- }
159
- else if (typeof global$2 !== 'undefined') {
160
- g = global$2;
161
- }
162
- else if (typeof self !== 'undefined') {
163
- g = self;
164
- }
165
- else {
166
- g = this;
167
- }
168
- g.EphoxContactWrapper = f();
169
- }
170
- }(function () {
171
- return function () {
172
- function r(e, n, t) {
173
- function o(i, f) {
174
- if (!n[i]) {
175
- if (!e[i]) {
176
- var c = 'function' == typeof require && require;
177
- if (!f && c)
178
- return c(i, !0);
179
- if (u)
180
- return u(i, !0);
181
- var a = new Error('Cannot find module \'' + i + '\'');
182
- throw a.code = 'MODULE_NOT_FOUND', a;
183
- }
184
- var p = n[i] = { exports: {} };
185
- e[i][0].call(p.exports, function (r) {
186
- var n = e[i][1][r];
187
- return o(n || r);
188
- }, p, p.exports, r, e, n, t);
189
- }
190
- return n[i].exports;
191
- }
192
- for (var u = 'function' == typeof require && require, i = 0; i < t.length; i++)
193
- o(t[i]);
194
- return o;
195
- }
196
- return r;
197
- }()({
198
- 1: [
199
- function (require, module, exports) {
200
- Prism.languages.c = Prism.languages.extend('clike', {
201
- 'comment': {
202
- pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,
203
- greedy: true
204
- },
205
- 'class-name': {
206
- pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,
207
- lookbehind: true
208
- },
209
- 'keyword': /\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,
210
- 'function': /[a-z_]\w*(?=\s*\()/i,
211
- 'number': /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,
212
- 'operator': />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/
213
- });
214
- Prism.languages.insertBefore('c', 'string', {
215
- 'macro': {
216
- pattern: /(^\s*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,
217
- lookbehind: true,
218
- greedy: true,
219
- alias: 'property',
220
- inside: {
221
- 'string': [
222
- {
223
- pattern: /^(#\s*include\s*)<[^>]+>/,
224
- lookbehind: true
225
- },
226
- Prism.languages.c['string']
227
- ],
228
- 'comment': Prism.languages.c['comment'],
229
- 'macro-name': [
230
- {
231
- pattern: /(^#\s*define\s+)\w+\b(?!\()/i,
232
- lookbehind: true
233
- },
234
- {
235
- pattern: /(^#\s*define\s+)\w+\b(?=\()/i,
236
- lookbehind: true,
237
- alias: 'function'
238
- }
239
- ],
240
- 'directive': {
241
- pattern: /^(#\s*)[a-z]+/,
242
- lookbehind: true,
243
- alias: 'keyword'
244
- },
245
- 'directive-hash': /^#/,
246
- 'punctuation': /##|\\(?=[\r\n])/,
247
- 'expression': {
248
- pattern: /\S[\s\S]*/,
249
- inside: Prism.languages.c
250
- }
251
- }
252
- },
253
- 'constant': /\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/
254
- });
255
- delete Prism.languages.c['boolean'];
256
- },
257
- {}
258
- ],
259
- 2: [
260
- function (require, module, exports) {
261
- Prism.languages.clike = {
262
- 'comment': [
263
- {
264
- pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
265
- lookbehind: true,
266
- greedy: true
267
- },
268
- {
269
- pattern: /(^|[^\\:])\/\/.*/,
270
- lookbehind: true,
271
- greedy: true
272
- }
273
- ],
274
- 'string': {
275
- pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
276
- greedy: true
277
- },
278
- 'class-name': {
279
- pattern: /(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,
280
- lookbehind: true,
281
- inside: { 'punctuation': /[.\\]/ }
282
- },
283
- 'keyword': /\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,
284
- 'boolean': /\b(?:true|false)\b/,
285
- 'function': /\w+(?=\()/,
286
- 'number': /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
287
- 'operator': /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
288
- 'punctuation': /[{}[\];(),.:]/
289
- };
290
- },
291
- {}
292
- ],
293
- 3: [
294
- function (require, module, exports) {
295
- (function (global) {
296
- (function () {
297
- var _self = typeof window !== 'undefined' ? window : typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope ? self : {};
298
- var Prism = function (_self) {
299
- var lang = /\blang(?:uage)?-([\w-]+)\b/i;
300
- var uniqueId = 0;
301
- var _ = {
302
- manual: _self.Prism && _self.Prism.manual,
303
- disableWorkerMessageHandler: _self.Prism && _self.Prism.disableWorkerMessageHandler,
304
- util: {
305
- encode: function encode(tokens) {
306
- if (tokens instanceof Token) {
307
- return new Token(tokens.type, encode(tokens.content), tokens.alias);
308
- }
309
- else if (Array.isArray(tokens)) {
310
- return tokens.map(encode);
311
- }
312
- else {
313
- return tokens.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/\u00a0/g, ' ');
314
- }
315
- },
316
- type: function (o) {
317
- return Object.prototype.toString.call(o).slice(8, -1);
318
- },
319
- objId: function (obj) {
320
- if (!obj['__id']) {
321
- Object.defineProperty(obj, '__id', { value: ++uniqueId });
322
- }
323
- return obj['__id'];
324
- },
325
- clone: function deepClone(o, visited) {
326
- visited = visited || {};
327
- var clone, id;
328
- switch (_.util.type(o)) {
329
- case 'Object':
330
- id = _.util.objId(o);
331
- if (visited[id]) {
332
- return visited[id];
333
- }
334
- clone = {};
335
- visited[id] = clone;
336
- for (var key in o) {
337
- if (o.hasOwnProperty(key)) {
338
- clone[key] = deepClone(o[key], visited);
339
- }
340
- }
341
- return clone;
342
- case 'Array':
343
- id = _.util.objId(o);
344
- if (visited[id]) {
345
- return visited[id];
346
- }
347
- clone = [];
348
- visited[id] = clone;
349
- o.forEach(function (v, i) {
350
- clone[i] = deepClone(v, visited);
351
- });
352
- return clone;
353
- default:
354
- return o;
355
- }
356
- },
357
- getLanguage: function (element) {
358
- while (element && !lang.test(element.className)) {
359
- element = element.parentElement;
360
- }
361
- if (element) {
362
- return (element.className.match(lang) || [
363
- ,
364
- 'none'
365
- ])[1].toLowerCase();
366
- }
367
- return 'none';
368
- },
369
- currentScript: function () {
370
- if (typeof document === 'undefined') {
371
- return null;
372
- }
373
- if ('currentScript' in document && 1 < 2) {
374
- return document.currentScript;
375
- }
376
- try {
377
- throw new Error();
378
- }
379
- catch (err) {
380
- var src = (/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(err.stack) || [])[1];
381
- if (src) {
382
- var scripts = document.getElementsByTagName('script');
383
- for (var i in scripts) {
384
- if (scripts[i].src == src) {
385
- return scripts[i];
386
- }
387
- }
388
- }
389
- return null;
390
- }
391
- },
392
- isActive: function (element, className, defaultActivation) {
393
- var no = 'no-' + className;
394
- while (element) {
395
- var classList = element.classList;
396
- if (classList.contains(className)) {
397
- return true;
398
- }
399
- if (classList.contains(no)) {
400
- return false;
401
- }
402
- element = element.parentElement;
403
- }
404
- return !!defaultActivation;
405
- }
406
- },
407
- languages: {
408
- extend: function (id, redef) {
409
- var lang = _.util.clone(_.languages[id]);
410
- for (var key in redef) {
411
- lang[key] = redef[key];
412
- }
413
- return lang;
414
- },
415
- insertBefore: function (inside, before, insert, root) {
416
- root = root || _.languages;
417
- var grammar = root[inside];
418
- var ret = {};
419
- for (var token in grammar) {
420
- if (grammar.hasOwnProperty(token)) {
421
- if (token == before) {
422
- for (var newToken in insert) {
423
- if (insert.hasOwnProperty(newToken)) {
424
- ret[newToken] = insert[newToken];
425
- }
426
- }
427
- }
428
- if (!insert.hasOwnProperty(token)) {
429
- ret[token] = grammar[token];
430
- }
431
- }
432
- }
433
- var old = root[inside];
434
- root[inside] = ret;
435
- _.languages.DFS(_.languages, function (key, value) {
436
- if (value === old && key != inside) {
437
- this[key] = ret;
438
- }
439
- });
440
- return ret;
441
- },
442
- DFS: function DFS(o, callback, type, visited) {
443
- visited = visited || {};
444
- var objId = _.util.objId;
445
- for (var i in o) {
446
- if (o.hasOwnProperty(i)) {
447
- callback.call(o, i, o[i], type || i);
448
- var property = o[i], propertyType = _.util.type(property);
449
- if (propertyType === 'Object' && !visited[objId(property)]) {
450
- visited[objId(property)] = true;
451
- DFS(property, callback, null, visited);
452
- }
453
- else if (propertyType === 'Array' && !visited[objId(property)]) {
454
- visited[objId(property)] = true;
455
- DFS(property, callback, i, visited);
456
- }
457
- }
458
- }
459
- }
460
- },
461
- plugins: {},
462
- highlightAll: function (async, callback) {
463
- _.highlightAllUnder(document, async, callback);
464
- },
465
- highlightAllUnder: function (container, async, callback) {
466
- var env = {
467
- callback: callback,
468
- container: container,
469
- selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
470
- };
471
- _.hooks.run('before-highlightall', env);
472
- env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));
473
- _.hooks.run('before-all-elements-highlight', env);
474
- for (var i = 0, element; element = env.elements[i++];) {
475
- _.highlightElement(element, async === true, env.callback);
476
- }
477
- },
478
- highlightElement: function (element, async, callback) {
479
- var language = _.util.getLanguage(element);
480
- var grammar = _.languages[language];
481
- element.className = element.className.replace(lang, '').replace(/\s+/g, ' ') + ' language-' + language;
482
- var parent = element.parentElement;
483
- if (parent && parent.nodeName.toLowerCase() === 'pre') {
484
- parent.className = parent.className.replace(lang, '').replace(/\s+/g, ' ') + ' language-' + language;
485
- }
486
- var code = element.textContent;
487
- var env = {
488
- element: element,
489
- language: language,
490
- grammar: grammar,
491
- code: code
492
- };
493
- function insertHighlightedCode(highlightedCode) {
494
- env.highlightedCode = highlightedCode;
495
- _.hooks.run('before-insert', env);
496
- env.element.innerHTML = env.highlightedCode;
497
- _.hooks.run('after-highlight', env);
498
- _.hooks.run('complete', env);
499
- callback && callback.call(env.element);
500
- }
501
- _.hooks.run('before-sanity-check', env);
502
- if (!env.code) {
503
- _.hooks.run('complete', env);
504
- callback && callback.call(env.element);
505
- return;
506
- }
507
- _.hooks.run('before-highlight', env);
508
- if (!env.grammar) {
509
- insertHighlightedCode(_.util.encode(env.code));
510
- return;
511
- }
512
- if (async && _self.Worker) {
513
- var worker = new Worker(_.filename);
514
- worker.onmessage = function (evt) {
515
- insertHighlightedCode(evt.data);
516
- };
517
- worker.postMessage(JSON.stringify({
518
- language: env.language,
519
- code: env.code,
520
- immediateClose: true
521
- }));
522
- }
523
- else {
524
- insertHighlightedCode(_.highlight(env.code, env.grammar, env.language));
525
- }
526
- },
527
- highlight: function (text, grammar, language) {
528
- var env = {
529
- code: text,
530
- grammar: grammar,
531
- language: language
532
- };
533
- _.hooks.run('before-tokenize', env);
534
- env.tokens = _.tokenize(env.code, env.grammar);
535
- _.hooks.run('after-tokenize', env);
536
- return Token.stringify(_.util.encode(env.tokens), env.language);
537
- },
538
- tokenize: function (text, grammar) {
539
- var rest = grammar.rest;
540
- if (rest) {
541
- for (var token in rest) {
542
- grammar[token] = rest[token];
543
- }
544
- delete grammar.rest;
545
- }
546
- var tokenList = new LinkedList();
547
- addAfter(tokenList, tokenList.head, text);
548
- matchGrammar(text, tokenList, grammar, tokenList.head, 0);
549
- return toArray(tokenList);
550
- },
551
- hooks: {
552
- all: {},
553
- add: function (name, callback) {
554
- var hooks = _.hooks.all;
555
- hooks[name] = hooks[name] || [];
556
- hooks[name].push(callback);
557
- },
558
- run: function (name, env) {
559
- var callbacks = _.hooks.all[name];
560
- if (!callbacks || !callbacks.length) {
561
- return;
562
- }
563
- for (var i = 0, callback; callback = callbacks[i++];) {
564
- callback(env);
565
- }
566
- }
567
- },
568
- Token: Token
569
- };
570
- _self.Prism = _;
571
- function Token(type, content, alias, matchedStr) {
572
- this.type = type;
573
- this.content = content;
574
- this.alias = alias;
575
- this.length = (matchedStr || '').length | 0;
576
- }
577
- Token.stringify = function stringify(o, language) {
578
- if (typeof o == 'string') {
579
- return o;
580
- }
581
- if (Array.isArray(o)) {
582
- var s = '';
583
- o.forEach(function (e) {
584
- s += stringify(e, language);
585
- });
586
- return s;
587
- }
588
- var env = {
589
- type: o.type,
590
- content: stringify(o.content, language),
591
- tag: 'span',
592
- classes: [
593
- 'token',
594
- o.type
595
- ],
596
- attributes: {},
597
- language: language
598
- };
599
- var aliases = o.alias;
600
- if (aliases) {
601
- if (Array.isArray(aliases)) {
602
- Array.prototype.push.apply(env.classes, aliases);
603
- }
604
- else {
605
- env.classes.push(aliases);
606
- }
607
- }
608
- _.hooks.run('wrap', env);
609
- var attributes = '';
610
- for (var name in env.attributes) {
611
- attributes += ' ' + name + '="' + (env.attributes[name] || '').replace(/"/g, '&quot;') + '"';
612
- }
613
- return '<' + env.tag + ' class="' + env.classes.join(' ') + '"' + attributes + '>' + env.content + '</' + env.tag + '>';
614
- };
615
- function matchPattern(pattern, pos, text, lookbehind) {
616
- pattern.lastIndex = pos;
617
- var match = pattern.exec(text);
618
- if (match && lookbehind && match[1]) {
619
- var lookbehindLength = match[1].length;
620
- match.index += lookbehindLength;
621
- match[0] = match[0].slice(lookbehindLength);
622
- }
623
- return match;
624
- }
625
- function matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {
626
- for (var token in grammar) {
627
- if (!grammar.hasOwnProperty(token) || !grammar[token]) {
628
- continue;
629
- }
630
- var patterns = grammar[token];
631
- patterns = Array.isArray(patterns) ? patterns : [patterns];
632
- for (var j = 0; j < patterns.length; ++j) {
633
- if (rematch && rematch.cause == token + ',' + j) {
634
- return;
635
- }
636
- var patternObj = patterns[j], inside = patternObj.inside, lookbehind = !!patternObj.lookbehind, greedy = !!patternObj.greedy, alias = patternObj.alias;
637
- if (greedy && !patternObj.pattern.global) {
638
- var flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0];
639
- patternObj.pattern = RegExp(patternObj.pattern.source, flags + 'g');
640
- }
641
- var pattern = patternObj.pattern || patternObj;
642
- for (var currentNode = startNode.next, pos = startPos; currentNode !== tokenList.tail; pos += currentNode.value.length, currentNode = currentNode.next) {
643
- if (rematch && pos >= rematch.reach) {
644
- break;
645
- }
646
- var str = currentNode.value;
647
- if (tokenList.length > text.length) {
648
- return;
649
- }
650
- if (str instanceof Token) {
651
- continue;
652
- }
653
- var removeCount = 1;
654
- var match;
655
- if (greedy) {
656
- match = matchPattern(pattern, pos, text, lookbehind);
657
- if (!match) {
658
- break;
659
- }
660
- var from = match.index;
661
- var to = match.index + match[0].length;
662
- var p = pos;
663
- p += currentNode.value.length;
664
- while (from >= p) {
665
- currentNode = currentNode.next;
666
- p += currentNode.value.length;
667
- }
668
- p -= currentNode.value.length;
669
- pos = p;
670
- if (currentNode.value instanceof Token) {
671
- continue;
672
- }
673
- for (var k = currentNode; k !== tokenList.tail && (p < to || typeof k.value === 'string'); k = k.next) {
674
- removeCount++;
675
- p += k.value.length;
676
- }
677
- removeCount--;
678
- str = text.slice(pos, p);
679
- match.index -= pos;
680
- }
681
- else {
682
- match = matchPattern(pattern, 0, str, lookbehind);
683
- if (!match) {
684
- continue;
685
- }
686
- }
687
- var from = match.index, matchStr = match[0], before = str.slice(0, from), after = str.slice(from + matchStr.length);
688
- var reach = pos + str.length;
689
- if (rematch && reach > rematch.reach) {
690
- rematch.reach = reach;
691
- }
692
- var removeFrom = currentNode.prev;
693
- if (before) {
694
- removeFrom = addAfter(tokenList, removeFrom, before);
695
- pos += before.length;
696
- }
697
- removeRange(tokenList, removeFrom, removeCount);
698
- var wrapped = new Token(token, inside ? _.tokenize(matchStr, inside) : matchStr, alias, matchStr);
699
- currentNode = addAfter(tokenList, removeFrom, wrapped);
700
- if (after) {
701
- addAfter(tokenList, currentNode, after);
702
- }
703
- if (removeCount > 1) {
704
- matchGrammar(text, tokenList, grammar, currentNode.prev, pos, {
705
- cause: token + ',' + j,
706
- reach: reach
707
- });
708
- }
709
- }
710
- }
711
- }
712
- }
713
- function LinkedList() {
714
- var head = {
715
- value: null,
716
- prev: null,
717
- next: null
718
- };
719
- var tail = {
720
- value: null,
721
- prev: head,
722
- next: null
723
- };
724
- head.next = tail;
725
- this.head = head;
726
- this.tail = tail;
727
- this.length = 0;
728
- }
729
- function addAfter(list, node, value) {
730
- var next = node.next;
731
- var newNode = {
732
- value: value,
733
- prev: node,
734
- next: next
735
- };
736
- node.next = newNode;
737
- next.prev = newNode;
738
- list.length++;
739
- return newNode;
740
- }
741
- function removeRange(list, node, count) {
742
- var next = node.next;
743
- for (var i = 0; i < count && next !== list.tail; i++) {
744
- next = next.next;
745
- }
746
- node.next = next;
747
- next.prev = node;
748
- list.length -= i;
749
- }
750
- function toArray(list) {
751
- var array = [];
752
- var node = list.head.next;
753
- while (node !== list.tail) {
754
- array.push(node.value);
755
- node = node.next;
756
- }
757
- return array;
758
- }
759
- if (!_self.document) {
760
- if (!_self.addEventListener) {
761
- return _;
762
- }
763
- if (!_.disableWorkerMessageHandler) {
764
- _self.addEventListener('message', function (evt) {
765
- var message = JSON.parse(evt.data), lang = message.language, code = message.code, immediateClose = message.immediateClose;
766
- _self.postMessage(_.highlight(code, _.languages[lang], lang));
767
- if (immediateClose) {
768
- _self.close();
769
- }
770
- }, false);
771
- }
772
- return _;
773
- }
774
- var script = _.util.currentScript();
775
- if (script) {
776
- _.filename = script.src;
777
- if (script.hasAttribute('data-manual')) {
778
- _.manual = true;
779
- }
780
- }
781
- function highlightAutomaticallyCallback() {
782
- if (!_.manual) {
783
- _.highlightAll();
784
- }
785
- }
786
- if (!_.manual) {
787
- var readyState = document.readyState;
788
- if (readyState === 'loading' || readyState === 'interactive' && script && script.defer) {
789
- document.addEventListener('DOMContentLoaded', highlightAutomaticallyCallback);
790
- }
791
- else {
792
- if (window.requestAnimationFrame) {
793
- window.requestAnimationFrame(highlightAutomaticallyCallback);
794
- }
795
- else {
796
- window.setTimeout(highlightAutomaticallyCallback, 16);
797
- }
798
- }
799
- }
800
- return _;
801
- }(_self);
802
- if (typeof module !== 'undefined' && module.exports) {
803
- module.exports = Prism;
804
- }
805
- if (typeof global !== 'undefined') {
806
- global.Prism = Prism;
807
- }
808
- }.call(this));
809
- }.call(this, typeof global$2 !== 'undefined' ? global$2 : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {}));
810
- },
811
- {}
812
- ],
813
- 4: [
814
- function (require, module, exports) {
815
- (function (Prism) {
816
- var keyword = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/;
817
- Prism.languages.cpp = Prism.languages.extend('c', {
818
- 'class-name': [
819
- {
820
- pattern: RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g, function () {
821
- return keyword.source;
822
- })),
823
- lookbehind: true
824
- },
825
- /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,
826
- /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,
827
- /\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/
828
- ],
829
- 'keyword': keyword,
830
- 'number': {
831
- pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,
832
- greedy: true
833
- },
834
- 'operator': />>=?|<<=?|->|([-+&|:])\1|[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,
835
- 'boolean': /\b(?:true|false)\b/
836
- });
837
- Prism.languages.insertBefore('cpp', 'string', {
838
- 'raw-string': {
839
- pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,
840
- alias: 'string',
841
- greedy: true
842
- }
843
- });
844
- Prism.languages.insertBefore('cpp', 'class-name', {
845
- 'base-clause': {
846
- pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,
847
- lookbehind: true,
848
- greedy: true,
849
- inside: Prism.languages.extend('cpp', {})
850
- }
851
- });
852
- Prism.languages.insertBefore('inside', 'operator', { 'class-name': /\b[a-z_]\w*\b(?!\s*::)/i }, Prism.languages.cpp['base-clause']);
853
- }(Prism));
854
- },
855
- {}
856
- ],
857
- 5: [
858
- function (require, module, exports) {
859
- (function (Prism) {
860
- function replace(pattern, replacements) {
861
- return pattern.replace(/<<(\d+)>>/g, function (m, index) {
862
- return '(?:' + replacements[+index] + ')';
863
- });
864
- }
865
- function re(pattern, replacements, flags) {
866
- return RegExp(replace(pattern, replacements), flags || '');
867
- }
868
- function nested(pattern, depthLog2) {
869
- for (var i = 0; i < depthLog2; i++) {
870
- pattern = pattern.replace(/<<self>>/g, function () {
871
- return '(?:' + pattern + ')';
872
- });
873
- }
874
- return pattern.replace(/<<self>>/g, '[^\\s\\S]');
875
- }
876
- var keywordKinds = {
877
- type: 'bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void',
878
- typeDeclaration: 'class enum interface struct',
879
- contextual: 'add alias and ascending async await by descending from get global group into join let nameof not notnull on or orderby partial remove select set unmanaged value when where',
880
- other: 'abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield'
881
- };
882
- function keywordsToPattern(words) {
883
- return '\\b(?:' + words.trim().replace(/ /g, '|') + ')\\b';
884
- }
885
- var typeDeclarationKeywords = keywordsToPattern(keywordKinds.typeDeclaration);
886
- var keywords = RegExp(keywordsToPattern(keywordKinds.type + ' ' + keywordKinds.typeDeclaration + ' ' + keywordKinds.contextual + ' ' + keywordKinds.other));
887
- var nonTypeKeywords = keywordsToPattern(keywordKinds.typeDeclaration + ' ' + keywordKinds.contextual + ' ' + keywordKinds.other);
888
- var nonContextualKeywords = keywordsToPattern(keywordKinds.type + ' ' + keywordKinds.typeDeclaration + ' ' + keywordKinds.other);
889
- var generic = nested(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source, 2);
890
- var nestedRound = nested(/\((?:[^()]|<<self>>)*\)/.source, 2);
891
- var name = /@?\b[A-Za-z_]\w*\b/.source;
892
- var genericName = replace(/<<0>>(?:\s*<<1>>)?/.source, [
893
- name,
894
- generic
895
- ]);
896
- var identifier = replace(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [
897
- nonTypeKeywords,
898
- genericName
899
- ]);
900
- var array = /\[\s*(?:,\s*)*\]/.source;
901
- var typeExpressionWithoutTuple = replace(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source, [
902
- identifier,
903
- array
904
- ]);
905
- var tupleElement = replace(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source, [
906
- generic,
907
- nestedRound,
908
- array
909
- ]);
910
- var tuple = replace(/\(<<0>>+(?:,<<0>>+)+\)/.source, [tupleElement]);
911
- var typeExpression = replace(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source, [
912
- tuple,
913
- identifier,
914
- array
915
- ]);
916
- var typeInside = {
917
- 'keyword': keywords,
918
- 'punctuation': /[<>()?,.:[\]]/
919
- };
920
- var character = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source;
921
- var regularString = /"(?:\\.|[^\\"\r\n])*"/.source;
922
- var verbatimString = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
923
- Prism.languages.csharp = Prism.languages.extend('clike', {
924
- 'string': [
925
- {
926
- pattern: re(/(^|[^$\\])<<0>>/.source, [verbatimString]),
927
- lookbehind: true,
928
- greedy: true
929
- },
930
- {
931
- pattern: re(/(^|[^@$\\])<<0>>/.source, [regularString]),
932
- lookbehind: true,
933
- greedy: true
934
- },
935
- {
936
- pattern: RegExp(character),
937
- greedy: true,
938
- alias: 'character'
939
- }
940
- ],
941
- 'class-name': [
942
- {
943
- pattern: re(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source, [identifier]),
944
- lookbehind: true,
945
- inside: typeInside
946
- },
947
- {
948
- pattern: re(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source, [
949
- name,
950
- typeExpression
951
- ]),
952
- lookbehind: true,
953
- inside: typeInside
954
- },
955
- {
956
- pattern: re(/(\busing\s+)<<0>>(?=\s*=)/.source, [name]),
957
- lookbehind: true
958
- },
959
- {
960
- pattern: re(/(\b<<0>>\s+)<<1>>/.source, [
961
- typeDeclarationKeywords,
962
- genericName
963
- ]),
964
- lookbehind: true,
965
- inside: typeInside
966
- },
967
- {
968
- pattern: re(/(\bcatch\s*\(\s*)<<0>>/.source, [identifier]),
969
- lookbehind: true,
970
- inside: typeInside
971
- },
972
- {
973
- pattern: re(/(\bwhere\s+)<<0>>/.source, [name]),
974
- lookbehind: true
975
- },
976
- {
977
- pattern: re(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [typeExpressionWithoutTuple]),
978
- lookbehind: true,
979
- inside: typeInside
980
- },
981
- {
982
- pattern: re(/\b<<0>>(?=\s+(?!<<1>>)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source, [
983
- typeExpression,
984
- nonContextualKeywords,
985
- name
986
- ]),
987
- inside: typeInside
988
- }
989
- ],
990
- 'keyword': keywords,
991
- 'number': /(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,
992
- 'operator': />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,
993
- 'punctuation': /\?\.?|::|[{}[\];(),.:]/
994
- });
995
- Prism.languages.insertBefore('csharp', 'number', {
996
- 'range': {
997
- pattern: /\.\./,
998
- alias: 'operator'
999
- }
1000
- });
1001
- Prism.languages.insertBefore('csharp', 'punctuation', {
1002
- 'named-parameter': {
1003
- pattern: re(/([(,]\s*)<<0>>(?=\s*:)/.source, [name]),
1004
- lookbehind: true,
1005
- alias: 'punctuation'
1006
- }
1007
- });
1008
- Prism.languages.insertBefore('csharp', 'class-name', {
1009
- 'namespace': {
1010
- pattern: re(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source, [name]),
1011
- lookbehind: true,
1012
- inside: { 'punctuation': /\./ }
1013
- },
1014
- 'type-expression': {
1015
- pattern: re(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source, [nestedRound]),
1016
- lookbehind: true,
1017
- alias: 'class-name',
1018
- inside: typeInside
1019
- },
1020
- 'return-type': {
1021
- pattern: re(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source, [
1022
- typeExpression,
1023
- identifier
1024
- ]),
1025
- inside: typeInside,
1026
- alias: 'class-name'
1027
- },
1028
- 'constructor-invocation': {
1029
- pattern: re(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [typeExpression]),
1030
- lookbehind: true,
1031
- inside: typeInside,
1032
- alias: 'class-name'
1033
- },
1034
- 'generic-method': {
1035
- pattern: re(/<<0>>\s*<<1>>(?=\s*\()/.source, [
1036
- name,
1037
- generic
1038
- ]),
1039
- inside: {
1040
- 'function': re(/^<<0>>/.source, [name]),
1041
- 'generic': {
1042
- pattern: RegExp(generic),
1043
- alias: 'class-name',
1044
- inside: typeInside
1045
- }
1046
- }
1047
- },
1048
- 'type-list': {
1049
- pattern: re(/\b((?:<<0>>\s+<<1>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>)(?:\s*,\s*(?:<<3>>|<<4>>))*(?=\s*(?:where|[{;]|=>|$))/.source, [
1050
- typeDeclarationKeywords,
1051
- genericName,
1052
- name,
1053
- typeExpression,
1054
- keywords.source
1055
- ]),
1056
- lookbehind: true,
1057
- inside: {
1058
- 'keyword': keywords,
1059
- 'class-name': {
1060
- pattern: RegExp(typeExpression),
1061
- greedy: true,
1062
- inside: typeInside
1063
- },
1064
- 'punctuation': /,/
1065
- }
1066
- },
1067
- 'preprocessor': {
1068
- pattern: /(^\s*)#.*/m,
1069
- lookbehind: true,
1070
- alias: 'property',
1071
- inside: {
1072
- 'directive': {
1073
- pattern: /(\s*#)\b(?:define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\b/,
1074
- lookbehind: true,
1075
- alias: 'keyword'
1076
- }
1077
- }
1078
- }
1079
- });
1080
- var regularStringOrCharacter = regularString + '|' + character;
1081
- var regularStringCharacterOrComment = replace(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source, [regularStringOrCharacter]);
1082
- var roundExpression = nested(replace(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [regularStringCharacterOrComment]), 2);
1083
- var attrTarget = /\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source;
1084
- var attr = replace(/<<0>>(?:\s*\(<<1>>*\))?/.source, [
1085
- identifier,
1086
- roundExpression
1087
- ]);
1088
- Prism.languages.insertBefore('csharp', 'class-name', {
1089
- 'attribute': {
1090
- pattern: re(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source, [
1091
- attrTarget,
1092
- attr
1093
- ]),
1094
- lookbehind: true,
1095
- greedy: true,
1096
- inside: {
1097
- 'target': {
1098
- pattern: re(/^<<0>>(?=\s*:)/.source, [attrTarget]),
1099
- alias: 'keyword'
1100
- },
1101
- 'attribute-arguments': {
1102
- pattern: re(/\(<<0>>*\)/.source, [roundExpression]),
1103
- inside: Prism.languages.csharp
1104
- },
1105
- 'class-name': {
1106
- pattern: RegExp(identifier),
1107
- inside: { 'punctuation': /\./ }
1108
- },
1109
- 'punctuation': /[:,]/
1110
- }
1111
- }
1112
- });
1113
- var formatString = /:[^}\r\n]+/.source;
1114
- var mInterpolationRound = nested(replace(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [regularStringCharacterOrComment]), 2);
1115
- var mInterpolation = replace(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
1116
- mInterpolationRound,
1117
- formatString
1118
- ]);
1119
- var sInterpolationRound = nested(replace(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source, [regularStringOrCharacter]), 2);
1120
- var sInterpolation = replace(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
1121
- sInterpolationRound,
1122
- formatString
1123
- ]);
1124
- function createInterpolationInside(interpolation, interpolationRound) {
1125
- return {
1126
- 'interpolation': {
1127
- pattern: re(/((?:^|[^{])(?:\{\{)*)<<0>>/.source, [interpolation]),
1128
- lookbehind: true,
1129
- inside: {
1130
- 'format-string': {
1131
- pattern: re(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source, [
1132
- interpolationRound,
1133
- formatString
1134
- ]),
1135
- lookbehind: true,
1136
- inside: { 'punctuation': /^:/ }
1137
- },
1138
- 'punctuation': /^\{|\}$/,
1139
- 'expression': {
1140
- pattern: /[\s\S]+/,
1141
- alias: 'language-csharp',
1142
- inside: Prism.languages.csharp
1143
- }
1144
- }
1145
- },
1146
- 'string': /[\s\S]+/
1147
- };
1148
- }
1149
- Prism.languages.insertBefore('csharp', 'string', {
1150
- 'interpolation-string': [
1151
- {
1152
- pattern: re(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source, [mInterpolation]),
1153
- lookbehind: true,
1154
- greedy: true,
1155
- inside: createInterpolationInside(mInterpolation, mInterpolationRound)
1156
- },
1157
- {
1158
- pattern: re(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source, [sInterpolation]),
1159
- lookbehind: true,
1160
- greedy: true,
1161
- inside: createInterpolationInside(sInterpolation, sInterpolationRound)
1162
- }
1163
- ]
1164
- });
1165
- }(Prism));
1166
- Prism.languages.dotnet = Prism.languages.cs = Prism.languages.csharp;
1167
- },
1168
- {}
1169
- ],
1170
- 6: [
1171
- function (require, module, exports) {
1172
- (function (Prism) {
1173
- var string = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;
1174
- Prism.languages.css = {
1175
- 'comment': /\/\*[\s\S]*?\*\//,
1176
- 'atrule': {
1177
- pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,
1178
- inside: {
1179
- 'rule': /^@[\w-]+/,
1180
- 'selector-function-argument': {
1181
- pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
1182
- lookbehind: true,
1183
- alias: 'selector'
1184
- },
1185
- 'keyword': {
1186
- pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
1187
- lookbehind: true
1188
- }
1189
- }
1190
- },
1191
- 'url': {
1192
- pattern: RegExp('\\burl\\((?:' + string.source + '|' + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ')\\)', 'i'),
1193
- greedy: true,
1194
- inside: {
1195
- 'function': /^url/i,
1196
- 'punctuation': /^\(|\)$/,
1197
- 'string': {
1198
- pattern: RegExp('^' + string.source + '$'),
1199
- alias: 'url'
1200
- }
1201
- }
1202
- },
1203
- 'selector': RegExp('[^{}\\s](?:[^{};"\'\\s]|\\s+(?![\\s{])|' + string.source + ')*(?=\\s*\\{)'),
1204
- 'string': {
1205
- pattern: string,
1206
- greedy: true
1207
- },
1208
- 'property': /(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
1209
- 'important': /!important\b/i,
1210
- 'function': /[-a-z0-9]+(?=\()/i,
1211
- 'punctuation': /[(){};:,]/
1212
- };
1213
- Prism.languages.css['atrule'].inside.rest = Prism.languages.css;
1214
- var markup = Prism.languages.markup;
1215
- if (markup) {
1216
- markup.tag.addInlined('style', 'css');
1217
- Prism.languages.insertBefore('inside', 'attr-value', {
1218
- 'style-attr': {
1219
- pattern: /(^|["'\s])style\s*=\s*(?:"[^"]*"|'[^']*')/i,
1220
- lookbehind: true,
1221
- inside: {
1222
- 'attr-value': {
1223
- pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
1224
- inside: {
1225
- 'style': {
1226
- pattern: /(["'])[\s\S]+(?=["']$)/,
1227
- lookbehind: true,
1228
- alias: 'language-css',
1229
- inside: Prism.languages.css
1230
- },
1231
- 'punctuation': [
1232
- {
1233
- pattern: /^=/,
1234
- alias: 'attr-equals'
1235
- },
1236
- /"|'/
1237
- ]
1238
- }
1239
- },
1240
- 'attr-name': /^style/i
1241
- }
1242
- }
1243
- }, markup.tag);
1244
- }
1245
- }(Prism));
1246
- },
1247
- {}
1248
- ],
1249
- 7: [
1250
- function (require, module, exports) {
1251
- (function (Prism) {
1252
- var keywords = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/;
1253
- var classNamePrefix = /(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source;
1254
- var className = {
1255
- pattern: RegExp(classNamePrefix + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),
1256
- lookbehind: true,
1257
- inside: {
1258
- 'namespace': {
1259
- pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,
1260
- inside: { 'punctuation': /\./ }
1261
- },
1262
- 'punctuation': /\./
1263
- }
1264
- };
1265
- Prism.languages.java = Prism.languages.extend('clike', {
1266
- 'class-name': [
1267
- className,
1268
- {
1269
- pattern: RegExp(classNamePrefix + /[A-Z]\w*(?=\s+\w+\s*[;,=())])/.source),
1270
- lookbehind: true,
1271
- inside: className.inside
1272
- }
1273
- ],
1274
- 'keyword': keywords,
1275
- 'function': [
1276
- Prism.languages.clike.function,
1277
- {
1278
- pattern: /(\:\:\s*)[a-z_]\w*/,
1279
- lookbehind: true
1280
- }
1281
- ],
1282
- 'number': /\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,
1283
- 'operator': {
1284
- pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,
1285
- lookbehind: true
1286
- }
1287
- });
1288
- Prism.languages.insertBefore('java', 'string', {
1289
- 'triple-quoted-string': {
1290
- pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,
1291
- greedy: true,
1292
- alias: 'string'
1293
- }
1294
- });
1295
- Prism.languages.insertBefore('java', 'class-name', {
1296
- 'annotation': {
1297
- pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/,
1298
- lookbehind: true,
1299
- alias: 'punctuation'
1300
- },
1301
- 'generics': {
1302
- pattern: /<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,
1303
- inside: {
1304
- 'class-name': className,
1305
- 'keyword': keywords,
1306
- 'punctuation': /[<>(),.:]/,
1307
- 'operator': /[?&|]/
1308
- }
1309
- },
1310
- 'namespace': {
1311
- pattern: RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g, function () {
1312
- return keywords.source;
1313
- })),
1314
- lookbehind: true,
1315
- inside: { 'punctuation': /\./ }
1316
- }
1317
- });
1318
- }(Prism));
1319
- },
1320
- {}
1321
- ],
1322
- 8: [
1323
- function (require, module, exports) {
1324
- Prism.languages.javascript = Prism.languages.extend('clike', {
1325
- 'class-name': [
1326
- Prism.languages.clike['class-name'],
1327
- {
1328
- pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,
1329
- lookbehind: true
1330
- }
1331
- ],
1332
- 'keyword': [
1333
- {
1334
- pattern: /((?:^|})\s*)(?:catch|finally)\b/,
1335
- lookbehind: true
1336
- },
1337
- {
1338
- pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|(?:get|set)(?=\s*[\[$\w\xA0-\uFFFF])|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
1339
- lookbehind: true
1340
- }
1341
- ],
1342
- 'function': /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
1343
- 'number': /\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,
1344
- 'operator': /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
1345
- });
1346
- Prism.languages.javascript['class-name'][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/;
1347
- Prism.languages.insertBefore('javascript', 'keyword', {
1348
- 'regex': {
1349
- pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,
1350
- lookbehind: true,
1351
- greedy: true,
1352
- inside: {
1353
- 'regex-source': {
1354
- pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
1355
- lookbehind: true,
1356
- alias: 'language-regex',
1357
- inside: Prism.languages.regex
1358
- },
1359
- 'regex-flags': /[a-z]+$/,
1360
- 'regex-delimiter': /^\/|\/$/
1361
- }
1362
- },
1363
- 'function-variable': {
1364
- pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
1365
- alias: 'function'
1366
- },
1367
- 'parameter': [
1368
- {
1369
- pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
1370
- lookbehind: true,
1371
- inside: Prism.languages.javascript
1372
- },
1373
- {
1374
- pattern: /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
1375
- inside: Prism.languages.javascript
1376
- },
1377
- {
1378
- pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
1379
- lookbehind: true,
1380
- inside: Prism.languages.javascript
1381
- },
1382
- {
1383
- pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
1384
- lookbehind: true,
1385
- inside: Prism.languages.javascript
1386
- }
1387
- ],
1388
- 'constant': /\b[A-Z](?:[A-Z_]|\dx?)*\b/
1389
- });
1390
- Prism.languages.insertBefore('javascript', 'string', {
1391
- 'template-string': {
1392
- pattern: /`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,
1393
- greedy: true,
1394
- inside: {
1395
- 'template-punctuation': {
1396
- pattern: /^`|`$/,
1397
- alias: 'string'
1398
- },
1399
- 'interpolation': {
1400
- pattern: /((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,
1401
- lookbehind: true,
1402
- inside: {
1403
- 'interpolation-punctuation': {
1404
- pattern: /^\${|}$/,
1405
- alias: 'punctuation'
1406
- },
1407
- rest: Prism.languages.javascript
1408
- }
1409
- },
1410
- 'string': /[\s\S]+/
1411
- }
1412
- }
1413
- });
1414
- if (Prism.languages.markup) {
1415
- Prism.languages.markup.tag.addInlined('script', 'javascript');
1416
- }
1417
- Prism.languages.js = Prism.languages.javascript;
1418
- },
1419
- {}
1420
- ],
1421
- 9: [
1422
- function (require, module, exports) {
1423
- (function (Prism) {
1424
- function getPlaceholder(language, index) {
1425
- return '___' + language.toUpperCase() + index + '___';
1426
- }
1427
- Object.defineProperties(Prism.languages['markup-templating'] = {}, {
1428
- buildPlaceholders: {
1429
- value: function (env, language, placeholderPattern, replaceFilter) {
1430
- if (env.language !== language) {
1431
- return;
1432
- }
1433
- var tokenStack = env.tokenStack = [];
1434
- env.code = env.code.replace(placeholderPattern, function (match) {
1435
- if (typeof replaceFilter === 'function' && !replaceFilter(match)) {
1436
- return match;
1437
- }
1438
- var i = tokenStack.length;
1439
- var placeholder;
1440
- while (env.code.indexOf(placeholder = getPlaceholder(language, i)) !== -1)
1441
- ++i;
1442
- tokenStack[i] = match;
1443
- return placeholder;
1444
- });
1445
- env.grammar = Prism.languages.markup;
1446
- }
1447
- },
1448
- tokenizePlaceholders: {
1449
- value: function (env, language) {
1450
- if (env.language !== language || !env.tokenStack) {
1451
- return;
1452
- }
1453
- env.grammar = Prism.languages[language];
1454
- var j = 0;
1455
- var keys = Object.keys(env.tokenStack);
1456
- function walkTokens(tokens) {
1457
- for (var i = 0; i < tokens.length; i++) {
1458
- if (j >= keys.length) {
1459
- break;
1460
- }
1461
- var token = tokens[i];
1462
- if (typeof token === 'string' || token.content && typeof token.content === 'string') {
1463
- var k = keys[j];
1464
- var t = env.tokenStack[k];
1465
- var s = typeof token === 'string' ? token : token.content;
1466
- var placeholder = getPlaceholder(language, k);
1467
- var index = s.indexOf(placeholder);
1468
- if (index > -1) {
1469
- ++j;
1470
- var before = s.substring(0, index);
1471
- var middle = new Prism.Token(language, Prism.tokenize(t, env.grammar), 'language-' + language, t);
1472
- var after = s.substring(index + placeholder.length);
1473
- var replacement = [];
1474
- if (before) {
1475
- replacement.push.apply(replacement, walkTokens([before]));
1476
- }
1477
- replacement.push(middle);
1478
- if (after) {
1479
- replacement.push.apply(replacement, walkTokens([after]));
1480
- }
1481
- if (typeof token === 'string') {
1482
- tokens.splice.apply(tokens, [
1483
- i,
1484
- 1
1485
- ].concat(replacement));
1486
- }
1487
- else {
1488
- token.content = replacement;
1489
- }
1490
- }
1491
- }
1492
- else if (token.content) {
1493
- walkTokens(token.content);
1494
- }
1495
- }
1496
- return tokens;
1497
- }
1498
- walkTokens(env.tokens);
1499
- }
1500
- }
1501
- });
1502
- }(Prism));
1503
- },
1504
- {}
1505
- ],
1506
- 10: [
1507
- function (require, module, exports) {
1508
- Prism.languages.markup = {
1509
- 'comment': /<!--[\s\S]*?-->/,
1510
- 'prolog': /<\?[\s\S]+?\?>/,
1511
- 'doctype': {
1512
- pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
1513
- greedy: true,
1514
- inside: {
1515
- 'internal-subset': {
1516
- pattern: /(\[)[\s\S]+(?=\]>$)/,
1517
- lookbehind: true,
1518
- greedy: true,
1519
- inside: null
1520
- },
1521
- 'string': {
1522
- pattern: /"[^"]*"|'[^']*'/,
1523
- greedy: true
1524
- },
1525
- 'punctuation': /^<!|>$|[[\]]/,
1526
- 'doctype-tag': /^DOCTYPE/,
1527
- 'name': /[^\s<>'"]+/
1528
- }
1529
- },
1530
- 'cdata': /<!\[CDATA\[[\s\S]*?]]>/i,
1531
- 'tag': {
1532
- pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
1533
- greedy: true,
1534
- inside: {
1535
- 'tag': {
1536
- pattern: /^<\/?[^\s>\/]+/,
1537
- inside: {
1538
- 'punctuation': /^<\/?/,
1539
- 'namespace': /^[^\s>\/:]+:/
1540
- }
1541
- },
1542
- 'attr-value': {
1543
- pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
1544
- inside: {
1545
- 'punctuation': [
1546
- {
1547
- pattern: /^=/,
1548
- alias: 'attr-equals'
1549
- },
1550
- /"|'/
1551
- ]
1552
- }
1553
- },
1554
- 'punctuation': /\/?>/,
1555
- 'attr-name': {
1556
- pattern: /[^\s>\/]+/,
1557
- inside: { 'namespace': /^[^\s>\/:]+:/ }
1558
- }
1559
- }
1560
- },
1561
- 'entity': [
1562
- {
1563
- pattern: /&[\da-z]{1,8};/i,
1564
- alias: 'named-entity'
1565
- },
1566
- /&#x?[\da-f]{1,8};/i
1567
- ]
1568
- };
1569
- Prism.languages.markup['tag'].inside['attr-value'].inside['entity'] = Prism.languages.markup['entity'];
1570
- Prism.languages.markup['doctype'].inside['internal-subset'].inside = Prism.languages.markup;
1571
- Prism.hooks.add('wrap', function (env) {
1572
- if (env.type === 'entity') {
1573
- env.attributes['title'] = env.content.replace(/&amp;/, '&');
1574
- }
1575
- });
1576
- Object.defineProperty(Prism.languages.markup.tag, 'addInlined', {
1577
- value: function addInlined(tagName, lang) {
1578
- var includedCdataInside = {};
1579
- includedCdataInside['language-' + lang] = {
1580
- pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
1581
- lookbehind: true,
1582
- inside: Prism.languages[lang]
1583
- };
1584
- includedCdataInside['cdata'] = /^<!\[CDATA\[|\]\]>$/i;
1585
- var inside = {
1586
- 'included-cdata': {
1587
- pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1588
- inside: includedCdataInside
1589
- }
1590
- };
1591
- inside['language-' + lang] = {
1592
- pattern: /[\s\S]+/,
1593
- inside: Prism.languages[lang]
1594
- };
1595
- var def = {};
1596
- def[tagName] = {
1597
- pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function () {
1598
- return tagName;
1599
- }), 'i'),
1600
- lookbehind: true,
1601
- greedy: true,
1602
- inside: inside
1603
- };
1604
- Prism.languages.insertBefore('markup', 'cdata', def);
1605
- }
1606
- });
1607
- Prism.languages.html = Prism.languages.markup;
1608
- Prism.languages.mathml = Prism.languages.markup;
1609
- Prism.languages.svg = Prism.languages.markup;
1610
- Prism.languages.xml = Prism.languages.extend('markup', {});
1611
- Prism.languages.ssml = Prism.languages.xml;
1612
- Prism.languages.atom = Prism.languages.xml;
1613
- Prism.languages.rss = Prism.languages.xml;
1614
- },
1615
- {}
1616
- ],
1617
- 11: [
1618
- function (require, module, exports) {
1619
- (function (Prism) {
1620
- var comment = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/;
1621
- var constant = [
1622
- {
1623
- pattern: /\b(?:false|true)\b/i,
1624
- alias: 'boolean'
1625
- },
1626
- /\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/,
1627
- /\b(?:null)\b/i
1628
- ];
1629
- var number = /\b0b[01]+\b|\b0x[\da-f]+\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+)(?:e[+-]?\d+)?/i;
1630
- var operator = /<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/;
1631
- var punctuation = /[{}\[\](),:;]/;
1632
- Prism.languages.php = {
1633
- 'delimiter': {
1634
- pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i,
1635
- alias: 'important'
1636
- },
1637
- 'comment': comment,
1638
- 'variable': /\$+(?:\w+\b|(?={))/i,
1639
- 'package': {
1640
- pattern: /(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
1641
- lookbehind: true,
1642
- inside: { 'punctuation': /\\/ }
1643
- },
1644
- 'keyword': [
1645
- {
1646
- pattern: /(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,
1647
- alias: 'type-casting',
1648
- greedy: true,
1649
- lookbehind: true
1650
- },
1651
- {
1652
- pattern: /([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,
1653
- alias: 'type-hint',
1654
- greedy: true,
1655
- lookbehind: true
1656
- },
1657
- {
1658
- pattern: /([(,?]\s*[a-z0-9_|]\|\s*)(?:null|false)\b(?=\s*\$)/i,
1659
- alias: 'type-hint',
1660
- greedy: true,
1661
- lookbehind: true
1662
- },
1663
- {
1664
- pattern: /(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,
1665
- alias: 'return-type',
1666
- greedy: true,
1667
- lookbehind: true
1668
- },
1669
- {
1670
- pattern: /(\)\s*:\s*(?:\?\s*)?[a-z0-9_|]\|\s*)(?:null|false)\b/i,
1671
- alias: 'return-type',
1672
- greedy: true,
1673
- lookbehind: true
1674
- },
1675
- {
1676
- pattern: /\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,
1677
- alias: 'type-declaration',
1678
- greedy: true
1679
- },
1680
- {
1681
- pattern: /(\|\s*)(?:null|false)\b/i,
1682
- alias: 'type-declaration',
1683
- greedy: true,
1684
- lookbehind: true
1685
- },
1686
- {
1687
- pattern: /\b(?:parent|self|static)(?=\s*::)/i,
1688
- alias: 'static-context',
1689
- greedy: true
1690
- },
1691
- /\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|class|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|final|finally|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i
1692
- ],
1693
- 'argument-name': /\b[a-z_]\w*(?=\s*:(?!:))/i,
1694
- 'class-name': [
1695
- {
1696
- pattern: /(\b(?:class|interface|extends|implements|trait|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,
1697
- greedy: true,
1698
- lookbehind: true
1699
- },
1700
- {
1701
- pattern: /(\|\s*)\b[a-z_]\w*(?!\\)\b/i,
1702
- greedy: true,
1703
- lookbehind: true
1704
- },
1705
- {
1706
- pattern: /\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,
1707
- greedy: true
1708
- },
1709
- {
1710
- pattern: /(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,
1711
- alias: 'class-name-fully-qualified',
1712
- greedy: true,
1713
- lookbehind: true,
1714
- inside: { 'punctuation': /\\/ }
1715
- },
1716
- {
1717
- pattern: /(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,
1718
- alias: 'class-name-fully-qualified',
1719
- greedy: true,
1720
- inside: { 'punctuation': /\\/ }
1721
- },
1722
- {
1723
- pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
1724
- alias: 'class-name-fully-qualified',
1725
- greedy: true,
1726
- lookbehind: true,
1727
- inside: { 'punctuation': /\\/ }
1728
- },
1729
- {
1730
- pattern: /\b[a-z_]\w*(?=\s*\$)/i,
1731
- alias: 'type-declaration',
1732
- greedy: true
1733
- },
1734
- {
1735
- pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
1736
- alias: [
1737
- 'class-name-fully-qualified',
1738
- 'type-declaration'
1739
- ],
1740
- greedy: true,
1741
- inside: { 'punctuation': /\\/ }
1742
- },
1743
- {
1744
- pattern: /\b[a-z_]\w*(?=\s*::)/i,
1745
- alias: 'static-context',
1746
- greedy: true
1747
- },
1748
- {
1749
- pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,
1750
- alias: [
1751
- 'class-name-fully-qualified',
1752
- 'static-context'
1753
- ],
1754
- greedy: true,
1755
- inside: { 'punctuation': /\\/ }
1756
- },
1757
- {
1758
- pattern: /([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,
1759
- alias: 'type-hint',
1760
- greedy: true,
1761
- lookbehind: true
1762
- },
1763
- {
1764
- pattern: /([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
1765
- alias: [
1766
- 'class-name-fully-qualified',
1767
- 'type-hint'
1768
- ],
1769
- greedy: true,
1770
- lookbehind: true,
1771
- inside: { 'punctuation': /\\/ }
1772
- },
1773
- {
1774
- pattern: /(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,
1775
- alias: 'return-type',
1776
- greedy: true,
1777
- lookbehind: true
1778
- },
1779
- {
1780
- pattern: /(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
1781
- alias: [
1782
- 'class-name-fully-qualified',
1783
- 'return-type'
1784
- ],
1785
- greedy: true,
1786
- lookbehind: true,
1787
- inside: { 'punctuation': /\\/ }
1788
- }
1789
- ],
1790
- 'constant': constant,
1791
- 'function': /\w+\s*(?=\()/,
1792
- 'property': {
1793
- pattern: /(->)[\w]+/,
1794
- lookbehind: true
1795
- },
1796
- 'number': number,
1797
- 'operator': operator,
1798
- 'punctuation': punctuation
1799
- };
1800
- var string_interpolation = {
1801
- pattern: /{\$(?:{(?:{[^{}]+}|[^{}]+)}|[^{}])+}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)*)/,
1802
- lookbehind: true,
1803
- inside: Prism.languages.php
1804
- };
1805
- var string = [
1806
- {
1807
- pattern: /<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,
1808
- alias: 'nowdoc-string',
1809
- greedy: true,
1810
- inside: {
1811
- 'delimiter': {
1812
- pattern: /^<<<'[^']+'|[a-z_]\w*;$/i,
1813
- alias: 'symbol',
1814
- inside: { 'punctuation': /^<<<'?|[';]$/ }
1815
- }
1816
- }
1817
- },
1818
- {
1819
- pattern: /<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,
1820
- alias: 'heredoc-string',
1821
- greedy: true,
1822
- inside: {
1823
- 'delimiter': {
1824
- pattern: /^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,
1825
- alias: 'symbol',
1826
- inside: { 'punctuation': /^<<<"?|[";]$/ }
1827
- },
1828
- 'interpolation': string_interpolation
1829
- }
1830
- },
1831
- {
1832
- pattern: /`(?:\\[\s\S]|[^\\`])*`/,
1833
- alias: 'backtick-quoted-string',
1834
- greedy: true
1835
- },
1836
- {
1837
- pattern: /'(?:\\[\s\S]|[^\\'])*'/,
1838
- alias: 'single-quoted-string',
1839
- greedy: true
1840
- },
1841
- {
1842
- pattern: /"(?:\\[\s\S]|[^\\"])*"/,
1843
- alias: 'double-quoted-string',
1844
- greedy: true,
1845
- inside: { 'interpolation': string_interpolation }
1846
- }
1847
- ];
1848
- Prism.languages.insertBefore('php', 'variable', { 'string': string });
1849
- Prism.languages.insertBefore('php', 'variable', {
1850
- 'attribute': {
1851
- pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/mi,
1852
- greedy: true,
1853
- inside: {
1854
- 'attribute-content': {
1855
- pattern: /^(#\[)[\s\S]+(?=]$)/,
1856
- lookbehind: true,
1857
- inside: {
1858
- 'comment': comment,
1859
- 'string': string,
1860
- 'attribute-class-name': [
1861
- {
1862
- pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/i,
1863
- alias: 'class-name',
1864
- greedy: true,
1865
- lookbehind: true
1866
- },
1867
- {
1868
- pattern: /([^:]|^)(?:\\?\b[a-z_]\w*)+/i,
1869
- alias: [
1870
- 'class-name',
1871
- 'class-name-fully-qualified'
1872
- ],
1873
- greedy: true,
1874
- lookbehind: true,
1875
- inside: { 'punctuation': /\\/ }
1876
- }
1877
- ],
1878
- 'constant': constant,
1879
- 'number': number,
1880
- 'operator': operator,
1881
- 'punctuation': punctuation
1882
- }
1883
- },
1884
- 'delimiter': {
1885
- pattern: /^#\[|]$/,
1886
- alias: 'punctuation'
1887
- }
1888
- }
1889
- }
1890
- });
1891
- Prism.hooks.add('before-tokenize', function (env) {
1892
- if (!/<\?/.test(env.code)) {
1893
- return;
1894
- }
1895
- var phpPattern = /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/ig;
1896
- Prism.languages['markup-templating'].buildPlaceholders(env, 'php', phpPattern);
1897
- });
1898
- Prism.hooks.add('after-tokenize', function (env) {
1899
- Prism.languages['markup-templating'].tokenizePlaceholders(env, 'php');
1900
- });
1901
- }(Prism));
1902
- },
1903
- {}
1904
- ],
1905
- 12: [
1906
- function (require, module, exports) {
1907
- Prism.languages.python = {
1908
- 'comment': {
1909
- pattern: /(^|[^\\])#.*/,
1910
- lookbehind: true
1911
- },
1912
- 'string-interpolation': {
1913
- pattern: /(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
1914
- greedy: true,
1915
- inside: {
1916
- 'interpolation': {
1917
- pattern: /((?:^|[^{])(?:{{)*){(?!{)(?:[^{}]|{(?!{)(?:[^{}]|{(?!{)(?:[^{}])+})+})+}/,
1918
- lookbehind: true,
1919
- inside: {
1920
- 'format-spec': {
1921
- pattern: /(:)[^:(){}]+(?=}$)/,
1922
- lookbehind: true
1923
- },
1924
- 'conversion-option': {
1925
- pattern: /![sra](?=[:}]$)/,
1926
- alias: 'punctuation'
1927
- },
1928
- rest: null
1929
- }
1930
- },
1931
- 'string': /[\s\S]+/
1932
- }
1933
- },
1934
- 'triple-quoted-string': {
1935
- pattern: /(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,
1936
- greedy: true,
1937
- alias: 'string'
1938
- },
1939
- 'string': {
1940
- pattern: /(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
1941
- greedy: true
1942
- },
1943
- 'function': {
1944
- pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
1945
- lookbehind: true
1946
- },
1947
- 'class-name': {
1948
- pattern: /(\bclass\s+)\w+/i,
1949
- lookbehind: true
1950
- },
1951
- 'decorator': {
1952
- pattern: /(^\s*)@\w+(?:\.\w+)*/im,
1953
- lookbehind: true,
1954
- alias: [
1955
- 'annotation',
1956
- 'punctuation'
1957
- ],
1958
- inside: { 'punctuation': /\./ }
1959
- },
1960
- 'keyword': /\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
1961
- 'builtin': /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
1962
- 'boolean': /\b(?:True|False|None)\b/,
1963
- 'number': /(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,
1964
- 'operator': /[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
1965
- 'punctuation': /[{}[\];(),.:]/
1966
- };
1967
- Prism.languages.python['string-interpolation'].inside['interpolation'].inside.rest = Prism.languages.python;
1968
- Prism.languages.py = Prism.languages.python;
1969
- },
1970
- {}
1971
- ],
1972
- 13: [
1973
- function (require, module, exports) {
1974
- (function (Prism) {
1975
- Prism.languages.ruby = Prism.languages.extend('clike', {
1976
- 'comment': [
1977
- /#.*/,
1978
- {
1979
- pattern: /^=begin\s[\s\S]*?^=end/m,
1980
- greedy: true
1981
- }
1982
- ],
1983
- 'class-name': {
1984
- pattern: /(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,
1985
- lookbehind: true,
1986
- inside: { 'punctuation': /[.\\]/ }
1987
- },
1988
- 'keyword': /\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/
1989
- });
1990
- var interpolation = {
1991
- pattern: /#\{[^}]+\}/,
1992
- inside: {
1993
- 'delimiter': {
1994
- pattern: /^#\{|\}$/,
1995
- alias: 'tag'
1996
- },
1997
- rest: Prism.languages.ruby
1998
- }
1999
- };
2000
- delete Prism.languages.ruby.function;
2001
- Prism.languages.insertBefore('ruby', 'keyword', {
2002
- 'regex': [
2003
- {
2004
- pattern: RegExp(/%r/.source + '(?:' + [
2005
- /([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1[gim]{0,3}/.source,
2006
- /\((?:[^()\\]|\\[\s\S])*\)[gim]{0,3}/.source,
2007
- /\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}[gim]{0,3}/.source,
2008
- /\[(?:[^\[\]\\]|\\[\s\S])*\][gim]{0,3}/.source,
2009
- /<(?:[^<>\\]|\\[\s\S])*>[gim]{0,3}/.source
2010
- ].join('|') + ')'),
2011
- greedy: true,
2012
- inside: { 'interpolation': interpolation }
2013
- },
2014
- {
2015
- pattern: /(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[gim]{0,3}(?=\s*(?:$|[\r\n,.;})]))/,
2016
- lookbehind: true,
2017
- greedy: true
2018
- }
2019
- ],
2020
- 'variable': /[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,
2021
- 'symbol': {
2022
- pattern: /(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,
2023
- lookbehind: true
2024
- },
2025
- 'method-definition': {
2026
- pattern: /(\bdef\s+)[\w.]+/,
2027
- lookbehind: true,
2028
- inside: {
2029
- 'function': /\w+$/,
2030
- rest: Prism.languages.ruby
2031
- }
2032
- }
2033
- });
2034
- Prism.languages.insertBefore('ruby', 'number', {
2035
- 'builtin': /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,
2036
- 'constant': /\b[A-Z]\w*(?:[?!]|\b)/
2037
- });
2038
- Prism.languages.ruby.string = [
2039
- {
2040
- pattern: RegExp(/%[qQiIwWxs]?/.source + '(?:' + [
2041
- /([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,
2042
- /\((?:[^()\\]|\\[\s\S])*\)/.source,
2043
- /\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,
2044
- /\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,
2045
- /<(?:[^<>\\]|\\[\s\S])*>/.source
2046
- ].join('|') + ')'),
2047
- greedy: true,
2048
- inside: { 'interpolation': interpolation }
2049
- },
2050
- {
2051
- pattern: /("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,
2052
- greedy: true,
2053
- inside: { 'interpolation': interpolation }
2054
- }
2055
- ];
2056
- Prism.languages.rb = Prism.languages.ruby;
2057
- }(Prism));
2058
- },
2059
- {}
2060
- ],
2061
- 14: [
2062
- function (require, module, exports) {
2063
- var Prism = require('prismjs/components/prism-core');
2064
- require('prismjs/components/prism-clike');
2065
- require('prismjs/components/prism-markup-templating');
2066
- require('prismjs/components/prism-c');
2067
- require('prismjs/components/prism-cpp');
2068
- require('prismjs/components/prism-csharp');
2069
- require('prismjs/components/prism-css');
2070
- require('prismjs/components/prism-java');
2071
- require('prismjs/components/prism-javascript');
2072
- require('prismjs/components/prism-markup');
2073
- require('prismjs/components/prism-php');
2074
- require('prismjs/components/prism-python');
2075
- require('prismjs/components/prism-ruby');
2076
- module.exports = { boltExport: Prism };
2077
- },
2078
- {
2079
- 'prismjs/components/prism-c': 1,
2080
- 'prismjs/components/prism-clike': 2,
2081
- 'prismjs/components/prism-core': 3,
2082
- 'prismjs/components/prism-cpp': 4,
2083
- 'prismjs/components/prism-csharp': 5,
2084
- 'prismjs/components/prism-css': 6,
2085
- 'prismjs/components/prism-java': 7,
2086
- 'prismjs/components/prism-javascript': 8,
2087
- 'prismjs/components/prism-markup': 10,
2088
- 'prismjs/components/prism-markup-templating': 9,
2089
- 'prismjs/components/prism-php': 11,
2090
- 'prismjs/components/prism-python': 12,
2091
- 'prismjs/components/prism-ruby': 13
2092
- }
2093
- ]
2094
- }, {}, [14])(14);
2095
- }));
2096
- var prism = window.Prism;
2097
- window.Prism = oldprism;
2098
- return prism;
2099
- }(undefined, exports$1, module, undefined));
2100
- var Prism$1 = module.exports.boltExport;
2101
- var getLanguages = function (editor) {
2102
- return editor.getParam('codesample_languages');
2103
- };
2104
- var useGlobalPrismJS = function (editor) {
2105
- return editor.getParam('codesample_global_prismjs', false, 'boolean');
2106
- };
2107
- var get$1 = function (editor) {
2108
- return Global.Prism && useGlobalPrismJS(editor) ? Global.Prism : Prism$1;
2109
- };
2110
- var getSelectedCodeSample = function (editor) {
2111
- var node = editor.selection ? editor.selection.getNode() : null;
2112
- if (isCodeSample(node)) {
2113
- return Optional.some(node);
2114
- }
2115
- return Optional.none();
2116
- };
2117
- var insertCodeSample = function (editor, language, code) {
2118
- editor.undoManager.transact(function () {
2119
- var node = getSelectedCodeSample(editor);
2120
- code = global$1.DOM.encode(code);
2121
- return node.fold(function () {
2122
- editor.insertContent('<pre id="__new" class="language-' + language + '">' + code + '</pre>');
2123
- editor.selection.select(editor.$('#__new').removeAttr('id')[0]);
2124
- }, function (n) {
2125
- editor.dom.setAttrib(n, 'class', 'language-' + language);
2126
- n.innerHTML = code;
2127
- get$1(editor).highlightElement(n);
2128
- editor.selection.select(n);
2129
- });
2130
- });
2131
- };
2132
- var getCurrentCode = function (editor) {
2133
- var node = getSelectedCodeSample(editor);
2134
- return node.fold(function () {
2135
- return '';
2136
- }, function (n) {
2137
- return n.textContent;
2138
- });
2139
- };
2140
- var getLanguages$1 = function (editor) {
2141
- var defaultLanguages = [
2142
- {
2143
- text: 'HTML/XML',
2144
- value: 'markup'
2145
- },
2146
- {
2147
- text: 'JavaScript',
2148
- value: 'javascript'
2149
- },
2150
- {
2151
- text: 'CSS',
2152
- value: 'css'
2153
- },
2154
- {
2155
- text: 'PHP',
2156
- value: 'php'
2157
- },
2158
- {
2159
- text: 'Ruby',
2160
- value: 'ruby'
2161
- },
2162
- {
2163
- text: 'Python',
2164
- value: 'python'
2165
- },
2166
- {
2167
- text: 'Java',
2168
- value: 'java'
2169
- },
2170
- {
2171
- text: 'C',
2172
- value: 'c'
2173
- },
2174
- {
2175
- text: 'C#',
2176
- value: 'csharp'
2177
- },
2178
- {
2179
- text: 'C++',
2180
- value: 'cpp'
2181
- }
2182
- ];
2183
- var customLanguages = getLanguages(editor);
2184
- return customLanguages ? customLanguages : defaultLanguages;
2185
- };
2186
- var getCurrentLanguage = function (editor, fallback) {
2187
- var node = getSelectedCodeSample(editor);
2188
- return node.fold(function () {
2189
- return fallback;
2190
- }, function (n) {
2191
- var matches = n.className.match(/language-(\w+)/);
2192
- return matches ? matches[1] : fallback;
2193
- });
2194
- };
2195
- var open = function (editor) {
2196
- var languages = getLanguages$1(editor);
2197
- var defaultLanguage = head(languages).fold(function () {
2198
- return '';
2199
- }, function (l) {
2200
- return l.value;
2201
- });
2202
- var currentLanguage = getCurrentLanguage(editor, defaultLanguage);
2203
- var currentCode = getCurrentCode(editor);
2204
- editor.windowManager.open({
2205
- title: 'Insert/Edit Code Sample',
2206
- size: 'large',
2207
- body: {
2208
- type: 'panel',
2209
- items: [
2210
- {
2211
- type: 'selectbox',
2212
- name: 'language',
2213
- label: 'Language',
2214
- items: languages
2215
- },
2216
- {
2217
- type: 'textarea',
2218
- name: 'code',
2219
- label: 'Code view'
2220
- }
2221
- ]
2222
- },
2223
- buttons: [
2224
- {
2225
- type: 'cancel',
2226
- name: 'cancel',
2227
- text: 'Cancel'
2228
- },
2229
- {
2230
- type: 'submit',
2231
- name: 'save',
2232
- text: 'Save',
2233
- primary: true
2234
- }
2235
- ],
2236
- initialData: {
2237
- language: currentLanguage,
2238
- code: currentCode
2239
- },
2240
- onSubmit: function (api) {
2241
- var data = api.getData();
2242
- insertCodeSample(editor, data.language, data.code);
2243
- api.close();
2244
- }
2245
- });
2246
- };
2247
- var register = function (editor) {
2248
- editor.addCommand('codesample', function () {
2249
- var node = editor.selection.getNode();
2250
- if (editor.selection.isCollapsed() || isCodeSample(node)) {
2251
- open(editor);
2252
- }
2253
- else {
2254
- editor.formatter.toggle('code');
2255
- }
2256
- });
2257
- };
2258
- var setup = function (editor) {
2259
- var $ = editor.$;
2260
- editor.on('PreProcess', function (e) {
2261
- $('pre[contenteditable=false]', e.node).filter(trimArg(isCodeSample)).each(function (idx, elm) {
2262
- var $elm = $(elm), code = elm.textContent;
2263
- $elm.attr('class', $.trim($elm.attr('class')));
2264
- $elm.removeAttr('contentEditable');
2265
- $elm.empty().append($('<code></code>').each(function () {
2266
- this.textContent = code;
2267
- }));
2268
- });
2269
- });
2270
- editor.on('SetContent', function () {
2271
- var unprocessedCodeSamples = $('pre').filter(trimArg(isCodeSample)).filter(function (idx, elm) {
2272
- return elm.contentEditable !== 'false';
2273
- });
2274
- if (unprocessedCodeSamples.length) {
2275
- editor.undoManager.transact(function () {
2276
- unprocessedCodeSamples.each(function (idx, elm) {
2277
- $(elm).find('br').each(function (idx, elm) {
2278
- elm.parentNode.replaceChild(editor.getDoc().createTextNode('\n'), elm);
2279
- });
2280
- elm.contentEditable = 'false';
2281
- elm.innerHTML = editor.dom.encode(elm.textContent);
2282
- get$1(editor).highlightElement(elm);
2283
- elm.className = $.trim(elm.className);
2284
- });
2285
- });
2286
- }
2287
- });
2288
- };
2289
- var isCodeSampleSelection = function (editor) {
2290
- var node = editor.selection.getStart();
2291
- return editor.dom.is(node, 'pre[class*="language-"]');
2292
- };
2293
- var register$1 = function (editor) {
2294
- editor.ui.registry.addToggleButton('codesample', {
2295
- icon: 'code-sample',
2296
- tooltip: 'Insert/edit code sample',
2297
- onAction: function () {
2298
- return open(editor);
2299
- },
2300
- onSetup: function (api) {
2301
- var nodeChangeHandler = function () {
2302
- api.setActive(isCodeSampleSelection(editor));
2303
- };
2304
- editor.on('NodeChange', nodeChangeHandler);
2305
- return function () {
2306
- return editor.off('NodeChange', nodeChangeHandler);
2307
- };
2308
- }
2309
- });
2310
- editor.ui.registry.addMenuItem('codesample', {
2311
- text: 'Code sample...',
2312
- icon: 'code-sample',
2313
- onAction: function () {
2314
- return open(editor);
2315
- }
2316
- });
2317
- };
2318
- function Plugin() {
2319
- global.add('codesample', function (editor) {
2320
- setup(editor);
2321
- register$1(editor);
2322
- register(editor);
2323
- editor.on('dblclick', function (ev) {
2324
- if (isCodeSample(ev.target)) {
2325
- open(editor);
2326
- }
2327
- });
2328
- });
2329
- }
2330
- Plugin();
2331
- }());