@sapui5/sap.ui.richtexteditor 1.96.24 → 1.96.26

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 (629) hide show
  1. package/package.json +1 -1
  2. package/src/sap/ui/richtexteditor/.library +15 -6
  3. package/src/sap/ui/richtexteditor/RTESplitButton.js +1 -1
  4. package/src/sap/ui/richtexteditor/RichTextEditor.js +365 -229
  5. package/src/sap/ui/richtexteditor/RichTextEditorRenderer.js +14 -5
  6. package/src/sap/ui/richtexteditor/ToolbarWrapper.js +563 -316
  7. package/src/sap/ui/richtexteditor/ToolbarWrapperRenderer.js +3 -4
  8. package/src/sap/ui/richtexteditor/js/tiny_mce5/icons/default/icons.js +11 -1
  9. package/src/sap/ui/richtexteditor/js/tiny_mce5/icons/default/icons.min.js +1 -1
  10. package/src/sap/ui/richtexteditor/js/tiny_mce5/jquery.tinymce.min.js +88 -0
  11. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ar.js +1 -420
  12. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/bg_BG.js +1 -419
  13. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/bn_BD.js +21 -179
  14. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ca.js +1 -419
  15. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/cs.js +1 -419
  16. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/cs_CZ.js +221 -19
  17. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/cy.js +61 -18
  18. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/da.js +1 -419
  19. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/de.js +1 -419
  20. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/el.js +1 -261
  21. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/es.js +1 -419
  22. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/es_419.js +462 -0
  23. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/es_MX.js +1 -419
  24. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/et.js +21 -179
  25. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/eu.js +1 -419
  26. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fa.js +1 -419
  27. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fa_IR.js +69 -197
  28. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fi.js +1 -419
  29. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fr_FR.js +1 -419
  30. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/gl.js +20 -155
  31. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/he_IL.js +1 -420
  32. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/hr.js +1 -418
  33. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/hu_HU.js +1 -419
  34. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/id.js +1 -419
  35. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/it.js +1 -419
  36. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ja.js +1 -419
  37. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/kk.js +1 -418
  38. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ko_KR.js +1 -419
  39. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/lt.js +21 -179
  40. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/nb_NO.js +1 -419
  41. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/nl.js +1 -419
  42. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/nl_BE.js +445 -0
  43. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/pl.js +1 -419
  44. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/pt_BR.js +1 -419
  45. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/pt_PT.js +1 -419
  46. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ro.js +1 -418
  47. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ru.js +1 -419
  48. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ru_RU.js +445 -0
  49. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sk.js +1 -418
  50. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sl.js +59 -14
  51. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sl_SI.js +1 -388
  52. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sq.js +219 -0
  53. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sv_SE.js +1 -419
  54. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ta.js +60 -17
  55. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ta_IN.js +60 -17
  56. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/th_TH.js +1 -419
  57. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/tr.js +1 -419
  58. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/tr_TR.js +81 -8
  59. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ug.js +221 -19
  60. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/uk.js +1 -419
  61. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/zh_CN.js +1 -419
  62. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/zh_TW.js +1 -419
  63. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/changelog.txt +8 -0
  64. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/codemirror.min.css +1 -1
  65. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/codemirror.min.js +4023 -4246
  66. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/customeditor.js +5 -5
  67. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/customeditor.min.js +5 -5
  68. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/plugin.js +5 -5
  69. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/plugin.min.js +5 -5
  70. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/readme.txt +1 -1
  71. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/version.txt +1 -1
  72. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advlist/plugin.js +33 -48
  73. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advlist/plugin.min.js +4 -2
  74. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/anchor/plugin.js +10 -8
  75. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/anchor/plugin.min.js +4 -2
  76. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autolink/plugin.js +60 -30
  77. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autolink/plugin.min.js +4 -2
  78. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autoresize/plugin.js +27 -12
  79. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autoresize/plugin.min.js +4 -2
  80. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autosave/plugin.js +12 -12
  81. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autosave/plugin.min.js +4 -2
  82. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/bbcode/plugin.js +8 -6
  83. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/bbcode/plugin.min.js +4 -2
  84. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/charmap/plugin.js +59 -67
  85. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/charmap/plugin.min.js +4 -2
  86. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/code/plugin.js +11 -10
  87. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/code/plugin.min.js +4 -2
  88. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/codesample/plugin.js +1934 -1310
  89. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/codesample/plugin.min.js +4 -2
  90. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/colorpicker/plugin.js +3 -2
  91. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/colorpicker/plugin.min.js +4 -2
  92. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/contextmenu/plugin.js +3 -2
  93. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/contextmenu/plugin.min.js +4 -2
  94. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/directionality/plugin.js +200 -59
  95. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/directionality/plugin.min.js +4 -2
  96. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojiimages.js +9424 -0
  97. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojiimages.min.js +3 -0
  98. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojis.js +1914 -1506
  99. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojis.min.js +2 -2
  100. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/plugin.js +255 -181
  101. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/plugin.min.js +4 -2
  102. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullpage/plugin.js +51 -49
  103. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullpage/plugin.min.js +4 -2
  104. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullscreen/plugin.js +542 -163
  105. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullscreen/plugin.min.js +4 -2
  106. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/help/plugin.js +113 -105
  107. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/help/plugin.min.js +4 -2
  108. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/hr/plugin.js +11 -10
  109. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/hr/plugin.min.js +4 -2
  110. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/image/plugin.js +187 -170
  111. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/image/plugin.min.js +4 -2
  112. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/imagetools/plugin.js +625 -433
  113. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/imagetools/plugin.min.js +4 -2
  114. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/importcss/plugin.js +54 -53
  115. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/importcss/plugin.min.js +4 -2
  116. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/insertdatetime/plugin.js +24 -17
  117. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/insertdatetime/plugin.min.js +4 -2
  118. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/legacyoutput/plugin.js +10 -8
  119. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/legacyoutput/plugin.min.js +4 -2
  120. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/link/plugin.js +145 -131
  121. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/link/plugin.min.js +4 -2
  122. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/lists/plugin.js +440 -270
  123. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/lists/plugin.min.js +4 -2
  124. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/media/plugin.js +232 -186
  125. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/media/plugin.min.js +4 -2
  126. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/nonbreaking/plugin.js +15 -14
  127. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/nonbreaking/plugin.min.js +4 -2
  128. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/noneditable/plugin.js +8 -6
  129. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/noneditable/plugin.min.js +4 -2
  130. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/pagebreak/plugin.js +29 -30
  131. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/pagebreak/plugin.min.js +4 -2
  132. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/paste/plugin.js +388 -290
  133. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/paste/plugin.min.js +4 -2
  134. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/CHANGELOG.md +345 -0
  135. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/js/wordimport.js +1826 -1696
  136. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ar.js +12 -9
  137. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/bg_BG.js +4 -4
  138. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ca.js +10 -7
  139. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/cs.js +12 -9
  140. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/da.js +11 -8
  141. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/de.js +10 -7
  142. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/el.js +12 -9
  143. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/es.js +10 -7
  144. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/eu.js +4 -4
  145. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/fa.js +12 -9
  146. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/fi.js +12 -9
  147. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/fr_FR.js +11 -8
  148. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/he_IL.js +12 -9
  149. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/hr.js +11 -8
  150. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/hu_HU.js +12 -9
  151. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/id.js +4 -4
  152. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/it.js +10 -7
  153. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ja.js +12 -9
  154. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/kk.js +12 -9
  155. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ko_KR.js +12 -9
  156. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/nb_NO.js +11 -8
  157. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/nl.js +8 -5
  158. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/pl.js +10 -7
  159. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/pt_BR.js +11 -8
  160. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/pt_PT.js +11 -8
  161. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ro.js +12 -9
  162. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ru.js +12 -9
  163. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/sk.js +12 -9
  164. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/sl_SI.js +11 -8
  165. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/sv_SE.js +10 -7
  166. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/th_TH.js +12 -9
  167. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/tr.js +11 -8
  168. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/uk.js +12 -9
  169. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/zh_CN.js +13 -10
  170. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/zh_TW.js +13 -10
  171. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/plugin.js +5 -5
  172. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/plugin.min.js +5 -5
  173. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/readme.txt +1 -1
  174. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/version.txt +1 -1
  175. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/preview/plugin.js +18 -17
  176. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/preview/plugin.min.js +4 -2
  177. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/print/plugin.js +15 -14
  178. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/print/plugin.min.js +4 -2
  179. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/quickbars/plugin.js +76 -85
  180. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/quickbars/plugin.min.js +4 -2
  181. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/save/plugin.js +11 -8
  182. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/save/plugin.min.js +4 -2
  183. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/searchreplace/plugin.js +108 -103
  184. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/searchreplace/plugin.min.js +4 -2
  185. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/spellchecker/plugin.js +54 -59
  186. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/spellchecker/plugin.min.js +4 -2
  187. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tabfocus/plugin.js +31 -28
  188. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tabfocus/plugin.min.js +4 -2
  189. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/table/plugin.js +4394 -3142
  190. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/table/plugin.min.js +4 -2
  191. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/template/plugin.js +89 -73
  192. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/template/plugin.min.js +4 -2
  193. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textcolor/plugin.js +3 -2
  194. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textcolor/plugin.min.js +4 -2
  195. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textpattern/plugin.js +111 -122
  196. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textpattern/plugin.min.js +4 -2
  197. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/toc/plugin.js +33 -29
  198. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/toc/plugin.min.js +4 -2
  199. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualblocks/plugin.js +12 -11
  200. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualblocks/plugin.min.js +4 -2
  201. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualchars/plugin.js +89 -101
  202. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualchars/plugin.min.js +4 -2
  203. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/wordcount/plugin.js +69 -58
  204. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/wordcount/plugin.min.js +4 -2
  205. package/src/sap/ui/richtexteditor/js/tiny_mce5/readme.txt +1 -1
  206. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.css +10 -6
  207. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.inline.css +10 -6
  208. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.inline.min.css +1 -1
  209. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.inline.min.css.map +1 -1
  210. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.min.css +1 -1
  211. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.min.css.map +1 -1
  212. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.css +104 -29
  213. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.min.css +1 -1
  214. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.min.css.map +1 -1
  215. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.shadowdom.css +37 -0
  216. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.shadowdom.min.css +8 -0
  217. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.shadowdom.min.css.map +1 -0
  218. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.css +9 -5
  219. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.inline.css +10 -6
  220. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.inline.min.css +1 -1
  221. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.inline.min.css.map +1 -1
  222. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.min.css +1 -1
  223. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.min.css.map +1 -1
  224. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.css +104 -29
  225. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.min.css +1 -1
  226. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.min.css.map +1 -1
  227. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.shadowdom.css +37 -0
  228. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.shadowdom.min.css +8 -0
  229. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -0
  230. package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/mobile/theme.js +2890 -3335
  231. package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/mobile/theme.min.js +4 -2
  232. package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/silver/theme.js +15720 -15353
  233. package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/silver/theme.min.js +4 -2
  234. package/src/sap/ui/richtexteditor/js/tiny_mce5/tinymce.d.ts +768 -552
  235. package/src/sap/ui/richtexteditor/js/tiny_mce5/tinymce.js +6762 -6159
  236. package/src/sap/ui/richtexteditor/js/tiny_mce5/tinymce.min.js +4 -2
  237. package/src/sap/ui/richtexteditor/js/tiny_mce5/version.txt +1 -1
  238. package/src/sap/ui/richtexteditor/js/tiny_mce6/icons/default/icons.js +197 -0
  239. package/src/sap/ui/richtexteditor/js/tiny_mce6/icons/default/icons.min.js +7 -0
  240. package/src/sap/ui/richtexteditor/js/tiny_mce6/icons/default/index.js +13 -0
  241. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ar.js +7 -0
  242. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/bg_BG.js +7 -0
  243. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ca.js +7 -0
  244. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/cs.js +7 -0
  245. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/cy.js +1 -0
  246. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/da.js +7 -0
  247. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/de.js +7 -0
  248. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/dv.js +1 -0
  249. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/el.js +7 -0
  250. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/en_GB.js +261 -0
  251. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/es.js +7 -0
  252. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/es_MX.js +1 -0
  253. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/et.js +1 -0
  254. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/eu.js +7 -0
  255. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/fa.js +7 -0
  256. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/fi.js +7 -0
  257. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/fr_FR.js +7 -0
  258. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/he_IL.js +7 -0
  259. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/hi.js +7 -0
  260. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/hr.js +7 -0
  261. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/hu_HU.js +7 -0
  262. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/id.js +7 -0
  263. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/it.js +7 -0
  264. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ja.js +7 -0
  265. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/kk.js +7 -0
  266. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ko_KR.js +7 -0
  267. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/lt.js +1 -0
  268. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/lv.js +1 -0
  269. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ms.js +7 -0
  270. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/nb_NO.js +7 -0
  271. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/nl.js +7 -0
  272. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/pl.js +7 -0
  273. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/pt_BR.js +7 -0
  274. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/pt_PT.js +7 -0
  275. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ro.js +7 -0
  276. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ru.js +7 -0
  277. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sk.js +7 -0
  278. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sl_SI.js +7 -0
  279. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sr.js +1 -0
  280. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sv_SE.js +7 -0
  281. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/th_TH.js +7 -0
  282. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/tr.js +7 -0
  283. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/uk.js +7 -0
  284. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/vi.js +7 -0
  285. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/zh_CN.js +7 -0
  286. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/zh_TW.js +7 -0
  287. package/src/sap/ui/richtexteditor/js/tiny_mce6/license.txt +5 -0
  288. package/src/sap/ui/richtexteditor/js/tiny_mce6/models/dom/index.js +13 -0
  289. package/src/sap/ui/richtexteditor/js/tiny_mce6/models/dom/model.js +8045 -0
  290. package/src/sap/ui/richtexteditor/js/tiny_mce6/models/dom/model.min.js +9 -0
  291. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/accordion/index.js +13 -0
  292. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/accordion/plugin.js +1038 -0
  293. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/accordion/plugin.min.js +9 -0
  294. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/CHANGELOG.md +110 -0
  295. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/codemirror.min.css +13 -0
  296. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/codemirror.min.js +13 -0
  297. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/customeditor.js +10 -0
  298. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/customeditor.min.js +10 -0
  299. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ar.js +15 -0
  300. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/bg_BG.js +15 -0
  301. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ca.js +15 -0
  302. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/cs.js +15 -0
  303. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/da.js +15 -0
  304. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/de.js +15 -0
  305. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/el.js +15 -0
  306. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/es.js +15 -0
  307. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/eu.js +15 -0
  308. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/fa.js +15 -0
  309. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/fi.js +15 -0
  310. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/fr_FR.js +15 -0
  311. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/he_IL.js +15 -0
  312. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/hi.js +15 -0
  313. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/hr.js +15 -0
  314. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/hu_HU.js +15 -0
  315. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/id.js +15 -0
  316. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/it.js +15 -0
  317. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ja.js +15 -0
  318. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/kk.js +15 -0
  319. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ko_KR.js +15 -0
  320. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ms.js +15 -0
  321. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/nb_NO.js +15 -0
  322. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/nl.js +15 -0
  323. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/pl.js +15 -0
  324. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/pt_BR.js +15 -0
  325. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/pt_PT.js +15 -0
  326. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ro.js +15 -0
  327. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ru.js +15 -0
  328. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/sk.js +15 -0
  329. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/sl_SI.js +15 -0
  330. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/sv_SE.js +15 -0
  331. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/th_TH.js +15 -0
  332. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/tr.js +15 -0
  333. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/uk.js +15 -0
  334. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/vi.js +15 -0
  335. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/zh_CN.js +15 -0
  336. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/zh_TW.js +15 -0
  337. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/license.txt +5 -0
  338. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/plugin.js +10 -0
  339. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/plugin.min.js +10 -0
  340. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/readme.txt +10 -0
  341. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/version.txt +1 -0
  342. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advlist/index.js +13 -0
  343. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advlist/plugin.js +264 -0
  344. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advlist/plugin.min.js +9 -0
  345. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/anchor/index.js +13 -0
  346. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/anchor/plugin.js +219 -0
  347. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/anchor/plugin.min.js +9 -0
  348. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autolink/index.js +13 -0
  349. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autolink/plugin.js +233 -0
  350. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autolink/plugin.min.js +9 -0
  351. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autoresize/index.js +13 -0
  352. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autoresize/plugin.js +197 -0
  353. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autoresize/plugin.min.js +9 -0
  354. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autosave/index.js +13 -0
  355. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autosave/plugin.js +238 -0
  356. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autosave/plugin.min.js +9 -0
  357. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/charmap/index.js +13 -0
  358. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/charmap/plugin.js +1663 -0
  359. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/charmap/plugin.min.js +9 -0
  360. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/code/index.js +13 -0
  361. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/code/plugin.js +90 -0
  362. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/code/plugin.min.js +9 -0
  363. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/codesample/index.js +13 -0
  364. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/codesample/plugin.js +2468 -0
  365. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/codesample/plugin.min.js +9 -0
  366. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/directionality/index.js +13 -0
  367. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/directionality/plugin.js +400 -0
  368. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/directionality/plugin.min.js +9 -0
  369. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/index.js +13 -0
  370. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojiimages.js +7 -0
  371. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojiimages.min.js +9 -0
  372. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojis.js +7 -0
  373. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojis.min.js +8 -0
  374. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/plugin.js +600 -0
  375. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/plugin.min.js +9 -0
  376. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/fullscreen/index.js +13 -0
  377. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/fullscreen/plugin.js +1201 -0
  378. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/fullscreen/plugin.min.js +9 -0
  379. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/index.js +13 -0
  380. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ar.js +96 -0
  381. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/bg_BG.js +96 -0
  382. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ca.js +96 -0
  383. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/cs.js +96 -0
  384. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/da.js +96 -0
  385. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/de.js +96 -0
  386. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/el.js +96 -0
  387. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/en.js +96 -0
  388. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/es.js +96 -0
  389. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/eu.js +96 -0
  390. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/fa.js +96 -0
  391. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/fi.js +96 -0
  392. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/fr_FR.js +96 -0
  393. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/he_IL.js +96 -0
  394. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/hi.js +96 -0
  395. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/hr.js +96 -0
  396. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/hu_HU.js +96 -0
  397. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/id.js +96 -0
  398. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/it.js +96 -0
  399. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ja.js +96 -0
  400. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/kk.js +96 -0
  401. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ko_KR.js +96 -0
  402. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ms.js +96 -0
  403. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/nb_NO.js +96 -0
  404. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/nl.js +96 -0
  405. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/pl.js +96 -0
  406. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/pt_BR.js +96 -0
  407. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/pt_PT.js +96 -0
  408. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ro.js +96 -0
  409. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ru.js +96 -0
  410. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/sk.js +96 -0
  411. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/sl_SI.js +96 -0
  412. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/sv_SE.js +96 -0
  413. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/th_TH.js +96 -0
  414. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/tr.js +96 -0
  415. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/uk.js +96 -0
  416. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/vi.js +96 -0
  417. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/zh_CN.js +90 -0
  418. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/zh_TW.js +96 -0
  419. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/plugin.js +898 -0
  420. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/plugin.min.js +9 -0
  421. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/image/index.js +13 -0
  422. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/image/plugin.js +1509 -0
  423. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/image/plugin.min.js +9 -0
  424. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/importcss/index.js +13 -0
  425. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/importcss/plugin.js +349 -0
  426. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/importcss/plugin.min.js +9 -0
  427. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/insertdatetime/index.js +13 -0
  428. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/insertdatetime/plugin.js +192 -0
  429. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/insertdatetime/plugin.min.js +9 -0
  430. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/link/index.js +13 -0
  431. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/link/plugin.js +1246 -0
  432. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/link/plugin.min.js +9 -0
  433. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/lists/index.js +13 -0
  434. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/lists/plugin.js +1953 -0
  435. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/lists/plugin.min.js +9 -0
  436. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/media/index.js +13 -0
  437. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/media/plugin.js +1240 -0
  438. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/media/plugin.min.js +9 -0
  439. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/nonbreaking/index.js +13 -0
  440. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/nonbreaking/plugin.js +128 -0
  441. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/nonbreaking/plugin.min.js +9 -0
  442. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/pagebreak/index.js +13 -0
  443. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/pagebreak/plugin.js +122 -0
  444. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/pagebreak/plugin.min.js +9 -0
  445. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/CHANGELOG.md +402 -0
  446. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/js/wordimport.js +3498 -0
  447. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ar.js +20 -0
  448. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/bg_BG.js +20 -0
  449. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ca.js +20 -0
  450. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/cs.js +20 -0
  451. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/da.js +20 -0
  452. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/de.js +20 -0
  453. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/el.js +20 -0
  454. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/es.js +20 -0
  455. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/eu.js +20 -0
  456. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/fa.js +20 -0
  457. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/fi.js +20 -0
  458. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/fr_FR.js +20 -0
  459. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/he_IL.js +20 -0
  460. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/hi.js +20 -0
  461. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/hr.js +20 -0
  462. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/hu_HU.js +20 -0
  463. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/id.js +20 -0
  464. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/it.js +20 -0
  465. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ja.js +20 -0
  466. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/kk.js +20 -0
  467. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ko_KR.js +20 -0
  468. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ms.js +20 -0
  469. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/nb_NO.js +20 -0
  470. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/nl.js +20 -0
  471. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/pl.js +20 -0
  472. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/pt_BR.js +20 -0
  473. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/pt_PT.js +20 -0
  474. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ro.js +20 -0
  475. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ru.js +20 -0
  476. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/sk.js +20 -0
  477. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/sl_SI.js +20 -0
  478. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/sv_SE.js +20 -0
  479. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/th_TH.js +20 -0
  480. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/tr.js +20 -0
  481. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/uk.js +20 -0
  482. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/vi.js +20 -0
  483. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/zh_CN.js +20 -0
  484. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/zh_TW.js +20 -0
  485. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/license.txt +5 -0
  486. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/plugin.js +10 -0
  487. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/plugin.min.js +10 -0
  488. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/readme.txt +10 -0
  489. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/version.txt +1 -0
  490. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/preview/index.js +13 -0
  491. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/preview/plugin.js +102 -0
  492. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/preview/plugin.min.js +9 -0
  493. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/quickbars/index.js +13 -0
  494. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/quickbars/plugin.js +443 -0
  495. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/quickbars/plugin.min.js +9 -0
  496. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/save/index.js +13 -0
  497. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/save/plugin.js +123 -0
  498. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/save/plugin.min.js +9 -0
  499. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/searchreplace/index.js +13 -0
  500. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/searchreplace/plugin.js +1098 -0
  501. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/searchreplace/plugin.min.js +9 -0
  502. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/table/index.js +13 -0
  503. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/table/plugin.js +3467 -0
  504. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/table/plugin.min.js +9 -0
  505. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/template/index.js +13 -0
  506. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/template/plugin.js +572 -0
  507. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/template/plugin.min.js +9 -0
  508. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualblocks/index.js +13 -0
  509. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualblocks/plugin.js +103 -0
  510. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualblocks/plugin.min.js +9 -0
  511. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualchars/index.js +13 -0
  512. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualchars/plugin.js +565 -0
  513. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualchars/plugin.min.js +9 -0
  514. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/wordcount/index.js +13 -0
  515. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/wordcount/plugin.js +410 -0
  516. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/wordcount/plugin.min.js +9 -0
  517. package/src/sap/ui/richtexteditor/js/tiny_mce6/readme.txt +12 -0
  518. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/dark/content.css +72 -0
  519. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/dark/content.min.css +7 -0
  520. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/default/content.css +67 -0
  521. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/default/content.min.css +7 -0
  522. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/document/content.css +72 -0
  523. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/document/content.min.css +7 -0
  524. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5/content.css +67 -0
  525. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5/content.min.css +7 -0
  526. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5-dark/content.css +72 -0
  527. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5-dark/content.min.css +7 -0
  528. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/writer/content.css +68 -0
  529. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/writer/content.min.css +7 -0
  530. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.css +791 -0
  531. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.inline.css +785 -0
  532. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.inline.min.css +7 -0
  533. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.min.css +7 -0
  534. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.css +3694 -0
  535. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.min.css +7 -0
  536. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.shadowdom.css +36 -0
  537. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.shadowdom.min.css +7 -0
  538. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.css +772 -0
  539. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.inline.css +785 -0
  540. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.inline.min.css +7 -0
  541. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.min.css +7 -0
  542. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.css +3697 -0
  543. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.min.css +7 -0
  544. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.shadowdom.css +36 -0
  545. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
  546. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.css +791 -0
  547. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.inline.css +785 -0
  548. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.inline.min.css +7 -0
  549. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.min.css +7 -0
  550. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.css +3788 -0
  551. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.min.css +7 -0
  552. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.shadowdom.css +36 -0
  553. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.shadowdom.min.css +7 -0
  554. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.css +772 -0
  555. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.inline.css +785 -0
  556. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.inline.min.css +7 -0
  557. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.min.css +7 -0
  558. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.css +3788 -0
  559. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.min.css +7 -0
  560. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.shadowdom.css +36 -0
  561. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +7 -0
  562. package/src/sap/ui/richtexteditor/js/tiny_mce6/themes/silver/index.js +13 -0
  563. package/src/sap/ui/richtexteditor/js/tiny_mce6/themes/silver/theme.js +30172 -0
  564. package/src/sap/ui/richtexteditor/js/tiny_mce6/themes/silver/theme.min.js +9 -0
  565. package/src/sap/ui/richtexteditor/js/tiny_mce6/tinymce.d.ts +3206 -0
  566. package/src/sap/ui/richtexteditor/js/tiny_mce6/tinymce.js +31303 -0
  567. package/src/sap/ui/richtexteditor/js/tiny_mce6/tinymce.min.js +9 -0
  568. package/src/sap/ui/richtexteditor/js/tiny_mce6/version.txt +1 -0
  569. package/src/sap/ui/richtexteditor/library.js +64 -27
  570. package/src/sap/ui/richtexteditor/messagebundle_ar.properties +54 -0
  571. package/src/sap/ui/richtexteditor/messagebundle_bg.properties +54 -0
  572. package/src/sap/ui/richtexteditor/messagebundle_ca.properties +54 -0
  573. package/src/sap/ui/richtexteditor/messagebundle_cnr.properties +105 -0
  574. package/src/sap/ui/richtexteditor/messagebundle_cs.properties +54 -0
  575. package/src/sap/ui/richtexteditor/messagebundle_cy.properties +54 -0
  576. package/src/sap/ui/richtexteditor/messagebundle_da.properties +54 -0
  577. package/src/sap/ui/richtexteditor/messagebundle_de.properties +54 -0
  578. package/src/sap/ui/richtexteditor/messagebundle_el.properties +54 -0
  579. package/src/sap/ui/richtexteditor/messagebundle_en.properties +54 -0
  580. package/src/sap/ui/richtexteditor/messagebundle_en_GB.properties +54 -0
  581. package/src/sap/ui/richtexteditor/messagebundle_en_US_saprigi.properties +106 -52
  582. package/src/sap/ui/richtexteditor/messagebundle_es.properties +54 -0
  583. package/src/sap/ui/richtexteditor/messagebundle_es_MX.properties +54 -0
  584. package/src/sap/ui/richtexteditor/messagebundle_et.properties +54 -0
  585. package/src/sap/ui/richtexteditor/messagebundle_fi.properties +54 -0
  586. package/src/sap/ui/richtexteditor/messagebundle_fr.properties +54 -0
  587. package/src/sap/ui/richtexteditor/messagebundle_fr_CA.properties +54 -0
  588. package/src/sap/ui/richtexteditor/messagebundle_hi.properties +54 -0
  589. package/src/sap/ui/richtexteditor/messagebundle_hr.properties +54 -0
  590. package/src/sap/ui/richtexteditor/messagebundle_hu.properties +54 -0
  591. package/src/sap/ui/richtexteditor/messagebundle_id.properties +54 -0
  592. package/src/sap/ui/richtexteditor/messagebundle_it.properties +54 -0
  593. package/src/sap/ui/richtexteditor/messagebundle_iw.properties +54 -0
  594. package/src/sap/ui/richtexteditor/messagebundle_ja.properties +54 -0
  595. package/src/sap/ui/richtexteditor/messagebundle_kk.properties +54 -0
  596. package/src/sap/ui/richtexteditor/messagebundle_ko.properties +54 -0
  597. package/src/sap/ui/richtexteditor/messagebundle_lt.properties +54 -0
  598. package/src/sap/ui/richtexteditor/messagebundle_lv.properties +54 -0
  599. package/src/sap/ui/richtexteditor/messagebundle_ms.properties +54 -0
  600. package/src/sap/ui/richtexteditor/messagebundle_nl.properties +54 -0
  601. package/src/sap/ui/richtexteditor/messagebundle_no.properties +54 -0
  602. package/src/sap/ui/richtexteditor/messagebundle_pl.properties +54 -0
  603. package/src/sap/ui/richtexteditor/messagebundle_pt.properties +54 -0
  604. package/src/sap/ui/richtexteditor/messagebundle_pt_PT.properties +54 -0
  605. package/src/sap/ui/richtexteditor/messagebundle_ro.properties +54 -0
  606. package/src/sap/ui/richtexteditor/messagebundle_ru.properties +54 -0
  607. package/src/sap/ui/richtexteditor/messagebundle_sh.properties +54 -0
  608. package/src/sap/ui/richtexteditor/messagebundle_sk.properties +54 -0
  609. package/src/sap/ui/richtexteditor/messagebundle_sl.properties +54 -0
  610. package/src/sap/ui/richtexteditor/messagebundle_sr.properties +54 -0
  611. package/src/sap/ui/richtexteditor/messagebundle_sv.properties +54 -0
  612. package/src/sap/ui/richtexteditor/messagebundle_th.properties +54 -0
  613. package/src/sap/ui/richtexteditor/messagebundle_tr.properties +54 -0
  614. package/src/sap/ui/richtexteditor/messagebundle_uk.properties +54 -0
  615. package/src/sap/ui/richtexteditor/messagebundle_vi.properties +54 -0
  616. package/src/sap/ui/richtexteditor/messagebundle_zh_CN.properties +54 -0
  617. package/src/sap/ui/richtexteditor/messagebundle_zh_TW.properties +54 -0
  618. package/src/sap/ui/richtexteditor/themes/base/RichTextEditor.less +25 -84
  619. package/src/sap/ui/richtexteditor/themes/sap_belize/RichTextEditor.less +33 -0
  620. package/src/sap/ui/richtexteditor/themes/sap_belize/library.source.less +3 -1
  621. package/src/sap/ui/richtexteditor/themes/sap_belize_hcb/RichTextEditor.less +29 -0
  622. package/src/sap/ui/richtexteditor/themes/sap_belize_hcb/library.source.less +2 -0
  623. package/src/sap/ui/richtexteditor/themes/sap_belize_hcw/RichTextEditor.less +30 -0
  624. package/src/sap/ui/richtexteditor/themes/sap_belize_hcw/library.source.less +2 -0
  625. package/src/sap/ui/richtexteditor/themes/sap_fiori_3/RichTextEditor.less +4 -5
  626. package/src/sap/ui/richtexteditor/themes/sap_fiori_3_dark/RichTextEditor.less +4 -5
  627. package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcb/RichTextEditor.less +4 -5
  628. package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcw/RichTextEditor.less +4 -5
  629. package/src/sap/ui/richtexteditor/themes/sap_horizon/RichTextEditor.less +15 -30
@@ -1,8 +1,8 @@
1
- /* Ephox advanced code plugin
1
+ /*!
2
+ * Tiny Advanced Code Editor plugin
2
3
  *
3
- * Copyright 2010-2016 Ephox Corporation. All rights reserved.
4
+ * Copyright 2010-2021 Tiny Technologies, Inc. All rights reserved.
4
5
  *
5
- * Version: 2.2.0-140
6
+ * Version: 2.3.2-155
6
7
  */
7
-
8
- !function(d){"use strict";var n,t,r,e={},o={exports:e};t=e,r=o,n=void 0,function(e){"object"==typeof t&&void 0!==r?r.exports=e():"function"==typeof n&&n.amd?n([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=e()}(function(){return function i(u,c,s){function f(n,e){if(!c[n]){if(!u[n]){var t=!1;if(!e&&t)return t(n,!0);if(a)return a(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var o=c[n]={exports:{}};u[n][0].call(o.exports,function(e){return f(u[n][1][e]||e)},o,o.exports,i,u,c,s)}return c[n].exports}for(var a=!1,e=0;e<s.length;e++)f(s[e]);return f}({1:[function(e,n,t){var r,o,i=n.exports={};function u(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function s(n){if(r===setTimeout)return setTimeout(n,0);if((r===u||!r)&&setTimeout)return r=setTimeout,setTimeout(n,0);try{return r(n,0)}catch(e){try{return r.call(null,n,0)}catch(e){return r.call(this,n,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:u}catch(e){r=u}try{o="function"==typeof clearTimeout?clearTimeout:c}catch(e){o=c}}();var f,a=[],l=!1,d=-1;function m(){l&&f&&(l=!1,f.length?a=f.concat(a):d=-1,a.length&&p())}function p(){if(!l){var e=s(m);l=!0;for(var n=a.length;n;){for(f=a,a=[];++d<n;)f&&f[d].run();d=-1,n=a.length}f=null,l=!1,function(n){if(o===clearTimeout)return clearTimeout(n);if((o===c||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(n);try{o(n)}catch(e){try{return o.call(null,n)}catch(e){return o.call(this,n)}}}(e)}}function h(e,n){this.fun=e,this.array=n}function v(){}i.nextTick=function(e){var n=new Array(arguments.length-1);if(1<arguments.length)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];a.push(new h(e,n)),1!==a.length||l||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],2:[function(e,l,n){(function(t){!function(e){var n=setTimeout;function r(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],a(e,this)}function o(t,r){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,i._immediateFn(function(){var e=1===t._state?r.onFulfilled:r.onRejected;if(null!==e){var n;try{n=e(t._value)}catch(e){return void c(r.promise,e)}u(r.promise,n)}else(1===t._state?u:c)(r.promise,t._value)})):t._deferreds.push(r)}function u(n,e){try{if(e===n)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if(e instanceof i)return n._state=3,n._value=e,void s(n);if("function"==typeof t)return void a((r=t,o=e,function(){r.apply(o,arguments)}),n)}n._state=1,n._value=e,s(n)}catch(e){c(n,e)}var r,o}function c(e,n){e._state=2,e._value=n,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var n=0,t=e._deferreds.length;n<t;n++)o(e,e._deferreds[n]);e._deferreds=null}function f(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}function a(e,n){var t=!1;try{e(function(e){t||(t=!0,u(n,e))},function(e){t||(t=!0,c(n,e))})}catch(e){if(t)return;t=!0,c(n,e)}}i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,n){var t=new this.constructor(r);return o(this,new f(e,n,t)),t},i.all=function(e){var c=Array.prototype.slice.call(e);return new i(function(r,o){if(0===c.length)return r([]);var i=c.length;function u(n,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void t.call(e,function(e){u(n,e)},o)}c[n]=e,0==--i&&r(c)}catch(e){o(e)}}for(var e=0;e<c.length;e++)u(e,c[e])})},i.resolve=function(n){return n&&"object"==typeof n&&n.constructor===i?n:new i(function(e){e(n)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(o){return new i(function(e,n){for(var t=0,r=o.length;t<r;t++)o[t].then(e,n)})},i._immediateFn="function"==typeof t?function(e){t(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},void 0!==l&&l.exports?l.exports=i:e.Promise||(e.Promise=i)}(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(s,e,f){(function(e,n){var r=s("process/browser.js").nextTick,t=Function.prototype.apply,o=Array.prototype.slice,i={},u=0;function c(e,n){this._id=e,this._clearFn=n}f.setTimeout=function(){return new c(t.call(setTimeout,window,arguments),clearTimeout)},f.setInterval=function(){return new c(t.call(setInterval,window,arguments),clearInterval)},f.clearTimeout=f.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},f.enroll=function(e,n){clearTimeout(e._idleTimeoutId),e._idleTimeout=n},f.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},f._unrefActive=f.active=function(e){clearTimeout(e._idleTimeoutId);var n=e._idleTimeout;0<=n&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},n))},f.setImmediate="function"==typeof e?e:function(e){var n=u++,t=!(arguments.length<2)&&o.call(arguments,1);return i[n]=!0,r(function(){i[n]&&(t?e.apply(null,t):e.call(null),f.clearImmediate(n))}),n},f.clearImmediate="function"==typeof n?n:function(e){delete i[e]}}).call(this,s("timers").setImmediate,s("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,n,t){var r=e("promise-polyfill"),o="undefined"!=typeof window?window:Function("return this;")();n.exports={boltExport:o.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)});var i,u,c,s,f,a=o.exports.boltExport,l=function(){},y=function(e){return function(){return e}},m=y(!1),p=y(!0),h=function(){return v},v=(i=function(e){return e.isNone()},s={fold:function(e,n){return e()},is:m,isSome:m,isNone:p,getOr:c=function(e){return e},getOrThunk:u=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:y(null),getOrUndefined:y(void 0),or:c,orThunk:u,map:h,each:l,bind:h,exists:m,forall:p,filter:h,equals:i,equals_:i,toArray:function(){return[]},toString:y("none()")},Object.freeze&&Object.freeze(s),s),g=function(t){var e=y(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:p,isNone:m,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return g(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:v},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(m,function(e){return n(t,e)})}};return o},w={some:g,none:h,from:function(e){return null==e?v:g(e)}},T=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:y(e)}},_={fromHtml:function(e,n){var t=(n||d.document).createElement("div");if(t.innerHTML=e,!t.hasChildNodes()||1<t.childNodes.length)throw d.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return T(t.childNodes[0])},fromTag:function(e,n){var t=(n||d.document).createElement(e);return T(t)},fromText:function(e,n){var t=(n||d.document).createTextNode(e);return T(t)},fromDom:T,fromPoint:function(e,n,t){var r=e.dom();return w.from(r.elementFromPoint(n,t)).map(T)}},O=function(){var t={},c={};tinymce.Resource={add:function(e,n){c[e]&&(c[e](n),delete c[e]),t[e]=a.resolve(n)},load:function(r,o){var i='Script at URL "'+o+'" failed to load',u='Script at URL "'+o+"\" did not call `tinymce.Resource.add('"+r+"', data)` within 1 second";if(void 0!==t[r])return t[r];var e=new a(function(e,n){var t=function(e,n,t){void 0===t&&(t=1e3);var r=!1,o=null,i=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r||(r=!0,null!==o&&(d.clearTimeout(o),o=null),t.apply(null,e))}},u=i(e),c=i(n);return{reject:c,resolve:u,start:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r||(o=d.setTimeout(function(){return c.apply(null,e)},t))}}}(e,n);c[r]=t.resolve,tinymce.ScriptLoader.loadScripts([o],function(){return t.start(u)},function(){return t.reject(i)})});return t[r]=e}}},E=function(e,n){return tinymce.Resource||O(),tinymce.Resource.load(e,n)},N=function(t,r){return new a(function(e,n){(r||tinymce.DOM.styleSheetLoader).load(t,e,n)})},x=(f="function",function(e){return function(e){if(null===e)return"null";var n=typeof e;return"object"===n&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===n&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":n}(e)===f}),S=Array.prototype.slice,b=(x(Array.from)&&Array.from,function(e,n,t){return 0!=(e.compareDocumentPosition(n)&t)}),I=function(e,n){return b(e,n,d.Node.DOCUMENT_POSITION_CONTAINED_BY)},R=function(e){var n=e,t=function(){return n};return{get:t,set:function(e){n=e},clone:function(){return R(t())}}},D=function(){return A(0,0)},A=function(e,n){return{major:e,minor:n}},C={nu:A,detect:function(e,n){var t=String(n).toLowerCase();return 0===e.length?D():function(e,n){var t=function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(r.test(n))return r}}(e,n);if(!t)return{major:0,minor:0};var r=function(e){return Number(n.replace(t,"$"+e))};return A(r(1),r(2))}(e,t)},unknown:D},L="Edge",k="Chrome",F="Opera",M="Firefox",j="Safari",P=function(e,n){return function(){return n===e}},U=function(e){var n=e.current;return{current:n,version:e.version,isEdge:P(L,n),isChrome:P(k,n),isIE:P("IE",n),isOpera:P(F,n),isFirefox:P(M,n),isSafari:P(j,n)}},W={unknown:function(){return U({current:void 0,version:C.unknown()})},nu:U,edge:y(L),chrome:y(k),ie:y("IE"),opera:y(F),firefox:y(M),safari:y(j)},B="Windows",H="Android",V="Solaris",X="FreeBSD",q="ChromeOS",G=function(e,n){return function(){return n===e}},Y=function(e){var n=e.current;return{current:n,version:e.version,isWindows:G(B,n),isiOS:G("iOS",n),isAndroid:G(H,n),isOSX:G("OSX",n),isLinux:G("Linux",n),isSolaris:G(V,n),isFreeBSD:G(X,n),isChromeOS:G(q,n)}},z={unknown:function(){return Y({current:void 0,version:C.unknown()})},nu:Y,windows:y(B),ios:y("iOS"),android:y(H),linux:y("Linux"),osx:y("OSX"),solaris:y(V),freebsd:y(X),chromeos:y(q)},$=function(e,n){var t=String(n).toLowerCase();return function(e,n){for(var t=0,r=e.length;t<r;t++){var o=e[t];if(n(o,t))return w.some(o)}return w.none()}(e,function(e){return e.search(t)})},J=function(e,t){return $(e,t).map(function(e){var n=C.detect(e.versionRegexes,t);return{current:e.name,version:n}})},K=function(e,t){return $(e,t).map(function(e){var n=C.detect(e.versionRegexes,t);return{current:e.name,version:n}})},Q=function(e,n){return-1!==e.indexOf(n)},Z=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ee=function(n){return function(e){return Q(e,n)}},ne=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Q(e,"edge/")&&Q(e,"chrome")&&Q(e,"safari")&&Q(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Z],search:function(e){return Q(e,"chrome")&&!Q(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Q(e,"msie")||Q(e,"trident")}},{name:"Opera",versionRegexes:[Z,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ee("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ee("firefox")},{name:"Safari",versionRegexes:[Z,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Q(e,"safari")||Q(e,"mobile/"))&&Q(e,"applewebkit")}}],te=[{name:"Windows",search:ee("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Q(e,"iphone")||Q(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ee("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ee("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ee("linux"),versionRegexes:[]},{name:"Solaris",search:ee("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ee("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ee("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],re={browsers:y(ne),oses:y(te)},oe=R(function(e,n){var t,r,o,i,u,c,s,f,a,l,d,m,p=re.browsers(),h=re.oses(),v=J(p,e).fold(W.unknown,W.nu),g=K(h,e).fold(z.unknown,z.nu);return{browser:v,os:g,deviceType:(r=v,o=e,i=n,u=(t=g).isiOS()&&!0===/ipad/i.test(o),c=t.isiOS()&&!u,s=t.isiOS()||t.isAndroid(),f=s||i("(pointer:coarse)"),a=u||!c&&s&&i("(min-device-width:768px)"),l=c||s&&!a,d=r.isSafari()&&t.isiOS()&&!1===/safari/i.test(o),m=!l&&!a&&!d,{isiPad:y(u),isiPhone:y(c),isTablet:y(a),isPhone:y(l),isTouch:y(f),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:y(d),isDesktop:y(m)})}}(d.navigator.userAgent,function(e){return d.window.matchMedia(e).matches})),ie=(d.Node.ATTRIBUTE_NODE,d.Node.CDATA_SECTION_NODE,d.Node.COMMENT_NODE,d.Node.DOCUMENT_NODE,d.Node.DOCUMENT_TYPE_NODE,d.Node.DOCUMENT_FRAGMENT_NODE,d.Node.ELEMENT_NODE,d.Node.TEXT_NODE,d.Node.PROCESSING_INSTRUCTION_NODE,d.Node.ENTITY_REFERENCE_NODE,d.Node.ENTITY_NODE,d.Node.NOTATION_NODE,oe.get().browser.isIE(),function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n]}("element","offset"),x(d.Element.prototype.attachShadow)&&x(d.Node.prototype.getRootNode)),ue=ie?function(e){return _.fromDom(e.dom().getRootNode())}:function(e){return n=e,_.fromDom(n.dom().ownerDocument);var n};var ce={},se=function(n){return w.from(tinymce.get).bind(function(e){return w.from(e(n))})},fe=function(e,n,t,r){void 0===r&&(r="");var o,i,u,c=se(t.editorId).map(function(e){var n,t=ue(_.fromDom(e.getElement()));return(n=t,11===n.dom().nodeType?n:_.fromDom(n.dom().body)).dom()}).getOrUndefined(),s=(o=e,i=c,{completeAfter:u=function(e,n){return n&&!n()||d.setTimeout(function(){e.state.completionActive||e.showHint({completeSingle:!1,container:i})},100),o.Pass},completeIfAfterLt:function(n){return u(n,function(){var e=n.getCursor();return"<"===n.getRange(o.Pos(e.line,e.ch-1),e)})},completeIfInTag:function(n){return u(n,function(){var e=n.getTokenAt(n.getCursor());return!!("string"!==e.type||/['"]/.test(e.string.charAt(e.string.length-1))&&1!==e.string.length)&&o.innerMode(n.getMode(),e.state).state.tagName})}}),f={lineWrapping:t.lineWrapping,lineNumbers:t.lineNumbers,foldGutter:t.foldGutter,theme:t.theme,direction:t.direction,matchTags:{bothTags:!0},keyMap:"sublime",gutters:t.gutter?["CodeMirror-linenumbers","CodeMirror-foldgutter"]:[],extraKeys:{"Alt-F":"findPersistent","Ctrl-J":"toMatchingTag","Ctrl-B":"selectNextOccurrence","'<'":s.completeAfter,"'/'":s.completeIfAfterLt,"' '":s.completeIfInTag,"'='":s.completeIfInTag,"Ctrl-Q":function(e){e.foldCode(e.getCursor())}},mode:"text/html",value:r},a=e(n,f),l=function(e){27!==e.keyCode&&e.stopPropagation()};n.addEventListener("keyup",l),n.addEventListener("keydown",l),n.addEventListener("keypress",l);return d.setTimeout(function(){a&&(a.refresh(),a.focus())},200),{cmi:a,unbind:function(){n.removeEventListener("keyup",l),n.removeEventListener("keydown",l),n.removeEventListener("keypress",l)}}},ae=function(e,n,t){return a.all([function(n,t){if(!0===ce[t])return a.resolve();var e=se(t),r=e.bind(function(e){var n;return w.from(null===(n=e.ui)||void 0===n?void 0:n.styleSheetLoader)}).getOr(tinymce.DOM.styleSheetLoader);return e.each(function(e){e.on("remove",function(){r.unload&&r.unload(n),delete ce[t]})}),ce[t]=!0,N(n,r)}(n,t),E("tinymce.plugins.advcode.CodeMirror",e)]).then(function(e){e[0];return(0,e[1])()})},le=function(o,i){return new a(function(e){o.style.width="100%",o.parentElement.classList.add("mce-codemirror"),e(ae(i.codeMirrorScriptUrl,i.codeMirrorCssUrl,i.editorId).then(function(e){var n=fe(e,o,i),t=n.cmi,r=n.unbind;return{getValue:function(){return t.doc.getValue()},setValue:function(e){return t.doc.setValue(e)},destroy:function(){return r()}}}))})};tinymce.Resource.add("tinymce.plugins.advcode.customeditor",le)}(window);
8
+ !function(){"use strict";function f(){}function i(e){return function(){return e}}var u=i(!1),c=i(!0),e=function(){return l},l={fold:function(e,t){return e()},is:u,isSome:u,isNone:c,getOr:r,getOrThunk:n,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void 0),or:r,orThunk:n,map:e,each:f,bind:e,exists:u,forall:c,filter:e,equals:t,equals_:t,toArray:function(){return[]},toString:i("none()")};function t(e){return e.isNone()}function n(e){return e()}function r(e){return e}function o(e,t,n){!function(e,t,n){if(!(E(n)||I(n)||x(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")}(e.dom,t,n)}function a(e,t){return function(e,t,n){n=function(e,t){t=function(e,t){t=e.dom.getAttribute(t);return null===t?void 0:t}(e,t);return void 0===t||""===t?[]:t.split(" ")}(e,t).concat([n]);return o(e,t,n.join(" ")),!0}(e,"class",t)}function s(e){return N(e)?e:(e=e,C.fromDom(e.dom.ownerDocument))}function d(e){return O(e)?e:C.fromDom(s(e).dom.body)}function m(){return F(C.fromDom(document))}function p(e,t,n){if(!E(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);var r;void 0!==(r=e).style&&L(r.style.getPropertyValue)&&e.style.setProperty(t,n)}var h,v,y,g,w,T=function(n){function e(){return o}function t(e){return e(n)}var r=i(n),o={fold:function(e,t){return t(n)},is:function(e){return n===e},isSome:c,isNone:u,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:e,orThunk:e,map:function(e){return T(e(n))},each:function(e){e(n)},bind:t,exists:t,forall:t,filter:function(e){return e(n)?o:l},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(e){return e.is(n)},equals_:function(e,t){return e.fold(u,function(e){return t(n,e)})}};return o},_=function(e){return null==e?l:T(e)},b=function(t){return function(e){return typeof e===t}},E=(h="string",function(e){return e=typeof(t=e),(null===t?"null":"object"==e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"==e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e)===h;var t}),I=b("boolean"),L=b("function"),x=b("number"),e=("undefined"!=typeof window||Function("return this;")(),function(t){return function(e){return e.dom.nodeType===t}}),A=e(1),N=e(9),O=e(11),j=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},C={fromHtml:function(e,t){t=(t||document).createElement("div");if(t.innerHTML=e,!t.hasChildNodes()||1<t.childNodes.length)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return j(t.childNodes[0])},fromTag:function(e,t){e=(t||document).createElement(e);return j(e)},fromText:function(e,t){e=(t||document).createTextNode(e);return j(e)},fromDom:j,fromPoint:function(e,t,n){return _(e.dom.elementFromPoint(t,n)).map(j)}},S=L(Element.prototype.attachShadow)&&L(Node.prototype.getRootNode)?function(e){return C.fromDom(e.dom.getRootNode())}:s,F=function(e){e=e.dom.body;if(null==e)throw new Error("Body is not available yet");return C.fromDom(e)},b={},e={exports:b};y=b,g=e,w=v=void 0,function(e){"object"==typeof y&&void 0!==g?g.exports=e():"function"==typeof v&&v.amd?v([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=e()}(function(){return function r(o,i,u){function c(t,e){if(!i[t]){if(!o[t]){var n="function"==typeof w&&w;if(!e&&n)return n(t,!0);if(f)return f(t,!0);throw(n=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",n}n=i[t]={exports:{}},o[t][0].call(n.exports,function(e){return c(o[t][1][e]||e)},n,n.exports,r,o,i,u)}return i[t].exports}for(var f="function"==typeof w&&w,e=0;e<u.length;e++)c(u[e]);return c}({1:[function(e,t,n){var r,o,t=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{o="function"==typeof clearTimeout?clearTimeout:u}catch(e){o=u}}();var f,l=[],a=!1,s=-1;function d(){a&&f&&(a=!1,f.length?l=f.concat(l):s=-1,l.length&&m())}function m(){if(!a){var e=c(d);a=!0;for(var t=l.length;t;){for(f=l,l=[];++s<t;)f&&f[s].run();s=-1,t=l.length}f=null,a=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||a||c(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=h,t.addListener=h,t.once=h,t.off=h,t.removeListener=h,t.removeAllListeners=h,t.emit=h,t.prependListener=h,t.prependOnceListener=h,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],2:[function(e,s,t){(function(t){function r(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],a(e,this)}function o(n,r){for(;3===n._state;)n=n._value;0!==n._state?(n._handled=!0,i._immediateFn(function(){var e,t=1===n._state?r.onFulfilled:r.onRejected;if(null!==t){try{e=t(n._value)}catch(e){return void c(r.promise,e)}u(r.promise,e)}else(1===n._state?u:c)(r.promise,n._value)})):n._deferreds.push(r)}function u(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void f(t);if("function"==typeof n)return void a((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,f(t)}catch(e){c(t,e)}var r,o}function c(e,t){e._state=2,e._value=t,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function a(e,t){var n=!1;try{e(function(e){n||(n=!0,u(t,e))},function(e){n||(n=!0,c(t,e))})}catch(e){if(n)return;n=!0,c(t,e)}}var e,n;e=this,n=setTimeout,i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return o(this,new l(e,t,n)),n},i.all=function(e){var c=Array.prototype.slice.call(e);return new i(function(o,i){if(0===c.length)return o([]);var u=c.length;for(var e=0;e<c.length;e++)!function t(n,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if("function"==typeof r)return void r.call(e,function(e){t(n,e)},i)}c[n]=e,0==--u&&o(c)}catch(e){i(e)}}(e,c[e])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(n){return new i(function(e,t){t(n)})},i.race=function(o){return new i(function(e,t){for(var n=0,r=o.length;n<r;n++)o[n].then(e,t)})},i._immediateFn="function"==typeof t?function(e){t(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},void 0!==s&&s.exports?s.exports=i:e.Promise||(e.Promise=i)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(f,e,l){(function(e,t){var r=f("process/browser.js").nextTick,n=Function.prototype.apply,o=Array.prototype.slice,i={},u=0;function c(e,t){this._id=e,this._clearFn=t}l.setTimeout=function(){return new c(n.call(setTimeout,window,arguments),clearTimeout)},l.setInterval=function(){return new c(n.call(setInterval,window,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},l.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},l.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},l._unrefActive=l.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},l.setImmediate="function"==typeof e?e:function(e){var t=u++,n=!(arguments.length<2)&&o.call(arguments,1);return i[t]=!0,r(function(){i[t]&&(n?e.apply(null,n):e.call(null),l.clearImmediate(t))}),t},l.clearImmediate="function"==typeof t?t:function(e){delete i[e]}}).call(this,f("timers").setImmediate,f("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t,n){var r=e("promise-polyfill"),e="undefined"!=typeof window?window:Function("return this;")();t.exports={boltExport:e.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)});function k(){function c(e,t,n){function r(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o||(o=!0,null!==i&&(clearTimeout(i),i=null),n.apply(null,e))}}void 0===n&&(n=1e3);var o=!1,i=null,e=r(e),u=r(t);return{reject:u,resolve:e,start:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o||(i=setTimeout(function(){return u.apply(null,e)},n))}}}var n={},f={};tinymce.Resource={add:function(e,t){f[e]&&(f[e](t),delete f[e]),n[e]=D.resolve(t)},load:function(r,o){var i='Script at URL "'+o+'" failed to load',u='Script at URL "'+o+"\" did not call `tinymce.Resource.add('"+r+"', data)` within 1 second";if(void 0!==n[r])return n[r];var e=new D(function(e,t){var n=c(e,t);f[r]=n.resolve,tinymce.ScriptLoader.loadScripts([o],function(){return n.start(u)},function(){return n.reject(i)})});return n[r]=e}}}var D=e.exports.boltExport;function P(n,r){function e(e,t){return t&&!t()||setTimeout(function(){e.state.completionActive||e.showHint({completeSingle:!1,container:r})},100),n.Pass}return{completeAfter:e,completeIfAfterLt:function(t){return e(t,function(){var e=t.getCursor();return"<"===t.getRange(n.Pos(e.line,e.ch-1),e)})},completeIfInTag:function(t){return e(t,function(){var e=t.getTokenAt(t.getCursor());return!!("string"!==e.type||/['"]/.test(e.string.charAt(e.string.length-1))&&1!==e.string.length)&&n.innerMode(t.getMode(),e.state).state.tagName})}}}function R(t){return _(tinymce.get).bind(function(e){return _(e(t))})}function M(e,t,n,r){function o(e){27!==e.keyCode&&e.stopPropagation()}void 0===r&&(r="");var i=function(e){var t=R(e).map(function(e){e=S(C.fromDom(e.getElement()));return d(e)}).getOrThunk(m);if(A(t))return{element:t,destroy:f};var n=C.fromTag("div");return e=n,t.dom.appendChild(e.dom),{element:n,destroy:function(){return function(e){e=e.dom;null!==e.parentNode&&e.parentNode.removeChild(e)}(n)}}}(n.editorId),u=P(e,i.element.dom),r={lineWrapping:n.lineWrapping,lineNumbers:n.lineNumbers,foldGutter:n.foldGutter,theme:n.theme,direction:n.direction,matchTags:{bothTags:!0},keyMap:"sublime",gutters:n.gutter?["CodeMirror-linenumbers","CodeMirror-foldgutter"]:[],extraKeys:{"Alt-F":"findPersistent","Ctrl-J":"toMatchingTag","Ctrl-B":"selectNextOccurrence","'<'":u.completeAfter,"'/'":u.completeIfAfterLt,"' '":u.completeIfInTag,"'='":u.completeIfInTag,"Ctrl-Q":function(e){e.foldCode(e.getCursor())}},mode:"text/html",value:r},c=e(t,r);return t.addEventListener("keyup",o),t.addEventListener("keydown",o),t.addEventListener("keypress",o),setTimeout(function(){c.focus(),n.cursor&&c.doc.setCursor(n.cursor)},tinymce.Env.ie?50:0),setTimeout(function(){return c.refresh()},200),{cmi:c,destroy:function(){t.removeEventListener("keyup",o),t.removeEventListener("keydown",o),t.removeEventListener("keypress",o),i.destroy()}}}function U(t,n){if(q[n])return D.resolve();var r,o,e=R(n),i=e.bind(function(e){return _(null===(e=e.ui)||void 0===e?void 0:e.styleSheetLoader)}).getOr(tinymce.DOM.styleSheetLoader);return e.each(function(e){e.on("remove",function(){i.unload&&i.unload(t),delete q[n]})}),q[n]=!0,r=t,o=i,new D(function(e,t){(o||tinymce.DOM.styleSheetLoader).load(r,e,t)})}function V(e,t,n){return D.all([U(t,n),(n="tinymce.plugins.advcode.CodeMirror",e=e,tinymce.Resource||k(),tinymce.Resource.load(n,e))]).then(function(e){e[0];return(0,e[1])()})}function H(n,r){return new D(function(e){var t=C.fromDom(n);!function(e,t,n){e=e.dom;p(e,t,n)}(t,"width","100%"),_(t.dom.parentNode).map(C.fromDom).filter(A).each(function(e){return t="mce-codemirror",void(void 0!==(e=e).dom.classList?e.dom.classList.add(t):a(e,t));var t}),e(V(r.codeMirrorScriptUrl,r.codeMirrorCssUrl,r.editorId).then(function(e){var e=M(e,n,r),t=e.cmi;return{getValue:function(){return t.doc.getValue()},setValue:function(e){return t.doc.setValue(e)},destroy:e.destroy}}))})}var q={};tinymce.Resource.add("tinymce.plugins.advcode.customeditor",H)}();
@@ -1,8 +1,8 @@
1
- /* Ephox advanced code plugin
1
+ /*!
2
+ * Tiny Advanced Code Editor plugin
2
3
  *
3
- * Copyright 2010-2016 Ephox Corporation. All rights reserved.
4
+ * Copyright 2010-2021 Tiny Technologies, Inc. All rights reserved.
4
5
  *
5
- * Version: 2.2.0-140
6
+ * Version: 2.3.2-155
6
7
  */
7
-
8
- !function(d){"use strict";var n,t,r,e={},o={exports:e};t=e,r=o,n=void 0,function(e){"object"==typeof t&&void 0!==r?r.exports=e():"function"==typeof n&&n.amd?n([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=e()}(function(){return function i(u,c,s){function f(n,e){if(!c[n]){if(!u[n]){var t=!1;if(!e&&t)return t(n,!0);if(a)return a(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var o=c[n]={exports:{}};u[n][0].call(o.exports,function(e){return f(u[n][1][e]||e)},o,o.exports,i,u,c,s)}return c[n].exports}for(var a=!1,e=0;e<s.length;e++)f(s[e]);return f}({1:[function(e,n,t){var r,o,i=n.exports={};function u(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function s(n){if(r===setTimeout)return setTimeout(n,0);if((r===u||!r)&&setTimeout)return r=setTimeout,setTimeout(n,0);try{return r(n,0)}catch(e){try{return r.call(null,n,0)}catch(e){return r.call(this,n,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:u}catch(e){r=u}try{o="function"==typeof clearTimeout?clearTimeout:c}catch(e){o=c}}();var f,a=[],l=!1,d=-1;function m(){l&&f&&(l=!1,f.length?a=f.concat(a):d=-1,a.length&&p())}function p(){if(!l){var e=s(m);l=!0;for(var n=a.length;n;){for(f=a,a=[];++d<n;)f&&f[d].run();d=-1,n=a.length}f=null,l=!1,function(n){if(o===clearTimeout)return clearTimeout(n);if((o===c||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(n);try{o(n)}catch(e){try{return o.call(null,n)}catch(e){return o.call(this,n)}}}(e)}}function h(e,n){this.fun=e,this.array=n}function v(){}i.nextTick=function(e){var n=new Array(arguments.length-1);if(1<arguments.length)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];a.push(new h(e,n)),1!==a.length||l||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],2:[function(e,l,n){(function(t){!function(e){var n=setTimeout;function r(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],a(e,this)}function o(t,r){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,i._immediateFn(function(){var e=1===t._state?r.onFulfilled:r.onRejected;if(null!==e){var n;try{n=e(t._value)}catch(e){return void c(r.promise,e)}u(r.promise,n)}else(1===t._state?u:c)(r.promise,t._value)})):t._deferreds.push(r)}function u(n,e){try{if(e===n)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if(e instanceof i)return n._state=3,n._value=e,void s(n);if("function"==typeof t)return void a((r=t,o=e,function(){r.apply(o,arguments)}),n)}n._state=1,n._value=e,s(n)}catch(e){c(n,e)}var r,o}function c(e,n){e._state=2,e._value=n,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var n=0,t=e._deferreds.length;n<t;n++)o(e,e._deferreds[n]);e._deferreds=null}function f(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}function a(e,n){var t=!1;try{e(function(e){t||(t=!0,u(n,e))},function(e){t||(t=!0,c(n,e))})}catch(e){if(t)return;t=!0,c(n,e)}}i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,n){var t=new this.constructor(r);return o(this,new f(e,n,t)),t},i.all=function(e){var c=Array.prototype.slice.call(e);return new i(function(r,o){if(0===c.length)return r([]);var i=c.length;function u(n,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void t.call(e,function(e){u(n,e)},o)}c[n]=e,0==--i&&r(c)}catch(e){o(e)}}for(var e=0;e<c.length;e++)u(e,c[e])})},i.resolve=function(n){return n&&"object"==typeof n&&n.constructor===i?n:new i(function(e){e(n)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(o){return new i(function(e,n){for(var t=0,r=o.length;t<r;t++)o[t].then(e,n)})},i._immediateFn="function"==typeof t?function(e){t(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},void 0!==l&&l.exports?l.exports=i:e.Promise||(e.Promise=i)}(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(s,e,f){(function(e,n){var r=s("process/browser.js").nextTick,t=Function.prototype.apply,o=Array.prototype.slice,i={},u=0;function c(e,n){this._id=e,this._clearFn=n}f.setTimeout=function(){return new c(t.call(setTimeout,window,arguments),clearTimeout)},f.setInterval=function(){return new c(t.call(setInterval,window,arguments),clearInterval)},f.clearTimeout=f.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},f.enroll=function(e,n){clearTimeout(e._idleTimeoutId),e._idleTimeout=n},f.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},f._unrefActive=f.active=function(e){clearTimeout(e._idleTimeoutId);var n=e._idleTimeout;0<=n&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},n))},f.setImmediate="function"==typeof e?e:function(e){var n=u++,t=!(arguments.length<2)&&o.call(arguments,1);return i[n]=!0,r(function(){i[n]&&(t?e.apply(null,t):e.call(null),f.clearImmediate(n))}),n},f.clearImmediate="function"==typeof n?n:function(e){delete i[e]}}).call(this,s("timers").setImmediate,s("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,n,t){var r=e("promise-polyfill"),o="undefined"!=typeof window?window:Function("return this;")();n.exports={boltExport:o.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)});var i,u,c,s,f,a=o.exports.boltExport,l=function(){},y=function(e){return function(){return e}},m=y(!1),p=y(!0),h=function(){return v},v=(i=function(e){return e.isNone()},s={fold:function(e,n){return e()},is:m,isSome:m,isNone:p,getOr:c=function(e){return e},getOrThunk:u=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:y(null),getOrUndefined:y(void 0),or:c,orThunk:u,map:h,each:l,bind:h,exists:m,forall:p,filter:h,equals:i,equals_:i,toArray:function(){return[]},toString:y("none()")},Object.freeze&&Object.freeze(s),s),g=function(t){var e=y(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:p,isNone:m,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return g(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:v},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(m,function(e){return n(t,e)})}};return o},w={some:g,none:h,from:function(e){return null==e?v:g(e)}},T=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:y(e)}},_={fromHtml:function(e,n){var t=(n||d.document).createElement("div");if(t.innerHTML=e,!t.hasChildNodes()||1<t.childNodes.length)throw d.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return T(t.childNodes[0])},fromTag:function(e,n){var t=(n||d.document).createElement(e);return T(t)},fromText:function(e,n){var t=(n||d.document).createTextNode(e);return T(t)},fromDom:T,fromPoint:function(e,n,t){var r=e.dom();return w.from(r.elementFromPoint(n,t)).map(T)}},O=function(){var t={},c={};tinymce.Resource={add:function(e,n){c[e]&&(c[e](n),delete c[e]),t[e]=a.resolve(n)},load:function(r,o){var i='Script at URL "'+o+'" failed to load',u='Script at URL "'+o+"\" did not call `tinymce.Resource.add('"+r+"', data)` within 1 second";if(void 0!==t[r])return t[r];var e=new a(function(e,n){var t=function(e,n,t){void 0===t&&(t=1e3);var r=!1,o=null,i=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r||(r=!0,null!==o&&(d.clearTimeout(o),o=null),t.apply(null,e))}},u=i(e),c=i(n);return{reject:c,resolve:u,start:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r||(o=d.setTimeout(function(){return c.apply(null,e)},t))}}}(e,n);c[r]=t.resolve,tinymce.ScriptLoader.loadScripts([o],function(){return t.start(u)},function(){return t.reject(i)})});return t[r]=e}}},E=function(e,n){return tinymce.Resource||O(),tinymce.Resource.load(e,n)},N=function(t,r){return new a(function(e,n){(r||tinymce.DOM.styleSheetLoader).load(t,e,n)})},x=(f="function",function(e){return function(e){if(null===e)return"null";var n=typeof e;return"object"===n&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===n&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":n}(e)===f}),S=Array.prototype.slice,b=(x(Array.from)&&Array.from,function(e,n,t){return 0!=(e.compareDocumentPosition(n)&t)}),I=function(e,n){return b(e,n,d.Node.DOCUMENT_POSITION_CONTAINED_BY)},R=function(e){var n=e,t=function(){return n};return{get:t,set:function(e){n=e},clone:function(){return R(t())}}},D=function(){return A(0,0)},A=function(e,n){return{major:e,minor:n}},C={nu:A,detect:function(e,n){var t=String(n).toLowerCase();return 0===e.length?D():function(e,n){var t=function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(r.test(n))return r}}(e,n);if(!t)return{major:0,minor:0};var r=function(e){return Number(n.replace(t,"$"+e))};return A(r(1),r(2))}(e,t)},unknown:D},L="Edge",k="Chrome",F="Opera",M="Firefox",j="Safari",P=function(e,n){return function(){return n===e}},U=function(e){var n=e.current;return{current:n,version:e.version,isEdge:P(L,n),isChrome:P(k,n),isIE:P("IE",n),isOpera:P(F,n),isFirefox:P(M,n),isSafari:P(j,n)}},W={unknown:function(){return U({current:void 0,version:C.unknown()})},nu:U,edge:y(L),chrome:y(k),ie:y("IE"),opera:y(F),firefox:y(M),safari:y(j)},B="Windows",H="Android",V="Solaris",X="FreeBSD",q="ChromeOS",G=function(e,n){return function(){return n===e}},Y=function(e){var n=e.current;return{current:n,version:e.version,isWindows:G(B,n),isiOS:G("iOS",n),isAndroid:G(H,n),isOSX:G("OSX",n),isLinux:G("Linux",n),isSolaris:G(V,n),isFreeBSD:G(X,n),isChromeOS:G(q,n)}},z={unknown:function(){return Y({current:void 0,version:C.unknown()})},nu:Y,windows:y(B),ios:y("iOS"),android:y(H),linux:y("Linux"),osx:y("OSX"),solaris:y(V),freebsd:y(X),chromeos:y(q)},$=function(e,n){var t=String(n).toLowerCase();return function(e,n){for(var t=0,r=e.length;t<r;t++){var o=e[t];if(n(o,t))return w.some(o)}return w.none()}(e,function(e){return e.search(t)})},J=function(e,t){return $(e,t).map(function(e){var n=C.detect(e.versionRegexes,t);return{current:e.name,version:n}})},K=function(e,t){return $(e,t).map(function(e){var n=C.detect(e.versionRegexes,t);return{current:e.name,version:n}})},Q=function(e,n){return-1!==e.indexOf(n)},Z=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ee=function(n){return function(e){return Q(e,n)}},ne=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Q(e,"edge/")&&Q(e,"chrome")&&Q(e,"safari")&&Q(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Z],search:function(e){return Q(e,"chrome")&&!Q(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Q(e,"msie")||Q(e,"trident")}},{name:"Opera",versionRegexes:[Z,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ee("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ee("firefox")},{name:"Safari",versionRegexes:[Z,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Q(e,"safari")||Q(e,"mobile/"))&&Q(e,"applewebkit")}}],te=[{name:"Windows",search:ee("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Q(e,"iphone")||Q(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ee("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ee("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ee("linux"),versionRegexes:[]},{name:"Solaris",search:ee("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ee("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ee("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],re={browsers:y(ne),oses:y(te)},oe=R(function(e,n){var t,r,o,i,u,c,s,f,a,l,d,m,p=re.browsers(),h=re.oses(),v=J(p,e).fold(W.unknown,W.nu),g=K(h,e).fold(z.unknown,z.nu);return{browser:v,os:g,deviceType:(r=v,o=e,i=n,u=(t=g).isiOS()&&!0===/ipad/i.test(o),c=t.isiOS()&&!u,s=t.isiOS()||t.isAndroid(),f=s||i("(pointer:coarse)"),a=u||!c&&s&&i("(min-device-width:768px)"),l=c||s&&!a,d=r.isSafari()&&t.isiOS()&&!1===/safari/i.test(o),m=!l&&!a&&!d,{isiPad:y(u),isiPhone:y(c),isTablet:y(a),isPhone:y(l),isTouch:y(f),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:y(d),isDesktop:y(m)})}}(d.navigator.userAgent,function(e){return d.window.matchMedia(e).matches})),ie=(d.Node.ATTRIBUTE_NODE,d.Node.CDATA_SECTION_NODE,d.Node.COMMENT_NODE,d.Node.DOCUMENT_NODE,d.Node.DOCUMENT_TYPE_NODE,d.Node.DOCUMENT_FRAGMENT_NODE,d.Node.ELEMENT_NODE,d.Node.TEXT_NODE,d.Node.PROCESSING_INSTRUCTION_NODE,d.Node.ENTITY_REFERENCE_NODE,d.Node.ENTITY_NODE,d.Node.NOTATION_NODE,oe.get().browser.isIE(),function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n]}("element","offset"),x(d.Element.prototype.attachShadow)&&x(d.Node.prototype.getRootNode)),ue=ie?function(e){return _.fromDom(e.dom().getRootNode())}:function(e){return n=e,_.fromDom(n.dom().ownerDocument);var n};var ce={},se=function(n){return w.from(tinymce.get).bind(function(e){return w.from(e(n))})},fe=function(e,n,t,r){void 0===r&&(r="");var o,i,u,c=se(t.editorId).map(function(e){var n,t=ue(_.fromDom(e.getElement()));return(n=t,11===n.dom().nodeType?n:_.fromDom(n.dom().body)).dom()}).getOrUndefined(),s=(o=e,i=c,{completeAfter:u=function(e,n){return n&&!n()||d.setTimeout(function(){e.state.completionActive||e.showHint({completeSingle:!1,container:i})},100),o.Pass},completeIfAfterLt:function(n){return u(n,function(){var e=n.getCursor();return"<"===n.getRange(o.Pos(e.line,e.ch-1),e)})},completeIfInTag:function(n){return u(n,function(){var e=n.getTokenAt(n.getCursor());return!!("string"!==e.type||/['"]/.test(e.string.charAt(e.string.length-1))&&1!==e.string.length)&&o.innerMode(n.getMode(),e.state).state.tagName})}}),f={lineWrapping:t.lineWrapping,lineNumbers:t.lineNumbers,foldGutter:t.foldGutter,theme:t.theme,direction:t.direction,matchTags:{bothTags:!0},keyMap:"sublime",gutters:t.gutter?["CodeMirror-linenumbers","CodeMirror-foldgutter"]:[],extraKeys:{"Alt-F":"findPersistent","Ctrl-J":"toMatchingTag","Ctrl-B":"selectNextOccurrence","'<'":s.completeAfter,"'/'":s.completeIfAfterLt,"' '":s.completeIfInTag,"'='":s.completeIfInTag,"Ctrl-Q":function(e){e.foldCode(e.getCursor())}},mode:"text/html",value:r},a=e(n,f),l=function(e){27!==e.keyCode&&e.stopPropagation()};n.addEventListener("keyup",l),n.addEventListener("keydown",l),n.addEventListener("keypress",l);return d.setTimeout(function(){a&&(a.refresh(),a.focus())},200),{cmi:a,unbind:function(){n.removeEventListener("keyup",l),n.removeEventListener("keydown",l),n.removeEventListener("keypress",l)}}},ae=function(e,n,t){return a.all([function(n,t){if(!0===ce[t])return a.resolve();var e=se(t),r=e.bind(function(e){var n;return w.from(null===(n=e.ui)||void 0===n?void 0:n.styleSheetLoader)}).getOr(tinymce.DOM.styleSheetLoader);return e.each(function(e){e.on("remove",function(){r.unload&&r.unload(n),delete ce[t]})}),ce[t]=!0,N(n,r)}(n,t),E("tinymce.plugins.advcode.CodeMirror",e)]).then(function(e){e[0];return(0,e[1])()})},le=function(o,i){return new a(function(e){o.style.width="100%",o.parentElement.classList.add("mce-codemirror"),e(ae(i.codeMirrorScriptUrl,i.codeMirrorCssUrl,i.editorId).then(function(e){var n=fe(e,o,i),t=n.cmi,r=n.unbind;return{getValue:function(){return t.doc.getValue()},setValue:function(e){return t.doc.setValue(e)},destroy:function(){return r()}}}))})};tinymce.Resource.add("tinymce.plugins.advcode.customeditor",le)}(window);
8
+ !function(){"use strict";function f(){}function i(e){return function(){return e}}var u=i(!1),c=i(!0),e=function(){return l},l={fold:function(e,t){return e()},is:u,isSome:u,isNone:c,getOr:r,getOrThunk:n,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void 0),or:r,orThunk:n,map:e,each:f,bind:e,exists:u,forall:c,filter:e,equals:t,equals_:t,toArray:function(){return[]},toString:i("none()")};function t(e){return e.isNone()}function n(e){return e()}function r(e){return e}function o(e,t,n){!function(e,t,n){if(!(E(n)||I(n)||x(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")}(e.dom,t,n)}function a(e,t){return function(e,t,n){n=function(e,t){t=function(e,t){t=e.dom.getAttribute(t);return null===t?void 0:t}(e,t);return void 0===t||""===t?[]:t.split(" ")}(e,t).concat([n]);return o(e,t,n.join(" ")),!0}(e,"class",t)}function s(e){return N(e)?e:(e=e,C.fromDom(e.dom.ownerDocument))}function d(e){return O(e)?e:C.fromDom(s(e).dom.body)}function m(){return F(C.fromDom(document))}function p(e,t,n){if(!E(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);var r;void 0!==(r=e).style&&L(r.style.getPropertyValue)&&e.style.setProperty(t,n)}var h,v,y,g,w,T=function(n){function e(){return o}function t(e){return e(n)}var r=i(n),o={fold:function(e,t){return t(n)},is:function(e){return n===e},isSome:c,isNone:u,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:e,orThunk:e,map:function(e){return T(e(n))},each:function(e){e(n)},bind:t,exists:t,forall:t,filter:function(e){return e(n)?o:l},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(e){return e.is(n)},equals_:function(e,t){return e.fold(u,function(e){return t(n,e)})}};return o},_=function(e){return null==e?l:T(e)},b=function(t){return function(e){return typeof e===t}},E=(h="string",function(e){return e=typeof(t=e),(null===t?"null":"object"==e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"==e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e)===h;var t}),I=b("boolean"),L=b("function"),x=b("number"),e=("undefined"!=typeof window||Function("return this;")(),function(t){return function(e){return e.dom.nodeType===t}}),A=e(1),N=e(9),O=e(11),j=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},C={fromHtml:function(e,t){t=(t||document).createElement("div");if(t.innerHTML=e,!t.hasChildNodes()||1<t.childNodes.length)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return j(t.childNodes[0])},fromTag:function(e,t){e=(t||document).createElement(e);return j(e)},fromText:function(e,t){e=(t||document).createTextNode(e);return j(e)},fromDom:j,fromPoint:function(e,t,n){return _(e.dom.elementFromPoint(t,n)).map(j)}},S=L(Element.prototype.attachShadow)&&L(Node.prototype.getRootNode)?function(e){return C.fromDom(e.dom.getRootNode())}:s,F=function(e){e=e.dom.body;if(null==e)throw new Error("Body is not available yet");return C.fromDom(e)},b={},e={exports:b};y=b,g=e,w=v=void 0,function(e){"object"==typeof y&&void 0!==g?g.exports=e():"function"==typeof v&&v.amd?v([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=e()}(function(){return function r(o,i,u){function c(t,e){if(!i[t]){if(!o[t]){var n="function"==typeof w&&w;if(!e&&n)return n(t,!0);if(f)return f(t,!0);throw(n=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",n}n=i[t]={exports:{}},o[t][0].call(n.exports,function(e){return c(o[t][1][e]||e)},n,n.exports,r,o,i,u)}return i[t].exports}for(var f="function"==typeof w&&w,e=0;e<u.length;e++)c(u[e]);return c}({1:[function(e,t,n){var r,o,t=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{o="function"==typeof clearTimeout?clearTimeout:u}catch(e){o=u}}();var f,l=[],a=!1,s=-1;function d(){a&&f&&(a=!1,f.length?l=f.concat(l):s=-1,l.length&&m())}function m(){if(!a){var e=c(d);a=!0;for(var t=l.length;t;){for(f=l,l=[];++s<t;)f&&f[s].run();s=-1,t=l.length}f=null,a=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||a||c(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=h,t.addListener=h,t.once=h,t.off=h,t.removeListener=h,t.removeAllListeners=h,t.emit=h,t.prependListener=h,t.prependOnceListener=h,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],2:[function(e,s,t){(function(t){function r(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],a(e,this)}function o(n,r){for(;3===n._state;)n=n._value;0!==n._state?(n._handled=!0,i._immediateFn(function(){var e,t=1===n._state?r.onFulfilled:r.onRejected;if(null!==t){try{e=t(n._value)}catch(e){return void c(r.promise,e)}u(r.promise,e)}else(1===n._state?u:c)(r.promise,n._value)})):n._deferreds.push(r)}function u(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void f(t);if("function"==typeof n)return void a((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,f(t)}catch(e){c(t,e)}var r,o}function c(e,t){e._state=2,e._value=t,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function a(e,t){var n=!1;try{e(function(e){n||(n=!0,u(t,e))},function(e){n||(n=!0,c(t,e))})}catch(e){if(n)return;n=!0,c(t,e)}}var e,n;e=this,n=setTimeout,i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return o(this,new l(e,t,n)),n},i.all=function(e){var c=Array.prototype.slice.call(e);return new i(function(o,i){if(0===c.length)return o([]);var u=c.length;for(var e=0;e<c.length;e++)!function t(n,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if("function"==typeof r)return void r.call(e,function(e){t(n,e)},i)}c[n]=e,0==--u&&o(c)}catch(e){i(e)}}(e,c[e])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(n){return new i(function(e,t){t(n)})},i.race=function(o){return new i(function(e,t){for(var n=0,r=o.length;n<r;n++)o[n].then(e,t)})},i._immediateFn="function"==typeof t?function(e){t(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},void 0!==s&&s.exports?s.exports=i:e.Promise||(e.Promise=i)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(f,e,l){(function(e,t){var r=f("process/browser.js").nextTick,n=Function.prototype.apply,o=Array.prototype.slice,i={},u=0;function c(e,t){this._id=e,this._clearFn=t}l.setTimeout=function(){return new c(n.call(setTimeout,window,arguments),clearTimeout)},l.setInterval=function(){return new c(n.call(setInterval,window,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},l.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},l.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},l._unrefActive=l.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},l.setImmediate="function"==typeof e?e:function(e){var t=u++,n=!(arguments.length<2)&&o.call(arguments,1);return i[t]=!0,r(function(){i[t]&&(n?e.apply(null,n):e.call(null),l.clearImmediate(t))}),t},l.clearImmediate="function"==typeof t?t:function(e){delete i[e]}}).call(this,f("timers").setImmediate,f("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t,n){var r=e("promise-polyfill"),e="undefined"!=typeof window?window:Function("return this;")();t.exports={boltExport:e.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)});function k(){function c(e,t,n){function r(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o||(o=!0,null!==i&&(clearTimeout(i),i=null),n.apply(null,e))}}void 0===n&&(n=1e3);var o=!1,i=null,e=r(e),u=r(t);return{reject:u,resolve:e,start:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o||(i=setTimeout(function(){return u.apply(null,e)},n))}}}var n={},f={};tinymce.Resource={add:function(e,t){f[e]&&(f[e](t),delete f[e]),n[e]=D.resolve(t)},load:function(r,o){var i='Script at URL "'+o+'" failed to load',u='Script at URL "'+o+"\" did not call `tinymce.Resource.add('"+r+"', data)` within 1 second";if(void 0!==n[r])return n[r];var e=new D(function(e,t){var n=c(e,t);f[r]=n.resolve,tinymce.ScriptLoader.loadScripts([o],function(){return n.start(u)},function(){return n.reject(i)})});return n[r]=e}}}var D=e.exports.boltExport;function P(n,r){function e(e,t){return t&&!t()||setTimeout(function(){e.state.completionActive||e.showHint({completeSingle:!1,container:r})},100),n.Pass}return{completeAfter:e,completeIfAfterLt:function(t){return e(t,function(){var e=t.getCursor();return"<"===t.getRange(n.Pos(e.line,e.ch-1),e)})},completeIfInTag:function(t){return e(t,function(){var e=t.getTokenAt(t.getCursor());return!!("string"!==e.type||/['"]/.test(e.string.charAt(e.string.length-1))&&1!==e.string.length)&&n.innerMode(t.getMode(),e.state).state.tagName})}}}function R(t){return _(tinymce.get).bind(function(e){return _(e(t))})}function M(e,t,n,r){function o(e){27!==e.keyCode&&e.stopPropagation()}void 0===r&&(r="");var i=function(e){var t=R(e).map(function(e){e=S(C.fromDom(e.getElement()));return d(e)}).getOrThunk(m);if(A(t))return{element:t,destroy:f};var n=C.fromTag("div");return e=n,t.dom.appendChild(e.dom),{element:n,destroy:function(){return function(e){e=e.dom;null!==e.parentNode&&e.parentNode.removeChild(e)}(n)}}}(n.editorId),u=P(e,i.element.dom),r={lineWrapping:n.lineWrapping,lineNumbers:n.lineNumbers,foldGutter:n.foldGutter,theme:n.theme,direction:n.direction,matchTags:{bothTags:!0},keyMap:"sublime",gutters:n.gutter?["CodeMirror-linenumbers","CodeMirror-foldgutter"]:[],extraKeys:{"Alt-F":"findPersistent","Ctrl-J":"toMatchingTag","Ctrl-B":"selectNextOccurrence","'<'":u.completeAfter,"'/'":u.completeIfAfterLt,"' '":u.completeIfInTag,"'='":u.completeIfInTag,"Ctrl-Q":function(e){e.foldCode(e.getCursor())}},mode:"text/html",value:r},c=e(t,r);return t.addEventListener("keyup",o),t.addEventListener("keydown",o),t.addEventListener("keypress",o),setTimeout(function(){c.focus(),n.cursor&&c.doc.setCursor(n.cursor)},tinymce.Env.ie?50:0),setTimeout(function(){return c.refresh()},200),{cmi:c,destroy:function(){t.removeEventListener("keyup",o),t.removeEventListener("keydown",o),t.removeEventListener("keypress",o),i.destroy()}}}function U(t,n){if(q[n])return D.resolve();var r,o,e=R(n),i=e.bind(function(e){return _(null===(e=e.ui)||void 0===e?void 0:e.styleSheetLoader)}).getOr(tinymce.DOM.styleSheetLoader);return e.each(function(e){e.on("remove",function(){i.unload&&i.unload(t),delete q[n]})}),q[n]=!0,r=t,o=i,new D(function(e,t){(o||tinymce.DOM.styleSheetLoader).load(r,e,t)})}function V(e,t,n){return D.all([U(t,n),(n="tinymce.plugins.advcode.CodeMirror",e=e,tinymce.Resource||k(),tinymce.Resource.load(n,e))]).then(function(e){e[0];return(0,e[1])()})}function H(n,r){return new D(function(e){var t=C.fromDom(n);!function(e,t,n){e=e.dom;p(e,t,n)}(t,"width","100%"),_(t.dom.parentNode).map(C.fromDom).filter(A).each(function(e){return t="mce-codemirror",void(void 0!==(e=e).dom.classList?e.dom.classList.add(t):a(e,t));var t}),e(V(r.codeMirrorScriptUrl,r.codeMirrorCssUrl,r.editorId).then(function(e){var e=M(e,n,r),t=e.cmi;return{getValue:function(){return t.doc.getValue()},setValue:function(e){return t.doc.setValue(e)},destroy:e.destroy}}))})}var q={};tinymce.Resource.add("tinymce.plugins.advcode.customeditor",H)}();
@@ -1,8 +1,8 @@
1
- /* Ephox advanced code plugin
1
+ /*!
2
+ * Tiny Advanced Code Editor plugin
2
3
  *
3
- * Copyright 2010-2016 Ephox Corporation. All rights reserved.
4
+ * Copyright 2010-2021 Tiny Technologies, Inc. All rights reserved.
4
5
  *
5
- * Version: 2.2.0-140
6
+ * Version: 2.3.2-155
6
7
  */
7
-
8
- !function(l){"use strict";var e,n,t,r,o,i,u,c=function(e){return parseInt(e,10)},a=function(e,n){var t=e-n;return 0===t?0:0<t?1:-1},s=function(e,n,t){return{major:e,minor:n,patch:t}},f=function(e){var n=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(e);return n?s(c(n[1]),c(n[2]),c(n[3])):s(0,0,0)},d=function(e,n){var t=a(e.major,n.major);if(0!==t)return t;var r=a(e.minor,n.minor);if(0!==r)return r;var o=a(e.patch,n.patch);return 0!==o?o:0},m=function(e){return f([(n=e).majorVersion,n.minorVersion].join(".").split(".").slice(0,3).join("."));var n},p=function(e,n){return!!e&&-1===d(m(e),f(n))},h=function(r,o){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=r.console;t&&o in t&&t[o].apply(t,arguments)}},v={log:h(l.window,"log"),error:h(l.window,"error"),warn:h(l.window,"warm")},g=function(){},y=function(e){return function(){return e}},w=y(!1),T=y(!0),_=function(){return b},b=(e=function(e){return e.isNone()},r={fold:function(e,n){return e()},is:w,isSome:w,isNone:T,getOr:t=function(e){return e},getOrThunk:n=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:y(null),getOrUndefined:y(void 0),or:t,orThunk:n,map:_,each:g,bind:_,exists:w,forall:T,filter:_,equals:e,equals_:e,toArray:function(){return[]},toString:y("none()")},Object.freeze&&Object.freeze(r),r),E=function(t){var e=y(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:T,isNone:w,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return E(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:b},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(w,function(e){return n(t,e)})}};return o},O={some:E,none:_,from:function(e){return null==e?b:E(e)}},S=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:y(e)}},N={fromHtml:function(e,n){var t=(n||l.document).createElement("div");if(t.innerHTML=e,!t.hasChildNodes()||1<t.childNodes.length)throw l.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return S(t.childNodes[0])},fromTag:function(e,n){var t=(n||l.document).createElement(e);return S(t)},fromText:function(e,n){var t=(n||l.document).createTextNode(e);return S(t)},fromDom:S,fromPoint:function(e,n,t){var r=e.dom();return O.from(r.elementFromPoint(n,t)).map(S)}},x={},C={exports:x};i=x,u=C,o=void 0,function(e){"object"==typeof i&&void 0!==u?u.exports=e():"function"==typeof o&&o.amd?o([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=e()}(function(){return function i(u,c,a){function s(n,e){if(!c[n]){if(!u[n]){var t=!1;if(!e&&t)return t(n,!0);if(f)return f(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var o=c[n]={exports:{}};u[n][0].call(o.exports,function(e){return s(u[n][1][e]||e)},o,o.exports,i,u,c,a)}return c[n].exports}for(var f=!1,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(e,n,t){var r,o,i=n.exports={};function u(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function a(n){if(r===setTimeout)return setTimeout(n,0);if((r===u||!r)&&setTimeout)return r=setTimeout,setTimeout(n,0);try{return r(n,0)}catch(e){try{return r.call(null,n,0)}catch(e){return r.call(this,n,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:u}catch(e){r=u}try{o="function"==typeof clearTimeout?clearTimeout:c}catch(e){o=c}}();var s,f=[],d=!1,l=-1;function m(){d&&s&&(d=!1,s.length?f=s.concat(f):l=-1,f.length&&p())}function p(){if(!d){var e=a(m);d=!0;for(var n=f.length;n;){for(s=f,f=[];++l<n;)s&&s[l].run();l=-1,n=f.length}s=null,d=!1,function(n){if(o===clearTimeout)return clearTimeout(n);if((o===c||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(n);try{o(n)}catch(e){try{return o.call(null,n)}catch(e){return o.call(this,n)}}}(e)}}function h(e,n){this.fun=e,this.array=n}function v(){}i.nextTick=function(e){var n=new Array(arguments.length-1);if(1<arguments.length)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];f.push(new h(e,n)),1!==f.length||d||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],2:[function(e,d,n){(function(t){!function(e){var n=setTimeout;function r(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function o(t,r){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,i._immediateFn(function(){var e=1===t._state?r.onFulfilled:r.onRejected;if(null!==e){var n;try{n=e(t._value)}catch(e){return void c(r.promise,e)}u(r.promise,n)}else(1===t._state?u:c)(r.promise,t._value)})):t._deferreds.push(r)}function u(n,e){try{if(e===n)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if(e instanceof i)return n._state=3,n._value=e,void a(n);if("function"==typeof t)return void f((r=t,o=e,function(){r.apply(o,arguments)}),n)}n._state=1,n._value=e,a(n)}catch(e){c(n,e)}var r,o}function c(e,n){e._state=2,e._value=n,a(e)}function a(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var n=0,t=e._deferreds.length;n<t;n++)o(e,e._deferreds[n]);e._deferreds=null}function s(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}function f(e,n){var t=!1;try{e(function(e){t||(t=!0,u(n,e))},function(e){t||(t=!0,c(n,e))})}catch(e){if(t)return;t=!0,c(n,e)}}i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,n){var t=new this.constructor(r);return o(this,new s(e,n,t)),t},i.all=function(e){var c=Array.prototype.slice.call(e);return new i(function(r,o){if(0===c.length)return r([]);var i=c.length;function u(n,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void t.call(e,function(e){u(n,e)},o)}c[n]=e,0==--i&&r(c)}catch(e){o(e)}}for(var e=0;e<c.length;e++)u(e,c[e])})},i.resolve=function(n){return n&&"object"==typeof n&&n.constructor===i?n:new i(function(e){e(n)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(o){return new i(function(e,n){for(var t=0,r=o.length;t<r;t++)o[t].then(e,n)})},i._immediateFn="function"==typeof t?function(e){t(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},void 0!==d&&d.exports?d.exports=i:e.Promise||(e.Promise=i)}(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(a,e,s){(function(e,n){var r=a("process/browser.js").nextTick,t=Function.prototype.apply,o=Array.prototype.slice,i={},u=0;function c(e,n){this._id=e,this._clearFn=n}s.setTimeout=function(){return new c(t.call(setTimeout,window,arguments),clearTimeout)},s.setInterval=function(){return new c(t.call(setInterval,window,arguments),clearInterval)},s.clearTimeout=s.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},s.enroll=function(e,n){clearTimeout(e._idleTimeoutId),e._idleTimeout=n},s.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},s._unrefActive=s.active=function(e){clearTimeout(e._idleTimeoutId);var n=e._idleTimeout;0<=n&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},n))},s.setImmediate="function"==typeof e?e:function(e){var n=u++,t=!(arguments.length<2)&&o.call(arguments,1);return i[n]=!0,r(function(){i[n]&&(t?e.apply(null,t):e.call(null),s.clearImmediate(n))}),n},s.clearImmediate="function"==typeof n?n:function(e){delete i[e]}}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,n,t){var r=e("promise-polyfill"),o="undefined"!=typeof window?window:Function("return this;")();n.exports={boltExport:o.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)});var I,R=C.exports.boltExport,D=function(){var t={},c={};tinymce.Resource={add:function(e,n){c[e]&&(c[e](n),delete c[e]),t[e]=R.resolve(n)},load:function(r,o){var i='Script at URL "'+o+'" failed to load',u='Script at URL "'+o+"\" did not call `tinymce.Resource.add('"+r+"', data)` within 1 second";if(void 0!==t[r])return t[r];var e=new R(function(e,n){var t=function(e,n,t){void 0===t&&(t=1e3);var r=!1,o=null,i=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r||(r=!0,null!==o&&(l.clearTimeout(o),o=null),t.apply(null,e))}},u=i(e),c=i(n);return{reject:c,resolve:u,start:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r||(o=l.setTimeout(function(){return c.apply(null,e)},t))}}}(e,n);c[r]=t.resolve,tinymce.ScriptLoader.loadScripts([o],function(){return t.start(u)},function(){return t.reject(i)})});return t[r]=e}}},A=function(e,n){return tinymce.Resource||D(),tinymce.Resource.load(e,n)},M=function(t,r){return new R(function(e,n){(r||tinymce.DOM.styleSheetLoader).load(t,e,n)})},P=(I="function",function(e){return function(e){if(null===e)return"null";var n=typeof e;return"object"===n&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===n&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":n}(e)===I}),j=Array.prototype.slice,L=(P(Array.from)&&Array.from,function(e,n,t){return 0!=(e.compareDocumentPosition(n)&t)}),k=function(e,n){return L(e,n,l.Node.DOCUMENT_POSITION_CONTAINED_BY)},F=function(){return(F=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)},U=function(e){var n=e,t=function(){return n};return{get:t,set:function(e){n=e},clone:function(){return U(t())}}},B=function(){return W(0,0)},W=function(e,n){return{major:e,minor:n}},V={nu:W,detect:function(e,n){var t=String(n).toLowerCase();return 0===e.length?B():function(e,n){var t=function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(r.test(n))return r}}(e,n);if(!t)return{major:0,minor:0};var r=function(e){return Number(n.replace(t,"$"+e))};return W(r(1),r(2))}(e,t)},unknown:B},H="Firefox",q=function(e,n){return function(){return n===e}},G=function(e){var n=e.current;return{current:n,version:e.version,isEdge:q("Edge",n),isChrome:q("Chrome",n),isIE:q("IE",n),isOpera:q("Opera",n),isFirefox:q(H,n),isSafari:q("Safari",n)}},X={unknown:function(){return G({current:void 0,version:V.unknown()})},nu:G,edge:y("Edge"),chrome:y("Chrome"),ie:y("IE"),opera:y("Opera"),firefox:y(H),safari:y("Safari")},Y="Windows",z="Android",$="Solaris",J="FreeBSD",K="ChromeOS",Q=function(e,n){return function(){return n===e}},Z=function(e){var n=e.current;return{current:n,version:e.version,isWindows:Q(Y,n),isiOS:Q("iOS",n),isAndroid:Q(z,n),isOSX:Q("OSX",n),isLinux:Q("Linux",n),isSolaris:Q($,n),isFreeBSD:Q(J,n),isChromeOS:Q(K,n)}},ee={unknown:function(){return Z({current:void 0,version:V.unknown()})},nu:Z,windows:y(Y),ios:y("iOS"),android:y(z),linux:y("Linux"),osx:y("OSX"),solaris:y($),freebsd:y(J),chromeos:y(K)},ne=function(e,n){var t=String(n).toLowerCase();return function(e,n){for(var t=0,r=e.length;t<r;t++){var o=e[t];if(n(o,t))return O.some(o)}return O.none()}(e,function(e){return e.search(t)})},te=function(e,t){return ne(e,t).map(function(e){var n=V.detect(e.versionRegexes,t);return{current:e.name,version:n}})},re=function(e,t){return ne(e,t).map(function(e){var n=V.detect(e.versionRegexes,t);return{current:e.name,version:n}})},oe=function(e,n){return-1!==e.indexOf(n)},ie=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ue=function(n){return function(e){return oe(e,n)}},ce=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return oe(e,"edge/")&&oe(e,"chrome")&&oe(e,"safari")&&oe(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ie],search:function(e){return oe(e,"chrome")&&!oe(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return oe(e,"msie")||oe(e,"trident")}},{name:"Opera",versionRegexes:[ie,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ue("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ue("firefox")},{name:"Safari",versionRegexes:[ie,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(oe(e,"safari")||oe(e,"mobile/"))&&oe(e,"applewebkit")}}],ae=[{name:"Windows",search:ue("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return oe(e,"iphone")||oe(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ue("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ue("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ue("linux"),versionRegexes:[]},{name:"Solaris",search:ue("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ue("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ue("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],se={browsers:y(ce),oses:y(ae)},fe=U(function(e,n){var t,r,o,i,u,c,a,s,f,d,l,m,p=se.browsers(),h=se.oses(),v=te(p,e).fold(X.unknown,X.nu),g=re(h,e).fold(ee.unknown,ee.nu);return{browser:v,os:g,deviceType:(r=v,o=e,i=n,u=(t=g).isiOS()&&!0===/ipad/i.test(o),c=t.isiOS()&&!u,a=t.isiOS()||t.isAndroid(),s=a||i("(pointer:coarse)"),f=u||!c&&a&&i("(min-device-width:768px)"),d=c||a&&!f,l=r.isSafari()&&t.isiOS()&&!1===/safari/i.test(o),m=!d&&!f&&!l,{isiPad:y(u),isiPhone:y(c),isTablet:y(f),isPhone:y(d),isTouch:y(s),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:y(l),isDesktop:y(m)})}}(l.navigator.userAgent,function(e){return l.window.matchMedia(e).matches})),de=(l.Node.ATTRIBUTE_NODE,l.Node.CDATA_SECTION_NODE,l.Node.COMMENT_NODE,l.Node.DOCUMENT_NODE,l.Node.DOCUMENT_TYPE_NODE,l.Node.DOCUMENT_FRAGMENT_NODE,l.Node.ELEMENT_NODE,l.Node.TEXT_NODE,l.Node.PROCESSING_INSTRUCTION_NODE,l.Node.ENTITY_REFERENCE_NODE,l.Node.ENTITY_NODE,l.Node.NOTATION_NODE,fe.get().browser.isIE(),function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n]}("element","offset"),P(l.Element.prototype.attachShadow)&&P(l.Node.prototype.getRootNode)),le=de?function(e){return N.fromDom(e.dom().getRootNode())}:function(e){return n=e,N.fromDom(n.dom().ownerDocument);var n},me=function(e){return e.getParam("code_dialog_width",600)};var pe={},he=function(n){return O.from(tinymce.get).bind(function(e){return O.from(e(n))})},ve=function(e,n,t,r){void 0===r&&(r="");var o,i,u,c=he(t.editorId).map(function(e){var n,t=le(N.fromDom(e.getElement()));return(n=t,11===n.dom().nodeType?n:N.fromDom(n.dom().body)).dom()}).getOrUndefined(),a=(o=e,i=c,{completeAfter:u=function(e,n){return n&&!n()||l.setTimeout(function(){e.state.completionActive||e.showHint({completeSingle:!1,container:i})},100),o.Pass},completeIfAfterLt:function(n){return u(n,function(){var e=n.getCursor();return"<"===n.getRange(o.Pos(e.line,e.ch-1),e)})},completeIfInTag:function(n){return u(n,function(){var e=n.getTokenAt(n.getCursor());return!!("string"!==e.type||/['"]/.test(e.string.charAt(e.string.length-1))&&1!==e.string.length)&&o.innerMode(n.getMode(),e.state).state.tagName})}}),s={lineWrapping:t.lineWrapping,lineNumbers:t.lineNumbers,foldGutter:t.foldGutter,theme:t.theme,direction:t.direction,matchTags:{bothTags:!0},keyMap:"sublime",gutters:t.gutter?["CodeMirror-linenumbers","CodeMirror-foldgutter"]:[],extraKeys:{"Alt-F":"findPersistent","Ctrl-J":"toMatchingTag","Ctrl-B":"selectNextOccurrence","'<'":a.completeAfter,"'/'":a.completeIfAfterLt,"' '":a.completeIfInTag,"'='":a.completeIfInTag,"Ctrl-Q":function(e){e.foldCode(e.getCursor())}},mode:"text/html",value:r},f=e(n,s),d=function(e){27!==e.keyCode&&e.stopPropagation()};n.addEventListener("keyup",d),n.addEventListener("keydown",d),n.addEventListener("keypress",d);return l.setTimeout(function(){f&&(f.refresh(),f.focus())},200),{cmi:f,unbind:function(){n.removeEventListener("keyup",d),n.removeEventListener("keydown",d),n.removeEventListener("keypress",d)}}},ge=function(e,n,t){return R.all([function(n,t){if(!0===pe[t])return R.resolve();var e=he(t),r=e.bind(function(e){var n;return O.from(null===(n=e.ui)||void 0===n?void 0:n.styleSheetLoader)}).getOr(tinymce.DOM.styleSheetLoader);return e.each(function(e){e.on("remove",function(){r.unload&&r.unload(n),delete pe[t]})}),pe[t]=!0,M(n,r)}(n,t),A("tinymce.plugins.advcode.CodeMirror",e)]).then(function(e){e[0];return(0,e[1])()})},ye=function(e,n){e.focus(),e.undoManager.transact(function(){e.setContent(n)}),e.selection.setCursorLocation(),e.nodeChanged()},we=function(e,o){e.windowManager.open({title:o.title,body:o.body,buttons:[{text:"Ok",subtype:"primary",onclick:"submit",disabled:!0},{text:"Cancel",onclick:"close"}],onPostRender:function(){var e,n,t,r=this.getRoot();n=r.find("form > *")[0],t=r.getEl("body"),(e=new tinymce.ui.Throbber(t)).show(1e3),o.onPostRender(n).then(function(){e.hide(),r.statusbar.items().disabled(!1)})},onSubmit:function(e){o.onSubmit(e.data)},onClose:function(e){o.onClose&&o.onClose()}})},Te=function(r,o){var n,i=ge(o.codeMirrorScriptUrl,o.codeMirrorCssUrl,o.editorId),u=(n=U(O.none()),{clear:function(){n.set(O.none())},set:function(e){n.set(O.some(e))},isSet:function(){return n.get().isSome()},on:function(e){n.get().each(e)}});we(r,{title:"Source code",body:{type:"panel",border:1,classes:"codemirror",minWidth:me(r),minHeight:me(r)},onPostRender:function(e){var n=e.getEl("body"),t=r.getContent({source_view:!0});return i.then(function(e){return ve(e,n,o,t)}).then(function(e){u.set(e)})},onSubmit:function(){return u.on(function(e){ye(r,e.cmi.doc.getValue()),e.unbind()})},onClose:function(){return u.on(function(e){return e.unbind()})}})},_e=function(n,t){var e,r,o,i=n.getContent({source_view:!0}),u={name:"codeview",type:"customeditor",tag:"div"};if(r=tinymce,o="5.0.12",r&&1===d(m(r),f(o))){var c=t.customEditorScriptUrl;e=F(F({},u),{scriptId:"tinymce.plugins.advcode.customeditor",scriptUrl:c,settings:t})}else e=F(F({},u),{init:function(e){return o=e,i=t,new R(function(e){o.style.width="100%",o.parentElement.classList.add("mce-codemirror"),e(ge(i.codeMirrorScriptUrl,i.codeMirrorCssUrl,i.editorId).then(function(e){var n=ve(e,o,i),t=n.cmi,r=n.unbind;return{getValue:function(){return t.doc.getValue()},setValue:function(e){return t.doc.setValue(e)},destroy:function(){return r()}}}))});var o,i}});var a={title:"Source Code",size:"large",body:{type:"panel",items:[e]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{codeview:i},onSubmit:function(e){ye(n,e.getData().codeview),e.close()}};n.windowManager.open(a)},be=function(m,p,h){return function(){var e,n,t,r,o,i,u,c,a,s,f,d,l={customEditorScriptUrl:(n=h)+"/customeditor.min.js",codeMirrorScriptUrl:(f=e=p,d=n,f.getParam("codemirror_script",d+"/codemirror.min.js","string")),codeMirrorCssUrl:(a=e,s=n,a.getParam("codemirror_css",s+"/codemirror.min.css","string")),lineWrapping:(c=e,c.getParam("codemirror_linewrapping",!0,"boolean")),lineNumbers:(u=e,u.getParam("codemirror_linenumbers",!0,"boolean")),foldGutter:(i=e,i.getParam("codemirror_foldgutter",!0,"boolean")),theme:(o=e,o.getParam("codemirror_theme","default","string")),direction:(r=e,"rtl"===r.getBody().dir?"rtl":"ltr"),gutter:(t=e,t.getParam("codemirror_gutter",!0,"boolean")),editorId:e.id};m(p,l)}},Ee=function(e,n){return p(tinymce,"4.3.13")?(v.error("The advcode plugin requires at least 4.3.13 version of TinyMCE."),function(){}):(p(tinymce,"5.0.0")?(u=be(Te,i=e,n),i.addCommand("mceCodeEditor",u),i.addButton("code",{icon:"code",tooltip:"Source code",onclick:u}),i.addMenuItem("code",{icon:"code",text:"Source code",context:"tools",onclick:u})):(r="sourcecode",o=be(_e,t=e,n),t.addCommand("mceCodeEditor",o),t.ui.registry.addButton("code",{icon:r,tooltip:"Source code",onAction:o}),t.ui.registry.addMenuItem("code",{icon:r,text:"Source code",onAction:o})),{});var t,r,o,i,u};tinymce.PluginManager.add("advcode",Ee)}(window);
8
+ !function(){"use strict";function t(e){return parseInt(e,10)}function r(e,t){return 0==(t=e-t)?0:0<t?1:-1}function n(e,t,n){return{major:e,minor:t,patch:n}}function o(e){return(e=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(e))?n(t(e[1]),t(e[2]),t(e[3])):n(0,0,0)}function i(e,t){var n=r(e.major,t.major);return 0!==n||0!==(n=r(e.minor,t.minor))?n:0!==(t=r(e.patch,t.patch))?t:0}function u(e){return o([(e=e).majorVersion,e.minorVersion].join(".").split(".").slice(0,3).join("."))}function c(e,t){return!!e&&-1===i(u(e),o(t))}function a(){}function f(e){return function(){return e}}var e=function(r,o){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.console;n&&o in n&&n[o].apply(n,arguments)}},l={log:e(window,"log"),error:e(window,"error"),warn:e(window,"warn")},s=f(!1),d=f(!0),m=function(){return p},p={fold:function(e,t){return e()},is:s,isSome:s,isNone:d,getOr:y,getOrThunk:v,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:y,orThunk:v,map:m,each:a,bind:m,exists:s,forall:d,filter:m,equals:h,equals_:h,toArray:function(){return[]},toString:f("none()")};function h(e){return e.isNone()}function v(e){return e()}function y(e){return e}function g(e){return F(e)?e:(e=e,D.fromDom(e.dom.ownerDocument))}function w(e){return O.from(e.dom.parentNode).map(D.fromDom)}function b(e){null!==(e=e.dom).parentNode&&e.parentNode.removeChild(e)}function T(e){return U(e)?e:D.fromDom(g(e).dom.body)}function _(){return B(D.fromDom(document))}var C,E,S,x,I,j=function(n){function e(){return o}function t(e){return e(n)}var r=f(n),o={fold:function(e,t){return t(n)},is:function(e){return n===e},isSome:d,isNone:s,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:e,orThunk:e,map:function(e){return j(e(n))},each:function(e){e(n)},bind:t,exists:t,forall:t,filter:function(e){return e(n)?o:p},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(e){return e.is(n)},equals_:function(e,t){return e.fold(s,function(e){return t(n,e)})}};return o},O={some:j,none:m,from:function(e){return null==e?p:j(e)}},e=function(t){return function(e){return typeof e===t}},P=(C="string",function(e){return e=typeof(t=e),(null===t?"null":"object"==e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"==e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e)===C;var t}),k=e("boolean"),A=e("function"),L=e("number"),M=function(){return(M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},N=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},D={fromHtml:function(e,t){t=(t||document).createElement("div");if(t.innerHTML=e,!t.hasChildNodes()||1<t.childNodes.length)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return N(t.childNodes[0])},fromTag:function(e,t){e=(t||document).createElement(e);return N(e)},fromText:function(e,t){e=(t||document).createTextNode(e);return N(e)},fromDom:N,fromPoint:function(e,t,n){return O.from(e.dom.elementFromPoint(t,n)).map(N)}},m=("undefined"!=typeof window||Function("return this;")(),function(t){return function(e){return e.dom.nodeType===t}}),R=m(1),F=m(9),U=m(11),V=A(Element.prototype.attachShadow)&&A(Node.prototype.getRootNode)?function(e){return D.fromDom(e.dom.getRootNode())}:g,B=function(e){e=e.dom.body;if(null==e)throw new Error("Body is not available yet");return D.fromDom(e)},e={},m={exports:e};S=e,x=m,I=E=void 0,function(e){"object"==typeof S&&void 0!==x?x.exports=e():"function"==typeof E&&E.amd?E([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=e()}(function(){return function r(o,i,u){function c(t,e){if(!i[t]){if(!o[t]){var n="function"==typeof I&&I;if(!e&&n)return n(t,!0);if(a)return a(t,!0);throw(n=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",n}n=i[t]={exports:{}},o[t][0].call(n.exports,function(e){return c(o[t][1][e]||e)},n,n.exports,r,o,i,u)}return i[t].exports}for(var a="function"==typeof I&&I,e=0;e<u.length;e++)c(u[e]);return c}({1:[function(e,t,n){var r,o,t=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{o="function"==typeof clearTimeout?clearTimeout:u}catch(e){o=u}}();var a,f=[],l=!1,s=-1;function d(){l&&a&&(l=!1,a.length?f=a.concat(f):s=-1,f.length&&m())}function m(){if(!l){var e=c(d);l=!0;for(var t=f.length;t;){for(a=f,f=[];++s<t;)a&&a[s].run();s=-1,t=f.length}a=null,l=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new p(e,t)),1!==f.length||l||c(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=h,t.addListener=h,t.once=h,t.off=h,t.removeListener=h,t.removeAllListeners=h,t.emit=h,t.prependListener=h,t.prependOnceListener=h,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],2:[function(e,s,t){(function(t){function r(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(e,this)}function o(n,r){for(;3===n._state;)n=n._value;0!==n._state?(n._handled=!0,i._immediateFn(function(){var e,t=1===n._state?r.onFulfilled:r.onRejected;if(null!==t){try{e=t(n._value)}catch(e){return void c(r.promise,e)}u(r.promise,e)}else(1===n._state?u:c)(r.promise,n._value)})):n._deferreds.push(r)}function u(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void a(t);if("function"==typeof n)return void l((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,a(t)}catch(e){c(t,e)}var r,o}function c(e,t){e._state=2,e._value=t,a(e)}function a(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function f(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,u(t,e))},function(e){n||(n=!0,c(t,e))})}catch(e){if(n)return;n=!0,c(t,e)}}var e,n;e=this,n=setTimeout,i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return o(this,new f(e,t,n)),n},i.all=function(e){var c=Array.prototype.slice.call(e);return new i(function(o,i){if(0===c.length)return o([]);var u=c.length;for(var e=0;e<c.length;e++)!function t(n,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if("function"==typeof r)return void r.call(e,function(e){t(n,e)},i)}c[n]=e,0==--u&&o(c)}catch(e){i(e)}}(e,c[e])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(n){return new i(function(e,t){t(n)})},i.race=function(o){return new i(function(e,t){for(var n=0,r=o.length;n<r;n++)o[n].then(e,t)})},i._immediateFn="function"==typeof t?function(e){t(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},void 0!==s&&s.exports?s.exports=i:e.Promise||(e.Promise=i)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(a,e,f){(function(e,t){var r=a("process/browser.js").nextTick,n=Function.prototype.apply,o=Array.prototype.slice,i={},u=0;function c(e,t){this._id=e,this._clearFn=t}f.setTimeout=function(){return new c(n.call(setTimeout,window,arguments),clearTimeout)},f.setInterval=function(){return new c(n.call(setInterval,window,arguments),clearInterval)},f.clearTimeout=f.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},f.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},f.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},f._unrefActive=f.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},f.setImmediate="function"==typeof e?e:function(e){var t=u++,n=!(arguments.length<2)&&o.call(arguments,1);return i[t]=!0,r(function(){i[t]&&(n?e.apply(null,n):e.call(null),f.clearImmediate(t))}),t},f.clearImmediate="function"==typeof t?t:function(e){delete i[e]}}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t,n){var r=e("promise-polyfill"),e="undefined"!=typeof window?window:Function("return this;")();t.exports={boltExport:e.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)});function H(){function c(e,t,n){function r(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o||(o=!0,null!==i&&(clearTimeout(i),i=null),n.apply(null,e))}}void 0===n&&(n=1e3);var o=!1,i=null,e=r(e),u=r(t);return{reject:u,resolve:e,start:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o||(i=setTimeout(function(){return u.apply(null,e)},n))}}}var n={},a={};tinymce.Resource={add:function(e,t){a[e]&&(a[e](t),delete a[e]),n[e]=W.resolve(t)},load:function(r,o){var i='Script at URL "'+o+'" failed to load',u='Script at URL "'+o+"\" did not call `tinymce.Resource.add('"+r+"', data)` within 1 second";if(void 0!==n[r])return n[r];var e=new W(function(e,t){var n=c(e,t);a[r]=n.resolve,tinymce.ScriptLoader.loadScripts([o],function(){return n.start(u)},function(){return n.reject(i)})});return n[r]=e}}}function q(e){return e.getParam("code_dialog_width",600)}var W=m.exports.boltExport;function G(n,r){function e(e,t){return t&&!t()||setTimeout(function(){e.state.completionActive||e.showHint({completeSingle:!1,container:r})},100),n.Pass}return{completeAfter:e,completeIfAfterLt:function(t){return e(t,function(){var e=t.getCursor();return"<"===t.getRange(n.Pos(e.line,e.ch-1),e)})},completeIfInTag:function(t){return e(t,function(){var e=t.getTokenAt(t.getCursor());return!!("string"!==e.type||/['"]/.test(e.string.charAt(e.string.length-1))&&1!==e.string.length)&&n.innerMode(t.getMode(),e.state).state.tagName})}}}function K(t){return O.from(tinymce.get).bind(function(e){return O.from(e(t))})}function z(e,t,n,r){function o(e){27!==e.keyCode&&e.stopPropagation()}void 0===r&&(r="");var i=function(e){var t=K(e).map(function(e){e=V(D.fromDom(e.getElement()));return T(e)}).getOrThunk(_);if(R(t))return{element:t,destroy:a};var n=D.fromTag("div");return e=n,t.dom.appendChild(e.dom),{element:n,destroy:function(){return b(n)}}}(n.editorId),u=G(e,i.element.dom),r={lineWrapping:n.lineWrapping,lineNumbers:n.lineNumbers,foldGutter:n.foldGutter,theme:n.theme,direction:n.direction,matchTags:{bothTags:!0},keyMap:"sublime",gutters:n.gutter?["CodeMirror-linenumbers","CodeMirror-foldgutter"]:[],extraKeys:{"Alt-F":"findPersistent","Ctrl-J":"toMatchingTag","Ctrl-B":"selectNextOccurrence","'<'":u.completeAfter,"'/'":u.completeIfAfterLt,"' '":u.completeIfInTag,"'='":u.completeIfInTag,"Ctrl-Q":function(e){e.foldCode(e.getCursor())}},mode:"text/html",value:r},c=e(t,r);return t.addEventListener("keyup",o),t.addEventListener("keydown",o),t.addEventListener("keypress",o),setTimeout(function(){c.focus(),n.cursor&&c.doc.setCursor(n.cursor)},tinymce.Env.ie?50:0),setTimeout(function(){return c.refresh()},200),{cmi:c,destroy:function(){t.removeEventListener("keyup",o),t.removeEventListener("keydown",o),t.removeEventListener("keypress",o),i.destroy()}}}function J(t,n){if(Z[n])return W.resolve();var r,o,e=K(n),i=e.bind(function(e){return O.from(null===(e=e.ui)||void 0===e?void 0:e.styleSheetLoader)}).getOr(tinymce.DOM.styleSheetLoader);return e.each(function(e){e.on("remove",function(){i.unload&&i.unload(t),delete Z[n]})}),Z[n]=!0,r=t,o=i,new W(function(e,t){(o||tinymce.DOM.styleSheetLoader).load(r,e,t)})}function Q(e,t,n){return W.all([J(t,n),(n="tinymce.plugins.advcode.CodeMirror",e=e,tinymce.Resource||H(),tinymce.Resource.load(n,e))]).then(function(e){e[0];return(0,e[1])()})}function X(e,t){e.focus(),e.undoManager.transact(function(){e.setContent(t)}),e.selection.setCursorLocation(),e.nodeChanged()}function Y(e,t,n){!function(e,t,n){if(!(P(n)||k(n)||L(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")}(e.dom,t,n)}var Z={},$=function(e,o){e.windowManager.open({title:o.title,body:o.body,buttons:[{text:"Ok",subtype:"primary",onclick:"submit",disabled:!0},{text:"Cancel",onclick:"close"}],onPostRender:function(){var e,t,n=this.getRoot(),r=n.find("form > *")[0];t=n.getEl("body"),(e=new tinymce.ui.Throbber(t)).show(1e3),o.onPostRender(r).then(function(){e.hide(),n.statusbar.items().disabled(!1)})},onSubmit:function(e){o.onSubmit(e.data)},onClose:function(){o.onClose&&o.onClose()}})},ee=Object.hasOwnProperty;function te(e,t,n){for(var r=e.dom,o=A(n)?n:s;r.parentNode;){r=r.parentNode;var i=D.fromDom(r);if(t(i))return O.some(i);if(o(i))break}return O.none()}function ne(e,t,n){var r;return r=te,n=n,function(e,t){return t(e)}(e=e,t=t)?O.some(e):A(n)&&n(e)?O.none():r(e,t,n)}function re(e){return t=e,e="name",ee.call(t,e);var t}function oe(e){var r=e.split(/\r?\n/);return function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return O.none()}(r,function(t,n){var e=t.indexOf(ve);return(-1!==(e=e)?O.some(e):O.none()).map(function(e){return t===ve?0===n?{line:n,ch:0}:{line:n-1,ch:r[n-1].length}:{line:n,ch:e}})}).getOr({line:0,ch:0})}function ie(e,t){var n,r,o=D.fromHtml(ve),e=D.fromDom(e),e=ne(e,function(e){return function(e,t){e=e.dom;return!(!e||!e.hasAttribute)&&e.hasAttribute(t)}(e,"data-mce-bogus")},t).getOr(e);return r=o,w(n=e).each(function(e){e.dom.insertBefore(r.dom,n.dom)}),o}function ue(t,e){var n=t.dom,r=t.selection,o=r.getBookmark(),n=re(o)?n.select(o.name)[o.index]:n.select("#"+o.id+"_start")[0],n=O.from(n).map(function(e){var n=D.fromDom(t.getBody());return ie(e,function(e){return t=n,e.dom===t.dom;var t})}),e=e();return n.each(b),r.moveToBookmark(o),e}function ce(e){var t=ue(e,function(){return e.getContent({source_view:!0})}),t=oe(t);return{content:e.getContent({source_view:!0}),cursor:t}}function ae(o,i){var e,t,n,u=Q(i.codeMirrorScriptUrl,i.codeMirrorCssUrl,i.editorId),c=(e=O.none(),t=e,n={get:function(){return t},set:function(e){t=e}},{clear:function(){return n.set(O.none())},set:function(e){return n.set(O.some(e))},isSet:function(){return n.get().isSome()},on:function(e){return n.get().each(e)}});$(o,{title:"Source code",body:{type:"panel",border:1,classes:"codemirror",minWidth:q(o),minHeight:q(o)},onPostRender:function(e){var t=e.getEl("body"),n=ce(o),r=M(M({},i),{cursor:n.cursor});return u.then(function(e){return z(e,t,r,n.content)}).then(function(e){c.set(e)})},onSubmit:function(){return c.on(function(e){X(o,e.cmi.doc.getValue()),e.destroy()})},onClose:function(){return c.on(function(e){return e.destroy()})}})}function fe(e,t){return function(e,t,n){n=function(e,t){t=function(e,t){t=e.dom.getAttribute(t);return null===t?void 0:t}(e,t);return void 0===t||""===t?[]:t.split(" ")}(e,t).concat([n]);return Y(e,t,n.join(" ")),!0}(e,"class",t)}function le(e,t,n){if(!P(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);var r;void 0!==(r=e).style&&A(r.style.getPropertyValue)&&e.style.setProperty(t,n)}function se(n,r){return new W(function(e){var t=D.fromDom(n);!function(e,t,n){e=e.dom;le(e,t,n)}(t,"width","100%"),w(t).filter(R).each(function(e){return t="mce-codemirror",void(void 0!==(e=e).dom.classList?e.dom.classList.add(t):fe(e,t));var t}),e(Q(r.codeMirrorScriptUrl,r.codeMirrorCssUrl,r.editorId).then(function(e){var e=z(e,n,r),t=e.cmi;return{getValue:function(){return t.doc.getValue()},setValue:function(e){return t.doc.setValue(e)},destroy:e.destroy}}))})}function de(t){var e={name:"codeview",type:"customeditor",tag:"div"};if(n=tinymce,r="5.0.12",!n||1!==i(u(n),o(r)))return M(M({},e),{init:function(e){return se(e,t)}});var n,r=t.customEditorScriptUrl;return M(M({},e),{scriptId:"tinymce.plugins.advcode.customeditor",scriptUrl:r,settings:t})}function me(t,e){var n=ce(t),e=M(M({},e),{cursor:n.cursor}),n={title:"Source Code",size:"large",body:{type:"panel",items:[de(e)]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{codeview:n.content},onSubmit:function(e){X(t,e.getData().codeview),e.close()}};t.windowManager.open(n)}function pe(r,o,i){return function(){var e,t,n,e={customEditorScriptUrl:(t=i)+"/customeditor.min.js",codeMirrorScriptUrl:(n=t,(e=o).getParam("codemirror_script",n+"/codemirror.min.js","string")),codeMirrorCssUrl:(t=t,e.getParam("codemirror_css",t+"/codemirror.min.css","string")),lineWrapping:e.getParam("codemirror_linewrapping",!0,"boolean"),lineNumbers:e.getParam("codemirror_linenumbers",!0,"boolean"),foldGutter:e.getParam("codemirror_foldgutter",!0,"boolean"),theme:e.getParam("codemirror_theme","default","string"),direction:"rtl"===e.getBody().dir?"rtl":"ltr",gutter:e.getParam("codemirror_gutter",!0,"boolean"),editorId:e.id};r(o,e)}}function he(e,t){return c(tinymce,"4.3.13")?(l.error("The advcode plugin requires at least 4.3.13 version of TinyMCE."),function(){}):(c(tinymce,"5.0.0")?function(e,t){t=pe(ae,e,t);e.addCommand("mceCodeEditor",t),e.addButton("code",{icon:"code",tooltip:"Source code",onclick:t}),e.addMenuItem("code",{icon:"code",text:"Source code",context:"tools",onclick:t})}(e,t):(n="sourcecode",t=pe(me,e=e,t=t),e.addCommand("mceCodeEditor",t),e.ui.registry.addButton("code",{icon:n,tooltip:"Source code",onAction:t}),e.ui.registry.addMenuItem("code",{icon:n,text:"Source code",onAction:t})),{});var n}var ve="\x3c!--mce_cursor--\x3e";tinymce.PluginManager.add("advcode",he)}();
@@ -1,8 +1,8 @@
1
- /* Ephox advanced code plugin
1
+ /*!
2
+ * Tiny Advanced Code Editor plugin
2
3
  *
3
- * Copyright 2010-2016 Ephox Corporation. All rights reserved.
4
+ * Copyright 2010-2021 Tiny Technologies, Inc. All rights reserved.
4
5
  *
5
- * Version: 2.2.0-140
6
+ * Version: 2.3.2-155
6
7
  */
7
-
8
- !function(l){"use strict";var e,n,t,r,o,i,u,c=function(e){return parseInt(e,10)},a=function(e,n){var t=e-n;return 0===t?0:0<t?1:-1},s=function(e,n,t){return{major:e,minor:n,patch:t}},f=function(e){var n=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(e);return n?s(c(n[1]),c(n[2]),c(n[3])):s(0,0,0)},d=function(e,n){var t=a(e.major,n.major);if(0!==t)return t;var r=a(e.minor,n.minor);if(0!==r)return r;var o=a(e.patch,n.patch);return 0!==o?o:0},m=function(e){return f([(n=e).majorVersion,n.minorVersion].join(".").split(".").slice(0,3).join("."));var n},p=function(e,n){return!!e&&-1===d(m(e),f(n))},h=function(r,o){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=r.console;t&&o in t&&t[o].apply(t,arguments)}},v={log:h(l.window,"log"),error:h(l.window,"error"),warn:h(l.window,"warm")},g=function(){},y=function(e){return function(){return e}},w=y(!1),T=y(!0),_=function(){return b},b=(e=function(e){return e.isNone()},r={fold:function(e,n){return e()},is:w,isSome:w,isNone:T,getOr:t=function(e){return e},getOrThunk:n=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:y(null),getOrUndefined:y(void 0),or:t,orThunk:n,map:_,each:g,bind:_,exists:w,forall:T,filter:_,equals:e,equals_:e,toArray:function(){return[]},toString:y("none()")},Object.freeze&&Object.freeze(r),r),E=function(t){var e=y(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:T,isNone:w,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return E(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:b},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(w,function(e){return n(t,e)})}};return o},O={some:E,none:_,from:function(e){return null==e?b:E(e)}},S=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:y(e)}},N={fromHtml:function(e,n){var t=(n||l.document).createElement("div");if(t.innerHTML=e,!t.hasChildNodes()||1<t.childNodes.length)throw l.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return S(t.childNodes[0])},fromTag:function(e,n){var t=(n||l.document).createElement(e);return S(t)},fromText:function(e,n){var t=(n||l.document).createTextNode(e);return S(t)},fromDom:S,fromPoint:function(e,n,t){var r=e.dom();return O.from(r.elementFromPoint(n,t)).map(S)}},x={},C={exports:x};i=x,u=C,o=void 0,function(e){"object"==typeof i&&void 0!==u?u.exports=e():"function"==typeof o&&o.amd?o([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=e()}(function(){return function i(u,c,a){function s(n,e){if(!c[n]){if(!u[n]){var t=!1;if(!e&&t)return t(n,!0);if(f)return f(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var o=c[n]={exports:{}};u[n][0].call(o.exports,function(e){return s(u[n][1][e]||e)},o,o.exports,i,u,c,a)}return c[n].exports}for(var f=!1,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(e,n,t){var r,o,i=n.exports={};function u(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function a(n){if(r===setTimeout)return setTimeout(n,0);if((r===u||!r)&&setTimeout)return r=setTimeout,setTimeout(n,0);try{return r(n,0)}catch(e){try{return r.call(null,n,0)}catch(e){return r.call(this,n,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:u}catch(e){r=u}try{o="function"==typeof clearTimeout?clearTimeout:c}catch(e){o=c}}();var s,f=[],d=!1,l=-1;function m(){d&&s&&(d=!1,s.length?f=s.concat(f):l=-1,f.length&&p())}function p(){if(!d){var e=a(m);d=!0;for(var n=f.length;n;){for(s=f,f=[];++l<n;)s&&s[l].run();l=-1,n=f.length}s=null,d=!1,function(n){if(o===clearTimeout)return clearTimeout(n);if((o===c||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(n);try{o(n)}catch(e){try{return o.call(null,n)}catch(e){return o.call(this,n)}}}(e)}}function h(e,n){this.fun=e,this.array=n}function v(){}i.nextTick=function(e){var n=new Array(arguments.length-1);if(1<arguments.length)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];f.push(new h(e,n)),1!==f.length||d||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],2:[function(e,d,n){(function(t){!function(e){var n=setTimeout;function r(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function o(t,r){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,i._immediateFn(function(){var e=1===t._state?r.onFulfilled:r.onRejected;if(null!==e){var n;try{n=e(t._value)}catch(e){return void c(r.promise,e)}u(r.promise,n)}else(1===t._state?u:c)(r.promise,t._value)})):t._deferreds.push(r)}function u(n,e){try{if(e===n)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if(e instanceof i)return n._state=3,n._value=e,void a(n);if("function"==typeof t)return void f((r=t,o=e,function(){r.apply(o,arguments)}),n)}n._state=1,n._value=e,a(n)}catch(e){c(n,e)}var r,o}function c(e,n){e._state=2,e._value=n,a(e)}function a(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var n=0,t=e._deferreds.length;n<t;n++)o(e,e._deferreds[n]);e._deferreds=null}function s(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}function f(e,n){var t=!1;try{e(function(e){t||(t=!0,u(n,e))},function(e){t||(t=!0,c(n,e))})}catch(e){if(t)return;t=!0,c(n,e)}}i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,n){var t=new this.constructor(r);return o(this,new s(e,n,t)),t},i.all=function(e){var c=Array.prototype.slice.call(e);return new i(function(r,o){if(0===c.length)return r([]);var i=c.length;function u(n,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void t.call(e,function(e){u(n,e)},o)}c[n]=e,0==--i&&r(c)}catch(e){o(e)}}for(var e=0;e<c.length;e++)u(e,c[e])})},i.resolve=function(n){return n&&"object"==typeof n&&n.constructor===i?n:new i(function(e){e(n)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(o){return new i(function(e,n){for(var t=0,r=o.length;t<r;t++)o[t].then(e,n)})},i._immediateFn="function"==typeof t?function(e){t(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},void 0!==d&&d.exports?d.exports=i:e.Promise||(e.Promise=i)}(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(a,e,s){(function(e,n){var r=a("process/browser.js").nextTick,t=Function.prototype.apply,o=Array.prototype.slice,i={},u=0;function c(e,n){this._id=e,this._clearFn=n}s.setTimeout=function(){return new c(t.call(setTimeout,window,arguments),clearTimeout)},s.setInterval=function(){return new c(t.call(setInterval,window,arguments),clearInterval)},s.clearTimeout=s.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},s.enroll=function(e,n){clearTimeout(e._idleTimeoutId),e._idleTimeout=n},s.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},s._unrefActive=s.active=function(e){clearTimeout(e._idleTimeoutId);var n=e._idleTimeout;0<=n&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},n))},s.setImmediate="function"==typeof e?e:function(e){var n=u++,t=!(arguments.length<2)&&o.call(arguments,1);return i[n]=!0,r(function(){i[n]&&(t?e.apply(null,t):e.call(null),s.clearImmediate(n))}),n},s.clearImmediate="function"==typeof n?n:function(e){delete i[e]}}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,n,t){var r=e("promise-polyfill"),o="undefined"!=typeof window?window:Function("return this;")();n.exports={boltExport:o.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)});var I,R=C.exports.boltExport,D=function(){var t={},c={};tinymce.Resource={add:function(e,n){c[e]&&(c[e](n),delete c[e]),t[e]=R.resolve(n)},load:function(r,o){var i='Script at URL "'+o+'" failed to load',u='Script at URL "'+o+"\" did not call `tinymce.Resource.add('"+r+"', data)` within 1 second";if(void 0!==t[r])return t[r];var e=new R(function(e,n){var t=function(e,n,t){void 0===t&&(t=1e3);var r=!1,o=null,i=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r||(r=!0,null!==o&&(l.clearTimeout(o),o=null),t.apply(null,e))}},u=i(e),c=i(n);return{reject:c,resolve:u,start:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r||(o=l.setTimeout(function(){return c.apply(null,e)},t))}}}(e,n);c[r]=t.resolve,tinymce.ScriptLoader.loadScripts([o],function(){return t.start(u)},function(){return t.reject(i)})});return t[r]=e}}},A=function(e,n){return tinymce.Resource||D(),tinymce.Resource.load(e,n)},M=function(t,r){return new R(function(e,n){(r||tinymce.DOM.styleSheetLoader).load(t,e,n)})},P=(I="function",function(e){return function(e){if(null===e)return"null";var n=typeof e;return"object"===n&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===n&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":n}(e)===I}),j=Array.prototype.slice,L=(P(Array.from)&&Array.from,function(e,n,t){return 0!=(e.compareDocumentPosition(n)&t)}),k=function(e,n){return L(e,n,l.Node.DOCUMENT_POSITION_CONTAINED_BY)},F=function(){return(F=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)},U=function(e){var n=e,t=function(){return n};return{get:t,set:function(e){n=e},clone:function(){return U(t())}}},B=function(){return W(0,0)},W=function(e,n){return{major:e,minor:n}},V={nu:W,detect:function(e,n){var t=String(n).toLowerCase();return 0===e.length?B():function(e,n){var t=function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(r.test(n))return r}}(e,n);if(!t)return{major:0,minor:0};var r=function(e){return Number(n.replace(t,"$"+e))};return W(r(1),r(2))}(e,t)},unknown:B},H="Firefox",q=function(e,n){return function(){return n===e}},G=function(e){var n=e.current;return{current:n,version:e.version,isEdge:q("Edge",n),isChrome:q("Chrome",n),isIE:q("IE",n),isOpera:q("Opera",n),isFirefox:q(H,n),isSafari:q("Safari",n)}},X={unknown:function(){return G({current:void 0,version:V.unknown()})},nu:G,edge:y("Edge"),chrome:y("Chrome"),ie:y("IE"),opera:y("Opera"),firefox:y(H),safari:y("Safari")},Y="Windows",z="Android",$="Solaris",J="FreeBSD",K="ChromeOS",Q=function(e,n){return function(){return n===e}},Z=function(e){var n=e.current;return{current:n,version:e.version,isWindows:Q(Y,n),isiOS:Q("iOS",n),isAndroid:Q(z,n),isOSX:Q("OSX",n),isLinux:Q("Linux",n),isSolaris:Q($,n),isFreeBSD:Q(J,n),isChromeOS:Q(K,n)}},ee={unknown:function(){return Z({current:void 0,version:V.unknown()})},nu:Z,windows:y(Y),ios:y("iOS"),android:y(z),linux:y("Linux"),osx:y("OSX"),solaris:y($),freebsd:y(J),chromeos:y(K)},ne=function(e,n){var t=String(n).toLowerCase();return function(e,n){for(var t=0,r=e.length;t<r;t++){var o=e[t];if(n(o,t))return O.some(o)}return O.none()}(e,function(e){return e.search(t)})},te=function(e,t){return ne(e,t).map(function(e){var n=V.detect(e.versionRegexes,t);return{current:e.name,version:n}})},re=function(e,t){return ne(e,t).map(function(e){var n=V.detect(e.versionRegexes,t);return{current:e.name,version:n}})},oe=function(e,n){return-1!==e.indexOf(n)},ie=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ue=function(n){return function(e){return oe(e,n)}},ce=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return oe(e,"edge/")&&oe(e,"chrome")&&oe(e,"safari")&&oe(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ie],search:function(e){return oe(e,"chrome")&&!oe(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return oe(e,"msie")||oe(e,"trident")}},{name:"Opera",versionRegexes:[ie,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ue("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ue("firefox")},{name:"Safari",versionRegexes:[ie,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(oe(e,"safari")||oe(e,"mobile/"))&&oe(e,"applewebkit")}}],ae=[{name:"Windows",search:ue("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return oe(e,"iphone")||oe(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ue("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ue("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ue("linux"),versionRegexes:[]},{name:"Solaris",search:ue("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ue("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ue("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],se={browsers:y(ce),oses:y(ae)},fe=U(function(e,n){var t,r,o,i,u,c,a,s,f,d,l,m,p=se.browsers(),h=se.oses(),v=te(p,e).fold(X.unknown,X.nu),g=re(h,e).fold(ee.unknown,ee.nu);return{browser:v,os:g,deviceType:(r=v,o=e,i=n,u=(t=g).isiOS()&&!0===/ipad/i.test(o),c=t.isiOS()&&!u,a=t.isiOS()||t.isAndroid(),s=a||i("(pointer:coarse)"),f=u||!c&&a&&i("(min-device-width:768px)"),d=c||a&&!f,l=r.isSafari()&&t.isiOS()&&!1===/safari/i.test(o),m=!d&&!f&&!l,{isiPad:y(u),isiPhone:y(c),isTablet:y(f),isPhone:y(d),isTouch:y(s),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:y(l),isDesktop:y(m)})}}(l.navigator.userAgent,function(e){return l.window.matchMedia(e).matches})),de=(l.Node.ATTRIBUTE_NODE,l.Node.CDATA_SECTION_NODE,l.Node.COMMENT_NODE,l.Node.DOCUMENT_NODE,l.Node.DOCUMENT_TYPE_NODE,l.Node.DOCUMENT_FRAGMENT_NODE,l.Node.ELEMENT_NODE,l.Node.TEXT_NODE,l.Node.PROCESSING_INSTRUCTION_NODE,l.Node.ENTITY_REFERENCE_NODE,l.Node.ENTITY_NODE,l.Node.NOTATION_NODE,fe.get().browser.isIE(),function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n]}("element","offset"),P(l.Element.prototype.attachShadow)&&P(l.Node.prototype.getRootNode)),le=de?function(e){return N.fromDom(e.dom().getRootNode())}:function(e){return n=e,N.fromDom(n.dom().ownerDocument);var n},me=function(e){return e.getParam("code_dialog_width",600)};var pe={},he=function(n){return O.from(tinymce.get).bind(function(e){return O.from(e(n))})},ve=function(e,n,t,r){void 0===r&&(r="");var o,i,u,c=he(t.editorId).map(function(e){var n,t=le(N.fromDom(e.getElement()));return(n=t,11===n.dom().nodeType?n:N.fromDom(n.dom().body)).dom()}).getOrUndefined(),a=(o=e,i=c,{completeAfter:u=function(e,n){return n&&!n()||l.setTimeout(function(){e.state.completionActive||e.showHint({completeSingle:!1,container:i})},100),o.Pass},completeIfAfterLt:function(n){return u(n,function(){var e=n.getCursor();return"<"===n.getRange(o.Pos(e.line,e.ch-1),e)})},completeIfInTag:function(n){return u(n,function(){var e=n.getTokenAt(n.getCursor());return!!("string"!==e.type||/['"]/.test(e.string.charAt(e.string.length-1))&&1!==e.string.length)&&o.innerMode(n.getMode(),e.state).state.tagName})}}),s={lineWrapping:t.lineWrapping,lineNumbers:t.lineNumbers,foldGutter:t.foldGutter,theme:t.theme,direction:t.direction,matchTags:{bothTags:!0},keyMap:"sublime",gutters:t.gutter?["CodeMirror-linenumbers","CodeMirror-foldgutter"]:[],extraKeys:{"Alt-F":"findPersistent","Ctrl-J":"toMatchingTag","Ctrl-B":"selectNextOccurrence","'<'":a.completeAfter,"'/'":a.completeIfAfterLt,"' '":a.completeIfInTag,"'='":a.completeIfInTag,"Ctrl-Q":function(e){e.foldCode(e.getCursor())}},mode:"text/html",value:r},f=e(n,s),d=function(e){27!==e.keyCode&&e.stopPropagation()};n.addEventListener("keyup",d),n.addEventListener("keydown",d),n.addEventListener("keypress",d);return l.setTimeout(function(){f&&(f.refresh(),f.focus())},200),{cmi:f,unbind:function(){n.removeEventListener("keyup",d),n.removeEventListener("keydown",d),n.removeEventListener("keypress",d)}}},ge=function(e,n,t){return R.all([function(n,t){if(!0===pe[t])return R.resolve();var e=he(t),r=e.bind(function(e){var n;return O.from(null===(n=e.ui)||void 0===n?void 0:n.styleSheetLoader)}).getOr(tinymce.DOM.styleSheetLoader);return e.each(function(e){e.on("remove",function(){r.unload&&r.unload(n),delete pe[t]})}),pe[t]=!0,M(n,r)}(n,t),A("tinymce.plugins.advcode.CodeMirror",e)]).then(function(e){e[0];return(0,e[1])()})},ye=function(e,n){e.focus(),e.undoManager.transact(function(){e.setContent(n)}),e.selection.setCursorLocation(),e.nodeChanged()},we=function(e,o){e.windowManager.open({title:o.title,body:o.body,buttons:[{text:"Ok",subtype:"primary",onclick:"submit",disabled:!0},{text:"Cancel",onclick:"close"}],onPostRender:function(){var e,n,t,r=this.getRoot();n=r.find("form > *")[0],t=r.getEl("body"),(e=new tinymce.ui.Throbber(t)).show(1e3),o.onPostRender(n).then(function(){e.hide(),r.statusbar.items().disabled(!1)})},onSubmit:function(e){o.onSubmit(e.data)},onClose:function(e){o.onClose&&o.onClose()}})},Te=function(r,o){var n,i=ge(o.codeMirrorScriptUrl,o.codeMirrorCssUrl,o.editorId),u=(n=U(O.none()),{clear:function(){n.set(O.none())},set:function(e){n.set(O.some(e))},isSet:function(){return n.get().isSome()},on:function(e){n.get().each(e)}});we(r,{title:"Source code",body:{type:"panel",border:1,classes:"codemirror",minWidth:me(r),minHeight:me(r)},onPostRender:function(e){var n=e.getEl("body"),t=r.getContent({source_view:!0});return i.then(function(e){return ve(e,n,o,t)}).then(function(e){u.set(e)})},onSubmit:function(){return u.on(function(e){ye(r,e.cmi.doc.getValue()),e.unbind()})},onClose:function(){return u.on(function(e){return e.unbind()})}})},_e=function(n,t){var e,r,o,i=n.getContent({source_view:!0}),u={name:"codeview",type:"customeditor",tag:"div"};if(r=tinymce,o="5.0.12",r&&1===d(m(r),f(o))){var c=t.customEditorScriptUrl;e=F(F({},u),{scriptId:"tinymce.plugins.advcode.customeditor",scriptUrl:c,settings:t})}else e=F(F({},u),{init:function(e){return o=e,i=t,new R(function(e){o.style.width="100%",o.parentElement.classList.add("mce-codemirror"),e(ge(i.codeMirrorScriptUrl,i.codeMirrorCssUrl,i.editorId).then(function(e){var n=ve(e,o,i),t=n.cmi,r=n.unbind;return{getValue:function(){return t.doc.getValue()},setValue:function(e){return t.doc.setValue(e)},destroy:function(){return r()}}}))});var o,i}});var a={title:"Source Code",size:"large",body:{type:"panel",items:[e]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{codeview:i},onSubmit:function(e){ye(n,e.getData().codeview),e.close()}};n.windowManager.open(a)},be=function(m,p,h){return function(){var e,n,t,r,o,i,u,c,a,s,f,d,l={customEditorScriptUrl:(n=h)+"/customeditor.min.js",codeMirrorScriptUrl:(f=e=p,d=n,f.getParam("codemirror_script",d+"/codemirror.min.js","string")),codeMirrorCssUrl:(a=e,s=n,a.getParam("codemirror_css",s+"/codemirror.min.css","string")),lineWrapping:(c=e,c.getParam("codemirror_linewrapping",!0,"boolean")),lineNumbers:(u=e,u.getParam("codemirror_linenumbers",!0,"boolean")),foldGutter:(i=e,i.getParam("codemirror_foldgutter",!0,"boolean")),theme:(o=e,o.getParam("codemirror_theme","default","string")),direction:(r=e,"rtl"===r.getBody().dir?"rtl":"ltr"),gutter:(t=e,t.getParam("codemirror_gutter",!0,"boolean")),editorId:e.id};m(p,l)}},Ee=function(e,n){return p(tinymce,"4.3.13")?(v.error("The advcode plugin requires at least 4.3.13 version of TinyMCE."),function(){}):(p(tinymce,"5.0.0")?(u=be(Te,i=e,n),i.addCommand("mceCodeEditor",u),i.addButton("code",{icon:"code",tooltip:"Source code",onclick:u}),i.addMenuItem("code",{icon:"code",text:"Source code",context:"tools",onclick:u})):(r="sourcecode",o=be(_e,t=e,n),t.addCommand("mceCodeEditor",o),t.ui.registry.addButton("code",{icon:r,tooltip:"Source code",onAction:o}),t.ui.registry.addMenuItem("code",{icon:r,text:"Source code",onAction:o})),{});var t,r,o,i,u};tinymce.PluginManager.add("advcode",Ee)}(window);
8
+ !function(){"use strict";function t(e){return parseInt(e,10)}function r(e,t){return 0==(t=e-t)?0:0<t?1:-1}function n(e,t,n){return{major:e,minor:t,patch:n}}function o(e){return(e=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(e))?n(t(e[1]),t(e[2]),t(e[3])):n(0,0,0)}function i(e,t){var n=r(e.major,t.major);return 0!==n||0!==(n=r(e.minor,t.minor))?n:0!==(t=r(e.patch,t.patch))?t:0}function u(e){return o([(e=e).majorVersion,e.minorVersion].join(".").split(".").slice(0,3).join("."))}function c(e,t){return!!e&&-1===i(u(e),o(t))}function a(){}function f(e){return function(){return e}}var e=function(r,o){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.console;n&&o in n&&n[o].apply(n,arguments)}},l={log:e(window,"log"),error:e(window,"error"),warn:e(window,"warn")},s=f(!1),d=f(!0),m=function(){return p},p={fold:function(e,t){return e()},is:s,isSome:s,isNone:d,getOr:y,getOrThunk:v,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:y,orThunk:v,map:m,each:a,bind:m,exists:s,forall:d,filter:m,equals:h,equals_:h,toArray:function(){return[]},toString:f("none()")};function h(e){return e.isNone()}function v(e){return e()}function y(e){return e}function g(e){return F(e)?e:(e=e,D.fromDom(e.dom.ownerDocument))}function w(e){return O.from(e.dom.parentNode).map(D.fromDom)}function b(e){null!==(e=e.dom).parentNode&&e.parentNode.removeChild(e)}function T(e){return U(e)?e:D.fromDom(g(e).dom.body)}function _(){return B(D.fromDom(document))}var C,E,S,x,I,j=function(n){function e(){return o}function t(e){return e(n)}var r=f(n),o={fold:function(e,t){return t(n)},is:function(e){return n===e},isSome:d,isNone:s,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:e,orThunk:e,map:function(e){return j(e(n))},each:function(e){e(n)},bind:t,exists:t,forall:t,filter:function(e){return e(n)?o:p},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(e){return e.is(n)},equals_:function(e,t){return e.fold(s,function(e){return t(n,e)})}};return o},O={some:j,none:m,from:function(e){return null==e?p:j(e)}},e=function(t){return function(e){return typeof e===t}},P=(C="string",function(e){return e=typeof(t=e),(null===t?"null":"object"==e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"==e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e)===C;var t}),k=e("boolean"),A=e("function"),L=e("number"),M=function(){return(M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},N=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},D={fromHtml:function(e,t){t=(t||document).createElement("div");if(t.innerHTML=e,!t.hasChildNodes()||1<t.childNodes.length)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return N(t.childNodes[0])},fromTag:function(e,t){e=(t||document).createElement(e);return N(e)},fromText:function(e,t){e=(t||document).createTextNode(e);return N(e)},fromDom:N,fromPoint:function(e,t,n){return O.from(e.dom.elementFromPoint(t,n)).map(N)}},m=("undefined"!=typeof window||Function("return this;")(),function(t){return function(e){return e.dom.nodeType===t}}),R=m(1),F=m(9),U=m(11),V=A(Element.prototype.attachShadow)&&A(Node.prototype.getRootNode)?function(e){return D.fromDom(e.dom.getRootNode())}:g,B=function(e){e=e.dom.body;if(null==e)throw new Error("Body is not available yet");return D.fromDom(e)},e={},m={exports:e};S=e,x=m,I=E=void 0,function(e){"object"==typeof S&&void 0!==x?x.exports=e():"function"==typeof E&&E.amd?E([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=e()}(function(){return function r(o,i,u){function c(t,e){if(!i[t]){if(!o[t]){var n="function"==typeof I&&I;if(!e&&n)return n(t,!0);if(a)return a(t,!0);throw(n=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",n}n=i[t]={exports:{}},o[t][0].call(n.exports,function(e){return c(o[t][1][e]||e)},n,n.exports,r,o,i,u)}return i[t].exports}for(var a="function"==typeof I&&I,e=0;e<u.length;e++)c(u[e]);return c}({1:[function(e,t,n){var r,o,t=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{o="function"==typeof clearTimeout?clearTimeout:u}catch(e){o=u}}();var a,f=[],l=!1,s=-1;function d(){l&&a&&(l=!1,a.length?f=a.concat(f):s=-1,f.length&&m())}function m(){if(!l){var e=c(d);l=!0;for(var t=f.length;t;){for(a=f,f=[];++s<t;)a&&a[s].run();s=-1,t=f.length}a=null,l=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new p(e,t)),1!==f.length||l||c(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=h,t.addListener=h,t.once=h,t.off=h,t.removeListener=h,t.removeAllListeners=h,t.emit=h,t.prependListener=h,t.prependOnceListener=h,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],2:[function(e,s,t){(function(t){function r(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(e,this)}function o(n,r){for(;3===n._state;)n=n._value;0!==n._state?(n._handled=!0,i._immediateFn(function(){var e,t=1===n._state?r.onFulfilled:r.onRejected;if(null!==t){try{e=t(n._value)}catch(e){return void c(r.promise,e)}u(r.promise,e)}else(1===n._state?u:c)(r.promise,n._value)})):n._deferreds.push(r)}function u(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void a(t);if("function"==typeof n)return void l((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,a(t)}catch(e){c(t,e)}var r,o}function c(e,t){e._state=2,e._value=t,a(e)}function a(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function f(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,u(t,e))},function(e){n||(n=!0,c(t,e))})}catch(e){if(n)return;n=!0,c(t,e)}}var e,n;e=this,n=setTimeout,i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return o(this,new f(e,t,n)),n},i.all=function(e){var c=Array.prototype.slice.call(e);return new i(function(o,i){if(0===c.length)return o([]);var u=c.length;for(var e=0;e<c.length;e++)!function t(n,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if("function"==typeof r)return void r.call(e,function(e){t(n,e)},i)}c[n]=e,0==--u&&o(c)}catch(e){i(e)}}(e,c[e])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(n){return new i(function(e,t){t(n)})},i.race=function(o){return new i(function(e,t){for(var n=0,r=o.length;n<r;n++)o[n].then(e,t)})},i._immediateFn="function"==typeof t?function(e){t(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},void 0!==s&&s.exports?s.exports=i:e.Promise||(e.Promise=i)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(a,e,f){(function(e,t){var r=a("process/browser.js").nextTick,n=Function.prototype.apply,o=Array.prototype.slice,i={},u=0;function c(e,t){this._id=e,this._clearFn=t}f.setTimeout=function(){return new c(n.call(setTimeout,window,arguments),clearTimeout)},f.setInterval=function(){return new c(n.call(setInterval,window,arguments),clearInterval)},f.clearTimeout=f.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},f.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},f.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},f._unrefActive=f.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},f.setImmediate="function"==typeof e?e:function(e){var t=u++,n=!(arguments.length<2)&&o.call(arguments,1);return i[t]=!0,r(function(){i[t]&&(n?e.apply(null,n):e.call(null),f.clearImmediate(t))}),t},f.clearImmediate="function"==typeof t?t:function(e){delete i[e]}}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t,n){var r=e("promise-polyfill"),e="undefined"!=typeof window?window:Function("return this;")();t.exports={boltExport:e.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)});function H(){function c(e,t,n){function r(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o||(o=!0,null!==i&&(clearTimeout(i),i=null),n.apply(null,e))}}void 0===n&&(n=1e3);var o=!1,i=null,e=r(e),u=r(t);return{reject:u,resolve:e,start:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o||(i=setTimeout(function(){return u.apply(null,e)},n))}}}var n={},a={};tinymce.Resource={add:function(e,t){a[e]&&(a[e](t),delete a[e]),n[e]=W.resolve(t)},load:function(r,o){var i='Script at URL "'+o+'" failed to load',u='Script at URL "'+o+"\" did not call `tinymce.Resource.add('"+r+"', data)` within 1 second";if(void 0!==n[r])return n[r];var e=new W(function(e,t){var n=c(e,t);a[r]=n.resolve,tinymce.ScriptLoader.loadScripts([o],function(){return n.start(u)},function(){return n.reject(i)})});return n[r]=e}}}function q(e){return e.getParam("code_dialog_width",600)}var W=m.exports.boltExport;function G(n,r){function e(e,t){return t&&!t()||setTimeout(function(){e.state.completionActive||e.showHint({completeSingle:!1,container:r})},100),n.Pass}return{completeAfter:e,completeIfAfterLt:function(t){return e(t,function(){var e=t.getCursor();return"<"===t.getRange(n.Pos(e.line,e.ch-1),e)})},completeIfInTag:function(t){return e(t,function(){var e=t.getTokenAt(t.getCursor());return!!("string"!==e.type||/['"]/.test(e.string.charAt(e.string.length-1))&&1!==e.string.length)&&n.innerMode(t.getMode(),e.state).state.tagName})}}}function K(t){return O.from(tinymce.get).bind(function(e){return O.from(e(t))})}function z(e,t,n,r){function o(e){27!==e.keyCode&&e.stopPropagation()}void 0===r&&(r="");var i=function(e){var t=K(e).map(function(e){e=V(D.fromDom(e.getElement()));return T(e)}).getOrThunk(_);if(R(t))return{element:t,destroy:a};var n=D.fromTag("div");return e=n,t.dom.appendChild(e.dom),{element:n,destroy:function(){return b(n)}}}(n.editorId),u=G(e,i.element.dom),r={lineWrapping:n.lineWrapping,lineNumbers:n.lineNumbers,foldGutter:n.foldGutter,theme:n.theme,direction:n.direction,matchTags:{bothTags:!0},keyMap:"sublime",gutters:n.gutter?["CodeMirror-linenumbers","CodeMirror-foldgutter"]:[],extraKeys:{"Alt-F":"findPersistent","Ctrl-J":"toMatchingTag","Ctrl-B":"selectNextOccurrence","'<'":u.completeAfter,"'/'":u.completeIfAfterLt,"' '":u.completeIfInTag,"'='":u.completeIfInTag,"Ctrl-Q":function(e){e.foldCode(e.getCursor())}},mode:"text/html",value:r},c=e(t,r);return t.addEventListener("keyup",o),t.addEventListener("keydown",o),t.addEventListener("keypress",o),setTimeout(function(){c.focus(),n.cursor&&c.doc.setCursor(n.cursor)},tinymce.Env.ie?50:0),setTimeout(function(){return c.refresh()},200),{cmi:c,destroy:function(){t.removeEventListener("keyup",o),t.removeEventListener("keydown",o),t.removeEventListener("keypress",o),i.destroy()}}}function J(t,n){if(Z[n])return W.resolve();var r,o,e=K(n),i=e.bind(function(e){return O.from(null===(e=e.ui)||void 0===e?void 0:e.styleSheetLoader)}).getOr(tinymce.DOM.styleSheetLoader);return e.each(function(e){e.on("remove",function(){i.unload&&i.unload(t),delete Z[n]})}),Z[n]=!0,r=t,o=i,new W(function(e,t){(o||tinymce.DOM.styleSheetLoader).load(r,e,t)})}function Q(e,t,n){return W.all([J(t,n),(n="tinymce.plugins.advcode.CodeMirror",e=e,tinymce.Resource||H(),tinymce.Resource.load(n,e))]).then(function(e){e[0];return(0,e[1])()})}function X(e,t){e.focus(),e.undoManager.transact(function(){e.setContent(t)}),e.selection.setCursorLocation(),e.nodeChanged()}function Y(e,t,n){!function(e,t,n){if(!(P(n)||k(n)||L(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")}(e.dom,t,n)}var Z={},$=function(e,o){e.windowManager.open({title:o.title,body:o.body,buttons:[{text:"Ok",subtype:"primary",onclick:"submit",disabled:!0},{text:"Cancel",onclick:"close"}],onPostRender:function(){var e,t,n=this.getRoot(),r=n.find("form > *")[0];t=n.getEl("body"),(e=new tinymce.ui.Throbber(t)).show(1e3),o.onPostRender(r).then(function(){e.hide(),n.statusbar.items().disabled(!1)})},onSubmit:function(e){o.onSubmit(e.data)},onClose:function(){o.onClose&&o.onClose()}})},ee=Object.hasOwnProperty;function te(e,t,n){for(var r=e.dom,o=A(n)?n:s;r.parentNode;){r=r.parentNode;var i=D.fromDom(r);if(t(i))return O.some(i);if(o(i))break}return O.none()}function ne(e,t,n){var r;return r=te,n=n,function(e,t){return t(e)}(e=e,t=t)?O.some(e):A(n)&&n(e)?O.none():r(e,t,n)}function re(e){return t=e,e="name",ee.call(t,e);var t}function oe(e){var r=e.split(/\r?\n/);return function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return O.none()}(r,function(t,n){var e=t.indexOf(ve);return(-1!==(e=e)?O.some(e):O.none()).map(function(e){return t===ve?0===n?{line:n,ch:0}:{line:n-1,ch:r[n-1].length}:{line:n,ch:e}})}).getOr({line:0,ch:0})}function ie(e,t){var n,r,o=D.fromHtml(ve),e=D.fromDom(e),e=ne(e,function(e){return function(e,t){e=e.dom;return!(!e||!e.hasAttribute)&&e.hasAttribute(t)}(e,"data-mce-bogus")},t).getOr(e);return r=o,w(n=e).each(function(e){e.dom.insertBefore(r.dom,n.dom)}),o}function ue(t,e){var n=t.dom,r=t.selection,o=r.getBookmark(),n=re(o)?n.select(o.name)[o.index]:n.select("#"+o.id+"_start")[0],n=O.from(n).map(function(e){var n=D.fromDom(t.getBody());return ie(e,function(e){return t=n,e.dom===t.dom;var t})}),e=e();return n.each(b),r.moveToBookmark(o),e}function ce(e){var t=ue(e,function(){return e.getContent({source_view:!0})}),t=oe(t);return{content:e.getContent({source_view:!0}),cursor:t}}function ae(o,i){var e,t,n,u=Q(i.codeMirrorScriptUrl,i.codeMirrorCssUrl,i.editorId),c=(e=O.none(),t=e,n={get:function(){return t},set:function(e){t=e}},{clear:function(){return n.set(O.none())},set:function(e){return n.set(O.some(e))},isSet:function(){return n.get().isSome()},on:function(e){return n.get().each(e)}});$(o,{title:"Source code",body:{type:"panel",border:1,classes:"codemirror",minWidth:q(o),minHeight:q(o)},onPostRender:function(e){var t=e.getEl("body"),n=ce(o),r=M(M({},i),{cursor:n.cursor});return u.then(function(e){return z(e,t,r,n.content)}).then(function(e){c.set(e)})},onSubmit:function(){return c.on(function(e){X(o,e.cmi.doc.getValue()),e.destroy()})},onClose:function(){return c.on(function(e){return e.destroy()})}})}function fe(e,t){return function(e,t,n){n=function(e,t){t=function(e,t){t=e.dom.getAttribute(t);return null===t?void 0:t}(e,t);return void 0===t||""===t?[]:t.split(" ")}(e,t).concat([n]);return Y(e,t,n.join(" ")),!0}(e,"class",t)}function le(e,t,n){if(!P(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);var r;void 0!==(r=e).style&&A(r.style.getPropertyValue)&&e.style.setProperty(t,n)}function se(n,r){return new W(function(e){var t=D.fromDom(n);!function(e,t,n){e=e.dom;le(e,t,n)}(t,"width","100%"),w(t).filter(R).each(function(e){return t="mce-codemirror",void(void 0!==(e=e).dom.classList?e.dom.classList.add(t):fe(e,t));var t}),e(Q(r.codeMirrorScriptUrl,r.codeMirrorCssUrl,r.editorId).then(function(e){var e=z(e,n,r),t=e.cmi;return{getValue:function(){return t.doc.getValue()},setValue:function(e){return t.doc.setValue(e)},destroy:e.destroy}}))})}function de(t){var e={name:"codeview",type:"customeditor",tag:"div"};if(n=tinymce,r="5.0.12",!n||1!==i(u(n),o(r)))return M(M({},e),{init:function(e){return se(e,t)}});var n,r=t.customEditorScriptUrl;return M(M({},e),{scriptId:"tinymce.plugins.advcode.customeditor",scriptUrl:r,settings:t})}function me(t,e){var n=ce(t),e=M(M({},e),{cursor:n.cursor}),n={title:"Source Code",size:"large",body:{type:"panel",items:[de(e)]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{codeview:n.content},onSubmit:function(e){X(t,e.getData().codeview),e.close()}};t.windowManager.open(n)}function pe(r,o,i){return function(){var e,t,n,e={customEditorScriptUrl:(t=i)+"/customeditor.min.js",codeMirrorScriptUrl:(n=t,(e=o).getParam("codemirror_script",n+"/codemirror.min.js","string")),codeMirrorCssUrl:(t=t,e.getParam("codemirror_css",t+"/codemirror.min.css","string")),lineWrapping:e.getParam("codemirror_linewrapping",!0,"boolean"),lineNumbers:e.getParam("codemirror_linenumbers",!0,"boolean"),foldGutter:e.getParam("codemirror_foldgutter",!0,"boolean"),theme:e.getParam("codemirror_theme","default","string"),direction:"rtl"===e.getBody().dir?"rtl":"ltr",gutter:e.getParam("codemirror_gutter",!0,"boolean"),editorId:e.id};r(o,e)}}function he(e,t){return c(tinymce,"4.3.13")?(l.error("The advcode plugin requires at least 4.3.13 version of TinyMCE."),function(){}):(c(tinymce,"5.0.0")?function(e,t){t=pe(ae,e,t);e.addCommand("mceCodeEditor",t),e.addButton("code",{icon:"code",tooltip:"Source code",onclick:t}),e.addMenuItem("code",{icon:"code",text:"Source code",context:"tools",onclick:t})}(e,t):(n="sourcecode",t=pe(me,e=e,t=t),e.addCommand("mceCodeEditor",t),e.ui.registry.addButton("code",{icon:n,tooltip:"Source code",onAction:t}),e.ui.registry.addMenuItem("code",{icon:n,text:"Source code",onAction:t})),{});var n}var ve="\x3c!--mce_cursor--\x3e";tinymce.PluginManager.add("advcode",he)}();
@@ -1,4 +1,4 @@
1
- advcode - build: 2.2.0-140
1
+ advcode - build: 2.3.2-155
2
2
 
3
3
  Documentation
4
4
  -----------------
@@ -1 +1 @@
1
- 2.2.0-140
1
+ 2.3.2-155
@@ -1,15 +1,17 @@
1
-
1
+ /**
2
+ * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
+ */
2
4
  (function () {
3
5
  'use strict';
4
6
 
5
- var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
7
+ var global$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
6
8
 
7
9
  var applyListFormat = function (editor, listName, styleValue) {
8
10
  var cmd = listName === 'UL' ? 'InsertUnorderedList' : 'InsertOrderedList';
9
11
  editor.execCommand(cmd, false, styleValue === false ? null : { 'list-style-type': styleValue });
10
12
  };
11
13
 
12
- var register = function (editor) {
14
+ var register$1 = function (editor) {
13
15
  editor.addCommand('ApplyUnorderedListStyle', function (ui, value) {
14
16
  applyListFormat(editor, 'UL', value['list-style-type']);
15
17
  });
@@ -18,7 +20,7 @@
18
20
  });
19
21
  };
20
22
 
21
- var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
23
+ var global = tinymce.util.Tools.resolve('tinymce.util.Tools');
22
24
 
23
25
  var getNumberStyles = function (editor) {
24
26
  var styles = editor.getParam('advlist_number_styles', 'default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman');
@@ -36,6 +38,9 @@
36
38
  return value;
37
39
  };
38
40
  };
41
+ var identity = function (x) {
42
+ return x;
43
+ };
39
44
  var never = constant(false);
40
45
  var always = constant(true);
41
46
 
@@ -43,20 +48,14 @@
43
48
  return NONE;
44
49
  };
45
50
  var NONE = function () {
46
- var eq = function (o) {
47
- return o.isNone();
48
- };
49
51
  var call = function (thunk) {
50
52
  return thunk();
51
53
  };
52
- var id = function (n) {
53
- return n;
54
- };
54
+ var id = identity;
55
55
  var me = {
56
56
  fold: function (n, _s) {
57
57
  return n();
58
58
  },
59
- is: never,
60
59
  isSome: never,
61
60
  isNone: always,
62
61
  getOr: id,
@@ -73,9 +72,9 @@
73
72
  bind: none,
74
73
  exists: never,
75
74
  forall: always,
76
- filter: none,
77
- equals: eq,
78
- equals_: eq,
75
+ filter: function () {
76
+ return none();
77
+ },
79
78
  toArray: function () {
80
79
  return [];
81
80
  },
@@ -95,9 +94,6 @@
95
94
  fold: function (n, s) {
96
95
  return s(a);
97
96
  },
98
- is: function (v) {
99
- return a === v;
100
- },
101
97
  isSome: always,
102
98
  isNone: never,
103
99
  getOr: constant_a,
@@ -124,14 +120,6 @@
124
120
  },
125
121
  toString: function () {
126
122
  return 'some(' + a + ')';
127
- },
128
- equals: function (o) {
129
- return o.is(a);
130
- },
131
- equals_: function (o, elementEq) {
132
- return o.fold(never, function (b) {
133
- return elementEq(a, b);
134
- });
135
123
  }
136
124
  };
137
125
  return me;
@@ -179,9 +167,20 @@
179
167
  var isWithinList = function (editor, e, nodeName) {
180
168
  var tableCellIndex = findIndex(e.parents, isTableCellNode);
181
169
  var parents = tableCellIndex !== -1 ? e.parents.slice(0, tableCellIndex) : e.parents;
182
- var lists = global$1.grep(parents, isListNode(editor));
170
+ var lists = global.grep(parents, isListNode(editor));
183
171
  return lists.length > 0 && lists[0].nodeName === nodeName;
184
172
  };
173
+ var makeSetupHandler = function (editor, nodeName) {
174
+ return function (api) {
175
+ var nodeChangeHandler = function (e) {
176
+ api.setActive(isWithinList(editor, e, nodeName));
177
+ };
178
+ editor.on('NodeChange', nodeChangeHandler);
179
+ return function () {
180
+ return editor.off('NodeChange', nodeChangeHandler);
181
+ };
182
+ };
183
+ };
185
184
  var addSplitButton = function (editor, id, tooltip, cmd, nodeName, styles) {
186
185
  editor.ui.registry.addSplitButton(id, {
187
186
  tooltip: tooltip,
@@ -189,7 +188,7 @@
189
188
  presets: 'listpreview',
190
189
  columns: 3,
191
190
  fetch: function (callback) {
192
- var items = global$1.map(styles, function (styleValue) {
191
+ var items = global.map(styles, function (styleValue) {
193
192
  var iconStyle = nodeName === 'OL' ? 'num' : 'bull';
194
193
  var iconName = styleValue === 'disc' || styleValue === 'decimal' ? 'default' : styleValue;
195
194
  var itemValue = styleValue === 'default' ? '' : styleValue;
@@ -215,15 +214,7 @@
215
214
  return value === listStyle;
216
215
  }).getOr(false);
217
216
  },
218
- onSetup: function (api) {
219
- var nodeChangeHandler = function (e) {
220
- api.setActive(isWithinList(editor, e, nodeName));
221
- };
222
- editor.on('NodeChange', nodeChangeHandler);
223
- return function () {
224
- return editor.off('NodeChange', nodeChangeHandler);
225
- };
226
- }
217
+ onSetup: makeSetupHandler(editor, nodeName)
227
218
  });
228
219
  };
229
220
  var addButton = function (editor, id, tooltip, cmd, nodeName, _styles) {
@@ -231,15 +222,7 @@
231
222
  active: false,
232
223
  tooltip: tooltip,
233
224
  icon: nodeName === 'OL' ? 'ordered-list' : 'unordered-list',
234
- onSetup: function (api) {
235
- var nodeChangeHandler = function (e) {
236
- api.setActive(isWithinList(editor, e, nodeName));
237
- };
238
- editor.on('NodeChange', nodeChangeHandler);
239
- return function () {
240
- return editor.off('NodeChange', nodeChangeHandler);
241
- };
242
- },
225
+ onSetup: makeSetupHandler(editor, nodeName),
243
226
  onAction: function () {
244
227
  return editor.execCommand(cmd);
245
228
  }
@@ -252,16 +235,18 @@
252
235
  addButton(editor, id, tooltip, cmd, nodeName);
253
236
  }
254
237
  };
255
- var register$1 = function (editor) {
238
+ var register = function (editor) {
256
239
  addControl(editor, 'numlist', 'Numbered list', 'InsertOrderedList', 'OL', getNumberStyles(editor));
257
240
  addControl(editor, 'bullist', 'Bullet list', 'InsertUnorderedList', 'UL', getBulletStyles(editor));
258
241
  };
259
242
 
260
243
  function Plugin () {
261
- global.add('advlist', function (editor) {
244
+ global$1.add('advlist', function (editor) {
262
245
  if (editor.hasPlugin('lists')) {
263
- register$1(editor);
264
246
  register(editor);
247
+ register$1(editor);
248
+ } else {
249
+ console.error('Please use the Lists plugin together with the Advanced List plugin.');
265
250
  }
266
251
  });
267
252
  }